.site-header {
    width: 100%;
}

.header-logo .custom-logo {
    max-height: 70px;
    max-width: 157px;

}

.header-logo img.custom-logo {
    max-width: 157px;
    max-height: 70px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: inline-block;
}



/* ---------- ROW 1 ---------- */
.header-top {
    background: var(--brand-colors-brown);
    padding-top: 8px;
    padding-bottom: 8px;
    position: relative;
}

.header-search {
    flex: 1;
}

.header-logo {
    flex: 1;
    text-align: center;
}

.header-icons {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    column-gap: 2px;
}

.header-icons .icon {
    position: relative;
    color: var(--brand-colors-blue) !important;
    padding: 5px;
    transition: color 0.2s ease-out;
}

.header-icons .icon:hover {
    color: var(--brand-colors-light-brown);
}

.icon-wrapper {
    display: block;
    width: 24px;
    height: 24px;
}

.icon-wrapper svg {
    width: 100%;
    height: 100%;
}

/* Cart badge */
.cart-count {
    position: absolute;
    top: 3px;
    right: 6px;
    background: var(--general-colors-white);
    color: var(--general-colors-black);
    font-size: 11px;
    padding: 1px;
    border-radius: 50%;
    min-width: 16px;
    min-height: 16px;
    text-align: center;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ---------- ROW 2 ---------- */
.header-bottom {
    background-color: var(--brand-colors-beige);
    padding-top: 16px;
    padding-bottom: 16px;
    position: relative;
}

.main-menu {
    display: flex;
    gap: 25px;
    list-style: none;
    display: none !important;
}

.header-auth--buttons .line-divider {
    color: var(--brand-colors-pink);
}

.header-actions {
    display: flex;
    column-gap: 12px;
    justify-content: space-between;
    /*changes by sneh do flex-end to space-between */
}

.header-auth--buttons {
    display: flex;
    align-items: center;
    column-gap: 4px;
}






.search-container {
    position: relative;
    width: 100%;
    max-width: 480px;
}

.search-box {
    position: relative;
    width: 100%;
    padding: 16px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    overflow: hidden;
    border-radius: 5px;
    background: rgba(232, 227, 219, 0.10);
    color: var(--brand-colors-blue);
    border-bottom: 1px solid rgba(0, 0, 0, 0);
}

.search-box:hover {
    border-bottom-color: var(--general-colors-white);
}

/* .search-box:focus-within {
    background: var(--general-colors-white);
} */

/* .search-box:focus-within .search-input-wrapper>span {
    display: none
} */

.search-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.search-icon svg {
    width: 100%;
    height: 100%;
}

.search-input-wrapper {
    flex: 1;
    position: relative;
    height: 24px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.search-text {
    color: var(--brand-colors-blue);
    flex-shrink: 0;
    font-size: 18px;
    line-height: normal;
    pointer-events: none;
    position: absolute;
}

.category-wrapper {
    position: relative;
    height: 24px;
    overflow: hidden;
    flex: 1;
    cursor: text;
}

.category-wrapper:not(:focus-within) {
    cursor: pointer;
}

.search-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: var(--general-colors-brand-black);
    font-size: 16px;
    font-weight: 400;
    padding: 0;
    z-index: 2;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.search-input:focus {
    opacity: 1;
    pointer-events: all;
}

.search-input::placeholder {
    color: #999999;
}

.category-slider {
    position: absolute;
    top: 0;
    left: 60px;
    width: calc(100% - 60px);
    height: auto;
    display: flex;
    flex-direction: column;
    pointer-events: none;
    z-index: 1;
    opacity: 1;
    transition: opacity 0.3s ease;
    will-change: transform;
    animation: categorySlideUpPause 6s linear infinite;
}

.category-item {
    height: 24px;
    min-height: 24px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.category-name {
    color: var(--brand-colors-blue);
    white-space: nowrap;
    font-size: 18px;
    line-height: 24px;
    display: inline-block;
}

/* @keyframes slideUp {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-72px);
     
    }
} */

/* When input is focused, hide the slider and show input */
/* .search-box:focus-within .category-slider {
    opacity: 0;
} */

/* .search-box:focus-within .search-input {
    opacity: 1;
    pointer-events: all;
} */

.close-btn {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    background: transparent !important;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s ease;
    padding: 0 !important;
}

.close-btn svg {
    width: 100%;
    height: 100%;
    stroke: var(--brand-colors-brown);
    stroke-width: 2;
    stroke-linecap: round;
}

/* .close-btn:hover svg {
    stroke: #333333;
} */

/* Show close button only when focused */
.search-box:focus-within .close-btn {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.input-close {
    display: none;
}


/* Hide on desktop */
.mobile-search-toggle {
    display: none;
    cursor: pointer;
}

@media (max-width: 990px) {
    .header-logo img.custom-logo {
        max-width: 120px;
        max-height: 50px;
    }

    .sidebar-menu .menu-item.active {
        border-bottom-color: rgba(0, 0, 0, 0);
    }

    .mobile-search-toggle {
        display: block !important;
    }

    .header-logo {
        text-align: left;
    }

    .search-container {


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

        padding: 0;

    }

    .input-close {
        display: block !important;
        z-index: 99999999999;
        padding: 0 0px 0 10px !important;
        border: none;
        background: none;
        font-size: 22px;
        color: var(--general-colors-white);
        cursor: pointer;
    }

    .input-close:hover {
        color: var(--general-colors-white) !important;
    }

    .search-box {
        background: rgba(232, 227, 219, 0.10);
        z-index: 999999;
    }


    .header-search {
        display: none;
        align-items: center;
        justify-content: center;
        position: absolute;
        width: 100%;

        justify-content: center;
        align-items: center;
        left: 0;
        padding: 0px 20px;
        background: var(--brand-colors-brown);
        z-index: 999;
        height: 100%;
    }

    .header-search.active {
        display: flex;
    }

}




/* Sneh CSS */




/* ===== HEADER & MAIN MENU ===== */
.header-menu {
    display: flex;
    align-items: center;
}

.custom-header-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 24px;
}

.custom-header-menu>li>a {
    display: block;
    padding: 5px;
    font-weight: 500;
    font-size: 18px;
    text-decoration: none;
    position: relative;
    color: var(--brand-colors-pink);
    transition: color 0.3s ease;
}

.custom-header-menu>li>a:hover {
    color: var(--brand-colors-brown);
}

/* Hover Underline Effect */
.custom-header-menu>li>a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 5px;
    right: 5px;
    height: 1px;
    background-color: var(--brand-colors-pink);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: center;
}

.custom-header-menu>li:hover>a::after {
    transform: scaleX(1);
    background-color: var(--brand-colors-brown);
}

.mega-main {
    width: 50%;
}

.mega-main h1 {
    font-size: 16px;
    font-weight: 700;
    color: var(--brand-colors-pink);
    margin-bottom: 24px;
    display: inline-block;
    border-bottom: 2px solid var(--brand-colors-pink);
    padding-bottom: 4px;
}

.image-title.mega-right-title {
    border: none !important;
    font-size: 20px;
    padding: 0;
}

/* ===== MEGA MENU ===== */
.custom-header-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 24px 0px 40px;
    margin: 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;

}

.custom-header-menu li.menu-item-has-children:hover>.sub-menu {
    opacity: 1;
    visibility: visible;
}

/* Submenu Links */
.custom-header-menu .sub-menu a {
    display: block;
    font-size: 16px;
    font-weight: 500;
    color: var(--brand-colors-light-brown);
    text-decoration: none;
    transition: color 0.3s ease;
}

.custom-header-menu .sub-menu a:hover {
    color: var(--brand-colors-brown);
}

/* LINKS CONTAINER (LEFT SIDE) */
.mega-links-wrap {
    flex: 1;
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(5, auto);
    grid-auto-columns: minmax(200px, auto);
    column-gap: 24px;
    row-gap: 12px;
    height: fit-content;
}

.mega-links-wrap li {
    height: fit-content;
    transition: color 0.3s ease;
}

.mega-links-wrap li:hover {
    color: var(--brand-colors-brown);
}

/* IMAGES CONTAINER (RIGHT SIDE) */
.mega-images-wrap {
    flex: 0 0 auto;
    gap: 24px;
    flex-direction: row;
    display: flex;
}

.mega-img {
    height: auto;
    width: 200px;
    border-radius: 5px;
    border: 1px solid rgba(122, 106, 98, 0.2);
    overflow: hidden;
}

.mega-img-wrap {
    display: flex;
    overflow: hidden;
    /* keeps image inside the card */
}

.mega-img-wrap img {
    transition: transform 0.4s ease;
}



.mega-img-wrap:hover img {
    transform: scale(1.1);
    /* zoom effect */
}

.mega-img-text {
    padding: 12px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mega-img-text span {
    font-size: 16px;
    font-weight: 500;
    color: var(--brand-colors-pink);
}

/* ===== HAMBURGER MENU ===== */
.menu-toggle {
    display: none;
    width: 24px;
    height: 24px;
    position: relative;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: var(--brand-colors-brown);
    left: 0;
    transition: .25s ease-in-out;
}

.menu-toggle span:nth-child(1) {
    top: 6px;
}

.menu-toggle span:nth-child(2) {
    top: 14px;
}

.menu-toggle span:nth-child(3) {
    top: 22px;
}

.menu-toggle.active span:nth-child(1) {
    top: 14px;
    transform: rotate(135deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    top: 14px;
    transform: rotate(-135deg);
}

/* ===== SIDEBAR MENU ===== */
.sidebar-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 320px;
    height: 100vh;
    background: #fff;
    z-index: 1000;
    transition: left 0.3s ease;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.mega-page {
    display: flex !important;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    position: relative;
    z-index: 9999;
}

.sidebar-menu.active {
    left: 0;
    z-index: 9999;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(122, 106, 98, 0.2);
}

.sidebar-header h3 {
    margin: 0;
    font-size: 20px;
    color: var(--brand-colors-brown);
}

.close-sidebar {
    width: 40px;
    height: 40px;
    font-size: 32px !important;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-colors-brown);
    transition: color 0.3s ease;
}

.close-sidebar:hover {
    color: var(--brand-colors-pink);
}

/* Prevent body scroll when sidebar is open */
body.sidebar-open {
    overflow: hidden;
    height: 100dvh;
}

/* Sidebar Overlay */
.sidebar-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

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

/* Sidebar Menu Items */
.sidebar-menu .menu {
    list-style: none;
    padding: 0px 20px 20px 20px;
    margin: 0;
}

.sidebar-menu .menu-item {
    border-bottom: 1px solid rgba(122, 106, 98, 0.1);
}

.sidebar-menu .menu-item>a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    color: var(--brand-colors-brown);
    text-decoration: none;
    font-size: 18px;
    font-weight: 400;
    transition: color 0.3s ease;
}

.sidebar-menu .menu-item>a:hover {
    color: var(--brand-colors-pink);
}

/* Dropdown Arrow */
.sidebar-menu .menu-item-has-children>a::after {
    content: '+';
    font-size: 24px;
    font-weight: 300;
    color: var(--brand-colors-light-brown);
}

/* .sidebar-menu .menu-item-has-children>a:hover::after {
    color: var(--brand-colors-pink);
} */

.sidebar-menu .menu-item-has-children.active>a::after {
    content: '−';
}

/* Submenu */
.sidebar-menu .sub-menu {
    display: none;
    list-style: none;
    padding: 0px;
    margin: 0;
    background: #f9f9f9;
    border-radius: 8px;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.sidebar-menu .sub-menu.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.sidebar-menu .sub-menu .menu-item {
    border-bottom: none;
}

.sidebar-menu .sub-menu .menu-item a {
    padding: 10px 0;
    font-size: 16px;
    font-weight: 400;
    color: var(--brand-colors-light-brown);
    display: block;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(122, 106, 98, 0.05);
}

.sidebar-menu .sub-menu .menu-item:last-child a {
    border-bottom: none;
}

.sidebar-menu .sub-menu .menu-item a:hover {
    color: var(--brand-colors-pink);

}

.sidebar-button-wrapper {
    padding: 0px 20px 20px;
}







/* ===== MEGA MENU TOGGLE LOGIC ===== */

/* Hide images by default */
.mega-images-wrap {
    display: none !important;
}

/* DESKTOP: Hover state */
@media (min-width: 1025px) {

    .mega-menu-women:hover .women-images,
    .mega-menu-men:hover .men-images {
        display: flex !important;
    }
}

/* TABLET: Hover state */
@media (min-width: 769px) and (max-width: 1024px) {

    .mega-menu-women:hover .women-images,
    .mega-menu-men:hover .men-images {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        width: 100%;
        margin-top: 24px;
    }

    .mega-img {
        width: 100% !important;
        height: auto !important;
    }

}

/* MOBILE: Grid layout on click */
@media (max-width: 768px) {

    .mega-menu-women.active .women-images,
    .mega-menu-men.active .men-images {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-top: 15px;
    }

    .mega-img {
        width: 100% !important;
        height: auto !important;
    }

    .mega-img-wrap img {
        width: 100%;
        height: auto;
        display: block;
    }
}

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


@media screen and (min-width: 768px) {}

@media screen and (min-width: 1024px) {
    .header-actions {
        column-gap: 24px;
    }



    .header-auth--buttons {
        column-gap: 8px;
    }
}



/* Responsive */

@media (min-width: 991px) {
    .header-top {
        padding-top: 16px;
        padding-bottom: 16px;
    }

}



@media (max-width: 480px) {
    .search-box {
        padding: 14px 16px;
    }

    .search-input {
        font-size: 15px;
    }

    .sidebar-menu {
        width: 100%;
    }
}




/* Tablet */
@media (max-width: 1024px) {
    .custom-header-menu .sub-menu {
        flex-direction: column !important;
        gap: 56px;
    }

    /* Snehhh -- Add Gap between maga page */

    .mega-page {
        gap: 30px;
    }

    .menu-overlay {
        top: 556.4px !important;
    }

    .mega-main {
        width: 100%;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .sell-btn {
        display: none;
    }

    .mega-img-text {
        padding: 8px;
    }

    .mega-main h1 {
        width: max-content;
        padding: 20px 0 0 0;
    }

    .mega-page {
        padding: 0 16px 16px 16px;
    }

    .mega-img {
        width: 100%;
    }


    .mega-images-wrap {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    /* Hide desktop menu */

    .custom-header-menu-wrapper {
        display: none;
    }

    /* Show hamburger */

    .menu-toggle {
        display: block;
    }

    /* Mega links stack vertically */
    .mega-links-wrap {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        width: 100%;
        grid-auto-flow: unset !important;
        grid-template-rows: unset !important;
        grid-auto-columns: unset !important;
        column-gap: unset !important;
    }

    .mega-links-wrap li {
        width: 100% !important;
    }

    .header-menu {
        width: auto;
    }



}





/* Add Keyfram to stay text atleast 2 sec in center -- Snehh  */
@keyframes slideUp {


    0%,
    15% {
        transform: translateY(0);
    }


    20%,
    35% {
        transform: translateY(-24px);
    }

    40%,
    55% {
        transform: translateY(-48px);
    }

    60%,
    75% {
        transform: translateY(-72px);
    }

    80%,
    95% {
        transform: translateY(-96px);
    }

    100% {
        transform: translateY(-120px);
    }

}

.search-box:focus-within,
.search-box.active-search {
    background: var(--general-colors-white);
}

.search-box:focus-within .search-input-wrapper>span,
.search-box.active-search .search-input-wrapper>span {
    display: none;
}

.search-box:focus-within .category-slider,
.search-box.active-search .category-slider {
    opacity: 0;
}

.search-box:focus-within .search-input,
.search-box.active-search .search-input {
    opacity: 1;
    pointer-events: all;
}

.search-box:focus-within .close-btn,
.search-box.active-search .close-btn {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

/* .custom-header-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.90);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 24px 0 40px;
    margin: 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
} */



.site-header,
.header-bottom,
.header-top {
    z-index: 99;
}



.women-images,
.men-images {
    display: none !important;
}


@keyframes categorySlideUpPause {
    0% {
        transform: translate3d(0, 0, 0);
    }

    22.22% {
        transform: translate3d(0, 0, 0);
    }

    33.33% {
        transform: translate3d(0, -24px, 0);
    }

    55.55% {
        transform: translate3d(0, -24px, 0);
    }

    66.66% {
        transform: translate3d(0, -48px, 0);
    }

    88.88% {
        transform: translate3d(0, -48px, 0);
    }

    100% {
        transform: translate3d(0, -72px, 0);
    }
}

/* Remove all old .menu-overlay CSS and replace with this */

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 98;
    /* below header (99) above page content */
    pointer-events: none;
}

/* When mega menu is hovered — fade the page */
body:has(.custom-header-menu li.menu-item-has-children:hover)::after {
    opacity: 1;
    visibility: visible;
}