/* ============================================================
   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: 990; background: rgba(0,0,0,.4); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); 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; width: min(440px, 90vw); z-index: 1000; background: #fff; box-shadow: -10px 0 40px rgba(0,0,0,.15); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .4s var(--ease); }
.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; }
.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: #e5e5ea; }

.drawer-body { flex: 1; overflow-y: auto; 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); }
.cart-item-img { background: var(--grey); border-radius: 12px; padding: 8px; display: flex; align-items: center; justify-content: center; }
.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; }

.drawer-foot { padding: 20px 24px; border-top: 1px solid var(--hair); background: #fafafa; }
.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 { background: #e8f4ec; color: #0a6b4f; padding: 8px 12px; border-radius: 8px; font-size: 12px; font-weight: 600; margin-bottom: 14px; text-align: center; }
.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: #0077ed; }

/* 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: #ffffff;
  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: #f0f0f2; 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; }

.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: #f6f6f6;
  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: #f6f6f6;
  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 Next/Prev Arrows */
.pv-stage-nav-arrows {
  position: absolute;
  bottom: 16px;
  right: 16px;
  display: flex;
  gap: 8px;
  z-index: 10;
}
.pv-nav-arrow-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #e5e5e5;
  color: #111111;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.pv-nav-arrow-btn:hover {
  background: #f2f2f2;
  transform: scale(1.06);
}

/* 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: #d9381e; /* Rust Orange/Red */
  line-height: 1.2;
}

.pv-pdp-title {
  font-size: 28px;
  font-weight: 700;
  color: #111111;
  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: #707072;
  margin-top: -8px;
}

/* Pricing */
.pv-pdp-price-wrap {
  margin-top: 2px;
}
.pv-pdp-price {
  font-size: 17px;
  font-weight: 600;
  color: #111111;
}
.pv-pdp-tax-note {
  font-size: 13px;
  color: #707072;
  margin-top: 2px;
}
.pv-pdp-duties-note {
  font-size: 12px;
  color: #8d8d8d;
  margin-top: 1px;
}

/* 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: #f6f6f6;
  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: #707072;
}
.pv-shoe-swatch-card.active {
  border-color: #111111;
  box-shadow: 0 0 0 1px #111111;
}

/* 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: #111111;
}
.pv-size-guide-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #707072;
  text-decoration: none;
  transition: color .2s;
}
.pv-size-guide-link:hover {
  color: #111111;
}

.pv-size-2col-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.pv-size-chip {
  height: 48px;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  background: #ffffff;
  color: #111111;
  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(.sold-out) {
  border-color: #111111;
}
.pv-size-chip.selected {
  border: 1.5px solid #111111;
  font-weight: 700;
}
.pv-size-chip.sold-out {
  background: #fafafa;
  color: #d2d2d2;
  border-color: #eeeeee;
  cursor: not-allowed;
  opacity: 0.55;
  text-decoration: line-through;
  pointer-events: none;
}
.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: #111111;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background .2s ease;
  text-align: center;
  font-family: inherit;
}
.pv-btn-add-bag:hover {
  background: #707072;
}
.pv-btn-add-bag:disabled {
  background: #e5e5e5;
  color: #9e9e9e;
  cursor: not-allowed;
}

.pv-btn-favourite {
  width: 100%;
  height: 56px;
  border-radius: 980px;
  background: #ffffff;
  color: #111111;
  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: #111111;
}
.pv-btn-favourite.active {
  border-color: #ff3b30;
  color: #ff3b30;
}
.pv-btn-favourite.active svg {
  fill: #ff3b30;
  stroke: #ff3b30;
}

/* Delivery & Service Notes */
.pv-pdp-services {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid #f0f0f2;
}
.pv-service-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #707072;
}
.pv-service-item svg {
  color: #111111;
  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: #111111;
  margin: 0;
}
.pv-similar-sub {
  font-size: 13px;
  color: #707072;
  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;
  }
  .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;
  }
}

/* Fit Finder & Size Guide Modals (Find Your Perfect Fit) */
.wizard-box { max-width: 560px; margin: 0 auto; padding: 32px 30px 28px; border-radius: 20px; background: #ffffff; }
.wizard-step { display: none; }
.wizard-step.active { display: block; animation: wizardFadeIn .22s ease-out; }

@keyframes wizardFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.wizard-progress-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
}
.wizard-progress-dot {
  flex: 1;
  height: 4px;
  background: #e5e5e5;
  border-radius: 99px;
  transition: background .25s ease;
}
.wizard-progress-dot.active {
  background: #111111;
}

.step-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 20px 0; }
.step-options.cols-3 { grid-template-columns: repeat(3, 1fr); }

.option-card {
  border: 1.5px solid #e5e5e5;
  border-radius: 12px;
  padding: 16px 12px;
  text-align: center;
  font-weight: 600;
  font-size: 14.5px;
  cursor: pointer;
  background: #ffffff;
  color: #111111;
  transition: all .18s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  user-select: none;
}
.option-card .option-sub {
  font-size: 11.5px;
  font-weight: 500;
  color: #707072;
}
.option-card:hover {
  border-color: #111111;
  background: #fafafa;
}
.option-card.selected {
  border-color: #111111;
  background: #111111;
  color: #ffffff;
}
.option-card.selected .option-sub {
  color: rgba(255, 255, 255, 0.75);
}

/* Step 2 UK Size Grid in Wizard */
.fit-size-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 18px 0;
  max-height: 250px;
  overflow-y: auto;
  padding: 2px;
}
.fit-size-btn {
  height: 46px;
  border: 1.5px solid #e5e5e5;
  border-radius: 8px;
  background: #ffffff;
  color: #111111;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s ease;
  font-family: inherit;
}
.fit-size-btn:hover {
  border-color: #111111;
}
.fit-size-btn.selected {
  border-color: #111111;
  background: #111111;
  color: #ffffff;
}

/* Step 5 Recommendation Card */
.fit-rec-hero {
  background: #f6f6f6;
  border: 1px solid #eaeaea;
  border-radius: 14px;
  padding: 20px;
  text-align: center;
  margin: 16px 0 14px;
}
.fit-rec-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  background: #111111;
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 99px;
  margin-bottom: 8px;
}
.fit-rec-val {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #111111;
  line-height: 1.1;
  margin-bottom: 4px;
}
.fit-rec-confidence {
  font-size: 12.5px;
  font-weight: 600;
  color: #248a3d;
}

/* Intelligent Rationale Callout Box */
.fit-rationale-box {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 14px;
  padding: 16px 18px;
  text-align: left;
  margin-bottom: 16px;
}
.fit-rationale-head {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #707072;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.fit-rationale-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.45;
  color: #222222;
  margin-bottom: 10px;
}
.fit-rationale-item:last-child {
  margin-bottom: 0;
}
.fit-rationale-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
  color: #111111;
}

/* Conversion Chart Collapsible */
.fit-chart-toggle {
  background: none;
  border: none;
  font-size: 12.5px;
  font-weight: 600;
  color: #707072;
  cursor: pointer;
  padding: 6px 0;
  text-decoration: underline;
  margin-bottom: 12px;
  display: inline-block;
  font-family: inherit;
}
.fit-chart-toggle:hover {
  color: #111111;
}
.fit-conversion-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: center;
  margin-bottom: 16px;
  display: none;
}
.fit-conversion-table.open {
  display: table;
}
.fit-conversion-table th, .fit-conversion-table td {
  padding: 8px 6px;
  border: 1px solid #e5e5e5;
}
.fit-conversion-table th {
  background: #f7f7f8;
  font-weight: 700;
  color: #111111;
}

.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) ================= */
.checkout-box {
  max-width: 460px;
  margin: 0 auto;
  padding: 20px 22px 18px;
  border-radius: 18px;
  background: #ffffff;
}
.checkout-header-wrap {
  margin-bottom: 10px;
  padding-right: 28px;
}
.checkout-title {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #111113;
  margin-bottom: 2px;
}
.checkout-subtitle {
  font-size: 11.5px;
  color: #737373;
  line-height: 1.3;
}

/* Compact Collapsible Summary Box */
.checkout-summary-container {
  background: #f8f8fa;
  border: 1px solid #e5e5e7;
  border-radius: 10px;
  padding: 7px 10px;
  margin-bottom: 10px;
}
.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: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #111113;
  letter-spacing: 0.03em;
}
.checkout-summary-verified {
  font-size: 10px;
  color: #0071e3;
  font-weight: 600;
}
.checkout-summary-head-right {
  display: flex;
  align-items: center;
  gap: 6px;
}
.checkout-summary-subtotal {
  font-size: 12px;
  font-weight: 700;
  color: #111113;
}
.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: #ffffff;
  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: #111113;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.checkout-mini-meta {
  font-size: 10px;
  color: #737373;
}
.checkout-mini-price {
  font-weight: 600;
  color: #111113;
  white-space: nowrap;
}

.checkout-promo-row {
  display: flex;
  gap: 6px;
  padding-top: 6px;
  border-top: 1px dashed #e5e5e7;
}
.checkout-promo-row input {
  flex: 1;
  height: 28px;
  padding: 0 8px;
  border: 1px solid #e5e5e7;
  border-radius: 6px;
  font-size: 11px;
  text-transform: uppercase;
  background: #ffffff;
  outline: none;
  font-family: inherit;
}
.checkout-promo-row input:focus {
  border-color: #111113;
}
.checkout-promo-row button {
  height: 28px;
  padding: 0 10px;
  border: 1px solid #111113;
  background: #111113;
  color: #ffffff;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.checkout-promo-row button:hover {
  background: #333336;
}

/* Sections & Headers */
.checkout-section {
  margin-bottom: 8px;
}
.checkout-sec-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}
.checkout-sec-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #666;
}
.btn-checkout-toggle-addr {
  background: none;
  border: none;
  font-size: 11px;
  font-weight: 600;
  color: #0071e3;
  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: #ffffff;
  cursor: pointer;
  transition: all 0.15s ease;
}
.checkout-addr-card:hover {
  border-color: #b0b0b5;
  background: #fafafc;
}
.checkout-addr-card.active {
  border-color: #111113;
  background: #f8f8fb;
  box-shadow: 0 0 0 1px #111113;
}
.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: #111113;
}
.checkout-addr-card.active .checkout-addr-radio::after {
  content: '';
  width: 5.5px;
  height: 5.5px;
  background: #111113;
  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: #111113;
}
.checkout-addr-phone {
  font-size: 11px;
  color: #737373;
}
.checkout-addr-tag {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 1px 4px;
  background: #e5e5e7;
  color: #111113;
  border-radius: 3px;
}
.checkout-addr-text {
  font-size: 10.5px;
  color: #555558;
  margin-top: 1px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Compact Form Fields */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 6px;
}
.form-group label {
  font-size: 10px;
  font-weight: 600;
  color: #737373;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.form-control {
  padding: 5px 9px;
  height: 33px;
  border: 1px solid #e5e5e7;
  border-radius: 7px;
  font-size: 12px;
  color: #111113;
  outline: none;
  font-family: inherit;
  background: #ffffff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-control:focus {
  border-color: #111113;
  box-shadow: 0 0 0 2px rgba(17, 17, 19, 0.08);
}
.form-row {
  display: grid;
  gap: 8px;
}
.form-row-2col {
  grid-template-columns: 1fr 1fr;
}
.checkout-save-addr-row {
  margin-top: 2px;
  margin-bottom: 6px;
}
.checkout-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  color: #666;
  cursor: pointer;
  user-select: none;
}
.checkout-checkbox-label input[type="checkbox"] {
  width: 13px;
  height: 13px;
  accent-color: #111113;
  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: #ffffff;
  user-select: none;
}
.pay-card:hover {
  border-color: #111113;
}
.pay-card.active {
  border-color: #111113;
  background: #111113;
  color: #ffffff;
}
.pay-card-title {
  display: block;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}
.pay-card-sub {
  display: block;
  font-size: 9px;
  opacity: 0.7;
  margin-top: 1px;
}

/* Total Strip & Submit Button */
.checkout-total-strip {
  background: #f5f5f7;
  padding: 6px 10px;
  border-radius: 7px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.checkout-total-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #111113;
}
.checkout-total-sub {
  display: block;
  font-size: 9px;
  color: #0a6b4f;
  font-weight: 600;
}
.checkout-total-price {
  font-size: 14px;
  font-weight: 800;
  color: #111113;
}
.btn-checkout-submit {
  width: 100%;
  height: 36px;
  border-radius: 7px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* Toast Notifications */
.toast-wrap { position: fixed; bottom: 24px; right: 24px; z-index: 1050; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast { background: rgba(29,29,31,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: #fff; padding: 12px 20px; border-radius: 980px; font-size: 13px; font-weight: 500; box-shadow: 0 10px 25px rgba(0,0,0,.2); display: flex; align-items: center; gap: 10px; pointer-events: auto; animation: toastIn .3s var(--ease); }
@keyframes toastIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* 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(0,113,227,0.12); color: var(--blue); 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, #f5f5f7); 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, #111111); background: #e8e8ed; }
.account-tab-btn.active { background: #111111 !important; color: #ffffff !important; border-color: #111111 !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: #0a6b4f; }
.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: #fff; 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: #111113;
  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: #f5f5f7;
  color: #111113 !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: #e8e8ed;
  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: #ffffff;
  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: #f0f0f2;
  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, #e5e5ea);
}
.qa-prod-img-box {
  width: 88px;
  height: 88px;
  background: #f6f6f6;
  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: #9e3500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}
.qa-prod-title {
  font-size: 17px;
  font-weight: 700;
  color: #111113;
  margin: 0 0 2px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.qa-prod-sub {
  font-size: 13px;
  color: #707072;
  margin-bottom: 6px;
}
.qa-prod-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.qa-prod-price {
  font-size: 16px;
  font-weight: 700;
  color: #111113;
}
.qa-prod-orig-price {
  font-size: 13px;
  color: #707072;
}

/* 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: #111113;
  letter-spacing: -0.01em;
}
.qa-selected-color-name {
  font-size: 13px;
  font-weight: 500;
  color: #707072;
}
.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: #f6f6f6;
  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: #707072;
}
.qa-swatch-thumb-btn.active {
  border-color: #111113;
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #111113;
}

/* Size Chips Grid */
.qa-size-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.qa-size-chip {
  height: 44px;
  background: #ffffff;
  border: 1px solid #dcdce0;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #111113;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
}
.qa-size-chip:hover {
  border-color: #111113;
}
.qa-size-chip.active {
  background: #111113;
  color: #ffffff;
  border-color: #111113;
}
.qa-size-chip.disabled,
.qa-size-chip[disabled] {
  background: #f5f5f7;
  border-color: #eee;
  color: #b0b0b5;
  cursor: not-allowed !important;
  text-decoration: line-through;
  opacity: 0.45;
}

@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: #111113;
  color: #ffffff;
  border: 1px solid #111113;
  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: #ffffff;
  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: #f4f4f6;
  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: #111113;
  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: #f4f4f6;
  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-step2-actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.discovery-explore-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px 8px 12px;
  border-radius: 999px;
  background: #111113;
  color: #ffffff;
  border: 1px solid #111113;
  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-explore-all-btn:hover {
  background: #242428;
  border-color: #242428;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}

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

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

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

.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-explore-all-btn .explore-all-badge.in-stock {
  background: #2e7d32;
  color: #ffffff;
}

.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-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-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: #111113;
  margin: 0 0 5px 0;
  text-transform: uppercase;
}

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

/* Category Grid (Step 1) */
.discovery-category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.discovery-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  text-align: left;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

.discovery-card:hover {
  background: #fafafa;
  border-color: #111113;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

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

.card-icon-wrap {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 12px;
  background: #f6f6f8;
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111113;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.discovery-card:hover .card-icon-wrap {
  background: #111113;
  color: #ffffff;
  border-color: #111113;
  transform: scale(1.04);
}

.card-text-wrap {
  flex: 1;
  min-width: 0;
}

.card-top-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #111113;
}

.card-badge {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  border-radius: 4px;
  background: #f0f0f2;
  color: #555558;
}

.card-subtitle {
  font-size: 11.5px;
  color: #707072;
  line-height: 1.4;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-arrow-wrap {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #707072;
  transition: transform 0.2s, background 0.2s, color 0.2s;
}

.discovery-card:hover .card-arrow-wrap {
  background: #111113;
  color: #ffffff;
  transform: translateX(2px);
}

/* 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: #ffffff;
  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: #fafafa;
  border-color: #111113;
  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: 32px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo-img {
  max-height: 28px;
  max-width: 58px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.04));
}

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

.brand-tile-name {
  font-family: 'Outfit', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  color: #111113;
  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: #e8f5e9;
  color: #1b5e20;
}

.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: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.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: 402px;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  background: #111113;
  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 #111113;
  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) 35%,
    rgba(0, 0, 0, 0.38) 65%,
    rgba(0, 0, 0, 0.82) 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.05) 35%,
    rgba(0, 0, 0, 0.45) 65%,
    rgba(0, 0, 0, 0.88) 100%
  );
}

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

.discovery-feature-eyebrow {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
  margin: 0;
}

.discovery-feature-title {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  margin: 0 0 4px 0;
}

.discovery-feature-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px 18px;
  border-radius: 980px;
  background: #ffffff;
  color: #111113;
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
  border: none;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  margin-top: 4px;
  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: #e8e8ea;
  transform: scale(1.03);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.32);
}

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

@media (max-width: 900px) {
  .discovery-feature-grid {
    gap: 12px;
  }
  .discovery-feature-card {
    height: 325px !important;
  }
  .discovery-feature-content {
    padding: 16px 14px;
  }
  .discovery-feature-eyebrow {
    font-size: 17px;
  }
  .discovery-feature-title {
    font-size: 12px;
    margin-bottom: 4px;
  }
  .discovery-feature-btn {
    padding: 5px 14px;
    font-size: 11px;
  }
}

@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: 12px !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    scroll-padding-left: 14px !important;
    padding: 4px 14px 22px !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 clamp(185px, 58vw, 225px) !important;
    min-width: 185px !important;
    max-width: 240px !important;
    height: 325px !important;
    scroll-snap-align: start !important;
    border-radius: 16px !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 480px) {
  .discovery-feature-card {
    flex: 0 0 clamp(170px, 60vw, 205px) !important;
    min-width: 170px !important;
    max-width: 215px !important;
    height: 292px !important;
    border-radius: 16px !important;
  }
  .discovery-feature-content {
    padding: 14px 12px;
  }
  .discovery-feature-eyebrow {
    font-size: 15px;
  }
  .discovery-feature-title {
    font-size: 11px;
  }
}

.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: #111113;
  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-step2-actions {
    width: 100%;
  }

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

  .discovery-category-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .discovery-card {
    padding: 14px 16px;
  }

  .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;
  }
}
