/**
 * Optimized Header Styles - Clean Version
 * Removed unused CSS and streamlined for performance
 */

/* ---------- FONTS ---------- */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Teko:wght@400;600;700&family=Rajdhani:wght@500;600;700&display=swap');

/* ---------- VARIABLES ---------- */
:root {
    --header-red: #fe0000;
    --header-red-dark: #c00000;
    --header-black: #000000;
    --header-white: #ffffff;
    --header-gray: #cccccc;
    --header-light-gray: #f8f8f8;
    --header-dark-gray: #333333;
    --header-font-title: 'Bebas Neue', sans-serif;
    --header-font-slogan: 'Rajdhani', sans-serif;
    --header-font-nav: 'Teko', sans-serif;
}

/* ---------- RESET ---------- */
.xtop-header *,
.xmain-header *,
.xmobile-overlay *,
.xslogan-bar * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ---------- CONTAINERS ---------- */
.xtop-container,
.xheader-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

/* ---------- STICKY HEADER ---------- */
.xtop-header.xhidden {
    display: none;
}

.xmain-header {
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.xmain-header.xsticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.98);
    z-index: 999;
}

.xmain-header.xsticky .xlogo img {
    max-height: 32px;
}


/* ---------- TOP MENU ---------- */
.xtop-header {
    background-color: var(--header-black);
    padding: 6px 0;
    border-bottom: 1px solid #1a1a1a;
}

.xtop-menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    list-style: none;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.xtop-menu a {
    color: var(--header-white);
    text-decoration: none;
    font-size: 13px;
}


/* ---------- SLOGAN BAR ---------- */
.xslogan-bar {
    background: var(--header-red);
    text-align: center;
    padding: 8px 0;
    position: relative;
}


.xslogan-container {
    width: 100%;
    position: relative;
}

.xslogan-text {
    font-family: var(--header-font-slogan);
    font-size: 19px;
    font-weight: 700;
    color: var(--header-white);
    font-style: italic;
    letter-spacing: 1.5px;
    position: relative;
    display: inline-block;
    line-height: 1;
}


.xslogan-bold {
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
}


/* ---------- MAIN HEADER ---------- */
.xmain-header {
    background: var(--header-white);
    position: relative;
    z-index: 100;
}

.xheader-container {
    display: flex;
    flex-direction: column;
}

.xheader-row {
    width: 100%;
}

.xbrand-row {
    background: var(--header-white);
    padding: 10px 0;
}

/* ---------- BRAND CONTAINER ---------- */
.xbrand-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- CONTACT INFO ---------- */
.xbrand-left {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.xcontact-row {
    display: flex;
    gap: 15px;
}

.xcontact-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.xcontact-item .xicon {
    color: var(--header-red);
    display: flex;
    align-items: center;
    justify-content: center;
}

.xcontact-item svg {
    width: 16px;
    height: 16px;
}

.xcontact-item span {
    font-family: var(--header-font-nav);
    font-size: 14px;
    color: var(--header-dark-gray);
}

.xcontact-item a {
    color: var(--header-black);
    text-decoration: none;
    font-weight: 600;
}


/* ---------- LOGO ---------- */
.xbrand-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.xlogo {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 300px;
}

.xlogo img {
    width: auto;
    height: auto;
    max-height: 45px;
    display: block;
}

/* ---------- SOCIAL ICONS & CART ---------- */
.xbrand-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.xsocial-search-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-cart {
    position: relative;
    margin-right: 10px;
}

.nav-cart-btn {
    position: relative;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    font-size: 20px;
    color: var(--header-black);
    border-radius: 50%;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--header-red);
    color: white;
    font-size: 12px;
    font-weight: 600;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
}

.xsocial-container {
    display: flex;
    gap: 8px;
}

.xsocial-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #f3f3f3;
    color: #333;
    text-decoration: none;
}


.xsocial-icon svg {
    width: 16px;
    height: 16px;
}

/* ---------- NAVIGATION ---------- */
.xnav-row {
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--header-light-gray);
    border-top: 1px solid rgba(0,0,0,0.06);
    border-bottom: 1px solid rgba(0,0,0,0.08);
    position: relative;
}

.xnav-main {
    flex: 1;
    display: flex;
    justify-content: center;
}

.xnav-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    list-style: none;
    gap: 30px;
    padding: 8px 0;
}

.xnav-menu a {
    display: block;
    color: var(--header-black);
    text-decoration: none;
    font-family: var(--header-font-nav);
    font-size: 17px;
    font-weight: 600;
    padding: 5px 0;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}




/* ---------- SHOP BY CLUB BUTTON ---------- */
.xshop-by-club-btn {
    display: flex;
    align-items: center !important;
    justify-content: center !important;
    background-color: transparent;
    color: var(--header-black);
    text-decoration: none;
    font-family: var(--header-font-nav);
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0 16px;
    height: 36px;
    border: none;
    position: relative;
    overflow: hidden;
}


.xshop-by-club-btn span {
    position: relative;
    z-index: 2;
    display: inline-block;
    vertical-align: middle !important;
    line-height: 1 !important;
}

/* ---------- DROPDOWN MENUS ---------- */
.xnav-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--header-white);
    min-width: 220px;
    padding: 10px 0;
    z-index: 10;
    display: none;
    list-style: none;
}


.xnav-menu .sub-menu a {
    padding: 8px 15px;
    font-size: 15px;
    white-space: nowrap;
    font-weight: normal;
}


/* ---------- HAMBURGER MENU ---------- */
.xhamburger {
    display: none;
}

/* Mobile hamburger next to cart */
.xhamburger-mobile {
    display: none;
    width: 40px;
    height: 40px;
    cursor: pointer;
    background: var(--header-black);
    padding: 8px;
    border-radius: 4px;
    border: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.xhamburger-mobile span {
    display: block;
    position: relative;
    height: 3px;
    width: 24px;
    background: var(--header-white);
    border-radius: 2px;
    margin: 2px 0;
}

.xhamburger-mobile span:nth-child(2) {
    width: 20px;
}





/* ---------- MOBILE MENU ---------- */
.xmobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.98);
    z-index: 1000;
    overflow-y: auto;
    display: none;
}

.xmobile-overlay.active {
    display: block;
}

.xhamburger-mobile.active span {
    background: var(--header-red);
}

.xhamburger-mobile.active span:nth-child(1) {
    display: none;
}

.xhamburger-mobile.active span:nth-child(2) {
    display: none;
}

.xhamburger-mobile.active span:nth-child(3) {
    display: none;
}

.xhamburger-mobile.active::after {
    content: '✕';
    color: var(--header-red);
    font-size: 20px;
    font-weight: bold;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}


.xmobile-container {
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.xmobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.xmobile-logo img {
    height: auto;
    max-height: 38px;
    max-width: 140px;
}

.xmobile-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    border-radius: 50%;
    background: var(--header-light-gray);
}


.xmobile-contact {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    gap: 10px;
}

.xmobile-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.xmobile-contact-item .xicon {
    color: var(--header-red);
    display: flex;
    align-items: center;
    justify-content: center;
}

.xmobile-contact-item a {
    color: var(--header-black);
    text-decoration: none;
    font-weight: 600;
    font-family: var(--header-font-nav);
    font-size: 16px;
}


.xmobile-content {
    flex: 1;
    padding: 15px 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.xmobile-menu {
    list-style: none;
    margin-bottom: 20px;
}

.xmobile-menu li {
    position: relative;
}

.xmobile-menu a {
    display: flex;
    align-items: center;
    padding: 12px 0;
    color: var(--header-black);
    text-decoration: none;
    font-family: var(--header-font-nav);
    font-size: 18px;
    position: relative;
    border-bottom: 1px solid #f3f3f3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


.xmobile-menu .sub-menu {
    display: none;
    list-style: none;
    padding-left: 20px;
    margin-top: 5px;
    margin-bottom: 5px;
    border-left: 2px solid var(--header-red);
    overflow: hidden;
}

.xmobile-menu .sub-menu a {
    padding: 8px 0;
    font-size: 16px;
    border-bottom: 1px dashed #f3f3f3;
}

.xmobile-menu .xsubmenu-active > .sub-menu {
    display: block;
}

.xmobile-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: auto;
    padding-top: 20px;
}

.xmobile-social .xsocial-icon {
    width: 36px;
    height: 36px;
}

/* ---------- CART DRAWER ---------- */
.cart-drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background: white;
    z-index: 1001;
    display: flex;
    flex-direction: column;
}


.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
}


.cart-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
}

.cart-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.cart-empty {
    text-align: center;
    padding: 40px 0;
    color: #999;
}

.cart-empty i {
    font-size: 48px;
    margin-bottom: 10px;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid #eee;
}

.cart-total {
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
    text-align: right;
}

.btn-checkout {
    width: 100%;
    background: var(--header-red);
    color: white;
    padding: 15px;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}


/* ---------- UTILITY COMPONENTS ---------- */
.breadcrumb-nav {
    background: #f8f9fa;
    padding: 10px 0;
    border-bottom: 1px solid #dee2e6;
}

.breadcrumb {
    display: flex;
    align-items: center;
    font-size: 14px;
    margin: 0;
}

.breadcrumb-link {
    color: #6c757d;
    text-decoration: none;
}


.breadcrumb-separator {
    margin: 0 8px;
    color: #adb5bd;
}

.breadcrumb-current {
    color: var(--header-black);
    font-weight: 500;
}

.checkout-header-bar {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px 0;
    border-bottom: 1px solid #dee2e6;
}

.checkout-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.checkout-title {
    font-family: var(--header-font-title);
    font-size: 28px;
    margin: 0;
    color: var(--header-black);
}

.secure-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #28a745;
    font-weight: 600;
    background: rgba(40, 167, 69, 0.1);
    padding: 8px 12px;
    border-radius: 20px;
    border: 1px solid rgba(40, 167, 69, 0.2);
}

.secure-badge i {
    font-size: 18px;
}

/* ---------- RESPONSIVE ---------- */
@media (min-width: 993px) {
    .xhamburger,
    .xmobile-overlay {
        display: none !important;
    }
}

@media (max-width: 992px) {
    .xnav-main {
        display: none !important;
    }

    .xnav-row {
        display: none;
    }

    .xbrand-row {
        position: relative;
    }

    .xhamburger-mobile {
        display: flex;
    }

    .xbrand-container {
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .xtop-container,
    .xheader-container {
        padding: 0;
    }

    .xbrand-container {
        padding: 0 15px;
    }

    .xtop-menu {
        justify-content: center;
        flex-wrap: nowrap;
        overflow-x: auto;
        white-space: nowrap;
        padding: 3px 15px;
        gap: 10px;
    }

    .xtop-menu a {
        font-size: 11px;
    }

    .xtop-header {
        padding: 2px 0;
    }

    .xslogan-text {
        font-size: 16px;
    }


    .xbrand-row {
        padding: 10px 0;
    }

    .xlogo img {
        max-height: 38px;
        max-width: 85%;
    }

    .xbrand-container {
        grid-template-columns: 1fr auto;
        align-items: center;
    }

    .xbrand-left {
        display: none;
    }

    .xbrand-right {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        gap: 10px;
    }

    .xbrand-right .xsocial-search-row {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .xbrand-right .xsocial-container {
        display: none;
    }

    .xbrand-right .nav-cart {
        display: block;
        margin: 0;
    }

    .xhamburger-mobile {
        display: flex !important;
    }

    .xbrand-center {
        grid-column: 1;
        text-align: left;
    }

    .xmain-header.xsticky .xbrand-row {
        padding: 5px 0;
    }

    .xmain-header.xsticky .xlogo img {
        max-height: 28px;
    }

    .checkout-header-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .checkout-title {
        font-size: 24px;
    }

    .breadcrumb {
        font-size: 12px;
    }

    .breadcrumb-separator {
        margin: 0 4px;
    }

    .cart-drawer {
        width: 100%;
        right: -100%;
    }

    .nav-cart {
        margin-right: 5px;
    }
}

body.xmobile-menu-active {
    overflow: hidden;
}