/* ============================================================================
   AKMART - ENHANCED HEADER STYLESHEET
   Modern, Appealing, Responsive Header Design
   ============================================================================ */

/* ===== HEADER TOP SECTION - Enhanced ===== */

.header-top {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-bottom: 2px solid rgba(255, 107, 107, 0.3);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 12px 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

/* Social Links - Enhanced */
.header-top-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-top-actions .social-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.header-top-actions .social-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 107, 107, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.header-top-actions .social-link:hover {
    background: var(--salmon-pink);
    color: var(--white);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

.header-top-actions .social-link:hover::before {
    width: 100%;
    height: 100%;
}

.header-top-actions .social-link ion-icon {
    position: relative;
    z-index: 1;
}

/* Free Shipping Alert - Enhanced */
.alert-notice {
    background: linear-gradient(90deg, rgba(255, 107, 107, 0.2), rgba(255, 107, 107, 0.1));
    color: var(--white);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 20px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 107, 107, 0.3);
    transition: all 0.3s ease;
}

.alert-notice:hover {
    background: linear-gradient(90deg, rgba(255, 107, 107, 0.3), rgba(255, 107, 107, 0.2));
    transform: scale(1.02);
}

.alert-notice ion-icon {
    font-size: 18px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

/* Language & Currency Selects - Enhanced */
.header-top-selects {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-top-selects select {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 35px 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.header-top-selects select:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: var(--salmon-pink);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.header-top-selects select:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.2);
    border-color: var(--salmon-pink);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.2);
}

.header-top-selects option {
    background: var(--eerie-black);
    color: var(--white);
    padding: 10px;
}

/* ===== HEADER MAIN SECTION - Enhanced ===== */

/* ===== HEADER MAIN SECTION - Enhanced ===== */

.header-main {
    background: var(--white);
    padding: 20px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-main.scrolled {
    padding: 12px 0;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.12);
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Logo - Enhanced */
.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.header-logo:hover {
    transform: scale(1.05);
}

.header-logo .logo-img {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--salmon-pink), #ff6b6b);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
    transition: all 0.3s ease;
}

.header-logo:hover .logo-img {
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.5);
    transform: rotate(-5deg);
}

.header-logo .logo-img ion-icon {
    font-size: 28px;
    color: var(--white);
}

.header-logo .logo-text {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--salmon-pink), #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
}

/* Search Box - Modern Google/Amazon Style */
.header-search-container {
    flex: 1;
    max-width: 650px;
    position: relative;
    min-width: 250px;
}

.header-search-form {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 52px;
    padding: 4px 20px 4px 14px;
    border-radius: 28px;
    border: 1.8px solid #dadce0;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(18, 38, 63, 0.08);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.header-search-form:hover {
    border-color: #c4c6c9;
    box-shadow: 0 6px 18px rgba(18, 38, 63, 0.1);
}

.header-search-form:focus-within {
    border-color: #4285f4;
    box-shadow: 0 8px 20px rgba(66, 133, 244, 0.15);
    transform: translateY(-1px);
}

.search-btn {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    color: #5f6368;
    font-size: 21px;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease, background 0.2s ease;
    flex-shrink: 0;
}

.search-btn:hover {
    color: #1a73e8;
    background: rgba(26, 115, 232, 0.12);
    transform: scale(1.08);
}

.search-btn:active {
    transform: scale(0.95);
}

.search-btn ion-icon {
    position: relative;
    z-index: 1;
    font-size: 20px !important;
    width: 20px !important;
    height: 20px !important;
    color: inherit;
    stroke-width: 36px;
}

.search-field {
    flex: 1;
    border: none;
    background: transparent;
    color: #202124;
    font-size: 15px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    padding: 12px 0;
    transition: color 0.2s ease;
}

.search-field:focus {
    outline: none;
}

.search-field::placeholder {
    color: #80868b;
}

/* Header Actions - Enhanced */
.header-user-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.action-btn {
    position: relative;
    padding: 10px;
    background: var(--cultured);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--eerie-black);
    font-size: 22px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.action-btn:hover {
    background: linear-gradient(135deg, var(--salmon-pink), #ff6b6b);
    color: var(--white);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 5px 20px rgba(255, 107, 107, 0.3);
}

.count-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(135deg, #ff6b6b, var(--salmon-pink));
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--white);
    animation: countPulse 2s ease-in-out infinite;
}

.count.is-zero {
    display: none;
}

@keyframes countPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* ===== DESKTOP NAVIGATION - Enhanced ===== */

.desktop-navigation-menu {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 2px solid var(--cultured);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.04);
    position: relative;
}

.desktop-navigation-menu .container {
    display: flex;
    justify-content: center;
}

.desktop-menu-category-list {
    display: flex;
    align-items: center;
    gap: 5px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-category {
    position: relative;
}

/* Split menu wrapper - allows clickable label + dropdown toggle */
.menu-title-wrapper {
    display: flex;
    align-items: center;
    gap: 0;
}

.menu-title-wrapper .menu-title-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 18px 10px 18px 25px;
    color: var(--eerie-black);
    font-size: 15px;
    font-weight: 600;
    text-transform: capitalize;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.3px;
    cursor: pointer;
}

.menu-title-wrapper .menu-title-link:hover {
    color: var(--salmon-pink);
}

.menu-title-wrapper .menu-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 15px 18px 5px;
    color: var(--eerie-black);
    font-size: 18px;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-title-wrapper .menu-dropdown-toggle:hover,
.menu-category.is-open .menu-dropdown-toggle {
    color: var(--salmon-pink);
}

.menu-title-wrapper .menu-dropdown-toggle .menu-chevron {
    transition: transform 0.3s ease;
}

.menu-category.is-open .menu-dropdown-toggle .menu-chevron,
.menu-title-wrapper:hover .menu-dropdown-toggle .menu-chevron {
    transform: rotate(180deg);
}

/* Underline effect for split wrapper */
.menu-title-wrapper::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--salmon-pink), #ff6b6b);
    transform: translateX(-50%);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 3px 3px 0 0;
}

.menu-title-wrapper:hover::before,
.menu-category.is-open .menu-title-wrapper::before {
    width: 100%;
}

.menu-category .menu-title {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 18px 25px;
    color: var(--eerie-black);
    font-size: 15px;
    font-weight: 600;
    text-transform: capitalize;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    letter-spacing: 0.3px;
    border: none;
    background: transparent;
    cursor: pointer;
    appearance: none;
}

.menu-category .menu-title:focus-visible {
    outline: 3px solid rgba(255, 107, 107, 0.4);
    outline-offset: 2px;
    border-radius: 6px;
}

.menu-category .menu-title .menu-chevron {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.menu-category .menu-title::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--salmon-pink), #ff6b6b);
    transform: translateX(-50%);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 3px 3px 0 0;
}

.menu-category .menu-title:hover::before,
.menu-category:hover .menu-title::before,
.menu-category.is-open .menu-title::before,
.menu-category .menu-title.active::before {
    width: 100%;
}

.menu-category .menu-title:hover {
    color: var(--salmon-pink);
    background: rgba(255, 107, 107, 0.05);
}

.menu-category.is-open>.menu-title,
.menu-category .menu-title.active {
    color: var(--salmon-pink);
    background: rgba(255, 107, 107, 0.05);
}

.menu-category:hover .menu-title .menu-chevron,
.menu-category.is-open .menu-title .menu-chevron,
.menu-category .menu-title.active .menu-chevron {
    transform: rotate(180deg);
}

/* Dropdown Panel - Enhanced */
.dropdown-panel,
.dropdown-list {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 220px;
    padding: 15px 0;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(0);
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 999;
    border-top: 3px solid var(--salmon-pink);
}

/* Show dropdown ONLY when hovering the menu-category LI element (not click-based) */
/* DISABLED - Using style.css rules instead for proper hover control */
.menu-category:not(.mega-menu):hover>.dropdown-list {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Mega Menu - DISABLED - Using style.css rules for consistency */
/* This was conflicting with the Flipkart-style dropdown in style.css */
.menu-category.mega-menu>.dropdown-panel {
    /* All styles now in style.css */
}

/* Show mega-menu dropdown when hovering the menu-category LI element - DISABLED */
/* Using style.css hover rules instead */
.menu-category.mega-menu:hover>.dropdown-panel {
    /* Handled in style.css */
}

.dropdown-panel-head {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.panel-headline h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--eerie-black);
}

.panel-headline p {
    margin: 6px 0 0;
    font-size: 14px;
    color: var(--sonic-silver);
}

.dropdown-panel-cta {
    align-self: center;
    padding: 10px 20px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--salmon-pink), #ff6b6b);
    color: var(--white);
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dropdown-panel-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(255, 107, 107, 0.35);
}

/* Custom scrollbar for mega-menu */
.menu-category.mega-menu>.dropdown-panel::-webkit-scrollbar {
    width: 6px;
}

.menu-category.mega-menu>.dropdown-panel::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

.menu-category.mega-menu>.dropdown-panel::-webkit-scrollbar-thumb {
    background: var(--salmon-pink);
    border-radius: 10px;
}

.menu-category.mega-menu>.dropdown-panel::-webkit-scrollbar-thumb:hover {
    background: #ff6b6b;
}

.dropdown-panel-list {
    list-style: none;
    padding: 0;
    margin: 0;
    background: var(--white);
    border-radius: 12px;
    padding: 20px 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.dropdown-panel-list:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    border-color: rgba(255, 107, 107, 0.2);
}

.dropdown-panel-list .menu-title {
    font-size: 14px;
    font-weight: 700;
    color: #ff6b6b;
    padding: 0 0 12px 0;
    margin-bottom: 12px;
    border-bottom: 2px solid #ff6b6b;
    display: block;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
}

.dropdown-panel-list .menu-title:hover {
    color: var(--salmon-pink);
    padding-left: 5px;
}

.dropdown-panel-list .menu-title::after {
    content: '→';
    position: absolute;
    right: 0;
    opacity: 0;
    transition: all 0.3s ease;
    font-size: 16px;
}

.dropdown-panel-list .menu-title:hover::after {
    opacity: 1;
    right: -5px;
}

/* Panel Description (if any) */
.panel-description {
    font-size: 12px;
    color: var(--sonic-silver);
    margin-bottom: 10px;
    padding: 8px 12px;
    background: rgba(255, 107, 107, 0.05);
    border-radius: 6px;
    border-left: 3px solid var(--salmon-pink);
}

.panel-list-item {
    margin-bottom: 0;
    list-style: none;
}

.panel-list-item a {
    display: block;
    padding: 9px 12px;
    color: #424553;
    font-size: 13px;
    font-weight: 400;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding-left: 12px;
    line-height: 1.4;
}

.panel-list-item a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--salmon-pink), #ff6b6b);
    transform: translateY(-50%);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.panel-list-item a:hover {
    background: linear-gradient(90deg, rgba(255, 107, 107, 0.08), rgba(255, 107, 107, 0.03));
    color: var(--salmon-pink);
    padding-left: 20px;
    font-weight: 500;
}

.panel-list-item a:hover::before {
    width: 12px;
    left: 4px;
}

/* Empty state for admin - Myntra style */
.dropdown-panel.empty {
    min-width: 400px;
    padding: 40px;
    text-align: center;
}

.dropdown-panel.empty .panel-description {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1), rgba(255, 107, 107, 0.05));
    border: 2px dashed var(--salmon-pink);
    border-radius: 12px;
    padding: 25px;
    margin: 0;
}

.dropdown-panel.empty .panel-description a {
    color: var(--salmon-pink);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: white;
    border-radius: 8px;
    margin-top: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.2);
}

.dropdown-panel.empty .panel-description a:hover {
    background: var(--salmon-pink);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

.dropdown-panel.empty .panel-description a::before {
    content: '+';
    font-size: 20px;
    font-weight: 700;
}

/* ===== MOBILE RESPONSIVE - Enhanced ===== */

@media (max-width: 1440px) {

    /* Adjust mega-menu for smaller screens */
    .menu-category.mega-menu>.dropdown-panel {
        min-width: 500px;
        max-width: 90vw;
        padding: 30px;
        gap: 25px 30px;
    }

    .menu-category.mega-menu>.dropdown-panel:has(.dropdown-panel-list:nth-child(-n+3):last-child) {
        min-width: 500px;
        max-width: 800px;
    }

    .menu-category.mega-menu>.dropdown-panel:has(.dropdown-panel-list:nth-child(-n+6):nth-child(n+4):last-child) {
        min-width: 800px;
        max-width: 1000px;
    }

    .menu-category.mega-menu>.dropdown-panel:has(.dropdown-panel-list:nth-child(n+7)) {
        min-width: 1000px;
        max-width: 1200px;
    }
}

@media (max-width: 1024px) {
    .header-logo .logo-text {
        font-size: 24px;
    }

    .header-search-container {
        max-width: 350px;
    }

    .header-main .container {
        gap: 20px;
    }

    /* Mega-menu becomes 2 columns on tablets */
    .menu-category.mega-menu>.dropdown-panel {
        grid-template-columns: repeat(2, 1fr);
        min-width: 450px;
        max-width: 85vw;
        padding: 25px;
        gap: 20px 25px;
    }

    .dropdown-panel-list .menu-title {
        font-size: 13px;
    }

    .panel-list-item a {
        font-size: 12px;
        padding: 8px 10px;
    }
}

@media (max-width: 768px) {
    .header-main .container {
        gap: 15px;
    }

    .header-top {
        padding: 10px 0;
    }

    .header-top-actions .social-link {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .alert-notice {
        font-size: 12px;
        padding: 8px 12px;
    }

    .header-top-selects select {
        padding: 6px 25px 6px 10px;
        font-size: 12px;
    }

    .header-main {
        padding: 12px 0;
    }

    .header-logo {
        flex-shrink: 0;
        min-width: auto;
    }

    .header-logo .logo-img {
        width: 40px;
        height: 40px;
    }

    .header-logo .logo-img ion-icon {
        font-size: 22px;
    }

    .header-logo .logo-text {
        font-size: 18px;
    }

    .header-search-container {
        flex: 1;
        min-width: 200px;
        max-width: 400px;
    }

    .search-field {
        padding: 11px 14px;
        font-size: 13px;
    }

    .action-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .count-badge {
        width: 18px;
        height: 18px;
        font-size: 10px;
    }

    /* Hide desktop navigation on tablet */
    .desktop-navigation-menu {
        display: none;
    }

    /* Wishlist dropdown on tablet - adjust width */
    .wishlist-dropdown {
        width: 300px;
    }
}

@media (max-width: 480px) {
    .header-main .container {
        padding: 0 15px;
        gap: 12px;
    }

    .header-logo {
        flex-shrink: 0;
        min-width: 50px;
    }

    .header-logo .logo-img {
        width: 36px;
        height: 36px;
    }

    .header-logo .logo-text {
        font-size: 16px;
        display: none;
    }

    .header-search-container {
        flex: 1;
        min-width: 100px;
        max-width: none;
    }

    .header-user-actions {
        flex-shrink: 0;
        gap: 8px;
    }

    .action-btn {
        width: 36px;
        height: 36px;
        font-size: 18px;
        padding: 0;
    }

    .action-btn ion-icon {
        font-size: 18px !important;
        display: block !important;
    }

    .count-badge {
        width: 16px;
        height: 16px;
        font-size: 9px;
        top: -4px;
        right: -4px;
    }

    .search-field {
        padding: 10px 0;
        font-size: 14px;
    }

    .search-btn {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }

    .search-btn ion-icon {
        font-size: 18px !important;
        width: 18px !important;
        height: 18px !important;
    }

    .header-search-form {
        padding: 4px 14px 4px 12px;
        border-radius: 24px;
    }

    .header-top-actions {
        gap: 8px;
    }

    .header-top-actions .social-link {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .alert-notice {
        display: none;
        /* Hide on very small screens */
    }

    /* Wishlist dropdown on mobile - adjust position */
    .wishlist-dropdown {
        width: 280px;
        right: -20px;
        max-height: 350px;
    }
}

/* ===== STICKY HEADER ANIMATIONS ===== */

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.header-main.scrolled {
    animation: slideDown 0.3s ease-out;
}

/* ===== PRINT STYLES ===== */

@media print {

    .header-top,
    .desktop-navigation-menu {
        display: none !important;
    }

    .header-main {
        box-shadow: none;
        border-bottom: 1px solid #000;
    }
}

/* Wishlist Dropdown */
.wishlist-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 320px;
    max-height: 400px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow: hidden;
}

.wishlist-btn:hover .wishlist-dropdown,
.wishlist-btn:focus .wishlist-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.wishlist-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.wishlist-dropdown-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--eerie-black);
}

.view-all-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--salmon-pink);
    text-decoration: none;
    transition: color 0.2s ease;
}

.view-all-link:hover {
    color: #ff6b6b;
}

.wishlist-dropdown-items {
    max-height: 280px;
    overflow-y: auto;
}

.wishlist-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    transition: background 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.wishlist-dropdown-item:hover {
    background: rgba(255, 107, 107, 0.05);
}

.wishlist-dropdown-item:last-child {
    border-bottom: none;
}

.wishlist-dropdown-item-image {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    background: #f8f9fa;
}

.wishlist-dropdown-item-info {
    flex: 1;
    min-width: 0;
}

.wishlist-dropdown-item-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--eerie-black);
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
    line-clamp: 2;
}

.wishlist-dropdown-item-price {
    font-size: 13px;
    font-weight: 700;
    color: var(--salmon-pink);
}

.wishlist-dropdown-item-remove {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 12px;
}

.wishlist-dropdown-item-remove:hover {
    background: #dc3545;
    color: white;
    transform: scale(1.1);
}

.wishlist-dropdown-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--sonic-silver);
}

.wishlist-dropdown-empty ion-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.wishlist-dropdown-empty p {
    margin: 0 0 16px;
    font-size: 14px;
}

.wishlist-dropdown-empty .btn {
    padding: 8px 16px;
    font-size: 12px;
}

/* Custom scrollbar for wishlist dropdown */
.wishlist-dropdown-items::-webkit-scrollbar {
    width: 4px;
}

.wishlist-dropdown-items::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

.wishlist-dropdown-items::-webkit-scrollbar-thumb {
    background: var(--salmon-pink);
    border-radius: 10px;
}

.wishlist-dropdown-items::-webkit-scrollbar-thumb:hover {
    background: #ff6b6b;
}

/* Profile Dropdown */
.profile-dropdown-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.profile-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
}

.profile-btn ion-icon {
    font-size: 16px;
}

.profile-initial {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--salmon-pink);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.profile-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 260px;
    background: var(--white);
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.15);
    border: 1px solid rgba(15, 23, 42, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.25s ease;
    z-index: 1500;
    overflow: hidden;
    pointer-events: none;
}

.profile-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 24px;
    width: 12px;
    height: 12px;
    background: var(--white);
    border-left: 1px solid rgba(15, 23, 42, 0.1);
    border-top: 1px solid rgba(15, 23, 42, 0.1);
    transform: rotate(45deg);
}

.profile-dropdown-wrapper.is-open .profile-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.profile-dropdown-header {
    padding: 16px 18px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.profile-dropdown-name {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--eerie-black);
}

.profile-dropdown-email {
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--sonic-silver);
    word-break: break-all;
}

.profile-dropdown-links {
    display: flex;
    flex-direction: column;
}

.profile-dropdown-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    text-decoration: none;
    color: var(--eerie-black);
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease;
}

.profile-dropdown-links a ion-icon {
    width: 18px;
    font-size: 18px;
    text-align: center;
    color: var(--sonic-silver);
}

.profile-dropdown-links a:hover {
    background: rgba(255, 107, 107, 0.08);
    color: var(--salmon-pink);
}

.profile-dropdown-links a.logout-link {
    color: #b91c1c;
}

.profile-dropdown-links a.logout-link:hover {
    background: rgba(220, 38, 38, 0.08);
    color: #b91c1c;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== MOBILE-OPTIMIZED SECTION HEADERS ===== */

.section {
    position: relative;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.section-header-text {
    flex: 1;
    min-width: 200px;
}

.section-header-text h1 {
    font-size: 32px;
    margin: 0 0 10px;
    color: var(--text-primary);
    word-break: break-word;
}

.section-header-text p {
    color: var(--text-secondary);
    margin: 0;
    word-break: break-word;
}

.section-header-action {
    flex-shrink: 0;
    white-space: nowrap;
}

/* Mobile: Stack header elements */
@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        gap: 15px;
        margin-bottom: 25px;
    }

    .section-header-text {
        width: 100%;
        min-width: unset;
    }

    .section-header-text h1 {
        font-size: 24px;
    }

    .section-header-text p {
        font-size: 13px;
    }

    .section-header-action {
        width: 100%;
    }

    .section-header-action .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .section-header {
        gap: 12px;
    }

    .section-header-text h1 {
        font-size: 20px;
    }

    .section-header-text p {
        font-size: 12px;
    }

    .section-header-action .btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}

/* Container overflow prevention */
.container {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Ensure product grid items don't overflow */
@media (max-width: 768px) {

    .product-grid,
    .products-grid {
        gap: 12px;
    }
}

@media (max-width: 480px) {

    .product-grid,
    .products-grid {
        grid-template-columns: 1fr !important;
        gap: 10px;
    }
}

/* ============================================================================
   DARK MODE - Search Bar Styling
   ============================================================================ */

[data-theme="dark"] .header-search-form {
    background: #303134;
    border-color: #5f6368;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .header-search-form:hover {
    border-color: #8ab4f8;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .header-search-form:focus-within {
    border-color: #8ab4f8;
    box-shadow: 0 3px 12px rgba(138, 180, 248, 0.2);
}

[data-theme="dark"] .search-field {
    color: #e8eaed;
}

[data-theme="dark"] .search-field::placeholder {
    color: #9aa0a6;
}

[data-theme="dark"] .search-btn {
    color: #dadce0;
    background: none;
}

[data-theme="dark"] .search-btn:hover {
    color: #8ab4f8;
    background: rgba(138, 180, 248, 0.18);
}

/* Search Button Icon Animation */
.search-btn ion-icon {
    transition: transform 0.2s ease;
}

.search-btn:hover ion-icon {
    transform: scale(1.1);
}

.search-btn:active ion-icon {
    transform: scale(0.95);
}

/* ===== PROFILE BUTTON FIX ===== */
.profile-btn {
    width: auto !important;
    min-width: 45px;
    padding: 0 12px !important;
    border-radius: 30px !important;
    gap: 6px;
    justify-content: center;
}

.profile-btn .profile-initial {
    font-weight: 600;
    font-size: 16px;
    line-height: 1;
}

.profile-btn ion-icon {
    font-size: 16px !important;
    margin: 0 !important;
    color: var(--eerie-black);
}

.profile-btn:hover ion-icon {
    color: var(--white);
}

/* Ensure profile dropdown aligns correctly with new width */
.profile-dropdown {
    right: 0;
    left: auto !important;
    transform: none !important;
    margin-top: 10px;
}