/* DealVorio storefront polish v3
 * Final presentation layer: restrained surfaces, crisp hierarchy and motion
 * that never hides content or competes with product imagery.
 */

:root {
  --dv-ink: #071d3a;
  --dv-ink-soft: #173552;
  --dv-teal: #078f98;
  --dv-teal-dark: #056d75;
  --dv-coral: #f45350;
  --dv-success: #08775f;
  --dv-canvas: #f6f9fb;
  --dv-surface: #ffffff;
  --dv-surface-tint: #edf7f8;
  --dv-line: #d5e1e7;
  --dv-muted: #52677b;
  --dv-ease: cubic-bezier(.16, 1, .3, 1);
  --dv-radius-sm: 8px;
  --dv-radius-md: 12px;
  --dv-radius-lg: 16px;
}

body.dealvoyant-theme {
  color: var(--dv-ink);
  background: var(--dv-canvas);
  font-family: "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

body.dealvoyant-theme h1,
body.dealvoyant-theme h2,
body.dealvoyant-theme .store-section h2,
body.dealvoyant-theme .store-route-hero h1,
body.dealvoyant-theme .brand-copy > span,
body.dealvoyant-theme .footer-brand > strong {
  color: var(--dv-ink);
  font-family: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  font-weight: 840;
  letter-spacing: -.032em;
  text-wrap: balance;
}

body.dealvoyant-theme p { text-wrap: pretty; }
body.dealvoyant-theme .container { width: min(1420px, calc(100% - 56px)); }

/* Content remains readable before enhancement; reveal only adds a subtle settle. */
.js-ready body.dealvoyant-theme [data-reveal] {
  opacity: .88;
  transform: translateY(10px);
  transition: opacity .48s var(--dv-ease), transform .48s var(--dv-ease);
}
.js-ready body.dealvoyant-theme [data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* Header */
body.dealvoyant-theme .site-header {
  inset-inline: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  background: var(--dv-surface);
  border: 0;
  border-bottom: 1px solid var(--dv-line);
  box-shadow: none;
}

body.dealvoyant-theme .site-header::before {
  height: 3px;
  background: var(--dv-teal);
}

body.dealvoyant-theme .site-header::after {
  position: absolute;
  inset: 0 0 auto auto;
  width: clamp(64px, 8vw, 128px);
  height: 3px;
  content: "";
  background: var(--dv-coral);
}

body.dealvoyant-theme .site-nav {
  min-height: 82px;
  grid-template-columns: auto auto minmax(240px, 1fr) minmax(170px, max-content) auto;
  gap: clamp(12px, 1.3vw, 22px);
}

body.dealvoyant-theme .brand {
  gap: 10px;
  transition: transform .24s var(--dv-ease);
}

body.dealvoyant-theme .brand:hover { transform: translateY(-1px); }
body.dealvoyant-theme .brand-mark { width: 44px; height: 44px; border-radius: 10px; }
body.dealvoyant-theme .brand-mark img { width: 44px; height: 44px; object-fit: contain; }
body.dealvoyant-theme .brand-copy > span { font-size: 28px; letter-spacing: -.025em; }

body.dealvoyant-theme .storefront-primary-nav { gap: 4px; }
body.dealvoyant-theme .storefront-primary-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 8px 11px;
  border: 0;
  border-radius: var(--dv-radius-sm);
  transition: color .2s var(--dv-ease), background-color .2s var(--dv-ease), transform .2s var(--dv-ease);
}

body.dealvoyant-theme .storefront-primary-nav a::after,
body.dealvoyant-theme .store-mobile-nav a::after { display: none !important; }

.store-nav-menu { position: relative; min-width: 0; }
.store-nav-menu > summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border-radius: var(--dv-radius-sm);
  color: var(--dv-ink);
  font-size: 14px;
  font-weight: 750;
  list-style: none;
  white-space: nowrap;
  cursor: pointer;
  transition: color .2s var(--dv-ease), background-color .2s var(--dv-ease), transform .2s var(--dv-ease);
}

.store-nav-menu > summary::-webkit-details-marker,
.store-mobile-menu > summary::-webkit-details-marker { display: none; }
.store-nav-menu > summary::marker,
.store-mobile-menu > summary::marker { content: ""; }
.store-nav-menu > summary:hover,
.store-nav-menu > summary[aria-current="page"],
.store-nav-menu[open] > summary {
  color: var(--dv-teal-dark);
  background: var(--dv-surface-tint);
  transform: translateY(-1px);
}

.store-nav-menu > summary:focus-visible,
.store-mobile-menu > summary:focus-visible,
.store-nav-panel a:focus-visible,
.store-mobile-panel a:focus-visible {
  outline: 3px solid rgba(7, 143, 152, .28);
  outline-offset: 2px;
}

.store-nav-chevron {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .2s var(--dv-ease);
}

.store-nav-menu[open] > summary .store-nav-chevron { transform: translateY(2px) rotate(225deg); }
details.store-nav-menu > .store-nav-panel {
  position: absolute;
  z-index: 90;
  top: calc(100% + 10px);
  left: 0;
  width: min(580px, calc(100vw - 48px));
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 20px;
  padding: 18px;
  border: 1px solid #bfcfd7;
  border-radius: var(--dv-radius-md);
  background: var(--dv-surface);
  box-shadow: 0 8px 8px rgba(7, 29, 58, .14);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(7px);
  transition: opacity .18s var(--dv-ease), transform .18s var(--dv-ease), visibility 0s linear .18s;
}

.store-nav-menu:nth-last-child(-n+2) > .store-nav-panel { right: 0; left: auto; }
.store-nav-menu:hover > .store-nav-panel,
.store-nav-menu:focus-within > .store-nav-panel,
.store-nav-menu[open] > .store-nav-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition-delay: 0s;
}

.store-nav-panel-intro {
  padding: 16px;
  border-radius: var(--dv-radius-sm);
  color: #fff;
  background: var(--dv-ink);
}

.store-nav-panel-intro strong { display: block; font-size: 17px; line-height: 1.2; }
.store-nav-panel-intro p { margin: 8px 0 0; color: #c2d0dc; font-size: 12px; line-height: 1.5; }
.store-nav-panel-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
body.dealvoyant-theme .store-nav-panel-links a {
  min-width: 0;
  min-height: 58px;
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 8px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  transform: none;
}

body.dealvoyant-theme .store-nav-panel-links a:hover { color: var(--dv-teal-dark); background: var(--dv-surface-tint); }
.store-nav-panel-links a strong,
.store-nav-panel-links a small { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.store-nav-panel-links a strong { color: inherit; font-size: 13px; }
.store-nav-panel-links a small { color: var(--dv-muted); font-size: 10px; }

body.dealvoyant-theme .storefront-primary-nav a:hover,
body.dealvoyant-theme .storefront-primary-nav a[aria-current="page"] {
  color: var(--dv-teal-dark);
  border: 0;
  background: var(--dv-surface-tint);
  transform: translateY(-1px);
}

body.dealvoyant-theme .nav-search {
  border-color: var(--dv-line);
  border-radius: var(--dv-radius-sm);
  box-shadow: none;
  transition: border-color .2s var(--dv-ease), transform .2s var(--dv-ease);
}

body.dealvoyant-theme .nav-search:focus-within {
  border-color: var(--dv-teal);
  box-shadow: 0 0 0 3px rgba(7, 143, 152, .14);
  transform: translateY(-1px);
}

body.dealvoyant-theme .nav-search .icon-search { background: var(--dv-teal); }
body.dealvoyant-theme .nav-search .icon-search:hover { background: var(--dv-teal-dark); }
.market-context {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 10px;
  border: 1px solid var(--dv-line);
  border-radius: var(--dv-radius-sm);
  color: var(--dv-ink);
  background: var(--dv-surface);
  white-space: nowrap;
}

.market-context > span:last-child { display: grid; line-height: 1.1; }
.market-context strong { font-size: 12px; }
.market-context small { margin-top: 3px; color: var(--dv-muted); font-size: 9px; }
body.dealvoyant-theme .saved-nav-link { min-height: 46px; }

/* Hero */
.storefront-hero {
  min-height: 0;
  background: var(--dv-ink);
  border-bottom: 0;
}

.storefront-hero::before {
  width: 7px;
  height: 66%;
  inset: 17% auto auto 0;
  border-radius: 0;
  filter: none;
  background: #39c6c4;
  opacity: 1;
}

.storefront-hero::after {
  width: 96px;
  height: 96px;
  inset: auto 4% -48px auto;
  border-radius: 50%;
  filter: none;
  background: var(--dv-coral);
  opacity: .2;
}

.storefront-hero-grid {
  min-height: 650px;
  grid-template-columns: minmax(0, .92fr) minmax(600px, 1.08fr);
  gap: clamp(42px, 5vw, 82px);
  padding-block: clamp(48px, 5vw, 74px);
}

.storefront-hero-copy { max-width: 640px; }
.storefront-hero-copy h1 {
  color: #fff;
  max-width: 11.5ch;
  font-size: clamp(52px, 4.8vw, 78px);
  line-height: .98;
  letter-spacing: -.04em;
}

.storefront-hero-copy h1 span:first-child { color: #fff; }
.storefront-hero-copy h1 span:last-child { color: #54d1ce; }
.store-live-eyebrow {
  margin-bottom: 18px;
  padding: 7px 11px;
  color: #74dfdc;
  border: 1px solid #31536b;
  background: #0c2947;
  box-shadow: none;
}

.storefront-hero-copy > p:not(.store-eyebrow) {
  max-width: 62ch;
  margin-top: 22px;
  color: #c2d0dc;
  line-height: 1.65;
}

.storefront-hero-search {
  margin-top: 26px;
  padding: 5px;
  border-color: #bfd1d9;
  border-radius: var(--dv-radius-sm);
  box-shadow: 0 4px 8px rgba(7, 29, 58, .07);
  transition: border-color .22s var(--dv-ease), transform .22s var(--dv-ease);
}

.storefront-hero-search:focus-within {
  border-color: var(--dv-teal);
  box-shadow: 0 0 0 3px rgba(7, 143, 152, .14);
  transform: translateY(-1px);
}

.storefront-hero-actions { margin-top: 16px; }
body.dealvoyant-theme .store-primary-cta {
  background: var(--dv-coral);
  border-color: var(--dv-coral);
  box-shadow: none;
}

body.dealvoyant-theme .store-primary-cta:hover { background: #d9403e; border-color: #d9403e; }
body.dealvoyant-theme .store-primary-cta::after { display: none; }

.storefront-trust-inline { margin-top: 20px; color: #bdcad5; }
.storefront-trust-inline span {
  border-color: #31536b;
  background: #0c2947;
}
.storefront-trust-inline strong { color: #fff; }

.store-intent-links { gap: 8px; margin-top: 12px; }
.store-intent-links a {
  color: #fff;
  border-color: #31536b;
  border-radius: var(--dv-radius-sm);
  background: #0c2947;
  box-shadow: none;
  transition: border-color .2s var(--dv-ease), transform .2s var(--dv-ease), background-color .2s var(--dv-ease);
}

.store-intent-links a:hover {
  border-color: var(--dv-teal);
  background: #123755;
  box-shadow: none;
  transform: translateY(-2px);
}

.store-intent-links a > span { border-radius: 7px; background: var(--dv-teal); }
.store-intent-links small { color: #b8c8d4; font-size: 10px; }

.storefront-hero-visual { isolation: isolate; }
.store-hero-float {
  border: 0;
  border-radius: var(--dv-radius-sm);
  background: var(--dv-ink);
  box-shadow: 0 6px 8px rgba(7, 29, 58, .18);
  backdrop-filter: none;
}

.store-hero-float span { color: #b9cce0; }
.store-hero-float strong { color: #fff; }
.store-hero-float-value { top: -20px; right: 34px; animation: dvBadgeFloat 6s ease-in-out infinite; }

.storefront-hero-carousel-viewport { border-radius: var(--dv-radius-lg); }
.storefront-top-offer {
  min-height: 440px;
  border: 0;
  border-radius: var(--dv-radius-lg);
  box-shadow: 0 8px 8px rgba(7, 29, 58, .1);
}

.storefront-top-offer-media { padding: clamp(22px, 3vw, 38px); background: #e4f1f4; }
.storefront-top-offer-media img {
  height: 350px;
  transition: transform .65s var(--dv-ease);
}

.storefront-hero-carousel:hover .storefront-top-offer.is-active .storefront-top-offer-media img { transform: scale(1.025); }
.storefront-top-offer-copy { padding: clamp(28px, 3vw, 42px); }
.storefront-top-offer-copy h2 { font-size: clamp(26px, 2.15vw, 34px); overflow-wrap: anywhere; }
.storefront-hero-discount { background: var(--dv-coral); box-shadow: none; }

.storefront-hero-carousel-controls {
  min-height: 48px;
  border-color: #bdced6;
  background: var(--dv-surface);
  box-shadow: none;
  backdrop-filter: none;
}

.storefront-assurance {
  color: #fff;
  border: 0;
  background: var(--dv-coral);
}
.storefront-assurance strong,
.storefront-assurance span { color: #fff; }

.storefront-carousel-arrow,
.storefront-carousel-toggle { width: 38px; height: 38px; }
.storefront-carousel-arrow:hover,
.storefront-carousel-toggle:hover { background: var(--dv-teal); }

/* Section rhythm */
.store-section { padding: clamp(54px, 5vw, 78px) 0; }
.store-section:nth-of-type(even),
.store-merch-section:nth-of-type(even),
.store-merch-flash,
.store-merch-premium,
.store-merch-budget { background: var(--dv-surface); }

.store-merch-section:nth-of-type(odd) { background: var(--dv-canvas); }
.store-section-head { margin-bottom: 28px; }
.store-section-head h2 {
  max-width: 20ch;
  font-size: clamp(32px, 3.2vw, 48px);
  line-height: 1.04;
  overflow-wrap: anywhere;
}

.store-section-head p:not(.store-eyebrow) { max-width: 66ch; color: var(--dv-muted); line-height: 1.6; }
.store-section-head > a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--dv-teal-dark);
  text-decoration: none;
}

.store-section-head > a::after { content: "\2192"; transition: transform .2s var(--dv-ease); }
.store-section-head > a:hover::after { transform: translateX(4px); }
.store-eyebrow { color: var(--dv-teal-dark); letter-spacing: .075em; }

/* Promotions */
.campaign-showcase { background: #102d49; }
.campaign-showcase::before { display: none; }
.campaign-showcase .store-section-head h2 { color: #fff; }
.campaign-showcase .store-section-head .store-eyebrow { color: #63d6d2; }
.campaign-showcase .store-section-head p:not(.store-eyebrow) { color: #bdcbd6; }
.campaign-grid { gap: 18px; }
.campaign-card {
  border: 1px solid #c9d9e0;
  border-radius: var(--dv-radius-lg);
  background: var(--dv-surface);
  box-shadow: none;
  overflow: hidden;
  transition: border-color .24s var(--dv-ease), transform .24s var(--dv-ease);
}

.campaign-card:hover {
  border-color: var(--dv-teal);
  box-shadow: none;
  transform: translateY(-3px);
}

.campaign-card-artwork img { transition: transform .6s var(--dv-ease); }
.campaign-card-artwork > span { display: none; }
.campaign-card-content { padding: 24px; }
.campaign-card h3 { margin-top: 16px; overflow-wrap: anywhere; }
.campaign-card .marketplace-pill { background: var(--dv-surface-tint); }

/* Category discovery */
.store-category-tile {
  border-color: var(--dv-line);
  border-radius: var(--dv-radius-md);
  box-shadow: none;
  transition: border-color .2s var(--dv-ease), transform .2s var(--dv-ease), background-color .2s var(--dv-ease);
}

.store-category-tile:hover {
  border-color: var(--dv-teal);
  box-shadow: none;
  transform: translateY(-3px);
}

.store-category-tile { background: var(--dv-surface); }
.store-category-all { background: var(--dv-surface-tint); }
.store-category-tile img { transition: transform .35s var(--dv-ease); }
.store-category-tile:hover img { transform: scale(1.04); }

/* Product rails and cards */
.store-product-rail {
  grid-auto-columns: minmax(286px, calc((100% - 54px) / 4));
  gap: 18px;
  padding: 3px 3px 18px;
  scroll-padding-inline: 3px;
  scrollbar-color: var(--dv-teal) #dce7eb;
}

.store-product-rail::-webkit-scrollbar { height: 8px; }
.store-product-rail::-webkit-scrollbar-track { background: #dce7eb; border-radius: 999px; }
.store-product-rail::-webkit-scrollbar-thumb { background: var(--dv-teal); border-radius: 999px; }

.store-product-card {
  border-color: #cad8de;
  border-radius: var(--dv-radius-md);
  box-shadow: none;
  transform-style: flat;
  transition: border-color .22s var(--dv-ease), transform .22s var(--dv-ease);
}

.store-product-card:hover {
  border-color: var(--dv-teal);
  box-shadow: none;
  transform: translateY(-4px);
}

.store-product-media {
  flex-basis: 236px;
  height: 236px;
  padding: 14px;
  background: #eef4f6;
}

.store-product-media::after { display: none; }
.store-product-media img { transition: transform .45s var(--dv-ease); }
.store-product-card:hover .store-product-media img { transform: scale(1.035); }
.store-product-body { padding: 16px 17px 17px; border-top-color: #dce7eb; }
.store-product-source { min-height: 26px; }
.store-product-source span:first-child { color: var(--dv-teal-dark); }
.store-product-card h3 { min-height: 47px; margin-block: 9px 10px; overflow-wrap: anywhere; }
.store-price-row strong { color: var(--dv-success); font-size: 23px; }
.store-savings { color: var(--dv-success); }
.store-card-footer { margin-bottom: 12px; padding-top: 15px; }
.store-card-actions .btn { min-height: 44px; }
.store-save-button { min-width: 58px; height: 40px; }
body.dealvoyant-theme .store-offer-button { background: var(--dv-ink); border-color: var(--dv-ink); }
body.dealvoyant-theme .store-offer-button:hover { background: var(--dv-teal-dark); border-color: var(--dv-teal-dark); }

/* Supporting sections */
.store-learning-promo > .container,
.store-saved-promo > .container {
  border-radius: var(--dv-radius-lg);
  box-shadow: none;
}

.store-learning-promo > .container { background: var(--dv-ink); }
.store-learning-copy h2 { color: #fff; }
.store-saved-promo > .container { color: #fff; background: var(--dv-teal-dark); }
.store-saved-promo h2,
.store-saved-promo h3,
.store-saved-promo p,
.store-saved-promo .store-eyebrow { color: #fff; }
.store-saved-promo .store-saved-benefits article { border-color: rgba(255, 255, 255, .24); }
.store-saved-promo .btn.secondary { color: var(--dv-ink); border-color: #fff; background: #fff; }
.store-how-grid article,
.store-saved-benefits article { border-color: var(--dv-line); }
.store-partner-chips a,
.store-market-row a { border-radius: var(--dv-radius-sm); }

body.dealvoyant-theme .site-footer { background: var(--dv-ink); }
body.dealvoyant-theme .footer-brand > strong { color: #fff; }
body.dealvoyant-theme .footer-links a { min-height: 34px; transition: color .18s ease, transform .18s var(--dv-ease); }
body.dealvoyant-theme .footer-links a:hover { color: #fff; transform: translateX(2px); }

.store-mobile-menu { position: static; }
.store-mobile-menu > summary {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border: 1px solid #c9d6dc;
  border-radius: 999px;
  color: var(--dv-ink);
  background: #fff;
  font-size: 12px;
  font-weight: 800;
  list-style: none;
  cursor: pointer;
}

.store-mobile-menu > summary[aria-current="page"],
.store-mobile-menu[open] > summary { color: #fff; border-color: var(--dv-teal-dark); background: var(--dv-teal-dark); }
.store-mobile-menu[open] > summary .store-nav-chevron { transform: translateY(2px) rotate(225deg); }
details.store-mobile-menu > .store-mobile-panel { display: none; }
details.store-mobile-menu[open] > .store-mobile-panel {
  position: absolute;
  z-index: 95;
  top: 100%;
  right: max(14px, calc((100vw - 1420px) / 2));
  left: max(14px, calc((100vw - 1420px) / 2));
  display: block;
  max-height: min(520px, calc(100vh - 190px));
  padding: 18px;
  overflow: auto;
  border: 1px solid #bfcfd7;
  border-radius: 0 0 var(--dv-radius-md) var(--dv-radius-md);
  color: var(--dv-ink);
  background: #fff;
  box-shadow: 0 8px 8px rgba(7, 29, 58, .15);
}

.store-mobile-panel > strong { font-size: 18px; }
.store-mobile-panel > p { max-width: 64ch; margin: 5px 0 13px; color: var(--dv-muted); font-size: 12px; }
.store-mobile-panel > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
body.dealvoyant-theme .store-mobile-panel a {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 8px 10px;
  border: 0;
  border-radius: 7px;
  color: var(--dv-ink);
  background: var(--dv-canvas);
  font-size: 12px;
  font-weight: 750;
}

body.dealvoyant-theme .store-mobile-panel a:hover { color: var(--dv-teal-dark); background: var(--dv-surface-tint); }

/* Purposeful arrival and interaction motion. */
.storefront-hero-copy > * { animation: dvHeroCopyIn .62s var(--dv-ease) both; }
.storefront-hero-copy > :nth-child(2) { animation-delay: 70ms; }
.storefront-hero-copy > :nth-child(3) { animation-delay: 120ms; }
.storefront-hero-copy > :nth-child(4) { animation-delay: 165ms; }
.storefront-hero-copy > :nth-child(n+5) { animation-delay: 205ms; }
.storefront-hero-visual { animation: dvHeroVisualIn .75s .12s var(--dv-ease) both; }
.storefront-hero-carousel .storefront-top-offer.is-active { animation: dvCarouselReveal .42s var(--dv-ease) both; }

@keyframes dvHeroCopyIn {
  from { opacity: .01; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes dvHeroVisualIn {
  from { opacity: .01; transform: translateX(18px) scale(.99); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes dvCarouselReveal {
  from { opacity: .15; transform: translateX(16px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes dvBadgeFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Internationalization and long content safety. */
body.dealvoyant-theme [dir="rtl"],
html[dir="rtl"] body.dealvoyant-theme { text-align: start; }
html[dir="rtl"] .store-discount-badge,
html[dir="rtl"] .store-rank-badge,
html[dir="rtl"] .store-preview-badge { right: 14px; left: auto; }
html[dir="rtl"] .store-save-button { right: auto; left: 12px; }
html[dir="rtl"] .store-section-head > a::after { content: "\2190"; }
html[dir="rtl"] body.dealvoyant-theme .footer-links a:hover { transform: translateX(-2px); }

@media (max-width: 1320px) {
  body.dealvoyant-theme .site-nav { grid-template-columns: auto minmax(260px, 1fr) auto auto; }
  .store-mobile-nav { position: relative; border-top-color: var(--dv-line); background: #fff; backdrop-filter: none; }
  .store-mobile-nav .container { flex-wrap: wrap; overflow: visible; scrollbar-width: auto; }
  body.dealvoyant-theme .store-mobile-nav a.store-mobile-saved { min-height: 40px; padding: 7px 12px; border-color: #c9d6dc; background: #fff; }
  .storefront-hero-grid { grid-template-columns: minmax(0, .9fr) minmax(480px, 1.1fr); gap: 34px; }
  .storefront-hero-carousel-viewport { min-height: 570px; }
  .storefront-top-offer-media img { height: 250px; }
}

@media (max-width: 900px) {
  body.dealvoyant-theme .container { width: min(100% - 32px, 760px); }
  .storefront-hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .storefront-hero-copy { max-width: 680px; }
  .storefront-hero-copy h1 { max-width: 12ch; }
  .storefront-hero-carousel-viewport { min-height: 350px; }
  .storefront-top-offer { grid-template-columns: 1fr 1fr; }
  .storefront-top-offer-media img { height: 280px; }
  .store-product-rail { grid-auto-columns: minmax(286px, calc((100% - 18px) / 2)); }
  .market-context { display: none; }
  body.dealvoyant-theme .site-nav { grid-template-columns: 1fr auto; }
  body.dealvoyant-theme .nav-search { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  body.dealvoyant-theme .container { width: calc(100% - 24px); }
  body.dealvoyant-theme .site-nav { gap: 10px; }
  body.dealvoyant-theme .brand-mark,
  body.dealvoyant-theme .brand-mark img { width: 40px; height: 40px; }
  body.dealvoyant-theme .brand-copy > span { font-size: 23px; }
  .store-mobile-nav .container { gap: 6px; padding-block: 7px; }
  .store-mobile-menu > summary,
  body.dealvoyant-theme .store-mobile-nav a.store-mobile-saved { min-height: 38px; padding: 6px 10px; font-size: 11px; }
  .store-mobile-panel > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .storefront-hero::before { width: 4px; }
  .storefront-hero-grid { gap: 30px; padding-block: 34px 42px; }
  .storefront-hero-copy h1 { max-width: 12ch; font-size: clamp(40px, 12vw, 54px); }
  .storefront-hero-copy > p:not(.store-eyebrow) { font-size: 16px; }
  .storefront-hero-search { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .storefront-hero-search .btn { min-width: 92px; padding-inline: 15px; }
  .storefront-trust-inline { display: flex; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 5px; scrollbar-width: none; }
  .storefront-trust-inline span { flex: 0 0 auto; }
  .store-intent-links { display: grid; grid-template-columns: 1fr; }
  .store-intent-links a { min-height: 54px; }

  .storefront-top-offer { grid-template-columns: 1fr; }
  .storefront-top-offer-media { min-height: 230px; height: 230px; }
  .storefront-top-offer-media img { height: 210px; }
  .storefront-top-offer-copy { padding: 22px; }
  .storefront-hero-carousel-viewport { min-height: 0; }
  .storefront-hero-carousel-controls { margin-top: -14px; }

  .store-section-head h2 { font-size: clamp(31px, 10vw, 42px); }
  .campaign-card,
  .campaign-card.campaign-hero,
  .campaign-card.campaign-banner { border-radius: var(--dv-radius-md); }
  .store-product-rail { grid-auto-columns: minmax(278px, calc(100vw - 48px)); }
  .store-product-media { flex-basis: 250px; height: 250px; min-height: 250px; }
  .store-product-media > a { height: 220px; }
  .store-card-actions { position: sticky; bottom: 0; background: #fff; }
}

@media (max-width: 420px) {
  .store-mobile-panel > div { grid-template-columns: 1fr; }
  .store-mobile-menu > summary,
  body.dealvoyant-theme .store-mobile-nav a.store-mobile-saved { padding-inline: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .storefront-hero-copy > *,
  .storefront-hero-visual,
  .storefront-hero-carousel .storefront-top-offer.is-active {
    opacity: 1;
    transform: none;
  }
}

@media (forced-colors: active) {
  .storefront-hero,
  .campaign-showcase,
  .store-product-media { background: Canvas; }
  .storefront-hero::before,
  .storefront-hero::after { display: none; }
}

/* Storefront responsive integrity layer.
 * These rules sit last on purpose: every public commerce route uses the same
 * minimum-width, touch-target and narrow-layout contract regardless of which
 * route-specific components are present.
 */
html,
body.dealvoyant-theme {
  max-width: 100%;
  overflow-x: clip;
}

body.dealvoyant-theme *,
body.dealvoyant-theme *::before,
body.dealvoyant-theme *::after { box-sizing: border-box; }

body.dealvoyant-theme :where(
  .site-nav,
  .site-nav > *,
  .storefront-hero-grid,
  .storefront-hero-grid > *,
  .storefront-top-offer,
  .storefront-top-offer > *,
  .store-section-head,
  .store-section-head > *,
  .store-product-grid,
  .store-product-card,
  .store-product-media,
  .store-product-body,
  .store-filter-deck,
  .store-filter-primary,
  .store-more-filters,
  .store-more-filters > div,
  .store-results-bar,
  .store-route-hero .container,
  .store-product-detail,
  .store-product-detail > *,
  .store-offer-row,
  .store-offer-row > *,
  .store-category-card,
  .store-category-card > *,
  .store-compare-cards,
  .store-comparison-shell,
  .footer-grid,
  .footer-grid > *
) { min-width: 0; }

body.dealvoyant-theme :where(
  .store-product-card h3,
  .store-detail-copy h1,
  .store-offer-row strong,
  .store-category-card h2,
  .store-route-hero h1,
  .store-results-bar,
  .store-freshness,
  .store-card-actions .btn,
  .store-detail-actions .btn
) { overflow-wrap: anywhere; }

body.dealvoyant-theme .store-product-source,
body.dealvoyant-theme .store-price-row,
body.dealvoyant-theme .store-card-footer,
body.dealvoyant-theme .store-detail-price,
body.dealvoyant-theme .store-detail-actions,
body.dealvoyant-theme .store-filter-actions { min-width: 0; }

body.dealvoyant-theme .store-product-source span:first-child { flex: 1 1 auto; }
body.dealvoyant-theme .store-card-footer { align-items: flex-start; }
body.dealvoyant-theme .store-freshness {
  min-width: 0;
  white-space: normal;
  line-height: 1.3;
}

body.dealvoyant-theme .store-card-actions {
  display: grid;
  grid-template-columns: minmax(84px, .72fr) minmax(112px, 1.28fr);
  align-items: stretch;
}

body.dealvoyant-theme .store-card-actions .btn {
  width: 100%;
  min-width: 0;
  justify-content: center;
  text-align: center;
  white-space: normal;
}

body.dealvoyant-theme .store-filter-deck :where(input, select, button),
body.dealvoyant-theme .storefront-hero-search :where(input, button),
body.dealvoyant-theme .nav-search :where(input, button) { min-width: 0; max-width: 100%; }

body.dealvoyant-theme .store-comparison-shell {
  max-width: 100%;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

body.dealvoyant-theme .store-comparison-table { min-width: 760px; }
body.dealvoyant-theme .store-mobile-panel,
body.dealvoyant-theme .store-nav-panel { max-width: calc(100vw - 24px); }

body.dealvoyant-theme .store-preview-disclosure {
  display: grid;
  gap: 5px;
  margin-bottom: 18px;
  padding: 13px 15px;
  border-radius: var(--dv-radius-md);
  color: #654b12;
  background: #fff6dc;
  font-size: 13px;
  line-height: 1.5;
}

body.dealvoyant-theme .store-preview-disclosure strong { color: #493608; }

@media (hover: none) {
  body.dealvoyant-theme :where(.store-product-card, .store-category-card, .campaign-card):hover {
    transform: none;
  }
}

@media (max-width: 1100px) {
  body.dealvoyant-theme .store-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(14px, 2vw, 20px);
  }

  body.dealvoyant-theme .store-product-detail {
    grid-template-columns: minmax(300px, .82fr) minmax(0, 1.18fr);
    gap: clamp(24px, 4vw, 42px);
  }

  body.dealvoyant-theme .store-detail-media {
    min-height: 420px;
    padding: 24px;
  }

  body.dealvoyant-theme .store-detail-media img { height: min(380px, 42vw); }
}

@media (max-width: 900px) {
  body.dealvoyant-theme .store-product-detail { grid-template-columns: 1fr; }

  body.dealvoyant-theme .store-filter-primary,
  body.dealvoyant-theme .store-more-filters > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.dealvoyant-theme .store-category-card {
    grid-template-columns: minmax(130px, .42fr) minmax(0, 1fr);
  }

  body.dealvoyant-theme .store-offer-row {
    grid-template-columns: minmax(0, 1fr) minmax(130px, auto);
    gap: 14px 20px;
  }

  body.dealvoyant-theme .store-offer-row > .store-score { justify-self: start; }
  body.dealvoyant-theme .store-offer-row > .btn { justify-self: stretch; }
}

@media (max-width: 620px) {
  body.dealvoyant-theme .site-header { padding-top: env(safe-area-inset-top); }
  body.dealvoyant-theme .site-nav { padding-inline: max(0px, env(safe-area-inset-left)) max(0px, env(safe-area-inset-right)); }

  body.dealvoyant-theme .brand-copy { min-width: 0; }
  body.dealvoyant-theme .brand-copy > span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.dealvoyant-theme .saved-nav-link {
    min-width: 92px;
    justify-self: end;
  }

  .store-mobile-nav .container {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    overflow: visible;
  }

  .store-mobile-menu,
  body.dealvoyant-theme .store-mobile-nav a.store-mobile-saved { min-width: 0; width: 100%; }

  .store-mobile-menu > summary,
  body.dealvoyant-theme .store-mobile-nav a.store-mobile-saved {
    width: 100%;
    min-width: 0;
    justify-content: center;
    padding-inline: 7px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  details.store-mobile-menu[open] > .store-mobile-panel {
    right: 12px;
    left: 12px;
    max-width: none;
    max-height: min(480px, calc(100dvh - 220px));
    overscroll-behavior: contain;
  }

  .store-mobile-panel > div { grid-template-columns: 1fr; }
  body.dealvoyant-theme .store-mobile-panel a { min-height: 46px; }

  body.dealvoyant-theme .storefront-hero-search {
    grid-template-columns: minmax(0, 1fr) auto;
    width: 100%;
  }

  body.dealvoyant-theme .storefront-hero-search input {
    width: 100%;
    padding-inline: 12px;
  }

  body.dealvoyant-theme .storefront-hero-search .btn { min-width: 86px; }
  body.dealvoyant-theme .storefront-top-offer-media { aspect-ratio: 4 / 3; height: auto; min-height: 0; }
  body.dealvoyant-theme .storefront-top-offer-media img { width: 100%; height: 100%; max-height: 230px; object-fit: contain; }

  body.dealvoyant-theme .store-section-head { gap: 14px; }
  body.dealvoyant-theme .store-section-head > a { align-self: flex-start; }

  body.dealvoyant-theme .store-product-grid { grid-template-columns: minmax(0, 1fr); }
  body.dealvoyant-theme .store-product-grid:not(.store-product-rail) .store-product-media {
    height: auto;
    min-height: 0;
    flex-basis: auto;
    aspect-ratio: 4 / 3;
  }

  body.dealvoyant-theme .store-product-grid:not(.store-product-rail) .store-product-media > a { height: 100%; }
  body.dealvoyant-theme .store-filter-deck { padding: 14px; }
  body.dealvoyant-theme .store-filter-primary,
  body.dealvoyant-theme .store-more-filters > div { grid-template-columns: minmax(0, 1fr); }
  body.dealvoyant-theme .store-more-filters summary {
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  body.dealvoyant-theme .store-filter-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
  }

  body.dealvoyant-theme .store-filter-actions .btn { width: 100%; }
  body.dealvoyant-theme .store-filter-actions > a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding-inline: 8px;
  }

  body.dealvoyant-theme .store-route-hero { padding-block: 34px 24px; }
  body.dealvoyant-theme .store-route-hero h1 {
    max-width: 100%;
    font-size: clamp(32px, 10vw, 44px);
    line-height: 1.04;
  }

  body.dealvoyant-theme .store-route-hero p:not(.store-eyebrow) { font-size: 15px; }
  body.dealvoyant-theme .store-results-bar,
  body.dealvoyant-theme .store-pagination-summary { align-items: flex-start; }

  body.dealvoyant-theme .store-product-detail {
    gap: 24px;
    padding: 16px;
    border-radius: var(--dv-radius-lg);
  }

  body.dealvoyant-theme .store-detail-media {
    width: 100%;
    min-height: 0;
    aspect-ratio: 1 / 1;
    padding: 16px;
    border-radius: var(--dv-radius-md);
  }

  body.dealvoyant-theme .store-detail-media img { width: 100%; height: 100%; max-height: none; }
  body.dealvoyant-theme .store-detail-copy { padding: 0; }
  body.dealvoyant-theme .store-detail-copy h1 {
    font-size: clamp(30px, 9.5vw, 40px);
    line-height: 1.06;
  }

  body.dealvoyant-theme .store-detail-signals { grid-template-columns: minmax(0, 1fr); }
  body.dealvoyant-theme .store-detail-actions { display: grid; grid-template-columns: minmax(0, 1fr); }
  body.dealvoyant-theme .store-detail-actions .btn { width: 100%; }
  body.dealvoyant-theme .store-offer-row { grid-template-columns: minmax(0, 1fr); }
  body.dealvoyant-theme .store-offer-row .btn { width: 100%; }
  body.dealvoyant-theme .store-cross-market-offers summary { overflow-wrap: anywhere; }

  body.dealvoyant-theme .store-category-card {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 14px;
    min-height: 0;
    padding: 14px;
  }

  body.dealvoyant-theme .store-category-card img { width: 100%; height: 124px; }
  body.dealvoyant-theme .store-category-card h2 { font-size: clamp(20px, 6vw, 24px); }
  body.dealvoyant-theme .store-category-card p:not(.store-eyebrow) { font-size: 13px; }

  body.dealvoyant-theme .store-compare-toolbar,
  body.dealvoyant-theme .store-privacy-notice { gap: 10px; }
  body.dealvoyant-theme .store-comparison-shell { border-radius: var(--dv-radius-md); }
  body.dealvoyant-theme .store-comparison-table { min-width: 700px; }
}

@media (max-width: 420px) {
  .store-mobile-nav .container { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  body.dealvoyant-theme .store-product-source {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  body.dealvoyant-theme .store-product-source span:first-child,
  body.dealvoyant-theme .store-product-source span:last-child {
    max-width: 100%;
    white-space: normal;
  }

  body.dealvoyant-theme .store-card-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
  }

  body.dealvoyant-theme .store-freshness { max-width: 100%; text-align: left; }
  body.dealvoyant-theme .store-card-actions { grid-template-columns: minmax(0, 1fr); }

  body.dealvoyant-theme .store-category-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  body.dealvoyant-theme .store-category-card > div { aspect-ratio: 16 / 8; }
  body.dealvoyant-theme .store-category-card img { height: 100%; max-height: 170px; }
  body.dealvoyant-theme .footer-nav-groups { grid-template-columns: minmax(0, 1fr); }
}

@supports not (overflow: clip) {
  html,
  body.dealvoyant-theme { overflow-x: hidden; }
}
