:root {
    --bg: #F5F1E8;
    --surface: #FFFFFF;
    --ink: #2A2420;
    --ink-soft: #6B6259;
    --accent: #1E4B3A;
    --accent-dark: #163A2C;
    --accent-soft: #E4ECE6;
    --gold: #B4893F;
    --line: #E6DFCF;
    --header-h: 82px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: 'Work Sans', sans-serif;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

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

/* Header */
.site-header {
    background: var(--surface);
    position: sticky;
    top: 0;
    z-index: 20;
}

.header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 14px 24px;
}

.brand-logo {
    justify-self: center;
    display: block;
}

    .brand-logo img {
        display: block;
        height: 44px;
        max-height: 44px;
        width: auto;
        max-width: 200px;
        object-fit: contain;
    }

.main-nav {
    justify-self: start;
    display: flex;
    gap: 28px;
    font-weight: 500;
}

    .main-nav a {
        opacity: 0.75;
        transition: opacity 0.15s ease;
    }

        .main-nav a:hover {
            opacity: 1;
        }
/* Ticket perforation divider — the signature detail */
.ticket-edge {
    height: 10px;
    background-image: radial-gradient(circle, var(--bg) 4.5px, transparent 4.5px);
    background-size: 20px 10px;
    background-position: top center;
    background-repeat: repeat-x;
    background-color: var(--surface);
}

.page-body {
    padding: 40px 24px 80px;
}

.page-heading {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 2.1rem;
    margin: 0 0 28px;
}

/* Category tabs */
.category-tabs {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    gap: 8px;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 20px;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-soft) transparent;
    position: sticky;
    top: var(--header-h);
    z-index: 15;
    background: var(--bg);
    padding-top: 16px;
}

    .category-tabs::-webkit-scrollbar {
        height: 6px;
    }

    .category-tabs::-webkit-scrollbar-thumb {
        background: var(--accent-soft);
        border-radius: 999px;
    }

    .category-tabs::-webkit-scrollbar-track {
        background: transparent;
    }

.category-tab {
    flex: 0 0 auto;
    scroll-snap-align: start;
    white-space: nowrap;
    padding: 10px 20px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-dark);
    font-weight: 600;
    font-size: 0.92rem;
    border: none;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, transform 0.12s ease;
}

    .category-tab:hover {
        transform: translateY(-1px);
    }

    .category-tab.active {
        background: var(--accent);
        color: #fff;
    }

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

    .product-grid[hidden] {
        display: none;
    }

.product-card {
    background: var(--surface);
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 1px 2px rgba(42, 36, 32, 0.04);
}

.product-photo-frame {
    width: 100%;
    aspect-ratio: 1 / 1;
    margin-bottom: 16px;
    overflow: hidden;
    background: var(--accent-soft);
    /* organic blob shape — the aesthetic risk that echoes the reference site's rounded frames */
    border-radius: 42% 58% 63% 37% / 53% 41% 59% 47%;
}

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

    .product-photo-frame.placeholder {
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--accent-dark);
        font-family: 'Fraunces', serif;
        font-size: 1.8rem;
        opacity: 0.35;
    }

.product-name {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 1.15rem;
    margin: 0 0 2px;
}

.product-subname {
    color: var(--ink-soft);
    font-size: 0.85rem;
    margin: 0 0 10px;
}

.product-description {
    color: var(--ink-soft);
    font-size: 0.88rem;
    margin: 0 0 14px;
    line-height: 1.4;
    overflow-wrap: break-word;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    display: inline-block;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    color: var(--gold);
    border: 1px solid var(--gold);
    border-radius: 999px;
    padding: 4px 16px;
    font-size: 0.9rem;
}

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

/* Footer */
.site-footer {
    padding: 20px 24px 40px;
    color: var(--ink-soft);
    font-size: 0.85rem;
}

.admin-link {
    opacity: 0.6;
}

    .admin-link:hover {
        opacity: 1;
    }

@media (max-width: 600px) {
    .page-heading {
        font-size: 1.6rem;
    }

    .header-inner {
        flex-direction: column;
        gap: 12px;
    }
}