/* Sepet Sayfası */
.cart-page {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 32px;
    margin-top: 32px;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cart-item {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    display: grid;
    grid-template-columns: 120px 1fr 150px 120px 60px;
    gap: 20px;
    align-items: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.cart-item:hover {
    box-shadow: var(--shadow-md);
}

.cart-item-image {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg);
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cart-item-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.cart-item-title a {
    color: var(--text);
    text-decoration: none;
    transition: var(--transition);
}

.cart-item-title a:hover {
    color: var(--accent);
}

.cart-item-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cart-item-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--accent);
}

.cart-item-stock-warning {
    font-size: 12px;
    color: #c62828;
}

.cart-item-quantity {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cart-item-quantity label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg);
    border-radius: 8px;
    padding: 4px;
}

.quantity-btn {
    background: white;
    border: 1px solid var(--border);
    border-radius: 6px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    color: var(--text);
    transition: var(--transition);
}

.quantity-btn:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.quantity-input {
    width: 50px;
    text-align: center;
    border: none;
    background: transparent;
    font-weight: 600;
    font-size: 16px;
    color: var(--text);
}

.cart-item-subtotal {
    text-align: right;
}

.cart-item-subtotal-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.cart-item-subtotal-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
}

.cart-item-actions {
    display: flex;
    justify-content: center;
}

.cart-item-remove {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: var(--transition);
    color: var(--text-muted);
}

.cart-item-remove:hover {
    background: #ffebee;
    color: #c62828;
}

.cart-summary {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.cart-summary-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow-md);
}

.cart-summary-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: var(--text);
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    font-size: 14px;
}

.cart-summary-row span:first-child {
    color: var(--text-muted);
}

.cart-summary-row span:last-child {
    font-weight: 600;
    color: var(--text);
}

.cart-summary-divider {
    height: 1px;
    background: var(--border);
    margin: 16px 0;
}

.cart-summary-total {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent);
    padding-top: 16px;
    border-top: 2px solid var(--border);
}

.cart-checkout-btn {
    margin-top: 20px;
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
}

.btn-block {
    width: 100%;
    text-align: center;
    margin-top: 12px;
}

.cart-empty {
    text-align: center;
    padding: 80px 20px;
    background: var(--card-bg);
    border-radius: 12px;
    margin-top: 32px;
}

.cart-empty-icon {
    font-size: 80px;
    margin-bottom: 24px;
}

.cart-empty-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: var(--text);
}

.cart-empty-text {
    font-size: 16px;
    color: var(--text-muted);
    margin: 0 0 32px 0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-20px);
    }
}

@media (max-width: 1024px) {
    .cart-page {
        grid-template-columns: 1fr;
    }
    
    .cart-summary {
        position: static;
    }
}

@media (max-width: 768px) {
    .cart-page {
        gap: 24px;
        margin-top: 24px;
    }
    
    .cart-item {
        grid-template-columns: 80px 1fr;
        gap: 12px;
        padding: 16px;
    }
    
    .cart-item-image {
        width: 80px;
        height: 80px;
    }
    
    .cart-item-title {
        font-size: 16px;
    }
    
    .cart-item-price {
        font-size: 14px;
    }
    
    .cart-item-quantity,
    .cart-item-subtotal,
    .cart-item-actions {
        grid-column: 1 / -1;
        margin-top: 8px;
    }
    
    .cart-item-quantity {
        flex-direction: row;
        align-items: center;
        gap: 12px;
    }
    
    .cart-item-quantity label {
        font-size: 11px;
    }
    
    .cart-item-subtotal {
        text-align: left;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .cart-item-actions {
        justify-content: flex-end;
    }
    
    .cart-summary-card {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .cart-item {
        grid-template-columns: 70px 1fr;
        gap: 10px;
        padding: 12px;
    }
    
    .cart-item-image {
        width: 70px;
        height: 70px;
    }
    
    .cart-item-title {
        font-size: 14px;
    }
    
    .cart-item-meta {
        font-size: 12px;
    }
    
    .quantity-controls {
        gap: 4px;
        padding: 2px;
    }
    
    .quantity-btn {
        width: 28px;
        height: 28px;
        font-size: 16px;
    }
    
    .quantity-input {
        width: 40px;
        font-size: 14px;
    }
}

