/* Sepet Sayfası Ana Kapsayıcı */
.cart-page-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 20px;
    font-family: 'Poppins', sans-serif;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 2rem;
    font-weight: 700;
}

/* Sepet İçeriği ve Özet Bölümü Düzeni */
.cart-content-wrapper {
    display: flex;
    flex-direction: row;
    gap: 2rem; /* İki bölüm arası boşluk */
    align-items: flex-start; /* Bölümleri yukarıdan hizala */
}

/* Ürünler Bölümü */
.cart-items-section {
    flex: 2; /* Ürünler bölümü daha geniş olsun */
    background-color: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.cart-items-section h2 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.75rem;
    font-weight: 600;
}

.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Tek bir sepet öğesi */
.cart-item {
    display: flex;
    flex-direction: column; /* Ana bilgileri ve kontrolleri alt alta sırala */
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.cart-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.cart-item-main-info {
    display: flex;
    flex-direction: row; /* Resim ve detayları yan yana */
    align-items: flex-start; /* Dikeyde başa hizala */
    margin-bottom: 15px;
}

.cart-item-image-large {
    width: 120px; /* Daha büyük resim için boyut - isteğe göre ayarlanabilir */
    height: auto;
    margin-right: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.cart-item-details-container {
    flex-grow: 1; /* Kalan alanı kapla */
}

.cart-item-name-header {
    font-size: 1.1em; /* Ürün adı için biraz daha büyük font */
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 8px;
    color: #333;
}

.cart-item-dimensions {
    font-size: 0.85em;
    color: #666;
    margin-bottom: 8px;
    line-height: 1.4;
}

.cart-item .customizations {
    font-size: 0.85em;
    color: #555;
    margin-bottom: 10px;
}

.cart-item .customizations div {
    margin-bottom: 3px;
}

.cart-item-controls-subtotal {
    display: flex;
    flex-direction: column; /* Birim fiyat, aksiyonlar ve ara toplam alt alta */
    align-items: flex-start; /* Sola hizala */
    margin-top: 10px;
}

.cart-item-price-unit {
    font-size: 0.9em;
    color: #444;
    margin-bottom: 10px;
}

.cart-item-actions {
    display: flex;
    align-items: center; /* Dikeyde ortala */
    margin-bottom: 10px;
}

.quantity-btn-page {
    background-color: #f8f9fa; /* Açık gri arka plan */
    border: 1px solid #dee2e6; /* İnce kenarlık */
    color: #343a40; /* Koyu gri metin */
    padding: 6px 10px; /* Biraz daha kompakt padding */
    cursor: pointer;
    border-radius: 4px;
    font-size: 0.95em; /* Hafifçe ayarlanmış font boyutu */
    line-height: 1.2;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.quantity-btn-page:hover {
    background-color: #e9ecef;
    border-color: #ced4da;
}

.cart-item-quantity-page {
    width: 40px; /* Daha dar miktar alanı */
    text-align: center;
    margin: 0 6px; /* Butonlarla arası daha az */
    padding: 7px 5px; /* Dikey padding'i artır, yatayı azalt */
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 0.95em;
    -moz-appearance: textfield;
}

.cart-item-quantity-page::-webkit-outer-spin-button,
.cart-item-quantity-page::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.remove-item-btn-page {
    background-color: #dc3545; /* Standart Bootstrap danger kırmızısı */
    color: white;
    border: none;
    padding: 7px 14px; /* Padding ayarı (biraz daha dolgun) */
    cursor: pointer;
    border-radius: 4px;
    margin-left: 15px; /* Miktar kontrollerinden boşluk */
    font-size: 0.9em;
    font-weight: 500;
    text-align: center;
    transition: background-color 0.2s ease;
}

.remove-item-btn-page:hover {
    background-color: #c82333; /* Hover için koyu kırmızı */
}

.cart-item-subtotal-display {
    font-size: 1em;
    font-weight: 600;
    color: #333;
    margin-top: 5px; /* Eylemlerden sonra biraz boşluk */
}

/* Sipariş Özeti Bölümü */
.cart-summary-section {
    flex: 1; /* Özet bölümü daha dar olsun */
    background-color: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky; /* Sayfa kaydırıldığında sabit kalması için */
    top: 2rem; /* Üstten boşluk */
}

.cart-summary-section h2 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.75rem;
    font-weight: 600;
}

.cart-summary-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 1rem;
    color: #555;
}

.summary-row strong {
    color: #333;
    font-weight: 700;
}

.summary-row.total-row {
    font-size: 1.2rem;
    padding-top: 0.75rem;
    border-top: 1px solid #eee;
}

.checkout-btn {
    width: 100%;
    padding: 0.8rem;
    font-size: 1.1rem;
    font-weight: 600;
    background-color: #2ecc71; /* Yeşil renk, cta-button ile aynı olabilir veya farklı */
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s ease;
}

.checkout-btn:hover {
    background-color: #27ae60;
}

/* Sepet boş mesajı */
.empty-cart-message {
    padding: 20px;
    text-align: center;
    font-size: 1.1em;
    color: #777;
    border: 1px dashed #ddd;
    border-radius: 4px;
}

/* Mobil uyumluluk için */
@media (max-width: 992px) {
    .cart-content-wrapper {
        flex-direction: column;
    }
    .cart-summary-section {
        width: 100%;
        position: static; /* Mobil görünümde sabit kalmasın */
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    .cart-items-section h2, .cart-summary-section h2 {
        font-size: 1.5rem;
    }
    .cart-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .cart-item-image-large {
        width: 80px;
        height: 80px;
        margin-bottom: 0.5rem;
    }
    .cart-item-actions {
        width: 100%;
        margin-top: 0.5rem;
        justify-content: space-between;
    }
    .cart-item-subtotal-display {
        margin-top: 0.5rem;
        text-align: left;
    }
}

@media (max-width: 480px) {
    .cart-page-container {
        padding: 0 10px;
    }
    .cart-items-section, .cart-summary-section {
        padding: 1rem;
    }
    .remove-item-btn-page {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    .cart-item-quantity-page {
        padding: 0.4rem;
    }
} 