/* The website, mobile first. Every colour, radius and font is a variable set
 * from Appearance; header and footer types are body classes. Widths grow from
 * the phone up: the base rules are the phone, @media (min-width) adds the rest. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg, #fff); }
body { margin: 0; font-family: var(--font-body); color: var(--text); background: var(--bg, #fff); line-height: 1.55; font-size: 15px; padding-bottom: calc(64px + env(safe-area-inset-bottom)); overflow-x: clip; }
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.15; margin: 0 0 .4em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.5rem, 5vw, 2.4rem); } h2 { font-size: clamp(1.2rem, 3.4vw, 1.7rem); } h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; } a { color: var(--primary); } img { max-width: 100%; display: block; }
button { font: inherit; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.container.narrow { max-width: 760px; }
.row { display: flex; align-items: center; gap: 10px; } .spacer { flex: 1; } .grow { flex: 1; min-width: 0; }
.lead { font-size: 1.02rem; color: var(--muted); }
.hp { position: absolute; left: -9999px; }
.inline { display: inline; }
.muted { color: var(--muted); }
.line { border: 0; border-top: 1px solid color-mix(in srgb, var(--text) 10%, transparent); margin: 20px 0; }
@media (min-width: 900px) { body { font-size: 16px; padding-bottom: 0; } .container { padding: 0 24px; } }

/* Buttons: three styles from Appearance. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600; padding: 12px 20px; border-radius: var(--radius); border: 2px solid transparent; cursor: pointer; text-decoration: none; transition: transform .15s, background .15s; line-height: 1.2; min-height: 44px; }
.btn:active { transform: scale(.98); }
.btn-lg { padding: 14px 26px; font-size: 1.05rem; } .btn-sm { padding: 8px 14px; font-size: .9rem; min-height: 36px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-ghost { background: var(--surface); color: var(--text); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
body.btn-outline .btn-primary { background: transparent; color: var(--primary); border-color: var(--primary); }
body.btn-outline .btn-primary:hover { background: var(--primary); color: #fff; }
body.btn-soft .btn-primary { background: color-mix(in srgb, var(--primary) 14%, transparent); color: var(--primary); }
body.btn-soft .btn-primary:hover { background: var(--primary); color: #fff; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--primary); cursor: pointer; text-decoration: underline; }
.icon-btn { background: none; border: 0; width: 42px; height: 42px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 1.35rem; color: var(--text); cursor: pointer; text-decoration: none; position: relative; }
.icon-btn:hover { background: var(--surface); }

/* Cards: three styles. */
.site-card, .p-card, .cat-tile { background: var(--surface); border-radius: var(--radius); overflow: hidden; }
body.cards-shadow .site-card, body.cards-shadow .p-card { box-shadow: 0 4px 18px rgba(0,0,0,.07); background: var(--bg); }
body.cards-bordered .site-card, body.cards-bordered .p-card { border: 1px solid color-mix(in srgb, var(--text) 12%, transparent); background: var(--bg); }
body.cards-flat .site-card, body.cards-flat .p-card { background: var(--surface); }

/* Header. */
.topstrip { display: none; background: var(--primary); color: #fff; font-size: .85rem; }
.topstrip .container { display: flex; align-items: center; gap: 12px; min-height: 34px; }
.topstrip a { color: #fff; text-decoration: none; margin-left: 6px; }
.site-header { background: var(--bg); border-bottom: 1px solid color-mix(in srgb, var(--text) 10%, transparent); z-index: 50; position: relative; }
body.sticky .site-header { position: sticky; top: 0; }
.site-header .container { display: flex; align-items: center; gap: 4px; min-height: 58px; }
.logo { display: inline-flex; align-items: center; text-decoration: none; color: var(--text); font-family: var(--font-heading); font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; margin-right: 8px; }
.logo img { height: 34px; width: auto; }
.site-nav { display: none; }
.nav-toggle { margin-left: -8px; }
.cart-count { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: #111; font-size: .68rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.cart-count[hidden] { display: none; }
.account-btn { display: none; }
/* The phone menu: a sheet under the header. */
.site-nav.open { display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: var(--bg); padding: 8px 16px 16px; border-bottom: 1px solid color-mix(in srgb, var(--text) 10%, transparent); box-shadow: 0 16px 30px rgba(0,0,0,.1); }
.site-nav a { color: var(--text); text-decoration: none; padding: 12px 10px; border-radius: var(--radius); font-weight: 500; }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--surface); }
@media (min-width: 900px) {
  .topstrip { display: block; }
  .site-header .container { gap: 16px; min-height: 70px; }
  .logo { font-size: 1.4rem; } .logo img { height: 42px; }
  .nav-toggle { display: none; }
  .site-nav, .site-nav.open { display: flex; position: static; flex-direction: row; align-items: center; gap: 2px; padding: 0; border: 0; box-shadow: none; background: none; }
  .site-nav a { padding: 8px 12px; }
  .account-btn { display: inline-flex; }
  body.hdr-centered .site-header .container { flex-wrap: wrap; justify-content: center; padding-top: 12px; padding-bottom: 8px; }
  body.hdr-centered .logo { width: 100%; justify-content: center; margin: 0 0 4px; order: -2; }
  body.hdr-centered .site-nav { order: 1; } body.hdr-centered .spacer { display: none; }
  body.hdr-minimal .site-nav { display: none; } body.hdr-minimal .nav-toggle { display: inline-flex; }
  body.hdr-minimal .site-nav.open { display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: var(--bg); padding: 8px 24px 16px; border-bottom: 1px solid color-mix(in srgb, var(--text) 10%, transparent); }
  body.hdr-overlay.is-home .site-header { position: absolute; top: 0; left: 0; right: 0; background: linear-gradient(rgba(0,0,0,.55), transparent); border: 0; }
  body.hdr-overlay.is-home.sticky .site-header { position: fixed; }
  body.hdr-overlay.is-home .site-header.scrolled { background: var(--bg); border-bottom: 1px solid color-mix(in srgb, var(--text) 10%, transparent); }
  body.hdr-overlay.is-home .site-header:not(.scrolled) .logo, body.hdr-overlay.is-home .site-header:not(.scrolled) .site-nav a, body.hdr-overlay.is-home .site-header:not(.scrolled) .icon-btn { color: #fff; }
}

/* Search sheet: full width under the header, on every size. */
.search-sheet { position: fixed; inset: 0 0 auto; z-index: 60; background: var(--bg); box-shadow: 0 10px 40px rgba(0,0,0,.18); padding: 10px 0; }
.search-sheet[hidden] { display: none; }
.search-sheet form { display: flex; align-items: center; gap: 8px; }
.search-sheet i { font-size: 1.3rem; color: var(--muted); }
.search-sheet input { flex: 1; font: inherit; font-size: 1.05rem; padding: 12px 6px; border: 0; background: none; color: var(--text); outline: none; }

/* Bottom tab bar: the phone's primary navigation. */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--bg); border-top: 1px solid color-mix(in srgb, var(--text) 10%, transparent); padding-bottom: env(safe-area-inset-bottom); }
.tabbar a, .tabbar button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 60px; text-decoration: none; color: var(--muted); font-size: .68rem; font-weight: 600; background: none; border: 0; cursor: pointer; }
.tabbar i { font-size: 1.4rem; line-height: 1; }
.tabbar [aria-current="page"] { color: var(--primary); }
.tabbar .cart-count { top: 8px; right: calc(50% - 22px); }
@media (min-width: 900px) { .tabbar { display: none; } }
@media (display-mode: standalone) { .tabbar { padding-bottom: max(env(safe-area-inset-bottom), 6px); } }

/* Hero slider. */
.hero { position: relative; width: 100%; }
.hero .swiper-slide { min-height: 240px; }
.hero.h-short .swiper-slide { height: 38vh; } .hero.h-medium .swiper-slide { height: 52vh; } .hero.h-tall .swiper-slide { height: 68vh; } .hero.h-full .swiper-slide { height: calc(100vh - 58px); }
@media (min-width: 900px) { .hero.h-short .swiper-slide { height: 42vh; } .hero.h-medium .swiper-slide { height: 62vh; } .hero.h-tall .swiper-slide { height: 80vh; } .hero.h-full .swiper-slide { height: 100vh; } }
.slide { position: relative; display: flex; overflow: hidden; }
.slide > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,var(--o, .35)); }
.slide-text { position: relative; padding: 28px 20px; display: flex; flex-direction: column; max-width: var(--container); width: 100%; margin: 0 auto; }
.slide-text h1 { color: var(--h); font-size: clamp(1.6rem, 6vw, 3.6rem); max-width: 14em; text-shadow: 0 2px 20px rgba(0,0,0,.25); }
.slide-text p { color: var(--t); font-size: clamp(.95rem, 2vw, 1.2rem); max-width: 32em; }
.slide-btn { align-self: flex-start; background: var(--bb); color: var(--bc); font-weight: 700; padding: 12px 22px; border-radius: var(--radius); text-decoration: none; }
.slide.pos-top-left, .slide.pos-top-center, .slide.pos-top-right { align-items: flex-start; }
.slide.pos-center-left, .slide.pos-center, .slide.pos-center-right { align-items: center; }
.slide.pos-bottom-left, .slide.pos-bottom-center, .slide.pos-bottom-right { align-items: flex-end; }
.slide.pos-top-center .slide-text, .slide.pos-center .slide-text, .slide.pos-bottom-center .slide-text { align-items: center; text-align: center; }
.slide.pos-top-center .slide-btn, .slide.pos-center .slide-btn, .slide.pos-bottom-center .slide-btn { align-self: center; }
.slide.pos-top-right .slide-text, .slide.pos-center-right .slide-text, .slide.pos-bottom-right .slide-text { align-items: flex-end; text-align: right; }
.slide.pos-top-right .slide-btn, .slide.pos-center-right .slide-btn, .slide.pos-bottom-right .slide-btn { align-self: flex-end; }
.hero .swiper-pagination-bullet { background: #fff; opacity: .6; } .hero .swiper-pagination-bullet-active { opacity: 1; background: var(--accent); }
.swiper-button-prev, .swiper-button-next { color: #fff; --swiper-navigation-size: 22px; display: none; }
@media (min-width: 900px) { .swiper-button-prev, .swiper-button-next { display: flex; } }
.carousel { padding: 4px 0 8px; }
.carousel .swiper-button-prev, .carousel .swiper-button-next { color: var(--primary); background: var(--bg); width: 40px; height: 40px; border-radius: 50%; box-shadow: 0 4px 14px rgba(0,0,0,.14); --swiper-navigation-size: 18px; }
.carousel .swiper-slide { height: auto; }

/* Sections. */
.section { padding: 32px 0; } .section-alt { background: var(--surface); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section-head h2 { margin: 0; } .section-head p { color: var(--muted); margin: 2px 0 0; font-size: .95rem; } .section-head.centre { justify-content: center; text-align: center; }
.more { text-decoration: none; font-weight: 600; white-space: nowrap; font-size: .92rem; }
.grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-1 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid { gap: 18px; } .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .section { padding: 56px 0; } .section-head { margin-bottom: 24px; } .grid { gap: 22px; } .grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.rich p:last-child { margin-bottom: 0; } .rich h2, .rich h3, .rich h4 { margin-top: 1.2em; } .rich img { border-radius: var(--radius); } .rich ul, .rich ol { padding-left: 20px; }

/* Product card. */
.p-card { display: flex; flex-direction: column; text-decoration: none; color: var(--text); height: 100%; position: relative; transition: transform .2s; }
.p-card:hover { transform: translateY(-2px); }
.p-img { position: relative; aspect-ratio: var(--ratio, 1); background: var(--surface); display: block; overflow: hidden; }
body.img-original .p-img img { height: auto; object-fit: contain; }
.p-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; } .p-card:hover .p-img img { transform: scale(1.04); }
.p-img .no-img { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 2.4rem; color: color-mix(in srgb, var(--primary) 40%, var(--surface)); }
.p-flag { position: absolute; top: 8px; left: 8px; font-size: .68rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: var(--accent); color: #111; }
.p-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.p-body small { color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-size: .66rem; font-weight: 700; }
.p-body b { font-family: var(--font-heading); font-size: .98rem; line-height: 1.3; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.p-price { margin-top: auto; padding-top: 6px; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.p-price strong { font-size: 1.02rem; color: var(--primary); } .p-price s { color: var(--muted); font-size: .85em; } .p-price em { font-style: normal; color: var(--muted); font-size: .8rem; }
.p-price .locked { color: var(--muted); font-size: .85rem; font-weight: 500; }
@media (min-width: 900px) { .p-body { padding: 14px 16px 16px; } .p-body b { font-size: 1.05rem; } .p-price strong { font-size: 1.1rem; } }

/* Stock chips. */
.stock { display: inline-flex; align-items: center; gap: 5px; font-size: .74rem; font-weight: 700; }
.stock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.stock-in { color: #0A7A4B; } .stock-low { color: #9A6200; } .stock-out { color: #B8203F; } .stock-pre { color: var(--primary); }

/* Category tile. */
.cat-tile { position: relative; aspect-ratio: var(--cat-ratio, 1); display: block; text-decoration: none; background: var(--primary); }
.cat-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; } .cat-tile:hover img { transform: scale(1.05); }
.cat-tile span { position: absolute; left: 0; right: 0; bottom: 0; padding: 32px 12px 12px; background: linear-gradient(transparent, rgba(0,0,0,.72)); color: #fff; display: flex; flex-direction: column; }
.cat-tile b { font-family: var(--font-heading); font-size: 1rem; } .cat-tile small { opacity: .85; font-size: .78rem; }
body.cat-original .cat-tile { aspect-ratio: auto; min-height: 96px; }
body.cat-original .cat-tile img { height: auto; }
@media (min-width: 900px) { .cat-tile b { font-size: 1.15rem; } }
/* Category chips: a horizontal strip on the phone. */
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 6px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }
.chips a { flex: none; white-space: nowrap; padding: 8px 14px; border-radius: 999px; background: var(--surface); color: var(--text); text-decoration: none; font-size: .88rem; font-weight: 600; border: 1px solid transparent; }
.chips a[aria-current="page"] { background: var(--primary); color: #fff; }
@media (min-width: 900px) { .chips { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; } }

/* Text, CTA, features. */
.cta { padding: 40px 0; } .cta .container { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.cta h2, .cta p { margin: 0; } .cta p { opacity: .85; margin-top: 4px; }
.cta-primary { background: var(--primary); color: #fff; } .cta-primary .btn { background: #fff; color: var(--primary); }
.cta-accent { background: var(--accent); color: #111; } .cta-accent .btn { background: #111; color: #fff; }
.cta-dark { background: #111; color: #fff; } .cta-dark .btn { background: var(--accent); color: #111; }
.cta-light { background: var(--surface); } .cta-light .btn { background: var(--primary); color: #fff; }
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 900px) { .features { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 22px; } }
.feature { text-align: center; padding: 16px 10px; } .feature i { font-size: 1.8rem; color: var(--primary); } .feature b { display: block; font-family: var(--font-heading); font-size: .98rem; margin: 6px 0 2px; } .feature p { color: var(--muted); margin: 0; font-size: .88rem; }

/* Page title band, crumbs, filters. */
.page-title { background: var(--surface); padding: 18px 0 16px; } .page-title h1 { margin-bottom: 2px; } .page-title p { color: var(--muted); margin: 0; font-size: .95rem; }
.page-title.has-img { background-size: cover; background-position: center; position: relative; color: #fff; padding: 48px 0 24px; }
.page-title.has-img::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(0,0,0,.25), rgba(0,0,0,.6)); } .page-title.has-img .container { position: relative; } .page-title.has-img p, .page-title.has-img .crumbs a { color: rgba(255,255,255,.85); }
@media (min-width: 900px) { .page-title { padding: 36px 0 28px; } }
.crumbs { font-size: .8rem; color: var(--muted); margin-bottom: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .crumbs a { color: inherit; text-decoration: none; }
.toolbar { display: flex; gap: 8px; align-items: center; margin: 12px 0; }
.toolbar .count { color: var(--muted); font-size: .9rem; }
.toolbar select { font: inherit; padding: 9px 12px; border: 1px solid color-mix(in srgb, var(--text) 18%, transparent); border-radius: var(--radius); background: var(--bg); color: var(--text); }
.filter-btn .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
/* The filter sheet: a bottom sheet on the phone, a side panel on desktop. */
.sheet { position: fixed; inset: 0; z-index: 70; display: none; }
.sheet.open { display: block; }
.sheet .scrim { position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.sheet .panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 85vh; overflow: auto; background: var(--bg); border-radius: var(--radius) var(--radius) 0 0; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); }
.sheet .panel h3 { margin: 0 0 8px; } .sheet .panel h4 { margin: 14px 0 6px; font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.sheet .opts { display: flex; flex-wrap: wrap; gap: 8px; }
.sheet .opts label { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: var(--surface); font-size: .88rem; cursor: pointer; border: 1px solid transparent; }
.sheet .opts label:has(input:checked) { background: color-mix(in srgb, var(--primary) 14%, transparent); border-color: var(--primary); color: var(--primary); }
.sheet .opts input { position: absolute; opacity: 0; width: 0; }
.sheet .acts { display: flex; gap: 10px; margin-top: 18px; position: sticky; bottom: 0; background: var(--bg); padding-top: 10px; }
@media (min-width: 900px) { .sheet .panel { left: auto; top: 0; bottom: 0; width: 380px; max-height: none; border-radius: var(--radius) 0 0 var(--radius); padding: 24px; } }
.empty-site { text-align: center; padding: 40px 16px; color: var(--muted); } .empty-site i { font-size: 2.4rem; } .empty-site h3 { color: var(--text); margin-top: 8px; }
.segmented { display: inline-flex; border: 1px solid color-mix(in srgb, var(--text) 18%, transparent); border-radius: var(--radius); overflow: hidden; }
.segmented a { padding: 8px 14px; text-decoration: none; color: var(--text); font-weight: 500; display: inline-flex; gap: 6px; align-items: center; font-size: .9rem; } .segmented a[aria-pressed="true"] { background: var(--primary); color: #fff; }

/* Forms. */
.form { margin-top: 12px; } .f-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 14px; }
.f-grid label { display: flex; flex-direction: column; gap: 5px; font-size: .86rem; font-weight: 600; } .f-grid .wide { grid-column: 1 / -1; }
.form input, .form select, .form textarea, .toolbar input { font: inherit; padding: 12px 14px; border: 1px solid color-mix(in srgb, var(--text) 18%, transparent); border-radius: var(--radius); background: var(--bg); color: var(--text); width: 100%; }
.form input:focus, .form textarea:focus, .form select:focus { outline: 2px solid var(--primary); outline-offset: 1px; border-color: transparent; }
.form small { display: block; color: var(--muted); margin-top: 10px; font-size: .84rem; }
@media (min-width: 640px) { .f-grid { grid-template-columns: 1fr 1fr; } }
.flash { padding: 12px 16px; border-radius: var(--radius); background: var(--surface); border-left: 4px solid var(--primary); margin: 14px 0; font-size: .95rem; }
.flash-ok { border-color: #00875A; } .flash-danger { border-color: #C1274A; } .flash-warn { border-color: #9A6200; }
.chip { display: inline-flex; align-items: center; gap: 4px; font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--text) 8%, transparent); color: var(--text); text-transform: uppercase; letter-spacing: .04em; }
.chip-ok { background: #E7F5EF; color: #0A5D40; } .chip-warn { background: #FCF3E3; color: #6E4600; } .chip-danger { background: #FCECF0; color: #8C1B36; } .chip-info { background: color-mix(in srgb, var(--primary) 14%, transparent); color: var(--primary); }
.stepper { display: inline-flex; align-items: center; border: 1px solid color-mix(in srgb, var(--text) 18%, transparent); border-radius: var(--radius); overflow: hidden; }
.stepper button { width: 42px; height: 42px; border: 0; background: var(--surface); color: var(--text); font-size: 1.2rem; cursor: pointer; }
.stepper input { width: 56px; height: 42px; border: 0; text-align: center; font: inherit; font-weight: 600; background: var(--bg); color: var(--text); -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* Product page. */
.pd { display: grid; gap: 20px; }
.pd > * { min-width: 0; }
.pd-gallery { margin: 0 -16px; aspect-ratio: var(--ratio, 1); width: calc(100% + 32px); background: var(--surface); }
body.img-original .pd-gallery { aspect-ratio: auto; }
body.img-original .pd-gallery .swiper-slide { height: auto; }
body.img-original .pd-gallery img { height: auto; }
body.img-original .pd-gallery .no-img { aspect-ratio: 1; }
.pd-gallery .swiper-slide { height: 100%; background: var(--surface); }
.pd-gallery img { width: 100%; height: 100%; object-fit: cover; }
.pd-gallery .no-img { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 4rem; color: color-mix(in srgb, var(--primary) 35%, var(--surface)); }
.pd-gallery .swiper-pagination-bullet-active { background: var(--primary); }
.pd-thumbs { display: none; }
.pd-info small.cat { color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-size: .72rem; font-weight: 700; }
.pd-info h1 { margin: 4px 0 6px; }
.pd-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 8px 0 4px; }
.pd-price strong { font-family: var(--font-heading); font-size: 1.7rem; color: var(--primary); } .pd-price s { color: var(--muted); } .pd-price .locked { color: var(--muted); }
.pd-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: .88rem; margin: 6px 0 14px; }
.opt-group { margin: 12px 0; } .opt-group > b { display: block; font-size: .86rem; margin-bottom: 8px; } .opt-group > b em { font-style: normal; font-weight: 500; color: var(--muted); }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 14px; border-radius: var(--radius); border: 1.5px solid color-mix(in srgb, var(--text) 18%, transparent); background: var(--bg); color: var(--text); cursor: pointer; font-weight: 600; font-size: .9rem; }
.opt[aria-pressed="true"] { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 10%, transparent); color: var(--primary); }
.opt.off { opacity: .45; text-decoration: line-through; }
.opt .sw { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); }
.pd-buy { display: flex; align-items: center; gap: 10px; margin: 16px 0 8px; flex-wrap: wrap; }
.pd-buy .btn { flex: 1; }
.pd-note { font-size: .88rem; color: var(--muted); }
.pd-msg { padding: 12px 14px; border-radius: var(--radius); background: var(--surface); font-weight: 600; }
.pd-sec { margin-top: 24px; } .pd-sec h2 { font-size: 1.15rem; margin-bottom: 10px; }
.specs-head { font-family: var(--font-heading); font-size: 1.05rem; margin: 0 0 10px; }
.specs { display: grid; grid-template-columns: minmax(9rem, auto) 1fr; margin: 0; font-size: .92rem; border: 1px solid color-mix(in srgb, var(--text) 14%, transparent); border-radius: var(--radius); overflow: hidden; }
.specs dt, .specs dd { padding: 10px 12px; margin: 0; border-top: 1px solid color-mix(in srgb, var(--text) 10%, transparent); }
.specs dt:first-of-type, .specs dt:first-of-type + dd { border-top: 0; }
.specs dt { color: var(--muted); background: color-mix(in srgb, var(--surface) 60%, transparent); }
.acc { border-top: 1px solid color-mix(in srgb, var(--text) 10%, transparent); }
.acc summary { list-style: none; display: flex; align-items: center; justify-content: space-between; padding: 14px 0; cursor: pointer; font-weight: 600; } .acc summary::-webkit-details-marker { display: none; }
.acc summary i { transition: transform .2s; } .acc[open] summary i { transform: rotate(180deg); } .acc .body { padding: 0 0 14px; color: var(--muted); }
/* Sticky buy bar on the phone. */
.buybar { position: fixed; left: 0; right: 0; bottom: calc(60px + env(safe-area-inset-bottom)); z-index: 54; background: var(--bg); border-top: 1px solid color-mix(in srgb, var(--text) 10%, transparent); padding: 10px 16px; display: flex; align-items: center; gap: 12px; transform: translateY(120%); transition: transform .25s; }
.buybar.show { transform: none; }
.buybar strong { font-family: var(--font-heading); font-size: 1.1rem; color: var(--primary); } .buybar small { display: block; color: var(--muted); font-size: .76rem; }
.buybar .btn { flex: none; }
@media (min-width: 900px) {
  .pd { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
  .pd-gallery { margin: 0; width: 100%; border-radius: var(--radius); overflow: hidden; }
  .pd-thumbs { display: flex; gap: 8px; margin-top: 10px; } .pd-thumbs img { width: 64px; height: 64px; object-fit: cover; border-radius: calc(var(--radius) / 2); cursor: pointer; opacity: .6; border: 2px solid transparent; } .pd-thumbs img.on { opacity: 1; border-color: var(--primary); }
  .pd-info { position: sticky; top: 90px; }
  .pd-buy .btn { flex: none; min-width: 220px; }
  .buybar { display: none; }
}

/* Cart and checkout. */
.cart-lines { display: flex; flex-direction: column; gap: 10px; }
.cart-line { display: grid; grid-template-columns: 72px 1fr; gap: 12px; padding: 12px; align-items: center; }
.cart-line img, .cart-line .no-img { width: 72px; height: 72px; object-fit: cover; border-radius: calc(var(--radius) / 1.5); background: var(--surface); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 1.6rem; }
.cart-line b { font-family: var(--font-heading); font-size: .98rem; display: block; } .cart-line small { color: var(--muted); display: block; }
.cart-line .ctl { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.cart-line .amt { font-weight: 700; }
.cart-line .rm { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 1.2rem; padding: 4px; }
.summary { padding: 18px; }
.summary dl { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; margin: 0 0 8px; } .summary dt { color: var(--muted); } .summary dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.summary .total { font-weight: 700; color: var(--text); font-size: 1.15rem; border-top: 1px solid color-mix(in srgb, var(--text) 12%, transparent); padding-top: 8px; }
.two-col { display: grid; gap: 20px; }
@media (min-width: 900px) { .two-col { grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; } .summary { position: sticky; top: 90px; } }

/* Curated catalog page and the conversation. */
.kt-lines { display: flex; flex-direction: column; gap: 10px; }
.kt-line { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; }
.kt-line img, .kt-line .no-img { width: 64px; height: 64px; object-fit: cover; border-radius: calc(var(--radius) / 1.5); background: var(--surface); display: flex; align-items: center; justify-content: center; color: var(--muted); }
.kt-line b { display: block; font-family: var(--font-heading); font-size: .95rem; } .kt-line small { color: var(--muted); display: block; }
.kt-line .amt { text-align: right; font-weight: 700; white-space: nowrap; } .kt-line .amt small { font-weight: 500; }
.messages .thread { display: flex; flex-direction: column; gap: 12px; margin: 14px 0; }
.msg { max-width: 86%; } .msg.customer { align-self: flex-end; } .msg .bubble { background: var(--surface); padding: 12px 16px; border-radius: var(--radius); } .msg.customer .bubble { background: var(--primary); color: #fff; } .msg time { display: block; font-size: .76rem; color: var(--muted); margin-top: 4px; } .msg.customer time { text-align: right; }
.preview-bar { background: #111; color: #fff; text-align: center; padding: 8px; font-size: .9rem; } .preview-bar a { color: var(--accent); }

/* Portal lists. */
.tile-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.tile-list li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--surface); border-radius: var(--radius); }
.tile-list a { flex: 1; text-decoration: none; color: var(--text); display: flex; flex-direction: column; min-width: 0; } .tile-list b { font-family: var(--font-heading); } .tile-list small { color: var(--muted); }
.tile-list .date { width: 52px; height: 52px; border-radius: calc(var(--radius) / 1.5); background: var(--primary); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none; line-height: 1; } .tile-list .date b { font-size: 1.25rem; font-family: var(--font-body); } .tile-list .date small { color: #fff; opacity: .85; font-size: .66rem; text-transform: uppercase; }
.account-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 20px; }
.account-grid a { display: flex; flex-direction: column; gap: 6px; padding: 16px 14px; text-decoration: none; color: var(--text); } .account-grid i { font-size: 1.6rem; color: var(--primary); } .account-grid b { font-family: var(--font-heading); } .account-grid small { color: var(--muted); }
@media (min-width: 640px) { .account-grid { grid-template-columns: repeat(4, 1fr); } }

/* Calendar on the site (markup shared with the admin). */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; background: color-mix(in srgb, var(--text) 12%, transparent); border: 1px solid color-mix(in srgb, var(--text) 12%, transparent); border-radius: var(--radius); overflow: hidden; }
.cal-dow { background: var(--surface); padding: 6px 4px; font-size: .66rem; color: var(--muted); font-weight: 700; text-transform: uppercase; text-align: center; }
.cal-day { background: var(--bg); min-height: 58px; padding: 3px; display: flex; flex-direction: column; gap: 2px; } .cal-pad { background: var(--surface); }
.cal-n { font-size: .74rem; font-weight: 700; width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; } .cal-today .cal-n { background: var(--primary); color: #fff; }
.cal-ev { display: block; font-size: 0; padding: 3px; border-radius: 4px; background: color-mix(in srgb, var(--primary) 16%, transparent); color: var(--primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none; }
.cal-ev.chip-ok { background: #E7F5EF; color: #0A5D40; } .cal-ev.chip-warn { background: #FCF3E3; color: #6E4600; } .cal-ev.chip-danger { background: #FCECF0; color: #8C1B36; }
@media (min-width: 720px) { .cal-day { min-height: 90px; } .cal-ev { font-size: .74rem; padding: 2px 6px; } .cal-dow { padding: 6px 8px; font-size: .72rem; text-align: left; } }

/* Footer. */
.site-footer { background: var(--surface); margin-top: 32px; padding: 32px 0 20px; color: var(--muted); font-size: .92rem; }
body.ftr-dark .site-footer { background: #111418; color: #b8bec8; } body.ftr-dark .site-footer a, body.ftr-dark .site-footer h4, body.ftr-dark .site-footer .logo { color: #fff; }
body.ftr-minimal .site-footer { padding: 18px 0; }
.footer-cols { display: grid; grid-template-columns: 1fr; gap: 22px; margin-bottom: 22px; }
@media (min-width: 640px) { .footer-cols { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .site-footer { margin-top: 56px; padding: 48px 0 24px; } .footer-cols { grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 32px; } }
.site-footer h4 { color: var(--text); font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.site-footer a { display: block; color: inherit; text-decoration: none; margin: 4px 0; } .site-footer a:hover { color: var(--primary); }
.site-footer .logo { margin-bottom: 8px; } .social a { display: inline-block; font-size: 1.3rem; margin-right: 10px; }
.footer-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; } .footer-row nav { display: flex; gap: 6px 16px; flex-wrap: wrap; flex: 1; } .footer-row nav a { margin: 0; }
.footer-base { border-top: 1px solid color-mix(in srgb, currentColor 18%, transparent); padding-top: 14px; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; font-size: .82rem; } .footer-base nav { display: flex; gap: 14px; flex-wrap: wrap; } .footer-base nav a { margin: 0; }

/* WhatsApp float and the install bar. */
.wa-float { position: fixed; right: 14px; bottom: calc(74px + env(safe-area-inset-bottom)); width: 50px; height: 50px; border-radius: 50%; background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.7rem; box-shadow: 0 8px 24px rgba(0,0,0,.2); z-index: 40; text-decoration: none; }
@media (min-width: 900px) { .wa-float { right: 20px; bottom: 20px; width: 54px; height: 54px; } }
.install-bar { position: fixed; left: 10px; right: 10px; bottom: calc(70px + env(safe-area-inset-bottom)); z-index: 60; display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--bg); color: var(--text); border-radius: var(--radius); box-shadow: 0 12px 40px rgba(0,0,0,.22); max-width: 520px; margin: 0 auto; }
.install-bar[hidden] { display: none; } .install-bar img, .install-icon { width: 42px; height: 42px; border-radius: 10px; flex: none; } .install-icon { background: var(--primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 1.4rem; }
.install-bar .grow { min-width: 0; }   /* "Add … to your Home Screen" is long; let it wrap */
.install-bar small { display: block; color: var(--muted); font-size: .8rem; } .install-x { background: none; border: 0; font-size: 1.3rem; color: var(--muted); cursor: pointer; }
@media (min-width: 900px) { .install-bar { bottom: 16px; } }
@media (display-mode: standalone) { .install-bar { display: none !important; } }
@media print { .site-header, .site-footer, .wa-float, .install-bar, .tabbar, .buybar, .preview-bar, .search-sheet, .form { display: none !important; } body { padding-bottom: 0; } }

/* Menu items that carry a list. Phone first: the list simply sits indented under
   its parent inside the open drawer. */
.site-nav .has-menu { display: contents; }
.site-nav .nav-parent { display: flex; align-items: center; gap: 4px; background: none; border: 0; font: inherit; font-weight: 500;
                        color: var(--text); text-align: left; cursor: pointer; padding: 12px 10px; border-radius: var(--radius); width: 100%; }
.site-nav .submenu { display: flex; flex-direction: column; padding-left: 12px; }
.site-nav .nav-heading { padding: 12px 10px; font-weight: 600; color: var(--muted); }

@media (min-width: 900px) {
  /* On a wide screen the list becomes a panel under its parent. Kept open while
     the pointer is inside it and while anything in it has focus, so it can be
     reached by keyboard as well as by mouse. */
  .site-nav .has-menu { display: block; position: relative; }
  .site-nav .nav-parent { width: auto; padding: 8px 12px; }
  .site-nav .nav-parent:hover, .site-nav .has-menu:focus-within .nav-parent { background: var(--surface); }
  .site-nav .submenu { position: absolute; top: 100%; left: 0; min-width: 220px; padding: 6px; gap: 0;
                       background: var(--bg); border: 1px solid color-mix(in srgb, var(--text) 12%, transparent);
                       border-radius: var(--radius); box-shadow: 0 16px 30px rgba(0,0,0,.12); z-index: 30;
                       opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .12s, transform .12s, visibility .12s; }
  .site-nav .has-menu:hover .submenu, .site-nav .has-menu:focus-within .submenu { opacity: 1; visibility: visible; transform: none; }
  .site-nav .submenu a, .site-nav .submenu .nav-heading { padding: 9px 12px; white-space: nowrap; }
  /* A third level opens beside the second rather than under it. */
  .site-nav .submenu .submenu { position: static; opacity: 1; visibility: visible; transform: none;
                                border: 0; box-shadow: none; padding: 0 0 0 12px; min-width: 0; }
}
