/* Cart Page Styling */
.cart-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
    font-family: 'Inter', sans-serif;
    min-height: 60vh;
}

.cart-header {
    margin-bottom: 40px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.cart-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.cart-count {
    color: #666;
    font-size: 1.1rem;
}

/* Layout */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

@media (max-width: 900px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }
}

/* Items Section */
.cart-table-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 50px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    color: #888;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cart-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 50px;
    align-items: center;
    padding: 25px 0;
    border-bottom: 1px solid #f5f5f5;
}

.col-product {
    display: flex;
    align-items: center;
    gap: 20px;
}

.item-image {
    width: 80px;
    height: 100px;
    background: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.item-details h3 {
    margin: 0 0 5px 0;
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
}

.variant-info {
    margin: 0;
    font-size: 0.85rem;
    color: #666;
    display: flex;
    gap: 10px;
}

.variant-info span {
    background: #f5f5f5;
    padding: 2px 8px;
    border-radius: 4px;
}

.col-price,
.col-total {
    font-weight: 500;
    color: #1a1a1a;
}

/* Quantity Controls */
.quantity-controls {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    width: 100px;
    overflow: hidden;
}

.qty-btn {
    background: none;
    border: none;
    width: 30px;
    height: 32px;
    cursor: pointer;
    font-size: 1.1rem;
    color: #555;
    transition: background 0.2s;
}

.qty-btn:hover {
    background: #f5f5f5;
}

/* Remove Chrome, Safari, Edge, Opera default spin buttons */
.quantity-controls input::-webkit-outer-spin-button,
.quantity-controls input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Remove Firefox default spin buttons */
.quantity-controls input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.quantity-controls input {
    width: 40px;
    border: none;
    text-align: center;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0;
}

/* Remove Button */
.remove-btn {
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    transition: color 0.2s;
    padding: 5px;
}

.remove-btn:hover {
    color: #ff4444;
}

/* Summary Section */
.cart-summary-section {
    position: sticky;
    top: 20px;
}

.summary-card {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 12px;
}

.summary-card h2 {
    margin: 0 0 25px 0;
    font-size: 1.3rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    color: #555;
}

.summary-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 20px 0;
}

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

.checkout-btn {
    width: 100%;
    background: #1a1a1a;
    color: white;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 25px;
    transition: transform 0.2s, background 0.2s;
}

.checkout-btn:hover {
    background: #000;
    transform: translateY(-2px);
}

.continue-shopping {
    display: block;
    text-align: center;
    margin-top: 15px;
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
}

.continue-shopping:hover {
    text-decoration: underline;
}

/* Empty State */
.empty-cart-state {
    text-align: center;
    padding: 60px 20px;
    background: #f9f9f9;
    border-radius: 12px;
}

.empty-icon {
    color: #ddd;
    margin-bottom: 20px;
}

.start-shopping-btn {
    display: inline-block;
    background: #1a1a1a;
    color: white;
    padding: 12px 30px;
    border-radius: 6px;
    text-decoration: none;
    margin-top: 20px;
    font-weight: 500;
}