/* Cart Page Styles */

.cart-page {
    padding: 4rem 3rem 8rem;
    background: var(--bg-alt);
    min-height: 60vh;
}

.cart-container {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Cart Items */
.cart-items {
    background: var(--bg);
    border-radius: 4px;
    overflow: hidden;
}

.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
}

.cart-empty svg {
    color: var(--text-dim);
    margin-bottom: 1.5rem;
}

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

.cart-empty p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto auto auto;
    gap: 1.5rem;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
}

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

.item-image {
    width: 100px;
    height: 100px;
    background: var(--bg-alt);
    border-radius: 4px;
    overflow: hidden;
}

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

.item-details h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.item-price {
    color: var(--gold);
    font-weight: 500;
}

.item-quantity {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    background: var(--bg-alt);
}

.item-quantity .qty-btn {
    background: none;
    border: none;
    color: var(--text);
    font-size: 1rem;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    transition: color 0.3s;
}

.item-quantity .qty-btn:hover {
    color: var(--gold);
}

.item-quantity input {
    width: 40px;
    background: none;
    border: none;
    color: var(--text);
    text-align: center;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.875rem;
}

.item-quantity input:focus {
    outline: none;
}

.item-total {
    font-weight: 600;
    min-width: 80px;
    text-align: right;
}

.item-remove {
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s;
}

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

/* Cart Summary */
.cart-summary {
    background: var(--bg);
    border-radius: 4px;
    padding: 2rem;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.cart-summary h2 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    color: var(--text-muted);
}

.summary-row.total {
    border-top: 1px solid var(--border);
    margin-top: 0.5rem;
    padding-top: 1rem;
    color: var(--text);
    font-size: 1.25rem;
    font-weight: 600;
}

#shipping.free {
    color: #4CAF50;
    font-weight: 600;
}

.checkout-btn {
    width: 100%;
    margin-top: 1.5rem;
    text-align: center;
}

.continue-btn {
    display: block;
    text-align: center;
    width: 100%;
    margin-top: 1rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .cart-container {
        grid-template-columns: 1fr;
    }
    
    .cart-summary {
        position: static;
    }
}

@media (max-width: 768px) {
    .cart-page {
        padding: 2rem 1.5rem 4rem;
    }
    
    .cart-item {
        grid-template-columns: 80px 1fr;
        gap: 1rem;
    }
    
    .item-quantity,
    .item-total,
    .item-remove {
        grid-column: 2;
    }
    
    .item-quantity {
        width: fit-content;
    }
    
    .item-total {
        text-align: left;
    }
}