/* =============================================
   SITE HEADER
   ============================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--color-white);
    border-bottom: 1px solid var(--gray-200);
}

.header-inner {
    display: flex;
    max-width: var(--container);
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 2.5rem;
}


/* =============================================
   LOGO
   ============================================= */

.logo {
    flex-shrink: 0;
    display: inline-flex;
    align-items: baseline;
    gap: 1px;
    text-decoration: none;
}

.logo-serif {
    font-size: 22px;
    font-weight: 600;
    color: var(--black);
    letter-spacing: 0.06em;
}

.logo-sans {
    font-size: 22px;
    font-weight: 300;
    color: var(--gray-600);
    letter-spacing: 0.1em;
}


/* =============================================
   DESKTOP PRIMARY NAV
   ============================================= */

.primary-nav {
    flex: 1;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 0;
}

.nav-item {
    position: relative;
}

.nav-link,
.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0 14px;
    height: var(--header-height);
    font-size: 13.5px;
    font-weight: 500;
    color: var(--black);
    letter-spacing: 0.02em;
    white-space: nowrap;
    position: relative;
    transition: color var(--transition);
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
}

.nav-link:hover,
.nav-btn:hover {
    color: var(--black);
}


/* Sale */

.nav-sale {
    color: var(--sale) !important;
    font-weight: 600;
}

.nav-sale::after {
    background: var(--sale) !important;
}


/* =============================================
   DESKTOP CHEVRON
   ============================================= */

.chevron {
    display: inline-block;
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    transition: transform var(--transition);
    flex-shrink: 0;
}

.nav-item.is-open .chevron {
    transform: rotate(180deg);
}


/* =============================================
   DESKTOP UNDERLINE
   ============================================= */

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 14px;
    left: 14px;
    right: 14px;
    height: 1.5px;
    background: var(--black, #111);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 250ms ease;
}

.nav-link:hover::after,
.nav-item.is-open .nav-link::after {
    transform: scaleX(1);
}


/* =============================================
   REGULAR DESKTOP DROPDOWN
   ============================================= */

.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--color-white, #fff);
    border-radius: 12px;
    box-shadow: var(
        --mega-shadow,
        0 16px 36px rgba(0, 0, 0, 0.1)
    );
    padding: 10px;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition:
        opacity 250ms ease,
        transform 250ms ease,
        visibility 0s linear 250ms;
    pointer-events: none;
}

.nav-item.is-open > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition:
        opacity 250ms ease,
        transform 250ms ease,
        visibility 0s linear 0s;
    pointer-events: auto;
}

.sub-menu .sub-menu {
    top: 0;
    left: 100%;
}

.sub-menu li {
    position: relative;
}

.sub-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition:
        opacity 200ms ease,
        transform 200ms ease,
        visibility 0s linear 0s;
    pointer-events: auto;
}

.sub-menu a {
    display: block;
    font-size: 13.5px;
    color: var(--gray-600, #555);
    padding: 8px 12px;
    border-radius: 8px;
    transition:
        color 200ms ease,
        background 200ms ease;
}

.sub-menu a:hover {
    color: var(--black, #111);
    background: var(--gray-50, #f7f7f7);
}


/* =============================================
   HEADER ACTIONS
   ============================================= */

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.header-icon-btn {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    color: var(--color-dark-gray);
    font-size: 1rem;
    transition:
        background var(--transition-fast),
        color var(--transition-fast);
    position: relative;
}

.header-icon-btn:hover {
    background: var(--gray-100);
}

.cart-count {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 17px;
    height: 17px;
    background: var(--color-black);
    color: var(--color-white);
    font-size: 10px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.site-logo {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    color: var(--color-black);
    text-transform: uppercase;
    flex-shrink: 0;
}

.site-logo img {
    max-height: 50px;
    width: auto;
    display: block;
}

.container {
    width: 100%;
    margin-inline: auto;
    padding-inline: 2rem;
}


/* =============================================
   HAMBURGER
   ============================================= */

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    border-radius: 8px;
    transition: background var(--transition);
}

.hamburger span {
    display: block;
    width: 100%;
    height: 1.5px;
    background: var(--color-black);
    border-radius: 2px;
    transition:
        transform var(--transition),
        opacity var(--transition),
        width var(--transition);
    transform-origin: center;
}

.hamburger:hover {
    background: var(--gray-100);
}

.hamburger.is-active span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.hamburger.is-active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

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


/* =============================================
   MOBILE BREAKPOINT
   ============================================= */

@media (max-width: 768px) {

    .hamburger {
        display: flex;
    }

    .primary-nav {
        display: none !important;
    }

}


/* =============================================
   MOBILE OFF-CANVAS NAV
   ============================================= */

.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(380px, 100vw);
    background: var(--color-white);
    z-index: 1100;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform var(--transition-slow);
    display: flex;
    flex-direction: column;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.mobile-nav.is-open {
    transform: translateX(0);
    box-shadow: 4px 0 40px rgba(0, 0, 0, 0.18);
}


/* =============================================
   MOBILE HEADER
   ============================================= */

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-200);
    flex-shrink: 0;
}

.mobile-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: var(--black);
    transition: background var(--transition);
}

.mobile-close:hover {
    background: var(--gray-100);
}


/* =============================================
   MOBILE LIST
   ============================================= */

.mobile-nav-list {
    flex: 1;
    padding: 8px 0;
    margin: 0;
    list-style: none;
}

.mobile-nav-item {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid var(--gray-100, #f2f2f2);
}


/* =============================================
   MOBILE TOP LINKS
   ============================================= */

.mobile-nav-link,
.mobile-accordion-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    padding: 15px 24px;
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    color: var(--black, #111);
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    text-decoration: none;
    box-sizing: border-box;
    transition: background 200ms ease;
}

.mobile-nav-link:hover,
.mobile-accordion-btn:hover {
    background: var(--gray-50, #f7f7f7);
}

.mobile-nav-text {
    display: block;
}


/* Sale */

.mobile-sale {
    color: var(--sale);
    font-weight: 700;
}


/* =============================================
   MOBILE CHEVRON
   ============================================= */

.mob-chevron {
    display: inline-block;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    transition: transform 200ms ease;
}

.mobile-accordion-btn[aria-expanded="true"] > .mob-chevron {
    transform: rotate(180deg);
}

.mobile-accordion-btn.is-open > .mob-chevron {
    transform: rotate(180deg);
}


/* =============================================
   MOBILE SUB PANEL
   ============================================= */

.mobile-sub {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    background: var(--gray-50, #f7f7f7);
    overflow: hidden;
    box-sizing: border-box;
}


/* =============================================
   MOBILE MEGA SECTIONS
   ============================================= */

.mob-section {
    display: block;
    padding: 14px 24px 10px;
}

.mob-section + .mob-section {
    border-top: 1px solid var(--gray-200, #eee);
}

.mob-section-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gray-400, #999);
    margin: 0 0 8px;
}

.mob-section-title.mob-link {
    padding: 0;
}

.mob-section-description {
    margin: -2px 0 7px;
    color: #999;
    font-size: 11px;
    line-height: 1.4;
}


/* =============================================
   MOBILE LINKS
   ============================================= */

.mob-link {
    display: block;
    font-size: 14px;
    color: var(--gray-600, #555);
    padding: 6px 0;
    text-decoration: none;
    transition: color 200ms ease;
}

.mob-link:hover {
    color: var(--black, #111);
}


/* =============================================
   MOBILE NORMAL / NESTED SUBMENU
   ============================================= */

.mobile-sub .mob-nested-list {
    width: 100%;
    margin: 0;
    padding: 0 0 5px 12px;
    list-style: none;
    box-sizing: border-box;
}

/* Only genuinely nested (2nd-level) submenus start collapsed */
.mobile-sub .mob-nested-item > .mob-nested-list {
    display: none;
}

.mobile-sub .mob-nested-item {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}


/* Normal submenu item */

.mobile-sub .mob-nested-item > .mob-link {
    display: block;
    width: 100%;
    padding: 9px 24px 9px 12px;
    color: var(--gray-600, #555);
    font-size: 14px;
    line-height: 1.4;
    text-decoration: none;
    box-sizing: border-box;
}


/* Nested submenu button */

.mobile-sub .mob-nested-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 42px;
    padding: 10px 24px 10px 12px;
    margin: 0;
    color: var(--gray-600, #555);
    background: transparent;
    border: 0;
    font-size: 14px;
    line-height: 1.4;
    text-align: left;
    cursor: pointer;
    box-sizing: border-box;
}

.mobile-sub .mob-nested-btn:hover {
    color: var(--black, #111);
}

.mobile-sub .mob-nested-btn.is-open {
    color: var(--black, #111);
}

.mobile-sub .mob-nested-text {
    display: block;
    flex: 1;
}


/* Nested chevron */

.mobile-sub .mob-nested-btn .mob-chevron {
    width: 12px;
    height: 12px;
    margin-left: 10px;
}

.mobile-sub .mob-nested-btn[aria-expanded="true"] .mob-chevron,
.mobile-sub .mob-nested-btn.is-open .mob-chevron {
    transform: rotate(180deg);
}


/* =============================================
   MOBILE FOOTER
   ============================================= */

.mobile-nav-footer {
    border-top: 1px solid var(--gray-200);
    padding: 20px 24px;
    flex-shrink: 0;
}

.mob-actions {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mob-action-link {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-600);
    padding: 6px 0;
    transition: color var(--transition);
}

.mob-action-link:hover {
    color: var(--black);
}


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

.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity var(--transition-slow),
        visibility 0s linear var(--transition-slow);
    backdrop-filter: blur(2px);
}

.nav-overlay.is-active {
    opacity: 1;
    visibility: visible;
    transition:
        opacity var(--transition-slow),
        visibility 0s linear 0s;
}


/* =============================================
   BODY SCROLL LOCK
   ============================================= */

body.nav-open {
    overflow: hidden;
}


/* =============================================
   SEARCH OVERLAY
   ============================================= */

.search-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.92);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.35s ease;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-overlay-content {
    width: 90%;
    max-width: 800px;
    text-align: center;
}

.search-overlay-content h3 {
    color: #fff;
    margin-bottom: 25px;
    font-size: 32px;
    font-weight: 600;
}

.woocommerce-product-search {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 60px;
    overflow: hidden;
}

.woocommerce-product-search input[type="search"] {
    flex: 1;
    height: 70px;
    border: none;
    outline: none;
    padding: 0 25px;
    font-size: 18px;
}

.woocommerce-product-search button {
    width: 80px;
    height: 70px;
    border: none;
    cursor: pointer;
    background: #000;
    color: #fff;
    font-size: 20px;
}

.search-close {
    position: absolute;
    top: 30px;
    right: 40px;
    background: none;
    border: none;
    color: #fff;
    font-size: 50px;
    cursor: pointer;
    line-height: 1;
}

body.search-open {
    overflow: hidden;
}


/* =========================================================
   TEEWEAR MEGA MENU
   ========================================================= */

.nav-item.has-mega {
    position: relative;
}


/* Desktop mega menu */

.nav-item.has-mega > .mega-menu {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;

    width: max-content;
    min-width: 220px;
    max-width: calc(100vw - 40px);

    background: #fff;
    border: 1px solid var(--gray-200, #eee);
    border-radius: 12px;

    box-shadow:
        var(
            --mega-shadow,
            0 16px 36px rgba(0, 0, 0, 0.10)
        );

    padding: 10px;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translateY(-8px);

    transition:
        opacity 250ms ease,
        transform 250ms ease,
        visibility 0s linear 250ms;

    z-index: 9999;
}


/* Mega menu open */

.nav-item.has-mega:hover > .mega-menu,
.nav-item.has-mega.is-open > .mega-menu,
.nav-item.has-mega:focus-within > .mega-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);

    transition:
        opacity 250ms ease,
        transform 250ms ease,
        visibility 0s linear 0s;
}


/* =============================================
   MEGA INNER
   ============================================= */

.mega-menu-inner {
    padding: 14px;
    width: max-content;
    max-width: calc(100vw - 60px);
}


/* =============================================
   MEGA GRID
   ============================================= */

.mega-menu-grid,
.mega-cols {
    display: flex;
    align-items: flex-start;
    gap: 0;

    width: max-content;
    max-width: 100%;
}


/* =============================================
   MEGA COLUMNS
   ============================================= */

.mega-menu-column,
.mega-col {
    width: 160px;
    min-width: 160px;
    padding: 0 18px;
}

.mega-menu-column + .mega-menu-column,
.mega-col + .mega-col {
    border-left: 1px solid var(--gray-200, #eee);
}

.mega-menu-column:first-child,
.mega-col:first-child {
    padding-left: 8px;
}

.mega-menu-column:last-child,
.mega-col:last-child {
    padding-right: 8px;
}


/* =============================================
   MEGA HEADING
   ============================================= */

.mega-column-heading,
.col-heading,
.col-heading-link {
    display: block;
    margin: 0 0 10px;
    color: #111;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    text-decoration: none;
}

.mega-column-heading a,
.col-heading-link {
    color: #111;
    text-decoration: none;
}

.mega-column-heading a:hover,
.col-heading-link:hover {
    color: #555;
}


/* =============================================
   MEGA DESCRIPTION
   ============================================= */

.mega-column-description,
.col-subheading {
    margin: -2px 0 8px;
    color: #999;
    font-size: 11px;
    line-height: 1.4;
}


/* =============================================
   MEGA LINKS
   ============================================= */

.mega-menu-links,
.mega-links {
    margin: 0;
    padding: 0;
    list-style: none;
}

.mega-menu-links li,
.mega-links li {
    margin: 0;
    padding: 0;
}

.mega-menu-links li a,
.mega-links li a {
    display: block;
    padding: 7px 10px;
    margin: 0 -10px;

    color: #555;
    font-size: 13px;
    line-height: 1.4;

    border-radius: 8px;
    text-decoration: none;

    transition:
        color 200ms ease,
        background 200ms ease;
}

.mega-menu-links li a:hover,
.mega-links li a:hover {
    color: #111;
    background: var(--gray-50, #f7f7f7);
}


/* =========================================================
   MOBILE MEGA MENU
   ========================================================= */

@media (max-width: 768px) {

    /*
     * Original desktop mega menu must never display
     * inside the mobile layout.
     */

    .primary-nav .mega-menu {
        display: none !important;
    }

    .primary-nav .sub-menu {
        display: none !important;
    }


    .mega-menu-inner,
    .mega-menu-grid,
    .mega-cols {
        width: 100%;
        max-width: none;
    }

    .mega-menu-grid,
    .mega-cols {
        display: block;
    }

    .mega-menu-column,
    .mega-col {
        width: auto;
        min-width: 0;
        padding: 0;
    }


    /*
     * Keep generated mobile drawer visible.
     */

    .mobile-nav {
        display: flex !important;
        z-index: 1100;
    }

    .nav-overlay {
        z-index: 1050;
    }

}


/* =========================================================
   EXTRA MOBILE SAFETY
   ========================================================= */

@media (max-width: 768px) {

    .mobile-nav .mobile-sub {
        position: relative !important;
        width: 100% !important;
        max-width: 100% !important;

        background: var(
            --gray-50,
            #f7f7f7
        );

        overflow: hidden;
        box-sizing: border-box;
    }


    .mobile-nav .mob-nested-list {
        position: relative !important;
        width: 100% !important;

        margin: 0 !important;

        list-style: none !important;
    }


    .mobile-nav .mob-nested-list,
    .mobile-nav .mob-nested-item {
        float: none !important;
    }


    .mobile-nav .mob-nested-btn,
    .mobile-nav .mobile-accordion-btn {
        pointer-events: auto !important;
        touch-action: manipulation;
    }


    .mobile-nav .mob-link {
        pointer-events: auto !important;
        touch-action: manipulation;
    }

}

/*scroll problem in mobile*/


/* =============================================
   FIX MOBILE HORIZONTAL SCROLL
   ============================================= */

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

@media (max-width: 768px) {

    .site-header,
    .header-inner,
    .container {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .header-inner {
        gap: 0;
        min-width: 0;
    }

    .site-logo,
    .logo {
        min-width: 0;
        max-width: 100%;
    }

    .site-logo img {
        max-width: 100%;
        height: auto;
    }

    .header-actions {
        flex-shrink: 0;
    }

    /* Prevent menus from creating page overflow */
    .mega-menu,
    .mega-menu-inner,
    .mega-menu-grid,
    .mega-cols,
    .sub-menu {
        max-width: 100vw;
        box-sizing: border-box;
    }
}