/* Cart Page Styles */

.cart-page {
    padding: 60px 0;
    background-color: #fff;
    min-height: 60vh;
}

.page-title {
    font-size: 42px;
    font-weight: 700;
    color: #4D008D;
    margin-bottom: 40px;
    text-align: center;
}

.cart-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Cart Items Section */
.cart-items-section {
    background-color: #fff;
}

.cart-item {
    display: flex;
    gap: 20px;
    padding: 30px 0;
    border-bottom: 1px solid #e0e0e0;
}

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

.cart-item-image {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    background-color: #f8f8f8;
    border-radius: 8px;
    overflow: hidden;
}

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

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cart-item-name {
    font-size: 18px;
    font-weight: 700;
    color: #4D008D;
    margin: 0;
}

.cart-item-variant {
    font-size: 14px;
    color: #666;
}

.cart-item-price {
    font-size: 18px;
    font-weight: 700;
    color: #000;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: auto;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 5px;
}

.quantity-btn {
    background: none;
    border: none;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 18px;
    color: #4D008D;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.quantity-btn:hover {
    background-color: #f5f5f5;
}

.quantity-input {
    width: 50px;
    text-align: center;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: #000;
}

.remove-item {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 14px;
    text-decoration: underline;
    transition: color 0.3s;
}

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

/* Empty Cart */
.empty-cart {
    text-align: center;
    padding: 60px 20px;
}

.empty-cart p {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
}

/* Cart Summary */
.cart-summary {
    background-color: #f8f9fc;
    padding: 30px;
    border-radius: 12px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.cart-summary h2 {
    font-size: 24px;
    font-weight: 700;
    color: #4D008D;
    margin: 0 0 20px 0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    font-size: 16px;
    color: #333;
}

.summary-row.total {
    border-top: 2px solid #e0e0e0;
    margin-top: 10px;
    padding-top: 20px;
    font-size: 20px;
    font-weight: 700;
    color: #000;
}

.btn-checkout {
    display: block;
    width: 100%;
    background-color: #FF1493;
    color: #fff;
    padding: 16px 30px;
    text-align: center;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    margin: 20px 0 15px 0;
}

.btn-checkout:hover {
    background-color: #E0117A;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 20, 147, 0.3);
}

.btn-continue-shopping,
.btn-continue-shopping-secondary {
    display: block;
    width: 100%;
    text-align: center;
    color: #4D008D;
    text-decoration: underline;
    font-size: 14px;
    margin-top: 15px;
    transition: color 0.3s;
}

.btn-continue-shopping:hover,
.btn-continue-shopping-secondary:hover {
    color: #6B1FA0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .cart-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .cart-summary {
        position: static;
    }
}

@media (max-width: 768px) {
    .cart-page {
        padding: 40px 0;
    }
    
    .page-title {
        font-size: 32px;
        margin-bottom: 30px;
    }
    
    .cart-item {
        flex-direction: column;
        gap: 15px;
    }
    
    .cart-item-image {
        width: 100%;
        height: 200px;
    }
    
    .cart-summary {
        padding: 25px 20px;
    }
}
