/* ============================================
   HEADER STYLES
   ============================================ */

/* Main Header Container */
.custom-header {
    background-color: #F9FAFB;
    background: linear-gradient(180deg, rgba(249, 250, 251, 0.65) 0%, #F9FAFB 85%);
    border-bottom: none;
    overflow: visible !important;
}

/* Desktop Header Bottom Section */
.custom-header-bottom {
   
    border-bottom: none;
    padding: 15px 0;
    min-height: 78px;
    max-width: 1280px;
    margin: 0 auto;
    overflow: visible !important;
}

/* ============================================
   LEFT SECTION - Language & Currency
   ============================================ */

.custom-header-left {
    flex: 0 0 auto;
    width: 27%;
}

.custom-locale-toggle,
.custom-currency-toggle {
    padding: 2px 4px;
    border-radius: 8px;
    transition: all 0.3s ease;
    gap:6px;
}
.custom-locale-toggle img{
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.custom-locale-toggle:hover,
.custom-currency-toggle:hover {
    background-color: #f5f5f5;
}

.custom-locale-toggle .icon-globe,
.custom-currency-toggle span:first-child {
    color: #6b7280;
    font-size: 20px;
}

.custom-locale-toggle span:last-child,
.custom-currency-toggle span:last-child {
    color: #6b7280;
    font-size: 12px;
}

/* ============================================
   CENTER SECTION - Logo
   ============================================ */

.custom-header-center {
    flex: 1;
    justify-content: center;
}

.custom-logo-link {
    text-decoration: none;
    display: inline-block;
}

.custom-logo-image {
    max-height: 50px;
    width: auto;
    height: auto;
}

.custom-logo-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #7c3aed; /* Purple color */
    font-weight: 600;
}

.logo-line-1 {
    font-size: 24px;
    line-height: 1.2;
    color: #7c3aed;
}

.logo-line-2 {
    font-size: 18px;
    line-height: 1.2;
    color: #7c3aed;
    margin-top: -4px;
}

.custom-logo-link:hover .custom-logo-text,
.custom-logo-link:hover .custom-logo-image {
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

/* ============================================
   RIGHT SECTION - Search & Icons
   ============================================ */

.custom-header-right {
    flex: 0 0 auto;
    align-items: center;
}

/* Search Bar */
.custom-search-container {
    min-width: 200px;
    max-width: 250px;
    background-color: #F3F4F6;
    border-radius:80px;
    padding: 13px;
}

.custom-search-input {
    color: #111827;
    font-size: 14px;
    font-family: Sofia Sans;
    font-weight: 400;
    line-height: 20px;
    margin-left: 12px;
    background-color: transparent;
}

.custom-search-icon {
    color: #7c3aed;
    pointer-events: none;
}

/* Right Navigation Icons */
.custom-header-icons {
    display: flex;
    align-items: center;
    gap: 16px;
}

.custom-icon-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #D1D5DC;
    background-color: transparent;
    color: #7c3aed;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.custom-icon-button:hover {
    border: 1px solid #6B2B7B;
    transform: scale(1.05);
}

.custom-icon-button span {
    display: inline-block;
    color: inherit;
}

/* Icon Colors */
.custom-icon-button .icon-heart,
.custom-icon-button .icon-compare,
.custom-icon-button .icon-cart {
    color: #7c3aed;
}

.custom-icon-button:hover .icon-heart,
.custom-icon-button:hover .icon-compare,
.custom-icon-button:hover .icon-cart {
    color: #ffffff;
}

/* Mini Cart Icon */
.custom-header-icons .custom-icon-button {
    position: relative;
    cursor: pointer;
}

.custom-header-icons .custom-icon-button .custom-cart-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    display: block;
}

.custom-header-icons .custom-icon-button v-mini-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.custom-cart-badge {
    min-width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    background-color: #6B2B7B !important;
}

/* User Profile Icon */
.custom-user-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    display: block;
}

/* Cart Badge */
.custom-header-icons [aria-label*="cart"] .badge,
.custom-header-icons [aria-label*="Cart"] .badge,
.custom-header-icons .cart-badge,
.custom-header-icons v-mini-cart span[class*="absolute"] {
    background-color: #7c3aed;
    color: #ffffff;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -8px;
    right: -8px;
    z-index: 10;
}

/* ============================================
   DROPDOWN MENUS
   ============================================ */

/* Dropdown Content */
.custom-header-left .dropdown-content {
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 8px 0;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    min-width: 150px;
}

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

@media (max-width: 1400px) {
    .custom-header-bottom {
        padding: 15px 20px;
    }

    .custom-search-container {
        min-width: 250px;
        max-width: 300px;
    }
    .custom-header-left {
        width: 20%;
    }
}

@media (max-width: 1200px) {
    .custom-header-left {
        width: 17%;
    }
}
@media (max-width: 1024px) {
    .custom-header-bottom {
        flex-wrap: wrap;
        gap: 15px;
    }

    .custom-header-left {
        order: 1;
        flex: 0 0 100%;
        justify-content: center;
    }

    .custom-header-center {
        order: 2;
        flex: 0 0 100%;
    }

    .custom-header-right {
        order: 3;
        flex: 0 0 100%;
        justify-content: center;
    }

    .custom-search-container {
        flex: 1;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .custom-header-bottom {
        padding: 10px 15px;
        min-height: auto;
    }

    .logo-line-1 {
        font-size: 20px;
    }

    .logo-line-2 {
        font-size: 16px;
    }

    .custom-search-container {
        min-width: 200px;
    }

    .custom-icon-button {
        width: 36px;
        height: 36px;
    }

    .custom-icon-button span {
        font-size: 20px;
    }
}

/* ============================================
   ADDITIONAL UTILITIES
   ============================================ */

/* Hover Effects */
.custom-header a:hover {
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

/* Active States */
.custom-header .active {
    color: #7c3aed;
    font-weight: 600;
}

/* Sticky Header */
.custom-header.sticky {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    overflow: visible !important;
}

/* ============================================
   DRAWER FIX - Full Screen Cart Popup
   ============================================ */

/* Ensure header containers don't clip drawer */
.custom-header-right,
.custom-header-icons {
    overflow: visible !important;
}

/* Drawer Overlay - Full screen height */
/* Target: <div class="fixed inset-0 z-20 bg-gray-500 bg-opacity-50"> */
div.fixed.inset-0.z-20.bg-gray-500,
div[class*="fixed"][class*="inset-0"][class*="z-20"][class*="bg-gray-500"] {
    height: 100dvh !important;
    min-height: 100dvh !important;
}

/* Drawer Container - Full screen height */
/* Target: <div class="fixed z-[1000] overflow-hidden bg-white inset-y-0"> */
div.fixed.z-\[1000\].overflow-hidden.bg-white.inset-y-0,
div[class*="fixed"][class*="z-\[1000\]"][class*="inset-y-0"] {
    height: 100dvh !important;
    min-height: 100dvh !important;
    max-height: 100dvh !important;
}

/* Drawer Content Container - Full height */
/* Target: <div class="pointer-events-auto h-full w-full overflow-auto bg-white"> */
div.fixed.z-\[1000\].overflow-hidden.bg-white.inset-y-0 > div.pointer-events-auto,
div[class*="fixed"][class*="z-\[1000\]"][class*="inset-y-0"] > div[class*="pointer-events-auto"] {
    height: 100dvh !important;
    min-height: 100dvh !important;
}

/* Drawer Inner Content - Allow scrolling */
/* Target: <div class="flex h-full w-full flex-col"> */
div.fixed.z-\[1000\].overflow-hidden.bg-white.inset-y-0 > div.pointer-events-auto > div.flex.h-full,
div[class*="fixed"][class*="z-\[1000\]"][class*="inset-y-0"] > div[class*="pointer-events-auto"] > div[class*="flex"][class*="h-full"] {
    height: 100dvh !important;
    min-height: 100dvh !important;
}

/* Drawer Header Container - Ensure proper height */
/* Target: <div class="grid gap-y-2.5 p-6 pb-5"> */
div.fixed.z-\[1000\].overflow-hidden.bg-white.inset-y-0 div[class*="grid"][class*="p-6"] {
    min-height: auto !important;
}
