/* Cart Icon Styles */
.cart-icon {
    position: relative;
    cursor: pointer;
    padding: 8px;
    color: #333;
    display: flex;
    align-items: center;
    margin-left: 10px;
}

.cart-icon:hover {
    color: #e67e22;
}

.cart-icon i {
    font-size: 1.5rem;
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #e67e22;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.7rem;
    display: inline-block;
    min-width: 18px;
    text-align: center;
}

/* Cart Dropdown Styles */
.cart-dropdown {
    position: fixed;
    top: 80px;
    right: 20px;
    width: 350px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

.cart-dropdown.active {
    display: block;
}

.cart-header {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.2rem;
}

.close-cart {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.5rem;
}

.close-cart:hover {
    color: #e67e22;
}

.cart-items {
    padding: 1rem;
}

.empty-cart {
    text-align: center;
    color: #666;
    padding: 2rem 0;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

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

.cart-item img {
    width: 60px;
    height: 80px;
    object-fit: cover;
    margin-right: 1rem;
    border-radius: 4px;
}

.item-details {
    flex-grow: 1;
}

.item-details h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    color: #2c3e50;
}

.item-price {
    color: #e67e22;
    font-weight: bold;
    margin: 0 0 0.5rem 0;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-controls button {
    background: #f5f5f5;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2c3e50;
}

.quantity-controls button:hover {
    background: #e67e22;
    color: white;
}

.quantity {
    min-width: 30px;
    text-align: center;
}

.remove-item {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: 0.5rem;
}

.remove-item:hover {
    color: #e74c3c;
}

.cart-footer {
    padding: 1rem;
    border-top: 1px solid #eee;
    background: #f9f9f9;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-weight: bold;
    color: #2c3e50;
}

.total-amount {
    color: #e67e22;
    font-size: 1.2rem;
}

.checkout-btn {
    display: block;
    width: 100%;
    padding: 0.75rem;
    background: #e67e22;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.checkout-btn:hover {
    background: #d35400;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .cart-dropdown {
        width: 100%;
        right: 0;
        top: 70px;
        border-radius: 0;
        max-height: calc(100vh - 70px);
    }

    .cart-item {
        padding: 0.75rem 0;
    }

    .cart-item img {
        width: 50px;
        height: 70px;
    }
}

.cart-login-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: 1rem;
}

.cart-nav-item {
    display: flex;
    align-items: center;
    margin: 0 0.5rem;
} 