/* ============================================
   SHOPPING CART STYLES
   ============================================ */

/* Cart Container */
.cart-container {
    background: white;
    border-radius: 16px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

/* Cart Header */
.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 25px;
    border-bottom: 2px solid #f5f7fa;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

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

.cart-title i {
    color: #1a237e;
    font-size: 2.5rem;
}

.cart-title h2 {
    margin: 0;
    font-weight: 600;
    color: #1a2332;
    font-size: 1.8rem;
}

.cart-item-count {
    background: #e8eaf6;
    color: #1a237e;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.btn-empty-cart {
    border-radius: 25px !important;
    padding: 0 20px !important;
    text-transform: none !important;
    font-weight: 500 !important;
}

/* Cart Item */
.cart-item {
    display: flex;
    gap: 25px;
    padding: 20px 0;
    border-bottom: 1px solid #f5f7fa;
    align-items: center;
}

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

.cart-item-image {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

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

.cart-item-details {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cart-item-info {
    flex: 1;
}
.cart-item-info a {
    color: #000;
    font-size: 1.5rem;
    font-weight: 600;
}
.cart-item-name {
    color: #1a2332;
    transition: color 0.3s ease;
}

.cart-item-name:hover {
    color: #1a237e;
}

.cart-item-meta {
    margin-top: 5px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.cart-item-sku {
    color: #999;
    font-size: 0.8rem;
}

.cart-item-stock {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 2px 12px;
    border-radius: 12px;
}

.in-stock {
    background: #e8f5e9;
    color: #2e7d32;
}

.out-of-stock {
    background: #ffebee;
    color: #c62828;
}

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

/* Quantity Control */
.quantity-control {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
}

.btn-quantity {
    min-width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    line-height: 36px !important;
    color: #1a237e !important;
    border-radius: 0 !important;
}

.btn-quantity:hover {
    background: #e8eaf6 !important;
}

.quantity-input {
    width: 45px !important;
    height: 36px !important;
    text-align: center;
    border: none;
    border-left: 2px solid #e8eaf6;
    border-right: 2px solid #e8eaf6;
    font-weight: 600;
    font-size: 1rem;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
}

.quantity-input:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Item Price */
.cart-item-price {
    text-align: right;
    min-width: 100px;
}

.item-subtotal {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a237e;
}

.item-unit-price {
    font-size: 0.75rem;
    color: #999;
    margin-top: 2px;
}

.btn-remove-item {
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    line-height: 40px !important;
    min-width: 40px !important;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.btn-remove-item:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Cart Summary */
.cart-summary {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #f5f7fa;
}

.summary-card {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 30px;
}

.summary-card h4 {
    font-weight: 600;
    color: #1a2332;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 1rem;
    color: #555;
}

.summary-row.total {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a2332;
}

.summary-row .total-amount {
    color: #1a237e;
    font-size: 1.5rem;
}

.free-shipping-label {
    color: #2e7d32;
    font-weight: 600;
}

.summary-divider {
    border-top: 2px solid #e0e0e0;
    margin: 15px 0;
}

.summary-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.btn-continue-shopping {
    background: white !important;
    color: #1a237e !important;
    border: 2px solid #1a237e !important;
    border-radius: 25px !important;
    text-transform: none !important;
    font-weight: 600 !important;
    flex: 1;
}

.btn-continue-shopping:hover {
    background: #e8eaf6 !important;
}

.btn-purchase {
    border-radius: 25px !important;
    text-transform: none !important;
    font-weight: 600 !important;
    flex: 2;
    padding: 0 30px !important;
}

.btn-purchase i {
    font-size: 1.2rem;
}

/* Payment Icons */
.payment-icons {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    color: #999;
}

.payment-icons i {
    font-size: 1.5rem;
    color: #666;
}

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

.empty-cart i {
    font-size: 4rem;
    color: #ccc;
}

.empty-cart h3 {
    color: #1a2332;
    margin: 20px 0 10px;
}

.empty-cart p {
    color: #999;
    margin-bottom: 30px;
}

/* Mobile Responsive */
@media only screen and (max-width: 600px) {
    .cart-container {
        padding: 15px;
    }

    .cart-header {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .cart-title h2 {
        font-size: 1.3rem;
    }

    .cart-item {
        flex-direction: column;
        align-items: stretch;
        padding: 15px 0;
    }

    .cart-item-image {
        width: 100%;
        height: 180px;
    }

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

    .cart-item-controls {
        justify-content: space-between;
        margin-top: 10px;
    }

    .cart-item-price {
        text-align: left;
        min-width: auto;
    }

    .summary-actions {
        flex-direction: column;
    }

    .btn-purchase {
        width: 100%;
    }
}

/* Tablet Responsive */
@media only screen and (min-width: 601px) and (max-width: 992px) {
    .cart-item-details {
        flex-direction: column;
        align-items: stretch;
    }

    .cart-item-controls {
        justify-content: space-between;
    }
}
