/* UAE FLAG EMOJI STYLES */
.uae-flag{
    font-size:24px;
    line-height:1;
    display:inline-block;
}

/* MYNTRA HEADER - FIXED HEIGHT */
.myntra-header{
    /* Background color handled by inline style for dynamic PHP variables */
    width:100%;
    box-shadow:0 2px 6px rgba(0,0,0,0.08);
    position:sticky;
    top:0;
    z-index:1000;
}

/* MAIN HEADER - FIXED HEIGHT 70px */
.myntra-header .main-header{
    /* max-width handled by inline style */
    margin:0 auto;
    padding:0 20px;
    display:flex;
    align-items:center;
    gap:16px;
    height:70px;
    min-height:70px;
    max-height:70px;
}

/* LOGO - SCALES INDEPENDENTLY */
.myntra-logo{
    flex-shrink:0;
    display:flex;
    align-items:center;
    height:70px;
}

.myntra-logo a{
    text-decoration:none;
    display:flex;
    align-items:center;
    height:100%;
}

.myntra-logo img{
    /* height handled by inline style */
    width:auto;
    max-width:250px;
    object-fit:contain;
}

.myntra-logo span{
    /* font-size handled by inline style */
    font-weight:700;
    /* color handled by inline style */
    letter-spacing:-1px;
}

/* LOCATION SELECTOR - WITH UAE FLAG */
.location-selector{
    position:relative;
    display:flex;
    align-items:center;
    gap:10px;
    padding:10px 16px;
    background:rgba(255,255,255,0.2);
    border-radius:8px;
    cursor:pointer;
    transition:all .2s;
    border:1px solid rgba(0,0,0,0.1);
    min-width:200px;
    height:50px;
}

.location-selector:hover{
    background:rgba(255,255,255,0.3);
    border-color:rgba(0,0,0,0.15);
    transform:translateY(-1px);
}

.location-flag{
    font-size:28px;
    line-height:1;
    flex-shrink:0;
}

.location-icon{
    font-size:16px;
    /* color handled by inline style */
    flex-shrink:0;
}

.location-text{
    flex:1;
}

.location-label{
    font-size:10px;
    color:rgba(40,44,63,0.7);
    font-weight:600;
    text-transform:uppercase;
    letter-spacing:0.5px;
    line-height:1.2;
}

.location-value{
    font-size:14px;
    font-weight:700;
    /* color handled by inline style */
    line-height:1.4;
}

.location-arrow{
    font-size:12px;
    /* color handled by inline style */
    transition:transform .3s;
    flex-shrink:0;
}

.location-selector.active .location-arrow{
    transform:rotate(180deg);
}

/* LOCATION DROPDOWN */
.location-dropdown{
    position:absolute;
    top:calc(100% + 8px);
    left:0;
    background:#fff;
    border-radius:8px;
    box-shadow:0 8px 24px rgba(0,0,0,0.15);
    min-width:300px;
    z-index:9999;
    display:none;
    overflow:hidden;
}

.location-dropdown.active{
    display:block;
    animation:slideDown 0.3s ease;
}

.location-dropdown-header{
    padding:16px;
    border-bottom:1px solid #f0f0f0;
    background:linear-gradient(135deg,#f8f8f8 0%,#f0f0f0 100%);
}

.location-dropdown-header h4{
    margin:0 0 8px 0;
    font-size:14px;
    font-weight:700;
    color:#111;
    display:flex;
    align-items:center;
    gap:8px;
}

.location-dropdown-header p{
    margin:0;
    font-size:12px;
    color:#666;
}

.location-list{
    max-height:360px;
    overflow-y:auto;
}

.location-item{
    padding:14px 16px;
    cursor:pointer;
    transition:all .2s;
    border-bottom:1px solid #f5f5f5;
    display:flex;
    align-items:center;
    gap:12px;
}

.location-item:hover{
    background:#f8f9fa;
}

.location-item.active{
    background:#e8f5e9;
    border-left:4px solid #4caf50;
}

.location-item-icon{
    width:40px;
    height:40px;
    border-radius:50%;
    background:linear-gradient(135deg,#f0f0f0 0%,#e8e8e8 100%);
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:20px;
    flex-shrink:0;
    border:2px solid #e0e0e0;
}

.location-item.active .location-item-icon{
    background:linear-gradient(135deg,#4caf50 0%,#45a049 100%);
    border-color:#4caf50;
    color:#fff;
}

.location-item-text{
    flex:1;
}

.location-item-name{
    font-size:14px;
    font-weight:600;
    color:#111;
    line-height:1.4;
    margin-bottom:2px;
}

.location-item-details{
    font-size:11px;
    color:#666;
    line-height:1.3;
    display:flex;
    align-items:center;
    gap:4px;
}

.location-item-check{
    color:#4caf50;
    font-size:18px;
    display:none;
    flex-shrink:0;
}

.location-item.active .location-item-check{
    display:block;
}

/* SEARCH - NOON INSPIRED */
.search-wrapper{
    flex:1;
    max-width:600px;
    position:relative;
}

.search-input-container{
    display:flex;
    align-items:center;
    background:#fff;
    border:2px solid transparent;
    border-radius:8px;
    overflow:hidden;
    transition:all .3s;
    box-shadow:0 2px 4px rgba(0,0,0,0.06);
    height:50px;
}

.search-input-container:focus-within{
    /* border-color handled by inline style */
    box-shadow:0 4px 12px rgba(0,0,0,0.12);
}

.search-input{
    flex:1;
    height:50px;
    border:none;
    background:transparent;
    padding:0 16px;
    font-size:15px;
    outline:none;
    color:#111;
    font-weight:400;
}

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

.search-clear-btn{
    background:transparent;
    border:none;
    padding:0 12px;
    cursor:pointer;
    display:none;
    transition:all .2s;
    height:50px;
}

.search-input-container.has-value .search-clear-btn{
    display:flex;
    align-items:center;
}

.search-clear-btn i{
    font-size:14px;
    color:#999;
}

.search-clear-btn:hover i{
    color:#111;
}

.search-btn{
    /* background handled by inline style */
    border:none;
    padding:0 20px;
    height:50px;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
    transition:all .2s;
}

.search-btn:hover{
    background:#1a1d2e;
}

.search-btn i{
    font-size:18px;
    color:#fff;
}

/* SEARCH RESULTS - CLEAN DROPDOWN */
.search-results-dropdown{
    position:absolute;
    top:calc(100% + 8px);
    left:0;
    right:0;
    background:#fff;
    border-radius:8px;
    box-shadow:0 8px 24px rgba(0,0,0,0.15);
    max-height:520px;
    overflow-y:auto;
    z-index:9999;
    display:none;
}

.search-results-list{
    padding:8px;
}

.search-result-item-wrapper{
    margin-bottom:6px;
    position:relative;
    background:#fff;
    border-radius:8px;
    overflow:hidden;
    transition:all .2s;
}

.search-result-item-wrapper.expanded{
    background:#f8f9fa;
}

.search-result-item{
    display:flex;
    gap:14px;
    padding:14px;
    padding-right:70px;
    border-radius:8px;
    text-decoration:none;
    color:#111;
    transition:all .2s;
    border:1px solid #f0f0f0;
}

.search-result-item:hover{
    background:#f8f9fa;
    border-color:#e0e0e0;
}

.item-image{
    width:68px;
    height:68px;
    flex-shrink:0;
    border-radius:6px;
    overflow:hidden;
    background:#f8f8f8;
    display:flex;
    align-items:center;
    justify-content:center;
    border:1px solid #e8e8e8;
}

.item-image img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.item-image .no-image{
    color:#ccc;
    font-size:28px;
}

.item-details{
    flex:1;
    display:flex;
    flex-direction:column;
    gap:6px;
    justify-content:center;
}

.item-title{
    font-weight:600;
    font-size:15px;
    line-height:1.4;
    color:#111;
}

.item-price{
    font-size:17px;
    font-weight:700;
    /* color handled by inline style */
    margin-top:2px;
}

.product-actions{
    position:absolute !important;
    bottom:14px !important;
    right:14px !important;
    display:flex !important;
    align-items:center !important;
    gap:6px !important;
    z-index:10 !important;
}

.add-cart-btn{
    /* background handled by inline style */
    border:none !important;
    border-radius:6px !important;
    width:50px !important;
    height:42px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    cursor:pointer !important;
    transition:all .3s ease !important;
    box-shadow:0 2px 8px rgba(40,44,63,0.25) !important;
}

.add-cart-btn:hover{
    background:#1a1d2e !important;
    transform:translateY(-2px) !important;
    box-shadow:0 4px 14px rgba(40,44,63,0.35) !important;
}

.add-cart-btn i{
    font-size:17px !important;
    color:#fff !important;
}

.add-cart-btn.adding{
    pointer-events:none !important;
    opacity:0.7 !important;
}

.add-cart-btn.added{
    background:#00b67a !important;
    box-shadow:0 2px 8px rgba(0,182,122,0.3) !important;
}

.qty-controls-wrapper{
    display:none !important;
    padding:0 14px 14px 14px !important;
    animation:slideDown 0.3s ease !important;
}

.qty-controls-wrapper.active{
    display:block !important;
}

@keyframes slideDown{
    from{opacity:0;transform:translateY(-10px)}
    to{opacity:1;transform:translateY(0)}
}

.qty-controls{
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:12px !important;
    padding:14px !important;
    background:#f8f9fa !important;
    /* border handled by inline style */
    border-radius:8px !important;
}

.qty-selector{
    display:flex !important;
    align-items:center !important;
    background:#fff !important;
    border:1px solid #e0e0e0 !important;
    border-radius:6px !important;
    overflow:hidden !important;
    height:38px !important;
}

.qty-btn{
    width:34px !important;
    height:38px !important;
    background:#fff !important;
    border:none !important;
    cursor:pointer !important;
    font-size:18px !important;
    font-weight:700 !important;
    color:#666 !important;
    transition:all .2s !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
}

.qty-btn:hover{
    /* background handled by inline style */
    color:#fff !important;
}

.qty-input{
    width:42px !important;
    height:38px !important;
    border:none !important;
    text-align:center !important;
    font-size:15px !important;
    font-weight:700 !important;
    color:#111 !important;
    background:#fff !important;
    padding:0 !important;
    border-left:1px solid #e0e0e0 !important;
    border-right:1px solid #e0e0e0 !important;
}

.confirm-add-btn{
    /* background handled by inline style */
    color:#fff !important;
    border:none !important;
    padding:9px 22px !important;
    border-radius:6px !important;
    font-weight:600 !important;
    font-size:14px !important;
    cursor:pointer !important;
    transition:all .2s !important;
    box-shadow:0 2px 8px rgba(40,44,63,0.25) !important;
    display:flex !important;
    align-items:center !important;
    gap:6px !important;
}

.confirm-add-btn:hover{
    background:#1a1d2e !important;
    transform:translateY(-2px) !important;
    box-shadow:0 4px 14px rgba(40,44,63,0.35) !important;
}

.confirm-add-btn.added{
    background:#00b67a !important;
}

.search-loading,.no-results{
    padding:40px 20px;
    text-align:center;
    color:#666;
    font-size:14px;
}

.view-all-results{
    padding:16px;
    text-align:center;
    border-top:1px solid #f0f0f0;
    background:#fafafa;
}

.view-all-results a{
    /* color handled by inline style */
    font-weight:600;
    text-decoration:none;
    font-size:13px;
    display:inline-flex;
    align-items:center;
    gap:6px;
}

.view-all-results a:hover{
    color:#1a1d2e;
}

.cart-notification{
    position:fixed;
    bottom:90px;
    left:50%;
    transform:translateX(-50%);
    background:#00b67a;
    color:#fff;
    padding:14px 28px;
    border-radius:8px;
    font-size:14px;
    font-weight:600;
    box-shadow:0 4px 16px rgba(0,182,122,0.4);
    z-index:9999;
    display:none;
}

.cart-notification.show{
    display:block;
    animation:slideUp 0.3s ease;
}

.cart-notification i{
    margin-right:8px;
}

@keyframes slideUp{
    from{opacity:0;bottom:70px}
    to{opacity:1;bottom:90px}
}

/* HEADER ACTIONS - FIXED HEIGHT */
.header-actions{
    display:flex;
    align-items:center;
    gap:6px;
    flex-shrink:0;
    height:70px;
}

.action-item{
    display:flex;
    align-items:center;
    gap:8px;
    text-decoration:none;
    /* color handled by inline style */
    cursor:pointer;
    transition:all .2s;
    padding:11px 16px;
    border-radius:8px;
    font-size:13px;
    font-weight:600;
    background:rgba(255,255,255,0.15);
    height:50px;
}

.action-item:hover{
    background:rgba(255,255,255,0.25);
    transform:translateY(-1px);
}

.action-item i{
    font-size:20px;
}

.cart-badge{
    position:relative;
}

.cart-badge[data-cart-count]:not([data-cart-count="0"])::after{
    content:attr(data-cart-count);
    position:absolute;
    top:6px;
    right:10px;
    background:#ff4757;
    color:#fff;
    border-radius:10px;
    min-width:18px;
    height:18px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:10px;
    font-weight:700;
    padding:0 5px;
    /* border handled by inline style */
}

/* CATEGORIES NAV - WHITE CLEAN */
.categories-nav{
    /* background handled by inline style */
    border-top:1px solid rgba(0,0,0,0.06);
    border-bottom:1px solid rgba(0,0,0,0.06);
    box-shadow:0 2px 4px rgba(0,0,0,0.04);
}

.categories-nav-container{
    /* max-width handled by inline style */
    margin:0 auto;
    padding:0 20px;
}

.nav-menu{
    display:flex;
    list-style:none;
    gap:4px;
    margin:0;
    padding:0;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
}

.nav-menu::-webkit-scrollbar{
    height:0;
}

.nav-menu li{
    margin:0;
    padding:0;
    flex-shrink:0;
}

.nav-menu li a{
    display:flex;
    align-items:center;
    gap:6px;
    text-decoration:none;
    /* color handled by inline style */
    font-weight:600;
    font-size:13px;
    padding:14px 18px;
    transition:all .2s;
    border-bottom:3px solid transparent;
    white-space:nowrap;
    border-radius:4px 4px 0 0;
}

.nav-menu li a:hover{
    background:rgba(0,0,0,0.04);
    /* border-bottom-color handled by inline style */
}

.mobile-menu-toggle{
    display:none;
    font-size:24px;
    cursor:pointer;
    /* color handled by inline style */
    background:rgba(255,255,255,0.15);
    border:0;
    padding:10px;
    border-radius:6px;
    height:50px;
    width:50px;
    align-items:center;
    justify-content:center;
}

/* MOBILE BOTTOM NAV */
.mobile-bottom-nav{
    display:none;
    position:fixed;
    bottom:0;
    left:0;
    right:0;
    background:#fff;
    border-top:1px solid #e8e8e8;
    box-shadow:0 -2px 10px rgba(0,0,0,0.08);
    z-index:1001;
    padding:8px 0 12px 0;
}

.mobile-bottom-nav .nav-container{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:8px;
    padding:0 16px;
}

.mobile-bottom-nav .nav-item{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:4px;
    cursor:pointer;
    text-decoration:none;
    color:#666;
    transition:all .2s;
    flex:1;
    max-width:80px;
    padding:4px 0;
}

.mobile-bottom-nav .nav-item:hover,
.mobile-bottom-nav .nav-item.active{
    /* color handled by inline style */
}

.mobile-bottom-nav .nav-item i{
    font-size:20px;
}

.mobile-bottom-nav .nav-item span{
    font-size:10px;
    font-weight:600;
    text-align:center;
    line-height:1.2;
}

.mobile-bottom-nav .cart-badge-mobile{
    position:relative;
}

.mobile-bottom-nav .cart-badge-mobile[data-cart-count]:not([data-cart-count="0"])::after{
    content:attr(data-cart-count);
    position:absolute;
    top:-4px;
    right:-8px;
    background:#ff4757;
    color:#fff;
    border-radius:10px;
    min-width:16px;
    height:16px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:9px;
    font-weight:700;
    padding:0 4px;
}

/* CATEGORY DRAWER */
.category-drawer-overlay{
    position:fixed;
    top:0;
    left:0;
    right:0;
    bottom:0;
    background:rgba(0,0,0,0.5);
    z-index:2000;
    display:none;
}

.category-drawer-overlay.active{
    display:block;
}

.category-drawer{
    position:fixed;
    top:0;
    left:-100%;
    bottom:0;
    width:85%;
    max-width:360px;
    background:#fff;
    z-index:2001;
    overflow-y:auto;
    transition:left .3s ease;
    box-shadow:2px 0 12px rgba(0,0,0,0.2);
}

.category-drawer.active{
    left:0;
}

.category-drawer-header{
    /* background handled by inline style */
    /* color handled by inline style */
    padding:18px 20px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    position:sticky;
    top:0;
    z-index:10;
    box-shadow:0 2px 6px rgba(0,0,0,0.08);
}

.category-drawer-header h3{
    margin:0;
    font-size:18px;
    font-weight:700;
}

.category-drawer-close{
    background:transparent;
    border:none;
    font-size:24px;
    cursor:pointer;
    /* color handled by inline style */
    padding:5px;
}

.category-list{
    list-style:none;
    margin:0;
    padding:0;
}

.category-list-item{
    border-bottom:1px solid #f0f0f0;
}

.category-list-item a{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:16px 20px;
    text-decoration:none;
    color:#111;
    font-size:15px;
    font-weight:600;
    transition:all .2s;
}

.category-list-item a:hover{
    background:#f8f9fa;
    /* color handled by inline style */
}

.category-icon-wrapper{
    width:46px !important;
    height:46px !important;
    margin-right:12px !important;
    border-radius:8px !important;
    overflow:hidden !important;
    background:#f5f5f5 !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    flex-shrink:0 !important;
    border:1px solid #e8e8e8 !important;
}

.category-icon-wrapper img{
    width:100% !important;
    height:100% !important;
    object-fit:cover !important;
}

.category-icon-wrapper i{
    font-size:22px !important;
    color:#999 !important;
}

.category-arrow{
    font-size:12px;
    color:#999;
    transition:transform .3s;
}

.category-list-item.expanded .category-arrow{
    transform:rotate(90deg);
}

.category-count{
    font-size:11px;
    color:#999;
    margin-left:6px;
    font-weight:400;
}

.subcategory-list{
    list-style:none;
    margin:0;
    padding:0;
    background:#fafafa;
    display:none;
}

.subcategory-list.active{
    display:block;
}

.subcategory-list-item a{
    padding:12px 20px 12px 74px;
    font-size:14px;
    font-weight:500;
    color:#666;
}

.subcategory-list-item a:hover{
    background:#f0f0f0;
    /* color handled by inline style */
}

@media (max-width:768px){
    .myntra-header .main-header{
        padding:0 15px;
        gap:10px;
        height:60px;
        min-height:60px;
        max-height:60px;
    }

    .myntra-logo{
        order:1;
        height:60px;
    }

    .myntra-logo img{
        /* height handled by inline style */
    }

    .location-selector{
        display:none;
    }

    .search-wrapper{
        order:2;
        flex:1;
        max-width:none;
        margin:0;
    }

    .search-input{
        height:42px;
        font-size:13px;
        padding:0 12px;
    }

    .search-input-container{
        height:42px;
    }

    .search-btn{
        height:42px;
        padding:0 14px;
    }

    .header-actions{
        display:none!important;
    }

    .mobile-menu-toggle{
        display:flex;
        order:3;
        flex-shrink:0;
        height:42px;
        width:42px;
    }

    .categories-nav{
        display:none;
    }

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

    body{
        padding-bottom:70px;
    }

    .search-results-dropdown{
        position:fixed;
        top:60px;
        left:0;
        right:0;
        bottom:70px;
        max-height:none;
        border-radius:0;
    }
}
