/* Cart Page Layout */
.cart-page-container {
    padding: 40px 0;
    font-family: 'Inter', sans-serif;
    background-color: #f8f9fa;
}

.cart-page-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 25px;
    color: #333;
}

/* Flex Container for Left (Items) and Right (Summary) */
.cart-layout {
    display: flex;
    gap: 30px;
}

.cart-items-column {
    flex: 1;
}

.cart-summary-column {
    width: 350px;
    flex-shrink: 0;
}

/* Cart Item Card */
.cart-item-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: relative;
    border: 1px solid #eee;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-right: 20px;
    border: 1px solid #f0f0f0;
    border-radius: 4px;
}

.cart-item-details {
    flex: 1;
}

.cart-item-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 5px;
    color: #333;
    display: block;
    text-decoration: none;
}

.cart-item-price-info {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.cart-item-price-val {
    color: #333;
    font-weight: 600;
}

.cart-item-old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 13px;
    margin-left: 5px;
}

.cart-item-options {
    font-size: 13px;
    color: #777;
    margin-bottom: 10px;
}

/* Quantity Control */
.quantity-control {
    display: inline-flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.qty-btn {
    width: 30px;
    height: 30px;
    background: #f9f9f9;
    border: none;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
}

.qty-btn:hover {
    background: #eee;
}

.qty-input {
    width: 40px;
    height: 30px;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    text-align: center;
    font-size: 14px;
    color: #333;
    outline: none;
}

/* Remove Button */
.remove-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    font-size: 18px;
    transition: color 0.2s;
}

.remove-btn:hover {
    color: #e74c3c;
}

/* Coupon Section */
.coupon-section {
    margin-top: 30px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

.coupon-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 15px;
    color: #333;
}

.coupon-input-group {
    display: flex;
    gap: 10px;
    max-width: 500px;
}

.coupon-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
    font-size: 14px;
}

.btn-apply-coupon {
    background: #5a1a4a; /* Dark plum color from image */
    color: white;
    border: none;
    padding: 0 25px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s;
}

.btn-apply-coupon:hover {
    background: #4a153c;
}

/* Summary Box */
.cart-summary-box {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    overflow: hidden;
    border: 1px solid #eee;
}

.summary-header {
    background: #777; /* Grey from image */
    color: white;
    padding: 15px 20px;
    font-size: 18px;
    font-weight: 500;
}

.summary-content {
    padding: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 14px;
    color: #555;
    padding-bottom: 10px;
    border-bottom: 1px solid #f5f5f5;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-total {
    display: flex;
    justify-content: flex-end; /* Align right like image */
    align-items: baseline;
    margin-top: 20px;
    margin-bottom: 20px;
    font-size: 16px;
    color: #333;
}

.total-amount {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-left: 10px;
}

.btn-checkout-block {
    display: block;
    width: 100%;
    background: #5a1a4a; /* Dark plum */
    color: white;
    text-align: center;
    padding: 15px 0;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: background 0.2s;
}

.btn-checkout-block:hover {
    background: #4a153c;
    color: white;
}

/* Responsive */
@media (max-width: 991px) {
    .cart-layout {
        flex-direction: column;
    }
    .cart-summary-column {
        width: 100%;
    }
}
