/* ============================================================
   INTERACTIVE MODALS, DRAWERS & WIZARDS
   ============================================================ */

/* Mega Menu Light Backdrop */
.mega-backdrop {
  position: fixed; inset: var(--nav) 0 0 0; z-index: 880;
  background: rgba(0,0,0,.15); opacity: 0; pointer-events: none;
  transition: opacity .25s var(--ease);
}
.mega-backdrop.open { opacity: 1; pointer-events: auto; }

/* Drawers & Backdrops */
.drawer-backdrop { position: fixed; inset: 0; z-index: 1000000 !important; background: rgba(0,0,0,.5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .35s var(--ease), visibility .35s var(--ease); }
.drawer-backdrop:not(.open) { visibility: hidden; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
.drawer-backdrop.open { opacity: 1; visibility: visible; pointer-events: auto; }
.cart-drawer { position: fixed; top: 0; right: 0; bottom: 0; height: 100%; height: 100dvh; max-height: 100dvh; width: min(440px, 90vw); z-index: 1000001 !important; background: #F8EEDB; box-shadow: -10px 0 40px rgba(0,0,0,.25); display: flex; flex-direction: column; overflow: hidden; transform: translateX(100%); transition: transform .4s var(--ease); touch-action: pan-y pinch-zoom; }
.drawer-backdrop.open .cart-drawer { transform: translateX(0); }

.drawer-head { padding: 20px 24px; border-bottom: 1px solid var(--hair); display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; touch-action: pan-y pinch-zoom; }
.drawer-head h3 { font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.btn-close { width: 32px; height: 32px; border-radius: 50%; background: var(--grey); display: flex; align-items: center; justify-content: center; font-size: 16px; cursor: pointer; transition: background .2s; border: none; }
.btn-close:hover { background: #E6D5B5; }

.drawer-body { flex: 1 1 auto; min-height: 0; height: auto; overflow-y: auto; -webkit-overflow-scrolling: touch; touch-action: pan-y pinch-zoom; overscroll-behavior-y: contain; padding: 20px 24px; display: flex; flex-direction: column; gap: 18px; }
.cart-item { display: grid; grid-template-columns: 80px 1fr; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--hair); touch-action: pan-y pinch-zoom; }
.cart-item-img { background: var(--grey); border-radius: 12px; padding: 8px; display: flex; align-items: center; justify-content: center; touch-action: pan-y pinch-zoom; }
.cart-item-img img { background: transparent !important; }
.cart-item-info { touch-action: pan-y pinch-zoom; }
.cart-item-info h4 { font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.cart-item-meta { font-size: 12px; color: var(--ink2); margin-bottom: 8px; }
.cart-item-bottom { display: flex; align-items: center; justify-content: space-between; }
.qty-ctrl { display: flex; align-items: center; border: 1px solid var(--hair); border-radius: 980px; padding: 2px 8px; gap: 8px; }
.qty-btn { font-size: 16px; font-weight: 600; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; cursor: pointer; user-select: none; }
.qty-val { font-size: 13px; font-weight: 600; }
.item-price { font-size: 14px; font-weight: 600; }
.btn-remove { color: var(--ink2); font-size: 12px; cursor: pointer; text-decoration: underline; }
.btn-remove:hover { color: #d93b4a; }

/* A row's photo and name open the product (cart.js productLink): the bag dropdown, the bag
   drawer and the wishlist. They keep the row's own colours; the photo eases up a touch and the
   name underlines so it reads as something to press. */
.cart-item-link { color: inherit; text-decoration: none; cursor: pointer; }
.cart-item-img .cart-item-link { display: block; line-height: 0; }
.cart-item-img .cart-item-link img { transition: transform .35s cubic-bezier(0.16, 1, 0.3, 1); }
.cart-item-img .cart-item-link:hover img { transform: scale(1.06); }
.cart-item-info h4 .cart-item-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.cart-item-link:focus-visible { outline: 2px solid #383C8C; outline-offset: 3px; border-radius: 4px; }

.drawer-foot { padding: 20px 24px; border-top: 1px solid var(--hair); background: #F8EEDB; flex-shrink: 0; touch-action: pan-y pinch-zoom; }
/* The bag's promo field. Shares .checkout-promo-row so there is one look and
   one dark-mode rule, but it sits at the TOP of the drawer foot rather than
   under a list, so the dashed rule goes below it instead of above. */
.drawer-promo-row { margin-top: 0; padding-top: 0; border-top: none;
  padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px dashed var(--hair); }
.cart-summary-row { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 8px; color: var(--ink2); }
.cart-summary-row.total { font-size: 18px; font-weight: 700; color: var(--ink); margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--hair); }
.free-shipping-bar { display: none !important; }
.btn-checkout { width: 100%; padding: 14px; background: var(--blue); color: #fff; border-radius: 980px; font-size: 16px; font-weight: 600; text-align: center; display: block; cursor: pointer; transition: background .2s; border: none; }
.btn-checkout:hover { background: #2B2E73; }

/* Modals Overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 995;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  box-sizing: border-box;
}
.modal-overlay:not(.open) {
  visibility: hidden;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.modal-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.modal-card {
  background: #F8EEDB;
  border-radius: 20px;
  width: min(1080px, 94vw);
  max-height: min(90vh, calc(100dvh - 36px));
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.28);
  position: relative;
  transform: scale(0.96);
  transition: transform 0.3s var(--ease);
  padding: 32px 36px 40px;
  margin: auto;
  box-sizing: border-box;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}
.modal-card::-webkit-scrollbar,
.modal-overlay::-webkit-scrollbar,
.account-portal-box::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
}
.modal-overlay.open .modal-card {
  transform: scale(1);
}

/* Circular Close Button */
.pv-circle-close {
  position: absolute; top: 18px; right: 18px; width: 36px; height: 36px;
  border-radius: 50%; background: #EFE2C6; color: #111;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 600; cursor: pointer;
  transition: all .2s; border: none; z-index: 30;
}
.pv-circle-close:hover { background: #e0e0e2; transform: scale(1.05); }

/* Authentic Nike PDP 2-Column Layout */
.pv-pdp-layout {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 40px;
  align-items: start;
}

/* Gallery Section (Left): Vertical Thumbnails + Big Square Stage */
.pv-pdp-gallery-wrap {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
  align-items: start;
}

/* Both of these set `display`, which outranks the user-agent's
   `[hidden] { display: none }` -- so el.hidden alone left a single-photo
   product showing an empty rail and two arrows that cycled one image. */
.pv-vert-thumbs-col[hidden],
.pv-nav-arrow-btn[hidden] { display: none !important; }

/* A product with one photo has no thumbnail rail. Without this the photo fell into the
   rail's 64px column and showed as a 64px square, beside an empty 1fr column. */
.pv-pdp-gallery-wrap:has(> .pv-vert-thumbs-col[hidden]) { grid-template-columns: 1fr; }

.pv-vert-thumbs-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 520px;
  overflow-y: auto;
  scrollbar-width: none;
  padding-right: 2px;
}
.pv-vert-thumbs-col::-webkit-scrollbar { display: none; }

.pv-vert-thumb-btn {
  width: 64px;
  height: 64px;
  background: #F3E6CC;
  border-radius: 6px;
  border: 1.5px solid transparent;
  padding: 4px;
  cursor: pointer;
  transition: border-color .15s ease, opacity .15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pv-vert-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.pv-vert-thumb-btn:hover {
  border-color: #bbb;
}
.pv-vert-thumb-btn.active {
  border-color: #111;
}

/* Main Image Stage */
.pv-main-stage-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #F3E6CC;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.pv-main-stage {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.pv-hero-shoe-img {
  max-width: 92%;
  max-height: 92%;
  object-fit: contain;
  transition: transform .3s ease, opacity .2s ease;
}

/* Stage Upper-Right Share Button (1st pic requirement) */
.pv-stage-share-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #F8EEDB;
  border: 1px solid #e5e5e5;
  color: #1C1D3D;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  z-index: 10;
  padding: 0;
  outline: none;
}
.pv-stage-share-btn svg {
  pointer-events: none;
}
.pv-stage-share-btn:hover {
  background: #F3E6CC;
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}
.pv-stage-share-btn:active {
  transform: scale(0.95);
}
.pv-stage-share-btn.copied {
  background: #1C1D3D;
  color: #ffffff;
  border-color: #1C1D3D;
}
.pv-stage-share-btn.copied .pv-share-icon {
  display: none !important;
}
.pv-stage-share-btn.copied .pv-share-check-icon {
  display: block !important;
}

/* Stage Next/Prev Arrows */
.pv-stage-nav-arrows {
  position: absolute;
  bottom: 16px;
  right: 16px;
  display: flex;
  gap: 8px;
  z-index: 10;
}
.pv-stage-nav-arrows[hidden] {
  display: none !important;
}
.pv-nav-arrow-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #F8EEDB;
  border: 1px solid #e5e5e5;
  color: #1C1D3D;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 0;
  outline: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}
.pv-nav-arrow-btn:hover {
  background: #F3E6CC;
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}
.pv-nav-arrow-btn:active {
  transform: scale(0.92) !important;
  transition: transform 0.08s ease;
}
.pv-nav-arrow-btn:focus-visible {
  outline: 2px solid var(--blue, #383C8C);
  outline-offset: 2px;
}

/* Right Section: Details & Buying Panel */
.pv-pdp-info-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pv-pdp-tag {
  font-size: 14px;
  font-weight: 700;
  color: #B3261E; /* rust red, 5.7:1 on the cream sheet (#d9381e measured 4.0:1) */
  line-height: 1.2;
}

.pv-pdp-title {
  font-size: 28px;
  font-weight: 700;
  color: #1C1D3D;
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 0;
  font-family: 'Outfit', 'Inter', sans-serif;
}

.pv-pdp-subtitle {
  font-size: 15px;
  font-weight: 500;
  color: #5E5870;
  margin-top: -8px;
}

/* Pricing */
.pv-pdp-price-wrap {
  margin-top: 2px;
}
.pv-pdp-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.pv-pdp-price {
  font-size: 18px;
  font-weight: 700;
  color: #1C1D3D;
  letter-spacing: -0.02em;
}
.pv-pdp-orig-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.pv-pdp-orig-wrap s,
.pv-pdp-orig-wrap .pprice-orig {
  font-size: 15px;
  color: var(--ink2, #5E5870);
  font-weight: 400;
  text-decoration: line-through;
}
.pv-pdp-tax-note {
  font-size: 13px;
  color: var(--ink2, #5E5870);
  margin-top: 4px;
}
.pv-pdp-duties-note {
  font-size: 12px;
  color: var(--ink2, #5E5870);
  margin-top: 1px;
}

/* Short Product Description in PDP (2nd pic requirement) */
.pv-short-desc-wrap {
  margin-top: 2px;
  margin-bottom: 2px;
}
.pv-short-desc {
  font-size: 14px;
  line-height: 1.55;
  color: #444444;
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: -0.01em;
}

/* Coloured Shoes Swatch Switcher (SHOE THUMBNAILS, NOT DOTS!) */
.pv-colourways-block {
  margin-top: 4px;
}
.pv-shoe-swatches-grid {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.pv-shoe-swatch-card {
  width: 70px;
  height: 70px;
  border-radius: 8px;
  border: 1.5px solid #e5e5e5;
  background: #F3E6CC;
  padding: 4px;
  cursor: pointer;
  transition: all .2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.pv-shoe-swatch-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.pv-shoe-swatch-card:hover {
  border-color: #5E5870;
}
.pv-shoe-swatch-card.active {
  border-color: #1C1D3D;
  box-shadow: 0 0 0 1px #1C1D3D;
}

/* Size Selector Matrix */
.pv-size-selector-block {
  margin-top: 6px;
}
.pv-size-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.pv-size-select-label {
  font-size: 15px;
  font-weight: 600;
  color: #1C1D3D;
}
.pv-size-guide-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #5E5870;
  text-decoration: none;
  transition: color .2s;
}
.pv-size-guide-link:hover {
  color: #1C1D3D;
}

/* The size chart as a BAR rather than a small grey word beside the heading.
   It was a 13px label the eye reads as a caption, sitting where nothing
   invites a click, on the one control a customer needs before choosing a
   size. Given the full width of the column it reads as something to press. */
.pv-size-chart-bar {
  justify-content: center;
  width: 100%;
  margin-top: 10px;
  padding: 11px 14px;
  border: 1px solid var(--pv-border, rgba(0, 0, 0, 0.14));
  border-radius: 10px;
  font-size: 13.5px;
  color: #1C1D3D;
  background: transparent;
  cursor: pointer;
  transition: background .18s, border-color .18s, color .18s;
}

.pv-size-chart-bar:hover,
.pv-size-chart-bar:focus-visible {
  background: rgba(0, 0, 0, 0.045);
  border-color: rgba(0, 0, 0, 0.32);
}

.pv-size-2col-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.pv-size-chip {
  height: 48px;
  border: 1px solid #dcdce0;
  border-radius: 6px;
  background: #F8EEDB;
  color: #1C1D3D;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
}
.pv-size-chip:hover:not(.selected):not(.sold-out) {
  border-color: #1C1D3D;
}
.pv-size-chip.selected,
.pv-size-chip.selected:hover,
.pv-size-chip.selected:focus,
.pv-size-chip.selected:active {
  border: 1.5px solid #1C1D3D;
  font-weight: 700;
}
.pv-size-chip.sold-out {
  background: #FBF4E6;
  color: #d2d2d2;
  border-color: #F3E6CC;
  cursor: not-allowed;
  opacity: 0.55;
  text-decoration: line-through;
  pointer-events: none;
}
.pv-size-chip.has-dual-size {
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  line-height: 1.15;
  padding: 4px 6px;
}
.pv-size-chip .pv-size-primary {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: inherit;
}
.pv-size-chip .pv-size-secondary {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.68;
  color: inherit;
}
.pv-size-chip.selected .pv-size-secondary {
  opacity: 0.9;
}
.pv-size-stock-hint {
  font-size: 12px;
  font-weight: 500;
  margin-top: 6px;
  min-height: 18px;
}

/* Primary Action Buttons */
.pv-pdp-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}
.pv-btn-add-bag {
  width: 100%;
  height: 56px;
  border-radius: 980px;
  background: #1C1D3D;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background .2s ease;
  text-align: center;
  font-family: inherit;
}
/* Mouse only: on a phone a tap leaves :hover stuck, and the grey read as a
   disabled button right after adding to the bag. */
@media (hover: hover) {
  .pv-btn-add-bag:hover {
    background: #5E5870;
  }
}
.pv-btn-add-bag:disabled {
  background: #e5e5e5;
  color: #9e9e9e;
  cursor: not-allowed;
}

.pv-btn-favourite {
  width: 100%;
  height: 56px;
  border-radius: 980px;
  background: #F8EEDB;
  color: #1C1D3D;
  border: 1.5px solid #cacacb;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
}
.pv-btn-favourite:hover {
  border-color: #1C1D3D;
}
.pv-btn-favourite.active {
  border-color: #ff3b30;
  color: #ff3b30;
}
.pv-btn-favourite.active svg {
  fill: #ff3b30;
  stroke: #ff3b30;
}

/* Add to Compare: the quieter of the two secondary actions. Indigo outline is
   "an action" in the house palette; the list itself is js/modules/compare.js. */
.pv-btn-compare {
  width: 100%;
  height: 48px;
  border-radius: 980px;
  background: transparent;
  color: var(--indigo, #383C8C);
  border: 1.5px solid var(--indigo, #383C8C);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  transition: background .2s ease, color .2s ease;
}
@media (hover: hover) {
  .pv-btn-compare:hover { background: rgba(56, 60, 140, 0.08); }
}
.pv-btn-compare.active { background: rgba(56, 60, 140, 0.12); }
html[data-theme="dark"] .pv-btn-compare:hover { background: rgba(169, 173, 240, 0.12); }
html[data-theme="dark"] .pv-btn-compare.active { background: rgba(169, 173, 240, 0.18); }

/* Hover zoom on the main photo (mouse only; js/modules/imageZoom.js). The lens
   follows the pointer; the magnified view fills the details column beside the
   photo, on the same cream plate the photo sits on. */
.pv-pdp-layout { position: relative; }
.pv-main-stage-wrap.is-zoomable { cursor: zoom-in; }
.pv-zoom-lens {
  position: absolute;
  display: none;
  pointer-events: none;
  z-index: 6;
  border: 1px solid rgba(56, 60, 140, 0.6);
  background: rgba(56, 60, 140, 0.1);
  border-radius: 2px;
}
.pv-zoom-pane {
  position: absolute;
  display: none;
  pointer-events: none;
  z-index: 40;
  overflow: hidden;
  background: var(--plate, #FFF6E3);
  border: 1px solid var(--border-regular, rgba(56, 60, 140, 0.16));
  border-radius: 12px;
  box-shadow: 0 18px 48px rgba(28, 29, 61, 0.22);
}
.pv-zoom-lens.on, .pv-zoom-pane.on { display: block; }
.pv-zoom-img {
  position: absolute;
  left: 0;
  top: 0;
  max-width: none;
  max-height: none;
  mix-blend-mode: multiply;
  user-select: none;
  will-change: transform;
}
html[data-theme="dark"] .pv-zoom-pane { background: #F3E6CC; border-color: rgba(246, 238, 223, 0.2); }
html[data-theme="dark"] .pv-zoom-lens { border-color: rgba(28, 29, 61, 0.7); background: rgba(28, 29, 61, 0.12); }

/* Delivery & Service Notes */
.pv-pdp-services {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid #EFE2C6;
}
.pv-service-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #5E5870;
}
.pv-service-item svg {
  color: #1C1D3D;
  flex-shrink: 0;
}

/* Full-Width Similar Section */
.pv-similar-section {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid #e5e5e5;
  width: 100%;
}
.pv-similar-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 20px;
}
.pv-similar-title {
  font-size: 22px;
  font-weight: 700;
  color: #1C1D3D;
  margin: 0;
}
.pv-similar-sub {
  font-size: 13px;
  color: #5E5870;
  margin: 4px 0 0;
}
.pv-similar-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px 12px;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 1024px) {
  .pv-similar-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px 10px;
  }
}

@media (max-width: 860px) {
  .pv-pdp-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .pv-pdp-gallery-wrap {
    grid-template-columns: 1fr;
  }
  .pv-vert-thumbs-col {
    flex-direction: row;
    max-height: unset;
    order: 2;
    overflow-x: auto;
  }
  .pv-vert-thumb-btn {
    width: 56px;
    height: 56px;
  }
  .pv-stage-share-btn {
    top: 14px;
    left: 14px;
    right: auto;
  }
  .modal-card {
    padding: 24px 20px 32px;
    border-radius: 18px;
  }
  .pv-pdp-title {
    font-size: 24px;
  }
  .pv-similar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px 10px !important;
  }
}

@media (max-width: 480px) {
  .pv-similar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px 8px !important;
  }
}

/* Find your size (fitFinder.js) and Find your pair (findYourPair.js) share one
   look, drawn from the house palette: indigo is the chosen answer and the
   button to press, burgundy the label, cream the fills. Every colour is a
   token that flips with the theme. Answers are real buttons (aria-pressed),
   at least 44px tall; the close button has its own column, so it no longer
   sits on the progress bar. */
.wizard-box { max-width: 560px; margin: 0 auto; padding: 28px 30px 26px; border-radius: 20px; background: #F8EEDB; }
#findPairOverlay.is-results .wizard-box { max-width: min(1080px, 94vw); }
.wz { --wz-fill: var(--surface-secondary, #F3E6CC); }
[data-theme="dark"] .wz { --wz-fill: var(--surface-tertiary, #26284A); }
.wz-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.wz-progress { flex: 1; display: flex; gap: 6px; }
.wz-seg { flex: 1; height: 4px; border-radius: 99px; background: var(--hair); transition: background .25s; }
.wz-seg.on { background: var(--indigo); }
.wz-eyebrow { margin: 0; font: 700 11px/1.2 'Inter', sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--burgundy); }
.wz-title { margin: 6px 0 4px; font: 800 26px/1.12 'Outfit', sans-serif; letter-spacing: -0.035em; color: var(--indigo); outline: none; }
.wz-title em { font-family: 'Playfair Display', serif; font-style: italic; font-weight: 600; letter-spacing: -0.01em; color: var(--burgundy); }
.wz-uk { color: var(--ink2); }
.wz-sub { margin: 6px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--ink2); }
.wz-sub a { color: var(--indigo); font-weight: 600; text-underline-offset: 3px; }
.wz-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 14px 0 4px; }
.wz-opt, .wz-size { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 52px; padding: 12px 14px;
  text-align: left; font: inherit; color: var(--ink); background: var(--wz-fill); border: 1.5px solid var(--hair); border-radius: 14px;
  cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.wz-opt b, .wz-size b { font-size: 14.5px; font-weight: 700; }
.wz-opt small, .wz-size small { font-size: 12px; color: var(--ink2); font-variant-numeric: tabular-nums; }
.wz-opt:hover, .wz-size:hover { border-color: var(--indigo); }
.wz-opt[aria-pressed="true"], .wz-size[aria-pressed="true"] { background: var(--indigo); border-color: var(--indigo); color: #fff; }
[data-theme="dark"] .wz-opt[aria-pressed="true"], [data-theme="dark"] .wz-size[aria-pressed="true"] { color: #14152D; }
.wz-opt[aria-pressed="true"] small, .wz-size[aria-pressed="true"] small { color: inherit; opacity: .8; }
.wz-swatch { display: inline-block; width: 12px; height: 12px; margin-right: 7px; border-radius: 50%; vertical-align: -1px; }
.wz-swatch.is-light { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .25); }
.wz-sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; margin: 14px 0 4px; }
.wz-size { align-items: center; text-align: center; min-height: 54px; padding: 8px 4px; border-radius: 10px; }
.wz-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; }
.wz-back { min-height: 44px; padding: 0; background: none; border: 0; font: 600 13.5px 'Inter', sans-serif; color: var(--ink2); cursor: pointer; }
.wz-back:hover { color: var(--indigo); }
.wz-stock { margin: 14px 0 0; padding: 10px 14px; border-radius: 12px; background: var(--wz-fill); font-size: 13.5px; color: var(--ink); }
.wz-stock.is-out { color: var(--burgundy); }
.wz-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.wz-actions > * { width: 100%; padding: 13px 18px; }
.wz-actions-row { flex-direction: row; flex-wrap: wrap; justify-content: center; }
.wz-actions-row > * { width: auto; }
.wz-links { display: flex; flex-wrap: wrap; gap: 4px 18px; justify-content: center; align-items: center; margin: 12px 0 0; font-size: 13px; color: var(--ink2); }
.wz-links button { min-height: 44px; padding: 0; background: none; border: 0; font: 600 13px 'Inter', sans-serif; color: var(--ink2);
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.wz-links button:hover { color: var(--indigo); }
.wz-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 18px; }
.wz-chip { min-height: 34px; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--hair); background: var(--wz-fill);
  font: 600 12.5px 'Inter', sans-serif; color: var(--ink); cursor: pointer; }
.wz-chip:hover { border-color: var(--indigo); }
.wz-grid.catalog-grid.nike-plp-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 16px; margin: 0; }
.wz-pick { display: flex; flex-direction: column; min-width: 0; }
.wz-pick .pcard { height: auto; }
.wz-why { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.wz-why span { padding: 3px 9px; border-radius: 99px; font-size: 11.5px; font-weight: 600; color: var(--burgundy);
  background: color-mix(in srgb, var(--burgundy) 10%, transparent); }
.wz :is(.wz-opt, .wz-size, .wz-chip, .wz-back, .wz-links button):focus-visible { outline: 2px solid var(--indigo); outline-offset: 2px; }
@media (max-width: 640px) {
  .wz-title { font-size: 22px; }
  .wz-opts { grid-template-columns: 1fr 1fr; }
  .wz-grid.catalog-grid.nike-plp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; }
}
@media (prefers-reduced-motion: reduce) { .wz-seg, .wz-opt, .wz-size { transition: none; } }

/* The product page's way into the Fit Finder, beside the size heading (shoes only). */
.pv-find-size-link { font-size: 13px; font-weight: 600; color: var(--indigo); text-decoration: underline; text-underline-offset: 3px; }

.tracker-timeline { margin-top: 24px; display: grid; gap: 16px; border-left: 2px solid var(--hair); padding-left: 20px; position: relative; }
.timeline-item { position: relative; font-size: 14px; }
.timeline-item::before { content: ''; position: absolute; left: -27px; top: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--hair); }
.timeline-item.done::before { background: var(--accent); }
.timeline-item.done { font-weight: 600; color: var(--ink); }

/* ================= LUXURY EXPRESS CHECKOUT MODAL (HIGH-PRECISION COMPACT) ================= */
/* Sized up on 17/09/2026. It was drawn "high-precision compact" and read as
   cramped on a phone -- 460px of card carrying eleven fields at 10.5-11.5px,
   with 28px controls. Everything below is the same layout with room to breathe;
   dropping the payment picker paid for most of the extra height. */
.checkout-box {
  max-width: 540px;
  margin: 0 auto;
  padding: 30px 30px 26px;
  border-radius: 22px;
  background: #F8EEDB;
}
.checkout-header-wrap {
  margin-bottom: 16px;
  padding-right: 36px;
}
.checkout-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #1C1D3D;
  margin-bottom: 3px;
}
.checkout-subtitle {
  font-size: 12.5px;
  color: #737373;
  line-height: 1.35;
}

/* Compact Collapsible Summary Box */
.checkout-summary-container {
  background: #FFFBF3;
  border: 1px solid rgba(28, 29, 61, 0.16);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 18px;
}
.checkout-summary-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}
.checkout-summary-head-left {
  display: flex;
  align-items: center;
  gap: 6px;
}
.checkout-summary-tag {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: #1C1D3D;
  letter-spacing: 0.03em;
}
.checkout-summary-verified {
  font-size: 11px;
  color: #383C8C;
  font-weight: 600;
}
.checkout-summary-head-right {
  display: flex;
  align-items: center;
  gap: 6px;
}
.checkout-summary-subtotal {
  font-size: 14px;
  font-weight: 700;
  color: #1C1D3D;
}
.checkout-summary-chevron {
  color: #737373;
  transition: transform 0.2s ease;
}
.checkout-summary-head.expanded .checkout-summary-chevron {
  transform: rotate(180deg);
}

.checkout-summary-drawer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s cubic-bezier(0.16, 1, 0.3, 1), margin-top 0.25s ease;
}
.checkout-summary-drawer.expanded {
  max-height: 220px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #e5e5e7;
}

.checkout-summary-items-list {
  max-height: 110px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 8px;
}
.checkout-mini-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}
.checkout-mini-thumb {
  width: 30px;
  height: 22px;
  object-fit: contain;
  background: #F8EEDB;
  border-radius: 4px;
  border: 1px solid #e5e5e7;
  flex-shrink: 0;
}
.checkout-mini-info {
  flex: 1;
  min-width: 0;
}
.checkout-mini-name {
  font-weight: 600;
  color: #1C1D3D;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.checkout-mini-meta {
  font-size: 10px;
  color: #737373;
}
.checkout-mini-price {
  font-weight: 600;
  color: #1C1D3D;
  white-space: nowrap;
}

/* A field people are meant to find and use, so it is sized like one. flex-wrap
   with a shrinkable input for the same reason the admin's vault row has it: an
   <input> carries an intrinsic min-width and will not shrink, and the button
   beside it does not wrap. */
.checkout-promo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed rgba(28, 29, 61, 0.22);
}
.checkout-promo-row input {
  flex: 1 1 140px;
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(28, 29, 61, 0.28);
  border-radius: 10px;
  font-size: 14px;
  text-transform: uppercase;
  background: #FFFBF3;
  color: #1C1D3D;
  outline: none;
  font-family: inherit;
}
.checkout-promo-row input::placeholder {
  color: #7A748E;
}
.checkout-promo-row input:focus {
  border-color: #383C8C;
  box-shadow: 0 0 0 3px rgba(56, 60, 140, 0.16);
}
.checkout-promo-row button {
  height: 44px;
  padding: 0 22px;
  white-space: nowrap;
  border: 1px solid #1C1D3D;
  background: #1C1D3D;
  color: #ffffff;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.checkout-promo-row button:hover {
  background: #333336;
}
/* Why a code came off at Place Order (cart.js promoRefusal). A light chip, as
   .auth-inline-error is, so it reads the same in both themes. */
.checkout-promo-msg {
  margin: 6px 0 0;
  padding: 5px 8px;
  border: 1px solid #ffcdd2;
  border-radius: 6px;
  background: #fff2f2;
  color: #c62828;
  font-size: 12px;
  line-height: 1.4;
}

/* Guest checkout (cart.js showGuestChoice): Sign in beside Continue as guest.
   Theme variables, so dark mode needs no second rule. */
.checkout-guest-choice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid var(--hair);
  border-radius: 10px;
  background: var(--grey);
}
.checkout-guest-text {
  flex: 1 1 200px;
  margin: 0;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--ink2);
}
.checkout-guest-actions {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;   /* side by side where they fit, stacked on a narrow phone */
  gap: 8px;
}
.checkout-guest-actions button {
  flex: 1 1 140px;
  min-height: 44px;
  padding: 10px 14px;
  font-size: 13px;
}
/* After a guest pays: where the confirmation went and how to find the order. */
.checkout-guest-after {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink2);
}
.checkout-guest-after p { margin: 0 0 6px; }
.checkout-guest-after a { color: var(--blue); font-weight: 600; }

/* Sections & Headers */
.checkout-section {
  margin-bottom: 20px;
}
.checkout-sec-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.checkout-sec-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink2, #5E5870);
}
.btn-checkout-toggle-addr {
  background: none;
  border: none;
  font-size: 12.5px;
  font-weight: 600;
  color: #383C8C;
  cursor: pointer;
  padding: 0;
  transition: opacity 0.15s ease;
}
.btn-checkout-toggle-addr:hover {
  text-decoration: underline;
}

/* Saved Addresses List */
.checkout-saved-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 6px;
  max-height: 150px;
  overflow-y: auto;
}
.checkout-addr-card {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid #e5e5e7;
  border-radius: 9px;
  background: #F8EEDB;
  cursor: pointer;
  transition: all 0.15s ease;
}
.checkout-addr-card:hover {
  border-color: #b0b0b5;
  background: #fafafc;
}
.checkout-addr-card.active {
  border-color: #1C1D3D;
  background: #f8f8fb;
  box-shadow: 0 0 0 1px #1C1D3D;
}
.checkout-addr-radio {
  width: 13px;
  height: 13px;
  border: 1.5px solid #b5b5ba;
  border-radius: 50%;
  margin-top: 2px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s ease;
}
.checkout-addr-card.active .checkout-addr-radio {
  border-color: #1C1D3D;
}
.checkout-addr-card.active .checkout-addr-radio::after {
  content: '';
  width: 5.5px;
  height: 5.5px;
  background: #1C1D3D;
  border-radius: 50%;
}
.checkout-addr-body {
  flex: 1;
  min-width: 0;
}
.checkout-addr-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
}
.checkout-addr-name {
  font-weight: 700;
  color: #1C1D3D;
}
.checkout-addr-phone {
  font-size: 12px;
  color: #737373;
}
.checkout-addr-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 1px 4px;
  background: #e5e5e7;
  color: #1C1D3D;
  border-radius: 3px;
}
.checkout-addr-text {
  font-size: 12px;
  color: #555558;
  margin-top: 1px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Compact Form Fields */
/* Fields are a lighter sheet than the card they sit on, with a border you can see: the old
   cream-on-cream fill with a #e5e5e7 hairline made eleven boxes that read as one smear. */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.form-group label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink2, #5E5870);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.form-control {
  padding: 0 14px;
  height: 46px;
  border: 1px solid rgba(28, 29, 61, 0.28);
  border-radius: 12px;
  font-size: 15px;
  color: #1C1D3D;
  outline: none;
  font-family: inherit;
  background: #FFFBF3;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-control::placeholder {
  color: #7A748E;
}
.form-control:focus {
  border-color: #383C8C;
  box-shadow: 0 0 0 3px rgba(56, 60, 140, 0.16);
}
.form-row {
  display: grid;
  gap: 12px;
}
.form-row-2col {
  grid-template-columns: 1fr 1fr;
}
.checkout-save-addr-row {
  margin-top: 4px;
  margin-bottom: 8px;
}
.checkout-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink2, #5E5870);
  cursor: pointer;
  user-select: none;
}
.checkout-checkbox-label input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: #1C1D3D;
  cursor: pointer;
}

/* Compact Payment Methods */
.pay-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 8px;
}
.pay-card {
  border: 1px solid #e5e5e7;
  border-radius: 7px;
  padding: 5px 2px;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
  background: #F8EEDB;
  user-select: none;
}
.pay-card:hover {
  border-color: #1C1D3D;
}
.pay-card.active {
  border-color: #1C1D3D;
  background: #1C1D3D;
  color: #ffffff;
}
.pay-card-title {
  display: block;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}
.pay-card-sub {
  display: block;
  font-size: 10px;
  opacity: 0.7;
  margin-top: 1px;
}

/* Total Strip & Submit Button */
.checkout-total-strip {
  background: #F3E6CC;
  padding: 14px 16px;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.checkout-total-label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: #1C1D3D;
}
.checkout-total-sub {
  display: block;
  font-size: 12px;
  color: #383C8C;
  font-weight: 600;
}
.checkout-total-price {
  font-size: 18px;
  font-weight: 800;
  color: #1C1D3D;
}
.btn-checkout-submit {
  width: 100%;
  height: 52px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* ================= LUXURY CHECKOUT MODAL (DARK MODE SUPPORT) ================= */
[data-theme="dark"] .checkout-box,
html.dark .checkout-box,
body.dark .checkout-box {
  background: #151518 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.8) !important;
  color: #F3E6CC !important;
}

[data-theme="dark"] .checkout-title,
html.dark .checkout-title,
body.dark .checkout-title {
  color: #ffffff !important;
}

[data-theme="dark"] .checkout-subtitle,
html.dark .checkout-subtitle,
body.dark .checkout-subtitle {
  color: #9ca3af !important;
}

[data-theme="dark"] .checkout-summary-container,
html.dark .checkout-summary-container,
body.dark .checkout-summary-container {
  background: #1c1c22 !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] .checkout-summary-tag,
html.dark .checkout-summary-tag,
body.dark .checkout-summary-tag,
[data-theme="dark"] .checkout-summary-subtotal,
html.dark .checkout-summary-subtotal,
body.dark .checkout-summary-subtotal {
  color: #ffffff !important;
}

[data-theme="dark"] .checkout-summary-drawer.expanded,
html.dark .checkout-summary-drawer.expanded,
body.dark .checkout-summary-drawer.expanded {
  border-top-color: rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] .checkout-mini-thumb,
html.dark .checkout-mini-thumb,
body.dark .checkout-mini-thumb {
  background: #24242a !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] .checkout-mini-name,
html.dark .checkout-mini-name,
body.dark .checkout-mini-name,
[data-theme="dark"] .checkout-mini-price,
html.dark .checkout-mini-price,
body.dark .checkout-mini-price {
  color: #ffffff !important;
}

[data-theme="dark"] .checkout-mini-meta,
html.dark .checkout-mini-meta,
body.dark .checkout-mini-meta {
  color: #9ca3af !important;
}

[data-theme="dark"] .checkout-promo-row,
html.dark .checkout-promo-row,
body.dark .checkout-promo-row {
  border-top-color: rgba(255, 255, 255, 0.12) !important;
}

[data-theme="dark"] .checkout-promo-row input,
html.dark .checkout-promo-row input,
body.dark .checkout-promo-row input {
  background: #24242a !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
}

[data-theme="dark"] .checkout-promo-row button,
html.dark .checkout-promo-row button,
body.dark .checkout-promo-row button {
  background: #ffffff !important;
  color: #1C1D3D !important;
  border-color: #ffffff !important;
}

[data-theme="dark"] .checkout-sec-label,
html.dark .checkout-sec-label,
body.dark .checkout-sec-label,
[data-theme="dark"] .form-group label,
html.dark .form-group label,
body.dark .form-group label {
  color: #9ca3af !important;
}

[data-theme="dark"] .checkout-addr-card,
html.dark .checkout-addr-card,
body.dark .checkout-addr-card {
  background: #1c1c22 !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

[data-theme="dark"] .checkout-addr-card:hover,
html.dark .checkout-addr-card:hover,
body.dark .checkout-addr-card:hover {
  background: #24242a !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
}

[data-theme="dark"] .checkout-addr-card.active,
html.dark .checkout-addr-card.active,
body.dark .checkout-addr-card.active {
  background: #23232b !important;
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 1px #3b82f6 !important;
}

[data-theme="dark"] .checkout-addr-card.active .checkout-addr-radio,
html.dark .checkout-addr-card.active .checkout-addr-radio,
body.dark .checkout-addr-card.active .checkout-addr-radio {
  border-color: #3b82f6 !important;
}

[data-theme="dark"] .checkout-addr-card.active .checkout-addr-radio::after,
html.dark .checkout-addr-card.active .checkout-addr-radio::after,
body.dark .checkout-addr-card.active .checkout-addr-radio::after {
  background: #3b82f6 !important;
}

[data-theme="dark"] .checkout-addr-name,
html.dark .checkout-addr-name,
body.dark .checkout-addr-name {
  color: #ffffff !important;
}

[data-theme="dark"] .checkout-addr-phone,
html.dark .checkout-addr-phone,
body.dark .checkout-addr-phone,
[data-theme="dark"] .checkout-addr-text,
html.dark .checkout-addr-text,
body.dark .checkout-addr-text {
  color: #9ca3af !important;
}

[data-theme="dark"] .checkout-addr-tag,
html.dark .checkout-addr-tag,
body.dark .checkout-addr-tag {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
}

[data-theme="dark"] .form-control,
html.dark .form-control,
body.dark .form-control {
  background: #1c1c22 !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  color: #ffffff !important;
}

[data-theme="dark"] .form-control:focus,
html.dark .form-control:focus,
body.dark .form-control:focus {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25) !important;
}

[data-theme="dark"] .checkout-checkbox-label,
html.dark .checkout-checkbox-label,
body.dark .checkout-checkbox-label {
  color: #9ca3af !important;
}

/* Pay Cards in Dark Mode */
[data-theme="dark"] .pay-card,
html.dark .pay-card,
body.dark .pay-card {
  background: #1c1c22 !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: #e5e5e7 !important;
}

[data-theme="dark"] .pay-card:hover,
html.dark .pay-card:hover,
body.dark .pay-card:hover {
  background: #25252c !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
}

[data-theme="dark"] .pay-card .pay-card-title,
html.dark .pay-card .pay-card-title,
body.dark .pay-card .pay-card-title {
  color: #F3E6CC !important;
}

[data-theme="dark"] .pay-card .pay-card-sub,
html.dark .pay-card .pay-card-sub,
body.dark .pay-card .pay-card-sub {
  color: #9ca3af !important;
}

[data-theme="dark"] .pay-card.active,
html.dark .pay-card.active,
body.dark .pay-card.active {
  background: #000000 !important;
  border-color: #ffffff !important;
  box-shadow: 0 0 0 1px #ffffff, 0 4px 14px rgba(0, 0, 0, 0.4) !important;
  color: #ffffff !important;
}

[data-theme="dark"] .pay-card.active .pay-card-title,
html.dark .pay-card.active .pay-card-title,
body.dark .pay-card.active .pay-card-title {
  color: #ffffff !important;
}

[data-theme="dark"] .pay-card.active .pay-card-sub,
html.dark .pay-card.active .pay-card-sub,
body.dark .pay-card.active .pay-card-sub {
  color: #d1d5db !important;
}

[data-theme="dark"] .checkout-total-strip,
html.dark .checkout-total-strip,
body.dark .checkout-total-strip {
  background: #1c1c22 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .checkout-total-label,
html.dark .checkout-total-label,
body.dark .checkout-total-label,
[data-theme="dark"] .checkout-total-price,
html.dark .checkout-total-price,
body.dark .checkout-total-price {
  color: #ffffff !important;
}

[data-theme="dark"] .checkout-total-sub,
html.dark .checkout-total-sub,
body.dark .checkout-total-sub {
  color: #34d399 !important;
}

/* Toast Notifications */
.toast-wrap {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  top: auto;
  right: auto;
  z-index: 9999999 !important;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 10px;
  pointer-events: none;
  max-width: 90vw;
  width: max-content;
}
.toast {
  background: #F8EEDB !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #1C1D3D !important;
  padding: 12px 24px;
  border-radius: 980px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.22), 0 2px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  gap: 10px;
  /* Text only, no controls: it sat over the bag's checkout button and ate taps. */
  pointer-events: none;
  animation: toastIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.toast.toast-error {
  background: #991b1b !important;
  border-color: #ef4444 !important;
  color: #ffffff !important;
}
.toast-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #248a3d;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
}
.toast.toast-error .toast-icon {
  background: #ef4444;
}
@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* APPLE.COM SHOPPING BAG DROPDOWN */
.bag-dropdown-overlay {
  position: fixed; inset: 0; z-index: 980;
  background: rgba(0,0,0,.35); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .35s var(--ease), visibility .35s var(--ease);
}
.bag-dropdown-overlay:not(.open) { visibility: hidden; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
.bag-dropdown-overlay.open { opacity: 1; visibility: visible; pointer-events: auto; }

.bag-dropdown-menu {
  position: fixed; top: var(--nav); right: max(22px, calc((100vw - 1024px)/2 + 22px));
  width: min(460px, 92vw); z-index: 990;
  background: rgba(255,255,255,0.98); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--hair); border-radius: 18px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.18); padding: 32px 30px 24px;
  transform: translateY(-10px) scale(0.98); opacity: 0; visibility: hidden; pointer-events: none;
  transition: transform .35s var(--ease), opacity .35s var(--ease), visibility .35s var(--ease);
}
.bag-dropdown-overlay:not(.open) .bag-dropdown-menu { visibility: hidden; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
.bag-dropdown-overlay.open .bag-dropdown-menu {
  transform: translateY(0) scale(1); opacity: 1; visibility: visible; pointer-events: auto;
}

.bag-empty-heading { font-size: 32px; font-weight: 600; letter-spacing: -.03em; color: var(--ink); margin-bottom: 8px; line-height: 1.1; }
.bag-signin-note { font-size: 15px; color: var(--ink2); margin-bottom: 24px; }
.bag-signin-note a { color: var(--blue); text-decoration: underline; cursor: pointer; }
.bag-profile-sec { padding-top: 18px; border-top: 1px solid var(--hair); }
.bag-profile-title { font-size: 12px; font-weight: 600; letter-spacing: .06em; color: var(--ink2); margin-bottom: 14px; text-transform: uppercase; }
.bag-profile-links { list-style: none; display: grid; gap: 12px; }
.bag-profile-links li a { font-size: 16px; font-weight: 500; color: var(--ink); display: flex; align-items: center; gap: 12px; transition: color .2s; padding: 4px 0; cursor: pointer; text-decoration: none; }
.bag-profile-links li a:hover { color: var(--blue); }
.bag-profile-links svg { color: var(--blue); width: 18px; height: 18px; flex-shrink: 0; }

/* ================= CUSTOMER AUTH & MY ACCOUNT PORTAL ================= */

.account-portal-box {
  max-width: 780px;
  width: min(780px, 94vw);
  max-height: min(88vh, calc(100dvh - 36px));
  margin: auto;
  padding: 32px 36px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
  box-sizing: border-box;
}
.account-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--hair); padding-bottom: 20px; margin-bottom: 20px; flex-wrap: wrap; gap: 14px; }
.account-badge { background: rgba(56,60,140,0.12); color: var(--indigo); font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 980px; text-transform: uppercase; }

/* Wrap rather than scroll -- see the note in components.css, which defines this
   same selector. Both are kept in step so the fix does not depend on which
   stylesheet happens to load last. */
.account-tabs { display: flex; flex-wrap: wrap; gap: 8px; border-bottom: 1px solid var(--hair); margin-bottom: 24px; padding-bottom: 10px; }
.account-tab-btn { padding: 8px 16px; background: var(--grey, #F3E6CC); border: 1px solid transparent; font-size: 13px; font-weight: 600; color: var(--ink2, #86868b); border-radius: 980px; cursor: pointer; white-space: nowrap; transition: all .2s ease; }
.account-tab-btn:hover { color: var(--ink, #1C1D3D); background: #E6D5B5; }
.account-tab-btn.active { background: #1C1D3D !important; color: #ffffff !important; border-color: #1C1D3D !important; }

.order-history-card { background: var(--grey); border-radius: 16px; padding: 20px; margin-bottom: 16px; border: 1px solid var(--hair); }
.order-card-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(0,0,0,0.06); padding-bottom: 12px; margin-bottom: 14px; }
.order-id-label { font-weight: 700; font-size: 15px; color: var(--ink); display: block; }
.order-date-label { font-size: 12px; color: var(--ink2); }
.order-status-badge { font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 6px; }
.order-status-badge.status-confirmed, .order-status-badge.status-delivered { background: #e8f4ec; color: #383C8C; }
.order-status-badge.status-shipped, .order-status-badge.status-processing { background: #f0f7ff; color: var(--blue); }
.order-status-badge.status-pending { background: #fff8e6; color: #b45309; }
.order-status-badge.status-cancelled { background: #fef2f2; color: #dc2626; }

.order-item-row { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.order-item-img { width: 50px; height: 40px; object-fit: contain; background: #F8EEDB; border-radius: 8px; padding: 2px; }
.order-item-info { flex: 1; }
.order-item-info h5 { font-size: 14px; font-weight: 600; margin: 0; }
.order-item-info span { font-size: 12px; color: var(--ink2); }
.order-item-price { font-weight: 600; font-size: 14px; }
.order-card-footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid rgba(0,0,0,0.06); padding-top: 12px; margin-top: 12px; font-size: 13px; }

.account-empty-card { text-align: center; padding: 40px 20px; color: var(--ink2); }
.account-empty-card svg { color: var(--ink2); opacity: 0.5; margin-bottom: 12px; }
.account-empty-card h4 { font-size: 17px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }

.account-wishlist-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 12px; width: 100%; box-sizing: border-box; }
@media (max-width: 900px) { .account-wishlist-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 10px; } }
@media (max-width: 640px) { .account-wishlist-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 8px; } }

.saved-address-card { background: var(--grey); border-radius: 14px; padding: 16px 18px; margin-bottom: 12px; border: 1px solid var(--hair); position: relative; }
.saved-address-card.default { border-color: var(--blue); background: #f7faff; }
.default-badge { font-size: 10px; font-weight: 700; background: var(--blue); color: #fff; padding: 2px 6px; border-radius: 4px; margin-left: 6px; }
.btn-del-addr { background: none; border: none; color: var(--ink2); font-size: 14px; cursor: pointer; padding: 4px 8px; border-radius: 4px; }
.btn-del-addr:hover { color: #dc2626; background: rgba(0,0,0,0.05); }

.user-avatar-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.header-user-name { font-weight: 600; }

/* Account Portal Actions & Form Buttons */
.account-portal-box button[type="submit"],
.account-tab-content button[type="submit"],
.account-portal-box .btn-primary,
#btnBagCheckoutModal {
  padding: 13px 28px;
  border-radius: 980px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  background: #1C1D3D;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-tap-highlight-color: transparent;
}

.account-portal-box button[type="submit"]:hover,
.account-tab-content button[type="submit"]:hover,
.account-portal-box .btn-primary:hover,
#btnBagCheckoutModal:hover {
  background: #000000;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.account-portal-box button[type="submit"]:active,
.account-tab-content button[type="submit"]:active,
.account-portal-box .btn-primary:active,
#btnBagCheckoutModal:active {
  transform: scale(0.96) !important;
}

#accountSignOutBtn,
#btnRevokeAllSessions,
.account-portal-box .btn-secondary {
  padding: 8px 18px;
  border-radius: 980px;
  font-size: 13px;
  font-weight: 600;
  background: #F3E6CC;
  color: #1C1D3D !important;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-tap-highlight-color: transparent;
}

#accountSignOutBtn:hover,
#btnRevokeAllSessions:hover,
.account-portal-box .btn-secondary:hover {
  background: #E6D5B5;
  color: #000000 !important;
  border-color: rgba(0, 0, 0, 0.16);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-1.5px);
}

#accountSignOutBtn:active,
#btnRevokeAllSessions:active,
.account-portal-box .btn-secondary:active {
  transform: scale(0.96) !important;
}

/* ================= QUICK-ADD COLOUR & SIZE MODAL ================= */
.quick-add-overlay {
  z-index: 1005;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.quick-add-modal {
  background: #F8EEDB;
  border-radius: 24px;
  width: min(480px, 94vw);
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.32);
  position: relative;
  transform: scale(0.96);
  transition: transform 0.25s var(--ease);
  padding: 28px 28px 24px;
}
.quick-add-overlay.open .quick-add-modal {
  transform: scale(1);
}
.qa-circle-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #EFE2C6;
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  z-index: 10;
  transition: background 0.15s ease, transform 0.15s ease;
}
.qa-circle-close:hover {
  background: #e0e0e2;
  transform: scale(1.05);
}

.qa-modal-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Product Preview Header */
.qa-prod-summary {
  display: flex;
  gap: 16px;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--hair, #E6D5B5);
}
.qa-prod-img-box {
  width: 88px;
  height: 88px;
  background: #F3E6CC;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.qa-prod-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.qa-prod-details {
  flex: 1;
  min-width: 0;
}
.qa-prod-tag {
  font-size: 12px;
  font-weight: 700;
  color: #761B2C;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}
.qa-prod-title {
  font-size: 17px;
  font-weight: 700;
  color: #1C1D3D;
  margin: 0 0 2px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.qa-prod-sub {
  font-size: 13px;
  color: #5E5870;
  margin-bottom: 6px;
}
.qa-prod-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.qa-prod-price {
  font-size: 16px;
  font-weight: 700;
  color: #1C1D3D;
}
.qa-prod-orig-price {
  font-size: 13px;
  color: #5E5870;
}

/* Sections */
.qa-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.qa-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.qa-section-title {
  font-size: 14px;
  font-weight: 700;
  color: #1C1D3D;
  letter-spacing: -0.01em;
}
.qa-selected-color-name {
  font-size: 13px;
  font-weight: 500;
  color: #5E5870;
}
.qa-size-stock-hint {
  font-size: 12px;
  font-weight: 600;
}

/* Colorway Swatches */
.qa-swatches-grid {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px;
  scrollbar-width: none;
}
.qa-swatches-grid::-webkit-scrollbar {
  display: none;
}
.qa-swatch-thumb-btn {
  width: 60px;
  height: 60px;
  background: #F3E6CC;
  border: 1.5px solid transparent;
  border-radius: 10px;
  padding: 3px;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.qa-swatch-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.qa-swatch-thumb-btn:hover {
  transform: translateY(-2px);
  border-color: #5E5870;
}
.qa-swatch-thumb-btn.active {
  border-color: #1C1D3D;
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #1C1D3D;
}

/* Size Chips Grid */
.qa-size-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.qa-size-chip {
  height: 44px;
  background: #F8EEDB;
  border: 1px solid #dcdce0;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #1C1D3D;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
}
.qa-size-chip:hover {
  border-color: #1C1D3D;
}
.qa-size-chip.active {
  background: #1C1D3D;
  color: #ffffff;
  border-color: #1C1D3D;
}
.qa-size-chip.disabled,
.qa-size-chip[disabled] {
  background: #F3E6CC;
  border-color: #eee;
  color: #b0b0b5;
  cursor: not-allowed !important;
  text-decoration: line-through;
  opacity: 0.45;
}
.qa-size-chip.has-dual-size {
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  line-height: 1.15;
  padding: 4px 4px;
}
.qa-size-chip .qa-size-primary {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: inherit;
}
.qa-size-chip .qa-size-secondary {
  font-size: 10.5px;
  font-weight: 500;
  opacity: 0.68;
  color: inherit;
}
.qa-size-chip.active .qa-size-secondary {
  opacity: 0.9;
}

@keyframes qaShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}
.qa-shake {
  animation: qaShake 0.4s ease;
}

/* Submit Action Button */
.qa-action-row {
  margin-top: 6px;
}
.qa-submit-btn {
  width: 100%;
  height: 50px;
  border-radius: 100px;
  background: #1C1D3D;
  color: #ffffff;
  border: 1px solid #1C1D3D;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.qa-submit-btn:hover {
  background: #000000;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
}
.qa-submit-btn:active {
  transform: scale(0.98);
}
.qa-submit-btn.success {
  background: #007a3d !important;
  border-color: #007a3d !important;
  color: #ffffff !important;
}

/* Mobile Quick Add Layout (Bottom Sheet) */
@media (max-width: 640px) {
  .quick-add-overlay {
    align-items: flex-end;
    padding: 0;
  }
  .quick-add-modal {
    width: 100%;
    max-width: 100%;
    border-radius: 24px 24px 0 0;
    max-height: 85vh;
    padding: 24px 20px 28px;
    transform: translateY(100%);
  }
  .quick-add-overlay.open .quick-add-modal {
    transform: translateY(0);
  }
  .qa-size-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================================
   PROGRESSIVE CATEGORY DISCOVERY (MEN | WOMEN | KIDS)
   ============================================================ */
.discovery-overlay {
  position: fixed;
  inset: 0;
  z-index: 1005;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}
.discovery-overlay:not(.open) {
  visibility: hidden;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.discovery-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.discovery-modal {
  background: #F8EEDB;
  border-radius: 24px;
  width: min(840px, 94vw);
  max-height: min(88vh, 760px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.32);
  position: relative;
  transform: scale(0.96) translateY(12px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 28px 32px 36px;
  box-sizing: border-box;
}

.discovery-overlay.open .discovery-modal {
  transform: scale(1) translateY(0);
}

.discovery-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.discovery-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.discovery-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 980px;
  background: #F3E6CC;
  border: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.discovery-back-btn:hover {
  background: #eaeaec;
  transform: translateX(-2px);
}

.discovery-gender-tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  background: #1C1D3D;
  padding: 5px 11px;
  border-radius: 6px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

.discovery-close-btn {
  position: static;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #F3E6CC;
  border: none;
  font-size: 15px;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}

.discovery-close-btn:hover {
  background: #e4e4e6;
}

.discovery-title-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.discovery-title-bar .discovery-title-wrap {
  margin-bottom: 0;
  flex: 1;
  min-width: 0;
}

.discovery-title-wrap {
  margin-bottom: 22px;
}

.discovery-step1-actions,
.discovery-step2-actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.discovery-shop-all-btn,
.discovery-explore-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px 8px 12px;
  border-radius: 999px;
  background: #1C1D3D;
  color: #ffffff;
  border: 1px solid #1C1D3D;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  user-select: none;
}

.discovery-shop-all-btn:hover,
.discovery-explore-all-btn:hover {
  background: #242428;
  border-color: #242428;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}

.discovery-shop-all-btn:active,
.discovery-explore-all-btn:active {
  transform: scale(0.98);
}

.discovery-shop-all-btn .shop-all-icon,
.discovery-explore-all-btn .explore-all-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
}

.discovery-shop-all-btn .shop-all-label,
.discovery-explore-all-btn .explore-all-label {
  letter-spacing: -0.01em;
  font-family: 'Outfit', sans-serif;
}

.discovery-shop-all-btn .shop-all-badge,
.discovery-explore-all-btn .explore-all-badge {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  transition: background 0.2s;
  line-height: 1;
}

.discovery-shop-all-btn .shop-all-badge.in-stock,
.discovery-explore-all-btn .explore-all-badge.in-stock {
  background: #761B2C;
  color: #ffffff;
}

.discovery-shop-all-btn .shop-all-badge.out-of-stock,
.discovery-explore-all-btn .explore-all-badge.out-of-stock {
  background: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.75);
}

.discovery-shop-all-btn .shop-all-arrow,
.discovery-explore-all-btn .explore-all-arrow {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  color: rgba(255, 255, 255, 0.85);
}

.discovery-shop-all-btn:hover .shop-all-arrow,
.discovery-explore-all-btn:hover .explore-all-arrow {
  transform: translateX(3px);
  color: #ffffff;
}

.discovery-title {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #1C1D3D;
  margin: 0 0 5px 0;
  text-transform: uppercase;
}

.discovery-subtitle {
  font-size: 13px;
  color: #5E5870;
  margin: 0;
  line-height: 1.4;
}

/* Category Grid (Step 1) — Square Boxes matching Brand Tile Aesthetics */
.discovery-category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.discovery-card.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  padding: 22px 14px 18px;
  border-radius: 16px;
  background: #F8EEDB;
  border: 1px solid rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  width: 100%;
  box-sizing: border-box;
  min-height: 154px;
}

.discovery-card.category-card:hover {
  background: #FBF4E6;
  border-color: #1C1D3D;
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.07);
}

.discovery-card.category-card:active {
  transform: scale(0.98);
}

.category-tile-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #F3E6CC;
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1C1D3D;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  margin-bottom: 2px;
}

.discovery-card.category-card:hover .category-tile-icon {
  background: #1C1D3D;
  color: #ffffff;
  border-color: #1C1D3D;
  transform: scale(1.08);
}

.category-tile-name {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: #1C1D3D;
  line-height: 1.2;
}

.category-tile-badge {
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 99px;
  background: #EFE2C6;
  color: #555558;
}

.category-tile-desc {
  font-size: 11px;
  color: #5E5870;
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Brand Grid (Step 2) — Compact 5-Brand Single Row/Grid with Official Logos */
.discovery-brand-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  align-items: stretch;
}

.discovery-brand-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 8px 14px;
  border-radius: 14px;
  background: #F8EEDB;
  border: 1px solid rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
  width: 100%;
  box-sizing: border-box;
  font-family: inherit;
}

.discovery-brand-tile:hover {
  background: #FBF4E6;
  border-color: #1C1D3D;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.07);
}

.discovery-brand-tile:active {
  transform: scale(0.98);
}

.brand-tile-logo {
  height: 38px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo-img {
  max-height: 36px;
  max-width: 80px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  /* multiply blend removes any white background on light surfaces */
  mix-blend-mode: multiply;
}

.discovery-brand-tile:hover .brand-logo-img {
  transform: scale(1.08);
}

/* A brand added through the admin console has no logo art until somebody
   uploads one. Its name set as a wordmark reads as deliberate; an empty <img>
   reads as a broken page. Sized to sit in the same 28px band as the logos so
   the tiles stay on one baseline. */
.brand-logo-wordmark {
  display: block;
  max-width: 58px;
  overflow: hidden;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 28px;
  text-transform: uppercase;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: inherit;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.discovery-brand-tile:hover .brand-logo-wordmark {
  transform: scale(1.08);
}

.brand-tile-name {
  font-family: 'Outfit', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  color: #1C1D3D;
  letter-spacing: -0.01em;
}

.brand-tile-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.brand-tile-badge.in-stock {
  background: rgba(168, 117, 80, 0.14);
  color: #761B2C;
}

.brand-tile-badge.out-of-stock {
  background: #f2f2f4;
  color: #8e8e93;
}

.discovery-brand-tile.is-unavailable {
  opacity: 0.55;
  background: #fbfbfb;
}

.discovery-brand-tile.is-unavailable:hover {
  opacity: 0.85;
}

/* ============================================================
   PRIMARY SHOPPING DISCOVERY SHOWCASE CARDS (MEN | WOMEN | KIDS)
   ============================================================ */
.discovery-feature-sec {
  padding: 36px 0 20px;
  background: #F8EEDB;
  border-bottom: none;
}

.discovery-feature-sec .wrap {
  max-width: 1260px;
  width: 100%;
  padding: 0 clamp(16px, 2.4vw, 36px);
}

.discovery-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 395px));
  justify-content: center;
  gap: 16px;
}

.discovery-feature-card {
  position: relative;
  height: 420px;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  background: #1C1D3D;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.discovery-feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
}

.discovery-feature-card:focus-visible {
  outline: 3px solid #1C1D3D;
  outline-offset: 3px;
}

.discovery-feature-img-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.discovery-feature-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.discovery-feature-card:hover .discovery-feature-img {
  transform: scale(1.04);
}

.discovery-feature-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 30%,
    rgba(0, 0, 0, 0.35) 60%,
    rgba(0, 0, 0, 0.86) 100%
  );
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.discovery-feature-card:hover .discovery-feature-overlay {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.04) 30%,
    rgba(0, 0, 0, 0.42) 60%,
    rgba(0, 0, 0, 0.9) 100%
  );
}

.discovery-feature-content {
  position: relative;
  z-index: 2;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  pointer-events: none;
}

.discovery-feature-tag,
.discovery-feature-eyebrow {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.discovery-feature-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.18;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
  margin: 0 0 6px 0;
}

.discovery-feature-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 18px;
  border-radius: 980px;
  background: #F8EEDB;
  color: #1C1D3D;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 12px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.discovery-feature-btn svg {
  width: 11px;
  height: 11px;
  transition: transform 0.2s ease;
}

.discovery-feature-card:hover .discovery-feature-btn svg {
  transform: translateX(3px);
}

.discovery-feature-btn:hover {
  background: #ede9dc;
  transform: translateY(-1px);
}

.discovery-feature-btn:active {
  transform: scale(0.98);
}

@media (max-width: 900px) {
  .discovery-feature-grid {
    gap: 12px;
  }
  .discovery-feature-card {
    height: 380px !important;
  }
  .discovery-feature-content {
    padding: 18px 14px;
  }
  .discovery-feature-tag,
  .discovery-feature-eyebrow {
    font-size: 9px;
  }
  .discovery-feature-title {
    font-size: 18px;
    margin-bottom: 4px;
  }
  .discovery-feature-btn {
    padding: 6px 15px;
    font-size: 11.5px;
  }
}

@media (max-width: 768px) {
  .discovery-feature-sec {
    padding: 24px 0 14px;
    overflow: hidden;
  }
  .discovery-feature-sec .wrap.railwrap {
    position: relative !important;
    width: 100% !important;
    overflow: visible !important;
  }
  .discovery-feature-grid {
    display: flex !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    scroll-padding-left: 14px !important;
    padding: 4px 14px 16px !important;
    margin: 0 -14px !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    box-sizing: border-box !important;
  }
  .discovery-feature-grid::-webkit-scrollbar {
    display: none !important;
  }
  .discovery-feature-card {
    flex: 0 0 calc((100vw - 28px - 10px) / 2) !important;
    min-width: 155px !important;
    max-width: 220px !important;
    height: 350px !important;
    scroll-snap-align: start !important;
    border-radius: 14px !important;
    box-sizing: border-box !important;
  }
  .discovery-feature-content {
    padding: 16px 12px !important;
  }
  .discovery-feature-tag,
  .discovery-feature-eyebrow {
    font-size: 8.5px !important;
    letter-spacing: 0.14em !important;
  }
  .discovery-feature-title {
    font-size: 16.5px !important;
    line-height: 1.15 !important;
    margin-bottom: 6px !important;
  }
  .discovery-feature-btn {
    padding: 6px 13px !important;
    font-size: 11px !important;
    gap: 4px !important;
  }
}

@media (max-width: 480px) {
  .discovery-feature-card {
    flex: 0 0 calc((100vw - 28px - 10px) / 2) !important;
    min-width: 150px !important;
    max-width: 210px !important;
    height: 345px !important;
    border-radius: 14px !important;
  }
  .discovery-feature-content {
    padding: 14px 10px !important;
  }
  .discovery-feature-tag,
  .discovery-feature-eyebrow {
    font-size: 8px !important;
  }
  .discovery-feature-title {
    font-size: 15.5px !important;
  }
}

.msheet-acc-item:not(.open) .msheet-discovery-cta {
  display: none !important;
}

.msheet-discovery-cta {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  margin-bottom: 8px;
  border-radius: 10px;
  background: #1C1D3D;
  color: #ffffff;
  border: none;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

/* Mobile Responsiveness */
@media (max-width: 640px) {
  .discovery-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .discovery-modal {
    width: 100%;
    max-width: 100%;
    border-radius: 24px 24px 0 0;
    max-height: 88vh;
    padding: 22px 18px 28px;
    transform: translateY(100%);
  }

  .discovery-overlay.open .discovery-modal {
    transform: translateY(0);
  }

  .discovery-title-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .discovery-step1-actions,
  .discovery-step2-actions {
    width: 100%;
  }

  .discovery-shop-all-btn,
  .discovery-explore-all-btn {
    width: 100%;
    justify-content: center;
  }

  .discovery-category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .discovery-card.category-card {
    padding: 16px 10px 14px;
    border-radius: 12px;
    min-height: 128px;
    gap: 6px;
  }

  .category-tile-icon {
    width: 40px;
    height: 40px;
    border-radius: 11px;
  }

  .category-tile-name {
    font-size: 13px;
  }

  .category-tile-badge {
    font-size: 8.5px;
    padding: 2px 6px;
  }

  .category-tile-desc {
    display: none;
  }

  .discovery-brand-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .discovery-brand-tile {
    padding: 12px 6px 10px;
    border-radius: 12px;
  }

  .brand-tile-logo {
    height: 24px;
  }

  .brand-logo-img {
    max-height: 22px;
    max-width: 48px;
  }

  .brand-tile-name {
    font-size: 12px;
  }

  .brand-tile-badge {
    font-size: 9px;
    padding: 2px 6px;
  }
}

/* ============================================================
   PRODUCT SHARE SHEET MODAL (CLICKABLE LINK & PRODUCT IMAGE)
   ============================================================ */
.pv-share-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100010;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  padding: 16px;
}
.pv-share-overlay.open {
  opacity: 1;
  pointer-events: auto;
  display: flex !important;
}

.pv-share-sheet {
  background: #F8EEDB;
  width: 100%;
  max-width: 480px;
  border-radius: 20px;
  padding: 22px 24px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
  transform: scale(0.94) translateY(10px);
  transition: transform .25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.pv-share-overlay.open .pv-share-sheet {
  transform: scale(1) translateY(0);
}

.pv-share-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.pv-share-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #1C1D3D;
}
.pv-share-title {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.pv-share-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #e5e5e5;
  background: #f8f8f9;
  color: #555555;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  transition: all .2s;
}
.pv-share-close-btn:hover {
  background: #eaeaea;
  color: #1C1D3D;
  transform: scale(1.06);
}

/* Live Product Preview in Share Card */
.pv-share-product-preview {
  display: flex;
  gap: 14px;
  align-items: center;
  background: #f8f8f9;
  border: 1px solid #eaeaea;
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 16px;
}
.pv-share-img-wrap {
  width: 68px;
  height: 68px;
  border-radius: 10px;
  background: #F8EEDB;
  border: 1px solid #e5e5e5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.pv-share-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.pv-share-details {
  flex: 1;
  min-width: 0;
}
.pv-share-prod-name {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #1C1D3D;
  margin: 0 0 2px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pv-share-prod-sub {
  font-size: 12px;
  color: #5E5870;
  margin-bottom: 4px;
}
.pv-share-prod-price {
  font-size: 14px;
  font-weight: 700;
  color: #1C1D3D;
}

/* Clickable Link Bar */
.pv-share-link-box {
  display: flex;
  gap: 8px;
  background: #f2f2f4;
  border: 1px solid #e0e0e4;
  border-radius: 999px;
  padding: 4px 4px 4px 14px;
  align-items: center;
  margin-bottom: 18px;
}
.pv-share-link-input {
  border: none;
  background: transparent;
  font-size: 12px;
  color: #2b2b2b;
  flex: 1;
  outline: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: 'Inter', monospace;
}
.pv-share-copy-btn {
  background: #1C1D3D;
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  transition: all .2s;
}
.pv-share-copy-btn:hover {
  background: #282828;
  transform: scale(1.03);
}
.pv-share-copy-btn.copied {
  background: #16a34a;
}

/* Share Actions Grid */
.pv-share-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.pv-share-channel-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all .2s;
  border: none;
}
.pv-channel-whatsapp {
  background: #25D366;
  color: #ffffff;
}
.pv-channel-whatsapp:hover {
  background: #20BA5A;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.28);
}
.pv-channel-native {
  background: #1C1D3D;
  color: #ffffff;
}
.pv-channel-native:hover {
  background: #2c2c2c;
  transform: translateY(-1px);
}
.pv-channel-message,
.pv-channel-download {
  background: #F3E6CC;
  color: #1C1D3D;
  border: 1px solid #e0e0e4;
}
.pv-channel-message:hover,
.pv-channel-download:hover {
  background: #e8e8eb;
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .pv-share-overlay {
    align-items: flex-end;
    padding: 0;
  }
  .pv-share-sheet {
    max-width: 100%;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    padding: 20px 20px 28px;
    transform: translateY(100%);
  }
  .pv-share-overlay.open .pv-share-sheet {
    transform: translateY(0);
  }
  .pv-share-actions-grid {
    grid-template-columns: 1fr;
  }
}

/* ================= CORNER CART POPUP & CART ICON BOUNCE ================= */

@keyframes cartIconPop {
  0% { transform: scale(1); }
  25% { transform: scale(1.38) rotate(-8deg); }
  50% { transform: scale(1.15) rotate(6deg); }
  75% { transform: scale(1.22) rotate(-3deg); }
  100% { transform: scale(1) rotate(0deg); }
}

.cart-icon-popping {
  animation: cartIconPop 0.65s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

@keyframes badgePop {
  0% { transform: scale(1); }
  40% { transform: scale(1.5); }
  100% { transform: scale(1); }
}

.badge-pop {
  animation: badgePop 0.5s ease !important;
}

.corner-cart-popup {
  display: none !important;
  top: 76px;
  right: 22px;
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(22, 22, 24, 0.95);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.08);
  border-radius: 980px;
  padding: 8px 18px 8px 10px;
  color: #ffffff;
  cursor: pointer;
  pointer-events: auto;
  transform: translateY(-18px) scale(0.86);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.38s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease, visibility 0.3s ease;
}

[data-theme="light"] .corner-cart-popup,
html:not(.dark) body:not(.dark) .corner-cart-popup {
  background: rgba(255, 255, 255, 0.96);
  color: #1C1D3D;
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
}

.corner-cart-popup.show {
  transform: translateY(0) scale(1);
  opacity: 1;
  visibility: visible;
}

.corner-cart-popup-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #248a3d;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(36, 138, 61, 0.35);
}

.corner-cart-popup-info {
  display: flex;
  flex-direction: column;
}

.corner-cart-popup-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.corner-cart-popup-sub {
  font-size: 11px;
  opacity: 0.72;
  font-weight: 500;
  white-space: nowrap;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.corner-cart-popup-arrow {
  opacity: 0.6;
  margin-left: 2px;
  transition: transform 0.2s ease;
}

.corner-cart-popup:hover .corner-cart-popup-arrow {
  transform: translateX(3px);
  opacity: 1;
}

@media (max-width: 768px) {
  .corner-cart-popup {
    top: 68px;
    right: 14px;
    padding: 7px 14px 7px 8px;
  }
}

/* ================= FLOATING ROUNDED CART BUTTON (RIGHT DOWN CORNER) ================= */
.floating-cart-btn {
  position: fixed;
  bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  right: 28px;
  /* Under every overlay (menu sheet 895, dialogs 995+), over the page. At
     999998 it sat on the right end of each sheet's own "Add to Bag" / "Apply
     Filters" / "Pay", and a tap there opened the bag instead. */
  z-index: 880;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--indigo, #383C8C);
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 12px 34px rgba(56, 60, 140, 0.42), 0 4px 12px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  pointer-events: auto;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.5) translateY(24px);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease, visibility 0.3s ease, box-shadow 0.2s ease, background 0.2s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

[data-theme="light"] .floating-cart-btn,
html:not(.dark) body:not(.dark) .floating-cart-btn {
  background: var(--indigo, #383C8C) !important;
  color: #ffffff !important;
  border: 1.5px solid rgba(255, 255, 255, 0.28) !important;
  box-shadow: 0 12px 34px rgba(56, 60, 140, 0.38) !important;
}

[data-theme="dark"] .floating-cart-btn,
html.dark .floating-cart-btn,
body.dark .floating-cart-btn {
  background: #23254E !important;
  color: #F2E0BE !important;
  border: 1.5px solid rgba(242, 224, 190, 0.28) !important;
  box-shadow: 0 12px 34px rgba(10, 11, 26, 0.6) !important;
}

.floating-cart-btn:hover {
  background: var(--indigo-deep, #2B2E73) !important;
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 18px 42px rgba(56, 60, 140, 0.52) !important;
}

[data-theme="dark"] .floating-cart-btn:hover,
html.dark .floating-cart-btn:hover,
body.dark .floating-cart-btn:hover {
  background: #2D3068 !important;
  box-shadow: 0 16px 40px rgba(10, 11, 26, 0.75) !important;
}

.floating-cart-btn:active {
  background: #202256 !important;
  transform: scale(0.94);
}

.floating-cart-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: scale(1) translateY(0);
}

.floating-cart-btn-icon {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-cart-btn-icon svg {
  width: 24px;
  height: 24px;
  stroke: #ffffff;
}

[data-theme="dark"] .floating-cart-btn-icon svg,
html.dark .floating-cart-btn-icon svg,
body.dark .floating-cart-btn-icon svg {
  stroke: #F2E0BE !important;
}

.floating-cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--burgundy, #761B2C);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  min-width: 22px;
  height: 22px;
  border-radius: 980px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border: 2px solid var(--indigo, #383C8C);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  animation: badgeBounce 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

[data-theme="dark"] .floating-cart-badge,
html.dark .floating-cart-badge,
body.dark .floating-cart-badge {
  background: #B82E44 !important;
  color: #ffffff !important;
  border-color: #14152D !important;
}

@keyframes badgeBounce {
  0% { transform: scale(0.4); }
  60% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

@media (max-width: 768px) {
  .floating-cart-btn {
    bottom: calc(22px + env(safe-area-inset-bottom, 0px));
    right: 20px;
    width: 52px;
    height: 52px;
  }
  .floating-cart-btn-icon {
    width: 22px;
    height: 22px;
  }
  .floating-cart-btn-icon svg {
    width: 20px;
    height: 20px;
  }
}

/* ================= NIKE FOOTWEAR SIZE CHART MODAL ================= */
#sizeChartModal {
  z-index: 1000000;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.size-chart-box {
  background: #F8EEDB;
  border-radius: 22px;
  width: min(940px, 95vw);
  max-height: min(88vh, 740px);
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.32);
  display: flex;
  flex-direction: column;
  padding: 28px 28px 22px;
  position: relative;
  transform: scale(0.96);
  transition: transform 0.25s var(--ease);
}

#sizeChartModal.open .size-chart-box {
  transform: scale(1);
}

.size-chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 12px;
  flex-shrink: 0;
}

.size-chart-title {
  font-family: 'Outfit', -apple-system, sans-serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #1C1D3D;
  margin: 0;
}

.size-chart-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.size-unit-toggle {
  background: #ececef;
  border-radius: 980px;
  padding: 3px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  user-select: none;
}

.size-unit-btn {
  background: transparent;
  border: none;
  font-size: 13px;
  font-weight: 600;
  color: #5E5870;
  padding: 6px 16px;
  border-radius: 980px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}

.size-unit-btn:hover {
  color: #1C1D3D;
}

.size-unit-btn.active {
  background: #F8EEDB;
  color: #1C1D3D;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.size-chart-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #EFE2C6;
  color: #1C1D3D;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  border: none;
  transition: background 0.15s ease, transform 0.15s ease;
  position: static;
  flex-shrink: 0;
}

.size-chart-close:hover {
  background: #e2e2e5;
  transform: scale(1.05);
}

.size-chart-table-wrap {
  overflow-x: auto;
  overflow-y: auto;
  max-height: 560px;
  border: 1px solid #e5e5e7;
  border-radius: 14px;
  position: relative;
  scrollbar-width: thin;
  scrollbar-color: #c7c7cc #F3E6CC;
  -webkit-overflow-scrolling: touch;
}

.size-chart-table-wrap::-webkit-scrollbar {
  height: 9px;
  width: 9px;
}

.size-chart-table-wrap::-webkit-scrollbar-thumb {
  background: #c7c7cc;
  border-radius: 980px;
}

.size-chart-table-wrap::-webkit-scrollbar-track {
  background: #F3E6CC;
  border-radius: 980px;
}

.size-chart-table {
  border-collapse: separate;
  border-spacing: 0;
  width: max-content;
  min-width: 100%;
}

.size-chart-table tr {
  transition: background 0.12s ease;
}

.size-chart-table tr.even-row {
  background: #FBF4E6;
}

.size-chart-th {
  position: sticky;
  left: 0;
  z-index: 3;
  background: #F8EEDB;
  font-size: 13.5px;
  font-weight: 700;
  color: #1C1D3D;
  text-align: left;
  padding: 13px 20px 13px 18px;
  white-space: nowrap;
  border-right: 1.5px solid #e5e5e7;
  border-bottom: 1px solid #e5e5e7;
  min-width: 138px;
  box-shadow: 2px 0 6px rgba(0, 0, 0, 0.03);
}

.size-chart-table tr.even-row .size-chart-th {
  background: #FBF4E6;
}

.size-chart-td {
  padding: 13px 18px;
  text-align: center;
  white-space: nowrap;
  font-size: 13.5px;
  color: #1C1D3D;
  border-bottom: 1px solid #e5e5e7;
  border-right: 1px solid #EFE2C6;
  min-width: 62px;
  font-variant-numeric: tabular-nums;
}

.size-chart-table tr:hover td {
  background: rgba(0, 113, 227, 0.04);
}

/* Size Chart Dark Mode Support */
[data-theme="dark"] .size-chart-box,
html.dark .size-chart-box,
body.dark .size-chart-box {
  background: #151518 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.8) !important;
  color: #F3E6CC !important;
}

[data-theme="dark"] .size-chart-title,
html.dark .size-chart-title,
body.dark .size-chart-title {
  color: #ffffff !important;
}

[data-theme="dark"] .size-unit-toggle,
html.dark .size-unit-toggle,
body.dark .size-unit-toggle {
  background: #24242a !important;
}

[data-theme="dark"] .size-unit-btn,
html.dark .size-unit-btn,
body.dark .size-unit-btn {
  color: #9ca3af !important;
}

[data-theme="dark"] .size-unit-btn:hover,
html.dark .size-unit-btn:hover,
body.dark .size-unit-btn:hover {
  color: #ffffff !important;
}

[data-theme="dark"] .size-unit-btn.active,
html.dark .size-unit-btn.active,
body.dark .size-unit-btn.active {
  background: #ffffff !important;
  color: #1C1D3D !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
}

[data-theme="dark"] .size-chart-close,
html.dark .size-chart-close,
body.dark .size-chart-close {
  background: #24242a !important;
  color: #ffffff !important;
}

[data-theme="dark"] .size-chart-close:hover,
html.dark .size-chart-close:hover,
body.dark .size-chart-close:hover {
  background: #32323a !important;
}

[data-theme="dark"] .size-chart-table-wrap,
html.dark .size-chart-table-wrap,
body.dark .size-chart-table-wrap {
  border-color: rgba(255, 255, 255, 0.12) !important;
  scrollbar-color: #3f3f46 #1c1c22;
}

[data-theme="dark"] .size-chart-table-wrap::-webkit-scrollbar-thumb,
html.dark .size-chart-table-wrap::-webkit-scrollbar-thumb,
body.dark .size-chart-table-wrap::-webkit-scrollbar-thumb {
  background: #3f3f46 !important;
}

[data-theme="dark"] .size-chart-table-wrap::-webkit-scrollbar-track,
html.dark .size-chart-table-wrap::-webkit-scrollbar-track,
body.dark .size-chart-table-wrap::-webkit-scrollbar-track {
  background: #1c1c22 !important;
}

[data-theme="dark"] .size-chart-th,
html.dark .size-chart-th,
body.dark .size-chart-th {
  background: #151518 !important;
  color: #ffffff !important;
  border-right-color: rgba(255, 255, 255, 0.14) !important;
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.4) !important;
}

[data-theme="dark"] .size-chart-td,
html.dark .size-chart-td,
body.dark .size-chart-td {
  color: #F3E6CC !important;
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
  border-right-color: rgba(255, 255, 255, 0.04) !important;
}

[data-theme="dark"] .size-chart-table tr.even-row,
html.dark .size-chart-table tr.even-row,
body.dark .size-chart-table tr.even-row {
  background: #1c1c22 !important;
}

[data-theme="dark"] .size-chart-table tr.even-row .size-chart-th,
html.dark .size-chart-table tr.even-row .size-chart-th,
body.dark .size-chart-table tr.even-row .size-chart-th {
  background: #1c1c22 !important;
}

[data-theme="dark"] .size-chart-table tr:hover td,
html.dark .size-chart-table tr:hover td,
body.dark .size-chart-table tr:hover td {
  background: rgba(255, 255, 255, 0.04) !important;
}

@media (max-width: 640px) {
  .size-chart-box {
    padding: 20px 16px 18px;
    border-radius: 18px;
  }
  .size-chart-title {
    font-size: 22px;
  }
  .size-chart-th {
    padding: 10px 14px 10px 12px;
    min-width: 110px;
    font-size: 12.5px;
  }
  .size-chart-td {
    padding: 10px 14px;
    font-size: 12.5px;
  }
}


/* A dialog is focused as a whole when it opens (js/app.js), so a screen reader
   announces it; the ring belongs on the controls inside, not around the sheet. */
[role="dialog"][tabindex="-1"]:focus { outline: none; }
