﻿* {
    box-sizing: border-box;
}


/* =========================================================
   SITE HEADER
   ========================================================= */

.site-header {
    position: relative;
    z-index: 1000;
    width: 100%;
}


/* =========================================================
   DESKTOP HEADER
   ========================================================= */

.desktop-header {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100px;
    padding-inline: clamp(30px, 4vw, 55px);
    background: var(--ui-color-white);
    border-bottom: 1px solid #e5e5e5;
}


/* =========================================================
   DESKTOP LOGO
   ========================================================= */

.site-logo {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    width: 250px;
    color: var(--ui-color-black);
    text-decoration: none;
}

.site-logo-title {
    font-family: SegoeUIVar, Georgia, serif;
    font-size: var(--ui-font-size-normal);
    line-height: 1.1;
    letter-spacing: 0.04em;
    width:250px;
}
    .site-logo-title img {
        width:100%;
    }

    .site-logo-subtitle {
        width: 145px;
        margin-top: 2px;
        font-family: SegoeUIVar, Georgia, serif;
        font-size: var(--ui-font-size-micro);
        line-height: 1.1;
        text-align: center;
    }


/* =========================================================
   DESKTOP NAV
   ========================================================= */

.desktop-nav {
    display: flex;
    align-items: stretch;
    height: 40px;
    margin-left: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-inline: 38px;
    color: var(--ui-color-black);
    font-family: SegoeUIVar, "Segoe UI", system-ui, sans-serif;
    font-size: var(--ui-font-size-normal);
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    border-right: 1px solid #333;
    transition: color 180ms ease;
}

    .nav-item:hover,
    .nav-item.active {
        color: var(--ui-color-gold);
    }


/* =========================================================
   CART
   ========================================================= */

.cart-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 100%;
    margin-left: 25px;
    flex-shrink: 0;
    text-decoration: none;
}

    .cart-button img {
        display: block;
        width: auto;
        height: 24px;
    }

.cart-icon-gold {
    display: none !important;
}

.cart-button:hover .cart-icon-black {
    display: none;
}

.cart-button:hover .cart-icon-gold {
    display: block !important;
}


/* =========================================================
   MOBILE HEADER
   ========================================================= */

.mobile-header {
    display: none;
}


/* =========================================================
   MOBILE MENU
   ========================================================= */

.mobile-menu {
    display: none;
}


/* =========================================================
   TABLET / SMALL DESKTOP
   ========================================================= */

@media (min-width: 768px) and (max-width: 1300px) {

    .desktop-header {
        padding-inline: 24px;
    }

    .site-logo {
        width: 180px;
    }

    .nav-item {
        padding-inline: 20px;
        font-size: var(--ui-font-size-normal);
    }

    .desktop-header .cart-button {
        margin-left: 10px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    /* -----------------------------------------------------
       Desktop hidden
       ----------------------------------------------------- */

    .desktop-header {
        display: none;
    }


    /* -----------------------------------------------------
       Mobile header
       LEFT  = burger
       CENTER = House of Suntory
       RIGHT = cart
       ----------------------------------------------------- */

    .mobile-header {
        display: grid;
        grid-template-columns: 58px minmax(0, 1fr) 58px;
        align-items: center;
        width: 100%;
        height: 70px;
        padding: 0;
        background: var(--ui-color-white);
        border-top: 1px solid var(--ui-color-black);
        border-bottom: 1px solid #ddd;
    }


    /* -----------------------------------------------------
       House of Suntory
       ----------------------------------------------------- */

    .mobile-logo {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-width: 0;
        height: 70px;
        margin: 0;
        color: var(--ui-color-black);
        text-decoration: none;
    }

        .mobile-logo .site-logo-title {
            font-family: SegoeUIVar, Georgia, serif;
            font-size: var(--ui-font-size-normal);
            line-height: 1.1;
            letter-spacing: 0.04em;
            text-align: center;
            white-space: nowrap;
        }
    .mobile-drawer-logo .site-logo-title {
        font-family: SegoeUIVar, Georgia, serif;
        font-size: var(--ui-font-size-normal);
        line-height: 1.1;
        letter-spacing: 0.04em;
        text-align: center;
        white-space: nowrap;
    }

    /* -----------------------------------------------------
       Hamburger - LEFT
       ----------------------------------------------------- */

    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        width: 58px;
        height: 70px;
        margin: 0;
        padding: 0;
        border: 0;
        outline: 0;
        background: transparent;
        cursor: pointer;
        position: relative;
        z-index: 2;
    }

        .mobile-menu-toggle span {
            display: block;
            width: 20px;
            height: 1px;
            background: var(--ui-color-black);
        }


    /* -----------------------------------------------------
       Cart - RIGHT
       ----------------------------------------------------- */

    .mobile-header .cart-button {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 58px;
        height: 70px;
        margin: 0;
        padding: 0;
        border-left: 1px solid #ddd;
        position: relative;
        z-index: 2;
    }

        .mobile-header .cart-button img {
            display: block;
            width: auto;
            height: 24px;
        }


    /* -----------------------------------------------------
       Mobile menu overlay
       ----------------------------------------------------- */

    .mobile-menu {
        position: fixed;
        inset: 0;
        display: block;
        visibility: hidden;
        pointer-events: none;
        z-index: 2000;
    }

        .mobile-menu.is-open {
            visibility: visible;
            pointer-events: auto;
        }


    /* -----------------------------------------------------
       Backdrop
       ----------------------------------------------------- */

    .mobile-menu-backdrop {
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.55);
        opacity: 0;
        transition: opacity 250ms ease;
    }

    .mobile-menu.is-open .mobile-menu-backdrop {
        opacity: 1;
    }


    /* -----------------------------------------------------
       Drawer
       ----------------------------------------------------- */

    .mobile-menu-drawer {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        width: min(82vw, 320px);
        background: var(--ui-color-white);
        overflow-y: auto;
        overflow-x: hidden;
        transform: translateX(-100%);
        transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
    }

    .mobile-menu.is-open .mobile-menu-drawer {
        transform: translateX(0);
    }


    /* -----------------------------------------------------
       Drawer header
       ----------------------------------------------------- */

    .mobile-menu-header {
        display: flex;
        align-items: center;
        height: 70px;
        padding-inline: 20px;
        border-bottom: 1px solid #ddd;
    }


    /* House of Suntory inside expanded drawer */

    .mobile-drawer-logo {
        display: flex;
        align-items: center;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 44px;
        padding: 0;
        border: 0;
        color: var(--ui-color-black);
        font-family: SegoeUIVar, Georgia, serif;
        font-size: var(--ui-font-size-normal);
        letter-spacing: 0.02em;
        text-decoration: none;
        width:90%;
    }


    /* -----------------------------------------------------
       Close button
       ----------------------------------------------------- */

    .mobile-menu-close {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        margin-left: auto;
        padding: 0;
        border: 0;
        outline: 0;
        background: transparent;
        color: var(--ui-color-black);
        font-family: SegoeUIVar, Arial, sans-serif;
        font-size: 28px;
        font-weight: 300;
        line-height: 1;
        cursor: pointer;
    }


    /* -----------------------------------------------------
       Mobile navigation
       Same menu as desktop
       ----------------------------------------------------- */

    .mobile-nav {
        padding: 10px 22px 30px;
    }

    .mobile-nav-item {
        display: flex;
        align-items: center;
        width: 100%;
        min-height: 54px;
        border-bottom: 1px solid #aaa;
        color: var(--ui-color-black);
        font-family: SegoeUIVar, "Segoe UI", system-ui, sans-serif;
        font-size: var(--ui-font-size-normal);
        font-weight: 600;
        line-height: 1;
        text-decoration: none;
        transition: color 180ms ease, padding-left 180ms ease;
    }

        .mobile-nav-item:hover,
        .mobile-nav-item.active {
            color: var(--ui-color-gold);
        }

        .mobile-nav-item:hover {
            padding-left: 5px;
        }


    /* -----------------------------------------------------
       Prevent page scrolling while menu is open
       ----------------------------------------------------- */

    body.menu-open {
        overflow: hidden;
    }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .mobile-menu-drawer,
    .mobile-menu-backdrop,
    .nav-item,
    .mobile-nav-item {
        transition: none;
    }
}




.cart-button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 100%;
    margin-left: 25px;
    flex-shrink: 0;
    text-decoration: none;
}

    .cart-button img {
        display: block;
        width: auto;
        height: 24px;
    }


/* =========================================================
   CART COUNT
   ========================================================= */

.cart-count {
    position: absolute;
    top: 23px;
    right: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 50%;
    background: #d40000;
    color: #ffffff;
    font-family: SegoeUIVar, "Segoe UI", system-ui, sans-serif;
    font-size: 8px;
    font-weight: 700;
    line-height: 1;
    z-index: 3;
}


@media (max-width: 767px) {

    .mobile-header .cart-button {
        position: relative;
        width: 58px;
        height: 70px;
        margin: 0;
    }

    .mobile-header .cart-count {
        top: 20px;
        right: 8px;
        min-width: 15px;
        height: 15px;
        font-size: 8px;
    }
}