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

:root {
    --cream: #f5f0ea;
    --dark-cream: #ede7df;
    --burgundy: #7a1e35;
    --burgundy-dark: #5e1628;
    --gold: #c4903a;
    --pink: #e0357a;
    --pink-dark: #c8205e;
    --text-dark: #1a1a1a;
    --text-mid: #444;
    --text-light: #777;
    --white: #fff;
    --border: #e8e0d8;
    --radius: 10px;
    --pink-deep: #c8205e;
    --pink-soft: #fdf0f3;
    --pink-mid: #f5d0da;
    --ink: #1a1118;
    --ink-mid: #5c4d54;
    --ink-light: #9e8c93;
    --border: #ecdde2;
    --cream: #fdf8f5;
    --white: #ffffff;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

body {
    font-family: 'Lato', sans-serif;
    background: var(--white);
    color: var(--text-dark);
    overflow-x: hidden
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* logo left, actions right */
    padding: 0 48px;
    height: 58px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.nav-categories-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: var(--text-dark);
    font-size: .82rem;
    letter-spacing: .03em;
    font-family: 'Lato', sans-serif;
    cursor: pointer;
    transition: color .2s;
}

.nav-categories-toggle:hover,
.nav-categories-toggle.active {
    color: var(--burgundy);
}

.nav-categories-toggle svg {
    flex-shrink: 0;
}

.nav-drawer-categories {
    display: block;
    width: 100%;
    text-align: left;
    padding: 14px 4px;
    background: none;
    border: none;
    font-size: .9rem;
    font-family: 'Lato', sans-serif;
    color: var(--text-dark);
    cursor: pointer;
}

.category-trigger-bar {
    position: fixed;
    top: 58px;
    left: 0;
    right: 0;
    z-index: 198;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.category-trigger-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 48px;
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 18px;
}

.category-search {
    position: relative;
    width: min(420px, 100%);
}

.category-search-input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 36px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #fff;
    color: var(--text-light);
}

.category-search-input-wrap input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    color: var(--text-dark);
    font-size: .86rem;
    font-family: 'Lato', sans-serif;
}

.category-search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 20px 40px rgba(26, 17, 24, .1);
    padding: 8px;
    display: none;
    max-height: 360px;
    overflow-y: auto;
}

.category-search-results.show {
    display: block;
}

.category-search-result,
.category-search-empty {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 14px;
    text-decoration: none;
}

.category-search-result {
    color: var(--ink);
}

.category-search-result:hover {
    background: #fdecee;
}

.category-search-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.category-search-meta strong {
    font-size: .92rem;
}

.category-search-meta span,
.category-search-empty {
    font-size: .78rem;
    color: var(--text-light);
}

.category-menu-overlay {
    display: none;
    position: fixed;
    inset: 104px 0 0 0;
    background: rgba(26, 17, 24, .18);
    z-index: 196;
}

.category-menu-overlay.show {
    display: block;
}

.category-menu-panel {
    position: fixed;
    top: 104px;
    left: 48px;
    right: 48px;
    max-width: 1040px;
    width: calc(100% - 96px);
    margin: 0 auto;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 0 0 24px 24px;
    box-shadow: 0 24px 70px rgba(26, 17, 24, .12);
    z-index: 197;
    opacity: 0;
    transform: translateY(-12px);
    pointer-events: none;
    transition: opacity .22s ease, transform .22s ease;
    overflow: hidden;
}

.category-menu-panel.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.category-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.category-menu-head h3 {
    font-size: 1.55rem;
    font-family: 'Playfair Display', serif;
    color: var(--ink);
}

.category-menu-close {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, .15);
    background: var(--white);
    color: var(--text-light);
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
}

.category-menu-body {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    min-height: 420px;
}

.category-menu-list {
    padding: 16px 14px 20px;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.category-menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 12px 14px;
    border: none;
    border-radius: 14px;
    background: transparent;
    color: var(--ink);
    font-size: 1rem;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    transition: background .2s, color .2s;
}

.category-menu-item:hover,
.category-menu-item.active {
    background: #fdecee;
    color: #f05353;
}

.category-menu-thumb,
.category-product-thumb {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    overflow: hidden;
    background: #fff4f5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.category-menu-thumb img,
.category-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-menu-thumb span {
    font-size: .95rem;
    font-weight: 800;
    color: var(--burgundy);
}

.category-menu-all {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    color: #f05353;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 700;
}

.category-menu-products {
    padding: 22px 28px 28px;
}

.category-product-pane {
    display: none;
}

.category-product-pane.active {
    display: block;
}

.category-pane-link {
    display: inline-block;
    margin-bottom: 18px;
    color: var(--burgundy);
    text-decoration: none;
    font-size: .9rem;
    font-weight: 700;
}

.category-product-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 28px;
}

.category-product-link {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--ink);
    text-decoration: none;
    font-size: .98rem;
    font-weight: 700;
    min-height: 54px;
}

.nav-logo {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.3rem;
    color: var(--burgundy);
    text-decoration: none;
    letter-spacing: .02em;
    cursor: pointer
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 26px;
    list-style: none
}

.nav-links a {
    font-size: .82rem;
    color: var(--text-dark);
    text-decoration: none;
    letter-spacing: .03em;
    transition: color .2s;
    cursor: pointer
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--burgundy)
}

.btn-nav {
    background: var(--burgundy);
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 9px 20px;
    font-size: .8rem;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    letter-spacing: .04em;
    cursor: pointer;
    text-decoration: none;
    transition: background .2s
}

.btn-nav:hover {
    background: var(--burgundy-dark)
}

.nav-cart-wrap {
    position: relative;
    cursor: pointer
}

.cart-badge {
    display: none;
    position: absolute;
    top: -7px;
    right: -8px;
    background: var(--pink);
    color: #fff;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: .6rem;
    font-weight: 800;
    align-items: center;
    justify-content: center
}

/* ── Logout button matches nav link style ── */
.nav-logout-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: .82rem;
    font-family: 'Lato', sans-serif;
    color: var(--text-dark);
    letter-spacing: .03em;
    transition: color .2s;
}

.nav-logout-btn:hover {
    color: var(--burgundy);
}

/* ── Desktop: center links absolutely ── */
.nav-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

/* ── Mobile right cluster ── */
.nav-mobile-right {
    display: none;
    align-items: center;
    gap: 16px;
}

/* ── Hamburger button ── */
.nav-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-hamburger span {
    display: block;
    height: 1.5px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: transform .3s, opacity .3s, width .3s;
    transform-origin: center;
}

/* Open state */
.nav-hamburger.open span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.nav-hamburger.open span:nth-child(2) {
    opacity: 0;
}

.nav-hamburger.open span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* ── Drawer ── */
.nav-drawer {
    display: none;
    position: fixed;
    top: 104px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    z-index: 199;
    transform: translateY(-10px);
    opacity: 0;
    transition: transform .25s ease, opacity .25s ease;
    pointer-events: none;
}

.nav-drawer.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.nav-drawer-links {
    list-style: none;
    padding: 12px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.nav-drawer-links li {
    border-bottom: 1px solid var(--border);
}

.nav-drawer-links li:last-child {
    border-bottom: none;
}

.nav-drawer-links a {
    display: block;
    padding: 14px 4px;
    font-size: .9rem;
    color: var(--text-dark);
    text-decoration: none;
    letter-spacing: .02em;
    transition: color .2s;
}

.nav-drawer-links a:hover {
    color: var(--burgundy);
}

.nav-drawer-logout {
    display: block;
    width: 100%;
    text-align: left;
    padding: 14px 4px;
    background: none;
    border: none;
    font-size: .9rem;
    font-family: 'Lato', sans-serif;
    color: var(--text-dark);
    cursor: pointer;
    transition: color .2s;
}

.nav-drawer-logout:hover {
    color: var(--burgundy);
}

/* ── Overlay ── */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 104px 0 0 0;
    background: rgba(0, 0, 0, .25);
    z-index: 198;
}

.nav-overlay.show {
    display: block;
}

/* ── Mobile breakpoint ── */
@media (max-width: 768px) {
    nav {
        padding: 0 20px;
    }

    .category-trigger-inner {
        padding: 0 20px;
        gap: 12px;
        flex-wrap: wrap;
        align-items: stretch;
        padding-top: 6px;
        padding-bottom: 6px;
    }

    .category-search {
        width: 100%;
    }

    .nav-center,
    .nav-right {
        display: none !important;
    }

    .nav-mobile-right {
        display: flex;
    }

    .nav-drawer {
        display: block;
    }

    .category-menu-panel {
        top: 104px;
        left: 0;
        right: 0;
        width: 100%;
        max-width: none;
        border-radius: 0;
        max-height: calc(100vh - 104px);
        overflow-y: auto;
    }

    .category-menu-body {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .category-menu-list {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .category-product-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}



.page-wrap {
    padding-top: 104px;
    min-height: 100vh
}

.page-banner {
    background: var(--dark-cream);
    padding: 52px 48px 44px;
    text-align: center
}

.page-banner .eyebrow {
    font-size: .7rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 10px
}

.page-banner h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: -.01em
}

.page-banner p {
    font-size: .9rem;
    color: var(--text-light);
    margin-top: 10px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.65
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 48px
}

.section-eyebrow {
    font-size: .7rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 10px;
    font-weight: 400
}

.btn-primary {
    display: inline-block;
    background: var(--burgundy);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 13px 32px;
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .05em;
    cursor: pointer;
    text-decoration: none;
    font-family: 'Lato', sans-serif;
    transition: background .2s, transform .15s
}

.btn-primary:hover {
    background: var(--burgundy-dark);
    transform: translateY(-1px)
}

.btn-outline {
    display: inline-block;
    background: transparent;
    color: var(--burgundy);
    border: 1.5px solid var(--burgundy);
    border-radius: 6px;
    padding: 12px 28px;
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .05em;
    cursor: pointer;
    text-decoration: none;
    font-family: 'Lato', sans-serif;
    transition: all .2s
}

.btn-outline:hover {
    background: var(--burgundy);
    color: #fff
}

.btn-pink {
    display: inline-block;
    background: var(--pink);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 14px 40px;
    font-size: .95rem;
    font-weight: 700;
    letter-spacing: .03em;
    cursor: pointer;
    text-decoration: none;
    font-family: 'Lato', sans-serif;
    transition: background .2s, transform .15s, box-shadow .2s;
    box-shadow: 0 6px 22px rgba(224, 53, 122, .4)
}

.btn-pink:hover {
    background: var(--pink-dark);
    transform: translateY(-2px)
}

.product-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, .07);
    display: flex;
    flex-direction: column;
    transition: box-shadow .25s, transform .25s;
    cursor: pointer
}

.product-card:hover {
    box-shadow: 0 8px 28px rgba(0, 0, 0, .1);
    transform: translateY(-3px)
}

.product-img-wrap {
    position: relative;
    width: 100%;
    height: 240px;
    background: #ede8e1;
    overflow: hidden;
    flex-shrink: 0
}

.product-img-wrap svg {
    width: 100%;
    height: 100%;
    transition: transform .4s;
    display: block
}

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

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: .6rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: 5px 11px;
    border-radius: 20px;
    color: #fff;
    z-index: 2
}

.badge-preorder {
    background: var(--burgundy)
}

.badge-bestseller {
    background: #2a6e2a
}

.product-wish {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, .88);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    border: none;
    transition: background .2s
}

.product-wish:hover {
    background: #fff
}

.product-wish svg {
    width: 15px;
    height: 15px;
    stroke: var(--burgundy);
    fill: none;
    stroke-width: 1.8
}

.product-wish.wished svg {
    fill: var(--burgundy)
}

.product-info {
    padding: 14px 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1
}

.product-color-label {
    font-size: .62rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--text-light)
}

.product-name {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.25
}

.product-desc {
    font-size: .75rem;
    color: var(--text-light);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden
}

.product-pricing {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 2px
}

.product-price {
    font-size: .92rem;
    font-weight: 700;
    color: var(--text-dark)
}

.product-deposit {
    font-size: .72rem;
    color: var(--gold);
    font-weight: 600
}

.product-original {
    font-size: .75rem;
    color: #aaa;
    text-decoration: line-through
}

.product-cups {
    font-size: .7rem;
    color: var(--text-light);
    margin-top: 2px
}

.btn-add-cart {
    margin-top: 10px;
    width: 100%;
    background: var(--burgundy);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 0;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .2s, transform .15s;
    font-family: 'Lato', sans-serif
}

.btn-add-cart:hover {
    background: var(--burgundy-dark)
}

.btn-add-cart.added {
    background: #2a6e2a
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    padding: 44px 0
}

.form-group {
    margin-bottom: 18px
}

.form-group label {
    display: block;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .04em;
    margin-bottom: 6px;
    color: var(--text-dark)
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    border: 1.5px solid var(--border);
    border-radius: 6px;
    padding: 11px 14px;
    font-size: .88rem;
    font-family: 'Lato', sans-serif;
    color: var(--text-dark);
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
    outline: none
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--burgundy);
    box-shadow: 0 0 0 3px rgba(122, 30, 53, .08)
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px
}

.toast {
    position: fixed;
    bottom: 28px;
    right: 28px;
    background: var(--text-dark);
    color: #fff;
    padding: 13px 22px;
    border-radius: 8px;
    font-size: .82rem;
    z-index: 9999;
    transform: translateY(80px);
    opacity: 0;
    transition: all .35s ease;
    pointer-events: none
}

.toast.show {
    transform: translateY(0);
    opacity: 1
}

footer {
    background: var(--burgundy-dark);
    color: rgba(255, 255, 255, .8);
    padding: 44px 48px 28px;
    text-align: center
}

.footer-logo {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 6px
}

.footer-tagline {
    font-size: .75rem;
    color: rgba(255, 255, 255, .5);
    margin-bottom: 20px
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 28px;
    list-style: none
}

.footer-links a {
    font-size: .78rem;
    color: rgba(255, 255, 255, .6);
    text-decoration: none;
    transition: color .2s
}

.footer-links a:hover {
    color: #fff
}

.footer-copy {
    font-size: .7rem;
    color: rgba(255, 255, 255, .3);
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding-top: 18px
}

@media(max-width:1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr)
    }
}

@media(max-width:768px) {
    nav {
        padding: 0 20px
    }

    .container {
        padding: 0 20px
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px
    }

    .page-banner {
        padding: 40px 20px 32px
    }

    .page-banner h1 {
        font-size: 1.9rem
    }

    .form-row {
        grid-template-columns: 1fr
    }
}

@media(max-width:480px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px
    }
}
