/* Cart Modern Layout */
.cart-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    padding: 4rem 0;
    align-items: start;
}

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

/* Cart Table/List Styling */
.cart-table-wrapper {
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    border: 1px solid var(--color-border);
    overflow: hidden;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table thead th {
    background: #FAFAFA;
    padding: 1.5rem;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    color: var(--color-text-light);
    border-bottom: 1px solid var(--color-border);
}

.cart-table tbody td {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.cart-table tbody tr:last-child td {
    border-bottom: none;
}

/* Product Column */
.cart-product {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.cart-product-thumb {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    background-color: #f5f5f5;
    background-size: cover;
    background-position: center;
    border: 1px solid var(--color-border);
    flex-shrink: 0;
}

.cart-product-info h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-secondary);
}

.cart-variant-badge {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--color-text-light);
    background: #f9f9f9;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid #eee;
}

/* Quantity Control Modern */
.qty-control-modern {
    display: flex;
    align-items: center;
    border: 1px solid #e0e0e0;
    border-radius: 999px;
    /* Pill shape */
    background: #fff;
    width: 120px;
    /* Slightly wider */
    padding: 2px;
    height: 40px;
}

.qty-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--color-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    flex-shrink: 0;
}

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

.qty-input-modern {
    flex: 1;
    width: 100%;
    /* Use available space */
    border: none;
    text-align: center;
    font-weight: 700;
    font-family: var(--font-body);
    font-size: 1.1rem;
    background: transparent;
    outline: none;
    color: var(--color-secondary);
    appearance: textfield;
    -moz-appearance: textfield;
    padding: 0;
    /* CRITICAL FIX: Remove global input padding */
    margin: 0;
}

.qty-input-modern::-webkit-inner-spin-button,
.qty-input-modern::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Remove Link Modern (Trash Icon) */
.remove-link {
    color: #FF5252;
    background: #FFEBEE;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 5px rgba(255, 82, 82, 0.1);
}

.remove-link svg {
    transition: transform 0.3s ease;
}

.remove-link:hover {
    background: #FF5252;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 82, 82, 0.3);
}

.remove-link:hover svg {
    transform: rotate(15deg);
    /* Playful tilt */
}

/* Empty State */
.empty-cart-state {
    text-align: center;
    padding: 6rem 2rem;
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px dashed #e0e0e0;
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    opacity: 0.2;
}