/* Themes only change these values, so every section works in every theme. --accent and --font come from the shop's design. */
:root { color-scheme: light; }
body {
    --bg: #ffffff; --surface: #f5f6f8; --text: #16181d; --muted: #5d6470; --line: #e3e5ea; --radius: 10px; --heading-weight: 700;
    margin: 0; background: var(--bg); color: var(--text); line-height: 1.6;
    font-family: var(--font), system-ui, -apple-system, 'Segoe UI', sans-serif;
}
body.theme-bold { --bg: #101114; --surface: #1b1d22; --text: #f4f5f7; --muted: #a4a9b3; --line: #2c2f36; --radius: 0; color-scheme: dark; }
body.theme-warm { --bg: #fbf7f0; --surface: #f2eadd; --text: #2b2118; --muted: #6f6152; --line: #e4d8c5; --radius: 18px; }
body.theme-midnight { --bg: #0b1426; --surface: #15213a; --text: #eef2fb; --muted: #a3b0c9; --line: #26344f; --radius: 12px; color-scheme: dark; }
body.theme-luxe { --bg: #0c0b09; --surface: #1a1814; --text: #f6f0e2; --muted: #b5ab95; --line: #3a342a; --radius: 2px; --heading-weight: 400; color-scheme: dark; }
body.theme-pastel { --bg: #fdf6fb; --surface: #f3e9f7; --text: #33263f; --muted: #6e5d7c; --line: #e6d8ec; --radius: 20px; }
body.theme-neon { --bg: #08060f; --surface: #15112a; --text: #f4f1ff; --muted: #aea7d0; --line: #2c2550; --radius: 14px; color-scheme: dark; }
body.theme-fresh { --bg: #f5fbf6; --surface: #e6f4e9; --text: #14291b; --muted: #4f6b58; --line: #cfe5d5; --radius: 14px; }
body.theme-mono { --bg: #ffffff; --surface: #f0f0f0; --text: #000000; --muted: #555555; --line: #000000; --radius: 0; }
body.theme-sunset { --bg: #fff5ec; --surface: #ffe6d3; --text: #3a1a10; --muted: #7c5243; --line: #f6d2ba; --radius: 16px; }

* { box-sizing: border-box; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2 { font-weight: var(--heading-weight); line-height: 1.25; margin: 0 0 .75rem; color: var(--heading-color, inherit); }
h1 { font-size: clamp(1.8rem, 5vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3.5vw, 2rem); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap { max-width: 1160px; margin-inline: auto; padding-inline: 16px; }
.section { padding-block: clamp(1.75rem, 4.5vw, 3rem); }
.prose-wrap { max-width: 760px; }
.prose p:first-child { margin-top: 0; }
.muted { color: var(--muted); }

.shop-header { border-bottom: 1px solid var(--line); }
.shop-header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; padding-block: .85rem; }
.shop-brand { display: flex; align-items: center; gap: .6rem; font-weight: 700; font-size: 1.15rem; text-decoration: none; min-width: 0; overflow-wrap: anywhere; }
.shop-brand img { height: 36px; width: auto; }
.shop-nav { display: flex; flex-wrap: wrap; gap: .25rem 1rem; }
.shop-nav a { text-decoration: none; color: var(--muted); padding-block: .25rem; }
.shop-nav a:hover { color: var(--text); }
.shop-footer { border-top: 1px solid var(--line); color: var(--muted); padding-block: 1.5rem; font-size: .9rem; }

.button {
    display: inline-block; background: var(--button-bg, var(--accent)); color: var(--button-text, var(--on-accent)); border: 0; border-radius: var(--radius);
    padding: .65rem 1.25rem; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
}
.button:hover { filter: brightness(.92); }

.hero { position: relative; background: var(--surface); overflow: hidden; }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero.has-image::after { content: ''; position: absolute; inset: 0; background: rgb(0 0 0 / .5); }
.hero-content { position: relative; z-index: 1; padding-block: clamp(3rem, 10vw, 7rem); }
.hero.has-image .hero-content { color: #fff; }
.hero-text { max-width: 620px; font-size: 1.1rem; margin-bottom: 1.25rem; }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); gap: 1.25rem; }
.section-shell[id] { scroll-margin-top: 80px; }
.product-card { position: relative; display: block; min-width: 0; }
.card-link { position: absolute; inset: 0; z-index: 3; border-radius: var(--radius); }
.card-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.product-image { position: relative; }
/* Add to cart on the picture: shows on hover with a mouse, always there (as a small round button) on a phone */
.card-add { position: absolute; z-index: 4; left: .6rem; right: .6rem; bottom: .6rem; margin: 0; }
.card-add .button { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding: .6rem .8rem; font-size: .9rem; box-shadow: 0 6px 18px rgb(0 0 0 / .18); }
@media (hover: none) {
    .card-add { left: auto; }
    .card-add .button { width: 2.6rem; height: 2.6rem; padding: 0; border-radius: 50%; }
    .card-add .button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
.product-card:hover .product-name { text-decoration: underline; }
.product-image { aspect-ratio: 1; background: var(--surface); border-radius: var(--radius); overflow: hidden; margin-bottom: .6rem; }
.product-image img { width: 100%; height: 100%; object-fit: cover; }
.product-name { overflow-wrap: anywhere; }
.product-price { font-weight: 700; font-variant-numeric: tabular-nums; }
.product-price.is-large { font-size: 1.5rem; margin-bottom: .25rem; }
.product-stock { color: var(--muted); font-size: .9rem; }
.product-stock.is-out { color: #c2410c; }
.theme-bold .product-stock.is-out { color: #fb923c; }
.product-detail { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 2rem; }
.section-more { margin: 1.5rem 0 0; }

.product-search { display: flex; gap: .5rem; margin-bottom: 1rem; max-width: 480px; }
.product-search input {
    flex: 1; min-width: 0; font: inherit; color: inherit; background: var(--bg); border: 1px solid var(--line);
    border-radius: var(--radius); padding: .6rem .8rem;
}
.category-filter, .pagination { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.pagination { margin: 2rem 0 0; }
.chip { border: 1px solid var(--line); border-radius: 999px; padding: .35rem .9rem; text-decoration: none; }
.chip.is-active { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

.image-text { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 2rem; align-items: center; }
.image-text img { border-radius: var(--radius); width: 100%; }
@media (min-width: 700px) { .image-text.is-reversed img, .image-text.is-reversed .picture-placeholder { order: 2; } }

.faq-item { border-bottom: 1px solid var(--line); padding-block: .85rem; }
.faq-item summary { cursor: pointer; font-weight: 700; }
.faq-item p { margin: .5rem 0 0; color: var(--muted); }
.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 1.25rem; }
.review { margin: 0; background: var(--surface); border-radius: var(--radius); padding: 1.25rem; }
.review blockquote { margin: 0 0 .75rem; }
.review figcaption { color: var(--muted); font-size: .9rem; }
.contact-list { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.25rem; margin: 0 0 1.25rem; }
.contact-list dt { color: var(--muted); }
.contact-list dd { margin: 0; overflow-wrap: anywhere; }

.shop-messages { padding-top: 1rem; }
.shop-message { margin: 0 0 .5rem; padding: .6rem .9rem; background: var(--surface); border-radius: var(--radius); }
.shop-message.is-error { color: #c2410c; }
.theme-bold .shop-message.is-error { color: #fb923c; }
button.chip { background: none; color: inherit; font: inherit; cursor: pointer; }

input[type=number], input:not([type]), input[type=tel], textarea {
    font: inherit; color: inherit; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: .55rem .75rem;
}
input[type=number] { width: 5.5rem; }
.add-to-cart { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-block: 1rem; }

.cart-line { display: flex; gap: 1rem; padding-block: 1rem; border-bottom: 1px solid var(--line); }
.cart-image { flex: 0 0 72px; height: 72px; background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.cart-image img { width: 100%; height: 100%; object-fit: cover; }
.cart-info { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.cart-info a { font-weight: 600; text-decoration: none; }
.cart-info a:hover { text-decoration: underline; }
.cart-unit { font-size: .9rem; }
.cart-total { flex: none; text-align: right; }
.cart-actions { display: flex; align-items: center; gap: .75rem; margin-top: .6rem; }
/* − 2 + : each button posts the new amount */
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.stepper button { width: 2.2rem; height: 2.2rem; border: 0; background: none; color: inherit; font: inherit; font-size: 1.1rem; line-height: 1; cursor: pointer; }
.stepper button:hover:not(:disabled) { background: var(--surface); }
.stepper button:disabled { opacity: .35; cursor: default; }
.stepper span { min-width: 2rem; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.cart-remove { display: inline-grid; place-items: center; width: 2.2rem; height: 2.2rem; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; }
.cart-remove:hover { background: var(--surface); color: #c2410c; }

.totals { display: grid; grid-template-columns: 1fr auto; gap: .3rem 1rem; margin: 1.25rem 0; }
.totals dt { color: var(--muted); }
.totals dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.totals .is-total { color: var(--text); font-weight: 700; font-size: 1.15rem; border-top: 1px solid var(--line); padding-top: .4rem; }

.checkout-form label { display: block; margin-bottom: .85rem; }
.checkout-form label > input, .checkout-form label > textarea { display: block; width: 100%; margin-top: .25rem; }
.checkout-form h2 { margin-top: 1.75rem; font-size: 1.25rem; }
.field-error { color: #c2410c; margin: -.5rem 0 .85rem; }
.theme-bold .field-error { color: #fb923c; }
.checkout-form .pay-option { display: flex; gap: .65rem; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--radius); padding: .75rem; overflow-wrap: anywhere; }
.checkout-form .pay-option input { flex: none; width: auto; margin-top: .4rem; accent-color: var(--accent); }
.summary-line { display: flex; justify-content: space-between; gap: 1rem; padding-block: .3rem; overflow-wrap: anywhere; }
.summary-line span:last-child { flex-shrink: 0; font-variant-numeric: tabular-nums; }

.pay-box { background: var(--surface); border-radius: var(--radius); padding: 1.25rem; margin-block: 1.25rem; overflow-wrap: anywhere; }
.pay-box h2 { font-size: 1.25rem; }
.pay-qr { display: block; width: min(100%, 260px); margin-block: .75rem; background: #fff; border-radius: 8px; }
.pay-qr svg { display: block; width: 100%; height: auto; }
.pay-card { margin-block: .75rem; }

/* The KHQR card over the page, as ABA shows it. "Close" reloads with ?qr=hidden; "Show the QR" opens it again. */
.pay-pop {
    position: fixed; inset: 0; z-index: 100; overflow-y: auto;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
    padding: 24px 16px; background: rgba(15, 23, 42, .78);
}
.khqr-card { width: min(100%, 300px); background: #fff; color: #0f172a; border-radius: 18px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.khqr-head { position: relative; display: flex; align-items: center; justify-content: center; height: 54px; background: #E1232E; }
.khqr-head::after { content: ''; position: absolute; right: 0; bottom: -14px; border-top: 14px solid #E1232E; border-left: 22px solid transparent; }
.khqr-logo { color: #fff; font-weight: 800; font-size: 1.25rem; letter-spacing: .08em; }
.khqr-merchant { padding: 22px 22px 0; font-size: .85rem; font-weight: 600; color: #475569; overflow-wrap: anywhere; }
.khqr-amount { padding: 2px 22px 14px; font-size: 1.7rem; font-weight: 800; font-variant-numeric: tabular-nums; border-bottom: 1.5px dashed #e2e8f0; }
.khqr-code { padding: 12px 28px 20px; }
.khqr-code svg { display: block; width: 100%; height: auto; }
.pay-pop[hidden] { display: none; }
.pay-frame { width: min(100%, 440px); background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.pay-frame iframe { display: block; width: 100%; height: min(640px, 72vh); border: 0; }
.pay-pop-app { width: min(100%, 300px); text-align: center; }
.pay-pop-note { margin: 0; max-width: 300px; text-align: center; color: #e2e8f0; font-size: .9rem; }
.pay-pop-close { color: #fff; font-weight: 600; padding: .5rem 1rem; }

/* ── Style options. Each is a class from design.OPTIONS on <body>. ── */
.opt-corners-square { --radius: 0; }
.opt-corners-soft { --radius: 10px; }
.opt-corners-round { --radius: 22px; }

.opt-buttons-outline .button { background: transparent; color: var(--button-text, var(--accent)); box-shadow: inset 0 0 0 2px var(--button-bg, var(--accent)); }
.opt-buttons-pill .button { border-radius: 999px; }

.opt-card-border .product-card, .opt-card-shadow .product-card { border-radius: var(--radius); padding: .6rem; background: var(--bg); }
.opt-card-border .product-card { border: 1px solid var(--line); }
.opt-card-shadow .product-card { box-shadow: 0 2px 14px rgb(0 0 0 / .12); }

.opt-image_shape-portrait .product-grid .product-image { aspect-ratio: 3 / 4; }
.opt-image_shape-landscape .product-grid .product-image { aspect-ratio: 4 / 3; }

@media (min-width: 700px) {
    .opt-columns-two .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .opt-columns-three .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .opt-columns-four .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.opt-width-narrow .wrap { max-width: 920px; }
.opt-width-wide .wrap { max-width: 1440px; }

.opt-spacing-compact .section { padding-block: clamp(1.25rem, 3vw, 2rem); }
.opt-spacing-airy .section { padding-block: clamp(2.5rem, 7vw, 5rem); }

.opt-heading_size-small h1 { font-size: clamp(1.5rem, 4vw, 2.25rem); }
.opt-heading_size-small h2 { font-size: clamp(1.2rem, 3vw, 1.6rem); }
.opt-heading_size-large h1 { font-size: clamp(2.2rem, 7vw, 4.25rem); }
.opt-heading_size-large h2 { font-size: clamp(1.7rem, 5vw, 2.75rem); }

.opt-header-center .shop-header-row { flex-direction: column; justify-content: center; }
.opt-sticky_header .shop-header { position: sticky; top: 0; z-index: 10; background: var(--bg); }

.shop-announcement { background: var(--accent); color: var(--on-accent); text-align: center; padding: .4rem 16px; font-size: .9rem; overflow-wrap: anywhere; }
.footer-text { margin: 0 0 .5rem; overflow-wrap: anywhere; }

/* Long text keeps a readable line length without leaving the page's left edge */
.readable > * { max-width: 760px; }

/* ── One section's own look ── */
.shell-background-tinted { background: var(--surface); }
.shell-background-accent {
    background: var(--accent); color: var(--on-accent);
    --text: var(--on-accent); --muted: var(--on-accent); --line: color-mix(in srgb, var(--on-accent) 35%, transparent); --surface: color-mix(in srgb, var(--on-accent) 12%, transparent);
}
.shell-background-accent .button { background: var(--button-bg, var(--on-accent)); color: var(--button-text, var(--accent)); box-shadow: none; }
.shell-background-accent .product-card { background: transparent; }
.shell-spacing-tight .section { padding-block: clamp(1rem, 2.5vw, 1.5rem); }
.shell-spacing-roomy .section { padding-block: clamp(3.5rem, 10vw, 7.5rem); }
.shell-align-center { text-align: center; }
.shell-align-center .category-filter { justify-content: center; }
.shell-align-center .readable > * { margin-inline: auto; }
.shell-align-center .hero-text { margin-inline: auto; }
.shell-align-center .contact-list { justify-content: center; text-align: left; }
.shell-align-center .faq-item { text-align: left; }

/* ── More styles ── */
.opt-buttons-gradient .button { background: linear-gradient(120deg, var(--button-bg, var(--accent)), color-mix(in srgb, var(--button-bg, var(--accent)) 55%, #ff4fa3)); color: var(--button-text, #fff); }
.opt-buttons-soft .button { background: color-mix(in srgb, var(--button-bg, var(--accent)) 16%, transparent); color: var(--button-text, var(--text)); }
.opt-buttons-raised .button { box-shadow: 0 4px 0 color-mix(in srgb, var(--button-bg, var(--accent)) 65%, #000); }
.opt-buttons-raised .button:active { transform: translateY(3px); box-shadow: 0 1px 0 color-mix(in srgb, var(--button-bg, var(--accent)) 65%, #000); }

.opt-card-glass .product-card { padding: .6rem; border-radius: var(--radius); border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 55%, transparent); backdrop-filter: blur(10px); }
.opt-card-center .product-card { text-align: center; }
.opt-card-overlay .product-card { position: relative; overflow: hidden; border-radius: var(--radius); color: #fff; }
.opt-card-overlay .product-image { margin: 0; border-radius: 0; }
.opt-card-overlay .product-name, .opt-card-overlay .product-price, .opt-card-overlay .product-stock { position: relative; z-index: 1; padding-inline: .75rem; }
.opt-card-overlay .product-card::after { content: ''; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgb(0 0 0 / .8)); }
.opt-card-overlay .product-name { position: absolute; bottom: 1.9rem; left: 0; right: 0; }
.opt-card-overlay .product-price { position: absolute; bottom: .5rem; left: 0; }
.opt-card-overlay .product-stock { position: absolute; top: .5rem; left: 0; color: #fff; }

.opt-heading_style-underline .section h2::after { content: ''; display: block; width: 56px; height: 4px; margin-top: .5rem; border-radius: 4px; background: var(--accent); }
.shell-align-center .section h2::after { margin-inline: auto; }
.opt-heading_style-caps h1, .opt-heading_style-caps h2 { text-transform: uppercase; letter-spacing: .06em; }
.opt-heading_style-gradient .section h2 { background: linear-gradient(100deg, var(--accent), color-mix(in srgb, var(--accent) 45%, #ff4fa3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.shell-background-accent.section-shell h2 { background: none; color: inherit; }

.opt-header_style-accent .shop-header { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.opt-header_style-accent .shop-nav a { color: inherit; }
.opt-header_style-glass .shop-header { background: color-mix(in srgb, var(--bg) 70%, transparent); backdrop-filter: blur(12px); }

.opt-pattern-dots { background-image: radial-gradient(color-mix(in srgb, var(--text) 16%, transparent) 1px, transparent 1px); background-size: 22px 22px; }
.opt-pattern-grid { background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 44px 44px; }
.opt-pattern-glow { background-image: radial-gradient(60rem 30rem at 85% -5%, color-mix(in srgb, var(--accent) 28%, transparent), transparent), radial-gradient(50rem 28rem at 0% 45%, color-mix(in srgb, var(--accent) 16%, transparent), transparent); background-repeat: no-repeat; }

/* Banner layouts */
.hero-shade-none.has-image::after { content: none; }
.hero-shade-light.has-image::after { background: rgb(0 0 0 / .25); }
.hero-shade-fade.has-image::after { background: linear-gradient(90deg, rgb(0 0 0 / .78), transparent 75%); }
.hero-layout-tall .hero-content { min-height: 88vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.shell-align-center .hero-layout-tall .hero-content { align-items: center; }
.hero-layout-gradient { background: linear-gradient(120deg, var(--accent), color-mix(in srgb, var(--accent) 50%, #ff4fa3)); color: #fff; }
.hero-layout-gradient .button { background: var(--button-bg, #fff); color: var(--button-text, #111); box-shadow: none; }
@media (min-width: 700px) {
    .hero-layout-split.has-image { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
    .hero-layout-split .hero-image { position: relative; order: 2; height: clamp(320px, 36vw, 520px); }
    .hero-layout-split .hero-content { width: 100%; padding-inline: clamp(1.5rem, 5vw, 5rem); }
}
.hero-layout-split.has-image::after { content: none; }
.hero-layout-split.has-image .hero-content { color: inherit; }
@media (max-width: 699px) { .hero-layout-split .hero-image { position: relative; height: 260px; } }

/* A banner still waiting for its picture still looks like something */
.hero:not(.has-image):not(.hero-layout-gradient) { background: linear-gradient(120deg, color-mix(in srgb, var(--accent) 18%, var(--surface)), var(--surface)); }
@media (min-width: 700px) {
    .hero-layout-split:not(.has-image) { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
    .hero-layout-split:not(.has-image)::after { content: ''; min-height: 340px; background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 45%, #ff4fa3)); }
    .hero-layout-split:not(.has-image) .hero-content { width: 100%; padding-inline: clamp(1.5rem, 5vw, 5rem); align-self: center; }
}

/* Slideshow. Without animation it's a row to swipe, so every slide can always be reached. */
.slideshow { position: relative; overflow: hidden; }
.slides-viewport { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-marker-group: after; anchor-name: --slides; }
.slides-viewport::-webkit-scrollbar { display: none; }
.slides-track { display: flex; }
.slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; display: flex; align-items: center; }
.slide .hero-content { width: 100%; }
.slide-heading { font-size: clamp(1.8rem, 5vw, 3rem); }
.slides-height-short .slide { min-height: 280px; }
.slides-height-normal .slide { min-height: 460px; }
.slides-height-tall .slide { min-height: 88vh; }
.slides-viewport::scroll-button(left), .slides-viewport::scroll-button(right), .product-slider::scroll-button(left), .product-slider::scroll-button(right) {
    position: absolute; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgb(0 0 0 / .55); color: #fff; font-size: 1.4rem; cursor: pointer; z-index: 3; top: calc(50% - 22px);
}
.slides-viewport::scroll-button(left), .product-slider::scroll-button(left) { content: '‹' / 'Previous'; left: 12px; }
.slides-viewport::scroll-button(right), .product-slider::scroll-button(right) { content: '›' / 'Next'; right: 12px; }
.slides-viewport::scroll-button(*):disabled, .product-slider::scroll-button(*):disabled { opacity: .3; cursor: default; }
.slides-viewport::scroll-marker-group { position: absolute; bottom: 14px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; z-index: 3; }
.slide::scroll-marker { content: ''; width: 10px; height: 10px; border-radius: 50%; background: rgb(255 255 255 / .55); }
.slide::scroll-marker:target-current { background: #fff; }

/* A row of products to swipe */
.product-slider { position: relative; display: flex; gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .5rem; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.product-slider > .product-card { flex: 0 0 clamp(150px, 42%, 240px); scroll-snap-align: start; }
.section:has(> .product-slider) { position: relative; }

/* Moving text band */
.marquee { display: flex; overflow: hidden; padding-block: .9rem; }
.marquee-look-accent { background: var(--accent); color: var(--on-accent); }
.marquee-look-plain { border-block: 1px solid var(--line); }
.marquee-look-big { font-size: clamp(2.5rem, 8vw, 6rem); font-weight: 700; line-height: 1.15; color: transparent; -webkit-text-stroke: 1.5px var(--text); }
.marquee-track { display: flex; flex-wrap: wrap; flex: none; gap: 1rem 3rem; padding-inline: 1.5rem; max-width: 100%; }
.marquee-track span { white-space: nowrap; }
.marquee-track span::after { content: '✦'; margin-left: 3rem; opacity: .6; -webkit-text-stroke: 0; }
.marquee-copy { display: none; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 1.25rem; }
.feature { padding: 1.25rem; background: var(--surface); border-radius: var(--radius); overflow-wrap: anywhere; }
.shell-background-tinted .feature { background: var(--bg); }
.feature h3 { margin: 0 0 .35rem; font-size: 1.05rem; }
.feature p { margin: 0; color: var(--muted); }

.promo { padding: clamp(2rem, 7vw, 4.5rem); border-radius: var(--radius); text-align: center; overflow-wrap: anywhere; }
.promo-eyebrow { font-size: .85rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .5rem; }
.promo-text { max-width: 620px; margin: 0 auto 1.25rem; }
.promo-text p { margin: 0 0 .5rem; }
.promo-look-gradient { background: linear-gradient(120deg, var(--accent), color-mix(in srgb, var(--accent) 45%, #ff4fa3)); color: #fff; }
.promo-look-solid { background: var(--accent); color: var(--on-accent); }
.promo-look-outline { border: 2px solid var(--accent); }
.promo-look-gradient .button, .promo-look-solid .button { background: var(--button-bg, #fff); color: var(--button-text, #111); box-shadow: none; }
.promo .section h2, .opt-heading_style-gradient .promo h2 { background: none; color: inherit; }
.opt-heading_style-underline .promo h2::after { margin-inline: auto; background: currentColor; }

/* ── Motion. All CSS, as shop pages run no scripts. Nothing starts hidden, so a browser that can't animate still shows everything.
   Scrolling drives the sections, finishing no later than when a section's end reaches the bottom of the screen, so the last one on a page always completes. ── */
main { overflow-x: clip; }       /* things sliding in from the side mustn't make the page scroll sideways */
body { --reveal-end: 80%; --hover-speed: .25s; --intro-time: .9s; }
.opt-speed-fast { --reveal-end: 50%; --hover-speed: .14s; --intro-time: .55s; }
.opt-speed-slow { --reveal-end: 100%; --hover-speed: .45s; --intro-time: 1.5s; }

@media (prefers-reduced-motion: no-preference) {
    @supports (animation-timeline: view()) {
        /* Longhands only: the `animation` shorthand would reset the timeline, and sections would snap in rather than move.
           Filling backwards only, so a finished animation can't override what happens when pointing at a product. */
        .opt-reveal-fade .shell-motion-inherit, .section-shell.shell-motion-fade { animation-name: shop-fade; }
        .opt-reveal-slide .shell-motion-inherit, .section-shell.shell-motion-slide { animation-name: shop-slide; }
        .opt-reveal-left .shell-motion-inherit, .section-shell.shell-motion-left { animation-name: shop-left; }
        .opt-reveal-right .shell-motion-inherit, .section-shell.shell-motion-right { animation-name: shop-right; }
        .opt-reveal-zoom .shell-motion-inherit, .section-shell.shell-motion-zoom { animation-name: shop-zoom; }
        .opt-reveal-flip .shell-motion-inherit, .section-shell.shell-motion-flip { animation-name: shop-flip; }
        .opt-reveal-blur .shell-motion-inherit, .section-shell.shell-motion-blur { animation-name: shop-blur; }
        .section-shell { animation-timing-function: ease-out; animation-fill-mode: backwards; animation-timeline: view(); animation-range: entry 0% entry var(--reveal-end); }
        .section-shell.shell-motion-none { animation-name: none; }

        .opt-item_reveal-rise .product-grid .product-card, .opt-item_reveal-rise .review, .opt-item_reveal-rise .feature { animation-name: shop-slide; }
        .opt-item_reveal-pop .product-grid .product-card, .opt-item_reveal-pop .review, .opt-item_reveal-pop .feature { animation-name: shop-pop; }
        .opt-item_reveal-tilt .product-grid .product-card, .opt-item_reveal-tilt .review, .opt-item_reveal-tilt .feature { animation-name: shop-tilt; }
        .product-grid .product-card, .review, .feature { animation-timing-function: ease-out; animation-fill-mode: backwards; animation-timeline: view(); animation-range: entry 0% entry 100%; }
        /* Each starts a little later than the one before it, so a row doesn't arrive as a block */
        .product-grid .product-card:nth-child(4n+2), .review:nth-child(4n+2), .feature:nth-child(4n+2) { animation-range: entry 15% entry 100%; }
        .product-grid .product-card:nth-child(4n+3), .review:nth-child(4n+3), .feature:nth-child(4n+3) { animation-range: entry 30% entry 100%; }
        .product-grid .product-card:nth-child(4n+4), .review:nth-child(4n+4), .feature:nth-child(4n+4) { animation-range: entry 45% entry 100%; }
    }

    .product-card, .product-image img, .button { transition: transform var(--hover-speed) ease, box-shadow var(--hover-speed) ease, filter var(--hover-speed) ease; }
    .opt-card_hover-lift .product-card:hover, .opt-card_hover-both .product-card:hover { transform: translateY(-10px); box-shadow: 0 16px 34px rgb(0 0 0 / .28); }
    .opt-card_hover-zoom .product-card:hover .product-image img, .opt-card_hover-both .product-card:hover .product-image img { transform: scale(1.14); }
    .opt-card_hover-tilt .product-card:hover { transform: perspective(700px) rotateX(5deg) rotateY(-7deg) scale(1.03); }
    .opt-card_hover-glow .product-card:hover { box-shadow: 0 0 0 2px var(--accent), 0 0 30px color-mix(in srgb, var(--accent) 60%, transparent); border-radius: var(--radius); }
    .opt-button_hover-grow .button:hover { transform: scale(1.1); }
    .opt-button_hover-shine .button { position: relative; overflow: hidden; }
    .opt-button_hover-shine .button::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgb(255 255 255 / .55), transparent 70%); transform: translateX(-110%); transition: transform .6s ease; }
    .opt-button_hover-shine .button:hover::after { transform: translateX(110%); }
    .opt-button_hover-pulse .button:hover { animation: shop-pulse 1s ease-in-out infinite; }

    .opt-hero_motion-slow_zoom .hero-image { animation: shop-slow-zoom 12s ease-in-out infinite alternate; }
    .opt-hero_motion-pan .hero-image { animation: shop-pan 16s ease-in-out infinite alternate; }
    .opt-hero_motion-drift .hero-image { animation: shop-drift 14s ease-in-out infinite alternate; }

    /* Plays once when the page opens, so it shows without any scrolling, and in browsers without scroll animations too */
    .opt-hero_intro-fade .section-shell:first-child .hero-content > * { animation: shop-fade var(--intro-time) ease-out backwards; }
    .opt-hero_intro-rise .section-shell:first-child .hero-content > * { animation: shop-slide var(--intro-time) ease-out backwards; }
    .opt-hero_intro-zoom .section-shell:first-child .hero-content > * { animation: shop-zoom var(--intro-time) ease-out backwards; }
    .section-shell:first-child .hero-content > :nth-child(2) { animation-delay: .18s; }
    .section-shell:first-child .hero-content > :nth-child(3) { animation-delay: .36s; }

    .opt-announcement_motion-scroll .shop-announcement { overflow: hidden; white-space: nowrap; }
    .opt-announcement_motion-scroll .shop-announcement span { display: inline-block; padding-left: 100%; animation: shop-ticker 16s linear infinite; }

    .marquee-track { flex-wrap: nowrap; max-width: none; animation: shop-marquee 28s linear infinite; }
    .marquee-copy { display: flex; }
    .marquee-pace-slow .marquee-track { animation-duration: 48s; }
    .marquee-pace-fast .marquee-track { animation-duration: 14s; }
    .marquee:hover .marquee-track { animation-play-state: paused; }

    /* Slides change by themselves; pointing at them holds the current one */
    .slides-play-auto .slides-viewport { overflow: hidden; scroll-snap-type: none; scroll-marker-group: none; }
    .slides-play-auto .slides-viewport::scroll-button(*) { content: none; }
    .slides-play-auto.slides-effect-slide .slides-track { animation: 15s ease-in-out infinite; }
    .slides-play-auto.slides-effect-slide.slides-2 .slides-track { animation-name: shop-slides-2; animation-duration: 10s; }
    .slides-play-auto.slides-effect-slide.slides-3 .slides-track { animation-name: shop-slides-3; animation-duration: 15s; }
    .slides-play-auto.slides-effect-slide.slides-4 .slides-track { animation-name: shop-slides-4; animation-duration: 20s; }
    .slides-play-auto.slides-effect-fade:not(.slides-1) .slides-track { display: grid; }
    .slides-play-auto.slides-effect-fade:not(.slides-1) .slide { grid-area: 1 / 1; animation: 15s linear infinite both; }
    .slides-play-auto.slides-effect-fade.slides-2 .slide { animation-name: shop-crossfade-2; animation-duration: 10s; }
    .slides-play-auto.slides-effect-fade.slides-3 .slide { animation-name: shop-crossfade-3; animation-duration: 15s; }
    .slides-play-auto.slides-effect-fade.slides-4 .slide { animation-name: shop-crossfade-4; animation-duration: 20s; }
    .slides-play-auto.slides-effect-fade .slide:nth-child(2) { animation-delay: 5s; }
    .slides-play-auto.slides-effect-fade .slide:nth-child(3) { animation-delay: 10s; }
    .slides-play-auto.slides-effect-fade .slide:nth-child(4) { animation-delay: 15s; }
    .slideshow:hover .slides-track, .slideshow:hover .slide, .slideshow:focus-within .slides-track, .slideshow:focus-within .slide { animation-play-state: paused; }
}
.opt-button_hover-none .button:hover, .opt-button_hover-grow .button:hover, .opt-button_hover-shine .button:hover, .opt-button_hover-pulse .button:hover { filter: none; }

@keyframes shop-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes shop-slide { from { opacity: 0; transform: translateY(90px); } to { opacity: 1; transform: none; } }
@keyframes shop-left { from { opacity: 0; transform: translateX(-140px); } to { opacity: 1; transform: none; } }
@keyframes shop-right { from { opacity: 0; transform: translateX(140px); } to { opacity: 1; transform: none; } }
@keyframes shop-zoom { from { opacity: 0; transform: scale(.82); } to { opacity: 1; transform: none; } }
@keyframes shop-flip { from { opacity: 0; transform: perspective(1000px) rotateX(28deg) translateY(50px); transform-origin: top; } to { opacity: 1; transform: none; } }
@keyframes shop-blur { from { opacity: 0; filter: blur(18px); } to { opacity: 1; filter: none; } }
@keyframes shop-pop { from { opacity: 0; transform: scale(.7); } 70% { opacity: 1; transform: scale(1.05); } to { opacity: 1; transform: none; } }
@keyframes shop-tilt { from { opacity: 0; transform: perspective(700px) rotateY(-32deg) translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes shop-pulse { 50% { transform: scale(1.09); } }
@keyframes shop-slow-zoom { from { transform: scale(1); } to { transform: scale(1.22); } }
@keyframes shop-pan { from { transform: scale(1.22) translateX(-7%); } to { transform: scale(1.22) translateX(7%); } }
@keyframes shop-drift { from { transform: scale(1.2) translate(-5%, -4%); } to { transform: scale(1.3) translate(5%, 4%); } }
@keyframes shop-ticker { to { transform: translateX(-100%); } }
@keyframes shop-marquee { to { transform: translateX(-100%); } }
@keyframes shop-slides-2 { 0%, 42% { transform: none; } 50%, 92% { transform: translateX(-100%); } 100% { transform: none; } }
@keyframes shop-slides-3 { 0%, 28% { transform: none; } 33%, 61% { transform: translateX(-100%); } 66%, 94% { transform: translateX(-200%); } 100% { transform: none; } }
@keyframes shop-slides-4 { 0%, 21% { transform: none; } 25%, 46% { transform: translateX(-100%); } 50%, 71% { transform: translateX(-200%); } 75%, 96% { transform: translateX(-300%); } 100% { transform: none; } }
@keyframes shop-crossfade-2 { 0% { opacity: 0; } 8%, 50% { opacity: 1; } 58%, 100% { opacity: 0; } }
@keyframes shop-crossfade-3 { 0% { opacity: 0; } 5%, 33% { opacity: 1; } 38%, 100% { opacity: 0; } }
@keyframes shop-crossfade-4 { 0% { opacity: 0; } 4%, 25% { opacity: 1; } 29%, 100% { opacity: 0; } }

/* An owner's heading colour is for the page itself. Over a picture or a coloured block, the block decides, so it stays readable. */
.hero.has-image, .hero-layout-gradient, .shell-background-accent, .opt-header_style-accent .shop-header, .promo { --heading-color: initial; }

/* The cart link in the header: a word, an icon, or both */
.shop-cart-link { display: inline-flex; align-items: center; gap: .35rem; }
.cart-count { min-width: 1.25rem; padding: 0 .3rem; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: .72rem; line-height: 1.25rem; text-align: center; }
.opt-cart_style-text .cart-icon { display: none; }
.opt-cart_style-icon .cart-word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.cart-preview-controls { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }

/* ── Columns: rows split into columns, holding pieces. See layout.py. ── */
.free { display: grid; gap: clamp(1.5rem, 4vw, 2.5rem); }
.free-row { --free-gap: clamp(1.25rem, 3vw, 2.25rem); display: grid; gap: var(--free-gap); grid-template-columns: var(--free-cols, 1fr); align-items: start; }
.free-layout-1-1 { --free-cols: repeat(2, minmax(0, 1fr)); }
.free-layout-1-1-1 { --free-cols: repeat(3, minmax(0, 1fr)); }
.free-layout-1-1-1-1 { --free-cols: repeat(4, minmax(0, 1fr)); }
.free-layout-2-1 { --free-cols: minmax(0, 2fr) minmax(0, 1fr); }
.free-layout-1-2 { --free-cols: minmax(0, 1fr) minmax(0, 2fr); }
.free-layout-1-2-1 { --free-cols: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr); }
@media (max-width: 900px) { .free-layout-1-1-1-1 { --free-cols: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .free-row { --free-cols: minmax(0, 1fr) !important; } }
.free-valign-middle { align-items: center; }
.free-valign-bottom { align-items: end; }
.free-gap-tight { --free-gap: .75rem; }
.free-gap-wide { --free-gap: clamp(2rem, 5vw, 4rem); }
.free-col { min-width: 0; display: flex; flex-direction: column; gap: 1rem; }
.free-look-card .free-col { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: 0 6px 24px rgb(0 0 0 / .08); }
.free-look-tinted .free-col { background: var(--surface); border-radius: var(--radius); padding: 1.5rem; }
.free-look-outline .free-col { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.shell-background-accent .free-look-card .free-col, .shell-background-accent .free-look-tinted .free-col { color: var(--text); }

.piece { min-width: 0; }
.piece-align-left { text-align: left; }
.piece-align-center { text-align: center; }
.piece-align-right { text-align: right; }
.piece h2, .piece h3, .piece p { margin: 0; }
.heading-small { font-size: 1.2rem; }
.heading-medium { font-size: clamp(1.35rem, 3vw, 1.8rem); }
.heading-large { font-size: clamp(1.7rem, 4.5vw, 2.6rem); }
.heading-huge { font-size: clamp(2.2rem, 7vw, 4rem); }
.heading-color-accent { color: var(--accent); }
.heading-color-muted { color: var(--muted); }
.shell-background-accent .heading-color-accent, .shell-background-accent .heading-color-muted { color: inherit; }

.rich > * { margin: 0 0 .75em; }
.rich > :last-child { margin-bottom: 0; }
.rich a { color: var(--accent); }
.rich ul, .rich ol { padding-left: 1.4em; }
.text-size-small { font-size: .9rem; }
.text-size-large { font-size: 1.15rem; }
.tc-accent { color: var(--accent); }
.tc-muted { color: var(--muted); }
.shell-background-accent .tc-accent, .shell-background-accent .rich a { color: inherit; }

.piece-image img, .piece-image .picture-placeholder { width: 100%; border-radius: var(--radius); }
.piece-image .picture-placeholder { min-height: 160px; }
.shape-square, .shape-wide, .shape-tall, .shape-circle { object-fit: cover; }
.shape-square { aspect-ratio: 1; }
.shape-wide { aspect-ratio: 16 / 9; }
.shape-tall { aspect-ratio: 3 / 4; }
.piece-image .shape-circle { aspect-ratio: 1; border-radius: 50%; max-width: 220px; margin-inline: auto; }
.piece-image .picture-placeholder.shape-square, .piece-image .picture-placeholder.shape-wide, .piece-image .picture-placeholder.shape-tall,
.piece-image .picture-placeholder.shape-circle { min-height: 0; }

.button-look-outline { background: transparent; color: var(--button-bg, var(--accent)); box-shadow: inset 0 0 0 2px var(--button-bg, var(--accent)); }
.button-look-text { background: transparent; color: var(--accent); padding-inline: 0; text-decoration: underline; box-shadow: none; }
.shell-background-accent .button-look-outline, .shell-background-accent .button-look-text { color: inherit; box-shadow: inset 0 0 0 2px currentColor; background: transparent; }
.shell-background-accent .button-look-text { box-shadow: none; }
.button-size-small { padding: .45rem .9rem; font-size: .9rem; }
.button-size-large { padding: .85rem 1.75rem; font-size: 1.1rem; }

.icon-mark { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; color: var(--accent); }
.icon-look-plain { width: auto; height: auto; }
.icon-look-circle { background: color-mix(in srgb, var(--accent) 14%, transparent); border-radius: 50%; }
.icon-look-square { background: color-mix(in srgb, var(--accent) 14%, transparent); border-radius: calc(var(--radius) * .8); }
.shell-background-accent .icon-mark { color: inherit; background: rgb(255 255 255 / .18); }
.piece-icon h3 { font-size: 1.1rem; margin: .75rem 0 .3rem; }

.tick-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.tick-list li { position: relative; padding-left: 1.7em; text-align: left; }
.piece-align-center .tick-list { justify-content: center; }
.tick-list li::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 700; }
.shell-background-accent .tick-list li::before { color: inherit; }

.big-number { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; line-height: 1.1; color: var(--accent); font-variant-numeric: tabular-nums; }
.shell-background-accent .big-number { color: inherit; }

.quote { margin: 0; font-size: 1.08rem; }
.quote p { font-style: italic; }
.quote::before { content: '“'; display: block; font-size: 3rem; line-height: .8; color: var(--accent); font-style: normal; }
.quote-name { margin-top: .75rem; font-weight: 700; font-size: .95rem; }

.spacer-small { height: .5rem; }
.spacer-medium { height: 2rem; }
.spacer-large { height: 4rem; }
.spacer-huge { height: 7rem; }

.divider { border: 0; border-top: 1px solid var(--line); margin: .25rem 0; width: 100%; }
.divider-dashed { border-top-style: dashed; }
.divider-dotted { border-top: 2px dotted var(--line); }
.divider-accent { border-top: 3px solid var(--accent); }
.divider-short { width: 80px; }
.piece-align-center .divider-short, .shell-align-center .piece-align-inherit .divider-short { margin-inline: auto; }

.video-frame { aspect-ratio: 16 / 9; width: 100%; border-radius: var(--radius); overflow: hidden; background: #000; }
.video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-placeholder { display: flex; align-items: center; justify-content: center; padding: 1rem; color: #fff; background: #1f2937; text-align: center; font: 600 14px/1.4 system-ui, sans-serif; }

/* ── Header & footer choices ── */
.shop-topbar { background: var(--accent); color: var(--on-accent); font-size: .85rem; }
.topbar-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .25rem 1rem; padding-block: .35rem; }
.topbar-text { overflow-wrap: anywhere; }
.topbar-links { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1rem; }
.topbar-links a { color: inherit; text-decoration: none; }
.social-link { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; color: inherit; text-decoration: none; }
.social-link:hover { background: color-mix(in srgb, currentColor 14%, transparent); }

.shop-header-row > .shop-nav { margin-left: auto; }
.shop-nav { align-items: center; }
.opt-header-center .shop-header-row > .shop-nav { margin-left: 0; }
.opt-header-split .shop-header-row { display: grid; grid-template-columns: 1fr auto 1fr; }
.opt-header-split .nav-left { justify-content: flex-start; }
.opt-header-split .nav-right { justify-content: flex-end; }
.opt-header-bar .shop-header-row { flex-direction: column; align-items: stretch; padding-bottom: 0; gap: .75rem; }
.opt-header-bar .shop-header-row > .shop-nav { margin: 0 calc(50% - 50vw); padding: .5rem max(16px, calc(50vw - 564px)); background: var(--accent); justify-content: center; }
.opt-header-bar .shop-header-row > .shop-nav a { color: var(--on-accent); }
.opt-header-bar .shop-brand { justify-content: center; }
.header-search { flex: 1 1 260px; display: flex; max-width: 520px; }
.header-search input { flex: 1; min-width: 0; padding: .55rem .9rem; border: 1px solid var(--line); border-right: 0; border-radius: var(--radius) 0 0 var(--radius); background: var(--bg); color: var(--text); font: inherit; }
.header-search .button { border-radius: 0 var(--radius) var(--radius) 0; padding: .55rem .9rem; display: inline-flex; align-items: center; }

/* Search dropdown while typing (search.js): each match with its picture and price */
.has-suggest { position: relative; }
.search-suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; min-width: min(360px, calc(100vw - 32px)); z-index: 40; max-height: min(480px, 70vh); overflow: auto; padding: .35rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); color: var(--text); box-shadow: 0 12px 32px rgb(0 0 0 / .14); text-align: left; }
.search-suggest[hidden] { display: none; }
.suggest-item { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: .75rem; padding: .4rem .5rem; border-radius: calc(var(--radius) * .6); color: var(--text); text-decoration: none; }
.suggest-item:hover, .suggest-item.is-active { background: var(--surface); }
.suggest-picture { width: 48px; height: 48px; border-radius: calc(var(--radius) * .6); overflow: hidden; background: var(--surface); }
.suggest-picture img { width: 100%; height: 100%; object-fit: cover; display: block; }
.suggest-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .95rem; }
.suggest-price { font-weight: 600; font-size: .92rem; white-space: nowrap; }
.suggest-all { display: block; width: 100%; margin-top: .25rem; padding: .55rem; border: 0; border-top: 1px solid var(--line); background: none; color: var(--accent); font: inherit; font-weight: 600; cursor: pointer; text-align: center; }
.product-search .search-suggest { right: auto; width: min(480px, 100%); }
.suggest-none { margin: 0; padding: .75rem; color: var(--muted); text-align: center; }
.opt-header_style-dark .shop-header { background: #111318; color: #f4f5f7; border-color: transparent; --muted: #aab0bb; --text: #f4f5f7; --line: #2c2f36; --bg: #1b1d22; }
.opt-header_style-dark .shop-nav a, .opt-header_style-accent .nav-drop a { color: inherit; }

/* Dropdowns and the big menu open on pointing or keyboard focus, with no script */
.nav-item { position: relative; }
.drop-caret { font-size: .7em; }
.nav-drop { position: absolute; top: 100%; left: -.75rem; z-index: 30; min-width: 200px; display: none; flex-direction: column; padding: .4rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); color: var(--text); box-shadow: 0 12px 32px rgb(0 0 0 / .14); }
.nav-drop a { padding: .45rem .6rem !important; border-radius: calc(var(--radius) * .6); color: var(--text) !important; }
.nav-drop a:hover { background: var(--surface); }
.nav-item:hover > .nav-drop, .nav-item:focus-within > .nav-drop { display: flex; }
.nav-drop.is-mega { display: none; width: min(720px, 92vw); grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .4rem; padding: .75rem; }
.nav-item:hover > .nav-drop.is-mega, .nav-item:focus-within > .nav-drop.is-mega { display: grid; }
.opt-header-center .nav-drop.is-mega, .opt-header-bar .nav-drop.is-mega { left: 50%; transform: translateX(-50%); }
/* Menus that sit on the right of the header open toward the left, so they never run off the screen */
.nav-right .nav-drop, .opt-header-left .shop-nav .nav-drop, .opt-header-search .shop-nav .nav-drop { left: auto; right: -.75rem; }
.mega-category { display: flex; flex-direction: column; gap: .35rem; text-align: center; font-size: .9rem; }
.mega-picture { display: block; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.mega-picture img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) {
    .nav-drop, .nav-drop.is-mega { position: fixed; left: 8px !important; right: 8px; top: auto; transform: none !important; width: auto; max-height: 70vh; overflow: auto; }
    .opt-header-split .shop-header-row { grid-template-columns: 1fr; justify-items: center; }
}

.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 1.5rem 2rem; padding-block: .5rem 1rem; }
.footer-name { display: block; font-size: 1.1rem; color: var(--text); margin-bottom: .4rem; }
.footer-links, .footer-contact { display: flex; flex-direction: column; gap: .4rem; }
.footer-links a, .footer-contact a { text-decoration: none; overflow-wrap: anywhere; }
.footer-links a:hover, .footer-contact a:hover { color: var(--text); }
.footer-social { display: flex; gap: .25rem; margin-top: .5rem; margin-left: -6px; }
.footer-copy { padding-top: 1rem; border-top: 1px solid var(--line); font-size: .85rem; }
.footer-centered .footer-grid { grid-template-columns: 1fr; text-align: center; justify-items: center; }
.footer-centered .footer-links, .footer-centered .footer-contact { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: .4rem 1.25rem; }
.footer-centered .footer-social { justify-content: center; margin-left: 0; }
.footer-centered .footer-copy { text-align: center; }
.footer-dark { background: #111318; color: #aab0bb; border-top: 0; --text: #f4f5f7; --line: #2c2f36; }

/* The cart at the side: opened by its link's #cart-drawer, closed by going back to # */
.cart-drawer { position: fixed; inset: 0; z-index: 60; display: none; }
.cart-drawer:target { display: block; }
.drawer-backdrop { position: absolute; inset: 0; background: rgb(0 0 0 / .45); }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(380px, 92vw); display: flex; flex-direction: column; background: var(--bg); color: var(--text); box-shadow: -12px 0 32px rgb(0 0 0 / .2); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); }
.drawer-close { text-decoration: none; font-size: 1.1rem; }
.drawer-lines { flex: 1; overflow: auto; padding: .5rem 1.25rem; }
.drawer-line { display: flex; gap: .75rem; align-items: center; padding-block: .6rem; border-bottom: 1px solid var(--line); }
.drawer-line .cart-image { flex: 0 0 56px; height: 56px; }
.drawer-info { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; font-size: .92rem; }
.drawer-foot { display: grid; gap: .5rem; padding: 1rem 1.25rem; border-top: 1px solid var(--line); }
.drawer-foot .button { text-align: center; }
.drawer-total { display: flex; justify-content: space-between; }

/* A row of buttons stuck to the bottom of phones */
.phone-bar { display: none; }
@media (max-width: 700px) {
    .opt-phone_bar { padding-bottom: 64px; }
    .phone-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border-top: 1px solid var(--line); background: var(--bg); }
    .phone-bar a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: .45rem .25rem; color: var(--muted); font-size: .72rem; text-decoration: none; }
    .phone-bar .cart-count { position: absolute; top: 2px; left: calc(50% + 6px); }
}
@media (min-width: 760px) { .opt-header-search .shop-header-row { flex-wrap: nowrap; } .opt-header-search .shop-header-row > .shop-nav { margin-left: 0; flex: none; } }
.footer-columns, .footer-centered, .footer-dark { padding-top: 2.25rem; }

/* ── Products in tabs: radio buttons and labels, so the tabs work with no script ── */
.tab-radio { position: absolute; opacity: 0; pointer-events: none; }
.tab-labels { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.25rem; }
.shell-align-center .tab-labels { justify-content: center; }
.tab-labels label { cursor: pointer; padding: .45rem 1rem; border-radius: 999px; background: var(--surface); color: var(--muted); font-weight: 600; font-size: .92rem; }
.tabs-underline .tab-labels label { border-radius: 0; background: none; border-bottom: 2px solid transparent; }
.tabs-boxes .tab-labels label { border-radius: calc(var(--radius) * .6); border: 1px solid var(--line); background: none; }
.tab-panel { display: none; }
.tab-radio:nth-of-type(1):checked ~ .tab-panel:nth-of-type(2) { display: block; }
.tab-radio:nth-of-type(1):checked ~ .tab-labels label:nth-of-type(1) { background: var(--accent); color: var(--on-accent); }
.tabs-underline .tab-radio:nth-of-type(1):checked ~ .tab-labels label:nth-of-type(1) { background: none; color: var(--accent); border-color: var(--accent); }
.tab-radio:nth-of-type(1):focus-visible ~ .tab-labels label:nth-of-type(1) { outline: 2px solid var(--accent); outline-offset: 2px; }
.tab-radio:nth-of-type(2):checked ~ .tab-panel:nth-of-type(3) { display: block; }
.tab-radio:nth-of-type(2):checked ~ .tab-labels label:nth-of-type(2) { background: var(--accent); color: var(--on-accent); }
.tabs-underline .tab-radio:nth-of-type(2):checked ~ .tab-labels label:nth-of-type(2) { background: none; color: var(--accent); border-color: var(--accent); }
.tab-radio:nth-of-type(2):focus-visible ~ .tab-labels label:nth-of-type(2) { outline: 2px solid var(--accent); outline-offset: 2px; }
.tab-radio:nth-of-type(3):checked ~ .tab-panel:nth-of-type(4) { display: block; }
.tab-radio:nth-of-type(3):checked ~ .tab-labels label:nth-of-type(3) { background: var(--accent); color: var(--on-accent); }
.tabs-underline .tab-radio:nth-of-type(3):checked ~ .tab-labels label:nth-of-type(3) { background: none; color: var(--accent); border-color: var(--accent); }
.tab-radio:nth-of-type(3):focus-visible ~ .tab-labels label:nth-of-type(3) { outline: 2px solid var(--accent); outline-offset: 2px; }
.tab-radio:nth-of-type(4):checked ~ .tab-panel:nth-of-type(5) { display: block; }
.tab-radio:nth-of-type(4):checked ~ .tab-labels label:nth-of-type(4) { background: var(--accent); color: var(--on-accent); }
.tabs-underline .tab-radio:nth-of-type(4):checked ~ .tab-labels label:nth-of-type(4) { background: none; color: var(--accent); border-color: var(--accent); }
.tab-radio:nth-of-type(4):focus-visible ~ .tab-labels label:nth-of-type(4) { outline: 2px solid var(--accent); outline-offset: 2px; }
.tab-radio:nth-of-type(5):checked ~ .tab-panel:nth-of-type(6) { display: block; }
.tab-radio:nth-of-type(5):checked ~ .tab-labels label:nth-of-type(5) { background: var(--accent); color: var(--on-accent); }
.tabs-underline .tab-radio:nth-of-type(5):checked ~ .tab-labels label:nth-of-type(5) { background: none; color: var(--accent); border-color: var(--accent); }
.tab-radio:nth-of-type(5):focus-visible ~ .tab-labels label:nth-of-type(5) { outline: 2px solid var(--accent); outline-offset: 2px; }
.tab-radio:nth-of-type(6):checked ~ .tab-panel:nth-of-type(7) { display: block; }
.tab-radio:nth-of-type(6):checked ~ .tab-labels label:nth-of-type(6) { background: var(--accent); color: var(--on-accent); }
.tabs-underline .tab-radio:nth-of-type(6):checked ~ .tab-labels label:nth-of-type(6) { background: none; color: var(--accent); border-color: var(--accent); }
.tab-radio:nth-of-type(6):focus-visible ~ .tab-labels label:nth-of-type(6) { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ── Deal of the day ── */
.deal { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 2rem; align-items: center; }
.deal-picture { display: block; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.deal-picture img { width: 100%; height: 100%; object-fit: cover; }
.deal-eyebrow { margin: 0 0 .4rem; color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .85rem; }
.deal-product { margin: 0 0 .75rem; font-size: 1.1rem; }
.deal-clock { display: inline-block; margin: .25rem 0 1rem; padding: .35rem .8rem; border-radius: 999px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); font-weight: 600; }
.deal-card { padding: clamp(1rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.deal-banner { padding: clamp(1rem, 3vw, 2rem); border-radius: var(--radius); background: var(--accent); color: var(--on-accent); }
.deal-banner .deal-eyebrow, .deal-banner .deal-clock { color: inherit; }
.deal-banner .deal-clock { background: rgb(255 255 255 / .2); }
.deal-banner .button { background: var(--on-accent); color: var(--accent); }

/* ── Category pictures and brands ── */
.category-tiles, .brand-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 120px), 1fr)); gap: 1rem; }
.category-tile, .brand-tile { display: flex; flex-direction: column; gap: .5rem; text-decoration: none; text-align: center; font-weight: 600; }
.tile-picture { display: block; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.tile-picture img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.category-tile:hover img, .brand-tile:hover img { transform: scale(1.05); }
.tiles-circles .tile-picture { border-radius: 50%; }
.tiles-wide { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.tiles-wide .category-tile { position: relative; }
.tiles-wide .tile-picture { aspect-ratio: 16 / 9; }
.tiles-wide .tile-name { position: absolute; left: .75rem; bottom: .75rem; padding: .3rem .8rem; border-radius: 999px; background: var(--bg); color: var(--text); }
.brands-names { display: flex; flex-wrap: wrap; gap: .6rem; }
.brands-names .brand-tile { padding: .6rem 1.1rem; border: 1px solid var(--line); border-radius: 999px; }
.shell-align-center .brands-names { justify-content: center; }

/* ── Each section's own look: backgrounds, edges and where it shows ── */
.section-shell { position: relative; }
.shell-background-dark { background: #111318; color: #f4f5f7; --text: #f4f5f7; --muted: #aab0bb; --line: #2c2f36; --surface: #1b1d22; --heading-color: initial; }
.shell-background-gradient { background: linear-gradient(120deg, var(--accent), color-mix(in srgb, var(--accent) 45%, #ff4fa3)); color: var(--on-accent); --heading-color: initial; --muted: color-mix(in srgb, var(--on-accent) 75%, transparent); }
.shell-background-gradient .button { background: var(--on-accent); color: var(--accent); }
.shell-background-picture { color: #fff; --text: #fff; --muted: rgb(255 255 255 / .8); --heading-color: initial; overflow: hidden; }
.shell-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.shell-shade { position: absolute; inset: 0; z-index: 0; background: rgb(0 0 0 / .5); }
.shell-shade-none .shell-shade { background: transparent; }
.shell-shade-light .shell-shade { background: rgb(0 0 0 / .25); }
.shell-shade-dark .shell-shade { background: rgb(0 0 0 / .55); }
.shell-background-picture > :not(.shell-bg):not(.shell-shade) { position: relative; z-index: 1; }
.shell-spacing-none .section { padding-block: 0; }
.shell-spacing-huge .section { padding-block: clamp(5rem, 14vw, 10rem); }
.shell-shape { position: absolute; left: 0; width: 100%; height: clamp(24px, 4vw, 60px); fill: var(--bg); z-index: 2; pointer-events: none; }
.shape-bottom { bottom: -1px; }
.shape-top { top: -1px; transform: rotate(180deg); }
.shell-shape_top-wave, .shell-shape_top-slant, .shell-shape_top-curve, .shell-shape_top-zigzag { padding-top: clamp(16px, 3vw, 40px); }
.shell-shape_bottom-wave, .shell-shape_bottom-slant, .shell-shape_bottom-curve, .shell-shape_bottom-zigzag { padding-bottom: clamp(16px, 3vw, 40px); }
@media (max-width: 700px) { .shell-show-computer { display: none; } }
@media (min-width: 701px) { .shell-show-phone { display: none; } }

/* ── The product list's filters, at the top or in a column ── */
.product-list .product-search { flex-wrap: wrap; align-items: end; max-width: none; }
.product-list .product-search input[type=search] { flex: 1 1 200px; }
.filter-field { display: flex; flex-direction: column; gap: .2rem; font-size: .85rem; color: var(--muted); border: 0; padding: 0; margin: 0; }
.filter-field legend { padding: 0; margin-bottom: .2rem; }
.filter-field select, .price-range input { padding: .5rem .6rem; border: 1px solid var(--line); border-radius: calc(var(--radius) * .6); background: var(--bg); color: var(--text); font: inherit; font-size: .95rem; }
.price-range { flex-direction: row; flex-wrap: wrap; }
.price-range legend { width: 100%; }
.price-range input { width: 6.5rem; }
.filter-check { display: inline-flex; align-items: center; gap: .4rem; padding-block: .5rem; }
.filter-clear { align-self: center; font-size: .9rem; }
.filter-note { margin: 0 0 1rem; }
@media (min-width: 860px) {
    .list-sidebar .list-body { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 2rem; align-items: start; }
    .list-sidebar .list-filters { position: sticky; top: 1rem; }
    .list-sidebar .category-filter { flex-direction: column; align-items: stretch; }
    .list-sidebar .product-search { flex-direction: column; align-items: stretch; }
    .list-sidebar .product-search input[type=search] { flex: none; }
}
.list-top .list-filters { margin-bottom: .5rem; }

/* Quick view: a product's main facts over the list, opened by its link's #quick-…, no script */
.quick-link { position: absolute; z-index: 4; top: .5rem; right: .5rem; padding: .3rem .7rem; border-radius: 999px; background: var(--bg); color: var(--text); font-size: .8rem; font-weight: 600; text-decoration: none; box-shadow: 0 2px 10px rgb(0 0 0 / .15); opacity: .92; }
@media (hover: hover) { .quick-link { opacity: 0; transition: opacity .15s; } .product-card:hover .quick-link, .quick-link:focus-visible { opacity: 1; } }
/* Add to cart on a card's picture appears on hover, like Quick view (always shown on touch screens, see .card-add above) */
@media (hover: hover) {
    .card-add { opacity: 0; transform: translateY(8px); transition: opacity .18s ease, transform .18s ease; }
    .product-card:hover .card-add, .card-add:focus-within { opacity: 1; transform: none; }
}
/* "Added to cart": a note in the corner that fades away by itself, since the shopper stays on the page */
.shop-toast { position: fixed; z-index: 70; right: 1rem; bottom: 1rem; max-width: calc(100vw - 2rem); display: flex; align-items: center; gap: .6rem; margin: 0; padding: .8rem 1rem; border-radius: var(--radius); background: var(--text); color: var(--bg); box-shadow: 0 10px 30px rgb(0 0 0 / .25); animation: shop-toast 6s ease forwards; }
.shop-toast svg { flex: none; color: color-mix(in srgb, var(--accent) 45%, #fff); }
.shop-toast a { margin-left: .4rem; font-weight: 700; color: inherit; white-space: nowrap; }
.shop-toast:hover, .shop-toast:focus-within { animation-play-state: paused; }
@keyframes shop-toast { 0% { opacity: 0; transform: translateY(12px); } 6%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(12px); visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .shop-toast { animation-name: shop-toast-still; } @keyframes shop-toast-still { 0%, 85% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } } }
@media (max-width: 700px) { .opt-phone_bar .shop-toast { bottom: 76px; } }
.quick-view { position: fixed; inset: 0; z-index: 60; display: none; align-items: center; justify-content: center; padding: 16px; }
.quick-view:target { display: flex; }
.quick-panel { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1.5rem; width: min(820px, 100%); max-height: 90vh; overflow: auto; padding: 1.5rem; border-radius: var(--radius); background: var(--bg); color: var(--text); box-shadow: 0 20px 60px rgb(0 0 0 / .35); }
.quick-panel .drawer-close { position: absolute; top: .6rem; right: .9rem; }
.quick-words h2 { margin-right: 1.5rem; }

/* The product page: where the picture goes, and a buy button that stays on phones */
@media (min-width: 700px) { .detail-right > .product-image { order: 2; } }
.detail-stacked { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
@media (max-width: 700px) {
    .has-sticky-buy .add-to-cart { position: sticky; bottom: 0; z-index: 5; margin-inline: -16px; padding: .75rem 16px; background: var(--bg); border-top: 1px solid var(--line); }
    .opt-phone_bar .has-sticky-buy .add-to-cart { bottom: 60px; }
}
.related h2 { margin-bottom: 1.25rem; }

/* ── Map piece and chat buttons ── */
.map-frame { width: 100%; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.map-small { height: 220px; } .map-medium { height: 340px; } .map-large { height: 480px; }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.chat-buttons { position: fixed; right: 16px; bottom: 16px; z-index: 55; display: flex; flex-direction: column; gap: .5rem; }
.chat-button { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; color: #fff; box-shadow: 0 6px 18px rgb(0 0 0 / .25); }
.chat-telegram { background: #229ed9; } .chat-whatsapp { background: #25d366; } .chat-messenger { background: #0866ff; }
@media (max-width: 700px) { .opt-phone_bar .chat-buttons { bottom: 76px; } }
.code-placeholder { display: flex; flex-direction: column; gap: .25rem; padding: 1rem; border: 2px dashed var(--line); border-radius: var(--radius); color: var(--muted); font: 600 .9rem/1.4 system-ui, sans-serif; }
.code-placeholder small { font-weight: 400; }
