*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg:        #0c0b0a;
    --bg2:       #161412;
    --bg3:       #1f1c19;
    --bg4:       #272320;
    --border:    #2a2622;
    --border2:   #3a3530;
    --text:      #ede8e1;
    --text2:     #a09890;
    --text3:     #6a6258;
    --gold:      #c8a255;
    --gold2:     #a07a30;
    --gold-soft: rgba(200,162,85,.10);
    --red:       #c84444;
    --radius:    10px;
    --radius-lg: 16px;
    --max-w:     1160px;
    --shadow:    0 4px 24px rgba(0,0,0,.5);
    --shadow-lg: 0 8px 48px rgba(0,0,0,.7);
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 15px;
    line-height: 1.65;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── TYPOGRAPHY ─────────────────────────────────────────────────────────── */
.serif { font-family: 'Playfair Display', serif; }

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    line-height: 1.2;
}

/* ── HEADER ─────────────────────────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(12,11,10,.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    gap: 32px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo-icon { font-size: 22px; }

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 14px;
    line-height: 1.2;
    color: var(--text);
}

.logo-text em {
    color: var(--gold);
    font-style: italic;
}

.site-nav {
    display: flex;
    gap: 24px;
    flex: 1;
}

.site-nav a {
    font-size: 13.5px;
    color: var(--text2);
    transition: color .15s;
    font-weight: 400;
}

.site-nav a:hover { color: var(--gold); }

.header-search {
    display: flex;
    align-items: center;
    background: var(--bg3);
    border: 1px solid var(--border2);
    border-radius: 24px;
    overflow: hidden;
    transition: border-color .15s;
}

.header-search:focus-within { border-color: var(--gold); }

.header-search input {
    background: none;
    border: none;
    outline: none;
    color: var(--text);
    font-family: inherit;
    font-size: 13px;
    padding: 8px 14px;
    width: 200px;
}

.header-search input::placeholder { color: var(--text3); }

.header-search button {
    background: none;
    border: none;
    color: var(--text3);
    font-size: 18px;
    padding: 8px 14px 8px 8px;
    cursor: pointer;
    transition: color .15s;
}

.header-search button:hover { color: var(--gold); }

/* ── HERO ───────────────────────────────────────────────────────────────── */
.hero {
    position: relative;
    padding: 96px 24px 80px;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 70% at 50% 0%, rgba(200,162,85,.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
    border: 1px solid rgba(200,162,85,.3);
    padding: 4px 14px;
    border-radius: 20px;
}

.hero h1 {
    font-size: clamp(36px, 6vw, 64px);
    color: var(--text);
    margin-bottom: 16px;
}

.hero h1 em {
    color: var(--gold);
    font-style: italic;
}

.hero-sub {
    font-size: 17px;
    color: var(--text2);
    max-width: 480px;
    margin: 0 auto 40px;
}

/* ── HERO SEARCH ────────────────────────────────────────────────────────── */
.hero-search-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 56px;
}

.hero-search {
    display: flex;
    align-items: center;
    background: var(--bg2);
    border: 1px solid var(--border2);
    border-radius: 50px;
    overflow: hidden;
    width: 100%;
    max-width: 560px;
    box-shadow: var(--shadow);
    transition: border-color .2s, box-shadow .2s;
}

.hero-search:focus-within {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(200,162,85,.12), var(--shadow);
}

.hero-search input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text);
    font-family: inherit;
    font-size: 15px;
    padding: 14px 22px;
}

.hero-search input::placeholder { color: var(--text3); }

.hero-search button {
    background: var(--gold);
    border: none;
    color: #1a1208;
    font-weight: 600;
    font-size: 13px;
    font-family: inherit;
    padding: 14px 24px;
    cursor: pointer;
    transition: background .15s;
    white-space: nowrap;
}

.hero-search button:hover { background: #d4ae6a; }

/* ── SECTIONS ───────────────────────────────────────────────────────────── */
.section {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px 72px;
}

.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 28px;
}

.section-header h2 {
    font-size: 26px;
    color: var(--text);
}

.section-header a {
    font-size: 13px;
    color: var(--gold);
    transition: opacity .15s;
}

.section-header a:hover { opacity: .7; }

/* ── PRODUCT CARDS ──────────────────────────────────────────────────────── */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.product-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color .2s, transform .2s, box-shadow .2s;
    cursor: pointer;
}

.product-card:hover {
    border-color: var(--gold2);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.product-card a { display: block; }

.card-img {
    width: 100%;
    aspect-ratio: 4/3;
    background: var(--bg3);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}

.product-card:hover .card-img img { transform: scale(1.04); }

.card-img-placeholder {
    font-size: 48px;
    opacity: .25;
}

.card-body {
    padding: 16px;
}

.card-brand {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 4px;
}

.card-name {
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    color: var(--text);
    margin-bottom: 8px;
    line-height: 1.3;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
}

.tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 11px;
    background: var(--bg4);
    color: var(--text3);
    border: 1px solid var(--border);
}

.tag-gold {
    background: var(--gold-soft);
    color: var(--gold);
    border-color: rgba(200,162,85,.2);
}

.card-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text3);
}

.star { color: var(--text3); font-size: 13px; }
.star.full { color: var(--gold); }
.star.half { color: var(--gold); opacity: .5; }

/* ── BRAND CARDS ────────────────────────────────────────────────────────── */
.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.brand-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 16px;
    text-align: center;
    transition: border-color .2s, transform .2s;
    cursor: pointer;
}

.brand-card:hover {
    border-color: var(--gold2);
    transform: translateY(-2px);
}

.brand-card-name {
    font-family: 'Playfair Display', serif;
    font-size: 17px;
    margin-bottom: 4px;
}

.brand-card-count {
    font-size: 12px;
    color: var(--text3);
}

/* ── FILTER CHIPS ───────────────────────────────────────────────────────── */
.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.chip {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 24px;
    font-size: 12.5px;
    border: 1px solid var(--border2);
    color: var(--text2);
    background: var(--bg2);
    cursor: pointer;
    transition: all .15s;
    text-decoration: none;
}

.chip:hover { border-color: var(--gold2); color: var(--text); }
.chip.active { background: var(--gold-soft); border-color: var(--gold); color: var(--gold); }

/* ── SEARCH PAGE ────────────────────────────────────────────────────────── */
.search-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 36px;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 36px 24px 72px;
    align-items: start;
}

.filter-sidebar {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    position: sticky;
    top: 80px;
}

.filter-title {
    font-family: 'Playfair Display', serif;
    font-size: 15px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
    color: var(--text2);
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group-label {
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text3);
    margin-bottom: 8px;
    display: block;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    font-size: 13px;
    color: var(--text2);
    cursor: pointer;
    transition: color .1s;
}

.filter-option:hover { color: var(--text); }
.filter-option input { accent-color: var(--gold); cursor: pointer; }
.filter-option.active { color: var(--gold); }

.search-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.results-count {
    font-size: 13px;
    color: var(--text3);
}

/* ── PRODUCT PAGE ───────────────────────────────────────────────────────── */
.product-page {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 40px 24px 80px;
}

.product-layout {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 56px;
    margin-bottom: 64px;
}

.product-gallery {
    position: sticky;
    top: 80px;
}

.product-main-img {
    width: 100%;
    aspect-ratio: 1;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 12px;
}

.product-main-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-main-img-placeholder { font-size: 80px; opacity: .2; }

.product-breadcrumb {
    font-size: 12.5px;
    color: var(--text3);
    margin-bottom: 12px;
}

.product-breadcrumb a { color: var(--gold); }
.product-breadcrumb span { margin: 0 6px; }

.product-brand-link {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 8px;
    transition: opacity .15s;
}

.product-brand-link:hover { opacity: .7; }

.product-title {
    font-size: clamp(28px, 4vw, 42px);
    color: var(--text);
    margin-bottom: 6px;
}

.product-variety {
    font-size: 16px;
    color: var(--text2);
    font-style: italic;
    margin-bottom: 16px;
    font-family: 'Playfair Display', serif;
}

.product-rating-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.rating-score {
    font-size: 22px;
    font-family: 'Playfair Display', serif;
    color: var(--gold);
}

.rating-count { font-size: 12px; color: var(--text3); }

.product-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }

.product-desc {
    color: var(--text2);
    line-height: 1.8;
    margin-bottom: 28px;
    font-size: 15px;
}

.product-specs {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 28px;
}

.spec-row {
    display: flex;
    padding: 11px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 13.5px;
}

.spec-row:last-child { border-bottom: none; }

.spec-label {
    width: 130px;
    flex-shrink: 0;
    color: var(--text3);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .05em;
    text-transform: uppercase;
    padding-top: 2px;
}

.spec-value { color: var(--text); }

/* Ingredients */
.ingredients-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.ingredient-tag {
    padding: 4px 12px;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 12px;
    color: var(--text2);
}

.ingredient-tag.allergen {
    border-color: rgba(200,68,68,.4);
    color: #e07070;
    background: rgba(200,68,68,.08);
}

/* Presentations */
.presentations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 8px;
}

.pres-card {
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
}

.pres-name {
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 4px;
}

.pres-detail { font-size: 12px; color: var(--text3); }

/* Reviews */
.reviews-list { display: flex; flex-direction: column; gap: 16px; margin-top: 12px; }

.review-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px;
}

.review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.review-user { font-weight: 500; font-size: 13.5px; }
.review-date { font-size: 12px; color: var(--text3); }

.review-title {
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    margin-bottom: 6px;
}

.review-comment { color: var(--text2); font-size: 14px; line-height: 1.7; }

/* ── BRAND PAGE ─────────────────────────────────────────────────────────── */
.brand-page {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 40px 24px 80px;
}

.brand-hero {
    display: flex;
    align-items: flex-start;
    gap: 32px;
    margin-bottom: 48px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border);
}

.brand-icon-lg {
    width: 80px;
    height: 80px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    flex-shrink: 0;
}

.brand-info h1 { font-size: 36px; margin-bottom: 6px; }

.brand-meta {
    font-size: 13px;
    color: var(--text3);
    margin-bottom: 10px;
}

.brand-desc { color: var(--text2); max-width: 600px; line-height: 1.75; }

/* ── PAGE HERO (for explore pages) ─────────────────────────────────────── */
.page-hero {
    padding: 56px 24px 48px;
    text-align: center;
    border-bottom: 1px solid var(--border);
    margin-bottom: 48px;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 50% 100% at 50% 0%, rgba(200,162,85,.06) 0%, transparent 70%);
}

.page-hero h1 { font-size: clamp(28px, 5vw, 48px); margin-bottom: 8px; }
.page-hero p { color: var(--text2); font-size: 16px; }

/* ── DIVIDER ────────────────────────────────────────────────────────────── */
.content-section {
    margin-bottom: 48px;
}

.content-section-title {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

/* ── 404 ────────────────────────────────────────────────────────────────── */
.not-found {
    text-align: center;
    padding: 100px 24px;
}

.not-found-code {
    font-family: 'Playfair Display', serif;
    font-size: 96px;
    color: var(--border2);
    line-height: 1;
    margin-bottom: 16px;
}

.not-found h2 { font-size: 24px; margin-bottom: 8px; }
.not-found p { color: var(--text2); margin-bottom: 24px; }

/* ── BUTTONS ────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    border-radius: 6px;
    font-size: 13.5px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all .15s;
}

.btn-gold { background: var(--gold); color: #1a1208; border-color: var(--gold); }
.btn-gold:hover { background: #d4ae6a; }
.btn-outline { background: transparent; color: var(--text2); border-color: var(--border2); }
.btn-outline:hover { color: var(--text); border-color: var(--text3); }

/* ── FOOTER ─────────────────────────────────────────────────────────────── */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 40px 24px;
    text-align: center;
}

.footer-inner { max-width: var(--max-w); margin: 0 auto; }

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--text2);
}

.footer-tagline { color: var(--text3); font-size: 13px; margin-bottom: 16px; }

.footer-nav { display: flex; justify-content: center; gap: 24px; }
.footer-nav a { font-size: 13px; color: var(--text3); transition: color .15s; }
.footer-nav a:hover { color: var(--gold); }

/* ── EMPTY ──────────────────────────────────────────────────────────────── */
.empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text3);
}

.empty-icon { font-size: 40px; margin-bottom: 12px; opacity: .4; }
.empty-title { font-size: 17px; color: var(--text2); margin-bottom: 6px; }

/* ── RESPONSIVE ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .product-layout { grid-template-columns: 1fr; }
    .product-gallery { position: static; }
    .search-layout { grid-template-columns: 1fr; }
    .filter-sidebar { position: static; }
    .brand-hero { flex-direction: column; }
    .header-search { display: none; }
}

@media (max-width: 600px) {
    .hero { padding: 60px 20px 48px; }
    .cards-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .brands-grid { grid-template-columns: repeat(2, 1fr); }
}
