/* SenMart boutique — couleurs de marque : vert, jaune, blanc. Fond blanc, vert pour la structure et les actions, jaune en accent */
:root {
    --bg: #FFFFFF;
    --soft: #F6F5F2;
    --tile: #F1F0EC;
    --ink: #16181A;
    --ink-2: #3A3F44;
    --muted: #6B7076;
    --line: #E7E5E0;
    --brand: #0A5C33;
    --brand-hover: #084A29;
    --brand-deep: #063D22;
    --brand-ink: #FFFFFF;
    --yellow: #F2B705;
    --yellow-hover: #DCA500;
    --gold: #E0A800;
    --red: #C0392B;
    --font: "Manrope", "Helvetica Neue", Arial, sans-serif;
    color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.55; min-height: 100vh; display: flex; flex-direction: column; -webkit-font-smoothing: antialiased; }
main { flex: 1; }
a { color: inherit; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--font); margin: 0; text-wrap: balance; letter-spacing: -.02em; }
.wrap { max-width: 1240px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.ico { width: 20px; height: 20px; flex-shrink: 0; }
.muted { color: var(--muted); }
.eyebrow { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }

/* Header */
.top { background: var(--brand); color: #E6F0EA; font-size: 12.5px; font-weight: 500; }
.top .wrap { display: flex; justify-content: space-between; gap: 12px; padding-block: 7px; flex-wrap: wrap; }
.top a { text-decoration: none; }
.top a:hover { color: #fff; }
header.bar-h { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 24px; padding-block: 14px; }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; flex-shrink: 0; }
.logo svg { width: 34px; height: 34px; }
.word { font-weight: 800; font-size: 22px; letter-spacing: -.03em; line-height: 1; color: var(--brand); }
.word .m { color: var(--gold); }
.search { flex: 1; min-width: 0; max-width: 560px; position: relative; }
.search input { width: 100%; padding: 10px 14px 10px 40px; border-radius: 8px; border: 1px solid var(--line); background: var(--soft); }
.search input:focus { border-color: var(--ink-2); background: var(--bg); outline: none; }
.search .ico { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 18px; color: var(--muted); }
.cartbtn { margin-left: auto; display: flex; align-items: center; gap: 8px; color: var(--ink); padding: 8px 4px; font-weight: 600; flex-shrink: 0; text-decoration: none; }
.cartbtn:hover { color: var(--brand); }
.badge { background: var(--yellow); color: var(--ink); border-radius: 999px; min-width: 20px; height: 20px; display: grid; place-items: center; font-size: 11px; font-weight: 700; padding: 0 6px; }
@media (max-width: 620px) { .word, .cartbtn .lbl { display: none; } .bar { gap: 14px; } }

.trust { border-bottom: 1px solid var(--line); background: var(--bg); }
.trust-in { display: grid; grid-template-columns: repeat(3, 1fr); }
.trust-in > div { display: flex; gap: 12px; align-items: center; padding: 18px 20px 18px 0; font-size: 13.5px; color: var(--muted); }
.trust-in > div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.trust-in .ico { color: var(--brand); width: 22px; height: 22px; }
.trust-in b { display: block; color: var(--ink); font-weight: 700; font-size: 14px; }
@media (max-width: 760px) { .trust-in { grid-template-columns: 1fr; } .trust-in > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); } }

/* Catalogue */
.catalog { padding-top: 32px; }
.cats { display: flex; gap: 28px; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cat { flex-shrink: 0; padding: 10px 0 12px; font-weight: 600; font-size: 14.5px; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.cat:hover { color: var(--ink); }
.cat.on { color: var(--brand); border-bottom-color: var(--yellow); border-bottom-width: 3px; }
.tools { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-block: 24px 20px; }
.tools h2 { font-size: 22px; font-weight: 800; }
.tools .count { color: var(--muted); font-size: 13.5px; }
select { padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); }

/* Grid & cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 28px 20px; padding-bottom: 48px; }
@media (max-width: 480px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; } }
.card { display: flex; flex-direction: column; gap: 12px; }
.pic { aspect-ratio: 1 / 1; max-width: 100%; background: var(--tile); border-radius: 10px; display: grid; place-items: center; position: relative; color: #A9A9A1; text-decoration: none; overflow: hidden; }
.pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.card:hover .pic img { transform: scale(1.03); }
.pic .ico { width: 34%; height: 34%; stroke-width: 1.1; }
.tag { position: absolute; top: 10px; left: 10px; font-size: 11px; font-weight: 700; letter-spacing: .04em; padding: 3px 8px; border-radius: 4px; background: var(--yellow); color: var(--ink); }
.tag.sale { background: var(--red); color: #fff; }
.tag.out { background: var(--ink); color: #fff; }
.body { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.kind { font-size: 12px; color: var(--muted); font-weight: 500; }
.name { font-weight: 600; font-size: 15px; line-height: 1.35; margin: 0; letter-spacing: -.005em; }
.name a { text-decoration: none; }
.name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.prices { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: 2px; font-variant-numeric: tabular-nums; }
.price { font-weight: 800; font-size: 16px; color: var(--ink); }
.prices .old { color: var(--muted); text-decoration: line-through; font-size: 13px; }
.card .prices:has(.old) .price { color: var(--red); }
.card form { margin: 0; margin-top: auto; padding-top: 10px; }
.add { width: 100%; border: 1px solid var(--brand); background: var(--bg); color: var(--brand); border-radius: 8px; padding: 9px; font-weight: 700; font-size: 14px; cursor: pointer; transition: background .15s, color .15s; }
.add:hover { background: var(--brand); color: #fff; }
.add:disabled { border-color: var(--line); color: var(--muted); background: var(--soft); cursor: not-allowed; }
.empty { grid-column: 1 / -1; text-align: center; padding: 56px 16px; color: var(--muted); }

/* Buttons & forms */
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 8px; border: 1px solid transparent; background: var(--brand); color: var(--brand-ink); border-radius: 8px; padding: 11px 18px; font-weight: 700; text-decoration: none; cursor: pointer; transition: background .15s; }
.btn:hover { background: var(--brand-hover); }
.btn:disabled { background: var(--line); color: var(--muted); cursor: not-allowed; }
.btn-ghost { background: var(--bg); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--soft); }
.btn-wa { background: #1FAF55; color: #fff; }
.btn-wa:hover { background: #17964A; }
.btn-lg { padding: 13px 22px; font-size: 15.5px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label, .lbl { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea { padding: 11px 12px; border-radius: 8px; border: 1px solid #D6D3CC; background: var(--bg); width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(22, 24, 26, .08); }
.field textarea { min-height: 72px; resize: vertical; }
.field .err { color: var(--red); font-size: 13px; font-weight: 600; }
.field.has-err input, .field.has-err select { border-color: var(--red); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .two { grid-template-columns: 1fr; } }
.pay { display: flex; gap: 8px; flex-wrap: wrap; border: 0; padding: 0; margin: 0; }
.pay legend { margin-bottom: 6px; }
.pay label { flex: 1; min-width: 110px; display: flex; align-items: center; gap: 8px; border: 1px solid #D6D3CC; border-radius: 8px; padding: 10px 12px; font-weight: 600; font-size: 13.5px; cursor: pointer; color: var(--ink); }
.pay input { accent-color: var(--ink); }
.pay label:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }

.flash { padding: 12px 16px; border-radius: 8px; font-weight: 600; margin-top: 16px; display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; border: 1px solid; font-size: 14px; }
.flash-ok { background: #F1F7F3; border-color: #CFE3D6; color: var(--brand); }
.flash-err { background: #FBEFED; border-color: #F0CFCA; color: var(--red); }
.flash a { font-weight: 700; }

.pager { display: flex; justify-content: center; gap: 8px; padding-bottom: 48px; }

/* Product page */
.crumbs { font-size: 13px; color: var(--muted); padding-block: 20px 8px; }
.crumbs a { text-decoration: none; } .crumbs a:hover { color: var(--ink); text-decoration: underline; }
.pp { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; padding-block: 12px 56px; align-items: start; }
@media (max-width: 760px) { .pp { grid-template-columns: 1fr; gap: 24px; } }
.pp .pic { border-radius: 12px; }
.pp .pic .ico { width: 26%; height: 26%; }
.pp-info { display: flex; flex-direction: column; gap: 16px; min-width: 0; padding-top: 8px; }
.pp-info h1 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; line-height: 1.15; }
.pp-info .price { font-size: 24px; }
.pp-info .prices:has(.old) .price { color: var(--red); }
.pp-info .desc { color: var(--ink-2); max-width: 60ch; white-space: pre-line; margin: 0; }
.stock { font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.stock.ok { color: var(--brand); } .stock.low { color: #A86A00; } .stock.out { color: var(--red); }
.buy { display: flex; gap: 10px; flex-wrap: wrap; padding-top: 4px; }
.buy .btn { flex: 1; min-width: 200px; }
.qty-in { width: 84px; padding: 12px; border-radius: 8px; border: 1px solid #D6D3CC; background: var(--bg); text-align: center; font-weight: 700; }
.reassure { display: grid; gap: 10px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.reassure div { display: flex; gap: 10px; }
.reassure b { color: var(--brand); }
.section-h { font-size: 20px; font-weight: 800; margin-bottom: 18px; }

/* Cart page */
.cart { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; padding-block: 32px 56px; align-items: start; }
@media (max-width: 860px) { .cart { grid-template-columns: 1fr; gap: 24px; } }
.panel { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; }
form.panel { background: var(--soft); }
.panel-h { padding: 18px 20px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.panel-h h2 { font-size: 18px; font-weight: 800; }
.panel-b { padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.line { display: grid; grid-template-columns: 72px 1fr auto; gap: 16px; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.line:last-child { border-bottom: 0; }
.thumb { width: 72px; height: 72px; border-radius: 8px; background: var(--tile); display: grid; place-items: center; overflow: hidden; color: #A9A9A1; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .ico { width: 44%; height: 44%; stroke-width: 1.3; }
.line .n { font-weight: 600; line-height: 1.3; text-decoration: none; }
.line .n:hover { text-decoration: underline; }
.line .p { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.line .right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.line .t { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.qty { display: flex; align-items: center; border: 1px solid #D6D3CC; border-radius: 8px; }
.qty form { margin: 0; display: contents; }
.qty button { border: 0; background: transparent; width: 32px; height: 32px; font-weight: 700; cursor: pointer; }
.qty button:hover:not(:disabled) { background: var(--soft); }
.qty button:disabled { color: #C4C2BC; cursor: not-allowed; }
.qty span { min-width: 22px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.rm { border: 0; background: none; color: var(--muted); font-size: 12.5px; text-decoration: underline; cursor: pointer; padding: 0; }
.rm:hover { color: var(--red); }
@media (max-width: 480px) { .line { grid-template-columns: 56px 1fr; } .thumb { width: 56px; height: 56px; } .line .right { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; } }
.sum { display: flex; flex-direction: column; gap: 8px; font-variant-numeric: tabular-nums; font-size: 14.5px; }
.sum div { display: flex; justify-content: space-between; gap: 12px; }
.sum .total { font-weight: 800; font-size: 19px; padding-top: 12px; border-top: 1px solid var(--line); }
.sum .free { color: var(--brand); font-weight: 700; }
.nudge { font-size: 13px; background: var(--bg); border: 1px dashed #D6D3CC; border-radius: 8px; padding: 9px 12px; color: var(--ink-2); }
.hint { font-size: 12.5px; color: var(--muted); margin: 0; text-align: center; }

/* Done */
.done { max-width: 640px; margin: 0 auto; padding-block: 48px 64px; display: flex; flex-direction: column; gap: 18px; }
.done .check { width: 52px; height: 52px; border-radius: 50%; background: #E8F2EC; color: var(--brand); display: grid; place-items: center; }
.done .check .ico { width: 26px; height: 26px; stroke-width: 2.4; }
.done h1 { font-size: clamp(24px, 3.5vw, 30px); font-weight: 800; line-height: 1.2; }
.done .ref { color: var(--brand); }
.steps { margin: 0; padding-left: 20px; color: var(--muted); display: grid; gap: 6px; }
.steps b { color: var(--ink); }


@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { background: var(--yellow-hover); }

/* Carrousel de publicités */
.slider { position: relative; overflow: hidden; background: var(--brand-deep); }
.slides { display: grid; }
.slide { grid-area: 1 / 1; position: relative; min-height: clamp(280px, 38vw, 480px); display: flex; align-items: center; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility 0s linear .7s; }
.slide.on { opacity: 1; visibility: visible; transition: opacity .7s ease; z-index: 1; }
.slide .media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide.has-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6, 25, 15, .72) 0%, rgba(6, 25, 15, .35) 45%, rgba(6, 25, 15, 0) 75%); }
.slide-in { position: relative; z-index: 2; width: 100%; padding-block: 48px; }
.slide-txt { max-width: 560px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.slide h2 { font-size: clamp(28px, 4.4vw, 52px); font-weight: 800; line-height: 1.05; letter-spacing: -.03em; }
.slide p { margin: 0; font-size: clamp(15px, 1.6vw, 18px); max-width: 44ch; }
.slide.on .slide-txt > * { animation: rise .6s ease both; }
.slide.on .slide-txt > :nth-child(2) { animation-delay: .08s; }
.slide.on .slide-txt > :nth-child(3) { animation-delay: .16s; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

.slide.theme-green, .slide.has-media { color: #fff; }
.slide.theme-green { background: radial-gradient(circle at 85% 30%, rgba(242, 183, 5, .22), transparent 40%), linear-gradient(120deg, var(--brand-deep), var(--brand)); }
.slide.theme-green .slide-btn, .slide.has-media .slide-btn { background: var(--yellow); color: var(--ink); }
.slide.theme-green .slide-btn:hover, .slide.has-media .slide-btn:hover { background: var(--yellow-hover); }
.slide.theme-yellow { background: radial-gradient(circle at 85% 30%, rgba(255, 255, 255, .35), transparent 42%), var(--yellow); color: var(--ink); }
.slide.theme-white { background: radial-gradient(circle at 85% 30%, rgba(242, 183, 5, .18), transparent 40%), var(--soft); color: var(--ink); }
.slide.theme-white h2 { color: var(--brand); }
.slide.theme-yellow p, .slide.theme-white p { color: var(--ink-2); }
.slide.has-media.theme-yellow, .slide.has-media.theme-white { color: #fff; }
.slide.has-media.theme-white h2 { color: #fff; }
.slide.has-media p { color: rgba(255, 255, 255, .9); }

.slider .nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .9); color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 10px rgba(0, 0, 0, .15); transition: background .15s; }
.slider .nav:hover { background: #fff; }
.slider .prev { left: max(16px, env(safe-area-inset-left, 0px)); }
.slider .next { right: max(16px, env(safe-area-inset-right, 0px)); }
.dots { position: absolute; left: 0; right: 0; bottom: 18px; z-index: 3; display: flex; justify-content: center; gap: 8px; }
.dots button { width: 34px; height: 18px; border: 0; padding: 0; background: none; cursor: pointer; display: grid; align-items: center; }
.dots i { display: block; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .45); overflow: hidden; position: relative; }
.dots i::after { content: ""; position: absolute; inset: 0; background: var(--yellow); transform: scaleX(0); transform-origin: left; }
.dots button[aria-selected="true"] i::after { transform: scaleX(1); }
.slider.run .dots button[aria-selected="true"] i::after { animation: fill var(--delay, 6000ms) linear both; }
.slider.light .dots i { background: rgba(0, 0, 0, .18); }
.slider.light .dots i::after { background: var(--brand); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@keyframes fill { from { transform: scaleX(0); } }
@media (min-width: 621px) and (max-width: 1400px) { .slide-in { padding-left: 84px; padding-right: 84px; } }
@media (max-width: 620px) { .slider .nav { display: none; } .slide { min-height: 340px; align-items: flex-end; } .slide-in { padding-block: 32px 56px; } }
@media (prefers-reduced-motion: reduce) { .slide, .slide.on { transition: none; } .slide.on .slide-txt > * { animation: none; } }

/* Footer */
.foot { background: var(--brand-deep); color: #C9D8CF; font-size: 14px; margin-top: 24px; }
.foot { border-top: 4px solid var(--yellow); }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1.3fr; gap: 40px; padding-block: 48px 36px; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; gap: 28px; } }
.foot-brand { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.foot-brand .word { color: #fff; }
.foot-brand .word .m { color: var(--yellow); }
.foot-brand p { margin: 0; max-width: 34ch; line-height: 1.6; }
.foot h3 { color: var(--yellow); font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot a { text-decoration: none; color: #fff; }
.foot a:hover { color: var(--yellow); }
.foot b { color: #fff; }
.foot .contact li { display: flex; flex-direction: column; gap: 1px; overflow-wrap: anywhere; }
.foot .contact span { font-size: 12px; color: #8FAA9A; }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-block: 18px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13px; color: #8FAA9A; }
.foot-bottom .pays { display: flex; gap: 8px; flex-wrap: wrap; }
.foot-bottom .pays span { border: 1px solid rgba(255, 255, 255, .25); border-radius: 6px; padding: 3px 10px; color: #fff; font-weight: 600; font-size: 12px; }
.foot-bottom .admin-link { color: #8FAA9A; text-decoration: underline; text-underline-offset: 3px; }
.foot-bottom .admin-link:hover { color: var(--yellow); }

/* Bouton WhatsApp flottant */
.wa-float { position: fixed; z-index: 30; right: max(18px, env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; gap: 10px; background: #25D366; color: #fff; text-decoration: none; font-weight: 700; font-size: 14.5px; padding: 12px 18px 12px 14px; border-radius: 999px; box-shadow: 0 8px 24px -6px rgba(10, 92, 51, .55); transition: transform .15s, background .15s; }
.wa-float svg { width: 28px; height: 28px; flex-shrink: 0; }
.wa-float:hover { background: #1EBE5A; transform: translateY(-2px); }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(37, 211, 102, .55); animation: wa-pulse 2.4s ease-out infinite; }
@keyframes wa-pulse { 70% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }
@media (max-width: 620px) { .wa-float { padding: 14px; } .wa-float span { display: none; } }
@media (prefers-reduced-motion: reduce) { .wa-float::before { animation: none; } }
.foot .socials { flex-direction: row !important; gap: 14px !important; padding-top: 4px; }

/* Galerie de la fiche produit */
.gallery { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.gallery .pic img { transition: opacity .2s; }
.g-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 10px rgba(0, 0, 0, .12); opacity: 0; transition: opacity .15s; }
.gallery .pic:hover .g-nav, .g-nav:focus-visible { opacity: 1; }
.g-nav.prev { left: 12px; } .g-nav.next { right: 12px; }
.g-count { position: absolute; right: 12px; bottom: 12px; z-index: 2; background: rgba(22, 24, 26, .7); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.thumbs { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 2px; }
.thumbs button { flex: 0 0 76px; height: 76px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: var(--tile); cursor: pointer; opacity: .7; transition: opacity .15s, border-color .15s; }
.thumbs button:hover { opacity: 1; }
.thumbs button[aria-selected="true"] { border-color: var(--brand); opacity: 1; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (hover: none) { .g-nav { opacity: 1; } }
@media (max-width: 480px) { .thumbs button { flex-basis: 60px; height: 60px; } }
.foot .muted-foot { color: #8FAA9A; font-size: 13px; }
