/* ============================================================
   PLR Simple UMKM Catalog Store — storefront design system
   Bundled production CSS. No build step required.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
    --primary: #0f766e;
    --primary-dark: #115e59;
    --secondary: #f59e0b;
    --bg: #fafaf9;
    --surface: #ffffff;
    --surface-2: #f5f5f4;
    --text: #1c1917;
    --text-soft: #57534e;
    --border: #e7e5e4;
    --danger: #dc2626;
    --success: #16a34a;
    /* WCAG 4.5:1 text variants (dark theme lightens them; see html[data-theme=dark]) */
    --primary-text: var(--primary);
    --danger-text: var(--danger);
    --success-text: #15803d;
    --secondary-text: #a16207; /* darkened gold for text/star icons: 4.9:1 on white */
    --radius: 0.75rem;
    --radius-btn: 0.75rem;
    /* Premium layered elevation */
    --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.05), 0 1px 4px rgb(0 0 0 / 0.04);
    --shadow: 0 1px 2px rgb(0 0 0 / 0.05), 0 8px 24px rgb(0 0 0 / 0.07);
    --shadow-lg: 0 2px 6px rgb(0 0 0 / 0.05), 0 16px 40px rgb(0 0 0 / 0.10), 0 32px 72px rgb(0 0 0 / 0.06);
    --shadow-glow: 0 0 0 1px color-mix(in srgb, var(--primary) 22%, transparent), 0 8px 24px color-mix(in srgb, var(--primary) 32%, transparent);
    --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
    --font-body: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --font-display: var(--font-body);
    --header-h: 4rem;
    --bottomnav-h: 4rem;
}

html[data-theme="dark"] {
    --bg: #0c0a09;
    --surface: #1c1917;
    --surface-2: #292524;
    --text: #fafaf9;
    --text-soft: #a8a29e;
    --border: #44403c;
    --primary-text: color-mix(in srgb, var(--primary) 50%, #ffffff);
    --danger-text: color-mix(in srgb, var(--danger) 55%, #ffffff);
    --success-text: color-mix(in srgb, var(--success) 60%, #ffffff);
    --secondary-text: color-mix(in srgb, var(--secondary) 75%, #ffffff);
    --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.4);
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 8px 24px rgb(0 0 0 / 0.5);
    --shadow-lg: 0 2px 6px rgb(0 0 0 / 0.4), 0 16px 40px rgb(0 0 0 / 0.5), 0 32px 72px rgb(0 0 0 / 0.35);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}
main { flex: 1 0 auto; width: 100%; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* Premium typography: display font for headings, tighter tracking at large sizes */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.18;
}

/* Premium selections & scrollbar */
::selection { background: color-mix(in srgb, var(--primary) 26%, transparent); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: color-mix(in srgb, var(--text-soft) 38%, transparent);
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover { background: color-mix(in srgb, var(--text-soft) 58%, transparent); background-clip: content-box; }

:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
    border-radius: 4px;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 1rem;
}
@media (min-width: 768px) { .container { padding-inline: 1.5rem; } }

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute; left: -9999px; top: 0;
    background: var(--primary); color: #fff;
    padding: .6rem 1rem; z-index: 200; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* SVG icon utility — scales with font-size (replaces emoji icons) */
.ico { width: 1em; height: 1em; vertical-align: -0.15em; flex: 0 0 auto; }
.empty-icon .ico { width: 64px; height: 64px; stroke-width: 1.5; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .65rem 1.25rem;
    border-radius: var(--radius-btn);
    border: 1px solid transparent;
    font-weight: 600;
    font-size: .925rem;
    line-height: 1.25;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, border-color .15s ease;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--primary-dark); box-shadow: var(--shadow-glow); }
.btn-outline { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-outline:hover { border-color: var(--primary-text); color: var(--primary-text); }
.btn-ghost { background: transparent; color: var(--text-soft); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
/* WhatsApp green darkened so white label text keeps 4.5:1 (raw #25d366 = 1.98:1) */
.btn-wa { background: #128c56; color: #fff; }
.btn-wa:hover { background: #0f7a4a; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-block { width: 100%; }
.btn-lg { padding: .85rem 1.6rem; font-size: 1rem; }
.btn-sm { padding: .4rem .8rem; font-size: .825rem; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* ---------- Badges ---------- */
.badge {
    display: inline-flex; align-items: center;
    padding: .15rem .6rem;
    border-radius: 999px;
    font-size: .7rem; font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.badge-featured { background: var(--secondary); color: #451a03; }
.badge-discount { background: var(--danger); color: #fff; }
.badge-stock { background: var(--surface-2); color: var(--text-soft); border: 1px solid var(--border); }
.badge-open { background: #dcfce7; color: #166534; }
.badge-closed { background: #fee2e2; color: #991b1b; }

/* Brand mark (premium SVG logo fallback) */
.brand-mark { display: inline-flex; flex: 0 0 auto; }
.brand-mark svg { width: 36px; height: 36px; display: block; filter: drop-shadow(0 2px 6px rgb(0 0 0 / .18)); border-radius: 12px; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: color-mix(in srgb, var(--surface) 82%, transparent);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid var(--border);
}
.header-inner {
    display: flex; align-items: center; gap: 1rem;
    height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.05rem; min-width: 0; letter-spacing: -.02em; }
.brand img { height: 34px; width: auto; }
.brand-name { color: var(--text); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 480px) { .brand-name { max-width: 38vw; font-size: .95rem; } }

.main-nav { display: none; margin-inline: auto; }
.main-nav ul { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.main-nav a {
    position: relative;
    display: block; padding: .5rem .9rem;
    border-radius: 999px;
    font-weight: 500; color: var(--text-soft);
    transition: background .15s, color .15s;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { background: var(--surface-2); color: var(--primary-text); }
.main-nav a[aria-current="page"]::after {
    content: ""; position: absolute;
    left: .9rem; right: .9rem; bottom: .15rem; height: 2px;
    border-radius: 2px;
    background: var(--primary-text);
}
@media (min-width: 1024px) { .main-nav { display: block; } }

.header-actions { display: flex; align-items: center; gap: .25rem; margin-left: auto; flex-shrink: 0; }
/* Store status chip is redundant on tiny headers — footer + homepage still show it */
@media (max-width: 767px) { .header-actions .store-status { display: none; } }
.icon-btn {
    position: relative;
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px;
    border-radius: 999px; border: none; background: transparent;
    color: var(--text); cursor: pointer;
    transition: background .15s;
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn svg { width: 22px; height: 22px; }
.cart-count {
    position: absolute; top: 2px; right: 0;
    min-width: 18px; height: 18px;
    display: flex; align-items: center; justify-content: center;
    padding: 0 4px;
    background: var(--secondary); color: #451a03;
    border-radius: 999px;
    font-size: .68rem; font-weight: 800;
}

/* Search bar (header, expands on mobile below) */
.header-search { flex: 1; max-width: 420px; min-width: 0; }
/* .search-form sets display:flex below — guard the mobile-hidden state with higher specificity */
.search-form.header-search { display: none; }
@media (min-width: 1024px) { .search-form.header-search { display: block; } }
.search-form { display: flex; min-width: 0; }
.search-input {
    flex: 1;
    padding: .55rem 1rem;
    border: 1px solid var(--border);
    border-right: 0;
    border-radius: var(--radius-btn) 0 0 var(--radius-btn);
    background: var(--bg);
    color: var(--text);
    font-size: .9rem;
}
.search-input:focus { outline: none; border-color: var(--primary-text); }
.search-submit {
    padding: 0 .9rem;
    border: 1px solid var(--border);
    border-left: 0;
    border-radius: 0 var(--radius-btn) var(--radius-btn) 0;
    background: var(--surface-2);
    color: var(--text-soft);
    cursor: pointer;
}
.search-submit:hover { color: var(--primary-text); }

/* ---------- Bottom navigation (mobile) ---------- */
.bottom-nav {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
    display: grid; grid-template-columns: repeat(5, 1fr);
    background: var(--surface);
    border-top: 1px solid var(--border);
    height: var(--bottomnav-h);
    padding-bottom: env(safe-area-inset-bottom);
}
.bottom-nav a {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 2px;
    font-size: .68rem; font-weight: 600;
    color: var(--text-soft);
    position: relative;
}
.bottom-nav a[aria-current="page"] { color: var(--primary-text); }
.bottom-nav svg { width: 22px; height: 22px; }
.bottom-nav .cart-count { top: 4px; right: calc(50% - 22px); }
@media (min-width: 1024px) { .bottom-nav { display: none; } body { padding-bottom: 0; } }
body { padding-bottom: calc(var(--bottomnav-h) + env(safe-area-inset-bottom)); }
@media (min-width: 1024px) { body { padding-bottom: 0; } }

/* ---------- Hero / banner slider ---------- */
.hero { position: relative; margin-top: 1rem; }
.hero-slider { position: relative; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.hero-slide { display: none; position: relative; }
.hero-slide.active { display: block; }
.hero-slide img { width: 100%; height: 340px; object-fit: cover; display: block; }
@media (min-width: 768px) { .hero-slide img { height: 480px; } }
.hero-slide.has-image .hero-content {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; justify-content: center;
    padding: clamp(1rem, 4vw, 3rem);
    /* Scrim sized so white text keeps >= 4.5:1 even over a worst-case white image */
    background: linear-gradient(90deg, rgb(0 0 0 / .8) 0%, rgb(0 0 0 / .65) 60%, rgb(0 0 0 / .35) 100%);
    color: #fff;
}
@media (max-width: 767px) {
    /* Text spans nearly the full image on phones — vertical gradient keeps center >= the audited 0.62 scrim */
    .hero-slide.has-image .hero-content { background: linear-gradient(180deg, rgb(0 0 0 / .55) 0%, rgb(0 0 0 / .88) 100%); }
}
.hero-content { padding: 2rem 1.5rem; }
.hero-content h2, .hero-content p { margin: 0 0 .5rem; max-width: 34rem; }
.hero-content h2 { font-size: clamp(1.75rem, 4.5vw, 3.1rem); font-weight: 800; line-height: 1.12; letter-spacing: -.03em; }
.hero-content p { font-size: clamp(.95rem, 2vw, 1.15rem); opacity: .92; }
.hero-cta { margin-top: 1rem; display: inline-flex; }
.hero-dots {
    position: absolute; bottom: .8rem; left: 0; right: 0;
    display: flex; justify-content: center; gap: .5rem;
}
.hero-dot {
    width: 9px; height: 9px; border-radius: 999px;
    border: none; background: rgb(255 255 255 / .75); cursor: pointer; padding: 0;
    box-shadow: 0 0 0 1px rgb(0 0 0 / .35);
    transition: width .2s, background .2s;
}
.hero-dot.active { width: 24px; background: #fff; }
.hero-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 40px; height: 40px; border-radius: 999px;
    border: none; cursor: pointer;
    background: rgb(255 255 255 / .85); color: #111;
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-sm);
}
.hero-arrow.prev { left: .75rem; }
.hero-arrow.next { right: .75rem; }

/* Placeholder hero (no image) — premium mesh gradient */
.hero-placeholder {
    background:
        radial-gradient(900px 420px at 85% -20%, color-mix(in srgb, var(--secondary) 45%, transparent), transparent 60%),
        radial-gradient(700px 380px at -10% 115%, color-mix(in srgb, #ffffff 16%, transparent), transparent 55%),
        linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
}

/* ---------- Sections ---------- */
.section { padding-block: 2.25rem; }
@media (min-width: 768px) { .section { padding-block: 3.5rem; } }
.section-head {
    display: flex; align-items: end; justify-content: space-between;
    gap: 1rem; margin-bottom: 1.5rem;
}
.section-title { font-size: clamp(1.35rem, 3vw, 2rem); font-weight: 800; margin: 0; letter-spacing: -.03em; }
.section-sub { color: var(--text-soft); margin: .25rem 0 0; font-size: .925rem; }
.section-link { color: var(--primary-text); font-weight: 600; font-size: .9rem; white-space: nowrap; }
.section-link:hover { text-decoration: underline; }

/* ---------- Category chips/cards ---------- */
.category-grid {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
}
@media (min-width: 640px) { .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .category-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.category-card {
    display: flex; flex-direction: column; align-items: center; gap: .6rem;
    padding: 1.1rem .75rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: box-shadow .15s, transform .15s, border-color .15s;
    text-align: center;
}
.category-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: color-mix(in srgb, var(--primary) 35%, var(--border)); }
.category-card img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; transition: transform .3s var(--ease-out); }
.category-icon { transition: transform .3s var(--ease-out); }
.category-card:hover img, .category-card:hover .category-icon { transform: scale(1.1); }
.category-icon {
    width: 56px; height: 56px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: color-mix(in srgb, var(--primary) 12%, var(--surface));
    color: var(--primary-text);
}
.category-icon svg { width: 26px; height: 26px; }
.category-name { font-weight: 600; font-size: .85rem; }
.category-count { font-size: .72rem; color: var(--text-soft); }

/* ---------- Product cards & grid ---------- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .9rem;
}
@media (min-width: 640px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; } }
@media (min-width: 1024px) { .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.product-card {
    position: relative;
    display: flex; flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow .25s var(--ease-out), transform .25s var(--ease-out), border-color .25s;
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: color-mix(in srgb, var(--primary) 25%, var(--border)); }
.product-media {
    position: relative;
    aspect-ratio: 4 / 5;
    background: var(--surface-2);
    display: block;
    overflow: hidden;
}
.product-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s var(--ease-out); }
.product-card:hover .product-media img, .product-card:focus-within .product-media img { transform: scale(1.06); }
.product-media .no-image {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-soft); font-size: 1.6rem;
}
/* Generic placeholder (quick view, empty states) */
.no-image {
    display: flex; align-items: center; justify-content: center;
    background: var(--surface-2);
    aspect-ratio: 4 / 5;
    border-radius: inherit;
}
.no-image svg { width: 56px; height: 56px; border-radius: 14px; }
.product-badges { position: absolute; top: .6rem; left: .6rem; display: flex; flex-wrap: wrap; gap: .35rem; max-width: calc(100% - 1.2rem); }
.product-badges .badge { backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.product-quick {
    position: absolute; right: .6rem; bottom: .6rem;
    max-width: calc(100% - 1.2rem);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    opacity: 0; transform: translateY(6px);
    transition: opacity .18s, transform .18s;
}
@media (max-width: 400px) { .product-quick { font-size: .68rem; padding: .3rem .5rem; } }
.product-card:hover .product-quick, .product-card:focus-within .product-quick { opacity: 1; transform: none; }
@media (hover: none) { .product-quick { opacity: 1; transform: none; } }
.product-body { display: flex; flex-direction: column; gap: .3rem; padding: .85rem; flex: 1; }
.product-cat { font-size: .7rem; color: var(--text-soft); text-transform: uppercase; letter-spacing: .05em; }
.product-name {
    font-weight: 700; font-size: .95rem; line-height: 1.35;
    letter-spacing: -.01em;
    margin: 0;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--text);
}
.product-name:hover { color: var(--primary-text); }
.product-price { margin-top: auto; display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem; }
.price-now { font-weight: 800; color: var(--primary-text); font-size: 1rem; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.price-was { color: var(--text-soft); text-decoration: line-through; font-size: .8rem; }
.product-stock-note { font-size: .72rem; color: var(--text-soft); }

/* ---------- Skeletons ---------- */
.skeleton {
    background: linear-gradient(90deg, var(--surface-2) 25%, var(--border) 50%, var(--surface-2) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite;
    border-radius: var(--radius);
}
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ---------- Product detail ---------- */
.product-detail {
    display: grid; gap: 1.5rem;
    margin-top: 1.5rem;
}
@media (min-width: 1024px) {
    .product-detail { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; }
}
.gallery-main {
    aspect-ratio: 1 / 1;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface-2);
    border: 1px solid var(--border);
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumbs { display: flex; gap: .5rem; margin-top: .6rem; overflow-x: auto; padding-bottom: .25rem; }
.gallery-thumb {
    width: 64px; height: 64px; flex: 0 0 auto;
    border-radius: 10px; overflow: hidden;
    border: 2px solid transparent; cursor: pointer;
    background: var(--surface-2);
    padding: 0;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb.active { border-color: var(--primary-text); }

.detail-info h1 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin: 0 0 .35rem; line-height: 1.15; letter-spacing: -.025em; }
.detail-meta { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; color: var(--text-soft); font-size: .85rem; }
.detail-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: .6rem; margin: 1rem 0; }
.detail-price .price-now { font-size: 1.75rem; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.detail-desc { color: var(--text-soft); white-space: pre-line; }
.detail-actions { display: flex; flex-direction: column; gap: .6rem; margin-top: 1.25rem; }
@media (min-width: 480px) { .detail-actions { flex-direction: row; } }

.variant-group { margin: 1rem 0; }
.variant-group-label { display: block; font-weight: 600; font-size: .875rem; margin-bottom: .4rem; }
.variant-options { display: flex; flex-wrap: wrap; gap: .5rem; }
.variant-option input { position: absolute; opacity: 0; }
.variant-option span {
    display: inline-block;
    padding: .45rem .95rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: .85rem;
    cursor: pointer;
    transition: all .15s;
    background: var(--surface);
}
.variant-option input:checked + span {
    background: var(--primary); color: #fff; border-color: var(--primary-text);
}
.variant-option input:focus-visible + span { outline: 3px solid var(--primary); outline-offset: 2px; }

.qty-selector { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: var(--radius-btn); overflow: hidden; }
.qty-btn {
    width: 40px; height: 42px; border: none; background: var(--surface-2);
    font-size: 1.15rem; cursor: pointer; color: var(--text);
}
.qty-btn:hover { background: var(--border); }
.qty-input { width: 56px; height: 42px; text-align: center; border: none; background: var(--surface); color: var(--text); font-weight: 600; }
.qty-input::-webkit-outer-spin-button, .qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty-input { -moz-appearance: textfield; appearance: textfield; }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 1rem; }
.form-field label { display: block; font-weight: 600; font-size: .875rem; margin-bottom: .35rem; }
.form-field input, .form-field textarea, .form-field select {
    width: 100%;
    padding: .65rem .9rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-btn);
    background: var(--surface);
    color: var(--text);
    font-family: inherit;
    font-size: .95rem;
}
.form-field textarea { min-height: 110px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
    outline: none; border-color: var(--primary-text);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent);
}
.form-hint { font-size: .78rem; color: var(--text-soft); margin-top: .3rem; }
.form-error { color: var(--danger-text); font-size: .8rem; margin-top: .3rem; }

/* ---------- Cards / panels ---------- */
.panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
}
.order-summary-line { display: flex; justify-content: space-between; padding: .35rem 0; font-size: .925rem; }
.order-summary-total { border-top: 1px solid var(--border); margin-top: .5rem; padding-top: .75rem; font-weight: 800; font-size: 1.05rem; }

/* ---------- Cart table ---------- */
.cart-line {
    display: grid;
    grid-template-columns: 84px 1fr auto;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    align-items: start;
}
@media (min-width: 768px) { .cart-line { grid-template-columns: 96px 1fr auto auto; align-items: center; } }
.cart-line img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); }
.cart-line-info h3 { margin: 0 0 .15rem; font-size: .95rem; }
.cart-line-variant { font-size: .78rem; color: var(--text-soft); }
.cart-line-actions { display: flex; gap: .5rem; align-items: center; margin-top: .5rem; }
.link-danger { color: var(--danger-text); background: none; border: none; cursor: pointer; font-size: .8rem; padding: 0; }
.link-danger:hover { text-decoration: underline; }

/* ---------- Testimonials ---------- */
.testimonial-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .testimonial-grid { grid-template-columns: repeat(3, 1fr); } }
.testimonial-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    display: flex; flex-direction: column; gap: .75rem;
}
.testimonial-head { display: flex; align-items: center; gap: .75rem; }
.testimonial-avatar {
    width: 44px; height: 44px; border-radius: 999px;
    background: color-mix(in srgb, var(--primary) 15%, var(--surface));
    color: var(--primary-text);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; overflow: hidden;
}
.testimonial-avatar img { width: 100%; height: 100%; object-fit: cover; }
.testimonial-name { font-weight: 700; font-size: .925rem; }
.stars { color: var(--secondary-text); letter-spacing: 2px; font-size: .85rem; }
.testimonial-content { color: var(--text-soft); font-size: .9rem; margin: 0; }

/* ---------- Empty states ---------- */
.empty-state {
    text-align: center;
    padding: 3.5rem 1.5rem;
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}
.empty-icon { font-size: 2.6rem; margin-bottom: .5rem; }
.empty-state h3 { margin: 0 0 .35rem; font-size: 1.15rem; }
.empty-state p { margin: 0 auto 1.25rem; color: var(--text-soft); max-width: 30rem; }

/* ---------- Footer ---------- */
.site-footer {
    margin-top: 3rem;
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 2.5rem 0 1.5rem;
}
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-brand p { color: var(--text-soft); font-size: .9rem; max-width: 26rem; }
.footer-col h4 { margin: 0 0 .75rem; font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.footer-col a { color: var(--text-soft); font-size: .9rem; }
.footer-col a:hover { color: var(--primary-text); }
.footer-bottom {
    margin-top: 2rem; padding-top: 1.25rem;
    border-top: 1px solid var(--border);
    display: flex; flex-wrap: wrap; gap: .5rem;
    justify-content: space-between;
    color: var(--text-soft); font-size: .8rem;
}

/* ---------- Floating links ---------- */
.floating-links {
    position: fixed; right: 1rem; bottom: calc(var(--bottomnav-h) + 1rem + env(safe-area-inset-bottom));
    z-index: 90;
    display: flex; flex-direction: column; gap: .6rem;
}
@media (min-width: 1024px) { .floating-links { bottom: 1.5rem; } }
.floating-btn {
    width: 50px; height: 50px;
    border-radius: 999px;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    box-shadow: var(--shadow);
    transition: transform .15s;
}
.floating-btn:hover { transform: scale(1.08); }
.floating-btn svg { width: 24px; height: 24px; fill: currentColor; }

/* ---------- Quick view modal ---------- */
.modal-backdrop {
    position: fixed; inset: 0; z-index: 150;
    background: rgb(0 0 0 / .5);
    display: none;
    align-items: center; justify-content: center;
    padding: 1rem;
}
.modal-backdrop.open { display: flex; }
.modal {
    background: var(--surface);
    color: var(--text);
    border-radius: var(--radius);
    max-width: 720px; width: 100%;
    max-height: 90dvh; overflow: auto;
    box-shadow: var(--shadow-lg);
    position: relative;
}
.modal-close {
    position: absolute; top: .6rem; right: .6rem; z-index: 2;
    width: 36px; height: 36px; border-radius: 999px;
    border: none; background: var(--surface-2); color: var(--text);
    font-size: 1.1rem; cursor: pointer;
}
.quickview-grid { display: grid; grid-template-columns: 1fr; }
@media (min-width: 640px) { .quickview-grid { grid-template-columns: 1fr 1fr; } }
.quickview-media { background: var(--surface-2); aspect-ratio: 1; }
.quickview-media img { width: 100%; height: 100%; object-fit: cover; }
.quickview-body { padding: 1.25rem; }

/* ---------- Toast ---------- */
.toast-region { position: fixed; bottom: 1rem; left: 50%; transform: translateX(-50%); z-index: 300; display: grid; gap: .5rem; width: min(92vw, 420px); }
.toast {
    background: var(--text); color: var(--bg);
    padding: .75rem 1.1rem;
    border-radius: var(--radius-btn);
    box-shadow: var(--shadow-lg);
    font-size: .9rem; font-weight: 500;
    animation: toast-in .25s ease;
}
.toast-success { background: #15803d; color: #fff; }
.toast-error { background: var(--danger); color: #fff; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Store status chip ---------- */
.store-status {
    display: inline-flex; align-items: center; gap: .4rem;
    font-size: .75rem; font-weight: 700;
    padding: .2rem .7rem;
    border-radius: 999px;
}
.store-status .dot { width: 8px; height: 8px; border-radius: 999px; }
.store-status.open .dot { background: var(--success); }
.store-status.closed .dot { background: var(--danger); }
.store-status.open { color: var(--success-text); }
.store-status.closed { color: var(--danger-text); }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { font-size: .8rem; color: var(--text-soft); padding-top: 1rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: .35rem; color: var(--text-soft); }
.breadcrumbs a:hover { color: var(--primary-text); }

/* ---------- Pagination ---------- */
.pagination { display: flex; justify-content: center; gap: .4rem; margin-top: 2rem; }
.page-link {
    min-width: 40px; height: 40px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--border); border-radius: 10px;
    background: var(--surface); color: var(--text);
    font-weight: 600; font-size: .9rem;
    padding: 0 .6rem;
}
.page-link:hover { border-color: var(--primary-text); color: var(--primary-text); }
.page-link[aria-current="page"] { background: var(--primary); border-color: var(--primary-text); color: #fff; }

/* ---------- Alerts ---------- */
.alert { padding: .8rem 1rem; border-radius: var(--radius-btn); font-size: .9rem; margin-bottom: 1rem; }
.alert-error { background: #fee2e2; color: #991b1b; }
.alert-success { background: #dcfce7; color: #166534; }
html[data-theme="dark"] .alert-error { background: rgb(220 38 38 / .2); color: #fecaca; }
html[data-theme="dark"] .alert-success { background: rgb(22 163 74 / .2); color: #bbf7d0; }

/* ---------- About / Contact / static ---------- */
.page-hero { padding: 2.5rem 0 1rem; }
.page-hero h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin: 0 0 .4rem; letter-spacing: -.02em; }
.page-hero p { color: var(--text-soft); max-width: 42rem; margin: 0; }
.about-image { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.contact-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
.contact-item {
    display: flex; gap: .9rem; align-items: flex-start;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1.1rem;
}
.contact-item .icon {
    width: 42px; height: 42px; flex: 0 0 auto;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: color-mix(in srgb, var(--primary) 12%, var(--surface));
    color: var(--primary-text);
}
.contact-item .icon svg { width: 20px; height: 20px; fill: currentColor; }
.map-frame { width: 100%; border: 0; border-radius: var(--radius); min-height: 320px; }
.social-row { display: flex; gap: .6rem; flex-wrap: wrap; }

/* ---------- Maintenance ---------- */
.maintenance-page {
    min-height: 100dvh;
    display: flex; align-items: center; justify-content: center;
    text-align: center; padding: 2rem;
    background:
        radial-gradient(900px 400px at 50% -10%, color-mix(in srgb, var(--primary) 20%, transparent), transparent),
        var(--bg);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
    html { scroll-behavior: auto; }
}

/* ============================================================
   Premium polish — v1.1 refinement
   ============================================================ */

/* ---------- Testimonial cards ---------- */
.testimonial-card {
    transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.testimonial-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.testimonial-content {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 500;
    letter-spacing: -.01em;
    position: relative;
    padding-left: 1.1rem;
}
.testimonial-content::before {
    content: "\201C";
    position: absolute; left: 0; top: -.2rem;
    font-size: 1.6rem; line-height: 1;
    color: var(--primary-text);
    font-style: normal;
    font-weight: 800;
    opacity: .85;
}

/* ---------- Floating buttons ---------- */
.floating-btn { transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out); }
.floating-btn:hover { transform: scale(1.1) translateY(-2px); box-shadow: var(--shadow-lg); }

/* ---------- Panel / CTA ---------- */
.panel { transition: box-shadow .25s var(--ease-out); }
.panel:hover { box-shadow: var(--shadow); }

/* ---------- Scroll reveal (classes applied by app.js) ---------- */
.reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .55s var(--ease-out), transform .55s var(--ease-out);
    transition-delay: var(--reveal-delay, 0s);
    will-change: opacity, transform;
}
.reveal.reveal-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
}
