/* =========================================================
   KITCHEN BY RANA
   MENU + CART
   ========================================================= */


body.cart-open {
    overflow: hidden;
}


/* =========================================================
   CART BUTTON IN NAVIGATION
   ========================================================= */

.cart-nav-button {
    border: 0;
    background: var(--espresso);
    color: white;
    padding: 11px 17px;
    border-radius: 999px;
    cursor: pointer;

    display: flex;
    align-items: center;
    gap: 10px;

    font-size: 13px;
    font-weight: bold;
}

.cart-nav-button:hover {
    background: var(--brown);
}

.cart-count {
    width: 23px;
    height: 23px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: white;
    color: var(--espresso);

    font-size: 11px;
}


/* =========================================================
   MENU HERO
   ========================================================= */

.menu-hero {
    padding: 95px 25px 80px;

    background:
        radial-gradient(
            circle at 80% 30%,
            #eee4d7,
            transparent 32%
        ),
        var(--cream);
}

.menu-hero-inner {
    max-width: 1200px;
    margin: auto;
}

.menu-hero h1 {
    margin: 0;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: clamp(
        60px,
        8vw,
        100px
    );

    font-weight: normal;

    letter-spacing: -4px;
}

.menu-hero p:last-child {
    max-width: 600px;

    margin-top: 22px;

    color: var(--text-light);

    font-size: 17px;
    line-height: 1.8;
}


/* =========================================================
   CATEGORY NAVIGATION
   ========================================================= */

.category-navigation {
    position: sticky;

    top: 82px;

    z-index: 100;

    background: rgba(
        248,
        244,
        237,
        0.97
    );

    backdrop-filter: blur(12px);

    border-top:
        1px solid var(--border);

    border-bottom:
        1px solid var(--border);
}

.category-navigation-inner {
    max-width: 1200px;

    margin: auto;

    padding: 0 25px;

    display: flex;

    overflow-x: auto;

    scrollbar-width: none;
}

.category-navigation-inner::-webkit-scrollbar {
    display: none;
}

.category-navigation a {
    padding: 19px 24px;

    flex-shrink: 0;

    color: var(--text-light);

    text-decoration: none;

    font-size: 13px;

    border-bottom:
        2px solid transparent;

    transition: 0.2s ease;
}

.category-navigation a:first-child {
    padding-left: 0;
}

.category-navigation a:hover {
    color: var(--espresso);

    border-bottom-color:
        var(--espresso);
}


/* =========================================================
   MENU CONTAINER
   ========================================================= */

.menu-container {
    max-width: 1200px;

    margin: auto;

    padding:
        60px 25px
        120px;
}


/* =========================================================
   CATEGORY
   ========================================================= */

.menu-category {
    padding-top: 45px;

    scroll-margin-top: 150px;
}

.menu-category + .menu-category {
    margin-top: 65px;
}

.category-heading {
    margin-bottom: 35px;

    display: flex;
    align-items: flex-end;

    gap: 30px;
}

.category-heading > div {
    flex-shrink: 0;
}

.category-label {
    margin: 0 0 8px;

    color: var(--taupe);

    font-size: 9px;

    font-weight: bold;

    letter-spacing: 3px;
}

.category-heading h2 {
    margin: 0;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 43px;

    font-weight: normal;
}

.category-line {
    width: 100%;
    height: 1px;

    margin-bottom: 10px;

    background: var(--border);
}


/* =========================================================
   PRODUCT GRID
   ========================================================= */

.products-grid {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 18px;
}


/* =========================================================
   PRODUCT CARD
   ========================================================= */

.product-card {
    min-height: 275px;

    padding: 27px;

    background: white;

    border:
        1px solid rgba(
            46,
            33,
            26,
            0.08
        );

    border-radius: 18px;

    display: flex;
    flex-direction: column;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border 0.25s ease;
}

.product-card:hover {
    transform:
        translateY(-4px);

    border-color:
        var(--border);

    box-shadow:
        0 18px 45px
        rgba(46, 33, 26, 0.08);
}

.product-card-top {
    min-height: 25px;

    display: flex;

    justify-content:
        space-between;

    align-items: center;

    gap: 10px;
}

.product-category {
    color: var(--taupe);

    font-size: 9px;

    font-weight: bold;

    letter-spacing: 2px;

    text-transform: uppercase;
}

.featured-badge {
    padding: 6px 10px;

    background: var(--cream-dark);

    border-radius: 999px;

    font-size: 9px;

    font-weight: bold;

    letter-spacing: 1px;
}

.product-content {
    padding:
        25px 0
        30px;

    flex-grow: 1;
}

.product-content h3 {
    margin: 0 0 12px;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 25px;

    font-weight: normal;

    line-height: 1.25;
}

.product-description {
    margin: 0;

    color: var(--text-light);

    font-size: 13px;

    line-height: 1.7;
}

.unit-label {
    display: inline-block;

    margin:
        14px 0 0;

    padding:
        5px 9px;

    background: var(--cream);

    border-radius: 6px;

    color: var(--brown);

    font-size: 10px;

    font-weight: bold;

    text-transform: uppercase;

    letter-spacing: 1px;
}

.product-bottom {
    padding-top: 20px;

    border-top:
        1px solid #eee8e1;

    display: flex;

    align-items: center;

    justify-content:
        space-between;

    gap: 15px;
}

.product-price {
    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 25px;
}

.product-price .currency {
    margin-right: 2px;

    color: var(--taupe);

    font-family: Arial, sans-serif;

    font-size: 13px;
}

.add-to-cart-button {
    border: 0;

    padding:
        11px 17px;

    background: var(--espresso);

    color: white;

    border-radius: 999px;

    cursor: pointer;

    display: flex;

    align-items: center;

    gap: 8px;

    font-size: 12px;

    font-weight: bold;

    transition:
        0.2s ease;
}

.add-to-cart-button span {
    font-size: 17px;
    line-height: 1;
}

.add-to-cart-button:hover {
    background: var(--brown);

    transform:
        translateY(-1px);
}

.add-to-cart-button.added {
    background: #675547;
}


/* =========================================================
   CART OVERLAY
   ========================================================= */

.cart-overlay {
    position: fixed;

    inset: 0;

    z-index: 1990;

    background:
        rgba(
            20,
            13,
            10,
            0.48
        );

    opacity: 0;

    visibility: hidden;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}

.cart-overlay.open {
    opacity: 1;

    visibility: visible;
}


/* =========================================================
   CART DRAWER
   ========================================================= */

.cart-drawer {
    position: fixed;

    top: 0;
    right: 0;

    z-index: 2000;

    width: min(
        470px,
        100%
    );

    height: 100vh;

    background: var(--cream);

    box-shadow:
        -20px 0 60px
        rgba(0, 0, 0, 0.15);

    transform:
        translateX(105%);

    transition:
        transform 0.3s ease;

    display: flex;

    flex-direction: column;
}

.cart-drawer.open {
    transform:
        translateX(0);
}


/* =========================================================
   CART HEADER
   ========================================================= */

.cart-header {
    padding:
        27px 28px;

    background: white;

    border-bottom:
        1px solid var(--border);

    display: flex;

    justify-content:
        space-between;

    align-items: center;
}

.cart-eyebrow {
    margin: 0 0 5px;

    color: var(--taupe);

    font-size: 9px;

    font-weight: bold;

    letter-spacing: 3px;
}

.cart-header h2 {
    margin: 0;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 29px;

    font-weight: normal;
}

.close-cart-button {
    width: 42px;
    height: 42px;

    border:
        1px solid var(--border);

    background: transparent;

    border-radius: 50%;

    cursor: pointer;

    color: var(--espresso);

    font-size: 26px;

    line-height: 1;
}


/* =========================================================
   CART ITEMS
   ========================================================= */

.cart-items {
    padding:
        5px 28px;

    overflow-y: auto;

    flex-grow: 1;
}

.cart-item {
    padding:
        25px 0;

    border-bottom:
        1px solid var(--border);
}

.cart-item-top {
    display: flex;

    justify-content:
        space-between;

    gap: 20px;
}

.cart-item h3 {
    margin: 0;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 19px;

    font-weight: normal;
}

.cart-item-unit {
    margin: 6px 0 0;

    color: var(--taupe);

    font-size: 10px;

    text-transform: uppercase;

    letter-spacing: 1px;
}

.cart-item-price {
    flex-shrink: 0;

    font-size: 14px;

    font-weight: bold;
}

.cart-item-bottom {
    margin-top: 18px;

    display: flex;

    align-items: center;

    justify-content:
        space-between;
}

.quantity-control {
    display: inline-flex;

    align-items: center;

    border:
        1px solid var(--border);

    border-radius: 999px;

    background: white;
}

.quantity-control button {
    width: 36px;
    height: 34px;

    border: 0;

    background: transparent;

    cursor: pointer;

    color: var(--espresso);

    font-size: 17px;
}

.quantity-control span {
    min-width: 30px;

    text-align: center;

    font-size: 12px;

    font-weight: bold;
}

.remove-item {
    border: 0;

    background: transparent;

    color: var(--taupe);

    cursor: pointer;

    font-size: 11px;

    text-decoration: underline;
}


/* =========================================================
   EMPTY CART
   ========================================================= */

.empty-cart {
    padding: 80px 35px;

    text-align: center;

    flex-grow: 1;

    display: none;

    align-items: center;

    justify-content: center;

    flex-direction: column;
}

.empty-cart.visible {
    display: flex;
}

.empty-cart-icon {
    width: 70px;
    height: 70px;

    margin-bottom: 22px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: white;

    border:
        1px solid var(--border);

    border-radius: 50%;

    font-size: 28px;
}

.empty-cart h3 {
    margin: 0 0 10px;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 25px;

    font-weight: normal;
}

.empty-cart p {
    margin: 0 0 25px;

    color: var(--text-light);

    font-size: 13px;
}

.empty-cart button {
    border: 0;

    padding:
        12px 20px;

    background: var(--espresso);

    color: white;

    border-radius: 999px;

    cursor: pointer;
}


/* =========================================================
   CART FOOTER
   ========================================================= */

.cart-footer {
    padding:
        25px 28px
        28px;

    background: white;

    border-top:
        1px solid var(--border);
}

.cart-footer.hidden {
    display: none;
}

.cart-summary-row {
    display: flex;

    justify-content:
        space-between;

    align-items: center;

    font-size: 14px;
}

.cart-summary-row strong {
    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 25px;

    font-weight: normal;
}

.cart-note {
    margin:
        12px 0 20px;

    color: var(--taupe);

    font-size: 10px;

    line-height: 1.6;
}

.checkout-button {
    width: 100%;

    padding:
        16px 20px;

    border: 0;

    border-radius: 999px;

    background: var(--espresso);

    color: white;

    cursor: pointer;

    display: flex;

    justify-content:
        space-between;

    align-items: center;

    font-weight: bold;
}

.checkout-button:hover {
    background: var(--brown);
}

.continue-shopping {
    width: 100%;

    margin-top: 13px;

    border: 0;

    background: transparent;

    color: var(--text-light);

    cursor: pointer;

    font-size: 11px;
}


/* =========================================================
   FLOATING CART
   ========================================================= */

.floating-cart {
    position: fixed;

    left: 18px;
    right: 18px;
    bottom: 18px;

    z-index: 500;

    display: none;

    padding:
        15px 18px;

    border: 0;

    border-radius: 14px;

    background: var(--espresso);

    color: white;

    box-shadow:
        0 12px 35px
        rgba(46, 33, 26, 0.25);

    cursor: pointer;

    justify-content:
        space-between;

    align-items: center;
}

.floating-cart strong {
    font-size: 11px;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 950px) {

    .products-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

}


@media (max-width: 600px) {

    .category-navigation {
        top: 72px;
    }

    .menu-hero {
        padding:
            65px 20px
            55px;
    }

    .menu-hero h1 {
        font-size: 62px;

        letter-spacing: -2px;
    }

    .category-navigation-inner {
        padding:
            0 20px;
    }

    .category-navigation a {
        padding:
            16px 18px;
    }

    .menu-container {
        padding:
            35px 18px
            120px;
    }

    .menu-category {
        padding-top: 35px;

        scroll-margin-top: 125px;
    }

    .category-heading h2 {
        font-size: 34px;
    }

    .products-grid {
        grid-template-columns:
            1fr;
    }

    .product-card {
        min-height: 240px;

        padding: 23px;
    }

    .cart-nav-button {
        padding:
            9px 12px;
    }

    .floating-cart.visible {
        display: flex;
    }

    footer {
        padding-bottom: 100px;
    }

}