/* New Cart Styles - Modern E-commerce Design */

/* Main Cart Section */
.cart-main-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    background: #fafafa;
    min-height: 70vh;
}

.cart-main-title {
    text-align: center;
    font-size: 3.2rem;
    color: #1a1a1a;
    margin-bottom: 3rem;
    font-weight: 600;
    letter-spacing: -0.5px;
}

/* Cart Items Container */
.cart-items-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

/* Product Card */
.cart-product-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8e8e8;
    transition: all 0.2s ease;
}

.cart-product-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    border-color: #d0d0d0;
}

/* Product Form Layout */
.cart-product-form {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 2rem;
    align-items: center;
}

/* Product Image */
.product-image-wrapper {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f8f8;
    border: 1px solid #eee;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.cart-product-card:hover .product-image {
    transform: scale(1.02);
}

/* Product Info Section */
.product-info-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 120px;
    justify-content: space-between;
}

.product-title {
    font-size: 2rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.3;
}

.product-price-tag {
    font-size: 1.8rem;
    font-weight: 600;
    color: #2563eb;
    background: #eff6ff;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    width: fit-content;
}

/* Quantity Section */
.quantity-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.qty-label {
    font-size: 1.4rem;
    font-weight: 500;
    color: #6b7280;
    min-width: 35px;
}

.qty-control-wrapper {
    display: flex;
    align-items: center;
    border: 1.5px solid #d1d5db;
    border-radius: 6px;
    overflow: hidden;
    background: white;
}

.qty-number-input {
    width: 60px;
    height: 36px;
    text-align: center;
    border: none;
    font-size: 1.4rem;
    font-weight: 500;
    color: #1a1a1a;
    background: transparent;
}

.qty-number-input:focus {
    outline: none;
    background: #f8fafc;
}

.qty-update-button {
    width: 36px;
    height: 36px;
    border: none;
    background: #10b981;
    color: white;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-update-button:hover {
    background: #059669;
}

.qty-update-button:active {
    transform: scale(0.95);
}

/* Product Subtotal */
.product-subtotal {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.subtotal-label {
    font-size: 1.4rem;
    color: #6b7280;
}

.subtotal-price {
    font-size: 1.6rem;
    font-weight: 600;
    color: #dc2626;
}

/* Product Actions */
.product-actions {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    align-items: center;
}

.action-view-btn,
.action-remove-btn {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    transition: all 0.15s ease;
    cursor: pointer;
    border: 1px solid transparent;
    text-decoration: none;
}

.action-view-btn {
    background: #f3f4f6;
    color: #6b7280;
    border-color: #e5e7eb;
}

.action-view-btn:hover {
    background: #e5e7eb;
    color: #374151;
    border-color: #d1d5db;
}

.action-remove-btn {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fecaca;
}

.action-remove-btn:hover {
    background: #fee2e2;
    color: #b91c1c;
    border-color: #fca5a5;
}

.action-view-btn:active,
.action-remove-btn:active {
    transform: scale(0.95);
}

/* Empty Cart State */
.empty-cart-state {
    text-align: center;
    padding: 6rem 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8e8e8;
}

.empty-cart-icon {
    font-size: 6rem;
    color: #d1d5db;
    margin-bottom: 2rem;
}

.empty-cart-heading {
    font-size: 2.4rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 1rem 0;
}

.empty-cart-text {
    font-size: 1.6rem;
    color: #6b7280;
    margin: 0 0 2.5rem 0;
}

.continue-shopping-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.2rem 2.5rem;
    background: #f0d330;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.6rem;
    font-weight: 500;
    transition: all 0.15s ease;
}

.continue-shopping-btn:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

/* Checkout Summary Card */
.checkout-summary-card {
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e8e8e8;
    max-width: 500px;
    margin: 0 auto;
}

.summary-header {
    border-bottom: 1px solid #e8e8e8;
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.summary-title {
    font-size: 2.2rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
    text-align: center;
}

.summary-details {
    margin-bottom: 2.5rem;
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 2px solid #f3f4f6;
}

.total-label {
    font-size: 2rem;
    font-weight: 600;
    color: #1a1a1a;
}

.total-amount {
    font-size: 2.6rem;
    font-weight: 700;
    color: #dc2626;
}

/* Checkout Actions */
.checkout-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.primary-checkout-btn {
    width: 100%;
    padding: 1.6rem 2rem;
    background: #10b981;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.8rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.primary-checkout-btn:hover {
    background: #059669;
    transform: translateY(-1px);
}

.clear-cart-form {
    width: 100%;
}

.secondary-clear-btn {
    width: 100%;
    padding: 1.2rem 2rem;
    background: transparent;
    color: #6b7280;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1.6rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

.secondary-clear-btn:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #374151;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cart-main-section {
        padding: 1rem;
    }
    
    .cart-main-title {
        font-size: 2.6rem;
        margin-bottom: 2rem;
    }
    
    .cart-product-form {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .product-image-wrapper {
        width: 100px;
        height: 100px;
        justify-self: center;
    }
    
    .product-actions {
        flex-direction: row;
        justify-content: center;
    }
    
    .quantity-section {
        justify-content: center;
    }
    
    .checkout-summary-card {
        margin: 0 1rem;
    }
}

@media (max-width: 480px) {
    .cart-product-card {
        padding: 1.5rem;
    }
    
    .product-image-wrapper {
        width: 80px;
        height: 80px;
    }
    
    .product-title {
        font-size: 1.8rem;
    }
    
    .checkout-actions {
        gap: 0.8rem;
    }
    
    .primary-checkout-btn,
    .secondary-clear-btn {
        padding: 1.4rem 1.5rem;
        font-size: 1.5rem;
    }
}
.qty-decrease, .qty-increase {
    width: 36px;
    height: 36px;
    border: 1px solid #d1d5db;
    background: #f3f4f6;
    color: #374151;
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.qty-decrease:hover, .qty-increase:hover {
    background: #e5e7eb;
}

.qty-control-wrapper {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
