/* Storefront theme. Colours and fonts come from Admin → Settings → Theme via CSS variables. */
:root {
  --brand: #ec3a63;
  --accent: #f6a21a;
  --ink: #2b2140;
  --bg: #fffaf5;
  --font-head: ui-rounded, system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", sans-serif;
  --muted: color-mix(in srgb, var(--ink) 62%, white);
  --line: color-mix(in srgb, var(--ink) 11%, white);
  --brand-soft: color-mix(in srgb, var(--brand) 10%, white);
  --accent-soft: color-mix(in srgb, var(--accent) 16%, white);
  --card: #ffffff;
  --danger: #c4283a;
  --r-sm: 12px;
  --r: 20px;
  --r-lg: 32px;
  --shadow: 0 1px 2px rgba(43, 33, 64, .05), 0 8px 24px -12px rgba(43, 33, 64, .18);
  --shadow-lg: 0 2px 4px rgba(43, 33, 64, .04), 0 24px 48px -20px rgba(43, 33, 64, .28);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 16.5px; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(2rem, 4.2vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.section { padding: 64px 24px; }
.section.tight { padding-top: 32px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.danger { color: var(--danger); }
.warn { color: #b45309; font-weight: 600; min-height: 1.2em; margin-top: 10px; }
.empty { padding: 40px 0; }

/* ---------- Header ---------- */
.announce { background: var(--ink); color: #fff; text-align: center; font-size: .88rem; font-weight: 600; padding: 9px 16px; letter-spacing: .01em; }
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 32px; height: 78px; }
.logo { font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; text-decoration: none; color: var(--brand); flex-shrink: 0; }
.logo img { height: 52px; width: auto; }
.logo.small img { height: 64px; }
.main-nav { display: flex; gap: 6px; flex: 1; }
.main-nav a { text-decoration: none; font-weight: 600; padding: 8px 14px; border-radius: 999px; transition: background .15s, color .15s; white-space: nowrap; }
.main-nav a:hover { background: var(--brand-soft); color: var(--brand); }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.search-form { display: flex; align-items: center; background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: 2px 4px 2px 16px; transition: border-color .15s; }
.search-form:focus-within { border-color: var(--brand); }
.search-form input { border: 0; padding: 8px 0; width: 150px; background: transparent; outline: none; font: inherit; font-size: .92rem; }
.search-form button { border: 0; background: none; color: var(--muted); padding: 6px; cursor: pointer; display: grid; }
.cart-link { position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--brand); color: #fff; text-decoration: none; transition: transform .15s; }
.cart-link:hover { transform: scale(1.06); }
.cart-count { position: absolute; top: -4px; right: -4px; background: var(--accent); color: var(--ink); font-size: .72rem; min-width: 20px; height: 20px; border-radius: 10px; display: grid; place-items: center; padding: 0 5px; font-weight: 800; border: 2px solid var(--bg); }
.mobile-menu { display: none; position: relative; }
.mobile-menu summary { list-style: none; cursor: pointer; padding: 8px; display: grid; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-nav { position: absolute; top: 52px; left: -8px; background: #fff; border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 10px; display: flex; flex-direction: column; min-width: 230px; z-index: 30; }
.mobile-nav a { text-decoration: none; padding: 11px 14px; border-radius: var(--r-sm); font-weight: 600; }
.mobile-nav a:hover { background: var(--brand-soft); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--brand); color: #fff; border: 2px solid var(--brand); padding: 13px 28px; border-radius: 999px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; box-shadow: 0 6px 16px -8px color-mix(in srgb, var(--brand) 80%, transparent); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -10px color-mix(in srgb, var(--brand) 90%, transparent); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-block { display: flex; width: 100%; }
.btn-lg { padding: 16px 28px; font-size: 1.05rem; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); box-shadow: none; }
.btn-outline:hover { background: var(--ink); color: #fff; box-shadow: none; }
.btn-ghost { background: #fff; color: var(--ink); border-color: #fff; box-shadow: var(--shadow); }
.link-btn { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; font-size: .85rem; }
.link-btn:hover { color: var(--danger); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background:
  radial-gradient(60% 80% at 0% 0%, var(--accent-soft) 0%, transparent 60%),
  radial-gradient(50% 70% at 100% 100%, var(--brand-soft) 0%, transparent 65%), var(--bg); }
.hero-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; padding-top: 64px; padding-bottom: 72px; position: relative; z-index: 1; }
.eyebrow { display: inline-block; background: #fff; color: var(--brand); font-weight: 700; font-size: .85rem; padding: 7px 16px; border-radius: 999px; box-shadow: var(--shadow); margin-bottom: 20px; }
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.1rem); line-height: 1.04; margin-bottom: 20px; }
.hero p { font-size: 1.15rem; color: var(--muted); max-width: 34em; margin-bottom: 30px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-media { position: relative; }
.hero-media::before { content: ""; position: absolute; inset: -18px -18px 18px 18px; background: var(--accent); border-radius: var(--r-lg); transform: rotate(2.5deg); opacity: .9; }
.hero-media img { position: relative; width: 100%; aspect-ratio: 16 / 11; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.bubbles i { position: absolute; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #fff, color-mix(in srgb, var(--brand) 18%, white) 60%, transparent 70%); opacity: .7; animation: float 9s ease-in-out infinite; }
.bubbles i:nth-child(1) { width: 60px; height: 60px; left: 4%; top: 70%; }
.bubbles i:nth-child(2) { width: 26px; height: 26px; left: 44%; top: 12%; animation-delay: -2s; }
.bubbles i:nth-child(3) { width: 40px; height: 40px; left: 49%; top: 80%; animation-delay: -4s; }
.bubbles i:nth-child(4) { width: 18px; height: 18px; right: 3%; top: 10%; animation-delay: -6s; }
.bubbles i:nth-child(5) { width: 34px; height: 34px; left: 30%; top: 4%; animation-delay: -3s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@media (prefers-reduced-motion: reduce) { .bubbles i { animation: none; } * { transition: none !important; } }

/* ---------- Promos ---------- */
.promos { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(320px, 1fr); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-top: 48px; padding-bottom: 8px; scrollbar-width: none; }
.promos::-webkit-scrollbar { display: none; }
.promo { scroll-snap-align: start; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); display: block; transition: transform .2s; background: #fff; }
.promo:hover { transform: translateY(-4px); }
.promo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* ---------- Section headers ---------- */
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.see-all { font-weight: 700; color: var(--brand); text-decoration: none; }
.see-all:hover { text-decoration: underline; }

/* ---------- Product cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 28px 22px; }
.card { background: var(--card); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-img { position: relative; aspect-ratio: 1; display: block; background: var(--brand-soft); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: opacity .35s, transform .5s; }
.card-img .alt-img { position: absolute; inset: 0; opacity: 0; }
.card:hover .card-img .alt-img { opacity: 1; }
.card:hover .card-img img { transform: scale(1.03); }
.badge { position: absolute; top: 12px; left: 12px; background: var(--ink); color: #fff; font-size: .78rem; font-weight: 800; padding: 5px 11px; border-radius: 999px; z-index: 1; }
.badge.sale { background: var(--brand); }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-title { font-family: var(--font-head); font-weight: 600; font-size: 1.06rem; line-height: 1.3; text-decoration: none; }
.card-title:hover { color: var(--brand); }
.card-price { margin-bottom: 8px; }
.card-body form { margin-top: auto; }
.card-btn { margin-top: auto; display: block; width: 100%; text-align: center; border: 2px solid var(--ink); border-radius: 999px; padding: 9px 12px; font: inherit; font-weight: 700; font-size: .92rem; background: transparent; color: var(--ink); cursor: pointer; text-decoration: none; transition: background .15s, color .15s; }
.card-btn:hover { background: var(--ink); color: #fff; }
.card-btn.disabled { opacity: .4; pointer-events: none; }
.price { font-weight: 800; color: var(--brand); }
.from { font-size: .85rem; color: var(--muted); }
.compare { color: var(--muted); font-size: .9em; }
.save { display: inline-block; background: var(--accent-soft); color: color-mix(in srgb, var(--accent) 45%, var(--ink)); font-size: .8rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; vertical-align: middle; }
.noimg { width: 100%; height: 100%; min-height: 160px; background: var(--brand-soft); }

/* ---------- Features ---------- */
.features-band { background: var(--brand); color: #fff; padding: 72px 0; margin: 24px 0; position: relative; }
.features-band::before, .features-band::after { content: ""; position: absolute; left: 0; right: 0; height: 28px; background: radial-gradient(circle at 14px 0, var(--bg) 14px, transparent 15px) repeat-x; background-size: 28px 28px; }
.features-band::before { top: 0; }
.features-band::after { bottom: 0; transform: rotate(180deg); }
.features-band h2 { color: #fff; margin-bottom: 40px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; }
.feature { background: #fff; color: var(--ink); border-radius: var(--r); padding: 26px 20px; text-align: center; box-shadow: var(--shadow-lg); }
.feature img { width: 64px; height: 64px; margin: 0 auto 14px; object-fit: contain; }
.feature h3 { margin-bottom: 6px; font-size: 1.12rem; }
.feature p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.5; }

/* ---------- Story ---------- */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.story-media img { width: 100%; border-radius: var(--r-lg); aspect-ratio: 4 / 3; object-fit: cover; box-shadow: var(--shadow-lg); transform: rotate(-1.5deg); }
.story-text p { color: var(--muted); font-size: 1.08rem; }
.story-text .btn { margin-top: 8px; }

/* ---------- Section variants ---------- */
.hero-grid.no-media { grid-template-columns: 1fr; text-align: center; justify-items: center; }
.hero-grid.no-media p { margin-left: auto; margin-right: auto; }
.story.image-right .story-media { order: 2; }
.story.no-media { grid-template-columns: 1fr; max-width: 760px; }
.rich-text { padding: 64px 0; }
.rich-text .prose { margin-bottom: 20px; }
.rich-text.style-tint { background: var(--brand-soft); margin: 24px 0; }
.rich-text.style-brand { background: var(--brand); color: #fff; margin: 24px 0; }
.rich-text.style-brand h2, .rich-text.style-brand .prose p, .rich-text.style-brand .prose li, .rich-text.style-brand .prose strong { color: #fff; }
.rich-text.style-brand .btn { background: #fff; color: var(--brand); border-color: #fff; }
.home-section.editor-highlight { outline: 3px solid var(--accent); outline-offset: -3px; }

/* ---------- Collections & posts ---------- */
.collections { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.collection-card { position: relative; display: block; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3; text-decoration: none; background: var(--brand-soft); box-shadow: var(--shadow); }
.collection-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.collection-card:hover img { transform: scale(1.05); }
.collection-card span { position: absolute; left: 16px; bottom: 16px; background: #fff; padding: 9px 18px; border-radius: 999px; font-family: var(--font-head); font-weight: 600; box-shadow: var(--shadow); }
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.post-card { background: #fff; border-radius: var(--r); overflow: hidden; text-decoration: none; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post-img { aspect-ratio: 1; background: var(--brand-soft); overflow: hidden; }
.post-img img { width: 100%; height: 100%; object-fit: contain; }
.post-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.post-body h3 { margin: 6px 0 8px; line-height: 1.3; }
.post-body p { font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.read-more { margin-top: auto; font-weight: 700; color: var(--brand); }

/* ---------- Page hero / collection ---------- */
.page-hero { background: radial-gradient(70% 120% at 0% 0%, var(--accent-soft), transparent 60%), radial-gradient(60% 120% at 100% 100%, var(--brand-soft), transparent 60%); padding: 56px 0 40px; text-align: center; }
.page-hero h1 { margin-bottom: .3em; }
.page-hero p { color: var(--muted); max-width: 40em; margin: 0 auto; font-size: 1.08rem; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.sort-form select { width: auto; padding: 8px 14px; margin-left: 6px; border-radius: 999px; }
.big-search { display: flex; gap: 10px; max-width: 560px; margin: 20px auto 0; }
.big-search input { flex: 1; border-radius: 999px; padding-left: 20px; }

/* ---------- Product page ---------- */
.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; }
.gallery, .product-info { min-width: 0; }
.gallery { position: sticky; top: 100px; }
.main-img { border-radius: var(--r-lg); overflow: hidden; background: #fff; aspect-ratio: 1; box-shadow: var(--shadow); }
.main-img img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 10px; margin-top: 14px; overflow-x: auto; padding: 4px 2px; scrollbar-width: thin; }
.thumb { flex: 0 0 76px; height: 76px; padding: 0; border: 2px solid transparent; border-radius: var(--r-sm); overflow: hidden; cursor: pointer; background: #fff; box-shadow: var(--shadow); }
.thumb.active { border-color: var(--brand); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 10px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--brand); }
.product-info h1 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); margin-bottom: 12px; }
.product-price { font-size: 1.5rem; margin-bottom: 26px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.product-price .save { font-size: .85rem; }
.variants { border: 0; padding: 0; margin: 0 0 22px; }
.variants legend { margin-bottom: 10px; color: var(--muted); }
.variants legend strong { color: var(--ink); }
.pill { display: inline-block; margin: 0 8px 8px 0; cursor: pointer; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span { display: inline-block; border: 2px solid var(--line); background: #fff; border-radius: 999px; padding: 9px 18px; font-weight: 600; font-size: .95rem; transition: border-color .15s; }
.pill:hover span { border-color: var(--ink); }
.pill input:checked + span { border-color: var(--brand); background: var(--brand); color: #fff; }
.pill input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.pill.disabled span { color: #aaa; text-decoration: line-through; cursor: not-allowed; background: #f6f6f6; }
.buy-row { display: flex; gap: 12px; }
.stepper { display: flex; align-items: center; border: 2px solid var(--line); border-radius: 999px; background: #fff; }
.stepper button { width: 44px; height: 48px; border: 0; background: none; font-size: 1.3rem; cursor: pointer; color: var(--ink); }
.stepper input { width: 40px; border: 0; text-align: center; padding: 0; font-weight: 700; -moz-appearance: textfield; background: transparent; }
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.stepper input:focus { outline: none; }
.btn-grow { flex: 1; }
.perks { list-style: none; padding: 18px 20px; margin: 22px 0; background: #fff; border-radius: var(--r); box-shadow: var(--shadow); display: grid; gap: 8px; font-size: .95rem; }
.description { margin-top: 28px; }

/* ---------- Prose (pages, posts, descriptions) ---------- */
.prose { font-size: 1.04rem; overflow-wrap: anywhere; }
.prose figure.video video { width: 100%; max-height: 80vh; border-radius: var(--r); background: #000; display: block; }
.prose h2, .prose h3, .prose h4 { margin-top: 1.6em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose p, .prose li { color: color-mix(in srgb, var(--ink) 85%, white); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .35em; }
.prose a { color: var(--brand); font-weight: 600; }
.prose figure { margin: 1.6em 0; }
.prose figure img { border-radius: var(--r); width: 100%; height: auto; }
.prose strong { color: var(--ink); }
.post h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.post-hero { width: 100%; border-radius: var(--r-lg); margin: 24px 0 32px; box-shadow: var(--shadow-lg); }

/* ---------- Forms ---------- */
input, select, textarea { font: inherit; padding: 12px 15px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: #fff; color: inherit; width: 100%; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--brand); }
.qty { width: 74px; }
.check { display: flex; gap: 10px; align-items: center; font-size: .94rem; }

/* ---------- Cart & checkout ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 400px; gap: 36px; align-items: start; }
.ship-progress { background: #fff; border-radius: var(--r); padding: 16px 20px; box-shadow: var(--shadow); margin-bottom: 24px; }
.ship-progress p { margin: 0 0 10px; }
.bar { height: 10px; background: var(--brand-soft); border-radius: 999px; overflow: hidden; }
.bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--brand)); border-radius: 999px; transition: width .4s; }
.cart-lines { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: 4px 24px; }
.cart-line { display: grid; grid-template-columns: 100px 1fr auto; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: start; }
.cart-line:last-child { border-bottom: 0; }
.cart-thumb { width: 100px; height: 100px; border-radius: var(--r-sm); overflow: hidden; background: var(--brand-soft); display: block; }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-title { font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; text-decoration: none; }
.line-actions { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.inline-form { display: inline-flex; gap: 8px; align-items: center; }
.inline-form .qty { padding: 7px 10px; width: 70px; }
.cart-line-total { font-weight: 800; }
.summary { background: #fff; border-radius: var(--r); padding: 26px; position: sticky; top: 100px; box-shadow: var(--shadow); }
.summary h3 { margin-bottom: 16px; }
.totals { display: grid; grid-template-columns: 1fr auto; gap: 10px 12px; margin: 0 0 20px; }
.totals dd { margin: 0; text-align: right; }
.totals .grand { font-weight: 800; font-size: 1.2rem; padding-top: 14px; border-top: 1.5px dashed var(--line); }
.tag { display: inline-block; background: var(--accent-soft); border-radius: 6px; padding: 1px 8px; font-size: .78rem; font-weight: 700; }
.discount-form { display: flex; gap: 8px; margin-bottom: 8px; }
.discount-form .btn { padding: 10px 18px; }
.summary .btn-block { margin-top: 16px; }
.continue { display: block; text-align: center; margin-top: 14px; color: var(--muted); }
.checkout-form { display: flex; flex-direction: column; gap: 20px; }
.panel { background: #fff; border-radius: var(--r); padding: 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.checkout-form .panel { margin: 0; }
.panel h3 { margin: 0 0 4px; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pay-opt { display: flex; gap: 12px; align-items: center; border: 2px solid var(--line); border-radius: var(--r-sm); padding: 16px; cursor: pointer; }
.pay-opt:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.mini-line { display: grid; grid-template-columns: 60px 1fr auto; gap: 14px; align-items: center; margin-bottom: 16px; }
.mini-thumb { position: relative; width: 60px; height: 60px; border-radius: var(--r-sm); background: var(--brand-soft); }
.mini-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-sm); }
.mini-thumb b { position: absolute; top: -8px; right: -8px; background: var(--ink); color: #fff; font-size: .72rem; min-width: 22px; height: 22px; border-radius: 11px; display: grid; place-items: center; }
.empty-cart .empty-icon { width: 84px; height: 84px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin: 0 auto 20px; }
.empty-cart .empty-icon svg { width: 38px; height: 38px; }
.success-icon { width: 60px; height: 60px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 1.7rem; margin-bottom: 16px; }

/* ---------- Flash ---------- */
.flash-wrap { padding-top: 16px; }
.flash { padding: 13px 18px; border-radius: var(--r-sm); margin: 0 0 16px; font-weight: 600; }
.flash-success { background: #e8f8ee; color: #136c3a; }
.flash-error { background: #fdecee; color: var(--danger); }
.flash-info { background: var(--accent-soft); color: color-mix(in srgb, var(--accent) 35%, var(--ink)); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: color-mix(in srgb, #fff 78%, var(--ink)); margin-top: 72px; padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 14px; }
.site-footer a { display: block; text-decoration: none; padding: 4px 0; }
.site-footer a:hover { color: #fff; }
.footer-brand .logo { background: #fff; display: inline-block; padding: 8px 14px; border-radius: var(--r); margin-bottom: 16px; }
.footer-brand p { max-width: 26em; }
.socials { display: flex; gap: 10px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; background: color-mix(in srgb, #fff 12%, var(--ink)); display: grid; place-items: center; padding: 0; }
.socials a:hover { background: var(--brand); }
.copyright { border-top: 1px solid color-mix(in srgb, #fff 14%, var(--ink)); margin-top: 40px; padding-top: 22px; font-size: .85rem; }
.wa-float { position: fixed; right: 20px; bottom: 20px; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px -6px rgba(0,0,0,.35); z-index: 40; transition: transform .15s; }
.wa-float:hover { transform: scale(1.08); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .main-nav { display: none; }
  .mobile-menu { display: block; }
  .header-row { gap: 12px; }
  .hero-grid, .story, .product, .cart-layout { grid-template-columns: 1fr; gap: 36px; }
  .hero-grid { padding-top: 40px; }
  .gallery, .summary { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .section { padding: 44px 16px; }
  .header-row { height: 66px; }
  .logo img { height: 40px; }
  .search-form { display: none; }
  .hero-media::before { inset: -10px -10px 10px 10px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .card-body { padding: 12px; }
  .card-title { font-size: .96rem; }
  .card-btn { padding: 8px; font-size: .85rem; }
  .promos { grid-auto-columns: 86%; }
  .features { grid-template-columns: 1fr 1fr; }
  .features .feature:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .row3 { grid-template-columns: 1fr; }
  .cart-lines { padding: 4px 16px; }
  .cart-line { grid-template-columns: 76px 1fr; gap: 14px; }
  .cart-thumb { width: 76px; height: 76px; }
  .cart-line-total { grid-column: 2; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .wa-float { width: 50px; height: 50px; right: 14px; bottom: 14px; }
}

/* ---------- Checkout extras ---------- */
.ship-opt { justify-content: space-between; }
.ship-opt .ship-name { flex: 1; }
.terms { align-items: flex-start; }
.terms input { margin-top: 4px; }
.terms a, .policy-links a { color: var(--brand); }
.policy-links { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin: 0; }
#stateWrap select, #stateWrap input { width: 100%; }

/* ---------- Device visibility (matches editor previews) ---------- */
@media (max-width: 639px) { .hide-mobile { display: none !important; } }
@media (min-width: 640px) and (max-width: 1023px) { .hide-tablet { display: none !important; } }
@media (min-width: 1024px) { .hide-desktop { display: none !important; } }

/* ---------- Bands / backgrounds ---------- */
.band { padding: 64px 0; margin: 24px 0; }
.band.style-plain { margin: 0; }
.band.style-tint { background: var(--brand-soft); }
.band.style-brand { background: var(--brand); color: #fff; }
.band.style-dark { background: var(--ink); color: #fff; }
.band.style-brand h2, .band.style-dark h2, .band.style-brand .prose p, .band.style-dark .prose p, .band.style-brand .prose li, .band.style-dark .prose li { color: #fff; }
.band.style-brand .btn { background: #fff; color: var(--brand); border-color: #fff; }
.band.style-dark .btn { background: var(--brand); border-color: var(--brand); }
.hero-grid.align-center .hero-text { text-align: center; }
.hero-grid.align-center .hero-ctas { justify-content: center; }
picture.hero-media { display: block; position: relative; }
picture.hero-media::before { content: ""; position: absolute; inset: -18px -18px 18px 18px; background: var(--accent); border-radius: var(--r-lg); transform: rotate(2.5deg); opacity: .9; }
picture.hero-media img { position: relative; width: 100%; aspect-ratio: 16 / 11; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }

/* ---------- Image banners & slideshow ---------- */
.banner, .slide { position: relative; display: block; overflow: hidden; color: #fff; text-decoration: none; }
.banner-media img { width: 100%; display: block; }
.h-small .banner-media img { height: 360px; object-fit: cover; }
.h-medium .banner-media img { height: 520px; object-fit: cover; }
.h-large .banner-media img { height: 680px; object-fit: cover; }
.h-full .banner-media img { height: calc(100svh - 110px); min-height: 420px; object-fit: cover; }
.h-adapt .banner-media img { height: auto; }
.banner:not(:has(.banner-media)) { min-height: 320px; background: var(--brand); }
.banner-content { position: absolute; inset: 0; display: flex; align-items: center; padding-top: 32px; padding-bottom: 32px; }
.pos-bottom .banner-content { align-items: flex-end; }
.align-center .banner-content { justify-content: center; text-align: center; }
.align-center .banner-box .hero-ctas { justify-content: center; }
.banner-box { max-width: 620px; }
.banner-box h1, .banner-box h2 { color: #fff; font-size: clamp(2rem, 5vw, 3.6rem); text-shadow: 0 2px 18px rgba(0,0,0,.25); margin-bottom: 12px; }
.banner-box p { font-size: 1.12rem; margin-bottom: 22px; text-shadow: 0 1px 10px rgba(0,0,0,.3); }
.ov-light .banner-media::after, .ov-dark .banner-media::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.banner-media { display: block; }
.ov-light .banner-content, .ov-dark .banner-content { z-index: 1; }
.ov-light .banner-media + .banner-content { background: linear-gradient(to top, rgba(0,0,0,.35), rgba(0,0,0,.08)); }
.ov-dark .banner-media + .banner-content { background: linear-gradient(to top, rgba(0,0,0,.6), rgba(0,0,0,.25)); }
.slideshow { position: relative; }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.slides::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: start; }
.ss-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); color: var(--ink); font-size: 1.6rem; line-height: 1; cursor: pointer; box-shadow: var(--shadow); z-index: 2; }
.ss-btn.prev { left: 16px; } .ss-btn.next { right: 16px; }
.ss-dots { position: absolute; bottom: 14px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; z-index: 2; }
.ss-dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(255,255,255,.6); cursor: pointer; padding: 0; box-shadow: 0 0 0 1px rgba(0,0,0,.15); }
.ss-dots button.active { background: #fff; width: 26px; border-radius: 99px; }
.promo picture, .promo picture img { display: block; width: 100%; }

/* ---------- Carousels & grid columns ---------- */
.carousel { position: relative; }
.carousel .as-row { display: grid; grid-auto-flow: column; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px 4px 14px; }
.carousel .as-row::-webkit-scrollbar { display: none; }
.carousel .as-row > * { scroll-snap-align: start; }
.carousel .grid.as-row { grid-auto-columns: calc((100% - 3 * 22px) / 4); }
.carousel .grid.cols-3.as-row { grid-auto-columns: calc((100% - 2 * 22px) / 3); }
.carousel .grid.cols-5.as-row { grid-auto-columns: calc((100% - 4 * 22px) / 5); }
.carousel .collections.as-row, .carousel .posts.as-row, .carousel .testimonials.as-row { grid-auto-columns: calc((100% - 2 * 22px) / 3); gap: 22px; }
.car-btn { position: absolute; top: 40%; z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: 0; background: #fff; box-shadow: var(--shadow-lg); font-size: 1.5rem; cursor: pointer; color: var(--ink); }
.car-btn.prev { left: -14px; } .car-btn.next { right: -14px; }
.car-btn:disabled { opacity: 0; pointer-events: none; }
.carousel.no-overflow .car-btn { display: none; }
@media (min-width: 900px) {
  .grid.cols-3:not(.as-row) { grid-template-columns: repeat(3, 1fr); }
  .grid.cols-4:not(.as-row) { grid-template-columns: repeat(4, 1fr); }
  .grid.cols-5:not(.as-row) { grid-template-columns: repeat(5, 1fr); }
}

/* ---------- Countdown ---------- */
.timer { display: flex; justify-content: center; gap: 14px; margin: 24px 0 28px; flex-wrap: wrap; }
.t-unit { background: rgba(255,255,255,.95); color: var(--ink); border-radius: var(--r); min-width: 88px; padding: 14px 10px; box-shadow: var(--shadow); }
.style-plain .t-unit, .style-tint .t-unit { background: #fff; }
.t-num { display: block; font-family: var(--font-head); font-size: 2.2rem; font-weight: 700; line-height: 1; color: var(--brand); }
.t-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.t-expired { font-weight: 700; font-size: 1.1rem; margin: 20px 0; }

/* ---------- Featured product ---------- */
.featured-product { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.fp-media { display: block; border-radius: var(--r-lg); overflow: hidden; background: #fff; box-shadow: var(--shadow-lg); aspect-ratio: 1; }
.fp-media img { width: 100%; height: 100%; object-fit: cover; }
.fp-info h2 a { text-decoration: none; }
.fp-form { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.fp-form select { flex: 1 1 100%; }

/* ---------- Video ---------- */
.video-frame { position: relative; border-radius: var(--r-lg); overflow: hidden; background: #000; box-shadow: var(--shadow-lg); }
.video-frame iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }
.video-frame video { width: 100%; max-height: 82vh; display: block; }
.video-section.w-narrow .wrap { max-width: 760px; }
.video-section.w-full .video-frame { border-radius: 0; }
.narrow-head { max-width: 680px; margin: 0 auto 24px; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.gallery-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.gallery-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.g-item { position: relative; display: block; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; background: #fff; }
.g-item img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .4s; }
.g-item:hover img { transform: scale(1.04); }
.g-cap { position: absolute; left: 10px; bottom: 10px; background: #fff; border-radius: 999px; padding: 5px 12px; font-weight: 600; font-size: .88rem; }

/* ---------- Testimonials ---------- */
.testimonials { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.testimonial { margin: 0; background: #fff; border-radius: var(--r); padding: 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; }
.stars { color: var(--accent); letter-spacing: 2px; font-size: 1.1rem; }
.stars span { color: var(--line); }
.testimonial blockquote { margin: 0; font-size: 1.05rem; flex: 1; }
.testimonial figcaption { display: flex; align-items: center; gap: 10px; }
.testimonial figcaption img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }

/* ---------- FAQ ---------- */
.faq-item { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); margin-bottom: 12px; }
.faq-item summary { cursor: pointer; padding: 18px 22px; font-weight: 700; font-family: var(--font-head); font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--brand); font-size: 1.4rem; line-height: 1; transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .prose { padding: 0 22px 18px; }

/* ---------- Marquee ---------- */
.marquee { padding: 16px 0; overflow: hidden; margin: 0; }
.mq-track { display: flex; width: max-content; }
.mq-run { display: flex; align-items: center; flex-shrink: 0; animation: mq 30s linear infinite; }
.speed-slow .mq-run { animation-duration: 50s; } .speed-fast .mq-run { animation-duration: 16s; }
.mq-item { font-family: var(--font-head); font-weight: 600; font-size: 1.2rem; white-space: nowrap; padding: 0 22px; }
.mq-dot { color: var(--accent); }
@keyframes mq { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .mq-run { animation: none; } }

/* ---------- Forms ---------- */
.inline-signup { display: flex; gap: 10px; max-width: 520px; margin: 20px auto 0; }
.inline-signup input[type=email] { flex: 1; border-radius: 999px; padding-left: 20px; }
.style-brand .inline-signup .btn, .style-dark .inline-signup .btn { flex-shrink: 0; }
.form-done { font-weight: 700; font-size: 1.1rem; margin-top: 16px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.contact-form { margin-top: 20px; }
.contact-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ---------- Divider ---------- */
.divider.sp-small { padding: 12px 0; } .divider.sp-medium { padding: 32px 0; } .divider.sp-large { padding: 64px 0; }
.divider hr { border: 0; border-top: 1px solid var(--line); margin: 0 auto; }

@media (max-width: 980px) {
  .featured-product { grid-template-columns: 1fr; gap: 28px; }
  .carousel .grid.as-row, .carousel .grid.cols-3.as-row, .carousel .grid.cols-5.as-row { grid-auto-columns: calc((100% - 22px) / 2.3); }
  .carousel .collections.as-row, .carousel .posts.as-row, .carousel .testimonials.as-row { grid-auto-columns: 70%; }
  .gallery-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid.mcols-1:not(.as-row) { grid-template-columns: 1fr; }
  .carousel .grid.as-row { grid-auto-columns: 72%; }
  .carousel .grid.mcols-1.as-row { grid-auto-columns: 86%; }
  .car-btn { display: none; }
  .h-medium .banner-media img { height: 420px; } .h-large .banner-media img { height: 520px; } .h-small .banner-media img { height: 280px; }
  .ss-btn { display: none; }
  .gallery-grid, .gallery-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .inline-signup { flex-direction: column; }
  .contact-form .row2 { grid-template-columns: 1fr; }
  .band { padding: 44px 0; }
  .t-unit { min-width: 68px; }
  .t-num { font-size: 1.7rem; }
}
