/* ============================================================
   QuickShop Common Header
   No Bootstrap
   No jQuery
============================================================ */

:root {
    --qs-orange: #ff6500;
    --qs-orange-dark: #d94700;
    --qs-red: #c8102e;
    --qs-green: #159447;
    --qs-text: #172033;
    --qs-muted: #697386;
    --qs-border: #e7e9ed;
    --qs-white: #ffffff;
    --qs-bg: #f8f9fa;
}


/* ============================================================
   RESET / BASE
============================================================ */

.qs-header,
.qs-header *,
.qs-header *::before,
.qs-header *::after {
    box-sizing: border-box;
}

.qs-header {
    width: 100%;
    background: var(--qs-white);
    color: var(--qs-text);
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

.qs-container {
    width: min(1400px, calc(100% - 40px));
    margin: 0 auto;
}


/* ============================================================
   TOP BAR
============================================================ */

.qs-topbar {
    min-height: 38px;
    border-bottom: 1px solid #eeeeee;
    background: antiquewhite;
}

.qs-topbar-inner {
    min-height: 38px;

    display: flex;
    align-items: center;

    gap: 30px;
}

.qs-announcement {
    min-width: 0;
    flex: 1 1 auto;

    display: flex;
    align-items: center;

    gap: 8px;

    font-size: 12px;
    line-height: 20px;

    color: #303846;
}

.qs-topbar-icon {
    flex: 0 0 auto;

    width: 20px;
    height: 20px;

    display: flex;
    align-items: center;
    justify-content: center;
}

/* Notification viewport */

.qs-news-flash {
    position: relative;

    flex: 1 1 auto;
    min-width: 0;

    width: 100%;
    height: 20px;

    overflow: hidden;

    font-size: 15px;
    line-height: 20px;

    color: #303846;
}

/* Moving notification track */

.qs-news-track {
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;

    margin: 0;
    padding: 0;

    transform: translateY(0);

    transition: transform 0.55s ease-in-out;

    will-change: transform;
}

/* Individual notification */

.qs-news-item {
    width: 100%;
    height: 20px;

    display: flex;
    align-items: center;

    margin: 0;
    padding: 0;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.qs-news-item .text-wined {
    color: var(--qs-red);
}

.qs-news-item strong,
.qs-news-item b {
    font-weight: 700;
}

.qs-news-flash {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
}

.qs-news-flash strong {
    color: var(--qs-red);
}

.qs-topbar-contact {
    flex: 0 0 auto;

    display: flex;
    align-items: center;

    gap: 12px;

    font-size: 15px;
    white-space: nowrap;
}

.qs-topbar-contact strong {
    color: var(--qs-red);
    font-weight: 700;
}

.qs-top-divider {
    width: 1px;
    height: 15px;
    background: #dfe2e7;
}


/* ============================================================
   MAIN HEADER
============================================================ */

.qs-main-header {
    background: #ffffff;
    border-bottom: 1px solid #eeeeee;
}

.qs-main-header-inner {
    min-height: 88px;

    display: flex;
    align-items: center;

    gap: 20px;
}


/* Logo */

.qs-logo {
    flex: 0 0 auto;
}

.qs-logo a {
    display: flex;
    align-items: center;
}

.qs-logo img {
    display: block;
    width: auto;
    max-width: 190px;
    max-height: 62px;
    object-fit: contain;
}


/* Mobile Menu */

.qs-menu-toggle {
    display: none;

    width: 42px;
    height: 42px;

    padding: 9px;

    border: 1px solid var(--qs-border);
    border-radius: 10px;

    background: #ffffff;

    cursor: pointer;
}

.qs-menu-toggle span {
    display: block;

    width: 100%;
    height: 2px;

    margin: 5px 0;

    background: var(--qs-text);

    border-radius: 2px;
}


/* Header Actions */

.qs-header-actions {
    margin-left: auto;

    display: flex;
    align-items: center;

    gap: 28px;
}

.qs-header-action {
    min-width: 0;

    display: flex;
    align-items: center;

    gap: 9px;

    color: inherit;
    text-decoration: none;
}

.qs-action-icon {
    position: relative;

    width: 34px;
    height: 34px;

    display: grid;
    place-items: center;

    flex: 0 0 34px;
}

.qs-action-icon svg {
    width: 25px;
    height: 25px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.qs-action-content {
    min-width: 0;

    display: flex;
    flex-direction: column;
    gap: 2px;
}

.qs-action-label {
    font-size: 11px;
    line-height: 1.2;

    color: var(--qs-muted);
}

.qs-action-content strong {
    font-size: 13px;
    line-height: 1.3;

    color: var(--qs-text);
    font-weight: 600;

    white-space: nowrap;
}

.qs-location-action {
    color: var(--qs-text);
}

.qs-location-select {
    width: 110px;

    padding: 0;

    border: 0;
    outline: 0;

    background: transparent;

    color: var(--qs-text);

    font-size: 13px;
    font-weight: 600;

    cursor: pointer;
}

.qs-link-action {
    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.qs-link-action:hover {
    color: var(--qs-orange);
}

.qs-link-action:hover strong {
    color: var(--qs-orange);
}


/* Badge */

.qs-badge {
    position: absolute;

    top: -3px;
    right: -5px;

    min-width: 17px;
    height: 17px;

    padding: 0 4px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: var(--qs-orange);
    color: #ffffff;

    font-size: 9px;
    line-height: 1;
    font-weight: 700;
}


/* ============================================================
   NAVIGATION
============================================================ */

.qs-navigation {
    position: relative;
    z-index: 100;

    background:
        linear-gradient(
            90deg,
            #ff6500 0%,
            #ff7000 50%,
            #ff6500 100%
        );
}

.qs-navigation-inner {
    min-height: 52px;

    display: flex;
    align-items: stretch;
}


/* Category */

.qs-category-wrap {
    position: relative;

    flex: 0 0 auto;
}

.qs-category-button {
    height: 52px;

    min-width: 235px;

    padding: 0 18px;

    display: flex;
    align-items: center;
    gap: 11px;

    border: 0;

    background: var(--qs-orange-dark);
    color: #ffffff;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;
}

.qs-category-button svg {
    width: 16px;
    height: 16px;

    margin-left: auto;

    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.qs-grid-icon {
    width: 16px;
    height: 16px;

    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3px;
}

.qs-grid-icon span {
    border: 1.5px solid #ffffff;
    border-radius: 2px;
}


/* Dropdown */

.qs-category-dropdown {
    position: absolute;

    top: calc(100% + 1px);
    left: 0;

    width: 300px;

    padding: 8px;

    display: none;

    background: #ffffff;

    border: 1px solid var(--qs-border);
    border-radius: 0 0 12px 12px;

    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.13);
}

.qs-category-wrap.is-open .qs-category-dropdown {
    display: block;
}

.qs-category-item {
    min-height: 42px;

    padding: 0 12px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-radius: 8px;

    color: var(--qs-text);

    font-size: 13px;
    font-weight: 500;

    text-decoration: none;
}

.qs-category-item:hover {
    background: #fff4ed;
    color: var(--qs-orange);
}

.qs-category-item svg {
    width: 15px;
    height: 15px;

    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}


/* Nav Links */

.qs-nav-links {
    display: flex;
    align-items: stretch;
}

.qs-nav-links a {
    min-height: 52px;

    padding: 0 20px;

    display: flex;
    align-items: center;

    color: #ffffff;

    font-size: 14px;
    font-weight: 600;

    text-decoration: none;

    position: relative;

    transition:
        background 0.2s ease;
}

.qs-nav-links a:hover {
    background: rgba(255, 255, 255, 0.12);
}

.qs-nav-links a.is-active::after {
    content: "";

    position: absolute;

    left: 20px;
    right: 20px;
    bottom: 0;

    height: 3px;

    border-radius: 3px 3px 0 0;

    background: #ffffff;
}


/* Quick Order */

.qs-quick-order {
    margin-left: auto;

    align-self: center;

    min-height: 38px;

    padding: 0 20px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    border-radius: 8px;

    background: #a52b00;
    color: #ffffff;

    font-size: 13px;
    font-weight: 700;

    text-decoration: none;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.qs-quick-order:hover {
    background: #842200;
    color: #ffffff;

    transform: translateY(-1px);
}


/* ============================================================
   MOBILE MENU
============================================================ */

.qs-mobile-menu,
.qs-mobile-overlay {
    display: none;
}


/* ============================================================
   TABLET
============================================================ */

@media (max-width: 1100px) {

    .qs-container {
        width: min(100% - 28px, 1400px);
    }

    .qs-header-actions {
        gap: 16px;
    }

    .qs-location-action {
        display: none;
    }

    .qs-nav-links a {
        padding-left: 13px;
        padding-right: 13px;
    }

    .qs-category-button {
        min-width: 205px;
    }

}


/* ============================================================
   MOBILE
============================================================ */

@media (max-width: 767px) {

    .qs-container {
        width: calc(100% - 24px);
    }


    /* Topbar */

    .qs-topbar {
        min-height: 34px;
    }

    .qs-topbar-inner {
        min-height: 34px;

        justify-content: center;
    }

    .qs-announcement {
        flex: 1 1 auto;
        min-width: 0;
    }

    .qs-topbar-contact {
        display: none;
    }


    /* Main Header */

    .qs-main-header-inner {
        min-height: 68px;

        gap: 10px;
    }

    .qs-menu-toggle {
        display: block;
    }

    .qs-logo {
        flex: 1;
    }

    .qs-logo img {
        max-width: 145px;
        max-height: 48px;
    }

    .qs-header-actions {
        margin-left: 0;

        gap: 6px;
    }

    .qs-header-action {
        gap: 0;
    }

    .qs-action-content {
        display: none;
    }

    .qs-action-icon {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

    .qs-action-icon svg {
        width: 24px;
        height: 24px;
    }

    .qs-account-action {
        display: none;
    }


    /* Navigation */

    .qs-navigation {
        display: none;
    }


    /* Mobile Menu */

    .qs-mobile-overlay {
        position: fixed;

        inset: 0;

        z-index: 9998;

        background: rgba(0, 0, 0, 0.45);

        opacity: 0;
        visibility: hidden;

        transition:
            opacity 0.25s ease,
            visibility 0.25s ease;
    }

    .qs-mobile-menu {
        position: fixed;

        top: 0;
        left: 0;
        bottom: 0;

        z-index: 9999;

        width: min(320px, 86vw);

        display: block;

        background: #ffffff;

        box-shadow:
            10px 0 35px rgba(0, 0, 0, 0.16);

        transform: translateX(-100%);

        transition:
            transform 0.28s ease;
    }

    .qs-mobile-menu-header {
        height: 68px;

        padding: 0 18px;

        display: flex;
        align-items: center;
        justify-content: space-between;

        border-bottom: 1px solid var(--qs-border);
    }

    .qs-mobile-menu-header strong {
        font-size: 18px;
    }

    .qs-mobile-menu-header button {
        width: 36px;
        height: 36px;

        border: 0;
        border-radius: 8px;

        background: #f4f5f7;

        font-size: 26px;
        line-height: 1;

        cursor: pointer;
    }

    .qs-mobile-links {
        padding: 10px;
    }

    .qs-mobile-links a {
        min-height: 48px;

        padding: 0 14px;

        display: flex;
        align-items: center;

        border-radius: 8px;

        color: var(--qs-text);

        font-size: 14px;
        font-weight: 600;

        text-decoration: none;
    }

    .qs-mobile-links a:hover {
        background: #fff4ed;
        color: var(--qs-orange);
    }

    body.qs-menu-open {
        overflow: hidden;
    }

    body.qs-menu-open .qs-mobile-menu {
        transform: translateX(0);
    }

    body.qs-menu-open .qs-mobile-overlay {
        opacity: 1;
        visibility: visible;
    }

}


/* ============================================================
   SMALL MOBILE
============================================================ */

@media (max-width: 420px) {

    .qs-logo img {
        max-width: 125px;
    }

    .qs-header-actions {
        gap: 2px;
    }

    .qs-action-icon {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
    }

    .qs-action-icon svg {
        width: 22px;
        height: 22px;
    }

}