/* Cart Page Styles */

.cart-section {
    padding: 60px 0 80px;
    background: var(--light-color);
    min-height: 60vh;
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
}

/* Cart Items Section */
.cart-items-section {
    background: var(--white);
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow-sm);
}

.cart-item {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 20px;
    padding: 20px;
    border-bottom: 1px solid #eee;
    transition: background 0.3s ease;
}

.cart-item:hover {
    background: var(--light-color);
}

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

.cart-item-image {
    width: 120px;
    height: 120px;
    border-radius: 10px;
    overflow: hidden;
}

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

.cart-item-details h3 {
    font-size: 20px;
    color: var(--dark-color);
    margin-bottom: 8px;
}

.cart-item-category {
    font-size: 13px;
    color: var(--secondary-color);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.cart-item-price {
    font-size: 22px;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 15px;
}

.cart-item-price span {
    font-size: 14px;
    color: #888;
    font-weight: 400;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-qty-btn {
    width: 35px;
    height: 35px;
    border: 2px solid var(--primary-color);
    background: var(--white);
    color: var(--primary-color);
    font-size: 18px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cart-qty-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

.cart-qty-value {
    font-size: 18px;
    font-weight: 600;
    min-width: 40px;
    text-align: center;
}

.cart-item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
}

.cart-item-total {
    font-size: 26px;
    font-weight: 700;
    color: var(--dark-color);
}

.remove-item-btn {
    background: #dc3545;
    color: var(--white);
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.remove-item-btn:hover {
    background: #c82333;
    transform: translateY(-2px);
}

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

.empty-cart-icon {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-cart h2 {
    font-size: 32px;
    color: var(--dark-color);
    margin-bottom: 15px;
}

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

/* Cart Summary */
.cart-summary {
    background: var(--white);
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 120px;
    height: fit-content;
}

.cart-summary h3 {
    font-size: 24px;
    color: var(--dark-color);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--light-color);
}

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

.summary-row span:last-child {
    font-weight: 600;
    color: var(--dark-color);
}

.total-row {
    border-top: 2px solid var(--light-color);
    margin-top: 15px;
    padding-top: 20px;
    font-size: 20px;
    font-weight: 700;
}

.total-row span {
    color: var(--primary-color);
    font-size: 28px;
}

.delivery-info {
    background: var(--light-color);
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
}

.delivery-info p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.delivery-info strong {
    color: var(--success-color);
}

.checkout-btn {
    width: 100%;
    margin-bottom: 15px;
}

.continue-shopping {
    display: block;
    text-align: center;
    color: var(--secondary-color);
    font-weight: 500;
    padding: 12px;
    transition: color 0.3s ease;
}

.continue-shopping:hover {
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 968px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }
    
    .cart-summary {
        position: static;
    }
    
    .cart-item {
        grid-template-columns: 100px 1fr;
        gap: 15px;
    }
    
    .cart-item-actions {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .cart-items-section {
        padding: 20px 15px;
    }
    
    .cart-item {
        grid-template-columns: 80px 1fr;
        gap: 12px;
        padding: 15px 0;
    }
    
    .cart-item-image {
        width: 80px;
        height: 80px;
    }
    
    .cart-item-details h3 {
        font-size: 16px;
    }
    
    .cart-item-price {
        font-size: 18px;
    }
    
    .cart-item-total {
        font-size: 20px;
    }
    
    .cart-summary {
        padding: 20px;
    }
}
