/*
 * OneMkan storefront components (2026-10 redesign).
 * Loaded last. New components use the `om-` namespace so they do not depend on
 * the older override layers; the few shell rules below intentionally replace
 * earlier header/menu presentation.
 * References: OneMkan mobile mockup (home + tumbler), authoritative Amazon
 * screenshots 1-10 (home modules, CCTV/popcorn results and product pages,
 * mobile drawer).
 */

:root {
  --om-navy: #131921;
  --om-navy-2: #232f3e;
  --om-navy-3: #37475a;
  --om-orange: #ff8a00;
  --om-orange-deep: #f07800;
  --om-yellow: #ffd814;
  --om-yellow-edge: #fcd200;
  --om-page: #e3e6e6;
  --om-tile: #f7f7f7;
  --om-ink: #0f1111;
  --om-muted: #565959;
  --om-link: #007185;
  --om-line: #d5d9d9;
}

/* ---------- Shell: brand, header, sub navigation ---------- */

.site-header.amazon-shell-header .onemkan-logo-image {
  display: block;
  width: 118px;
  height: auto;
  max-height: none;
}

.amazon-global-search button {
  background: var(--om-orange);
  color: #111;
}

.amazon-global-search button:hover {
  background: var(--om-orange-deep);
}

.amazon-subnav {
  gap: 2px;
}

.om-subnav-utilities {
  display: flex;
  align-items: center;
  margin-left: auto;
  flex-shrink: 0;
}

.om-subnav-utilities a {
  padding: 8px 9px;
  border: 1px solid transparent;
  color: #fff;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}

.om-subnav-utilities a:hover {
  border-color: #fff;
}

/* ---------- Utility menu drawer ---------- */

.amazon-all-menu .amazon-menu-panel {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: min(365px, 88vw);
  max-height: none;
  border: 0;
  box-shadow: 0 0 40px rgba(0, 0, 0, .45);
  overflow-y: auto;
  z-index: 140;
}

.amazon-all-menu[open]::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 130;
  background: rgba(0, 0, 0, .62);
}

.amazon-menu-panel .amazon-menu-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 36px;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 8px 14px 8px 22px;
  background: var(--om-navy-2);
  color: #fff;
}

.amazon-menu-panel .amazon-menu-head a {
  color: #fff;
  font-size: 19px;
  font-weight: 700;
}

.amazon-menu-panel .amazon-menu-user-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff;
}

.amazon-menu-panel .amazon-menu-user-icon svg {
  width: 22px;
  height: 22px;
  fill: var(--om-navy-2);
}

.amazon-menu-panel .amazon-menu-close {
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.amazon-menu-panel .om-menu-group {
  padding: 12px 0;
  border-bottom: 1px solid var(--om-line);
}

.amazon-menu-panel .om-menu-group h2 {
  padding: 6px 22px 8px;
  font-size: 17px;
  font-weight: 700;
}

.amazon-menu-panel .om-menu-group > a {
  min-height: 44px;
  padding: 0 22px;
  font-size: 15px;
}

.amazon-menu-panel .om-menu-group > a > span {
  color: #6c7070;
  font-size: 20px;
}

.amazon-menu-panel .om-menu-count {
  min-width: 24px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--om-orange);
  color: #111 !important;
  font-size: 12px !important;
  font-weight: 700;
  text-align: center;
}

.amazon-menu-panel .om-menu-settings {
  padding-bottom: 20px;
}

.amazon-menu-panel .om-menu-settings .amazon-menu-country-change,
.amazon-menu-panel .om-menu-settings .amazon-menu-country-status {
  display: block;
  width: calc(100% - 44px);
  margin: 4px 22px 12px;
  box-sizing: border-box;
}

.amazon-menu-panel .om-menu-settings .amazon-menu-country-status {
  color: var(--om-muted);
  font-size: 13px;
}

.amazon-menu-panel .om-menu-settings select {
  width: 100%;
  min-height: 36px;
  border: 1px solid #888c8c;
  border-radius: 6px;
  background: #f0f2f2;
  color: var(--om-ink);
  font-size: 14px;
}

body:has(.amazon-all-menu[open]) {
  overflow: hidden;
}

/* ---------- Buttons ---------- */

.om-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.om-btn-primary {
  border-color: var(--om-yellow-edge);
  background: var(--om-yellow);
  color: var(--om-ink);
}

.om-btn-primary:hover {
  background: #f7ca00;
}

.om-btn-secondary {
  border-color: var(--om-line);
  background: #fff;
  color: var(--om-ink);
}

.om-btn-block {
  display: flex;
  width: 100%;
}

/* ---------- Homepage: shopping landing ---------- */

section.om-home.amazon-home.amazon-home-modules {
  /* Full-bleed page: the hero spans the viewport (reference screenshot 1) while
     shopping content is capped and centred so wide monitors stay balanced. */
  --om-content-max: 1680px;
  --om-gutter: clamp(16px, 2vw, 32px);
  --om-inline: max(var(--om-gutter), calc((100% - var(--om-content-max)) / 2));
  display: flex;
  width: 100%;
  max-width: none;
  flex-direction: column;
  margin: 0;
  padding: 0 0 28px;
  background: var(--om-page);
}

main:has(> .om-home) {
  background: var(--om-page);
}

.om-spotlight {
  position: relative;
  order: 0;
  height: 440px;
  overflow: hidden;
}

.om-tone-2 { background: linear-gradient(105deg, #9fd7e4 0%, #cdeaf0 55%, #eef8fa 100%); }
.om-tone-3 { background: linear-gradient(105deg, #f2b8c6 0%, #f8d9e1 55%, #fdf0f3 100%); }
.om-tone-4 { background: linear-gradient(105deg, #b9d89a 0%, #dcecc9 55%, #f2f8ea 100%); }

.om-account-note {
  margin: 10px 0 14px;
  color: var(--om-muted);
  font-size: 12px;
}

.om-account-links {
  display: grid;
  gap: 0;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid #e7e7e7;
}

.om-account-links a {
  display: grid;
  gap: 2px;
  padding: 11px 0;
  border-bottom: 1px solid #e7e7e7;
  color: var(--om-ink);
  text-decoration: none;
}

.om-account-links strong { font-size: 14px; }
.om-account-links span { color: var(--om-muted); font-size: 12px; }
.om-account-links a:hover strong { color: #c7511f; }
.om-rail { order: 3; }

.om-rail-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 200px;
  gap: 16px;
  margin: 0;
  padding: 0 0 8px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}

.om-rail-card {
  scroll-snap-align: start;
}

.om-rail-card a {
  display: grid;
  gap: 4px;
  color: var(--om-ink);
  text-decoration: none;
}

.om-rail-media {
  position: relative;
  display: grid;
  place-items: center;
  height: 200px;
  margin-bottom: 4px;
  background: var(--om-tile);
}

.om-rail-media img {
  position: absolute;
  inset: 6%;
  width: 88%;
  height: 88%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.om-rail-title {
  display: -webkit-box;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.om-rail-card a:hover .om-rail-title { color: #c7511f; }

.om-price {
  font-size: 17px;
  font-weight: 700;
}

.om-price small {
  display: block;
  color: var(--om-muted);
  font-size: 11px;
  font-weight: 400;
}

.om-empty {
  margin: 24px 20px;
  padding: 28px;
  background: #fff;
  text-align: center;
}

/* ---------- Categories: department directory ---------- */

main:has(> .om-directory) {
  background: #fff;
}

.om-directory {
  max-width: 1440px;
  margin: 0 auto;
  padding: 14px 24px 40px;
}

.om-directory-header {
  padding: 4px 0 14px;
  border-bottom: 1px solid #e7e7e7;
}

.om-directory-header h1 {
  margin: 0 0 6px;
  color: var(--om-ink);
  font-size: 28px;
  font-weight: 700;
}

.om-directory-header p {
  margin: 0;
  color: var(--om-muted);
  font-size: 14px;
}

.om-directory-index {
  position: sticky;
  top: var(--om-hdr-top, 0px); /* under the pinned phone header, not behind it */
  z-index: 5;
  display: flex;
  gap: 8px;
  margin: 0 -24px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid #e7e7e7;
  overflow-x: auto;
  scrollbar-width: none;
}

.om-directory-index::-webkit-scrollbar { display: none; }

.om-directory-index a {
  flex: 0 0 auto;
  padding: 7px 14px;
  border: 1px solid #b7bcbc;
  border-radius: 999px;
  color: var(--om-ink);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.om-directory-index a.om-index-free-shipping {
  border-color: var(--om-orange-deep);
  background: var(--om-orange);
  color: #111;
  font-weight: 800;
}

.om-directory-index a.om-index-free-shipping:hover {
  background: var(--om-orange-deep);
}

.om-index-divider {
  flex: 0 0 1px;
  align-self: stretch;
  margin: 4px 2px;
  background: #d5d9d9;
}

.om-directory-index a:hover {
  border-color: var(--om-orange);
  background: #fff6ea;
}

.om-directory-grid {
  display: grid;
  align-items: stretch; /* equal-height cards per row */
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 22px;
}

.om-dept-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 18px 18px 0;
  border: 1px solid var(--om-line);
  border-radius: 10px;
  background: #fff;
}

/* The index links target the heading: land it below the pinned header and index row. */
.om-dept-card-head h2 {
  scroll-margin-top: calc(var(--om-hdr-top, 0px) + 70px);
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
}

.om-dept-card-head h2 a {
  color: var(--om-ink);
  text-decoration: none;
}

.om-dept-card-head h2 a:hover {
  color: #c7511f;
  text-decoration: underline;
}

.om-dept-card-head p {
  margin: 3px 0 14px;
  color: var(--om-muted);
  font-size: 13px;
}

.om-dept-previews {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: auto;
  gap: 12px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  align-content: start; /* extra card height goes below, never between photo and title */
}

.om-dept-previews a {
  display: grid;
  grid-template-rows: auto auto;
  gap: 7px;
  height: 100%;
  color: var(--om-ink);
  text-decoration: none;
  border-radius: 8px;
}

.om-dept-previews a:focus-visible {
  outline: 3px solid var(--om-link);
  outline-offset: 2px;
}

.om-dept-preview-media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 8px;
  background: var(--om-tile);
  overflow: hidden;
}

.om-dept-preview-media img {
  /* Reset the generic product-image frame; the tile itself is the frame. */
  position: absolute;
  inset: 7%;
  box-sizing: border-box;
  padding: 0;
  border: 0;
  background: transparent;
  width: 86%;
  height: 86%;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform .2s ease;
}

.om-dept-previews a:hover img { transform: scale(1.04); }

.om-dept-preview-title {
  display: -webkit-box;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.om-dept-previews a:hover .om-dept-preview-title { color: #c7511f; }

/* Graceful layouts for departments with fewer than four products. */
/* One cover frame for every preview (review item 06): square tiles on the same
   pale neutral ground; a lone product uses a 4:3 frame; three products sit in
   one row instead of a tall first tile. */
.om-dept-previews.om-count-1 { grid-template-columns: minmax(0, 1fr); }
.om-dept-previews.om-count-1 .om-dept-preview-media { aspect-ratio: 4 / 3; height: auto; }
.om-dept-previews.om-count-2 .om-dept-preview-media,
.om-dept-previews.om-count-4 .om-dept-preview-media { aspect-ratio: 1 / 1; height: auto; }
.om-dept-previews.om-count-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.om-dept-previews.om-count-3 .om-dept-preview-media { aspect-ratio: 1 / 1; height: auto; }

.om-dept-see-all {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: auto -18px 0; /* pinned to the card bottom so cards in a row align */
  padding: 13px 18px;
  border-top: 1px solid #e7e7e7;
  color: var(--om-link);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.om-dept-see-all:hover {
  background: #f7fafa;
  color: #c7511f;
}

/* ---------- Search results and department listings ---------- */

main:has(> .om-listing),
main:has(> .om-department-page) {
  background: #fff;
}

.om-listing.amazon-search-page {
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
}

.om-listing .amazon-search-count {
  margin: 0;
  color: var(--om-ink);
  font-size: 14px;
  font-weight: 400;
}

.om-listing .amazon-search-count strong { font-weight: 400; }

.om-listing-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 24px;
  padding: 14px 20px 36px;
}

.om-filters {
  min-width: 0;
}

.om-filters section {
  padding: 0 0 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid #e7e7e7;
}

.om-filters h2 {
  margin: 0 0 6px;
  color: var(--om-ink);
  font-size: 14px;
  font-weight: 700;
}

.om-filters p {
  margin: 0 0 6px;
  color: var(--om-muted);
  font-size: 13px;
  line-height: 1.4;
}

.om-filters a,
.om-filters .storefront-department-chip {
  display: block;
  min-height: 0;
  margin: 0;
  padding: 3px 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: var(--om-ink);
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
}

.om-filters nav {
  display: block;
  margin: 0;
  padding: 0;
}

.om-filters a:hover { color: #c7511f; }
.om-filters .is-selected { font-weight: 700; }

.om-results-title {
  margin: 0 0 2px;
  color: var(--om-ink);
  font-size: 20px;
  font-weight: 700;
}

.om-result-list.product-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin: 10px 0 24px;
  padding: 0;
  list-style: none;
}

.om-result.product-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 1px solid #e7e7e7;
  border-radius: 6px;
  background: #fff;
  box-shadow: none;
  overflow: hidden;
}

.om-result-media {
  display: grid;
  place-items: center;
  min-height: 220px;
  background: var(--om-tile);
}

.om-result-media img {
  width: 88%;
  height: 200px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.om-result-media-pending {
  color: var(--om-muted);
  font-size: 12px;
}

.om-result-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
  padding: 14px 18px 14px 0;
}

.om-result-brand {
  margin: 0;
  color: var(--om-muted);
  font-size: 12px;
}

.om-result h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
}

.om-result h3 a {
  display: inline;
  padding: 0;
  color: var(--om-ink);
  text-decoration: none;
}

.om-result h3 a:hover { color: #c7511f; }

.om-result-cta {
  min-width: 190px;
  margin-top: auto;
}

/* ---------- Product detail ---------- */

.product-page figure.product-media-stage {
  position: relative;
  margin: 0;
}

/* One stable gallery frame (review item 04): every photo - square, portrait or
   landscape - is contained whole inside the same square stage on a neutral
   ground. Nothing is cropped, stretched or upscaled beyond the frame. */
.product-page .product-media-stage:not(.product-media-stage-pending) {
  width: min(100%, 620px);
  height: auto;
  min-height: 0;
  max-height: none;
  aspect-ratio: 1 / 1;
  justify-self: center;
  align-self: start;
  padding: 0;
  background: #fff;
  overflow: hidden;
}

.product-page .product-media-stage .product-visual-large {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  /* No inner padding: the frame itself is the margin. Padding here shrank every
     photo by ~10% inside an already bounded square (measured 313 px of a 390 px
     phone screen). Square gallery images carry their own designed margins. */
  padding: 0;
  object-fit: contain;
  object-position: center;
  background: #fff;
}

.product-page .product-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-trust-strip a {
  color: var(--om-link);
}

/* ---------- Tablet ---------- */

@media (max-width: 1100px) {
  .om-module-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .om-directory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .om-subnav-utilities { display: none; }
}

@media (max-width: 900px) {
  .om-listing-layout {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 16px;
  }
  .om-result.product-card {
    grid-template-columns: 170px minmax(0, 1fr);
  }
  .om-result-media { min-height: 180px; }
  .om-result-media img { height: 160px; }
}

/* ---------- Mobile (OneMkan mockup) ---------- */

@media (max-width: 700px) {
  body .site-header.amazon-shell-header {
    background: var(--om-navy);
    color: #fff;
  }

  body .amazon-header-main,
  body .amazon-header-main:has(.amazon-delivery) {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: 40px 42px;
    gap: 6px 10px;
    padding: 6px 10px 8px;
  }

  body .site-header.amazon-shell-header .amazon-brand {
    grid-column: 1;
    grid-row: 1;
    height: auto;
    min-height: 0;
    padding: 0 2px;
  }

  body .site-header.amazon-shell-header .onemkan-logo-image {
    width: 96px;
    max-height: none;
  }

  body .amazon-delivery {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    width: auto;
    max-width: 100%;
    height: 34px;
    min-height: 34px;
    padding: 0 2px;
    color: #fff;
  }

  body .amazon-delivery-unavailable span:last-child {
    font-size: 12px;
    color: #e6e6e6;
  }

  body .amazon-location-pin svg { fill: #fff; }

  body .amazon-delivery select {
    max-width: 180px;
    color: #fff;
    background: transparent;
    font-size: 13px;
  }

  body .amazon-delivery select option { color: #111; }

  body .amazon-global-search {
    grid-column: 1 / -1;
    grid-row: 2;
    grid-template-columns: minmax(0, 1fr) 46px;
    height: 42px;
    min-height: 42px;
    border: 0;
    border-radius: 8px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .15);
  }

  body .amazon-global-search input {
    grid-column: 1;
    height: 42px;
    min-height: 42px;
    padding: 0 12px;
    text-indent: 0;
    font-size: 16px;
  }

  body .amazon-global-search button,
  body .amazon-global-search button:hover {
    grid-column: 2;
    width: 46px;
    min-height: 42px;
    background: var(--om-orange);
    color: #111;
  }

  body .amazon-subnav {
    display: flex;
    align-items: center;
    height: 40px;
    min-height: 40px;
    padding: 0 6px;
    overflow: hidden;
    background: var(--om-navy-2);
  }

  body .amazon-categories-link {
    flex: 0 0 auto;
    padding: 8px 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
  }

  body .amazon-department-nav {
    display: flex;
    gap: 2px;
    overflow-x: auto;
  }

  body .amazon-department-nav a {
    flex: 0 0 auto;
    padding: 8px 8px;
    color: #fff;
    font-size: 14px;
    white-space: nowrap;
    text-decoration: none;
  }

  .amazon-all-menu .amazon-menu-panel {
    width: 100vw;
    bottom: 58px;
    box-shadow: none;
  }

  /* Home order follows the mockup: banner, Shop by Category, product rails, then modules. */
  section.om-home.amazon-home.amazon-home-modules { padding: 0 0 12px; background: #fff; }
  main:has(> .om-home) { background: #fff; }
  .om-spotlight { order: 0; height: auto; margin: 10px 10px 0; border-radius: 10px; }
  .om-spotlight-slide {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    align-items: center;
    gap: 8px;
    min-height: 196px;
    padding: 16px 14px 28px;
  }
  .om-spotlight-slide::after { display: none; }
  .om-spotlight-kicker { font-size: 11px; margin-bottom: 4px; }
  .om-spotlight-copy h2 { font-size: 24px; }
  .om-spotlight-product {
    display: -webkit-box;
    overflow: hidden;
    margin: 6px 0 10px;
    font-size: 12px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  .om-spotlight-actions .om-btn { min-height: 32px; padding: 0 16px; font-size: 13px; }
  .om-spotlight-actions .om-btn.om-spotlight-dept { font-size: 13px; }
  .om-spotlight-media,
  .om-spotlight-media[class*="om-spotlight-count-"] {
    width: 100%;
    grid-template-columns: repeat(var(--om-preview-cols, 1), minmax(0, 1fr));
  }
  .om-spotlight-media.om-spotlight-count-1 { --om-preview-cols: 1; width: min(100%, 220px); }
  .om-spotlight-media.om-spotlight-count-2 { --om-preview-cols: 2; }
  .om-spotlight-media.om-spotlight-count-3 { --om-preview-cols: 3; }
  .om-spotlight-media.om-spotlight-count-4 { --om-preview-cols: 4; }
  .om-spotlight-arrow { display: none; }
  .om-spotlight-dots { display: flex; top: auto; bottom: 10px; }

  .om-shop-by-category { order: 1; }
  .om-rail { order: 2; }
  .om-module-row { order: 3; }
  .om-module-row-more { order: 4; }

  .om-home-band {
    margin: 0;
    padding: 16px 12px 6px;
    border-top: 8px solid #eaeded;
  }
  .om-shop-by-category { border-top: 0; }
  .om-band-head { justify-content: space-between; margin-bottom: 10px; }
  .om-band-head h2 { font-size: 18px; }

  .om-category-tiles {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px 8px;
  }
  .om-category-tile-media {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    border-radius: 12px;
  }
  .om-category-tile-label { font-size: 11px; font-weight: 500; }

  .om-module-row-more .om-module-products.om-count-1 .om-module-media,
  .om-module-row-more .om-module-products.om-count-2 .om-module-media {
    height: auto;
    aspect-ratio: 1 / 1.05;
  }

  .om-rail-track { grid-auto-columns: 42%; gap: 10px; }
  .om-rail-media { height: auto; aspect-ratio: 1; }
  .om-rail-title { font-size: 13px; }

  /* Department modules scroll horizontally on phones: every card keeps the same
     width and height, so odd counts never leave an orphaned half-row. */
  .om-module-row,
  .om-module-row-more,
  .om-module-row-more[class*="om-row-count-"] {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 78%;
    gap: 10px;
    margin: 0;
    padding: 12px;
    border-top: 8px solid #eaeded;
    background: #eaeded;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .om-module-row::-webkit-scrollbar,
  .om-module-row-more::-webkit-scrollbar { display: none; }
  .om-module { padding: 14px 12px 12px; scroll-snap-align: start; }
  .om-module-head h2, .om-module > h2, .om-account-module h2 { font-size: 16px; }
  .om-module-products { gap: 8px 10px; }
  .om-account-module { grid-column: auto; }

  /* Categories directory: one big card per department. */
  .om-directory { padding: 10px 12px 28px; }
  .om-directory-header h1 { font-size: 22px; }
  .om-directory-header p { font-size: 13px; }
  .om-directory-index { margin: 0 -12px; padding: 10px 12px; }
  .om-directory-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 14px; }
  .om-dept-card { padding: 14px 14px 0; }
  .om-dept-card-head h2 { font-size: 19px; }
  .om-dept-see-all { margin: 0 -14px; padding: 12px 14px; }
  .om-dept-previews.om-count-2 .om-dept-preview-media { aspect-ratio: 1; height: auto; }
  .om-dept-previews.om-count-1 .om-dept-preview-media { aspect-ratio: 4 / 3; height: auto; }

  /* Results: compact horizontal rows, one column. */
  .om-listing .om-listing-bar,
  .om-department-page .om-listing-bar {
    flex-wrap: wrap;
    padding: 8px 12px;
  }
  .om-listing-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 8px 10px 24px;
  }
  .om-filters {
    order: 2;
    padding-top: 10px;
    border-top: 8px solid #eaeded;
  }
  .om-results-title { font-size: 17px; }
  .om-result.product-card {
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 12px;
  }
  .om-result-media { min-height: 0; height: 100%; min-height: 150px; }
  .om-result-media img { width: 92%; height: 130px; }
  .om-result-body { padding: 10px 10px 10px 0; gap: 4px; }
  .om-result h3 { font-size: 15px; }
  .om-result h3 a {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }
  .om-result-desc { display: none; }
  .om-result-cta { min-width: 0; width: 100%; min-height: 32px; font-size: 12px; }
  .om-department-page .storefront-department-hero { margin: 8px 10px 0; }
  .om-department-page .storefront-breadcrumbs { padding: 8px 12px 0; }
}

/* Result titles are plain inline links even where older card rules target .product-link. */
.om-result .om-result-title.product-link {
  display: inline;
  width: auto;
  grid-template-columns: none;
  padding: 0;
  gap: 0;
}

.om-module-products .product-link,
.om-rail-card .product-link {
  padding: 0;
  grid-template-columns: none;
}

.om-module-media .product-visual,
.om-rail-media .product-visual,
.om-result-media .product-visual {
  max-width: none;
  aspect-ratio: auto;
  border: 0;
  background: transparent;
}

.om-listing .amazon-search-count {
  display: block;
  text-align: left;
}

@media (max-width: 700px) {
  .om-result .om-result-title.product-link {
    display: -webkit-box;
  }
}

.om-result-cta {
  margin-top: 8px;
}

.om-module-caption,
.om-dept-preview-title,
.om-rail-title {
  max-height: 2.7em;
}

.om-listing h1.amazon-search-count {
  width: auto;
  text-align: left;
}

/* ---------- Cart (reference screenshot 5) ---------- */

main:has(> .om-cart-page) {
  background: var(--om-page);
}

.om-cart-page.shell {
  width: min(100% - 32px, 1500px);
  padding: 20px 0 36px;
}

.om-cart-empty {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 20px;
  align-items: start;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  text-align: left;
}

.om-cart-empty-main,
.om-cart-empty-side {
  padding: 24px 26px;
  background: #fff;
}

.om-cart-empty-main h1 {
  margin: 0 0 8px;
  color: var(--om-ink);
  font-size: 28px;
  font-weight: 700;
}

.om-cart-empty-main p,
.om-cart-empty-side p {
  margin: 0 0 16px;
  color: var(--om-muted);
  font-size: 14px;
}

.om-cart-empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.om-cart-page .cart-items,
.om-cart-page .cart-browse-only {
  background: #fff;
}

.om-cart-page .cart-browse-only {
  padding: 20px 24px;
}

@media (max-width: 700px) {
  .om-cart-page.shell { width: auto; padding: 0 0 24px; }
  .om-cart-empty { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .om-cart-empty-main, .om-cart-empty-side { padding: 18px 16px; }
  .om-cart-empty-main h1 { font-size: 22px; }
}

/* ---------- Header interaction system (review items 05, 08, 12) ---------- */

/* One subtle hover for every header control: a soft surface highlight with a
   fixed rounded shape. Borders never appear, so nothing shifts on hover. */
body .site-header :is(
  .amazon-delivery,
  .amazon-header-link,
  .amazon-cart-link,
  .amazon-all-menu > summary,
  .amazon-categories-link,
  .amazon-department-nav a,
  .om-subnav-utilities a
) {
  border-color: transparent;
  border-radius: 6px;
  outline: none;
  transition: background-color .16s ease, color .16s ease, box-shadow .16s ease;
}

body .site-header :is(
  .amazon-delivery,
  .amazon-header-link,
  .amazon-cart-link,
  .amazon-all-menu > summary,
  .amazon-categories-link,
  .amazon-department-nav a,
  .om-subnav-utilities a
):hover {
  border-color: transparent;
  outline: none;
  background-color: rgba(255, 255, 255, .1);
}

/* The logo itself stays a transparent, square-cornered container (the release
   logo contract); the same rounded highlight is drawn on a layer behind it. */
body .site-header .amazon-brand {
  position: relative;
  border-color: transparent;
  border-radius: 0;
  background: transparent;
  isolation: isolate;
}

body .site-header .amazon-brand::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 6px;
  background: transparent;
  transition: background-color .16s ease;
}

body .site-header .amazon-brand:hover {
  border-color: transparent;
  outline: none;
}

body .site-header .amazon-brand:hover::before {
  background: rgba(255, 255, 255, .1);
}

/* Keyboard focus stays unmistakable and is drawn inside the element, so it is
   never clipped by the scrolling department row. */
body .site-header :is(
  .amazon-brand,
  .amazon-delivery,
  .amazon-header-link,
  .amazon-cart-link,
  .amazon-all-menu > summary,
  .amazon-categories-link,
  .amazon-department-nav a,
  .om-subnav-utilities a,
  .amazon-global-search button
):focus-visible {
  outline: 2px solid #ffb547;
  outline-offset: -2px;
}

body .site-header .amazon-delivery:focus-within {
  box-shadow: inset 0 0 0 2px #ffb547;
}

@media (prefers-reduced-motion: reduce) {
  body .site-header * {
    transition: none !important;
  }
}

/* Search button: the grid track and the button share one width, so the icon is
   centred in the visible orange area (it used to overflow a narrower track). */
@media (min-width: 701px) {
  body .amazon-global-search {
    grid-template-columns: 58px minmax(0, 1fr) 52px;
  }
}

body .amazon-global-search button {
  width: 52px;
  min-width: 52px;
  display: grid;
  place-items: center;
  padding: 0;
  border-left: 0;
}

body .amazon-global-search button svg {
  width: 24px;
  height: 24px;
  margin: 0;
}

/* Free Shipping pill: see om-premium.css (one component on desktop and mobile). */

/* ---------- Mobile bottom navigation indicator (review item 11) ---------- */
/* One indicator for all five tabs: fixed size, centred on the icon+label group,
   built without grid placement or transforms so WebKit and Blink agree. */
@media (max-width: 700px) {
  body .amazon-mobile-bottom-nav .amazon-mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    text-decoration: none;
    -webkit-text-decoration: none;
  }

  body .amazon-mobile-bottom-nav .amazon-mobile-nav-label {
    text-decoration: none;
    -webkit-text-decoration: none;
    border: 0;
    box-shadow: none;
  }

  body .amazon-mobile-bottom-nav .amazon-mobile-nav-item.is-active::after,
  body .amazon-mobile-bottom-nav .amazon-mobile-nav-item[aria-expanded="true"]::after {
    content: "";
    position: absolute;
    left: 50%;
    top: -2px;
    bottom: auto;
    width: 24px;
    height: 2px;
    margin-left: -12px;
    border: 0;
    border-radius: 999px;
    background: var(--om-orange);
    transform: none;
  }
}

@media (max-width: 700px) {
  /* While the Menu panel is open, the indicator moves to Menu only. */
  body .amazon-mobile-bottom-nav:has([aria-expanded="true"]) .amazon-mobile-nav-item.is-active:not([aria-expanded])::after {
    content: none;
  }
}

/* Department banner: see om-premium.css. */

/* Shared catalog cover treatment (review item 06): neutral ground, whole
   product visible, identical inner margin in every grid. */
:is(.om-module-media, .om-rail-media, .om-dept-preview-media, .om-result-media) {
  background: #f6f7f7;
}
:is(.om-module-media, .om-rail-media, .om-dept-preview-media) img {
  inset: 7%;
  width: 86%;
  height: 86%;
  object-fit: contain;
}

/* ---------- Free Shipping landing hero (review item 13) ---------- */
/* Free Shipping hero: see om-premium.css. */

/* ---------- Empty cart (review item 14) ---------- */
body .om-cart-page .om-cart-empty {
  display: block;
  max-width: 760px;
  margin: 12px auto 40px;
}

body .om-cart-page .om-cart-empty-main {
  display: grid;
  justify-items: center;
  gap: 0;
  padding: 40px clamp(20px, 5vw, 56px) 28px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 17, 17, .08);
  text-align: center;
}

.om-cart-empty-icon {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: #fff4e5;
  color: #c45500;
}

.om-cart-empty-icon svg { width: 46px; height: 46px; }

body .om-cart-page .om-cart-empty-main h1 {
  margin: 0;
  font-size: clamp(26px, 3vw, 32px);
  font-weight: 800;
}

body .om-cart-page .om-cart-empty-main > p:not(.om-cart-empty-note) {
  max-width: 460px;
  margin: 10px 0 0;
  color: #37475a;
  font-size: 15px;
}

body .om-cart-page .om-cart-empty-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}

body .om-cart-page .om-cart-empty-actions .om-btn {
  min-height: 44px;
  padding: 0 24px;
  font-size: 15px;
}

.om-cart-empty-departments {
  width: 100%;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #e7e7e7;
}

.om-cart-empty-departments h2 {
  margin: 0 0 10px;
  color: #565959;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.om-cart-empty-departments ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.om-cart-empty-departments a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid #c9cccc;
  border-radius: 999px;
  color: #131921;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.om-cart-empty-departments a:hover {
  border-color: var(--om-orange);
  background: #fff6ea;
}

.om-cart-empty-departments a:focus-visible,
.om-cart-empty-note a:focus-visible {
  outline: 2px solid #c45500;
  outline-offset: 2px;
}

body .om-cart-page .om-cart-empty-note {
  margin: 22px 0 0;
  color: #565959;
  font-size: 13px;
}

.om-cart-empty-note a { color: var(--om-link); }

@media (max-width: 700px) {
  body .om-cart-page .om-cart-empty { margin: 8px 0 24px; }
  body .om-cart-page .om-cart-empty-main { padding: 28px 16px 22px; border-radius: 0; }
  body .om-cart-page .om-cart-empty-actions .om-btn {
    flex: 1 1 140px;
    padding: 0 12px;
    font-size: 14px;
    white-space: nowrap;
  }
}

/* Free Shipping truthful pending state: a calm card, not loose text. */
body .amazon-free-shipping-page .amazon-department-empty {
  margin: 8px 0 32px;
  padding: 24px clamp(16px, 3vw, 32px);
  border: 1px dashed #c9cccc;
  border-radius: 12px;
  background: #fff;
}

body .amazon-free-shipping-page .amazon-department-empty h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

body .amazon-free-shipping-page .amazon-department-empty p {
  margin: 6px 0 0;
  color: #565959;
}

body .amazon-free-shipping-page > .amazon-department-products {
  margin: 0 20px;
}

@media (max-width: 700px) {
  body .amazon-free-shipping-page > .amazon-department-products { margin: 0 10px; }
}

/* ---------- Browse-phase cart and checkout preview (Phase W) ---------- */

.om-us-price strong { color: var(--om-ink); }
.om-free-shipping-note,
.om-us-price small { display: block; color: #067d62; font-size: 12px; font-weight: 600; }
.om-cart-preview-heading h1 { margin: 0 0 6px; font-size: 26px; }
.om-cart-preview-heading p { margin: 0 0 14px; color: var(--om-muted); font-size: 14px; }
.om-cart-line-ship { margin: 4px 0; color: #067d62; font-size: 13px; }
.om-cart-line-pending { margin: 4px 0; color: var(--om-muted); font-size: 13px; }
.om-cart-line-controls { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin-top: 8px; }
.om-cart-inline-form { display: inline-flex; gap: 6px; align-items: center; margin: 0; font-size: 13px; }
.om-cart-inline-form select {
  min-height: 32px; padding: 4px 8px; border: 1px solid var(--om-line); border-radius: 8px;
  background: var(--om-tile); color: var(--om-ink); font: inherit;
}
.om-js .om-noscript-submit { display: none; }
.om-cart-preview-summary,
.om-checkout-summary { padding: 18px 20px; background: #fff; }
.om-cart-summary-ship { margin: 6px 0; font-size: 14px; }
.om-cart-summary-pending,
.om-cart-summary-note,
.om-checkout-hint { margin: 8px 0; color: var(--om-muted); font-size: 13px; }
.om-checkout-card { padding: 18px 20px; background: #fff; border-radius: 8px; }
.om-checkout-card h2 { display: flex; gap: 10px; align-items: center; margin: 0 0 10px; font-size: 18px; }
.om-pay-option { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--om-line); border-radius: 8px; cursor: pointer; }
.om-pay-option:has(input:checked) { border-color: var(--om-orange); box-shadow: 0 0 0 1px var(--om-orange); }
.om-pay-option small { display: block; color: var(--om-muted); }
.om-checkout-unavailable { max-width: 640px; margin: 24px auto; }

@media (max-width: 700px) {
  .om-cart-page .cart-browse-only { padding: 14px 12px; }
  .om-checkout-card, .om-checkout-summary, .om-cart-preview-summary { padding: 14px 12px; }
}
.om-cart-preview-summary .amazon-cart-subtotal [data-cart-subtotal] { color: var(--om-ink); font-size: 18px; font-weight: 700; }

/* Product video: always after the still images, never autoplayed or preloaded. */
.om-product-video { margin-top: 12px; }
/* Space is reserved before the poster or metadata loads (no layout shift). */
.om-product-video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; max-height: 420px; object-fit: contain; border-radius: 8px; background: #000; }
.product-gallery-thumb.is-colour-matched { position: relative; }
.product-gallery-thumb.is-colour-matched::after {
  content: "◐"; position: absolute; right: 2px; bottom: 0; font-size: 12px; line-height: 1;
  color: var(--om-ink); background: rgba(255, 255, 255, .85); border-radius: 50%; padding: 1px 2px;
}

/* The delivery-country prompt is revealed by script after load: float it so it
   never pushes the page down (it caused CLS 0.045 desktop / 0.086 mobile). */
body .amazon-destination-notice {
  position: fixed;
  left: 50%;
  right: auto;
  top: auto;
  bottom: 16px;
  z-index: 60;
  width: min(560px, calc(100% - 24px));
  margin: 0;
  transform: translateX(-50%);
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(15, 17, 17, .28);
}
@media (max-width: 700px) {
  body .amazon-destination-notice { bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
}

/* ---- Address-first checkout (compact header, steps, cards) ---- */
.om-co-header { background: var(--om-navy); color: #fff; }
.om-co-header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; max-width: 1180px; margin: 0 auto; padding: 10px 16px; }
.om-co-back { display: inline-flex; align-items: center; gap: 6px; color: #fff; text-decoration: none; font-weight: 600; min-height: 44px; }
.om-co-back svg { width: 22px; height: 22px; }
.om-co-back:focus-visible, .om-co-link:focus-visible { outline: 3px solid var(--om-orange); outline-offset: 2px; border-radius: 4px; }
.om-co-brand img { height: 30px; width: auto; display: block; }
.om-co-secure { justify-self: end; font-size: 13px; color: #d6dbe0; }
.om-co-steps { display: flex; justify-content: center; gap: 4px 18px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0 16px 10px; font-size: 13px; color: #c8cdd2; }
.om-co-steps li span { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 1px solid #8a949e; font-size: 11px; margin-right: 4px; }
.om-co-steps li.is-current { color: #fff; font-weight: 700; }
.om-co-steps li.is-current span { background: var(--om-orange); border-color: var(--om-orange); color: var(--om-ink); }
.om-co-prelaunch { margin: 0; padding: 8px 16px; background: #fff8e6; border-bottom: 1px solid #f1d68a; font-size: 13px; text-align: center; }
.om-co-page { max-width: 1180px; margin: 0 auto; padding: 18px 16px 40px; display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
.om-co-main { display: grid; gap: 14px; min-width: 0; }
.om-co-title { font-size: 26px; margin: 0; }
.om-co-card { background: #fff; border: 1px solid var(--om-line); border-radius: 10px; padding: 16px; }
.om-co-card h2 { font-size: 18px; margin: 0 0 10px; }
.om-co-summary { position: sticky; top: 16px; }
.om-co-totals { margin: 0; display: grid; gap: 8px; font-size: 14px; }
.om-co-totals div { display: flex; justify-content: space-between; gap: 12px; }
.om-co-totals dd { margin: 0; text-align: right; }
.om-co-totals small { color: var(--om-muted); }
.om-co-total { border-top: 1px solid var(--om-line); padding-top: 10px; font-weight: 700; color: #b12704; font-size: 16px; }
.om-co-summary-note { font-size: 12.5px; color: var(--om-muted); margin: 10px 0 0; }
.om-co-summary-note.is-warning { color: #b3261e; }
.om-co-summary-pay { margin: 12px 0 0; font-size: 14px; }
.om-co-place-order { margin-top: 14px; min-height: 48px; font-size: 16px; }
.om-co-place-order[disabled] { opacity: .55; cursor: not-allowed; }
.om-co-primary { min-height: 48px; font-size: 16px; margin-top: 4px; }
.om-co-fieldset { border: 0; padding: 0; margin: 0 0 14px; }
.om-co-fieldset legend { font-weight: 700; font-size: 17px; margin-bottom: 8px; }
.om-co-field { display: grid; gap: 4px; margin-bottom: 12px; }
.om-co-field label { font-weight: 600; font-size: 14px; }
.om-co-field input, .om-co-field select { font-size: 16px; min-height: 44px; padding: 8px 10px; border: 1px solid #888c8c; border-radius: 8px; width: 100%; box-sizing: border-box; background: #fff; }
.om-co-field input:focus, .om-co-field select:focus { outline: 3px solid rgba(255, 138, 0, .45); border-color: var(--om-orange-deep); }
.om-co-field.has-error input, .om-co-field.has-error select { border-color: #b3261e; }
.om-co-req { color: #b3261e; }
.om-co-optional { color: var(--om-muted); font-weight: 400; font-size: 13px; }
.om-co-error { color: #b3261e; font-size: 13px; margin: 0; }
.om-co-help { color: var(--om-muted); font-size: 12.5px; margin: 0; }
.om-co-country { margin: 0 0 10px; }
.om-co-optional-field { margin: 0 0 10px; }
.om-co-optional-field summary { color: var(--om-link); cursor: pointer; min-height: 32px; display: flex; align-items: center; }
.om-co-banner { border-radius: 10px; padding: 12px 14px; border: 1px solid; display: grid; gap: 4px; }
.om-co-banner.is-error { background: #fdecea; border-color: #b3261e; border-left-width: 6px; color: #5f1411; }
.om-co-banner.is-warning { background: #fff4e5; border-color: #b25e00; }
.om-co-banner ul { margin: 4px 0 0; padding-left: 18px; }
.om-co-banner a { color: inherit; font-weight: 600; }
.om-co-address-summary address { font-style: normal; line-height: 1.5; }
.om-co-contact { color: var(--om-muted); font-size: 13px; margin: 6px 0 0; }
.om-co-advice { background: #fff4e5; border-radius: 6px; padding: 6px 10px; font-size: 13px; margin: 8px 0 0; }
.om-co-link { color: var(--om-link); font-weight: 600; }
.om-co-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.om-co-line { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 12px; padding: 10px; border: 1px solid transparent; border-radius: 10px; }
.om-co-line + .om-co-line { border-top-color: var(--om-line); }
.om-co-line.is-flagged { border: 2px solid #b3261e; background: #fffafa; }
.om-co-line[data-line-status="PRICE_CHANGED"] { border-color: #b25e00; background: #fffaf2; }
.om-co-line-img { width: 72px; height: 72px; object-fit: contain; background: #f7f7f7; border-radius: 6px; }
.om-co-line-title { margin: 0; font-weight: 600; line-height: 1.3; }
.om-co-line-title a { color: inherit; }
.om-co-line-meta { margin: 2px 0 0; font-size: 13px; color: var(--om-muted); }
.om-co-line-price { text-align: right; white-space: nowrap; }
.om-co-line-error { display: flex; gap: 6px; align-items: flex-start; color: #b3261e; font-weight: 600; font-size: 14px; margin: 8px 0 0; }
.om-co-line-error svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.om-co-price-change { margin: 8px 0 0; font-size: 14px; }
.om-co-price-change p { margin: 0 0 4px; }
.om-co-price-delta s { color: var(--om-muted); }
.om-co-price-delta span { color: #b25e00; }
.om-co-line-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; align-items: center; }
.om-co-line-actions form { margin: 0; }
.om-co-line-actions .om-btn { min-height: 40px; }
.om-co-qty { display: flex; gap: 6px; align-items: center; }
.om-co-qty select { min-height: 40px; border-radius: 8px; padding: 4px 8px; }
.om-co-blocked { color: #b3261e; font-weight: 600; }
.om-co-review-block { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.om-co-review-block address { font-style: normal; }
.om-co-legal { font-size: 13px; color: var(--om-muted); margin: 10px 0 0; }
.om-co-footer { border-top: 1px solid var(--om-line); padding: 16px; text-align: center; background: #fff; }
.om-co-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; font-size: 13px; }
.om-co-card-option { display: flex; gap: 10px; align-items: center; border: 1px dashed #aab1b8; border-radius: 8px; padding: 10px 12px; color: var(--om-muted); }
.om-co-card-option strong, .om-co-card-option small { display: block; }
.om-co-card-icon svg { width: 26px; height: 26px; }
/* Checkout: wallets first, then an "OR" rule, then the other methods. */
.om-pay-or { display: flex; align-items: center; gap: 12px; margin: 14px 0; color: #565959; font-size: 13px; font-weight: 700; letter-spacing: .08em; }
.om-pay-or::before, .om-pay-or::after { content: ""; flex: 1; height: 1px; background: #d5d9d9; }
.om-co-pay-form fieldset { border: 0; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; }
.om-co-pay-form legend h2 { margin: 0 0 6px; }
.om-pay-option { display: grid; grid-template-columns: 22px 64px minmax(0, 1fr); gap: 12px; align-items: center; border: 1px solid #c4c9cc; border-radius: 10px; padding: 12px; cursor: pointer; min-height: 56px; }
.om-pay-option:has(input:checked), .om-pay-option.is-selected { border: 2px solid var(--om-orange-deep); background: #fff8f0; }
.om-pay-option input { width: 20px; height: 20px; accent-color: var(--om-orange-deep); }
.om-pay-option-logo { display: grid; place-items: center; }
.om-pay-logo { height: 30px; width: auto; max-width: 64px; }
.om-pay-logo-paypal { height: 22px; }
/* Payment marks on the checkout's method cards. */
.payment-method-copy .om-pay-logo { display: block; height: 22px; width: auto; max-width: 92px; margin: 0 0 6px; }
.om-pay-option-text strong, .om-pay-option-text small { display: block; }
.om-pay-option-text small { color: var(--om-muted); font-size: 13px; }
.om-country-choice { max-width: 520px; margin: 24px auto; }
.om-country-option { display: flex; gap: 10px; align-items: center; border: 1px solid var(--om-line); border-radius: 8px; padding: 12px; margin-bottom: 8px; min-height: 44px; }
.om-country-choice fieldset { border: 0; padding: 0; margin: 0 0 12px; }
.om-price-country-prompt { font-size: 14px; color: var(--om-muted); }
.om-price-country-prompt a { color: var(--om-link); font-weight: 600; }
.om-cart-proceed { min-height: 50px; font-size: 16px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.om-cart-preview-summary { position: sticky; top: 16px; }
@media (max-width: 960px) {
  .om-co-page { grid-template-columns: minmax(0, 1fr); }
  .om-co-summary { position: static; }
  .om-co-page.is-review .om-co-summary { order: -1; }
}
@media (max-width: 700px) {
  .om-co-header-inner { grid-template-columns: auto 1fr auto; }
  .om-co-back-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .om-co-brand { justify-self: center; }
  .om-co-title { font-size: 22px; }
  .om-co-line { grid-template-columns: 60px minmax(0, 1fr); }
  .om-co-line-img { width: 60px; height: 60px; }
  .om-co-line-price { grid-column: 2; text-align: left; }
  .om-co-review-block, .om-co-address-summary.is-compact { flex-direction: column; align-items: flex-start; }
  .om-pay-option { grid-template-columns: 22px 52px minmax(0, 1fr); }
  /* One sticky cart action above the bottom navigation and the browser bar. */
  .om-cart-preview-summary { position: static; }
  .om-cart-sticky-cta { position: fixed; left: 0; right: 0; bottom: calc(66px + env(safe-area-inset-bottom)); z-index: 40; padding: 8px 12px; background: rgba(255, 255, 255, .97); box-shadow: 0 -2px 10px rgba(15, 17, 17, .12); }
  body:has(.om-cart-sticky-cta) main { padding-bottom: 96px; }
  .om-cart-sticky-cta .om-cart-summary-note { margin: 4px 0 0; font-size: 12px; text-align: center; }
}
/* Review: details in the wide column, summary on the right (desktop). */
@media (min-width: 961px) {
  .om-co-page.is-review .om-co-main { grid-column: 1; grid-row: 1; }
  .om-co-page.is-review .om-co-summary { grid-column: 2; grid-row: 1; }
}
/* Merchant spec: the cart's proceed action is the orange checkout button. */
.om-btn.om-cart-proceed { background: var(--om-orange); border-color: var(--om-orange-deep); color: var(--om-ink); }
.om-btn.om-cart-proceed:hover { background: var(--om-orange-deep); }
.om-btn.om-cart-proceed:focus-visible { outline: 3px solid var(--om-ink); outline-offset: 2px; }

/* ---- Product page: title above the photos, video as the last rail tile ---- */
.product-page .om-product-heading { margin: 6px 0 14px; max-width: 1100px; }
.product-page .om-product-heading h1 { margin: 2px 0 4px; font-size: 24px; line-height: 1.3; font-weight: 500; color: var(--om-ink); overflow-wrap: anywhere; }
.product-page .om-product-subtitle { margin: 0 0 6px; max-width: 72ch; font-size: 15px; line-height: 1.45; color: var(--om-ink-soft, #374151); overflow-wrap: break-word; }
.product-page .product-purchase-panel .product-title-block { padding-top: 0; }
.product-page .product-gallery-thumb:focus-visible { outline: 3px solid var(--om-orange); outline-offset: 1px; }
.product-page .product-media-stage { position: relative; }
@media (max-width: 700px) {
  .product-page .om-product-heading { margin: 4px 0 10px; }
  .product-page .om-product-heading h1 { font-size: 18px; line-height: 1.35; }
  .product-page .om-product-subtitle { font-size: 14px; line-height: 1.4; }
}
.om-co-variant { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 6px 0 0; }
.om-co-variant label { font-size: 13px; color: var(--om-muted); }
.om-co-variant select { min-height: 40px; border-radius: 8px; padding: 4px 8px; max-width: 100%; }
.om-co-account-email { margin: 0 0 6px; font-size: 14px; }
.om-co-saved { border: 1px solid var(--om-line); border-radius: 8px; padding: 10px 12px; margin: 0 0 12px; }
.om-co-saved-title { margin: 0 0 4px; font-weight: 700; font-size: 14px; }
.om-co-saved ul { margin: 0; padding-left: 18px; font-size: 14px; }
.om-co-save { display: flex; gap: 8px; align-items: center; margin: 4px 0 10px; min-height: 40px; font-size: 14px; }
.om-co-save input { width: 20px; height: 20px; accent-color: var(--om-orange-deep); }
/* Amazon-style quantity stepper in the cart (trash at 1, minus above 1). */
.om-qty-stepper { display: inline-flex; align-items: center; border: 3px solid var(--om-yellow, #ffd814); border-radius: 999px; overflow: hidden; height: 36px; margin: 0; }
.om-qty-stepper button { width: 38px; height: 100%; border: 0; background: #fff; font-size: 20px; line-height: 1; cursor: pointer; display: grid; place-items: center; color: var(--om-ink); }
.om-qty-stepper button svg { width: 18px; height: 18px; }
.om-qty-stepper button:hover { background: #f3f3f3; }
.om-qty-stepper button:focus-visible { outline: 3px solid var(--om-orange); outline-offset: -3px; }
.om-qty-stepper button[disabled] { color: #bbb; cursor: not-allowed; }
.om-qty-stepper output { min-width: 30px; text-align: center; font-weight: 700; font-size: 15px; }

/* Phones: the gallery column (main photo and thumbnail rail) spans the full
   screen width, so the square photo is edge to edge (still contained whole)
   instead of floating inside page gutters; the stage stays aligned with its
   gallery column. */
@media (max-width: 700px) {
  .product-page .product-gallery {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    justify-self: stretch;
  }
  .product-page .product-media-stage:not(.product-media-stage-pending) {
    border-left: 0;
    border-right: 0;
  }
  .product-page .product-gallery-thumbnails,
  .product-page .product-gallery > .om-product-video-note,
  .product-page .product-gallery > .om-colour-matched-note {
    padding-left: 12px;
    padding-right: 12px;
  }
}
