.classic-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  color: var(--ink);
  background: var(--chrome);
  backdrop-filter: blur(16px);
}
.classic-header-row { min-height: 72px; display: flex; align-items: center; gap: 28px; }
.classic-brand { min-width: 0; display: inline-flex; align-items: center; gap: 11px; font-size: 1.08rem; font-weight: 760; }
.classic-brand-logo { width: 38px; height: 38px; object-fit: contain; }
.classic-brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px 4px 11px 4px;
  color: var(--on-brand-active);
  background: var(--brand-active);
  font-weight: 800;
}
.classic-brand-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.classic-desktop-nav { display: flex; gap: 8px; margin-inline: auto; }
.classic-desktop-nav a { padding: 9px 13px; border-radius: 10px; color: var(--muted); font-weight: 600; }
.classic-desktop-nav a:hover { color: var(--ink); background: var(--surface); }
.classic-header-actions { display: flex; align-items: center; gap: 8px; }
.icon-button, .icon-text-button, .classic-cart-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: var(--surface);
  cursor: pointer;
}
.icon-button { width: 42px; padding: 0; }
.icon-text-button, .classic-cart-link { padding: 8px 12px; }
.icon-button svg, .classic-cart-link svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}
.classic-cart-link { position: relative; color: var(--on-brand-active); border-color: var(--brand-active); background: var(--brand-active); }

.classic-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 70px 0 56px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--brand-active) 3%, var(--paper));
}
.classic-hero::before,
.classic-hero::after {
  content: "";
  position: absolute;
  inset-block-start: 50%;
  inset-inline-end: max(-100px, calc((100vw - 1180px) / 2 - 100px));
  width: min(48vw, 600px);
  aspect-ratio: 600 / 340;
  transform: translateY(-50%);
  pointer-events: none;
}
.classic-hero::before {
  background: radial-gradient(ellipse, color-mix(in srgb, var(--brand-active) 12%, transparent), transparent 72%);
}
.classic-hero::after {
  background: var(--brand-active);
  opacity: .36;
  -webkit-mask: url("/images/classic-commerce-pattern.svg") center / contain no-repeat;
  mask: url("/images/classic-commerce-pattern.svg") center / contain no-repeat;
}
.classic-hero-inner { position: relative; z-index: 1; max-width: 730px; }
.classic-hero h1 { max-width: 720px; margin: 0; font-size: clamp(2.35rem, 6vw, 5rem); line-height: 1.02; letter-spacing: -0.045em; }
[dir="rtl"] .classic-hero h1 { letter-spacing: 0; line-height: 1.18; }
.classic-hero p { max-width: 640px; margin: 22px 0 0; color: var(--muted); font-size: 1.08rem; }
.classic-hero-search {
  max-width: 660px;
  margin-top: 30px;
  padding: 7px;
  display: flex;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.classic-hero-search input { min-width: 0; flex: 1; padding: 11px 13px; border: 0; color: var(--ink); background: transparent; outline: none; }

.classic-category-strip { padding-block: 22px; display: flex; gap: 10px; overflow-x: auto; scrollbar-width: thin; }
.classic-category-pill { flex: 0 0 auto; padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-weight: 650; }
.classic-category-pill span { margin-inline-start: 6px; color: var(--muted); font-size: 0.82rem; }
.classic-category-pill:hover { color: var(--on-brand-active); border-color: var(--brand-active); background: var(--brand-active); }
.classic-category-pill:hover span { color: inherit; }

.classic-section-head { margin-bottom: 23px; display: flex; align-items: end; justify-content: space-between; gap: 18px; }
.classic-section-head h1, .classic-section-head h2 { margin: 0; font-size: clamp(1.55rem, 3vw, 2.25rem); line-height: 1.2; }
.classic-section-head p { margin: 6px 0 0; color: var(--muted); }
.classic-product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.classic-product-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface-raised);
  transition: transform 160ms ease, border-color 160ms ease;
}
.classic-product-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--brand-active) 45%, var(--line)); }
.classic-product-media { position: relative; aspect-ratio: 1 / 0.84; display: grid; place-items: center; overflow: hidden; background: color-mix(in srgb, var(--surface) 82%, var(--brand) 18%); }
.classic-product-media img { width: 100%; height: 100%; object-fit: cover; }
.classic-product-media .availability { position: absolute; inset-block-start: 12px; inset-inline-start: 12px; }
.classic-product-card-body { padding: 16px; }
.classic-product-card h3 { min-height: 2.9em; margin: 5px 0 10px; font-size: 1rem; line-height: 1.45; }
.product-sku { display:block; margin:-3px 0 9px; color:var(--muted); font-size:.78rem; }
.product-sku span { font-weight:700; }
.classic-product-card-description { display:-webkit-box; overflow:hidden; min-height:2.8em; margin:0 0 10px; color:var(--muted); font-size:.84rem; line-height:1.4; -webkit-box-orient:vertical; -webkit-line-clamp:2; }
.classic-product-actions { margin-top: 15px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.classic-quick-add { width: 42px; height: 42px; border: 0; border-radius: 50%; color: var(--on-brand-active); background: var(--brand-active); cursor: pointer; font-size: 1.35rem; }
.classic-quick-add.is-added { color: var(--brand-active); background: color-mix(in srgb, var(--brand-active) 15%, var(--surface)); }

.classic-catalog-toolbar {
  margin-bottom: 24px;
  padding: 15px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 280px) auto;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.classic-product-detail { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(330px, 0.92fr); gap: clamp(28px, 6vw, 72px); align-items: start; }
.classic-product-gallery { min-width: 0; display: grid; gap: 12px; }
.classic-product-gallery.has-thumbnails { display: flex; align-items: flex-start; }
.classic-detail-media { min-width: 0; flex: 1; overflow: hidden; border-radius: 26px 9px 26px 9px; background: color-mix(in srgb, var(--surface) 78%, var(--brand) 22%); box-shadow: var(--shadow); }
.classic-detail-media img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.classic-detail-media .image-fallback { min-height: 460px; font-size: 7rem; }
.classic-product-thumbnails {
  width: 82px;
  max-height: min(570px, 47vw);
  padding: 3px 3px 8px;
  display: grid;
  grid-auto-rows: 76px;
  gap: 10px;
  overflow-y: auto;
  scroll-snap-type: block proximity;
  scrollbar-width: thin;
}
.classic-product-thumbnail { width: 76px; height: 76px; padding: 4px; overflow: hidden; scroll-snap-align: start; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); cursor: pointer; }
.classic-product-thumbnail:hover { border-color: color-mix(in srgb, var(--brand-active) 52%, var(--line)); }
.classic-product-thumbnail.is-active { border-color: var(--brand-active); box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand-active) 24%, transparent); }
.classic-product-thumbnail img { width: 100%; height: 100%; border-radius: 9px; object-fit: cover; }
.classic-detail-info h1 { margin: 10px 0 12px; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.15; }
.classic-detail-sku { width:fit-content; margin:-3px 0 14px; padding:7px 10px; display:flex; align-items:center; gap:7px; border:1px solid var(--line); border-radius:9px; color:var(--muted); background:var(--surface); font-size:.86rem; }
.classic-detail-sku span { font-weight:750; }
.classic-detail-buy { margin-top: 28px; padding: 20px; display: grid; gap: 18px; border-inline-start: 4px solid var(--brand-active); background: var(--surface); }
.classic-product-options { display: grid; gap: 18px; }
.classic-option-group { display: grid; gap: 10px; }
.classic-option-label { color: var(--ink); font-size: 0.92rem; font-weight: 760; }
.classic-option-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.classic-option-chip {
  min-width: 78px;
  min-height: 42px;
  padding: 8px 17px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: none;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 150ms ease, color 150ms ease, background 150ms ease, transform 150ms ease;
}
.classic-option-chip:hover { border-color: var(--brand-active); color: var(--brand-active); transform: translateY(-1px); }
.classic-option-chip.is-selected,
.classic-option-chip[aria-checked="true"] { border-color: var(--brand-active); color: var(--on-brand-active); background: var(--brand-active); }
.classic-option-chip:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand-active) 30%, transparent); outline-offset: 2px; }
.classic-option-chip[hidden] { display: none; }
.classic-detail-price { font-size: 1.55rem; font-weight: 820; }
.classic-quantity-row { display: grid; grid-template-columns: 120px 1fr; gap: 12px; }

.classic-footer { margin-top: 72px; padding: 0 0 82px; border-top: 3px solid color-mix(in srgb, var(--brand-active) 72%, var(--line)); color: var(--muted); background: var(--chrome); }
.classic-footer-grid { padding-top: 44px; display: grid; grid-template-columns: minmax(260px, 1.45fr) minmax(150px, 0.65fr) minmax(230px, 0.9fr); gap: clamp(32px, 6vw, 76px); align-items: start; }
.classic-footer-identity { max-width: 390px; }
.classic-footer-brand { display: inline-flex; align-items: center; gap: 12px; }
.classic-footer-brand strong { color: var(--ink); font-size: 1.08rem; }
.classic-footer-logo { width: 46px; height: 46px; object-fit: contain; }
.classic-footer-mark { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px 5px 13px 5px; color: var(--on-brand-active); background: var(--brand-active); font-weight: 800; }
.classic-footer-identity p { max-width: 34ch; margin: 14px 0 0; line-height: 1.7; }
.classic-footer-navigation, .classic-footer-contact { display: grid; align-content: start; gap: 10px; }
.classic-footer-navigation strong, .classic-footer-contact strong { margin-bottom: 4px; color: var(--ink); }
.classic-footer-navigation a { width: fit-content; }
.classic-footer-navigation a:hover, .classic-footer-bottom a:hover { color: var(--brand-active); }
.classic-footer-contact { margin: 0; font-style: normal; }
.classic-footer-contact-link { min-width: 0; width: fit-content; padding-block: 7px; display: grid; grid-template-columns: 22px auto; gap: 9px; align-items: center; justify-self: start; }
.classic-footer-contact-link svg { width: 20px; height: 20px; fill: none; stroke: var(--brand-active); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.classic-footer-contact-link span { overflow-wrap: anywhere; }
.classic-footer-bottom { grid-column: 1 / -1; padding-top: 22px; display: flex; justify-content: space-between; gap: 18px; border-top: 1px solid var(--line); font-size: 0.86rem; }
.classic-footer-bottom > div { display: flex; flex-wrap: wrap; gap: 8px; }
.classic-mobile-nav { display: none; }

/*
 * Market is a layout-and-style variant of the shared storefront system.
 * It reuses the same markup, tokens, behavior, and accessibility contract.
 */
.template-market {
  --shell: min(1320px, calc(100% - 32px));
  --market-tint: color-mix(in srgb, var(--brand-active) 6%, var(--surface));
}

html[data-theme="dark"] .template-market {
  --market-tint: color-mix(in srgb, var(--brand-active) 9%, var(--surface));
}

.template-market .classic-header {
  position: relative;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  color: var(--ink);
  background: var(--chrome);
  box-shadow: none;
  backdrop-filter: blur(16px);
}
.template-market .classic-header-row { min-height: 78px; }
.template-market .classic-brand-mark { border-radius: 7px 2px 7px 2px; background: var(--brand-active); }
.template-market .classic-brand-name { color: var(--ink); }
.template-market .classic-desktop-nav { gap: 20px; }
.template-market .classic-desktop-nav a {
  position: relative;
  padding: 27px 4px 24px;
  border-radius: 0;
  color: var(--muted);
}
.template-market .classic-desktop-nav a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-end: 18px;
  height: 2px;
  background: var(--brand-active);
  transform: scaleX(0);
  transition: transform 160ms ease;
}
.template-market .classic-desktop-nav a:hover { color: var(--ink); background: transparent; }
.template-market .classic-desktop-nav a:hover::after { transform: scaleX(1); }
.template-market .icon-button,
.template-market .icon-text-button {
  border-color: var(--line);
  border-radius: 7px;
  color: var(--ink);
  background: var(--surface);
}
.template-market .classic-cart-link {
  border-color: var(--brand-active);
  border-radius: 7px;
  color: var(--on-brand-active);
  background: var(--brand-active);
}

.template-market .classic-hero {
  padding: 68px 0 62px;
  border-bottom: 0;
  color: #ffffff;
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--brand-active) 72%, #07151d) 0%,
    var(--brand-active) 58%,
    color-mix(in srgb, var(--brand-active) 70%, #061018) 100%
  );
}
.template-market .classic-hero::before { content: none; }
.template-market .classic-hero::after {
  inset-block: 0;
  inset-inline-end: 0;
  width: 100%;
  aspect-ratio: auto;
  border-radius: 0;
  opacity: 1;
  transform: none;
  -webkit-mask: none;
  mask: none;
  background:
    radial-gradient(circle clamp(58px, 7vw, 100px) at 12% 38%, rgba(255, 255, 255, 0.08) 0 99%, transparent 100%),
    radial-gradient(circle clamp(68px, 8vw, 112px) at 88% 38%, rgba(255, 255, 255, 0.09) 0 99%, transparent 100%),
    radial-gradient(circle clamp(42px, 5vw, 72px) at 70% 73%, rgba(255, 255, 255, 0.07) 0 99%, transparent 100%),
    radial-gradient(circle clamp(32px, 3.8vw, 50px) at 38% 72%, rgba(255, 255, 255, 0.1) 0 99%, transparent 100%);
  clip-path: none;
}
.template-market .classic-hero-inner {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.72fr);
  grid-template-rows: auto auto;
  column-gap: clamp(50px, 8vw, 120px);
  align-items: center;
}
.template-market .classic-hero h1 {
  grid-column: 1;
  grid-row: 1;
  max-width: 760px;
  font-size: clamp(2.5rem, 5vw, 4.7rem);
}
.template-market .classic-hero p {
  grid-column: 1;
  grid-row: 2;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.78);
}
.template-market .classic-hero-search {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 100%;
  margin-top: 0;
  padding: 10px;
  border-radius: 8px;
  background: var(--surface-raised);
  box-shadow: 0 18px 42px color-mix(in srgb, black 20%, transparent);
}
.template-market .classic-hero-search .button { border-radius: 6px; color: #ffffff; }

.template-market .classic-category-strip {
  position: relative;
  z-index: 2;
  margin-top: -20px;
  padding: 13px;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-raised);
  box-shadow: 0 12px 30px rgba(12, 31, 41, 0.1);
}
.template-market .classic-category-pill {
  padding: 9px 15px;
  border-radius: 7px;
  background: var(--market-tint);
}
.template-market .classic-category-pill:hover { color: #ffffff; border-color: var(--brand-active); background: var(--brand-active); }
.template-market .button,
.template-market .button-secondary,
.template-market .button-quiet,
.template-market .field input,
.template-market .field textarea,
.template-market .field select,
.template-market .search-input { border-radius: 7px; }
.template-market .section { padding-block: 46px; }
.template-market .classic-section-head {
  margin-bottom: 20px;
  padding-inline-start: 14px;
  border-inline-start: 4px solid var(--brand-active);
}
.template-market .classic-product-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.template-market .classic-product-card {
  border-radius: 12px 12px 5px 5px;
  background: var(--surface-raised);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.template-market .classic-product-card:hover {
  transform: none;
  border-color: color-mix(in srgb, var(--brand-active) 58%, var(--line));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand-active) 18%, transparent);
}
.template-market .classic-product-media { aspect-ratio: 1 / 1; border-bottom: 1px solid var(--line); background: var(--market-tint); }
.template-market .availability { border: 1px solid color-mix(in srgb, currentColor 28%, transparent); border-radius: 5px; }
.template-market .classic-product-card-body { padding: 13px; }
.template-market .classic-product-card h3 { min-height: 2.8em; margin-block: 4px 8px; font-size: 0.96rem; }
.template-market .classic-product-actions { margin-top: 12px; }
.template-market .classic-quick-add { width: 38px; height: 38px; border-radius: 6px; }
.template-market .classic-catalog-toolbar { border-inline-start: 4px solid var(--brand-active); border-radius: 8px; background: var(--market-tint); }

.template-market .classic-detail-media {
  border-radius: 10px 10px 3px 3px;
  box-shadow: none;
}
.template-market .classic-product-thumbnail { border-radius: 7px; }
.template-market .classic-product-thumbnail img { border-radius: 4px; }
.template-market .classic-detail-buy {
  border-inline-start: 0;
  border-block-start: 4px solid var(--brand-active);
  border-radius: 8px;
  background: var(--market-tint);
}
.template-market .summary-card,
.template-market .checkout-form,
.template-market .tracking-card,
.template-market .success-card,
.template-market .empty-state,
.template-market .service-state { border-radius: 10px; box-shadow: none; }
.template-market .summary-card { border-block-start: 4px solid var(--brand-active); background: var(--market-tint); }
.template-market .cart-item { border-radius: 8px; }
.template-market .cart-item:first-child,
.template-market .cart-item:last-child,
.template-market .cart-item:only-child { border-radius: 8px; }
.template-market .cart-item img,
.template-market .cart-thumb-fallback,
.template-market .quantity-control,
.template-market .reference-box > div,
.template-market .info-band,
.template-market .error-band { border-radius: 7px; }
.template-market .classic-footer {
  margin-top: 56px;
  border-top: 4px solid var(--brand-active);
  color: var(--muted);
  background: var(--chrome);
}
.template-market .classic-footer-brand strong,
.template-market .classic-footer-navigation strong,
.template-market .classic-footer-contact strong { color: var(--ink); }
.template-market .classic-footer-navigation a:hover,
.template-market .classic-footer-bottom a:hover { color: var(--brand-active); }
.template-market .classic-footer-contact-link svg { stroke: var(--brand-active); }
.template-market .classic-footer-bottom { border-color: var(--line); }
.template-market .classic-mobile-nav { border-radius: 10px; color: var(--ink); background: color-mix(in srgb, var(--surface) 95%, transparent); }
.template-market .classic-mobile-nav a { color: var(--muted); }
.template-market .classic-mobile-nav .classic-mobile-nav-icon { color: var(--ink); }

@media (max-width: 1180px) {
  .template-market .classic-product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .classic-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .template-market .classic-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .template-market .classic-hero-inner { grid-template-columns: 1fr; grid-template-rows: auto; }
  .template-market .classic-hero h1,
  .template-market .classic-hero p,
  .template-market .classic-hero-search { grid-column: 1; grid-row: auto; }
  .template-market .classic-hero-search { max-width: 680px; margin-top: 26px; }
}

@media (max-width: 720px) {
  .template-classic, .template-market { padding-bottom: 72px; }
  .classic-header { position: static; }
  .template-market .classic-header-row { min-height: 62px; }
  .classic-header-row { min-height: 62px; gap: 10px; }
  .classic-desktop-nav, .classic-desktop-only { display: none; }
  .classic-brand { flex: 1; }
  .classic-brand-name { max-width: 150px; }
  .icon-text-button { min-height: 38px; padding: 7px 9px; font-size: 0.86rem; }
  .icon-button { width: 38px; min-height: 38px; }
  .classic-header-actions .classic-cart-link { display: none; }
  .classic-hero { padding: 46px 0 38px; }
  .template-market .classic-hero { padding: 38px 0 42px; }
  .template-classic .classic-hero { padding-bottom: 150px; }
  .template-classic .classic-hero::before,
  .template-classic .classic-hero::after {
    inset-block-start: auto;
    inset-block-end: -25px;
    inset-inline-end: max(-28px, calc((100vw - 440px) / 2));
    width: min(100vw, 440px);
    transform: none;
  }
  .template-classic .classic-hero::after { opacity: .24; }
  .template-classic .classic-hero.has-hero-image { padding-bottom: 38px; }
  .template-market .classic-hero::after {
    inset-block: 0;
    inset-inline-end: 0;
    width: 100%;
    opacity: 1;
    transform: none;
  }
  .classic-hero h1 { font-size: clamp(2.25rem, 12vw, 3.6rem); }
  .classic-hero-search { display: grid; grid-template-columns: 1fr auto; }
  .classic-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  .template-market .classic-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  .classic-product-card { border-radius: 15px; }
  .template-market .classic-product-card { border-radius: 8px; }
  .classic-product-card-body { padding: 12px; }
  .classic-product-card h3 { min-height: 3.8em; font-size: 0.92rem; }
  .classic-product-actions .text-link { display: none; }
  .classic-product-actions { justify-content: end; }
  .classic-catalog-toolbar { grid-template-columns: 1fr; }
  .classic-product-detail { grid-template-columns: 1fr; gap: 26px; }
  .classic-detail-media .image-fallback { min-height: 320px; }
  .classic-product-gallery.has-thumbnails { display: grid; }
  .classic-product-thumbnails { width: 100%; max-height: none; grid-auto-flow: column; grid-auto-columns: 68px; grid-auto-rows: 68px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: inline proximity; }
  .classic-product-thumbnail { width: 68px; height: 68px; }
  .classic-detail-buy { margin-inline: -12px; }
  .classic-option-chips { gap: 8px; }
  .classic-option-chip { min-width: 72px; min-height: 40px; padding: 7px 14px; }
  .classic-footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .classic-footer-identity { max-width: none; }
  .classic-footer-navigation { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .classic-footer-navigation strong { grid-column: 1 / -1; }
  .classic-footer-bottom { display: grid; gap: 8px; }
  .classic-mobile-nav {
    position: fixed;
    inset-inline: 10px;
    inset-block-end: 9px;
    z-index: 60;
    padding: 7px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--line);
    border-radius: 17px;
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
  }
  .classic-mobile-nav a { position: relative; min-width: 0; min-height: 48px; display: grid; grid-template-rows: 22px auto; place-items: center; gap: 3px; color: var(--muted); font-size: 0.69rem; }
  .classic-mobile-nav-icon { width: 22px; height: 22px; display: block; color: var(--ink); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .classic-mobile-nav b { position: absolute; inset-block-start: -1px; inset-inline-start: calc(50% + 5px); min-width: 17px; padding: 1px 4px; border-radius: 99px; color: var(--on-brand-active); background: var(--brand-active); font-size: 0.64rem; line-height: 1.35; }
  .classic-footer { padding-bottom: 30px; }
}

@media (max-width: 390px) {
  .classic-product-grid { grid-template-columns: 1fr; }
  .template-market .classic-product-grid { grid-template-columns: 1fr; }
  .classic-product-card { display: grid; grid-template-columns: 124px minmax(0, 1fr); }
  .classic-product-media { aspect-ratio: auto; min-height: 164px; }
  .classic-product-card h3 { min-height: auto; }
}

/* An uploaded cover replaces each template's built-in hero pattern. */
.classic-hero.has-hero-image { isolation: isolate; color: #fff; background: #07151d; }
.classic-hero.has-hero-image .hero-background-image {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.classic-hero.has-hero-image::before,
.template-market .classic-hero.has-hero-image::before {
  content: "";
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
  opacity: 1;
  transform: none;
  background: rgba(5, 19, 27, .72);
}
.classic-hero.has-hero-image::after,
.template-market .classic-hero.has-hero-image::after { content: none; }
.classic-hero.has-hero-image p,
.template-market .classic-hero.has-hero-image p { color: rgba(255, 255, 255, .88); }
