:root {
    --ivory: #f6f1e8;
    --paper: #fbf7f1;
    --card: #fffdfb;
    --ink: #2b221c;
    --muted: #5e534b;
    --line: #e5d8c6;
    --maroon: #6e2430;
    --maroon-deep: #47161e;
    --terra: #b85c3c;
    --gold: #8d6b32;
    --green: #1c6843;
    --green-deep: #134830;
    --shadow: 0 16px 40px rgba(71, 22, 30, 0.08);
    --radius: 18px;
    --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    --sans: Outfit, "Segoe UI", sans-serif;
    --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background:
        radial-gradient(circle at 100% 0%, rgba(184, 92, 60, 0.08), transparent 28%),
        var(--ivory);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 1.05rem;
    line-height: 1.65;
}
img { max-width: 100%; height: auto; }
a { color: var(--maroon-deep); }
h1, h2, h3 {
    font-family: var(--serif);
    font-weight: 600;
    line-height: 1.15;
    color: var(--maroon-deep);
    margin: 0 0 0.6rem;
}
h1 { font-size: clamp(2.4rem, 5vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.7rem); }
h3 { font-size: 1.55rem; }
p { margin: 0 0 0.9rem; }
.lede { font-size: 1.15rem; color: var(--muted); }
.container { width: min(var(--max), calc(100% - 2rem)); margin: 0 auto; }
.narrow { width: min(740px, calc(100% - 2rem)); }
.section { padding: 3.2rem 0; }
.section-tight { padding-top: 0.5rem; }
.section-head { margin-bottom: 1.4rem; max-width: 40rem; }
.eyebrow {
    margin: 0 0 0.4rem;
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.skip-link {
    position: absolute;
    left: 1rem;
    top: -3rem;
    background: var(--maroon);
    color: white;
    padding: 0.5rem 0.8rem;
    z-index: 20;
}
.skip-link:focus { top: 1rem; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(251, 247, 241, 0.94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(10px);
}
.header-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 84px;
}
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: inherit; }
.brand-logo { width: 64px; height: 64px; object-fit: contain; }
.brand-name { font-family: var(--serif); font-size: 1.45rem; color: var(--maroon-deep); }
.nav-details { margin-left: auto; }
.header-actions { display: flex; }
.header-actions .btn-whatsapp { display: none; }
.nav-details[open] { width: 100%; order: 5; }
.menu-toggle {
    list-style: none;
    cursor: pointer;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.45rem 0.85rem;
    background: white;
}
.menu-toggle::-webkit-details-marker { display: none; }
.site-nav { display: flex; flex-direction: column; gap: 0.2rem; padding: 0.6rem 0; }
.site-nav a { text-decoration: none; padding: 0.35rem 0; color: var(--ink); }
.site-nav a.is-current { color: var(--maroon); font-weight: 600; }
.header-actions { gap: 0.5rem; align-items: center; }

.btn, button, .menu-toggle, summary { font: inherit; }
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 46px;
    padding: 0.65rem 1rem;
    border-radius: 999px;
    border: 1px solid transparent;
    text-decoration: none;
    cursor: pointer;
    font-weight: 600;
}
.btn-primary { background: var(--maroon); color: white; }
.btn-primary:hover { background: var(--maroon-deep); }
.btn-whatsapp { background: var(--green); color: white; }
.btn-whatsapp:hover { background: var(--green-deep); }
.btn-ghost, .btn-line { background: transparent; border-color: var(--line); color: var(--maroon-deep); }
.btn-light { background: white; color: var(--maroon-deep); }
.button-row, .card-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1rem 0; }
.text-link { font-weight: 600; }

.hero { padding: 1.5rem 0 1rem; }
.hero-grid, .split, .detail-grid, .footer-grid { display: grid; gap: 1.5rem; }
.media {
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #f3eee6;
    border-radius: var(--radius);
    aspect-ratio: 1 / 1;
}
.media img { width: 100%; height: 100%; object-fit: contain; }
.media-hero { aspect-ratio: 4 / 5; box-shadow: var(--shadow); }
.media-category { aspect-ratio: 4 / 3; border-radius: 14px 14px 0 0; }
.media.media-detail {
    aspect-ratio: auto;
    display: block;
    height: auto;
    background: #f7f2ea;
}
.media.media-detail img {
    width: 100%;
    height: auto;
    max-height: 640px;
    object-fit: contain;
    object-position: top center;
}
.detail-copy { margin-top: 0; }
.detail-copy h1 { margin-top: 0; }
.qty-hint { color: var(--muted); font-size: 0.85rem; font-weight: 500; }
.price-was { color: var(--muted); text-decoration: line-through; margin-right: 0.35rem; }
.price-now { font-family: var(--serif); font-size: 1.7rem; color: var(--maroon-deep); }
.save-line { color: var(--green-deep); font-weight: 700; }
.price-table tr.is-current { background: #f6ead3; }
.search-field { max-width: 28rem; margin: 0.8rem 0 0.2rem; }
.media-fallback {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    min-height: 8rem;
    color: var(--muted);
    text-align: center;
    padding: 1rem;
}

.category-grid, .product-grid { display: grid; gap: 1rem; }
.category-card, .product-card, .note-card, .enquiry-card, .band, .price-box {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.category-card {
    display: flex;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
    overflow: hidden;
}
.category-card > span:last-child, .category-card-note { padding: 1rem 1.1rem 1.2rem; display: grid; gap: 0.35rem; }
.category-card strong { font-family: var(--serif); font-size: 1.45rem; color: var(--maroon-deep); }
.category-card-note { background: var(--maroon); color: #fffaf4; min-height: 100%; justify-content: end; }
.category-card-note strong { color: white; }
.product-card { overflow: hidden; display: flex; flex-direction: column; }
.card-body { padding: 1rem 1rem 1.15rem; display: flex; flex-direction: column; gap: 0.15rem; flex: 1; }
.card-body h3 { margin-bottom: 0.2rem; }
.card-body h3 a { text-decoration: none; }
.unit-line, .fine-print, .note, .assumption { color: var(--muted); font-size: 0.95rem; }
.price, .line-total { font-weight: 600; }
.bulk-flag[hidden],
.assumption[hidden] { display: none !important; }
.bulk-flag {
    display: inline-block;
    margin: 0.2rem 0;
    background: #e7f3ec;
    color: var(--green-deep);
    border-radius: 999px;
    padding: 0.15rem 0.6rem;
    font-size: 0.85rem;
    font-weight: 600;
}
.assumption { color: #7a3e12; }
.band {
    display: grid;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--maroon);
    color: #fff8f2;
    border: 0;
}
.band h2, .band .eyebrow { color: #f3d7a2; }
.band p { color: #fff8f2; }
.note-card, .enquiry-card, .price-box { padding: 1.1rem; }
.stack { display: grid; gap: 0.75rem; }
label { display: grid; gap: 0.3rem; font-weight: 600; font-size: 0.95rem; }
input, select, textarea {
    width: 100%;
    border: 1px solid #d9cbb8;
    border-radius: 12px;
    padding: 0.7rem 0.8rem;
    font: inherit;
    color: inherit;
    background: white;
}
textarea { resize: vertical; }
.field-tight { margin-top: 0.4rem; }
.filters { display: flex; gap: 0.45rem; flex-wrap: wrap; margin: 1rem 0 1.4rem; }
.filters a {
    text-decoration: none;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    background: white;
}
.filters a.is-current { background: var(--maroon); color: white; border-color: var(--maroon); }
.facts { padding-left: 1.1rem; }
.facts li { margin: 0.25rem 0; }
.thumbs { display: flex; gap: 0.5rem; overflow-x: auto; margin-top: 0.7rem; padding-bottom: 0.2rem; }
.thumb {
    width: 76px;
    height: 76px;
    padding: 0;
    border-radius: 12px;
    border: 2px solid transparent;
    background: #f3eee6;
    overflow: hidden;
    cursor: pointer;
}
.thumb.is-current, .thumb[aria-pressed="true"] { border-color: var(--maroon); }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.variant-set { border: 1px solid var(--line); border-radius: 14px; padding: 0.8rem; margin: 1rem 0; }
.variant-options { display: grid; gap: 0.45rem; }
.variant-option { display: flex; align-items: center; gap: 0.6rem; font-weight: 500; }
.variant-option input { width: auto; }
.mini-thumb { width: 42px; height: 42px; border-radius: 8px; overflow: hidden; background: #f3eee6; display: inline-grid; }
.mini-thumb img { width: 42px; height: 42px; object-fit: contain; }
.table-wrap { overflow-x: auto; }
.price-table { width: 100%; border-collapse: collapse; background: white; }
.price-table th, .price-table td { text-align: left; padding: 0.75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.price-table caption { text-align: left; margin-bottom: 0.7rem; color: var(--muted); }
.breadcrumb { color: var(--muted); }
.breadcrumb a { color: inherit; }
.empty-state { padding: 1rem; background: white; border-radius: 12px; }
.prose h2 { margin-top: 1.6rem; }

.site-footer { background: var(--maroon-deep); color: #f8efe6; padding: 2.5rem 0 6rem; margin-top: 1rem; }
.site-footer a { color: #f8efe6; }
.site-footer h2 { color: #f3d7a2; font-size: 1.4rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0.3rem 0; }
.footer-base { border-top: 1px solid rgba(255, 255, 255, 0.15); margin-top: 1.4rem; padding-top: 1rem; }
.brand-footer .brand-name { color: white; }
.float-whatsapp {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 25;
    background: var(--green);
    color: white;
    text-decoration: none;
    font-weight: 700;
    border-radius: 999px;
    padding: 0.85rem 1.05rem;
    box-shadow: 0 10px 24px rgba(19, 72, 48, 0.28);
}
.basket-drawer[hidden] { display: none; }
.basket-drawer {
    position: fixed;
    inset: 0;
    background: rgba(43, 34, 28, 0.45);
    z-index: 40;
    display: grid;
    justify-content: end;
}
.basket-panel {
    width: min(420px, 100%);
    height: 100%;
    overflow: auto;
    background: var(--paper);
    padding: 1rem;
}
.basket-head, .basket-line { display: flex; justify-content: space-between; gap: 0.7rem; }
.basket-line { border-bottom: 1px solid var(--line); padding: 0.7rem 0; }
.icon-button, .qty-step {
    border: 1px solid var(--line);
    background: white;
    border-radius: 10px;
    min-width: 2.2rem;
    min-height: 2.2rem;
    cursor: pointer;
}
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.form-status { min-height: 1.2rem; font-weight: 600; }
.form-error { color: #8a1f2b; }

:focus-visible {
    outline: 3px solid var(--maroon);
    outline-offset: 2px;
}
@media (min-width: 800px) {
    .menu-toggle { display: none; }
    .nav-details { display: contents; }
    .site-nav { flex-direction: row; gap: 0.9rem; padding: 0; }
    .header-actions .btn-whatsapp { display: inline-flex; }
    .hero-grid { grid-template-columns: 1.1fr 0.9fr; align-items: center; }
    .detail-grid { grid-template-columns: 1.05fr 0.95fr; align-items: start; }
    .split { grid-template-columns: 1.1fr 0.9fr; align-items: start; }
    .category-grid { grid-template-columns: repeat(3, 1fr); }
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1.4fr 0.8fr 0.9fr 0.8fr; }
    .band { grid-template-columns: 1fr auto; align-items: center; }
}
@media (min-width: 560px) and (max-width: 799px) {
    .product-grid, .category-grid, .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}
