/* Webmerx storefront (Task 5.1). Colours, fonts and corners come from the store's theme as CSS
   variables set in the page head. Mobile first. */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0; background: var(--bg); color: var(--text); font: 15px/1.55 var(--font-body);
    --muted: color-mix(in srgb, var(--text) 58%, var(--bg));
    --line: color-mix(in srgb, var(--text) 12%, var(--bg));
    --soft: color-mix(in srgb, var(--text) 4%, var(--bg));
    padding-bottom: env(safe-area-inset-bottom);
}
h1, h2, h3 { font-family: var(--font-heading); line-height: 1.2; margin: 0 0 .4em; letter-spacing: -.01em; }
h1 { font-size: clamp(24px, 4vw, 34px); }
h2 { font-size: clamp(20px, 3vw, 26px); }
h3 { font-size: 16px; }
p { margin: 0 0 .8em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 12px 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.visually-hidden, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 100; background: var(--bg); padding: 8px 12px; border-radius: var(--radius); }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.icon { flex: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Buttons: solid, outline or pill (theme). */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px;
    background: var(--accent); color: var(--on-accent); border: 1.5px solid var(--accent); border-radius: var(--radius);
    font-weight: 600; transition: transform .15s, opacity .15s;
}
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-outline, .btn-outline .btn-outline { background: transparent; color: var(--accent); }
.btn-block { width: 100%; }
.btn-pill .btn { border-radius: 999px; }
.btn-outline .btn:not(.btn-outline) { background: transparent; color: var(--accent); }
.grow { flex: 1; }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; position: relative; }
.icon-btn:hover { background: var(--soft); }
.badge {
    position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
    background: var(--accent); color: var(--on-accent); font-size: 11px; font-weight: 700; display: grid; place-items: center;
}
.only-desktop { display: none !important; }
@media (min-width: 900px) {
    .only-desktop { display: flex !important; }
    .only-mobile { display: none !important; }
}

/* Announcement bar and header. */
.announce { background: var(--accent); color: var(--on-accent); text-align: center; font-size: 13px; padding: 7px 16px; }
.announce p { margin: 0; }
.code { border: 1px dashed currentColor; border-radius: 4px; padding: 0 6px; font-weight: 700; letter-spacing: .04em; }
.header { position: sticky; top: 0; z-index: 30; background: var(--bg); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 8px; min-height: 60px; }
.brand { font: 700 20px/1 var(--font-heading); margin-right: auto; display: flex; align-items: center; min-width: 0; }
.brand img { height: 36px; width: auto; max-width: 160px; object-fit: contain; }
.brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav { gap: 2px; margin-right: auto; }
.nav-item { position: relative; }
.nav-item > a { display: block; padding: 18px 12px; font-weight: 500; }
.nav-item > a:hover { color: var(--accent); }
.nav-drop {
    display: none; position: absolute; top: 100%; left: 0; min-width: 220px; padding: 8px; background: var(--bg);
    border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 30px rgb(0 0 0 / .08);
}
.nav-drop a { display: block; padding: 8px 12px; border-radius: 6px; }
.nav-drop a:hover { background: var(--soft); }
.nav-item:hover .nav-drop, .nav-item:focus-within .nav-drop { display: block; }
.header-actions { display: flex; align-items: center; }
@media (min-width: 900px) { .brand { margin-right: 24px; } }

/* Drawers, search, toast. */
.scrim { position: fixed; inset: 0; background: rgb(0 0 0 / .45); z-index: 40; }
.drawer {
    position: fixed; top: 0; bottom: 0; width: min(400px, 90vw); background: var(--bg); z-index: 50;
    display: flex; flex-direction: column; box-shadow: 0 0 40px rgb(0 0 0 / .15);
}
.drawer-left { left: 0; } .drawer-right { right: 0; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px 16px; border-bottom: 1px solid var(--line); }
.drawer-head p { margin: 0; font-weight: 700; font-size: 17px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 12px 16px; }
.drawer-foot { border-top: 1px solid var(--line); padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); }
.drawer-foot p { margin: 4px 0; }
.menu-list a, .menu-list summary { display: block; padding: 12px 0; font-weight: 500; border-bottom: 1px solid var(--line); cursor: pointer; }
.menu-list details a { padding-left: 16px; font-weight: 400; }
.menu-list summary { list-style: none; display: flex; justify-content: space-between; }
.menu-list summary::after { content: '+'; color: var(--muted); }
.menu-list details[open] summary::after { content: '−'; }
.search-panel { position: fixed; inset: 0 0 auto; z-index: 50; background: var(--bg); box-shadow: 0 10px 30px rgb(0 0 0 / .12); padding: 10px 0 16px; max-height: 90vh; overflow-y: auto; }
.search-form { display: flex; align-items: center; gap: 8px; }
.search-form input { flex: 1; min-width: 0; border: 0; border-bottom: 2px solid var(--accent); padding: 12px 4px; font-size: 17px; background: transparent; outline: none; }
.suggest a { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.suggest img { width: 48px; height: 48px; object-fit: cover; border-radius: 6px; background: var(--soft); }
.suggest .all { justify-content: center; font-weight: 600; color: var(--accent); border: 0; }
.toast {
    position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); z-index: 60; background: var(--text); color: var(--bg);
    padding: 10px 18px; border-radius: 999px; font-size: 14px; box-shadow: 0 8px 20px rgb(0 0 0 / .2); max-width: calc(100vw - 32px);
}
body.locked { overflow: hidden; }

/* Cart drawer lines. */
.line { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.line img, .line .no-image { width: 72px; height: 88px; object-fit: cover; border-radius: calc(var(--radius) / 2); background: var(--soft); }
.line-name { font-weight: 600; display: block; line-height: 1.3; }
.line .qty { margin-top: 8px; }
.line-remove { color: var(--muted); font-size: 13px; text-decoration: underline; }
.line-warn { color: #b42318; font-size: 13px; margin: 4px 0 0; }

/* Sections. */
.sec { margin: 36px 0; }
.sec-head { margin-bottom: 16px; }
.sec-head h2 { margin: 0; }
.sec-head p { margin: 4px 0 0; }
.slider { 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; position: relative; min-height: 280px; display: grid; }
.slide > picture { grid-area: 1 / 1; display: block; min-height: 0; }
.slide img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 2 / 1; max-height: 640px; }
@media (max-width: 640px) { .slide img { aspect-ratio: 4 / 5; } }
.slide:not(.slide-plain) .slide-text { background: linear-gradient(transparent, rgb(0 0 0 / .5)); max-width: none; padding-inline: max(16px, calc((100% - 1208px) / 2)); }
.slide-text { grid-area: 1 / 1; align-self: end; z-index: 1; padding-top: 32px; padding-bottom: 40px; color: #fff; text-shadow: 0 1px 12px rgb(0 0 0 / .35); }
.slide-text p { font-size: 17px; max-width: 520px; }
.slide-plain { background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #000)); min-height: 320px; }
.slide-plain .slide-text { align-self: center; }
.sec-h1 { margin-top: 0; }
.dots { position: absolute; bottom: 14px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.dots button { width: 8px; height: 8px; border-radius: 4px; background: rgb(255 255 255 / .55); transition: width .2s; }
.dots button.on { width: 22px; background: #fff; }
.promo { display: grid; border-radius: var(--radius); overflow: hidden; }
.promo img { grid-area: 1 / 1; width: 100%; height: 100%; object-fit: cover; min-height: 200px; }
.promo-text { grid-area: 1 / 1; align-self: center; padding: 24px; color: #fff; text-shadow: 0 1px 10px rgb(0 0 0 / .35); }
.promo-plain { background: var(--soft); }
.promo-plain .promo-text { color: var(--text); text-shadow: none; }
.circles { display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.circle { flex: 0 0 auto; width: 84px; text-align: center; font-size: 13px; font-weight: 500; }
.circle-img {
    display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto 6px; border-radius: 50%; overflow: hidden;
    background: var(--soft); border: 2px solid var(--line); font: 700 24px var(--font-heading); color: var(--muted);
}
.circle-img img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) { .circles { justify-content: center; } .circle { width: 108px; } .circle-img { width: 96px; height: 96px; } }
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.tile { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--soft); display: grid; }
.tile img { grid-area: 1 / 1; width: 100%; height: 100%; object-fit: cover; }
.tile span { grid-area: 1 / 1; align-self: end; padding: 12px; font-weight: 700; color: #fff; background: linear-gradient(transparent, rgb(0 0 0 / .55)); }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 12px; }
@media (min-width: 768px) {
    .tiles.cols-3, .grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
    .tiles.cols-4, .grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
    .grid { gap: 28px 20px; }
}
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 46%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
@media (min-width: 768px) { .rail { grid-auto-columns: calc(25% - 15px); gap: 20px; } }
.rail-nav { gap: 4px; }
.trust { list-style: none; margin: 0; padding: 18px 12px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; background: var(--soft); border-radius: var(--radius); }
.trust li { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; }
.trust .icon { color: var(--accent); }
@media (min-width: 768px) { .trust { grid-template-columns: repeat(4, 1fr); justify-items: center; } }
.quotes { grid-auto-columns: 85%; }
@media (min-width: 768px) { .quotes { grid-auto-columns: calc(33.33% - 14px); } }
.quote { margin: 0; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); }
.quote blockquote { margin: 8px 0 12px; }
.quote figcaption { font-weight: 600; font-size: 14px; }
.stars span { color: var(--line); } .stars span.on { color: #f5a524; }
.lead { font-size: 17px; }
.split { display: grid; gap: 20px; align-items: center; }
.split-media img { border-radius: var(--radius); width: 100%; }
@media (min-width: 768px) { .split { grid-template-columns: 1fr 1fr; gap: 48px; } .split-right .split-media { order: 2; } }
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (min-width: 768px) { .features { grid-template-columns: repeat(4, 1fr); } }
.feature { text-align: center; }
.feature-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--soft); color: var(--accent); margin-bottom: 10px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { padding: 16px 0; font-weight: 600; cursor: pointer; }
.contact { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: center; margin: 12px 0; }
.contact a { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; }
.empty-state { text-align: center; padding: 64px 16px; }
.inline-search { display: flex; gap: 8px; max-width: 520px; margin: 0 auto 20px; }
.inline-search input { flex: 1; min-width: 0; padding: 0 14px; min-height: 46px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }

/* Product card. */
.card { min-width: 0; }
.card-media { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--soft); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: opacity .3s, transform .4s; }
.card-media .alt { position: absolute; inset: 0; opacity: 0; }
@media (hover: hover) { .card:hover .card-media .alt { opacity: 1; } .card:hover .card-media img:first-child { transform: scale(1.03); } }
.no-image { display: grid; place-items: center; width: 100%; height: 100%; font: 700 40px var(--font-heading); color: var(--muted); }
.no-image.big { aspect-ratio: 4 / 5; font-size: 80px; }
.tag { position: absolute; top: 8px; left: 8px; background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 4px; }
.tag-muted { left: auto; right: 8px; background: rgb(0 0 0 / .65); color: #fff; }
.card-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 10px; font-size: 14px; line-height: 1.35; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin: 4px 0 0; }
.price s { color: var(--muted); font-size: .9em; }
.price small { font-weight: 400; color: var(--muted); }
.price.big { font-size: 24px; margin-top: 8px; }
.price.big s { font-size: 17px; }
.off { color: #067647; font-weight: 700; font-size: 16px; }

/* Listing. */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted); padding: 14px 0; }
.crumbs a:hover { color: var(--text); }
.list-head { margin: 8px 0 16px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 10px 0; margin-bottom: 16px; border-block: 1px solid var(--line); }
.toolbar > p { margin: 0 auto 0 0; }
.filters summary { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; font-weight: 600; list-style: none; }
.filters[open] { flex-basis: 100%; order: 3; }
.filter-body { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; padding: 12px 0 4px; }
.filter-body input[type=number] { width: 96px; margin-left: 6px; min-height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: calc(var(--radius) / 2); background: var(--bg); }
.check { display: inline-flex; gap: 6px; align-items: center; }
.sort select { margin-left: 6px; min-height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: calc(var(--radius) / 2); background: var(--bg); }
.pages { display: flex; justify-content: center; align-items: center; gap: 20px; margin: 36px 0; }
.pages a { display: inline-flex; gap: 4px; align-items: center; font-weight: 600; }

/* Product page. */
.pdp { display: grid; gap: 20px; }
.pdp > * { min-width: 0; }
@media (min-width: 900px) { .pdp { grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: start; } .buy { position: sticky; top: 84px; } }
.gallery-main { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--radius); background: var(--soft); margin: 0 -16px; }
.gallery-main::-webkit-scrollbar { display: none; }
.gallery-main img { flex: 0 0 100%; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; scroll-snap-align: start; }
@media (min-width: 900px) { .gallery-main { margin: 0; } }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.thumbs button { flex: none; width: 64px; height: 80px; border-radius: 6px; overflow: hidden; border: 2px solid transparent; opacity: .7; }
.thumbs button.on { border-color: var(--accent); opacity: 1; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.buy h1 { font-size: clamp(22px, 3vw, 28px); }
.option { border: 0; padding: 0; margin: 18px 0 0; }
.option legend { padding: 0; margin-bottom: 8px; font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-width: 48px; min-height: 42px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: calc(var(--radius) / 1.5); font-weight: 500; }
.chip.on { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.chip.out { color: var(--muted); text-decoration: line-through; }
.stock { margin: 14px 0 6px; font-size: 14px; font-weight: 600; min-height: 1em; }
.stock.low { color: #b54708; } .stock.none { color: #b42318; }
.buy-row { display: flex; gap: 10px; margin: 10px 0; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: var(--radius); }
.qty button { width: 38px; height: 44px; display: grid; place-items: center; }
.qty input { width: 40px; text-align: center; border: 0; background: transparent; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { display: none; }
.line .qty button { width: 30px; height: 32px; } .line .qty input { width: 30px; }
.delivery { margin: 22px 0 8px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); }
.delivery label { display: flex; gap: 8px; align-items: center; font-weight: 600; margin-bottom: 8px; }
.delivery-row { display: flex; gap: 8px; }
.delivery-row input { flex: 1; min-width: 0; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: calc(var(--radius) / 1.5); background: var(--bg); }
.delivery-row .btn { min-height: 44px; }
.delivery p { margin: 8px 0 0; }
.ok { color: #067647; } .bad { color: #b42318; }
.assure { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 8px; font-size: 14px; }
.assure li { display: flex; gap: 10px; align-items: center; }
.assure .icon { color: var(--accent); }
.highlights { padding-left: 18px; margin: 16px 0; }
.highlights li { margin-bottom: 4px; }
.more { border-top: 1px solid var(--line); }
.more summary { padding: 14px 0; font-weight: 700; cursor: pointer; }
.rich { overflow-wrap: anywhere; }
.rich img { height: auto; border-radius: calc(var(--radius) / 2); }
.rich table { border-collapse: collapse; width: 100%; }
.rich td, .rich th { border: 1px solid var(--line); padding: 6px 8px; }
.specs { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 14px; }
.specs th { text-align: left; font-weight: 500; color: var(--muted); width: 40%; }
.specs th, .specs td { padding: 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.sticky-buy {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgb(0 0 0 / .06);
}
.sticky-buy div { display: grid; }
.has-bottom-nav .sticky-buy { bottom: 60px; }

/* Footer, bottom nav, WhatsApp. */
.footer { margin-top: 56px; background: var(--soft); padding: 40px 0 20px; font-size: 14px; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: 1fr 1fr; }
.footer-grid > div:first-child { grid-column: 1 / -1; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); } .footer-grid > div:first-child { grid-column: auto; min-width: 220px; } }
.footer a { display: flex; gap: 6px; align-items: center; padding: 4px 0; }
.footer a:hover { color: var(--accent); }
.footer-brand { font: 700 19px var(--font-heading); }
.footer-head { font-weight: 700; margin-bottom: 8px; }
.social { display: flex; gap: 6px; }
.social a { width: 38px; height: 38px; justify-content: center; border-radius: 50%; background: var(--bg); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer-bottom p { margin: 0; display: flex; gap: 6px; align-items: center; }
.bottom-nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 26; display: flex; background: var(--bg); border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom);
}
.bottom-nav > * { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 6px; font-size: 11px; position: relative; color: var(--muted); }
.bottom-nav .on { color: var(--accent); }
.bottom-nav .badge { top: 2px; right: calc(50% - 22px); }
.has-bottom-nav { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) { .has-bottom-nav { padding-bottom: 0; } .has-bottom-nav .sticky-buy { bottom: 0; } }
.wa-float {
    position: fixed; right: 16px; bottom: 20px; z-index: 27; width: 54px; height: 54px; border-radius: 50%;
    display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 8px 20px rgb(0 0 0 / .2);
}
.has-bottom-nav .wa-float { bottom: 76px; }
.has-sticky-buy .wa-float { bottom: 136px; }
@media (min-width: 900px) { .has-bottom-nav .wa-float, .has-sticky-buy .wa-float { bottom: 24px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
.line-name + .muted { display: block; }

/* Theme draft preview (Task 5.2). */
.preview-bar { position: sticky; top: 0; z-index: 35; background: #fef3c7; color: #78350f; font-size: 13px; text-align: center; padding: 8px 16px; }
.preview-bar a { text-decoration: underline; font-weight: 600; }

/* Task 5.3 sections. */
.offer { display: grid; gap: 16px; align-items: center; padding: 24px; border-radius: var(--radius); text-align: center; }
.offer-accent { background: var(--accent); color: var(--on-accent); }
.offer-accent .btn { background: var(--on-accent); color: var(--accent); border-color: var(--on-accent); }
.offer-dark { background: #111827; color: #fff; }
.offer-dark .btn { background: #fff; color: #111827; border-color: #fff; }
.offer-light { background: var(--soft); }
.offer h2 { margin: 0; }
.offer p { margin: 4px 0 0; }
@media (min-width: 900px) { .offer { grid-template-columns: 1fr auto auto; text-align: left; padding: 28px 36px; } }
.countdown { display: flex; justify-content: center; gap: 8px; }
.countdown span { display: grid; min-width: 58px; padding: 8px 4px; border-radius: calc(var(--radius) / 1.5); background: rgb(255 255 255 / .15); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.offer-light .countdown span { background: var(--bg); }
.countdown b { font: 700 22px/1.1 var(--font-heading); font-variant-numeric: tabular-nums; }
.video { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; }
.video img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.play { position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; transform: translate(-50%, -50%); border-radius: 12px; background: rgb(0 0 0 / .7); }
.play::after { content: ''; position: absolute; left: 27px; top: 14px; border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff; }
.video:hover .play { background: #f00; }
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 768px) {
    .gallery-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
    .gallery-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
    .gallery-grid.cols-6 { grid-template-columns: repeat(6, 1fr); }
}
.gallery-cell { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: calc(var(--radius) / 2); background: var(--soft); display: grid; }
.gallery-cell img { grid-area: 1 / 1; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery-cell span { grid-area: 1 / 1; align-self: end; padding: 8px 10px; color: #fff; font-size: 13px; font-weight: 600; background: linear-gradient(transparent, rgb(0 0 0 / .55)); }
@media (hover: hover) { a.gallery-cell:hover img { transform: scale(1.04); } }
.logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 20px 36px; }
.logos img { height: 40px; width: auto; max-width: 140px; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .2s, opacity .2s; }
.logos a:hover img { filter: none; opacity: 1; }

/* Cookie choice (Task 5.4). */
.consent { position: fixed; left: 12px; right: 12px; bottom: calc(72px + env(safe-area-inset-bottom)); z-index: 45; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 30px rgb(0 0 0 / .15); font-size: 14px; }
.consent p { margin: 0; flex: 1 1 220px; }
.consent div { display: flex; gap: 8px; }
.consent .btn { min-height: 38px; padding: 0 14px; }
@media (min-width: 900px) { .consent { left: auto; right: 24px; bottom: 24px; max-width: 460px; } }

/* Store pages (Task 5.6). */
.store-page { margin: 8px 0 40px; }
.store-page .rich h2 { font-size: 20px; margin-top: 28px; }
.store-page .rich ul, .store-page .rich ol { padding-left: 20px; }
.store-page .rich li { margin-bottom: 6px; }
.draft-note { background: #fef3c7; color: #78350f; padding: 10px 14px; border-radius: calc(var(--radius) / 2); font-size: 14px; }
