/* Custom Premium Auth Modal Styling */
.auth-modal .modal-content {
    border-radius: 20px;
    overflow: hidden;
    border: none;
    box-shadow: 0 15px 50px rgba(0,0,0,0.2);
}

.auth-modal .modal-body {
    padding: 0;
    display: flex;
}

.auth-modal .auth-banner {
    flex: 1;
    background: url('../img/signUpbg.jpg') no-repeat center center;
    background-size: cover;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    padding: 40px;
    text-align: center;
    position: relative;
}

/* Cart/Wishlist Badge Count */
.cart-icon {
    position: relative !important;
    display: inline-block !important;
}

.badge-count {
    position: absolute !important;
    top: -8px !important;
    right: -8px !important;
    background: #d4a373 !important;
    color: #fff !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    width: 18px !important;
    height: 18px !important;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff !important;
    z-index: 999 !important;
    line-height: 1 !important;
}

/* Hide theme's default hardcoded '0' badges with maximum specificity */
.menu-cart .cart-icon::before, 
.menu-cart .cart-icon::after,
.header-main .cart-icon::before,
.header-main .cart-icon::after,
.cart-icon::before,
.cart-icon::after {
    display: none !important;
    content: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

.auth-modal .auth-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
}

.auth-modal .auth-banner-content {
    position: relative;
    z-index: 1;
}

.auth-modal .auth-form-area {
    flex: 1.2;
    padding: 50px;
    background: white;
}

.auth-modal .nav-tabs {
    border: none;
    margin-bottom: 30px;
    gap: 20px;
}

.auth-modal .nav-tabs .nav-link {
    border: none;
    padding: 0;
    font-size: 24px;
    font-weight: 700;
    color: #ccc;
    text-transform: capitalize;
    background: transparent;
}

.auth-modal .nav-tabs .nav-link.active {
    color: #d4a373;
    border-bottom: 3px solid #d4a373;
}

.auth-modal .inputField {
    width: 100%;
    height: 55px;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 0 20px;
    margin-bottom: 20px;
    background: #f9f9f9;
    color: #333; /* Dark text for readability */
    transition: 0.3s;
}

.auth-modal .inputField::placeholder {
    color: #999;
}

.auth-modal .inputField:focus {
    border-color: #d4a373;
    background: white;
    outline: none;
    box-shadow: 0 5px 15px rgba(212, 163, 115, 0.1);
}

.auth-modal .theme-btn {
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #d4a373;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    width: 100%;
    transition: 0.3s;
    margin-top: 10px;
}

.auth-modal .theme-btn:hover {
    background: #bc8a5f;
    transform: translateY(-2px);
}

.auth-modal .social-login {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.auth-modal .social-btn {
    flex: 1;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eee;
    border-radius: 8px;
    text-decoration: none;
    color: #444;
    font-weight: 500;
    transition: 0.3s;
}

.auth-modal .social-btn:hover {
    background: #f5f5f5;
}

.auth-modal .social-btn img {
    width: 20px;
    margin-right: 10px;
}

.auth-modal .close-btn {
    position: absolute;
    right: 20px;
    top: 20px;
    z-index: 10;
}

@media (max-width: 991px) {
    .auth-modal .auth-banner {
        display: none;
    }
}

/* User Profile Dropdown Fixes */
.user-profile-dropdown {
    position: relative;
    display: inline-flex !important;
    align-items: center;
    vertical-align: middle;
}

.user-icon {
    color: #fff !important;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
}

.user-icon:hover {
    color: #d4a373 !important;
}

.user-icon i {
    font-size: 1.4rem;
    margin-right: 8px;
    color: #d4a373;
}

.user-dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    background: #272115 !important; /* Match dark theme */
    box-shadow: 0 10px 40px rgba(0,0,0,0.5) !important;
    border-radius: 8px !important;
    padding: 10px 0 !important;
    min-width: 180px !important;
    display: none !important;
    z-index: 10000 !important;
    list-style: none !important;
    margin: 15px 0 0 0 !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-profile-dropdown:hover .user-dropdown-menu {
    display: block !important;
}

.user-dropdown-menu li {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    width: 100% !important;
}

.user-dropdown-menu li::before {
    display: none !important;
}

.user-dropdown-menu li a {
    display: flex !important;
    align-items: center !important;
    padding: 12px 20px !important;
    color: rgba(255,255,255,0.9) !important;
    font-size: 14px !important;
    background: transparent !important;
    text-decoration: none !important;
    width: 100% !important;
    border: none !important;
    text-transform: capitalize;
}

.user-dropdown-menu li a:hover {
    background: rgba(212, 163, 115, 0.1) !important;
    color: #d4a373 !important;
}

.user-dropdown-menu li a i {
    width: 20px;
    margin-right: 12px;
    font-size: 16px;
    color: #d4a373 !important;
}

.user-dropdown-menu .divider {
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin: 8px 0;
}
