/* Cart Page Styles */

.cart-section {
    padding: 80px 0;
}

.cart-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

/* Cart Items */
.cart-items {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 2fr 1fr 1fr auto;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

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

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

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

.cart-item-details h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.cart-item-details p {
    color: var(--gray-color);
    margin-bottom: 5px;
}

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

.cart-item-quantity .quantity-btn {
    width: 30px;
    height: 30px;
    background-color: #f5f5f5;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cart-item-quantity .quantity-btn:hover {
    background-color: #e0e0e0;
}

.cart-item-price {
    font-size: 18px;
    font-weight: 600;
}

.remove-btn {
    background-color: transparent;
    border: none;
    color: var(--danger-color);
    font-size: 18px;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.remove-btn:hover {
    color: #b30000;
}

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

.empty-cart h2 {
    font-size: 24px;
    margin-bottom: 15px;
}

.empty-cart p {
    color: var(--gray-color);
    margin-bottom: 30px;
}

/* Cart Summary */
.cart-summary {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    position: sticky;
    top: 100px;
}

.cart-summary h2 {
    font-size: 24px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.summary-item.total {
    font-size: 20px;
    font-weight: 600;
    padding-top: 15px;
    margin-top: 15px;
    border-top: 1px solid #eee;
}

.checkout-btn {
    width: 100%;
    padding: 15px;
    margin-top: 20px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.continue-shopping {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.continue-shopping:hover {
    color: #ff5252;
}

/* Responsive Styles */
@media screen and (max-width: 992px) {
    .cart-container {
        grid-template-columns: 1fr;
    }

    .cart-summary {
        position: static;
    }
}

@media screen and (max-width: 768px) {
    .cart-item {
        grid-template-columns: 80px 1fr;
        grid-template-rows: auto auto auto;
        gap: 15px;
    }

    .cart-item-image {
        grid-row: span 3;
    }

    .cart-item-details {
        grid-column: 2;
    }

    .cart-item-quantity {
        grid-column: 2;
    }

    .cart-item-price {
        grid-column: 2;
    }

    .cart-item-remove {
        position: absolute;
        top: 20px;
        right: 20px;
    }
}
