:root {
    --bg: #fbfaf7;
    --ink: #171411;
    --muted: #6e665c;
    --line: #e8e1d8;
    --accent: #8c3f2b;
    --accent-dark: #642b1d;
    --surface: #ffffff;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 22px clamp(18px, 4vw, 48px);
    border-bottom: 1px solid var(--line);
    background: rgba(251, 250, 247, 0.92);
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(12px);
}

.brand {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
    font-weight: 700;
}

.site-header nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px 18px;
    color: var(--muted);
    font-size: 14px;
}

.layout {
    display: grid;
    grid-template-columns: minmax(180px, 240px) 1fr;
    gap: clamp(22px, 4vw, 52px);
    padding: 34px clamp(18px, 4vw, 48px) 56px;
}

.sidebar {
    align-self: start;
    position: sticky;
    top: 94px;
}

.sidebar h2 {
    margin: 0 0 14px;
    font-size: 13px;
    text-transform: uppercase;
    color: var(--muted);
}

.sidebar a {
    display: block;
    padding: 9px 10px 9px calc(10px + var(--depth, 0) * 18px);
    border-radius: 6px;
    color: var(--muted);
    font-size: 15px;
}

.sidebar a.active,
.sidebar a:hover {
    background: var(--surface);
    color: var(--ink);
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.section-heading h1,
.empty-state h1,
.product-info h1 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1;
}

.section-heading h1 {
    font-size: clamp(34px, 6vw, 76px);
}

.section-heading p,
.product-card p,
.eyebrow,
.fine-print,
.description {
    color: var(--muted);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 22px;
}

.product-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}

.product-card img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    background: #efe9df;
}

.product-card-body {
    padding: 14px;
}

.product-card p,
.eyebrow {
    margin: 0 0 8px;
    font-size: 13px;
    text-transform: uppercase;
}

.product-card h2 {
    margin: 0 0 12px;
    font-size: 17px;
    line-height: 1.25;
}

.product-card span,
.price {
    font-weight: 700;
}

.product-detail {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: clamp(24px, 5vw, 64px);
    padding: 40px clamp(18px, 4vw, 48px) 60px;
}

.product-image {
    min-height: 0;
}

.product-image img {
    width: 100%;
    max-height: calc(100vh - 150px);
    object-fit: contain;
    background: #efe9df;
    border-radius: 8px;
}

.product-info {
    align-self: center;
}

.product-info h1 {
    font-size: clamp(34px, 5vw, 64px);
}

.price {
    margin: 20px 0;
    font-size: 22px;
}

.description {
    line-height: 1.65;
}

.product-notes {
    display: grid;
    gap: 8px;
    margin: 20px 0 26px;
    padding: 0;
    list-style: none;
    color: var(--muted);
}

.product-notes li {
    padding-left: 18px;
    position: relative;
}

.product-notes li::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--accent);
    position: absolute;
    left: 0;
    top: 0.7em;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border: 0;
    border-radius: 6px;
    background: var(--accent);
    color: white;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.button:hover {
    background: var(--accent-dark);
}

.button.secondary {
    background: var(--ink);
}

.fine-print {
    max-width: 440px;
    font-size: 13px;
    line-height: 1.55;
}

.empty-state {
    max-width: 620px;
    margin: 70px auto;
    padding: 0 18px;
    text-align: center;
}

.empty-state h1,
.empty-state h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(34px, 6vw, 64px);
}

@media (max-width: 820px) {
    .site-header,
    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-header nav {
        justify-content: flex-start;
    }

    .layout,
    .product-detail {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        border-bottom: 1px solid var(--line);
        padding-bottom: 18px;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 14px;
    }
}
