/**
 * Shopping Cart Styles
 * StarPro Vision - Green Theme
 */

/* Cart Container */
.cart-container {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Cart Header */
.cart-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #28a745;
}

.cart-header h1 {
    font-size: 36px;
    color: #28a745;
    margin-bottom: 10px;
}

.cart-header i {
    margin-right: 10px;
}

.cart-header p {
    font-size: 16px;
    color: #666;
}

/* Empty Cart */
.empty-cart {
    text-align: center;
    padding: 80px 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.empty-cart i {
    font-size: 80px;
    color: #ccc;
    margin-bottom: 20px;
}

.empty-cart h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 10px;
}

.empty-cart p {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

/* Cart Content */
.cart-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
}

/* Cart Items */
.cart-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cart-item {
    display: grid;
    grid-template-columns: 120px 1fr 150px 120px 80px;
    gap: 20px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    align-items: center;
    transition: box-shadow 0.3s;
}

.cart-item:hover {
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.15);
}

.item-image img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
}

.item-details h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.item-details h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.item-details h3 a:hover {
    color: #28a745;
}

.item-variation {
    font-size: 14px;
    color: #666;
    margin: 5px 0;
}

.variation-label {
    font-weight: 600;
}

.variation-value {
    color: #28a745;
}

.item-price {
    margin-top: 10px;
}

.item-price .price {
    font-size: 18px;
    font-weight: 600;
    color: #28a745;
}

.item-price .sale-price {
    font-size: 18px;
    font-weight: 600;
    color: #28a745;
    margin-right: 8px;
}

.item-price .original-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
}

.item-stock {
    font-size: 13px;
    margin-top: 8px;
}

.stock-available {
    color: #28a745;
}

.stock-low {
    color: #ffc107;
}

.stock-out {
    color: #dc3545;
}

.item-stock i {
    margin-right: 5px;
}

/* Quantity Control */
.item-quantity label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 600;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 5px;
}

.qty-btn {
    width: 35px;
    height: 35px;
    border: 1px solid #ddd;
    background: white;
    color: #333;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover:not(:disabled) {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.qty-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.qty-input {
    width: 60px;
    height: 35px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
}

/* Item Total */
.item-total label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 600;
}

.total-price {
    font-size: 20px;
    font-weight: 700;
    color: #28a745;
}

/* Remove Button */
.btn-remove {
    width: 40px;
    height: 40px;
    border: none;
    background: #dc3545;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-remove:hover {
    background: #c82333;
    transform: scale(1.1);
}

/* Cart Summary */
.cart-summary {
    position: sticky;
    top: 20px;
}

.summary-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.summary-card h2 {
    font-size: 22px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #28a745;
    color: #333;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    font-size: 15px;
}

.summary-row span:first-child {
    color: #666;
}

.summary-row span:last-child {
    font-weight: 600;
    color: #333;
}

.free-shipping-notice {
    background: #e8f5e9;
    color: #28a745;
    padding: 12px;
    border-radius: 8px;
    margin: 15px 0;
    font-size: 14px;
    text-align: center;
}

.free-shipping-notice i {
    margin-right: 8px;
}

.summary-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 15px 0;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    font-size: 18px;
    font-weight: 700;
}

.summary-total span:first-child {
    color: #333;
}

.total-amount {
    color: #28a745;
    font-size: 24px;
}

.summary-actions {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-block {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

/* Payment Methods */
.payment-methods {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

.payment-methods p {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
}

.payment-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.payment-icons i {
    font-size: 32px;
    color: #999;
}

/* Trust Badges */
.trust-badges {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.badge-item i {
    font-size: 24px;
    color: #28a745;
}

.badge-item span {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 1200px) {
    .cart-content {
        grid-template-columns: 1fr 350px;
    }
}

@media (max-width: 992px) {
    .cart-content {
        grid-template-columns: 1fr;
    }
    
    .cart-summary {
        position: static;
    }
}

@media (max-width: 768px) {
    .cart-item {
        grid-template-columns: 80px 1fr;
        gap: 15px;
    }
    
    .item-image img {
        height: 80px;
    }
    
    .item-quantity,
    .item-total,
    .item-remove {
        grid-column: 1 / -1;
    }
    
    .quantity-control {
        justify-content: center;
    }
    
    .item-total {
        text-align: center;
    }
}
