/* Cart Styles */
:root {
    --primary-color: #f8a1d1;
    --secondary-color: #f5f5f5;
    --accent-color: #e0558a;
    --dark-color: #333333;
    --light-color: #ffffff;
    --gold-color: #d4af37;
}

/* Cart Badge */
.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--accent-color);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Cart Dropdown Container */
.cart-dropdown {
    position: absolute;
    width: 350px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
    padding: 15px;
    max-height: 80vh;
    overflow-y: auto;
    direction: rtl;
    text-align: right;
}

/* Cart Header */
.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.cart-header h5 {
    margin: 0;
    font-weight: 600;
    color: var(--dark-color);
}

/* Empty Cart Message */
.empty-cart {
    text-align: center;
    padding: 20px;
    color: #999;
    font-style: italic;
}

/* Cart Items List */
.cart-items {
    margin-bottom: 15px;
    max-height: 300px;
    overflow-y: auto;
}

/* Individual Cart Item */
.cart-item {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.cart-item-image {
    width: 40px;
    height: 40px;
    overflow: hidden;
    border-radius: 5px;
    margin-left: 10px;
    flex-shrink: 0;
}

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

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

.cart-item-details h6 {
    margin: 0;
    font-weight: 600;
    margin-bottom: 5px;
}

.cart-item-price {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 5px;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    font-size: 14px;
}

.btn-quantity {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s ease;
}

.btn-quantity:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.btn-remove {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    border: none;
    background: #f8f8f8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-right: 5px;
    color: #ff6b6b;
    transition: all 0.2s ease;
}

.btn-remove:hover {
    background-color: #ff6b6b;
    color: white;
}

/* Cart Footer */
.cart-footer {
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 18px;
}

.cart-actions {
    display: flex;
    justify-content: space-between;
}

/* Notification */
.notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background-color: var(--accent-color);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    z-index: 1100;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    direction: rtl;
}

.notification.show {
    transform: translateX(-50%) translateY(0);
}

/* Mobile Styles */
@media (max-width: 767.98px) {
    .cart-dropdown {
        width: 300px;
        right: 50% !important;
        transform: translateX(50%);
    }
}

@media (max-width: 575.98px) {
    .cart-dropdown {
        width: 90%;
        max-width: 300px;
    }
    
    .cart-item {
        flex-direction: column;
    }
    
    .cart-item-image {
        width: 100%;
        height: 120px;
        margin-bottom: 10px;
        margin-left: 0;
    }
}
