/* OneMkan premium storefront layer: shared tokens and components (back navigation,
   price typography, product cards, shelves, homepage, search, sheets, address book).
   Loaded last so it can refine the earlier layers without !important. */
:root {
  --om-ink: #0f1111;
  --om-ink-2: #565959;
  --om-line: #d5d9d9;
  --om-soft: #f7f8f8;
  --om-link: #007185;
  --om-accent: #ff9900;
  --om-accent-ink: #a84400;
  --om-deal: #cc0c39;
  --om-ok: #067d62;
  --om-select: #007185;
  --om-radius: 8px;
  --om-shadow: 0 2px 5px rgba(15, 17, 17, .12);
}

/* ---------- Back navigation ---------- */
.om-back { display: none; }
.om-backbar { display: none; }
@media (max-width: 700px) {
  body .amazon-header-main:has(.om-back) .amazon-global-search { margin-left: 40px; width: auto; min-width: 0; max-width: calc(100% - 40px); }
  body .om-back {
    display: grid; place-items: center; grid-column: 1; grid-row: 2; justify-self: start; align-self: center;
    width: 38px; height: 42px; margin-left: -4px; color: #fff; border-radius: 8px; text-decoration: none;
  }
  body .om-back svg { width: 24px; height: 24px; }
  body .om-back:focus-visible { outline: 2px solid var(--om-accent); outline-offset: 1px; }
}
@media (min-width: 701px) {
  .om-backbar { display: block; max-width: 1500px; margin: 0 auto; padding: 12px 24px 0; }
  /* WCAG 2.2 target size: 24px tall and (12px top padding) 24px clear of the Menu button. The PC's
     axe run has measured this link 16px tall and 20px from Menu; either margin alone now passes. */
  .om-backbar a { display: inline-flex; gap: 6px; align-items: center; min-height: 24px; color: var(--om-link); font-size: 14px; text-decoration: none; }
  .om-backbar a:hover { color: #c7511f; text-decoration: underline; }
  .om-backbar a span:first-child { font-size: 20px; line-height: 1; }
}

/* ---- Compact rating on search result cards (never on homepage cards) ---- */
.om-result .om-stars { display: inline-flex; gap: 1px; vertical-align: middle; }
.om-result .om-star { width: 14px; height: 14px; background: #d5d9d9; clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.om-result .om-star-full { background: #de7921; }
.om-result .om-star-half { background: linear-gradient(90deg, #de7921 50%, #d5d9d9 50%); }

/* =====================================================================
   Shared: price typography, card offer lines, colour swatches
   ===================================================================== */
.om-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.om-p { display: inline-flex; align-items: flex-start; color: var(--om-ink); font-weight: 400; line-height: 1; letter-spacing: -.01em; }
.om-p-sym, .om-p-frac { font-size: .5em; line-height: 1.15; position: relative; top: .12em; }
.om-p-sym { margin-right: 1px; }
.om-p-frac { margin-left: 1px; }
.om-p-whole { font-size: 1em; }
.om-card-price { display: flex; align-items: flex-start; gap: 6px; font-size: 26px; margin-top: 2px; }
.om-card-deal { align-self: center; padding: 3px 6px; border-radius: 3px; background: var(--om-deal); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .01em; }
.om-card-was { color: var(--om-ink-2); font-size: 12px; }
.om-card-delivery { color: var(--om-ink); font-size: 12.5px; line-height: 1.35; }
.om-card-delivery strong { font-weight: 700; }
.om-card-zone { color: var(--om-ink-2); }
.om-card-pending, .om-card-note { color: var(--om-ink-2); font-size: 12.5px; line-height: 1.35; }
.om-card-options { color: var(--om-ink-2); font-size: 12px; }
.om-swatches { display: inline-flex; align-items: center; gap: 4px; min-height: 18px; }
.om-swatches { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 2px; min-height: 26px; margin: 2px 0; }
.om-swatch { position: relative; width: 26px; height: 26px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.om-swatch::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(15,17,17,.28); }
.om-swatch[aria-pressed="true"]::after { content: ""; position: absolute; inset: 1px; border-radius: 50%; box-shadow: 0 0 0 1.5px #007185; }
.om-swatch:hover::before { box-shadow: inset 0 0 0 1px rgba(15,17,17,.5); }
.om-swatch:focus-visible { outline: 2px solid #007185; outline-offset: 0; }
.om-card .om-card-offer-link { display: grid; gap: 2px; color: inherit; text-decoration: none; }
.om-swatch-more { color: var(--om-ink-2); font-size: 12px; margin-left: 2px; text-decoration: none; }

/* Shelf cards (homepage, recommendations) */
.om-card { display: flex; flex-direction: column; gap: 2px; }
.om-card a.om-card-link { display: flex; flex-direction: column; gap: 4px; min-height: 0; color: var(--om-ink); text-decoration: none; }
/* Content-driven cards: a grid row may be taller than a card, but nothing inside stretches
   (no gap between title, colours and price), and rails scroll sideways only. */
.om-card { align-self: start; }
.om-card a.om-card-media-link { display: block; }
.om-card .om-swatches { margin: 0; }
.om-card .om-card-offer-link { margin-top: 2px; }
.om-rail-track { overflow-y: hidden; overscroll-behavior-x: contain; }
.om-card .om-card-media { height: auto; aspect-ratio: 1 / 1; border-radius: 8px; background: #f7f7f7; margin-bottom: 4px; overflow: hidden; }
.om-card .om-card-media img { inset: 7%; width: 86%; height: 86%; }
.om-card .om-card-title { font-size: 14px; line-height: 1.32; min-height: 2.64em; }
.om-card a.om-card-link:hover .om-card-title { color: #c7511f; }

/* =====================================================================
   Homepage (merchant issues 01, 02, 19)
   Row 1: tall 4:5 editorial department cards. Row 2: separate square
   campaign cards. Then history, desktop department modules (phones: rails),
   recommendations. Each module type keeps its own proportions; every card of
   one type in a row has the same size. Desktop uses the screen width with
   equal outer margins (never edge to edge).
   ===================================================================== */
section.om-home.amazon-home.om-home2 { --om-gap: 10px; --om-gutter: 12px; display: block; width: 100%; max-width: none; margin: 0; background: #fff; padding: 0 0 24px; }
.om-home2 > * { position: relative; }
.om-home2 [data-om-row] { position: relative; }
.om-home2 [data-om-row-track] { display: grid; grid-auto-flow: column; gap: var(--om-gap); margin: 0; padding: 0 var(--om-gutter); list-style: none; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scroll-padding-inline: var(--om-gutter); scrollbar-width: none; }
.om-home2 [data-om-row-track]::-webkit-scrollbar { display: none; }
.om-home2 [data-om-row-track] > li { scroll-snap-align: start; min-width: 0; }
.om-row-arrow { display: none; }

/* Row 1: tall editorial cards */
.om-editorial { padding: 12px 0 6px; }
.om-editorial-track { grid-auto-columns: min(66vw, 300px); }
.om-editorial-card a { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; color: var(--om-ink); text-decoration: none; isolation: isolate; }
.om-editorial-title { position: absolute; z-index: 2; top: 0; left: 0; right: 0; display: -webkit-box; overflow: hidden; padding: 14px 16px 0; font-size: 20px; font-weight: 800; line-height: 1.12; letter-spacing: -.01em; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.om-editorial-media { position: absolute; inset: 72px 14px 54px; display: grid; place-items: center; border-radius: 10px; background: #fff; box-shadow: 0 6px 18px rgba(15,17,17,.10); overflow: hidden; }
.om-editorial-media img { width: 86%; height: 86%; object-fit: contain; }
.om-editorial-media.is-art { inset: 0; border-radius: 0; box-shadow: none; z-index: -1; }
.om-editorial-media.is-art img { width: 100%; height: 100%; object-fit: cover; }
.om-editorial-cta { position: absolute; z-index: 2; left: 14px; bottom: 12px; padding: 8px 13px; border-radius: 999px; background: #0f1111; color: #fff; font-size: 13px; font-weight: 700; line-height: 1; }
.om-editorial-card a:hover .om-editorial-cta, .om-editorial-card a:focus-visible .om-editorial-cta { background: #c7511f; }
.om-editorial-card a:focus-visible { outline: 3px solid var(--om-accent); outline-offset: 2px; }
.om-tone-1 a, .om-tone-6 a { background: linear-gradient(165deg, #ffecd2 0%, #ffd6a0 100%); }
.om-tone-2 a, .om-tone-7 a { background: linear-gradient(165deg, #dcefff 0%, #b5d7f7 100%); }
.om-tone-3 a, .om-tone-8 a { background: linear-gradient(165deg, #e4f5e6 0%, #bfe5c6 100%); }
.om-tone-4 a { background: linear-gradient(165deg, #f8e4f1 0%, #ecc3de 100%); }
.om-tone-5 a { background: linear-gradient(165deg, #eee9ff 0%, #d3c8f7 100%); }

/* Row 2: square campaign cards (independent of row 1, never overlapping it) */
.om-campaigns { padding: 8px 0 14px; }
.om-campaign-track { grid-auto-columns: min(40vw, 190px); }
.om-campaign { display: grid; grid-template-rows: auto auto; gap: 6px; height: 100%; padding: 10px 10px 10px; border: 1px solid #e3e6e6; border-radius: 12px; background: #fff; color: var(--om-ink); text-decoration: none; }
.om-campaign-title { display: -webkit-box; overflow: hidden; min-height: 2.3em; font-size: 14px; font-weight: 800; line-height: 1.15; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.om-campaign-media { display: grid; place-items: center; aspect-ratio: 1 / 1; border-radius: 8px; background: #f7f7f7; overflow: hidden; }
.om-campaign-media img { width: 84%; height: 84%; object-fit: contain; }
.om-campaign-media.is-art img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: normal; }
.om-campaign:hover .om-campaign-title { color: #c7511f; }
.om-campaign:focus-visible { outline: 3px solid var(--om-accent); outline-offset: 2px; }

/* Shelves, history, service */
.om-shelf { margin: 10px 0 0; padding: 14px var(--om-gutter) 12px; background: #fff; }
.om-shelf-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.om-shelf-head h2 { margin: 0; font-size: 19px; font-weight: 800; line-height: 1.2; }
.om-shelf-head a { color: var(--om-link); font-size: 14px; white-space: nowrap; }
.om-home2 .om-rail-track { grid-auto-columns: 42%; gap: 12px; padding-bottom: 6px; scrollbar-width: none; }
.om-home2 .om-rail-track::-webkit-scrollbar { display: none; }
.om-modules { display: none; }
.om-consider-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; margin: 0; padding: 0; list-style: none; }

.om-history-row { display: grid; gap: 10px; margin-top: 10px; }
.om-history-card { padding: 14px var(--om-gutter); background: #fff; }
.om-history-card h2 { margin: 0 0 10px; font-size: 19px; font-weight: 800; }
.om-history-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; padding: 0; list-style: none; }
.om-history-grid a { display: grid; gap: 4px; color: var(--om-ink); text-decoration: none; }
.om-history-media { display: grid; place-items: center; aspect-ratio: 1 / 1; border-radius: 8px; background: #f7f7f7; overflow: hidden; }
.om-history-media img { width: 86%; height: 86%; object-fit: contain; }
.om-history-title { display: -webkit-box; overflow: hidden; font-size: 13px; line-height: 1.3; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.om-history-more { display: inline-block; margin-top: 10px; color: var(--om-link); font-size: 14px; }

.om-home-more { display: flex; justify-content: center; align-items: center; min-height: 44px; max-width: 320px; margin: 16px auto 0; }
.om-home-more[aria-busy="true"] { opacity: .6; }

@media (min-width: 600px) {
  section.om-home.amazon-home.om-home2 { --om-gap: 14px; --om-gutter: 20px; }
  .om-editorial-track { grid-auto-columns: min(40vw, 320px); }
  .om-campaign-track { grid-auto-columns: min(24vw, 200px); }
  .om-home2 .om-rail-track { grid-auto-columns: 28%; }
  .om-consider-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .om-history-row { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
}

/* Desktop: equal outer margins, content up to 2400px, even module grids. */
@media (min-width: 1000px) {
  section.om-home.amazon-home.om-home2 { --om-gap: 18px; --om-gutter: clamp(20px, 2.4vw, 56px); --om-width: min(100% - 2 * var(--om-gutter), 2400px); background: #e3e6e6; padding: 0 0 36px; }
  .om-home2 > section, .om-home2 > .om-history-row { width: var(--om-width); margin-left: auto; margin-right: auto; }
  .om-home2 [data-om-row-track] { padding: 0; scroll-padding-inline: 0; }
  .om-editorial { padding: 22px 0 0; }
  .om-editorial-track { --cols: min(var(--om-count, 4), 4); grid-auto-columns: calc((100% - (var(--cols) - 1) * var(--om-gap)) / var(--cols)); }
  .om-editorial-title { padding: 20px 22px 0; font-size: clamp(22px, 1.6vw, 34px); }
  .om-editorial-media { inset: clamp(84px, 6vw, 120px) 20px 70px; }
  .om-editorial-cta { left: 20px; bottom: 18px; padding: 10px 16px; font-size: 14px; }
  .om-campaigns { padding: 18px 0 0; }
  .om-campaign-track { --cols: min(max(var(--om-count, 6), 5), 7); grid-auto-columns: calc((100% - (var(--cols) - 1) * var(--om-gap)) / var(--cols)); }
  .om-campaign { padding: 14px 14px 14px; border: 0; border-radius: 4px; }
  .om-campaign-title { font-size: clamp(16px, 1.05vw, 21px); }
  .om-row-arrow:not([hidden]) { display: grid; place-items: center; position: absolute; top: 50%; z-index: 4; width: 40px; height: 80px; margin-top: -40px; border: 1px solid #d5d9d9; background: rgba(255,255,255,.94); color: #0f1111; font-size: 30px; cursor: pointer; box-shadow: 0 2px 8px rgba(15,17,17,.15); }
  .om-row-prev { left: -14px; border-radius: 0 8px 8px 0; }
.om-row-next { right: -14px; border-radius: 8px 0 0 8px; }
  .om-row-arrow:hover, .om-row-arrow:focus-visible { background: #fff; outline: 2px solid var(--om-accent); }

  .om-shelf, .om-history-card { margin-top: var(--om-gap); padding: 20px 22px; }
  .om-shelf-dept { display: none; }
  .om-modules { display: block; margin-top: var(--om-gap); }
  .om-dmod-grid { display: grid; grid-template-columns: repeat(var(--om-cols-1, 3), minmax(0, 1fr)); gap: var(--om-gap); margin: 0; padding: 0; list-style: none; }
  .om-dmod { display: flex; flex-direction: column; gap: 12px; padding: 20px 20px 16px; background: #fff; }
  .om-dmod h3 { margin: 0; font-size: 20px; font-weight: 800; line-height: 1.2; }
  .om-dmod h3 a { color: var(--om-ink); text-decoration: none; }
  .om-dmod h3 a:hover { color: #c7511f; }
  /* The image block is always one square (1, 2, 3 or 4 products), so modules of a row match. */
  .om-dmod-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 10px; aspect-ratio: 1 / 1; margin: 0; padding: 0; list-style: none; }
  .om-dmod-items > li { min-height: 0; }
  .om-dmod-count-1 > li { grid-column: 1 / -1; grid-row: 1 / -1; }
  .om-dmod-count-2 > li { grid-row: 1 / -1; }
  .om-dmod-count-3 > li:first-child { grid-column: 1 / -1; }
  .om-dmod-items a { position: relative; display: block; height: 100%; color: var(--om-ink); text-decoration: none; }
  .om-dmod-media { position: relative; display: block; height: 100%; border-radius: 6px; background: #f7f7f7; overflow: hidden; }
  .om-dmod-media img { position: absolute; inset: 8%; width: 84%; height: 84%; object-fit: contain; }
  /* The product name stays the link's accessible name but never floats over the photo (merchant UX-10). */
  .om-dmod-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .om-dmod-items a:focus-visible { outline: 2px solid var(--om-accent); outline-offset: 2px; border-radius: 6px; }
  .om-dmod-more { margin-top: auto; color: var(--om-link); font-size: 13.5px; text-decoration: none; }
  .om-dmod-more:hover { color: #c7511f; text-decoration: underline; }

  .om-history-row { gap: var(--om-gap); grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); }
  .om-history-row .om-history-card { margin-top: var(--om-gap); }
  .om-history-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .om-home2 .om-rail-track { grid-auto-columns: clamp(180px, 11vw, 240px); gap: var(--om-gap); }
  .om-consider-grid { grid-template-columns: repeat(auto-fill, minmax(clamp(180px, 11vw, 240px), 1fr)); gap: var(--om-gap); }
  .om-card .om-card-price { font-size: 28px; }
}
@media (min-width: 1280px) { .om-dmod-grid { grid-template-columns: repeat(var(--om-cols-2, 4), minmax(0, 1fr)); } }
@media (min-width: 1800px) { .om-dmod-grid { grid-template-columns: repeat(var(--om-cols-3, 5), minmax(0, 1fr)); }
.om-editorial-track { --cols: min(var(--om-count, 5), 5); }
.om-campaign-track { --cols: min(max(var(--om-count, 6), 6), 8); } }
@media (min-width: 2300px) { .om-dmod-grid { grid-template-columns: repeat(var(--om-cols-4, 6), minmax(0, 1fr)); } }

/* =====================================================================
   Search: subcategory strip and result cards
   ===================================================================== */
.om-subcats { margin: 0 -16px; padding: 10px 16px 6px; background: #fff; border-bottom: 1px solid #eaeded; }
.om-subcats ul { display: flex; gap: 10px; margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.om-subcats ul::-webkit-scrollbar { display: none; }
.om-subcats a { display: grid; justify-items: center; gap: 4px; width: 76px; color: var(--om-ink); text-decoration: none; text-align: center; }
.om-subcat-media { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #f3f3f3; overflow: hidden; }
.om-subcat-media img { width: 80%; height: 80%; object-fit: contain; }
.om-subcat-label { font-size: 12px; line-height: 1.2; display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.om-subcats a.is-active .om-subcat-media, .om-subcats a:hover .om-subcat-media { box-shadow: inset 0 0 0 2px var(--om-accent); }
.om-sort-pills .om-chip, .om-review-tools .om-chip { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border: 1px solid #d5d9d9; border-radius: 999px; background: #fff; color: #0f1111; font-size: 13px; text-decoration: none; white-space: nowrap; }
@media (min-width: 701px) {
  .om-subcats { margin: 0; padding: 14px 20px 10px; }
  .om-subcats a { width: 104px; }
  .om-subcat-media { width: 88px; height: 88px; }
  .om-subcat-label { font-size: 13px; }
}

.om-result .om-result-body { gap: 4px; }
.om-result .om-result-title { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.om-result .om-result-offer { display: grid; gap: 2px; }
.om-result .om-card-price { font-size: 28px; }
.om-result .om-result-buy { display: block; margin: 0; }
/* the standard yellow Add to Cart (same colours as the product page's) */
.om-result .om-result-cta { display: inline-flex; justify-content: center; align-items: center; min-width: 0; min-height: 34px; margin-top: 8px; padding: 0 16px; border: 1px solid #fcd200; border-radius: 999px; background: #ffd814; color: #0f1111; font: inherit; font-size: 13px; font-weight: 400; text-decoration: none; cursor: pointer; box-shadow: 0 1px 2px rgba(15,17,17,.15); }
.om-result .om-result-cta:hover { background: #f7ca00; }
.om-result .om-result-cta:focus-visible { outline: 2px solid #007185; outline-offset: 2px; }
.om-result .om-result-cta:disabled, .om-result .om-result-cta[aria-busy="true"] { opacity: .65; cursor: progress; }
.om-result .om-result-model { margin: 0; color: var(--om-ink-2); font-size: 12px; }
@media (max-width: 699px) {
  .om-result.product-card { grid-template-columns: 40% minmax(0, 1fr); gap: 12px; border: 0; border-bottom: 1px solid #eaeded; border-radius: 0; }
  .om-result .om-result-media { width: 100%; min-width: 0; min-height: 0; height: auto; aspect-ratio: 1 / 1; align-self: start; margin: 10px 0; border-radius: 6px; overflow: hidden; }
  .om-result .om-result-media img { width: 88%; max-width: 88%; height: 88%; object-fit: contain; }
  .om-result .om-result-body { padding: 10px 10px 12px 0; }
  .om-result h3 { font-size: 15px; }
  .om-result .om-card-price { font-size: 24px; }
}

/* =====================================================================
   Sheets (quantity, location): bottom sheet on phones, centred panel on desktop
   ===================================================================== */
dialog.om-sheet { width: min(100vw, 460px); max-width: 100vw; max-height: 86vh; margin: auto auto 0; padding: 0 0 calc(16px + env(safe-area-inset-bottom)); border: 0; border-radius: 16px 16px 0 0; background: #fff; color: var(--om-ink); box-shadow: 0 -8px 30px rgba(15,17,17,.25); overflow: auto; }
dialog.om-sheet::backdrop { background: rgba(15,17,17,.55); }
/* A modal sheet makes the page inert but not still: drags on the backdrop or the sheet's
   title bar scrolled the page behind it. Lock only <html> so the pinned header stays put. */
@media (pointer: coarse) { html:has(dialog.om-sheet[open]) { overflow: hidden; overscroll-behavior: none; } }
dialog.om-sheet[open] { animation: om-sheet-in .18s ease-out; }
@keyframes om-sheet-in { from { transform: translateY(24px); }
to { transform: none; } }
/* slide only: text never dips below its contrast */
@media (prefers-reduced-motion: reduce) { dialog.om-sheet[open] { animation: none; } }
@media (min-width: 700px) { dialog.om-sheet { margin: auto; border-radius: 12px; max-height: 80vh; } }
.om-sheet-head { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid #eaeded; background: #f0f2f2; z-index: 1; }
.om-sheet-head h2 { margin: 0; font-size: 17px; font-weight: 800; }
.om-sheet-close { width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--om-ink); font-size: 26px; line-height: 1; cursor: pointer; }
.om-sheet-close:hover, .om-sheet-close:focus-visible { background: #e3e6e6; }
.om-sheet-lead { margin: 12px 16px 8px; color: var(--om-ink-2); font-size: 13px; line-height: 1.45; }
.om-sheet-link { display: inline-block; margin: 6px 16px 0; color: var(--om-link); font-size: 14px; }
.om-sheet-signin { display: flex; justify-content: center; align-items: center; min-height: 42px; margin: 8px 16px 0; border: 1px solid #d5d9d9; border-radius: 999px; background: #fff; color: var(--om-ink) !important; font-size: 14px; font-weight: 700; text-decoration: none; box-shadow: 0 1px 2px rgba(15,17,17,.12); }
.om-sheet-divider { display: flex; align-items: center; gap: 10px; margin: 16px; color: var(--om-ink-2); font-size: 12px; }
.om-sheet-divider::before, .om-sheet-divider::after { content: ""; flex: 1; height: 1px; background: #e3e6e6; }
.om-sheet-search { display: block; width: calc(100% - 32px); margin: 0 16px 8px; min-height: 40px; padding: 8px 12px; border: 1px solid #888c8c; border-radius: 8px; font: inherit; }
.om-sheet-note { margin: 12px 16px 0; color: var(--om-ink-2); font-size: 12px; line-height: 1.4; }
.om-badge { display: inline-block; padding: 1px 6px; border-radius: 4px; background: #e7f4f5; color: #007185; font-size: 11px; font-weight: 700; }

.om-location-addresses { display: grid; gap: 8px; margin: 4px 16px 0; padding: 0; list-style: none; }
.om-location-address { display: grid; gap: 2px; width: 100%; padding: 12px 14px; border: 1px solid #d5d9d9; border-radius: 10px; background: #fff; color: var(--om-ink); text-align: left; font: inherit; font-size: 13px; cursor: pointer; }
.om-location-address span { color: var(--om-ink-2); }
.om-location-address.is-current, .om-location-address:hover { border-color: #007185; box-shadow: inset 0 0 0 1px #007185; background: #f3fbfc; }
.om-location-countries { margin: 0 16px; padding: 0; list-style: none; border: 1px solid #e3e6e6; border-radius: 10px; overflow: hidden; }
.om-location-countries li { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 14px; border-top: 1px solid #eaeded; font-size: 15px; cursor: pointer; }
.om-location-countries li:first-child { border-top: 0; }
.om-location-countries li:hover, .om-location-countries li:focus-visible { background: #f7fafa; outline: none; }
.om-location-countries li:focus-visible { box-shadow: inset 0 0 0 2px #007185; }
.om-radio { flex: none; width: 20px; height: 20px; border: 2px solid #888c8c; border-radius: 50%; }
[aria-selected="true"] > .om-radio { border-color: #007185; box-shadow: inset 0 0 0 4px #fff; background: #007185; }

/* Header: the location button replaces the plain select once scripts run */
.om-select-enhanced { display: none !important; }
.om-location-btn { display: grid; justify-items: start; gap: 0; padding: 2px 6px; border: 1px solid transparent; border-radius: 4px; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.om-location-btn:hover, .om-location-btn:focus-visible { border-color: #fff; }
.om-location-btn strong { font-size: 14px; line-height: 1.2; }
.om-location-btn[hidden] { display: none; }

/* Quantity chooser */
.om-qty { display: flex; }
.om-qty-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border: 1px solid #d5d9d9; border-radius: 8px; background: #f0f2f2; color: var(--om-ink); font: inherit; font-size: 14px; box-shadow: 0 1px 2px rgba(15,17,17,.15); cursor: pointer; }
.om-qty-btn:hover { background: #e3e6e6; }
.om-qty-btn svg { width: 16px; height: 16px; }
.om-qty-btn[hidden], .om-qty-fallback[hidden] { display: none; }
.om-qty-fallback { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.om-qty-fallback input { width: 72px; min-height: 36px; padding: 4px 8px; border: 1px solid #888c8c; border-radius: 8px; font: inherit; }
.om-qty-list { margin: 0; padding: 6px 0; list-style: none; }
.om-qty-list li { display: flex; align-items: center; min-height: 46px; padding: 0 20px; font-size: 16px; cursor: pointer; }
.om-qty-list li:hover, .om-qty-list li:focus-visible { background: #f7fafa; outline: none; }
.om-qty-list li:focus-visible { box-shadow: inset 0 0 0 2px #007185; }
.om-qty-list li[aria-selected="true"] { background: #edfdff; font-weight: 700; box-shadow: inset 4px 0 0 #007185; }
.om-qty-custom { margin: 4px 16px 0; padding-top: 12px; border-top: 1px solid #eaeded; }
.om-qty-custom label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 700; }
.om-qty-custom-row { display: flex; gap: 8px; }
.om-qty-custom-row input { flex: 1; min-width: 0; min-height: 42px; padding: 8px 12px; border: 1px solid #888c8c; border-radius: 8px; font: inherit; }
.om-qty-hint { margin: 6px 0 0; color: var(--om-ink-2); font-size: 12px; }
.om-qty-hint.is-error { color: #b12704; }
.om-qty-note { margin: 12px 16px 0; color: var(--om-ink-2); font-size: 12px; line-height: 1.4; }
@media (min-width: 700px) { dialog.om-qty-sheet { width: 300px; } }

/* Address book cards (account dashboard) */
.om-address-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; padding: 0; list-style: none; }
.om-address-cards > li { display: flex; flex-direction: column; justify-content: space-between; gap: 12px; min-height: 210px; padding: 16px; border: 1px solid #d5d9d9; border-radius: 10px; background: #fff; }
.om-address-cards > li.is-default { border-color: #007185; box-shadow: inset 0 0 0 1px #007185; }
.om-address-default { margin: -16px -16px 4px; padding: 8px 16px; border-bottom: 1px solid #d5d9d9; border-radius: 10px 10px 0 0; background: #f0f8f8; color: #0f1111; font-size: 13px; font-weight: 700; }
.om-address-cards .account-list-meta { margin-top: 4px; color: #0f1111; font-size: 14px; line-height: 1.5; }
.om-address-cards .account-list-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.om-address-add { border-style: dashed !important; border-width: 2px !important; padding: 0 !important; }
.om-address-add a { display: grid; place-items: center; align-content: center; gap: 6px; height: 100%; min-height: 206px; color: #565959; font-size: 18px; font-weight: 700; text-decoration: none; }
.om-address-add a span { font-size: 44px; line-height: 1; color: #aab7b8; }

/* =====================================================================
   Shell motion (merchant issues 05, 07, 13, 14, 18)
   One page background, a header that moves without reflowing the page,
   docked bottom controls that share one safe-area formula, and one
   Free Shipping pill component.
   ===================================================================== */
/* Home-bar space for everything docked at the bottom: the live inset only. Safari
   reports 0 while its toolbar shows (the bar then sits right on the toolbar) and the
   home-bar height while it is collapsed. A remembered maximum left a white band between
   the bar and the toolbar and pushed the Menu drawer under the bar (owner, iPhone). */
:root {
  --om-nav-h: 58px; --om-hdr-top: 0px;
  --om-safe-bottom: env(safe-area-inset-bottom, 0px);
}
@media (max-width: 700px) {
  /* Short pages and iOS overscroll never show a grey/white band. */
  html, body, body[data-storefront-scope] { background: #fff; }

  /* Header (UX-04): pure CSS, no scroll-direction logic. The header box is
     display:contents so its rows lay out in the page: the logo/location row and
     the homepage strip scroll away 1:1 with the content, and the main row sticks
     with a negative top that leaves only the search bar pinned. Nothing toggles
     or animates while scrolling, so it cannot fight Safari's toolbar. */
  :root { --om-hdr-top: calc(var(--om-hdr-h, 0px) - var(--om-hdr-shift, 0px)); }
  body .site-header.amazon-shell-header { display: contents; }
  body .site-header.amazon-shell-header > .amazon-header-main {
    position: sticky; top: calc(-1 * var(--om-hdr-shift, 0px)); z-index: 130;
    background: var(--om-navy);
  }
  /* Menu open: the drawer (in the strip) stacks above the pinned row; lock the page behind it. */
  html.om-menu-open body .amazon-subnav { position: relative; z-index: 140; }
  html.om-menu-open, html.om-menu-open body { overflow: hidden; overscroll-behavior: none; }
  /* The drawer's scroll area ends on top of the bottom bar, whatever the home-bar space. */
  body .amazon-all-menu .amazon-menu-panel { bottom: calc(var(--om-nav-h) + var(--om-safe-bottom)); }

  /* Inner pages: no department strip; the menu panel stays reachable from the bottom bar. */
  body .amazon-subnav.om-subnav-inner { height: 0; min-height: 0; padding: 0; border: 0; overflow: visible; }
  body .amazon-subnav.om-subnav-inner > :not(.amazon-all-menu),
  body .amazon-subnav.om-subnav-inner .amazon-all-menu > summary { display: none; }

  /* Bottom dock: nav height includes the stable home-bar space; everything docked
     above it uses the same expression, so nothing moves or drifts apart when Safari's
     toolbar collapses or expands. */
  body .amazon-mobile-bottom-nav,
  body:has(.product-page) .amazon-mobile-bottom-nav,
  body:has(.om-pdp) .amazon-mobile-bottom-nav {
    position: fixed; left: 0; right: 0; bottom: 0;
    box-sizing: border-box;
    height: calc(var(--om-nav-h) + var(--om-safe-bottom));
    padding: 3px 7px var(--om-safe-bottom);
    transform: translateZ(0);
  }
  body .amazon-mobile-bottom-nav .amazon-mobile-nav-item { height: 52px; }
  body { padding-bottom: calc(var(--om-nav-h) + var(--om-safe-bottom)); }
  body .om-cart-sticky-cta,
  body .om-sticky-cart { bottom: calc(var(--om-nav-h) + var(--om-safe-bottom)); transform: translateZ(0); }
  body:has(.om-cart-sticky-cta) { padding-bottom: calc(var(--om-nav-h) + 84px + var(--om-safe-bottom)); }
  body:has(.om-cart-sticky-cta) main { padding-bottom: 0; }
  body:has(.om-pdp) { padding-bottom: calc(var(--om-nav-h) + 64px + var(--om-safe-bottom)); }
  body .amazon-destination-notice { bottom: calc(var(--om-nav-h) + 8px + var(--om-safe-bottom)); }
}

/* Free Shipping pill: restrained outline + truck on every width (issue 18). */
body .site-header .om-free-shipping-pill {
  display: inline-flex; flex: 0 0 auto; align-items: center; align-self: center; gap: 5px;
  height: 28px; min-height: 28px !important; margin: 0 4px 0 2px; padding: 0 10px;
  border: 0; border-radius: 999px;
  background: rgba(255, 138, 0, .14); box-shadow: inset 0 0 0 1px rgba(255, 166, 61, .7);
  color: #ffd29a; font-size: 13px; font-weight: 700; line-height: 1; text-decoration: none; white-space: nowrap;
}
body .site-header .om-free-shipping-pill:hover { background: rgba(255, 138, 0, .26); color: #fff; }
body .site-header .om-free-shipping-pill:focus-visible { outline: 2px solid #ffb547; outline-offset: 1px; }
body .site-header .om-free-shipping-pill .om-truck { width: 15px; height: 15px; fill: currentColor; flex: 0 0 auto; }
@media (min-width: 701px) {
  body .site-header .om-free-shipping-pill { order: 5; margin-left: auto; }
  body .site-header .om-subnav-utilities { order: 6; margin-left: 4px; }
  body .site-header .amazon-subnav.om-subnav-inner .om-subnav-utilities { margin-left: auto; }
}

/* Cart line option chooser: stays inside the line on every width. */
.om-cart-inline-form { display: flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; }
.om-cart-inline-form select { min-width: 0; max-width: 100%; flex: 1 1 auto; height: 32px; padding: 0 28px 0 10px; border: 1px solid #d5d9d9; border-radius: 8px; background-color: #f0f2f2; box-shadow: 0 1px 2px rgba(15,17,17,.15) inset; font-size: 13px; }
.om-cart-line-controls { min-width: 0; }

/* =====================================================================
   Free Shipping landing (issue 11): image slot + honest one-item copy
   ===================================================================== */
.om-fs-page { padding-bottom: 24px; }
.om-fs-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 20px; margin: 10px 20px 0; padding: 26px clamp(20px, 3vw, 48px); border-radius: 12px; overflow: hidden; background: linear-gradient(120deg, #eef8f3 0%, #d6efe2 100%); box-shadow: inset 0 0 0 1px #cfe6d9; color: #0f1111; }
.om-fs-hero-copy { position: relative; z-index: 1; max-width: 640px; }
.om-fs-kicker { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 8px; color: #067d62; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.om-fs-kicker .om-truck { width: 16px; height: 16px; fill: currentColor; }
.om-fs-hero h1 { margin: 0 0 8px; font-size: clamp(28px, 3vw, 42px); font-weight: 800; line-height: 1.05; letter-spacing: -.01em; }
.om-fs-lead { margin: 0 0 6px; color: #0f1111; font-size: 16px; line-height: 1.45; }
.om-fs-note { margin: 0; color: #37475a; font-size: 13px; }
.om-fs-hero .om-btn { display: inline-flex; margin-top: 10px; }
.om-fs-hero-photos { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(120px, 12vw, 200px); gap: 12px; }
.om-fs-hero-photos > span { display: grid; place-items: center; aspect-ratio: 1 / 1; border-radius: 10px; background: #fff; box-shadow: 0 6px 16px rgba(15,17,17,.10); overflow: hidden; }
.om-fs-hero-photos img { width: 86%; height: 86%; object-fit: contain; }
.om-fs-hero.has-art { aspect-ratio: 3 / 1; grid-template-columns: minmax(0, 48%); background: #0f2a1f; }
.om-fs-hero.has-art .om-fs-hero-copy { padding: 18px 22px; border-radius: 10px; background: rgba(255,255,255,.92); }
.om-fs-hero-art { position: absolute; inset: 0; }
.om-fs-hero-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.om-fs-products { margin: 14px 20px 0; border-radius: 0; }
.om-fs-count { color: var(--om-ink-2); font-size: 13px; }
.om-fs-empty { padding: 18px 0; }
@media (max-width: 700px) {
  .om-fs-hero { grid-template-columns: minmax(0, 1fr); margin: 8px 10px 0; padding: 18px 16px; gap: 14px; }
  .om-fs-hero-photos { grid-auto-columns: minmax(0, 1fr); }
  .om-fs-hero:has(.om-fs-photos-1) { grid-template-columns: minmax(0, 1fr) 32%; }
  .om-fs-hero h1 { font-size: 28px; }
  .om-fs-lead { font-size: 15px; }
  .om-fs-hero.has-art { aspect-ratio: 4 / 3; grid-template-columns: minmax(0, 1fr); align-items: end; padding: 12px; }
  .om-fs-products { margin: 10px 0 0; padding: 14px 12px; }
}
@media (min-width: 1000px) { .om-fs-products .om-consider-grid { grid-template-columns: repeat(auto-fill, minmax(clamp(180px, 11vw, 240px), 1fr)); gap: 18px; } }

/* =====================================================================
   Results: one filter system on top (issues 08, 10). Chips + Filters sheet on
   phones/tablets, the same groups as a left sidebar on desktop; nothing after
   the last product. Sort: Best Match default, price, reviews, newest.
   ===================================================================== */
.om-toolbar { display: grid; gap: 8px; padding: 10px 20px 4px; background: #fff; }
.om-chips { display: flex; gap: 8px; margin: 0 -20px; padding: 2px 20px 4px; overflow-x: auto; scrollbar-width: none; }
.om-chips::-webkit-scrollbar { display: none; }
.om-toolbar .om-chip, .om-factive-list .om-chip { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border: 1px solid #d5d9d9; border-radius: 999px; background: #fff; color: #0f1111; font: inherit; font-size: 13.5px; line-height: 1; text-decoration: none; white-space: nowrap; box-shadow: 0 1px 2px rgba(15,17,17,.08); cursor: pointer; }
.om-toolbar .om-chip:hover { background: #f7fafa; }
.om-toolbar .om-chip:focus-visible { outline: 2px solid var(--om-select); outline-offset: 2px; }
.om-toolbar .om-chip.is-active, .om-factive-list .om-chip.is-active { border-color: var(--om-select); background: #edf9fb; color: #0f1111; box-shadow: inset 0 0 0 1px var(--om-select); font-weight: 700; }
.om-chip-filters svg { width: 18px; height: 18px; }
.om-chip-badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--om-select); color: #fff; font-size: 11px; font-weight: 700; }
.om-chip-star { color: #de7921; font-size: 14px; }
.om-chip-x { margin-left: 2px; color: var(--om-ink-2); font-size: 15px; }
.om-results-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.om-results-heading { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.3; }
.om-sort-menu { position: relative; }
.om-sort-menu > summary { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 1px solid #d5d9d9; border-radius: 8px; background: #f0f2f2; box-shadow: 0 1px 2px rgba(15,17,17,.12); font-size: 13px; cursor: pointer; list-style: none; white-space: nowrap; }
.om-sort-menu > summary::-webkit-details-marker { display: none; }
.om-sort-k { color: var(--om-ink-2); }
.om-caret { width: 7px; height: 7px; margin-left: 2px; border-right: 1.6px solid #0f1111; border-bottom: 1.6px solid #0f1111; transform: translateY(-2px) rotate(45deg); }
.om-sort-menu ul { position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; min-width: 220px; margin: 0; padding: 6px 0; border: 1px solid #d5d9d9; border-radius: 8px; background: #fff; box-shadow: 0 8px 24px rgba(15,17,17,.18); list-style: none; }
.om-sort-menu ul a { display: block; padding: 9px 16px; color: #0f1111; font-size: 14px; text-decoration: none; }
.om-sort-menu ul a:hover, .om-sort-menu ul a:focus-visible { background: #f3f6f6; }
.om-sort-menu ul a.is-selected { font-weight: 700; box-shadow: inset 3px 0 0 var(--om-select); }

/* Groups (sheet + sidebar) */
:is(.om-filter-sidebar, .om-filter-body) .om-fgroup { padding: 12px 0; border-bottom: 1px solid #eaeded; }
:is(.om-filter-sidebar, .om-filter-body) .om-fgroup:last-child { border-bottom: 0; }
.om-fgroup h3 { margin: 0 0 6px; font-size: 15px; font-weight: 700; }
.om-fgroup ul { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.om-fgroup .om-fopt { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 40px; padding: 4px 8px; border-radius: 8px; color: #0f1111; font-size: 14px; text-decoration: none; }
.om-fgroup .om-fopt:hover { background: #f3f6f6; }
.om-fgroup .om-fopt:focus-visible { outline: 2px solid var(--om-select); outline-offset: 1px; }
.om-fopt-mark { width: 18px; height: 18px; border: 1.5px solid #8d9696; border-radius: 50%; background: #fff; }
.om-fgroup .om-fopt.is-selected { font-weight: 700; }
.om-fgroup .om-fopt.is-selected .om-fopt-mark { border-color: var(--om-select); box-shadow: inset 0 0 0 4px #fff; background: var(--om-select); }
.om-fopt-stars { color: #de7921; letter-spacing: 1px; }
.om-fopt-count { color: var(--om-ink-2); font-size: 12.5px; font-weight: 400; }

/* Filters sheet (phones and tablets) */
dialog.om-filter-sheet { display: none; padding-bottom: 0; }
dialog.om-filter-sheet[open] { display: flex; flex-direction: column; height: min(86vh, 720px); overflow: hidden; }
.om-filter-body { flex: 1 1 auto; overflow-y: auto; padding: 0 16px; overscroll-behavior: contain; }
.om-filter-foot { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid #eaeded; background: #fff; }
.om-filter-foot .om-btn { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; }

/* Layout: no filters after the results; the desktop sidebar comes first */
.om-listing-layout .om-filter-sidebar { display: none; }
.om-pager { display: flex; justify-content: center; gap: 12px; padding: 18px 0 6px; }
.om-filter-aside-link { margin: 12px 0 0; font-size: 13.5px; }
@media (max-width: 700px) {
  .om-toolbar { padding: 8px 12px 2px; }
  .om-chips { margin: 0 -12px; padding: 2px 12px 4px; }
  .om-results-head { gap: 8px; }
  .om-results-heading { font-size: 14px; }
  .om-sort-menu ul { right: auto; left: 0; }
}
@media (min-width: 1000px) {
  .om-toolbar { padding: 12px 20px 6px; }
  .om-chip-filters { display: none !important; }
  .om-listing-layout { grid-template-columns: 240px minmax(0, 1fr); }
  .om-listing-layout .om-filter-sidebar { display: block; order: 0; padding: 0; border: 0; }
  .om-listing-layout .om-filter-sidebar .om-fgroup .om-fopt { min-height: 32px; padding: 2px 6px; font-size: 13.5px; }
  .om-results-heading { font-size: 16px; }
}
.om-filter-sidebar [data-filter-group="sort"] { display: none; }

/* =====================================================================
   Rating row (issue 04): number, precise stars, count — same component on
   product pages, search results and every product card.
   ===================================================================== */
.om-rating { display: inline-flex; align-items: center; gap: 6px; color: var(--om-link); text-decoration: none; line-height: 1; }
.om-rating-value { color: #0f1111; font-weight: 400; }
.om-rating-stars { display: inline-flex; gap: 1px; }
.om-rstar { display: inline-block; width: var(--star, 16px); height: var(--star, 16px); background: linear-gradient(90deg, #f08804 var(--fill, 0%), #d5d9d9 var(--fill, 0%)); clip-path: polygon(50% 2%, 62% 36%, 98% 37%, 69% 59%, 80% 95%, 50% 74%, 20% 95%, 31% 59%, 2% 37%, 38% 36%); }
.om-rating-count { color: var(--om-link); }
.om-rating:hover .om-rating-count, .om-rating:focus-visible .om-rating-count { color: #c7511f; text-decoration: underline; }
.om-rating:focus-visible { outline: 2px solid var(--om-select); outline-offset: 3px; border-radius: 4px; }
.om-rating-sm { --star: 14px; gap: 4px; font-size: 13px; margin: 2px 0; }
.om-card .om-rating { display: inline-flex; }  /* one line on shelf cards, whose links are display: grid */
.om-rating-md { --star: 16px; font-size: 14px; margin: 2px 0 4px; }
.om-rating-lg { --star: 20px; gap: 7px; margin-top: 8px; font-size: 17px; }
.om-rating-lg .om-rating-value { font-size: 17px; font-weight: 500; }
.om-rating-lg .om-rating-count { font-size: 16px; }

/* Selected variant (issue 06): the same blue, as one thin outline around the whole card
   (image, label, price and stock together); no tinted body, no thick inset ring. */
.om-pdp .om-opt.is-selected { border-color: var(--pdp-select, #007185); background: #fff; box-shadow: 0 0 0 1px rgba(0, 113, 133, .28); }
.om-pdp .om-opt.is-selected .om-opt-img { border-bottom-color: #eaeded; }
.om-pdp .om-opt:focus-visible { outline: 2px solid var(--pdp-select, #007185); outline-offset: 2px; }
.om-filter-note { margin: 10px 0 0; color: var(--om-ink-2); font-size: 12.5px; line-height: 1.4; }

/* ---- Language & display currency (issues 16/17) ---- */
.om-pref-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.om-pref-open { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 48px; padding: 8px 12px; border: 1px solid var(--om-line, #d5d9d9); border-radius: 10px; background: #fff; color: var(--om-ink, #0f1111); font: inherit; text-align: start; cursor: pointer; }
.om-pref-open span { font-size: 12px; color: #565959; }
.om-pref-open strong { font-size: 15px; font-weight: 700; }
.om-pref-open:hover, .om-pref-open:focus-visible { border-color: #007185; box-shadow: 0 0 0 3px rgba(0,113,133,.15); outline: none; }
.amazon-footer-locale .om-pref-buttons { width: min(100%, 360px); }
.amazon-footer-locale .om-pref-open { background: transparent; border-color: #848688; color: #fff; }
.amazon-footer-locale .om-pref-open span { color: #ddd; }
.om-pref-list { display: grid; gap: 8px; padding: 4px 16px 8px; }
.om-pref-choice { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 14px; border: 1px solid #d5d9d9; border-radius: 10px; background: #fff; color: var(--om-ink, #0f1111); font: inherit; font-size: 16px; text-align: start; cursor: pointer; }
.om-pref-choice.is-current { border-color: #007185; background: #f0f8fa; }
.om-pref-choice.is-current .om-radio { border-color: #007185; box-shadow: inset 0 0 0 4px #fff; background: #007185; }
.om-pref-choice:focus-visible { outline: 3px solid rgba(0,113,133,.35); outline-offset: 1px; }
.om-pref-sheet .om-sheet-note { padding: 0 16px; }
.om-approx { display: block; margin-top: 2px; font-size: 12.5px; color: #565959; font-variant-numeric: tabular-nums; }
.om-pdp .om-approx { display: inline-block; margin-inline-start: 8px; align-self: center; }
.om-cart-approx { margin: 2px 0 6px; font-size: 13px; color: #565959; }
.om-cart-approx .om-approx { display: inline; font-size: 14px; color: #0f1111; font-weight: 700; }
.om-co-currency { margin: 0 0 10px; font-size: 13px; color: #565959; }

/* ---- Right-to-left (Arabic). Flex/grid mirror with dir; physical positions, arrow glyphs
   (Chromium does not mirror ‹ ›) and SVG icons are flipped here. ---- */
[dir="rtl"] body { font-family: "Noto Sans Arabic", "Segoe UI", Tahoma, system-ui, sans-serif; }
[dir="rtl"] .om-p, [dir="rtl"] .om-price, [dir="rtl"] [data-cart-subtotal], [dir="rtl"] .om-approx, [dir="rtl"] .om-sticky-price, [dir="rtl"] .om-explore-price, [dir="rtl"] .om-reco-price, [dir="rtl"] .om-bundle-price, [dir="rtl"] .om-opt-price { direction: ltr; unicode-bidi: isolate; }
.om-chev { display: inline-block; vertical-align: -1px; }
.om-row-arrow .om-chev { width: 12px; height: 20px; }
[dir="rtl"] .om-back svg, [dir="rtl"] .om-chev { transform: scaleX(-1); }
@media (min-width: 701px) {
  [dir="rtl"] .om-row-prev { left: auto; right: -14px; }
  [dir="rtl"] .om-row-next { right: auto; left: -14px; }
}
[dir="rtl"] input[type="email"], [dir="rtl"] input[type="tel"] { direction: ltr; text-align: right; }

/* Active filters at the top of the Filters sheet (merchant UX-02). */
.om-fgroup ul.om-factive-list { display: flex; flex-flow: row wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.om-fgroup ul.om-factive-list > li { display: block; width: auto; margin: 0; }
.om-factive { padding-bottom: 12px; }

/* Product page on phones (merchant UX-06): one compact header row (back + search; the
   location stays in Menu) and a tighter title block. The short description stays directly
   under the title, before the rating and photos, on every screen size (merchant, 26 Oct 2026). */
@media (max-width: 700px) {
  body[data-page-kind="product"] .amazon-header-main { min-height: 0; grid-template-rows: auto; padding-top: 6px; padding-bottom: 6px; }
  body[data-page-kind="product"] .amazon-header-main > .amazon-brand,
  body[data-page-kind="product"] .amazon-header-main > .amazon-delivery { display: none; }
  body[data-page-kind="product"] .amazon-global-search, body[data-page-kind="product"] .om-back { grid-row: 1; }
  body[data-page-kind="product"] .om-pdp-heading { padding-top: 8px; padding-bottom: 6px; }
  body[data-page-kind="product"] .om-pdp-heading h1 { font-size: 17px; line-height: 1.3; }
  body[data-page-kind="product"] .om-pdp-heading .om-product-subtitle { margin-top: 4px; font-size: 14px; line-height: 1.4; }
}

/* Browsing cart dock (UX-12) — phones only, docked on the bottom navigation, never over prices. */
.om-cart-dock { display: none; }
@media (max-width: 700px) {
  .om-cart-dock { display: block; position: fixed; left: 8px; right: 8px; bottom: calc(var(--om-nav-h, 56px) + var(--om-safe-bottom) + 6px); z-index: 119; }
  body:has(.om-cart-dock) main { padding-bottom: 64px; }
  /* The country notice stacks above the dock (under it, its buttons opened the cart); drawn
     over the dock where the free-shipping meter makes it taller than 48px (320-340px). */
  body:has(.om-cart-dock) .amazon-destination-notice { bottom: calc(var(--om-nav-h) + var(--om-safe-bottom) + 64px); z-index: 120; }
  /* While the notice (80-95px) shows, the end of the page stays reachable above it. */
  body:has(.amazon-destination-notice:not([hidden])) main { padding-bottom: 120px; }
  body:has(.om-cart-dock):has(.amazon-destination-notice:not([hidden])) main { padding-bottom: 184px; }
  .om-cart-dock-link { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 8px 6px 10px; border-radius: 14px; background: #131921; color: #fff; text-decoration: none; box-shadow: 0 8px 24px rgba(15,17,17,.28); }
  .om-cart-dock-count { display: grid; place-items: center; min-width: 28px; height: 28px; padding: 0 6px; border-radius: 999px; background: #f08804; color: #131921; font-weight: 800; font-size: 14px; }
  .om-cart-dock-text { display: grid; flex: 1; min-width: 0; line-height: 1.2; }
  .om-cart-dock-text strong { font-size: 15px; }
  .om-cart-dock-text small { display: inline-flex; align-items: center; gap: 4px; color: #ffd8a8; font-size: 12px; }
  .om-cart-dock-text small svg { width: 16px; height: 12px; }
  /* Free-shipping meter (only when a threshold is configured): thin bar along the dock's bottom edge. */
  .om-cart-dock-link:has(.om-cart-meter) { position: relative; padding-bottom: 14px; }
  .om-cart-meter { position: absolute; left: 10px; right: 10px; bottom: 5px; height: 4px; border-radius: 99px; background: #3a4553; overflow: hidden; }
  .om-cart-meter > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #f7a64a, #f08804); }
  .om-cart-meter.is-done > span { background: #2fbf71; }
  .om-cart-dock-cta { padding: 8px 12px; border-radius: 999px; background: #ffd814; color: #0f1111; font-size: 13px; font-weight: 700; white-space: nowrap; }
}
/* Add-to-cart flight: a small photo travels to the cart icon after a confirmed add. */
.om-cart-flight { position: fixed; z-index: 400; width: 56px; height: 56px; border-radius: 12px; background: #fff center / contain no-repeat; box-shadow: 0 6px 18px rgba(15,17,17,.25); pointer-events: none; }
@keyframes om-cart-bump { 40% { transform: scale(1.25); } }
.om-cart-bump { animation: om-cart-bump .3s ease-out; }

/* COR-01: cart lines no longer listed — kept, uncounted, removable. */
.om-cart-unavailable { margin: 10px 0 14px; }
.om-cart-unavailable p { margin: 0; }
.om-cart-unavailable ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.om-cart-unavailable li { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.om-cart-unavailable li span { min-width: 0; overflow-wrap: anywhere; }
.om-cart-unavailable form { margin: 0; flex: none; }

/* An empty cart shows no number badge at all (never "0"). */
[data-cart-count][hidden] { display: none !important; }

/* Final artwork installed (merchant pilot spec): the picture IS the card, words baked in.
   No visible HTML title, button, frame, padding or tint; corners follow the card. */
.om-editorial-card.is-art a { padding: 0; background: none; box-shadow: none; }
.om-campaign.is-art { display: block; position: relative; aspect-ratio: 4 / 5; height: auto; padding: 0; border: 0; overflow: hidden; background: none; }
.om-card-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }

/* Analytics consent: an in-flow bar under the header, so it never covers page controls. */
.om-consent { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 10px 16px; background: #fff; color: var(--om-ink); border-bottom: 1px solid var(--om-line); font-size: 14px; line-height: 1.4; }
.om-consent[hidden] { display: none; }
.om-consent p { flex: 1 1 320px; margin: 0; }
.om-consent a { color: var(--om-link); }
.om-consent-actions { display: flex; gap: 8px; margin-inline-start: auto; }
.om-consent-btn { min-height: 36px; padding: 0 16px; border: 1px solid #888c8c; border-radius: 8px; background: #fff; color: var(--om-ink); font: inherit; cursor: pointer; }
.om-consent-accept { border-color: #fcd200; background: #ffd814; }
.om-consent-btn:focus-visible { outline: 2px solid var(--om-select); outline-offset: 2px; }

/* ---------- Loading skeletons ----------
   Only where something is genuinely still loading (audit 2026-10-26: on a slow phone network
   product photos stayed blank white tiles for 2-5 s; an option switch on a product page gave no
   feedback for ~2.7 s). Server-rendered text never gets a skeleton.
   1. A photo still on its way: its own box (already sized, so nothing shifts) shows a soft sheen
      until base.html sees its load or error event. Cached photos paint over it at once, and the
      glow starts after a beat, so fast loads never flash. Photos that came over the network fade in.
   2. A slow option switch (product_page.js adds .is-swapping after 300 ms): the old option's
      photos and prices give way to placeholders of the same size; the option choices stay usable.
   The glow animates opacity only, which runs off the main thread: a moving background-position
   sheen repainted every frame and kept a 4x-slowed phone busy 1.3 s of every 3 s on the homepage. */
:root { --om-sk-base: #e9edf0; --om-sk-glow: #f6f8f9; }
.om-sk main img:not(.om-sk-done),
.om-pdp.is-swapping :is(.om-pdp-zoom, .om-pdp-video-poster, .om-pdp-thumb),
.om-pdp.is-swapping :is(.om-pdp-info-price > *, .om-buy-price > *, .om-buy-stock) {
  background: linear-gradient(110deg, var(--om-sk-base) 30%, var(--om-sk-glow) 50%, var(--om-sk-base) 70%) var(--om-sk-base);
  animation: om-sk-glow 1.4s ease-in-out .3s infinite alternate;
}
@keyframes om-sk-glow { to { opacity: .5; } }
.om-sk main img.om-sk-fade { animation: om-sk-fade .25s ease-out; }
@keyframes om-sk-fade { from { opacity: .3; } }
.om-pdp.is-swapping :is(.om-pdp-zoom, .om-pdp-video-poster, .om-pdp-thumb) img { visibility: hidden; }
.om-pdp.is-swapping :is(.om-pdp-info-price > *, .om-buy-price > *, .om-buy-stock) { width: fit-content; min-width: 4em; border-radius: 6px; color: transparent; }
.om-pdp.is-swapping :is(.om-pdp-info-price > *, .om-buy-price > *, .om-buy-stock) * { visibility: hidden; }
.om-pdp .om-opt.is-pending { border-color: var(--om-select); box-shadow: inset 0 0 0 2px var(--om-select); }
@media (prefers-reduced-motion: reduce) {
  .om-sk main img:not(.om-sk-done), .om-sk main img.om-sk-fade,
  .om-pdp.is-swapping :is(.om-pdp-zoom, .om-pdp-video-poster, .om-pdp-thumb),
  .om-pdp.is-swapping :is(.om-pdp-info-price > *, .om-buy-price > *, .om-buy-stock) { animation: none; }
}

/* =====================================================================
   Quick add (listing and Similar Products cards): the option sheet and its confirmation
   ===================================================================== */
.om-quick-product { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px 16px 4px; }
.om-quick-product img { width: 72px; height: 72px; border-radius: 6px; background: #f7f8f8; object-fit: contain; }
.om-quick-title { margin: 0; font-size: 14px; line-height: 1.3; display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.om-quick-price { margin: 4px 0 0; font-size: 18px; font-weight: 700; }
.om-quick-group { margin: 12px 16px 0; }
.om-quick-label { margin: 0 0 6px; font-size: 14px; }
.om-quick-values { display: flex; flex-wrap: wrap; gap: 8px; }
.om-quick-value { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; max-width: 100%; padding: 4px 12px; border: 1px solid #d5d9d9; border-radius: 8px; background: #fff; color: var(--om-ink); font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.om-quick-value img { flex: none; width: 32px; height: 32px; border-radius: 4px; object-fit: contain; }
.om-quick-value small { color: var(--om-ink-2); }
.om-quick-value[aria-pressed="true"] { border-color: #007185; box-shadow: inset 0 0 0 1px #007185; background: #f0f8fa; }
.om-quick-value.is-unmatched { border-style: dashed; color: var(--om-ink-2); }
.om-quick-value:disabled { border-style: dashed; color: #8d9096; text-decoration: line-through; cursor: not-allowed; }
.om-quick-value:focus-visible { outline: 2px solid #007185; outline-offset: 2px; }
.om-quick-actions { display: grid; gap: 8px; margin: 16px 16px 0; }
.om-quick-add { min-height: 44px; border: 1px solid #fcd200; border-radius: 999px; background: #ffd814; color: #0f1111; font: inherit; font-size: 15px; cursor: pointer; }
.om-quick-add:hover { background: #f7ca00; }
.om-quick-add:disabled { opacity: .55; cursor: not-allowed; }
.om-quick-hint { margin: 0; min-height: 1.3em; color: var(--om-ink-2); font-size: 12px; text-align: center; }
.om-quick-hint.is-error { color: #b12704; }
.om-quick-details { justify-self: center; color: var(--om-link); font-size: 13px; }
.om-toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 300; max-width: calc(100vw - 32px); padding: 10px 16px; border-radius: 8px; background: #232f3e; color: #fff; font-size: 14px; transform: translate(-50%, 12px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.om-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 761px) { .om-toast { bottom: 32px; } }
@media (prefers-reduced-motion: reduce) { .om-toast { transition: none; } }
