/* E-commerce Header Styles */

/* Account and Cart Icons */
.header-ecommerce {
    gap: 15px;
}

/* Dropdown containers need position relative */
.account-dropdown,
.cart-dropdown {
    position: relative;
}

/* Ensure dropdowns are hidden by default */
.account-dropdown .dropdown-menu,
.cart-dropdown .dropdown-menu {
    display: none !important;
}

.account-dropdown .dropdown-menu.show,
.cart-dropdown .dropdown-menu.show {
    display: block !important;
}

.account-dropdown .account-icon,
.cart-dropdown .cart-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
}

.account-dropdown .account-icon:hover,
.cart-dropdown .cart-icon:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

/* Cart Count Badge */
#cart-count {
    background-color: #f9004d !important;
    color: white;
    font-weight: 600;
}

/* Dropdown Menus */
.account-dropdown .dropdown-menu,
.cart-dropdown .dropdown-menu {
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    margin-top: 10px;
    animation: slideDown 0.3s ease;
    position: absolute;
    z-index: 1050;
    top: 100%;
    right: 0;
}

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

.account-dropdown .dropdown-item {
    padding: 10px 20px;
    font-size: 14px;
    color: #333;
    transition: all 0.2s ease;
}

.account-dropdown .dropdown-item:hover {
    background-color: #f9004d;
    color: white;
    padding-left: 25px;
}

.account-dropdown .dropdown-item i {
    width: 20px;
    margin-right: 8px;
}

/* Cart Dropdown Content */
.cart-dropdown-content {
    background: white;
}

.cart-dropdown-content .cart-header {
    background: linear-gradient(135deg, #f9004d 0%, #ff1a5e 100%);
    color: white;
    border-radius: 8px 8px 0 0;
}

.cart-dropdown-content .cart-header h6 {
    font-weight: 600;
    color: white;
}

.cart-dropdown-content .cart-items .table {
    margin: 0;
}

.cart-dropdown-content .cart-item td {
    border-bottom: 1px solid #f0f0f0;
    padding: 12px 8px;
}

.cart-dropdown-content .cart-item:last-child td {
    border-bottom: none;
}

.cart-dropdown-content .cart-item a {
    text-decoration: none;
    transition: color 0.2s ease;
}

.cart-dropdown-content .cart-item a:hover {
    color: #f9004d !important;
}

.cart-dropdown-content .btn-danger {
    background-color: #dc3545;
    border: none;
    padding: 4px 8px;
    font-size: 12px;
}

.cart-dropdown-content .btn-danger:hover {
    background-color: #c82333;
}

.cart-dropdown-content .cart-totals {
    background: #f8f9fa;
}

.cart-dropdown-content .cart-totals .table {
    margin: 0;
}

.cart-dropdown-content .cart-totals .table td {
    border: none;
    padding: 5px 0;
}

.cart-dropdown-content .cart-empty {
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Checkout Button */
.checkout-btn .btn {
    transition: all 0.3s ease;
    font-weight: 500;
}

.checkout-btn .btn:hover {
    background-color: #d6003f !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(249, 0, 77, 0.3);
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .header-ecommerce {
        display: none !important;
    }
}

/* Mobile E-commerce Icons */
@media (max-width: 991px) {
    .mobile-ecommerce {
        display: flex;
        align-items: center;
        gap: 15px;
        padding: 15px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .mobile-ecommerce .account-icon,
    .mobile-ecommerce .cart-icon {
        color: white;
        font-size: 20px;
        position: relative;
    }
}

/* Hover Effects */
.dropdown-menu .dropdown-divider {
    margin: 0.5rem 0;
    border-color: #e9ecef;
}

/* Cart button hover effects */
.cart-dropdown-content .btn-outline-secondary:hover {
    background-color: #6c757d;
    color: white;
    border-color: #6c757d;
}

/* Smooth transitions for all buttons */
.header-ecommerce button,
.header-ecommerce a {
    transition: all 0.3s ease;
}
