/* Cart Page Styles */
.cart-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.cart-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 20px;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    border-bottom: 1px solid #ddd;
}

.cart-item-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
}

.cart-item-details {
    display: flex;
    flex-direction: column;
}

.cart-item-title {
    font-size: 1.2rem;
    font-weight: bold;
}

.cart-item-size {
    font-size: 1rem;
    color: #555;
}

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

.quantity-btn {
    width: 35px;
    height: 35px;
    font-size: 1.2rem;
    border: none;
    cursor: pointer;
    background-color: orange;
    color: white;
    border-radius: 50%;
    transition: background 0.2s;
}

.quantity-btn:hover {
    background-color: darkorange;
}

.cart-item-quantity {
    width: 40px;
    text-align: center;
    font-size: 1.2rem;
    border: none;
    background-color: transparent;
}

.cart-item-price {
    font-size: 1.2rem;
    font-weight: bold;
}

.remove-btn {
    padding: 8px 12px;
    font-size: 1rem;
    color: white;
    background-color: red;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.remove-btn:hover {
    background-color: darkred;
}

.cart-summary {
    text-align: center;
    margin-top: 20px;
    padding: 15px;
    border-top: 2px solid #ddd;
}

.cart-summary h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.checkout-btn {
    padding: 12px 20px;
    font-size: 1.2rem;
    border: none;
    cursor: pointer;
    background-color: orange;
    color: white;
    border-radius: 5px;
    transition: background 0.3s;
}

.checkout-btn:hover {
    background-color: darkorange;
}

/* Mobile-Friendly Adjustments */
@media (max-width: 768px) {
    .cart-container {
        margin: 20px; /* Smaller margins on mobile */
        padding: 15px;
    }

    .cart-title {
        font-size: 1.5rem; /* Smaller title size on mobile */
    }

    .cart-items {
        gap: 10px; /* Reduce gap between items */
    }

    .cart-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px; /* Reduced padding for mobile */
    }

    .cart-item-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .cart-item img {
        width: 60px; /* Smaller image for mobile */
        height: 60px;
    }

    .cart-item-details {
        flex-direction: column;
    }

    .cart-item-title {
        font-size: 1rem; /* Smaller text for item titles */
    }

    .cart-item-size {
        font-size: 0.9rem;
    }

    .cart-item-controls {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .quantity-btn {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }

    .cart-item-quantity {
        font-size: 1rem;
    }

    .cart-item-price {
        font-size: 1rem;
    }

    .remove-btn {
        padding: 6px 10px;
        font-size: 0.9rem;
    }

    .cart-summary h3 {
        font-size: 1.2rem;
    }

    .checkout-btn {
        padding: 10px 18px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .cart-container {
        margin: 10px;
        padding: 10px;
    }

    .cart-title {
        font-size: 1.3rem; /* Even smaller title for very small screens */
    }

    .cart-item img {
        width: 50px;
        height: 50px; /* Even smaller images for small screens */
    }

    .cart-item-title {
        font-size: 0.9rem;
    }

    .cart-item-size {
        font-size: 0.8rem;
    }

    .quantity-btn {
        width: 25px;
        height: 25px;
        font-size: 0.9rem;
    }

    .cart-item-quantity {
        font-size: 0.9rem;
    }

    .remove-btn {
        padding: 5px 8px;
        font-size: 0.8rem;
    }

    .checkout-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
}
