/* Mobile First Cart Styles */

/* Base styles */
.cart-page {
    padding-bottom: 4rem;
}

.cart-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    padding: 0 1rem;
}

/* Empty Cart */
.empty-cart {
    padding: 2rem 1rem;
    text-align: center;
}

.empty-cart i {
    color: #ccc;
    margin-bottom: 1rem;
}

.empty-cart h2 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

/* Cart Items */
.cart-item {
    display: flex;
    padding: 1rem;
    margin-bottom: 1rem;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.item-image {
    width: 80px;
    height: 80px;
    margin-right: 1rem;
    flex-shrink: 0;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.25rem;
}

.item-details {
    flex: 1;
}

.item-name {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.item-price {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.price.sale {
    color: #dc3545;
}

.original-price {
    text-decoration: line-through;
    color: #6c757d;
    margin-left: 0.5rem;
    font-size: 0.875rem;
}

/* Quantity Controls */
.quantity-controls {
    display: flex;
    align-items: center;
    margin: 0.5rem 0;
}

.btn-quantity {
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid #dee2e6;
    background: white;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-input {
    width: 50px;
    height: 32px;
    text-align: center;
    margin: 0 0.5rem;
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

.btn-remove {
    background: none;
    border: none;
    color: #dc3545;
    padding: 0;
    font-size: 0.875rem;
    cursor: pointer;
}

/* Cart Summary */
.cart-summary {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    
    height: 400px;
}

.summary-items-container {
    padding: 1rem;
    border-bottom: 1px solid #dee2e6;
}
.cart-summary h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

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

.summary-item.total {
    font-weight: bold;
    font-size: 1.125rem;
    border-top: 1px solid #dee2e6;
    margin-top: 1rem;
    padding-top: 1rem;
}

.cart-actions {
    margin-top: 1.5rem;
}

.btn-checkout, .btn-continue {
    width: 100%;
    margin-bottom: 0.5rem;
}


.shipping-methods {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.shipping-methods h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.shipping-method-radio {
    margin-right: 0.5rem;
}

.shipping-cost {
    font-weight: 600;
}

.form-check {
    padding: 0.75rem;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
}

.form-check:hover {
    background-color: #f1f3f5;
}

.form-check-input:checked + .form-check-label {
    color: var(--bs-primary);
}
/* Toast Notifications */
.toast {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1050;
}

/* Tablet and up */
@media (min-width: 768px) {
    .cart-title {
        font-size: 2rem;
        padding: 0;
    }

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

    .cart-item {
        padding: 1.5rem;
    }

    .item-image {
        width: 120px;
        height: 120px;
    }

    .item-name {
        font-size: 1.125rem;
    }
}

/* Desktop and up */
@media (min-width: 992px) {
    .cart-container {
        grid-template-columns: 1fr 350px;
    }

    .item-image {
        width: 150px;
        height: 150px;
    }

    .btn-checkout, .btn-continue {
        margin-bottom: 1rem;
    }
}

/* Hover States (for non-touch devices) */
@media (hover: hover) {
    .btn-quantity:hover {
        background-color: #f8f9fa;
    }

    .btn-remove:hover {
        color: #dc3545;
        text-decoration: underline;
    }

    .btn-checkout:hover {
        transform: translateY(-2px);
        transition: transform 0.2s ease;
    }
}