/* Duck Creek Digital — storefront design system
   Palette per approved mockup: dark charcoal + deep teal, orange accents. */

:root {
  --bg: #10151c;
  --bg-alt: #0b0f14;
  --surface: #171e28;
  --surface-2: #1e2733;
  --border: #2a3546;
  --text: #e8ecf1;
  --text-dim: #9aa7b8;
  --accent: #f97316;
  --accent-2: #fb923c;
  --teal: #0e3a3f;
  --teal-2: #155e63;
  --danger: #ef4444;
  --ok: #34d399;
  --radius: 12px;
  --radius-sm: 8px;
  --maxw: 1200px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: 2.4rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--accent);
  color: #111; padding: .5rem 1rem; z-index: 200; font-weight: 600;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ---------- header ---------- */
.site-header {
  background: rgba(11, 15, 20, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: 64px; }
.brand { display: flex; align-items: center; color: var(--text); }
.brand-text {
  font-weight: 800; letter-spacing: .06em; font-size: 1.05rem;
  color: var(--accent-2);
}
.brand-logo {
  max-height: 44px; width: auto; border-radius: 50%;
  background: #f4f1ea; padding: 3px; box-sizing: content-box;
}
.footer-logo {
  height: 56px; width: 56px; object-fit: contain; border-radius: 50%;
  background: #f4f1ea; padding: 4px; margin-bottom: .6rem;
}

.primary-nav { flex: 1; }
.primary-nav > ul { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.primary-nav a {
  display: block; padding: .5rem .8rem; color: var(--text-dim);
  font-weight: 500; border-radius: var(--radius-sm); font-size: .95rem;
}
.primary-nav a:hover, .primary-nav a[aria-current] { color: var(--text); background: var(--surface-2); }
.has-menu { position: relative; }
.dropdown {
  position: absolute; top: 100%; left: 0; min-width: 220px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  list-style: none; margin: 0; padding: .5rem; display: none; z-index: 50;
  box-shadow: 0 12px 30px rgba(0,0,0,.45);
}
.has-menu:hover .dropdown, .has-menu:focus-within .dropdown { display: block; }
.dropdown a { padding: .45rem .7rem; }

.header-actions { display: flex; align-items: center; gap: .5rem; margin-left: auto; }
.header-search { display: flex; }
.header-search input {
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  border-radius: 999px 0 0 999px; padding: .4rem .8rem; width: 140px; font-size: .9rem;
}
.header-search input:focus { outline: none; border-color: var(--accent); }
.header-search button {
  background: var(--surface-2); border: 1px solid var(--border); border-left: none;
  color: var(--text-dim); border-radius: 0 999px 999px 0; padding: .4rem .7rem; cursor: pointer;
}
.header-icon { position: relative; color: var(--text-dim); padding: .35rem; border-radius: var(--radius-sm); display: inline-flex; }
.header-icon:hover { color: var(--text); background: var(--surface-2); }
.cart-count {
  position: absolute; top: -2px; right: -4px; background: var(--accent); color: #111;
  font-size: .7rem; font-weight: 700; border-radius: 999px; min-width: 18px; height: 18px;
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
}

.nav-toggle {
  display: none; background: none; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: .5rem; cursor: pointer; flex-direction: column; gap: 4px;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--text); }

.announcement {
  background: linear-gradient(90deg, var(--teal), var(--teal-2));
  color: #cfe8ea; text-align: center; padding: .5rem 1rem; font-size: .9rem;
}

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #0d1420 0%, #0e2f33 55%, #12262b 100%);
  border-bottom: 1px solid var(--border);
}
.hero-inner {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: center;
  padding: 4rem 1.25rem;
}
.hero-eyebrow { color: var(--accent-2); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .8rem; }
.hero h1 { font-size: 2.8rem; margin: .4rem 0 .8rem; }
.hero p { color: var(--text-dim); font-size: 1.1rem; max-width: 46ch; }
.hero-ctas { display: flex; gap: .8rem; margin-top: 1.6rem; flex-wrap: wrap; }
.hero-art { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.hero-art img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.hero-art-placeholder {
  aspect-ratio: 16/10; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--teal), #123a40); color: #7fb7bd; font-size: 1rem;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .7rem 1.4rem; border-radius: 999px; font-weight: 600; font-size: .95rem;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
}
.btn-primary { background: var(--accent); color: #111; }
.btn-primary:hover { background: var(--accent-2); color: #111; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-2); }
.btn:disabled, .btn-disabled { opacity: .5; cursor: not-allowed; }
.btn-sm { padding: .45rem 1rem; font-size: .85rem; }

/* ---------- sections ---------- */
.section { padding: 3rem 0; }
.section-alt { background: var(--bg-alt); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head .muted { color: var(--text-dim); }

/* moonlink promo */
.promo-banner {
  display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: center;
  background: linear-gradient(120deg, var(--teal) 0%, #0c2a2e 60%, #134047 100%);
  border: 1px solid var(--teal-2); border-radius: var(--radius);
  padding: 2rem; position: relative; overflow: hidden;
}
.promo-banner::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px;
  border-radius: 50%; background: radial-gradient(circle, rgba(249,115,22,.18), transparent 70%);
}
.promo-badge {
  display: inline-block; background: var(--accent); color: #111; font-weight: 700;
  font-size: .75rem; letter-spacing: .08em; text-transform: uppercase;
  padding: .25rem .7rem; border-radius: 999px; margin-bottom: .6rem;
}
.promo-banner h2 { color: #eaf6f6; }
.promo-banner p { color: #b8d4d6; max-width: 60ch; }
.promo-art { width: 180px; height: 180px; border-radius: var(--radius); object-fit: cover; border: 1px solid var(--border); }
.promo-art-placeholder { width: 180px; height: 180px; border-radius: var(--radius); background: var(--surface-2); display:flex; align-items:center; justify-content:center; color: var(--text-dim); border:1px solid var(--border); }

/* category tiles */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.cat-tile {
  position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border);
  min-height: 200px; display: flex; align-items: flex-end; color: #fff; text-decoration: none;
}
.cat-tile img, .cat-tile .cat-art {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.cat-tile .cat-art { background: linear-gradient(135deg, var(--teal), #0a1f22); }
.cat-tile::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(5,8,12,.92) 15%, rgba(5,8,12,.25) 60%, transparent);
}
.cat-tile .cat-body { position: relative; padding: 1.1rem 1.25rem; z-index: 1; width: 100%; }
.cat-tile h3 { margin: 0 0 .2rem; color: #fff; }
.cat-tile p { margin: 0; color: #c8d4dc; font-size: .9rem; }
.cat-tile:hover h3 { color: var(--accent-2); }

/* product cards */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.product-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: border-color .15s, transform .15s;
}
.product-card:hover { border-color: var(--teal-2); transform: translateY(-2px); }
.product-card .thumb {
  aspect-ratio: 1/1; background: var(--surface-2); position: relative; overflow: hidden;
}
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-card .thumb .placeholder {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: var(--text-dim); font-size: .85rem; padding: 1rem; text-align: center;
}
.badge {
  position: absolute; top: .6rem; left: .6rem; background: var(--accent); color: #111;
  font-size: .7rem; font-weight: 700; padding: .2rem .55rem; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em;
}
.badge-soon { background: #334155; color: #cbd5e1; }
.badge-digital { background: var(--teal-2); color: #d9f2f3; }
.product-body { padding: .9rem 1rem 1.1rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.product-type { font-size: .75rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: .06em; }
.product-title { font-weight: 600; font-size: 1rem; margin: 0; }
.product-title a { color: var(--text); }
.product-title a:hover { color: var(--accent-2); }
.product-desc { font-size: .85rem; color: var(--text-dim); margin: 0; flex: 1; }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: .4rem; }
.price { font-weight: 700; font-size: 1.05rem; color: var(--text); }
.price .compare { text-decoration: line-through; color: var(--text-dim); font-weight: 400; font-size: .85rem; margin-left: .4rem; }
.avail { font-size: .75rem; color: var(--ok); }
.avail.out { color: var(--text-dim); }

/* benefits */
.benefits-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.benefit {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.25rem 1rem; text-align: center;
}
.benefit .icon { font-size: 1.6rem; margin-bottom: .5rem; }
.benefit h3 { font-size: .95rem; margin-bottom: .3rem; }
.benefit p { font-size: .8rem; color: var(--text-dim); margin: 0; }

/* ---------- catalog page ---------- */
.catalog-layout { display: grid; grid-template-columns: 240px 1fr; gap: 2rem; padding: 2rem 0 3rem; }
.filters {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.25rem; height: fit-content; position: sticky; top: 84px;
}
.filters h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-dim); margin: 1rem 0 .5rem; }
.filters h3:first-child { margin-top: 0; }
.filters label { display: flex; gap: .5rem; align-items: center; font-size: .9rem; padding: .2rem 0; color: var(--text-dim); }
.filters input[type="search"], .filters input[type="number"], .filters select {
  width: 100%; background: var(--bg); border: 1px solid var(--border); color: var(--text);
  border-radius: var(--radius-sm); padding: .45rem .6rem; font-size: .9rem;
}
.filters .price-row { display: flex; gap: .4rem; }
.filters .filter-actions { display: flex; gap: .5rem; margin-top: 1rem; }
.active-filters { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.chip {
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text-dim);
  border-radius: 999px; padding: .25rem .8rem; font-size: .8rem; text-decoration: none;
}
.chip:hover { border-color: var(--accent); color: var(--accent-2); }
.catalog-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.catalog-toolbar .result-count { color: var(--text-dim); font-size: .9rem; }
.catalog-toolbar select {
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  border-radius: var(--radius-sm); padding: .45rem .6rem;
}
.pagination { display: flex; gap: .4rem; justify-content: center; margin-top: 2rem; list-style: none; padding: 0; }
.pagination a, .pagination .current {
  padding: .45rem .8rem; border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text-dim); text-decoration: none; background: var(--surface);
}
.pagination .current { background: var(--accent); color: #111; border-color: var(--accent); font-weight: 700; }
.empty-state {
  text-align: center; padding: 4rem 1rem; color: var(--text-dim);
  background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius);
}
.empty-state h2 { color: var(--text); }

/* ---------- product detail ---------- */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; padding: 2.5rem 0; }
.gallery { position: sticky; top: 84px; align-self: start; }
.gallery .main-img {
  border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden;
  background: var(--surface); aspect-ratio: 1/1;
}
.gallery .main-img img { width: 100%; height: 100%; object-fit: contain; }
.gallery .thumbs { display: flex; gap: .6rem; margin-top: .8rem; flex-wrap: wrap; }
.gallery .thumbs button {
  width: 72px; height: 72px; border-radius: var(--radius-sm); border: 2px solid var(--border);
  background: var(--surface); padding: 0; cursor: pointer; overflow: hidden;
}
.gallery .thumbs button.active, .gallery .thumbs button:focus-visible { border-color: var(--accent); }
.gallery .thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pd-info .product-type { color: var(--accent-2); text-transform: uppercase; font-size: .8rem; letter-spacing: .08em; }
.pd-price { font-size: 1.6rem; font-weight: 800; margin: .5rem 0 1rem; }
.pd-price .compare { font-size: 1rem; }
.spec-list { margin: 1rem 0; }
.spec-list dt { color: var(--text-dim); font-size: .85rem; }
.spec-list dd { margin: 0 0 .6rem; }
.variants { margin: 1.25rem 0; }
.variants fieldset { border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; }
.variants legend { font-size: .85rem; color: var(--text-dim); padding: 0 .4rem; }
.variant-option {
  display: flex; align-items: center; gap: .6rem; padding: .4rem .5rem; border-radius: var(--radius-sm);
  cursor: pointer; font-size: .9rem;
}
.variant-option:hover { background: var(--surface-2); }
.variant-option input { accent-color: var(--accent); }
.qty-row { display: flex; gap: .8rem; align-items: center; margin: 1.25rem 0; }
.qty-row input[type="number"] {
  width: 80px; background: var(--surface); border: 1px solid var(--border); color: var(--text);
  border-radius: var(--radius-sm); padding: .55rem .7rem;
}
.add-cart { margin-bottom: 1rem; }
.availability-note { font-size: .85rem; color: var(--text-dim); }
.pd-description { margin-top: 1.5rem; }
.pd-description h2 { font-size: 1.3rem; }
.digital-note {
  background: var(--teal); border: 1px solid var(--teal-2); border-radius: var(--radius);
  padding: 1rem 1.25rem; font-size: .9rem; color: #cfe8ea; margin: 1rem 0;
}
.release-list { list-style: none; padding: 0; margin: 1rem 0; }
.release-list li { padding: .6rem 0; border-bottom: 1px solid var(--border); }

/* ---------- cart ---------- */
.cart-layout { max-width: 860px; margin: 0 auto; padding: 2.5rem 1.25rem 4rem; }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { text-align: left; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-dim); padding: .6rem .5rem; border-bottom: 1px solid var(--border); }
.cart-table td { padding: .9rem .5rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.cart-thumb { width: 64px; height: 64px; border-radius: var(--radius-sm); object-fit: cover; background: var(--surface-2); }
.cart-item-title a { color: var(--text); font-weight: 600; }
.cart-item-meta { font-size: .8rem; color: var(--text-dim); }
.qty-input { width: 64px; background: var(--surface); border: 1px solid var(--border); color: var(--text); border-radius: var(--radius-sm); padding: .4rem .5rem; }
.cart-actions { display: flex; gap: .5rem; }
.cart-summary {
  margin-top: 1.5rem; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem; max-width: 380px; margin-left: auto;
}
.cart-summary .row { display: flex; justify-content: space-between; padding: .3rem 0; }
.cart-summary .total { font-size: 1.25rem; font-weight: 800; border-top: 1px solid var(--border); margin-top: .6rem; padding-top: .8rem; }
.checkout-note {
  background: #2a2113; border: 1px solid #6b5518; color: #e8d5a8; border-radius: var(--radius);
  padding: 1rem 1.25rem; font-size: .9rem; margin-top: 1rem;
}

/* ---------- forms / account / admin ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; margin-bottom: 1.5rem;
}
.form-grid { display: grid; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: .3rem; }
.field label { font-size: .85rem; color: var(--text-dim); font-weight: 600; }
.field input, .field textarea, .field select {
  background: var(--bg); border: 1px solid var(--border); color: var(--text);
  border-radius: var(--radius-sm); padding: .6rem .75rem; font-size: .95rem; font-family: inherit;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); outline: none; }
.field .help { font-size: .78rem; color: var(--text-dim); }
.form-errors { background: #3a1d1d; border: 1px solid var(--danger); color: #fca5a5; border-radius: var(--radius-sm); padding: .75rem 1rem; margin-bottom: 1rem; }
.form-errors ul { margin: .3rem 0 0; padding-left: 1.2rem; }
.auth-wrap { max-width: 440px; margin: 3rem auto; padding: 0 1.25rem; }
.account-nav { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.account-nav a {
  padding: .5rem 1rem; border: 1px solid var(--border); border-radius: 999px;
  color: var(--text-dim); font-size: .9rem; text-decoration: none;
}
.account-nav a.active, .account-nav a:hover { border-color: var(--accent); color: var(--accent-2); }
.data-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.data-table th, .data-table td { padding: .6rem .7rem; border-bottom: 1px solid var(--border); text-align: left; }
.data-table th { color: var(--text-dim); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }

/* admin dashboard */
.admin-wrap { max-width: 1100px; margin: 0 auto; padding: 2rem 1.25rem 4rem; }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; flex-wrap: wrap; gap: 1rem; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; }
.stat-card .num { font-size: 1.9rem; font-weight: 800; color: var(--accent-2); }
.stat-card .lbl { font-size: .8rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: .06em; }
.admin-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.admin-card {
  display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.25rem; color: var(--text); text-decoration: none; transition: border-color .15s;
}
.admin-card:hover { border-color: var(--accent); }
.admin-card h3 { margin: 0 0 .4rem; color: var(--accent-2); }
.admin-card p { margin: 0; font-size: .85rem; color: var(--text-dim); }
.admin-card .soon { display: inline-block; margin-top: .6rem; font-size: .7rem; background: #334155; color: #cbd5e1; padding: .15rem .55rem; border-radius: 999px; }

/* content page */
.content-page { max-width: 760px; margin: 0 auto; padding: 3rem 1.25rem 4rem; }
.content-page h1 { margin-bottom: .5rem; }
.content-page .updated { color: var(--text-dim); font-size: .85rem; margin-bottom: 1.5rem; }
.content-page .body { line-height: 1.7; }
.content-page .body h2 { font-size: 1.4rem; margin-top: 1.8rem; }

/* toasts */
.toast-region { position: fixed; bottom: 1rem; right: 1rem; z-index: 300; display: flex; flex-direction: column; gap: .5rem; }
.toast { background: var(--surface-2); border: 1px solid var(--border); border-left: 4px solid var(--accent); color: var(--text); padding: .8rem 1.1rem; border-radius: var(--radius-sm); max-width: 340px; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.toast-error { border-left-color: var(--danger); }
.toast-success { border-left-color: var(--ok); }

/* moonlink page */
.moonlink-hero { text-align: center; padding: 4rem 1.25rem 3rem; }
.moonlink-hero h1 { font-size: 2.6rem; }
.moonlink-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; padding: 2rem 1.25rem 4rem; max-width: 1000px; margin: 0 auto; }
.feature-list { list-style: none; padding: 0; margin: 1rem 0; }
.feature-list li { padding: .5rem 0 .5rem 1.6rem; position: relative; color: var(--text-dim); }
.feature-list li::before { content: "▸"; position: absolute; left: 0; color: var(--accent); }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .benefits-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-ctas { justify-content: center; }
  .hero p { margin-left: auto; margin-right: auto; }
  .product-detail { grid-template-columns: 1fr; }
  .gallery { position: static; }
}
@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg-alt); border-bottom: 1px solid var(--border);
    display: none; padding: .5rem 1.25rem 1rem;
  }
  .primary-nav.open { display: block; }
  .primary-nav > ul { flex-direction: column; }
  .dropdown { position: static; display: block; box-shadow: none; border: none; padding-left: 1rem; background: transparent; }
  .has-menu:hover .dropdown, .has-menu:focus-within .dropdown { display: block; }
  .header-search input { width: 90px; }
  .catalog-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .promo-banner { grid-template-columns: 1fr; text-align: center; }
  .moonlink-grid { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  h1 { font-size: 1.9rem; }
  .hero h1 { font-size: 2rem; }
  .hero-inner { padding: 2.5rem 1.25rem; }
  .product-grid { grid-template-columns: 1fr 1fr; gap: .8rem; }
  .cat-grid { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: 1fr; }
  .benefit { display: flex; gap: 1rem; text-align: left; align-items: center; }
  .benefit .icon { margin: 0; font-size: 1.4rem; }
  .header-search input { display: none; }
  .header-search button { border-radius: 999px; border: 1px solid var(--border); }
  .cart-table .hide-sm { display: none; }
}
@media (min-width: 200%) {
  body { font-size: 19px; }
}
