:root {
    --gold: #b8974e;
    --gold-light: #d4b46e;
    --dark: #17161a;
    --dark2: #232228;
    --light: #faf9f7;
    --gray: #6b6b6b;
    --border: #e6e2da;
    --radius: 10px;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', 'Segoe UI', Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    background: var(--light);
    color: var(--dark);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; margin: 0; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* --- Header --- */
header.site-header {
    background: var(--dark);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 200;
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    max-width: 1180px;
    margin: 0 auto;
    gap: 16px;
}

.logo {
    font-family: var(--font-display);
    font-size: 21px;
    letter-spacing: .3px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
}
.logo span { color: var(--gold); font-style: italic; }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 26px;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
}

nav.main-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
}

nav.main-nav a {
    color: #ccc;
    font-size: 14.5px;
    transition: color .15s;
    white-space: nowrap;
}
nav.main-nav a:hover { color: var(--gold); }

.cart-link {
    position: relative;
    padding: 8px 18px;
    border: 1px solid var(--gold);
    border-radius: 30px;
    color: #fff !important;
}
.cart-link:hover { background: var(--gold); color: #17161a !important; }

.cart-badge {
    background: var(--gold);
    color: #17161a;
    font-size: 11px;
    font-weight: 700;
    border-radius: 50%;
    padding: 1px 6px;
    margin-left: 6px;
}
.cart-link:hover .cart-badge { background: #17161a; color: #fff; }

@media (max-width: 860px) {
    .nav-toggle { display: block; }
    nav.main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--dark);
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 20px 20px;
        gap: 14px;
        border-bottom: 1px solid rgba(255,255,255,.08);
    }
    nav.main-nav.open { display: flex; }
    .cart-link { width: 100%; text-align: center; }
}

/* --- Hero --- */
.hero {
    background: #131215;
    color: #fff;
    padding: 90px 20px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero-slideshow {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    filter: grayscale(10%) brightness(.6);
    transform: scale(1);
    animation: heroSlideFade 30s infinite;
}
.hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slide:nth-child(2) { animation-delay: 5s; }
.hero-slide:nth-child(3) { animation-delay: 10s; }
.hero-slide:nth-child(4) { animation-delay: 15s; }
.hero-slide:nth-child(5) { animation-delay: 20s; }
.hero-slide:nth-child(6) { animation-delay: 25s; }
@keyframes heroSlideFade {
    0%   { opacity: 0; transform: scale(1); }
    3%   { opacity: 1; }
    14%  { opacity: 1; transform: scale(1.09); }
    17%  { opacity: 0; transform: scale(1.1); }
    100% { opacity: 0; }
}
.hero-scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(15,14,17,.6) 0%, rgba(15,14,17,.72) 45%, rgba(15,14,17,.92) 100%);
}
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    background: radial-gradient(circle at 80% 20%, rgba(184,151,78,.16), transparent 55%);
    pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
    .hero-slide { animation: none; opacity: 0; }
    .hero-slide:first-child { opacity: 1; }
}
.hero-inner { position: relative; z-index: 3; animation: heroIn .8s ease both; }
@keyframes heroIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.hero-eyebrow { color: var(--gold-light); font-size: 14px; margin-bottom: 14px; font-style: italic; font-family: var(--font-display); }
.hero h1 { font-size: clamp(30px, 5vw, 48px); margin: 0 0 16px; font-weight: 600; letter-spacing: .2px; line-height: 1.15; }
.hero h1 em { color: var(--gold); font-style: italic; }
.hero p { color: #bbb; font-size: 17px; max-width: 580px; margin: 0 auto; }
.hero-cta { margin-top: 30px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* --- Toast flash messages --- */
.flash-wrap {
    position: fixed;
    top: 90px;
    right: 20px;
    z-index: 500;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 340px;
}
.alert {
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 14.5px;
    box-shadow: 0 8px 24px rgba(0,0,0,.15);
    animation: toastIn .35s ease both;
}
@keyframes toastIn { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }
.alert-success { background: #22321f; color: #cdeec0; border: 1px solid #3c5a34; }
.alert-error   { background: #3a2222; color: #f3c5c5; border: 1px solid #5a3434; }
@media (max-width: 600px) { .flash-wrap { left: 14px; right: 14px; max-width: none; top: 76px; } }

/* --- Section --- */
.section { padding: 60px 0; }
.section-title { text-align: center; font-size: clamp(24px,3.4vw,32px); margin-bottom: 10px; }
.section-title.align-left { text-align: left; }
.section-subtitle { text-align: center; color: var(--gray); margin-bottom: 40px; font-size: 15.5px; }

/* --- Product grid --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 26px;
}

.product-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .18s ease, box-shadow .18s ease;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 30px rgba(0,0,0,.09);
}

.product-thumb {
    height: 190px;
    width: 100%;
    object-fit: cover;
    display: block;
}
.product-thumb-placeholder {
    height: 190px;
    width: 100%;
    background: linear-gradient(135deg, #232228, #46444c);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
}
.product-thumb-placeholder svg { width: 44px; height: 44px; opacity: .85; }

.product-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-category {
    font-size: 12px;
    color: var(--gold);
    margin-bottom: 8px;
    font-family: var(--font-display);
    font-style: italic;
}

.group-tag {
    display: inline-block;
    font-size: 11.5px;
    background: #f1e9d8;
    color: #8a6a2b;
    padding: 2px 9px;
    border-radius: 12px;
    margin-bottom: 8px;
}

.product-name { font-size: 18px; margin: 0 0 8px; font-weight: 600; font-family: var(--font-display); }
.product-desc { color: var(--gray); font-size: 14px; margin-bottom: 14px; flex: 1; }
.product-meta { font-size: 13px; color: var(--gray); margin-bottom: 14px; }
.product-meta strong { color: var(--dark); font-weight: 600; }

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    gap: 10px;
}

.price { font-size: 19px; font-weight: 700; color: var(--dark); }
.price-from { font-size: 12px; color: var(--gray); display: block; font-weight: 400; }

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 11px 22px;
    border-radius: 7px;
    background: var(--dark);
    color: #fff !important;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-family: var(--font-body);
    text-align: center;
    transition: background .15s, transform .1s;
}
.btn:hover { background: var(--gold); color: #17161a !important; }
.btn:active { transform: scale(.98); }
.btn-gold { background: var(--gold); color: #17161a !important; }
.btn-gold:hover { background: #a17f3c; color: #fff !important; }
.btn-outline {
    background: transparent;
    border: 1px solid var(--dark);
    color: var(--dark) !important;
}
.btn-outline:hover { background: var(--dark); color: #fff !important; }
.btn-small { padding: 7px 14px; font-size: 13px; }
.btn-block { display: block; width: 100%; }
.btn-danger { background: #c0392b; color:#fff !important; }
.btn-danger:hover { background:#992d22; }

/* --- Forms --- */
.form-box {
    max-width: 480px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px;
}
.form-box h2 { font-weight: 600; margin-bottom: 6px; }
.form-box .form-intro { color: var(--gray); font-size: 14px; margin: 0 0 20px; }

.form-group { margin-bottom: 16px; }
.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 13.5px;
    font-weight: 600;
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid var(--border);
    border-radius: 7px;
    font-size: 15px;
    font-family: inherit;
}
.form-group input:focus,
.form-group textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184,151,78,.15); }
.form-group .hint { font-size: 12.5px; color: var(--gray); margin-top: 5px; }
.form-row { display: flex; gap: 14px; }
.form-row .form-group { flex: 1; }

.form-footer-link { text-align: center; margin-top: 18px; font-size: 14px; color: var(--gray); }

/* --- People / group pricing calculator --- */
.people-box {
    background: #faf7f0;
    border: 1px solid #eee0c4;
    border-radius: var(--radius);
    padding: 20px;
    margin: 20px 0;
}
.people-box label { font-weight: 600; font-size: 14px; display: block; margin-bottom: 8px; }
.people-input-row { display: flex; align-items: center; gap: 10px; }
.people-btn {
    width: 38px; height: 38px; border-radius: 7px; border: 1px solid var(--border);
    background: #fff; font-size: 18px; cursor: pointer; line-height: 1;
}
.people-btn:hover { background: var(--gold); color: #fff; border-color: var(--gold); }
.people-input-row input[type="number"] {
    width: 80px; text-align: center; padding: 9px; border: 1px solid var(--border); border-radius: 7px; font-size: 15px;
}
.people-breakdown { font-size: 13px; color: var(--gray); margin-top: 12px; }
.people-total { font-size: 22px; font-weight: 700; margin-top: 8px; }

/* --- Cart / Checkout table --- */
table.cart-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}
table.cart-table th, table.cart-table td {
    padding: 14px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}
table.cart-table th { font-size: 12.5px; text-transform: uppercase; letter-spacing: .4px; color: var(--gray); }
.qty-input { width: 60px; padding: 7px; text-align: center; border: 1px solid var(--border); border-radius: 6px; }
.cart-total-row td { font-size: 18px; font-weight: 700; border-top: 2px solid var(--dark); }
.line-note { font-size: 12.5px; color: var(--gray); display: block; margin-top: 3px; }

.cart-summary-box {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}

.two-col {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 30px;
    align-items: start;
}
@media (max-width: 800px) {
    .two-col { grid-template-columns: 1fr; }
    .form-row { flex-direction: column; }
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray);
}

/* --- Order detail box --- */
.order-box {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    margin-bottom: 20px;
}
.order-box-header {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
}
.badge-status {
    background: #eef3ff;
    color: #2b53a6;
    padding: 3px 11px;
    border-radius: 20px;
    font-size: 12px;
}

/* --- Breadcrumb / back link --- */
.back-link { color: var(--gray); font-size: 14px; display: inline-flex; align-items: center; gap: 6px; margin-bottom: 18px; }
.back-link:hover { color: var(--gold); }

.pill-row { text-align: center; margin-bottom: 30px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }

/* --- Footer --- */
footer.site-footer {
    background: var(--dark);
    color: #999;
    text-align: center;
    padding: 34px 20px;
    margin-top: 70px;
    font-size: 13.5px;
}
footer.site-footer strong { color: #fff; font-family: var(--font-display); }
footer.site-footer a:hover { color: var(--gold); }
