/* ===== CART DRAWER STYLES ===== */
.cart-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.cart-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 420px;
    height: 100vh;
    background: #ffffff;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    transition: right 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.cart-drawer.active {
    right: 0;
}

/* Cart Header */
.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid #f0f0f0;
}

.cart-title {
    font-size: 20px;
    font-weight: 600;
    color: #222222;
    margin: 0;
    font-family: 'Poppins', sans-serif;
}

.close-cart {
    background: none;
    border: none;
    font-size: 24px;
    color: #777777;
    cursor: pointer;
    padding: 4px;
    transition: color 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.close-cart:hover {
    color: #222222;
}

/* Cart Items */
.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 0 24px;
}

.empty-cart {
    text-align: center;
    padding: 60px 20px;
    color: #777777;
}

.empty-cart i {
    font-size: 48px;
    margin-bottom: 16px;
    color: #dddddd;
}

.empty-cart p {
    font-size: 16px;
    margin: 0;
    font-weight: 400;
    font-family: 'Poppins', sans-serif;
}

.cart-item {
    display: flex;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
    align-items: flex-start;
}

.cart-item:last-child {
    border-bottom: none;
}

.item-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-details {
    flex: 1;
    min-width: 0;
}

.item-title {
    font-size: 16px;
    font-weight: 500;
    color: #222222;
    margin: 0 0 4px 0;
    line-height: 1.3;
    font-family: 'Poppins', sans-serif;
}

.item-subtext {
    font-size: 14px;
    color: #777777;
    margin: 0 0 8px 0;
    font-weight: 400;
    font-family: 'Poppins', sans-serif;
}

.item-pricing {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sale-price {
    font-size: 16px;
    font-weight: 600;
    color: #E62E2E;
    font-family: 'Poppins', sans-serif;
}

.old-price {
    font-size: 14px;
    color: #777777;
    text-decoration: line-through;
    font-weight: 400;
    font-family: 'Poppins', sans-serif;
}

.item-controls {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 4px;
    gap: 8px;
}

.quantity-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: #ffffff;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #222222;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.quantity-btn:hover {
    background: #e9ecef;
}

.quantity {
    font-size: 14px;
    font-weight: 500;
    color: #222222;
    min-width: 20px;
    text-align: center;
    font-family: 'Poppins', sans-serif;
}

.delete-btn {
    background: none;
    border: none;
    color: #777777;
    cursor: pointer;
    padding: 4px;
    font-size: 16px;
    transition: color 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.delete-btn:hover {
    color: #E62E2E;
}

/* Cart Summary */
.cart-summary {
    padding: 24px;
    border-top: 1px solid #f0f0f0;
    background: #ffffff;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
    color: #222222;
    font-weight: 400;
    font-family: 'Poppins', sans-serif;
}

.summary-row.total {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #222222;
}

.savings {
    color: #00A650;
    font-weight: 500;
}

.shipping {
    color: #00A650;
    font-weight: 500;
}

.summary-divider {
    height: 1px;
    background: #f0f0f0;
    margin: 16px 0;
}

.checkout-btn {
    width: 100%;
    background: #E62E2E;
    color: #ffffff;
    border: none;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-bottom: 12px;
    font-family: 'Poppins', sans-serif;
}

.checkout-btn:hover {
    background: #cc2929;
}

.continue-shopping {
    width: 100%;
    background: transparent;
    color: #777777;
    border: 1px solid #dddddd;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.continue-shopping:hover {
    background: #f8f9fa;
    border-color: #777777;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cart-drawer {
        width: 100%;
        right: -100%;
    }
    
    .cart-header {
        padding: 20px 16px;
    }
    
    .cart-items {
        padding: 0 16px;
    }
    
    .cart-summary {
        padding: 20px 16px;
    }
    
    .cart-item {
        padding: 16px 0;
        gap: 12px;
    }
    
    .item-image {
        width: 70px;
        height: 70px;
    }
    
    .item-title {
        font-size: 15px;
    }
    
    .item-subtext {
        font-size: 13px;
    }
    
    .sale-price {
        font-size: 15px;
    }
    
    .old-price {
        font-size: 13px;
    }
    
    .checkout-btn {
        padding: 14px 20px;
        font-size: 15px;
    }
    
    .continue-shopping {
        padding: 10px 20px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .cart-header {
        padding: 16px;
    }
    
    .cart-items {
        padding: 0 16px;
    }
    
    .cart-summary {
        padding: 16px;
    }
    
    .cart-item {
        padding: 12px 0;
    }
    
    .item-image {
        width: 60px;
        height: 60px;
    }
    
    .quantity-controls {
        gap: 6px;
        padding: 3px;
    }
    
    .quantity-btn {
        width: 24px;
        height: 24px;
        font-size: 10px;
    }
    
    .quantity {
        font-size: 13px;
    }
}

/* Scrollbar Styling */
.cart-items::-webkit-scrollbar {
    width: 4px;
}

.cart-items::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.cart-items::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 2px;
}

.cart-items::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Body overflow control */
body.cart-open {
    overflow: hidden;
}