/* ====================================
   SEPET KART SİSTEMİ
   ==================================== */

.sepet-items-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 30px;
}

/* Sepet Item Kartı */
.sepet-item-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.sepet-item-card:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border-color: var(--tg-theme-primary, #ff5757);
}

/* Akordiyon Header */
.sepet-item-header {
    cursor: pointer;
    padding: 20px;
    background: #fafafa;
    border-bottom: 1px solid #e0e0e0;
    transition: background 0.3s ease;
}

.sepet-item-header:hover {
    background: #f5f5f5;
}

.sepet-header-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.sepet-header-info {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.sepet-header-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--tg-theme-primary, #0ab39c);
}

.sepet-accordion-icon {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--tg-theme-primary, #0ab39c);
    border-radius: 50%;
    color: #fff;
    transition: transform 0.3s ease, background 0.3s ease;
}

.sepet-item-header:hover .sepet-accordion-icon {
    background: var(--tg-theme-primary-hover, #089981);
    transform: scale(1.1);
}

.sepet-accordion-icon i {
    transition: transform 0.3s ease;
}

.sepet-item-header[aria-expanded="true"] .sepet-accordion-icon i {
    transform: rotate(180deg);
}

/* Header Actions */
.sepet-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* Sil Butonu İkon */
.sepet-remove-btn-icon {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    padding: 0;
    flex-shrink: 0;
}

.sepet-remove-btn-icon:hover {
    background: #dc3545;
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.sepet-remove-btn-icon:active {
    transform: scale(0.95);
}

.sepet-item-content {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
    align-items: start;
    padding: 30px;
}

/* Akordiyon içinde farklı yerleşim */
.collapse .sepet-item-content {
    grid-template-columns: 1fr 320px;
    gap: 30px;
}

/* Resim Alanı */
.sepet-item-image {
    width: 140px;
    height: 140px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

/* Header içindeki resim */
.sepet-header-content .sepet-item-image {
    width: 100px;
    height: 60px;
}

.sepet-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.sepet-item-image:hover img {
    transform: scale(1.05);
}

/* Detaylar Alanı */
.sepet-item-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Tur Header Info (Tarih ve Badge'ler) */
.sepet-tur-header-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 15px;
}

.sepet-tur-tarih {
    flex: 1;
    min-width: 200px;
}

.sepet-tur-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.sepet-item-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 12px;
    line-height: 1.4;
}

.sepet-item-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.sepet-item-title a:hover {
    color: var(--tg-theme-primary, #ff5757);
}

/* Badge Stilleri */
.info-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-right: 8px;
    margin-bottom: 8px;
    background: #f5f5f5;
    color: #555;
}

.info-badge.success {
    background: #e8f5e9;
    color: #2e7d32;
}

.info-badge.warning {
    background: #fff3e0;
    color: #ef6c00;
}

/* Fiyatlandırma Bilgileri */
.sepet-pricing-info {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 16px;
    margin-top: 12px;
}

.pricing-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed #e0e0e0;
}

.pricing-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 2px solid #e0e0e0;
}

.pricing-label {
    color: #666;
    font-size: 0.9rem;
}

.pricing-value {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 0.95rem;
}

.pricing-value.text-warning {
    color: #ef6c00;
}

/* Miktar Kontrolleri */
.sepet-quantity-section {
    min-width: 280px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #f9f9f9;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e9ecef;
}

.quantity-controls {
    background: transparent;
    border-radius: 0;
    padding: 0;
}

.quantity-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: #666;
    margin-bottom: 6px;
    text-transform: none;
    letter-spacing: 0.3px;
    text-align: center;
}

.qty-control-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    margin-bottom: 10px;
}

/* Normal kişi sayısı için butonlar yatay */
.quantity-controls > label.quantity-label + .qty-control-group {
    flex-direction: row;
    gap: 6px;
}

.qty-control-group .qty-input-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.qty-control-group:last-child {
    margin-bottom: 0;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border: 1px solid #e0e0e0;
    background: #fff;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    color: #666;
    padding: 0;
    line-height: 1;
}

.qty-btn:hover {
    background: var(--tg-theme-primary, #0ab39c);
    border-color: var(--tg-theme-primary, #0ab39c);
    color: #fff;
    transform: scale(1.05);
}

.qty-btn:active {
    transform: scale(0.95);
}

.qty-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.qty-input {
    width: 50px;
    height: 28px;
    text-align: center;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #333;
    background: #fff;
    padding: 0;
}

.qty-input:focus {
    outline: none;
    border-color: var(--tg-theme-primary, #0ab39c);
    box-shadow: 0 0 0 2px rgba(10, 179, 156, 0.1);
}

/* Yaş Grubu Kontrolleri */
.yas-grup-input {
    width: 45px;
    height: 28px;
    font-size: 0.875rem;
}

/* Actions (Sadece Sil Butonu) */
.sepet-actions {
    display: flex;
    justify-content: stretch;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #e9ecef;
    margin-top: 16px;
}

.sepet-remove-btn {
    background: #dc3545;
    border: 1px solid #dc3545;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.sepet-remove-btn:hover {
    background: #c82333;
    border-color: #c82333;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.sepet-remove-btn i {
    margin-right: 6px;
}

/* Text Utilities */
.text-center {
    text-align: center;
}

.text-muted {
    color: #999 !important;
}

.mt-2 {
    margin-top: 8px;
}

/* Flash Toast Styles */
#flash-toast-container {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.flash-toast {
    background-color: #333;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
    min-width: 250px;
    max-width: 350px;
    font-size: 0.9rem;
    pointer-events: auto;
}

.flash-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.flash-toast.hide {
    opacity: 0;
    transform: translateY(20px);
}

.flash-toast.success {
    background-color: #28a745;
    color: #fff;
}

.flash-toast.error {
    background-color: #dc3545;
}

.flash-toast.warning {
    background-color: #ffc107;
    color: #333;
}

.flash-toast.info {
    background-color: #17a2b8;
}

/* ====================================
   RESPONSIVE TASARIM
   ==================================== */

@media (max-width: 1200px) {
    .sepet-item-content {
        grid-template-columns: 120px 1fr auto;
        gap: 20px;
    }
    
    .sepet-item-image {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 992px) {
    .sepet-item-content,
    .collapse .sepet-item-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .sepet-item-image {
        width: 100%;
        height: 200px;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .sepet-quantity-section {
        min-width: 100%;
    }
    
    .sepet-actions {
        flex-direction: row;
        justify-content: stretch;
        align-items: center;
        width: 100%;
        min-width: 100%;
    }
}

@media (max-width: 768px) {
    .sepet-item-header {
        padding: 15px;
    }
    
    .sepet-header-content {
        flex-wrap: wrap;
    }
    
    .sepet-header-info {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 10px;
    }
    
    .sepet-header-price {
        font-size: 18px;
        align-self: flex-end;
    }
    
    .sepet-item-content,
    .collapse .sepet-item-content {
        padding: 20px;
        gap: 20px;
    }
    
    .sepet-quantity-section {
        padding: 16px;
    }
    
    .sepet-tur-header-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .sepet-tur-tarih {
        width: 100%;
        min-width: 100%;
    }
    
    .sepet-tur-badges {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .sepet-item-card {
        padding: 0;
    }
    
    .sepet-item-title {
        font-size: 1.1rem;
    }
    
    .qty-control-group {
        flex-wrap: nowrap;
    }
    
    .qty-input-wrap {
        flex-wrap: nowrap;
    }
    
    .quantity-label {
        font-size: 0.7rem;
        margin-bottom: 5px;
    }
    
    .qty-btn {
        width: 26px;
        height: 26px;
        font-size: 0.8rem;
    }
    
    .qty-input,
    .yas-grup-input {
        width: 45px;
        height: 26px;
        font-size: 0.8rem;
    }
    
    .sepet-actions {
        justify-content: center;
    }
    
    .sepet-remove-btn {
        width: 100%;
        text-align: center;
    }
}



input[type=number] {
    outline: none;
    background-color: #fff;
    height: 30px !important;
    width: 100%;
    line-height: 30px !important;
    font-size: 15px;
    color: var(--tg-grey-1);
    padding-left: 26px;
    padding-right: 26px;
    border: 1px solid #a2a9ac38;
    border-radius: 12px;
}