:root {
  --bg: #ffffff;
  --bg-soft: #f6f6f6;
  --bg-mute: #f1f1f1;
  --line: #ededed;
  --line-strong: #dcdcdc;
  --text: #212121;
  --text-secondary: #666666;
  --text-light: #999999;
  --price: #212121;
  --sale: #eb391b;
  --btn: #000000;
  --btn-text: #ffffff;
  --header-h: 64px;
  --sans: "Manrope", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --max: 1280px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  line-height: 1.5;
  font-size: 14px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { opacity: 0.72; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }

.page-bg { display: none; }

.announce-bar {
  background: var(--announce-bg, #111);
  color: var(--announce-text, #fff);
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 8px 16px;
}
.social-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  padding: 10px 12px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.social-icon {
  color: #111;
  display: inline-flex;
  opacity: 0.92;
}
.social-icon:hover { opacity: 0.55; }
.site-header,
.site-header-ref {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 0 clamp(12px, 3vw, 40px);
  background: var(--header-bg, #fff);
  border-bottom: 1px solid var(--line);
}
.site-header-ref .menu-toggle { justify-self: start; }
.site-header-ref .brand { justify-self: center; }
.site-header-ref .header-actions { justify-self: end; }
.brand {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.brand-logo {
  max-height: 40px;
  width: auto;
  max-width: min(220px, 52vw);
  object-fit: contain;
  display: block;
}
.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.desktop-nav { justify-self: start; }
.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: #111;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
}
.icon-btn:hover { opacity: 0.65; }
.icon-btn .badge {
  position: absolute;
  top: 4px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #e11d48;
  color: #fff;
  font-size: 10px;
  line-height: 16px;
  text-align: center;
  font-weight: 600;
}
.header-note {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  color: #111;
  font-size: 14px;
  text-align: left;
}
.header-search-panel {
  border-bottom: 1px solid var(--line);
  background: #fff;
  padding: 10px 16px;
}
.header-search-panel form {
  display: flex;
  gap: 8px;
  max-width: 720px;
  margin: 0 auto;
}
.header-search-panel input {
  margin: 0;
  flex: 1;
}
.header-search-panel .btn {
  min-height: 40px;
  padding: 0 16px;
}
.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(82vw, 320px);
  background: #fff;
  z-index: 80;
  box-shadow: 8px 0 30px rgba(0,0,0,.12);
  padding: 12px 16px 24px;
  overflow: auto;
}
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  z-index: 70;
}
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}
.drawer-nav {
  display: grid;
  gap: 0;
}
.drawer-nav a {
  padding: 14px 2px;
  border-bottom: 1px solid var(--line);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 13px;
  font-weight: 600;
}
body.drawer-open { overflow: hidden; }
.menu-toggle { display: none; }
.site-main {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 40px) 64px;
}
.site-main.is-home {
  width: 100%;
  max-width: none;
  padding: 0 0 48px;
}
.site-main.is-home .home-modules {
  margin: 0;
  width: 100%;
}
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft, #f6f6f6);
  color: var(--text-secondary);
  font-size: 13px;
  padding: 0;
}
.footer-main {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr 0.8fr;
  gap: 28px 32px;
  padding: 48px clamp(16px, 3vw, 40px) 36px;
  max-width: var(--max);
  margin: 0 auto;
}
.footer-col h3 {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}
.footer-brand .footer-logo {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--text);
}
.footer-brand .footer-logo strong {
  font-size: 18px;
  letter-spacing: 0.06em;
  text-transform: lowercase;
}
.footer-brand p {
  margin: 0;
  line-height: 1.7;
  max-width: 34ch;
}
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.footer-links a {
  color: var(--text);
  font-size: 13px;
}
.footer-links a:hover { opacity: 0.65; }
.footer-newsletter {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 14px;
  border: 1px solid var(--line-strong, #ddd);
  background: #fff;
  max-width: 280px;
}
.footer-newsletter .nl-icon {
  display: inline-flex;
  padding: 0 8px 0 10px;
  color: #888;
}
.footer-newsletter input {
  border: 0;
  margin: 0;
  flex: 1;
  min-width: 0;
  padding: 10px 8px;
  background: transparent;
  text-transform: none;
  letter-spacing: 0;
}
.footer-newsletter button {
  border: 0;
  background: transparent;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #111;
}
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-social a {
  color: var(--text);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding: 14px clamp(16px, 3vw, 40px);
  max-width: var(--max);
  margin: 0 auto;
  background: transparent;
}
.footer-payments {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.pay-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  min-width: 38px;
  padding: 0 6px;
  border-radius: 3px;
  border: 1px solid #d8d8d8;
  background: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #1a1f71;
}
.pay-mc {
  gap: 0;
  min-width: 36px;
  position: relative;
}
.pay-mc i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-block;
}
.pay-mc i:first-child { background: #eb001b; margin-right: -5px; }
.pay-mc i:last-child { background: #f79e1b; opacity: 0.92; }
.pay-amex { color: #2e77bc; }
.footer-copy {
  margin-left: 8px;
  font-size: 12px;
  color: var(--text-secondary);
}
.footer-locale {
  display: flex;
  align-items: center;
  gap: 10px;
}
.locale-select {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
  color: var(--text);
}
.locale-select select {
  border: 0;
  background: transparent;
  margin: 0;
  padding: 4px 2px;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
}
.locale-flag {
  width: 16px;
  height: 11px;
  background:
    linear-gradient(#b22234 0 0) 0 0/100% 100%,
    repeating-linear-gradient(#b22234 0 1px, #fff 1px 2px);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.12);
  position: relative;
}
.locale-flag::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 45%;
  height: 55%;
  background: #3c3b6e;
}
.page-content {
  max-width: 720px;
  white-space: pre-wrap;
  line-height: 1.75;
  color: var(--text);
  font-size: 15px;
}

/* Hero / banner — full width clean storefront */
.hero {
  margin: 0 calc(50% - 50vw) 40px;
  width: 100vw;
  min-height: var(--hero-min-h, 420px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--hero-bg, #111);
  color: var(--hero-text, #fff);
}
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 6vw, 72px);
  max-width: 560px;
}
.hero-copy .eyebrow {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--hero-text) 65%, transparent);
}
.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4.5vw, 48px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.lede {
  margin: 0;
  color: color-mix(in srgb, var(--hero-text, #fff) 78%, transparent);
  font-size: 15px;
  max-width: 420px;
}
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-visual {
  min-height: var(--hero-min-h, 420px);
  background:
    linear-gradient(120deg, rgba(0,0,0,0.15), rgba(0,0,0,0.35)),
    radial-gradient(circle at 50% 45%, #3a3a3a 0%, var(--hero-bg, #111) 70%);
  background-size: cover;
  background-position: center;
}
.hero.has-image .hero-visual {
  background-color: #111;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.section { padding: 28px 0 8px; }
.section.narrow { max-width: 920px; margin: 0 auto; }
.section-head { margin-bottom: 20px; }
.section-head h1,
.section-head h2 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.section-head p { margin: 0; color: var(--text-secondary); }
.section-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.section-head-row h2 {
  margin: 0;
  min-width: 0;
}
.section-title-link {
  color: inherit;
  text-decoration: none;
}
.section-title-link:hover {
  opacity: 0.72;
}
.section-more {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary, #666);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.section-more:hover {
  color: var(--text, #111);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 22px;
  border: 1px solid var(--btn);
  background: var(--btn);
  color: var(--btn-text);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: var(--radius, 0);
  transition: opacity 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn:hover { opacity: 0.88; color: #fff; }
.btn.ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.55);
}
.btn.ghost:hover { background: #fff; color: #000; opacity: 1; }
.section .btn.ghost,
.site-main .btn.ghost {
  color: var(--text);
  border-color: var(--text);
}
.section .btn.ghost:hover,
.site-main .btn.ghost:hover {
  background: var(--text);
  color: #fff;
}
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.cat-link {
  display: block;
  padding: 28px 18px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.cat-link:hover { opacity: 1; border-color: #000; background: #fff; }
.cat-link span {
  display: block;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.cat-link small { color: var(--text-secondary); font-size: 12px; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px 16px;
}
.product-card { display: block; }
.product-card:hover { opacity: 1; }
.product-media {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid var(--line);
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.product-card:hover .product-media img { transform: scale(1.03); }
.product-meta { padding: 12px 2px 0; }
.product-meta h3 {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text);
}
.price-row {
  display: flex;
  gap: 8px;
  align-items: baseline;
  color: var(--price);
  font-size: 14px;
  font-weight: 600;
}
.price-row s {
  color: var(--text-light);
  font-weight: 400;
  font-size: 13px;
}
.price-row.large { font-size: 20px; margin: 12px 0; }

.product-page {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  padding: 32px 0 48px;
}
.product-gallery {
  background: var(--bg-soft);
  border: 1px solid var(--line);
}
.gallery-main {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #fff;
}
.gallery-main img,
.product-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 8px;
  padding: 10px;
  border-top: 1px solid var(--line);
  background: #fff;
}
.gallery-thumb {
  border: 1px solid var(--line);
  padding: 0;
  background: #fff;
  cursor: pointer;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.gallery-thumb.is-active {
  border-color: #111;
}
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.option-groups {
  display: grid;
  gap: 16px;
  margin: 18px 0 8px;
}
.option-label {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.option-values {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.option-chip {
  margin: 0;
  cursor: pointer;
}
.option-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
  margin: 0;
}
.option-chip span {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  font-size: 13px;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text);
}
.option-chip input:checked + span {
  background: #000;
  border-color: #000;
  color: #fff;
}
.buy-form { margin-top: 8px; }
.product-info h1 {
  margin: 8px 0 0;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.eyebrow {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.buy-row {
  display: flex;
  gap: 12px;
  align-items: end;
  margin: 20px 0;
  flex-wrap: wrap;
}
.qty input { width: 72px; }
.prose { color: var(--text-secondary); font-size: 14px; }

input, select, textarea {
  width: 100%;
  margin-top: 6px;
  padding: 11px 12px;
  border: 1px solid var(--line-strong);
  background: #fff;
  border-radius: 0;
  color: var(--text);
}
label { display: block; font-size: 12px; color: var(--text-secondary); letter-spacing: 0.04em; text-transform: uppercase; }
.stack { display: grid; gap: 14px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.checkout-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
}
.checkout-summary,
.order-box,
.totals {
  padding: 20px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
}
.sum-row,
.totals > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
}
.sum-row.grand,
.totals .grand {
  border-top: 1px solid var(--line-strong);
  margin-top: 8px;
  padding-top: 12px;
  font-weight: 700;
}

.cart-table { display: grid; gap: 0; }
.cart-row {
  display: grid;
  grid-template-columns: 80px 1fr 80px 90px auto;
  gap: 14px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.cart-row img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  background: var(--bg-soft);
  border: 1px solid var(--line);
}
.cart-actions { display: flex; gap: 12px; margin: 20px 0; }

.flash {
  width: min(100%, var(--max));
  margin: 12px auto 0;
  padding: 12px 16px;
  border: 1px solid var(--line);
}
.flash.success { background: #f0fff4; color: #1b7a45; }
.flash.error { background: #fff5f5; color: var(--sale); }
.member-welcome {
  border: 1px solid var(--line);
  background: #fafafa;
  padding: 18px 16px;
  margin-bottom: 18px;
}
.member-welcome h2 {
  margin: 0 0 8px;
  font-size: 18px;
}
.member-welcome code {
  font-size: 15px;
  letter-spacing: 0.04em;
  background: #fff;
  padding: 2px 8px;
  border: 1px solid var(--line);
}
.account-page .account-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.account-form {
  max-width: 420px;
}
.account-switch { margin-top: 14px; }
.order-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
  margin-bottom: 28px;
}
.order-list-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 2px;
  border-bottom: 1px solid var(--line);
}
.order-list-row small { display: block; margin-top: 4px; }
.account-page h2 {
  margin: 28px 0 12px;
  font-size: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.muted { color: var(--text-secondary); }
.linkish {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font: inherit;
  padding: 0;
  text-decoration: underline;
}

.install-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #f6f6f6;
}
.install-card {
  width: min(480px, 100%);
  background: #fff;
  padding: 28px;
  border: 1px solid var(--line);
}
.install-card h1 { margin-top: 0; font-size: 22px; }
.alert { padding: 12px; border: 1px solid var(--line); margin: 12px 0; background: var(--bg-soft); }
.alert.error { color: var(--sale); }
.alert.success { color: #1b7a45; }

/* Homepage modules — full-bleed like independent store */
.home-modules {
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow-x: clip;
}
.mod { margin: 0 0 0; }
.mod-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 36px clamp(16px, 3vw, 40px);
}
.mod-title {
  margin: 0 0 16px;
  font-size: 22px;
}
.mod-placeholder {
  display: grid;
  place-items: center;
  min-height: var(--mod-h, 360px);
  background: var(--bg-soft);
  color: var(--text-light);
  font-size: 13px;
  letter-spacing: 0.04em;
}
.mod-video-frame {
  position: relative;
  width: 100%;
  height: var(--mod-h, 520px);
  background: #000;
  overflow: hidden;
  isolation: isolate;
}
.mod-video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mod-banner {
  position: relative;
  height: var(--mod-h, 480px);
  overflow: hidden;
  background: #111;
  isolation: isolate;
}
.banner-track {
  height: 100%;
  position: relative;
  overflow: hidden;
}
.banner-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #111;
  pointer-events: none;
}
.banner-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
  pointer-events: auto;
}
.banner-picture {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
}
.banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  z-index: 0;
}
.banner-overlay {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 24px;
  max-width: 720px;
  text-shadow: 0 1px 12px rgba(0,0,0,0.35);
}
.banner-overlay h2 {
  margin: 0 0 10px;
  font-size: clamp(26px, 4vw, 48px);
  font-weight: 700;
}
.banner-overlay p {
  margin: 0 0 18px;
  font-size: 15px;
  opacity: 0.9;
}
.banner-hit {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.banner-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.banner-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(255,255,255,0.45);
  cursor: pointer;
}
.banner-dot.is-active { background: #fff; }
.mod-image-frame {
  position: relative;
  height: var(--mod-h, 420px);
  background: #1a1a1a center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
}
.mod-image-frame.has-img {
  height: auto;
  min-height: 0;
  background: transparent;
}
.mod-image-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mod-image-frame.has-img .mod-image-img {
  height: auto;
  object-fit: contain;
}
.mod-products,
.mod-collections {
  background: var(--bg);
}

/* Text + image / text + video (reference store style) */
.mod-text-media {
  background: #fff;
  padding: 48px clamp(16px, 4vw, 56px);
}
.text-media-grid {
  width: min(100%, var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.mod-text-media.layout-text_right .text-media-copy { order: 2; }
.mod-text-media.layout-text_right .text-media-visual { order: 1; }
.text-media-heading {
  margin: 0 0 18px;
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.text-media-icon {
  flex: 0 0 auto;
  line-height: 1.2;
}
.text-media-body {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.75;
}
.text-media-visual {
  position: relative;
  background: transparent;
  overflow: hidden;
  min-height: 0;
}
.text-media-visual img,
.text-media-visual video {
  width: 100%;
  height: auto;
  min-height: 0;
  object-fit: contain;
  display: block;
}
.text-media-link { display: block; }
.text-media-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  text-align: center;
  color: #fff;
  font-size: 15px;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 10px rgba(0,0,0,.45);
  pointer-events: none;
}
.mod-placeholder.tall { min-height: 360px; }

@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .announce-bar {
    font-size: 11px;
    padding: 7px 10px;
    line-height: 1.35;
  }
  .social-bar {
    gap: 14px;
    padding: 8px 10px;
  }
  .social-icon svg { width: 15px; height: 15px; }
  .menu-toggle { display: inline-flex; }
  .desktop-nav { display: none; }
  .site-header,
  .site-header-ref {
    height: 56px;
    grid-template-columns: 44px 1fr auto;
    gap: 4px;
    padding: 0 8px 0 4px;
  }
  .brand {
    font-size: 18px;
    letter-spacing: 0.04em;
    text-transform: none;
  }
  .brand-logo { max-height: 30px; }
  .header-actions { gap: 0; }
  .icon-btn { width: 38px; height: 38px; }
  .header-note {
    padding: 10px 14px;
    font-size: 13px;
  }

  .hero,
  .product-page,
  .checkout-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero-visual { min-height: 240px; order: -1; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px 10px; }
  .cart-row { grid-template-columns: 64px 1fr; }
  .cart-row input,
  .cart-row div:nth-child(4),
  .cart-row button { grid-column: 2; }
  .row-2 { grid-template-columns: 1fr; }

  .home-modules,
  .mod {
    overflow-x: clip;
    max-width: 100%;
  }
  .mod-video-frame {
    height: auto;
    aspect-ratio: 16 / 10;
    max-height: 58vh;
  }
  .mod-banner,
  .mod-image,
  .mod-video,
  .mod-image-frame,
  .mod-video-frame {
    width: 100%;
    max-width: 100%;
  }
  .mod-banner {
    height: auto;
    aspect-ratio: 16 / 10;
    max-height: min(62vh, 520px);
    min-height: 200px;
  }
  .mod-banner.has-mobile-img {
    aspect-ratio: 3 / 4;
    max-height: min(78vh, 680px);
    min-height: 280px;
  }
  .mod-image-frame {
    height: auto;
    aspect-ratio: auto;
    max-height: none;
    min-height: 0;
  }
  .mod-image-frame.has-img .mod-image-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
  }
  .banner-img {
    object-position: center center;
  }
  .banner-overlay {
    padding: 16px 14px;
    max-width: 92%;
  }
  .banner-overlay h2 {
    font-size: clamp(18px, 5.2vw, 26px);
    line-height: 1.25;
  }
  .banner-overlay p {
    font-size: 13px;
    margin-bottom: 12px;
  }
  .banner-overlay .btn {
    min-height: 38px;
    padding: 0 16px;
    font-size: 12px;
  }
  .banner-dots {
    bottom: 12px;
  }

  .text-media-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    width: 100%;
    max-width: 100%;
  }
  .mod-text-media {
    padding: 0 0 24px;
    overflow: hidden;
  }
  .mod-text-media .text-media-visual {
    order: -1;
    width: 100%;
    max-width: 100%;
    margin: 0;
    background: transparent;
  }
  .mod-text-media.layout-text_right .text-media-copy,
  .mod-text-media.layout-text_right .text-media-visual { order: unset; }
  .mod-text-media.layout-text_right .text-media-visual { order: -1; }
  .mod-text-media .text-media-copy {
    padding: 18px 14px 0;
  }
  .text-media-heading {
    font-size: 20px;
    margin-bottom: 12px;
  }
  .text-media-body {
    font-size: 14px;
    line-height: 1.7;
  }
  .text-media-visual {
    min-height: 0;
  }
  .text-media-visual img,
  .text-media-visual video,
  .text-media-link img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
  }
  .mod-inner { padding: 24px 14px; }
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 24px 16px;
    padding: 32px 14px 24px;
  }
  .footer-bottom {
    padding: 12px 14px 20px;
  }
}
@media (max-width: 480px) {
  .social-bar { gap: 12px; }
  .brand { font-size: 16px; }
  .mod-banner {
    aspect-ratio: 16 / 9;
    min-height: 180px;
  }
  .mod-banner.has-mobile-img {
    aspect-ratio: 3 / 4;
    min-height: 260px;
  }
  .footer-main { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
