/* GENEL STİLLER */
/* Tüm orijinal CSS stilleri olduğu gibi korunmuştur */

/* KUMAŞ/RENK SEÇENEK GİZLEME Mantığı için */
.hidden-section {
    display: none !important;
}

/* Kişiselleştirme Özet Kutusu */
.kisilendirme-icerik>.lg\:w-2\/5 {
    border: 1px solid #e0e0e0;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.kisilendirme-icerik>.lg\:w-2\/5 .fiyatlar .font-bold {
    font-size: 1.6rem;
    color: #d90429;
}

.kisilendirme-icerik .fiyatlar div {
    /* Taksiti kaldırdığımız için alttaki boşluğu düzenler */
    margin-bottom: 0;
}

/* *** DÜZELTME: Taksit satırını gizlemek için CSS eklendi *** */
.kisilendirme-fiyat-taksit {
    display: none !important;
}

/* Kısaltılmış Ürün Açıklaması Stilleri */

.urun-aciklama-text {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 10;
    line-clamp: 10;
    /* Maksimum 10 satır göster */
    -webkit-box-orient: vertical;
    transition: max-height 0.3s ease-out;
    max-height: 14em;
    /* Ortalama 10 satır yüksekliği */
    line-height: 1.4;
    white-space: pre-wrap;
    /* HTML içindeki boşluk ve satır sonlarını koru */
}

.urun-aciklama-text.expanded {
    -webkit-line-clamp: unset;
    max-height: none;
    /* Tamamen aç */
}

.devmadi-gor-maske {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    /* Görünürlük maskesi */
    background: linear-gradient(to top, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
    /* Butonun üstüne tıklanmasını engeller */
}

/* Diğer CSSler önceki kodla aynı kalmıştır */
/* Eski renk swatch stilini gizle */
.color-swatch {
    display: none !important;
}

.section-divider {
    border-top: 1px solid #f3f4f6;
    margin: 20px 0;
}

.slider-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.close-slider {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
}

.slider-content {
    max-width: 90%;
    max-height: 90vh;
    overflow: hidden;
}

#sliderImage {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.nav-slider {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 20px;
    pointer-events: none;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 24px;
    transition: background 0.3s;
    pointer-events: auto;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.4);
}

.slider-container {
    position: relative;
    overflow: hidden;
}

.slider-wrapper {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 20px;
    -webkit-overflow-scrolling: touch;
}

.slider-wrapper::-webkit-scrollbar {
    display: none;
}

.slider-item {
    flex: 0 0 calc(100% - 15px);
    width: calc(100% - 15px);
    scroll-snap-align: start;
    padding-right: 15px;
}

@media (min-width: 640px) {
    .slider-item {
        flex: 0 0 calc(50% - 15px);
        max-width: calc(50% - 15px);
    }
}

@media (min-width: 1024px) {
    .slider-item {
        flex: 0 0 calc(33.333% - 15px);
        max-width: calc(33.333% - 15px);
    }
}

.slider-nav-btn {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    background: white;
    border: 1px solid #ccc;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.prev-btn {
    left: 0;
}

.next-btn {
    right: 0;
}

.product-card-body {
    border: 1px solid #eee;
    padding-bottom: 0;
}

.product-card-body img {
    border-bottom: 1px solid #eee;
}

#mainImageContainer {
    position: relative;
}

#mainProductImage {
    transition: opacity 0.3s ease;
    cursor: grab;
}

.fiyat-kutu {
    display: flex;
    flex-direction: column;
    padding: 0 10px;
}

.fiyat-kutu span:first-child {
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 2px;
}

.fiyat-kutu .indirimli-fiyat {
    font-size: 1.5rem;
    font-weight: 700;
    color: #d90429;
}

.fiyat-kutu .urun-fiyati {
    font-size: 1rem;
    font-weight: 500;
    color: #9ca3af;
    text-decoration: line-through;
}

.fiyat-kutu .taksitli-fiyat {
    font-size: 1rem;
    font-weight: 700;
    color: #059669;
}

.fiyat-kutu .taksit-link a {
    color: #3b82f6;
    font-weight: 500;
}

.fiyat-kutu .taksit-link a:hover {
    text-decoration: underline;
}

/* YENİ VARYANT SEÇİMİ İÇİN CSS */
.color-swatch-radio {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 8px;
    border: 3px solid transparent;
    cursor: pointer;
    background-color: var(--swatch-color);
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    flex-shrink: 0;
}

.color-swatch-radio.active {
    border-color: #333;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transform: scale(1.05);
}

.stock-available {
    color: #059669;
}

.stock-low {
    color: #f59e0b;
}

.stock-unavailable {
    color: #d90429;
}

/* VARYANT SEÇİMİ SONU */

#kisilestirme-parcalari {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid #f0f0f0;
}

.urun-parca-row {
    display: flex;
    align-items: center;
    background-color: #fff;
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.2s;
    justify-content: space-between;
}

.urun-parca-row:hover {
    background-color: #fcfcfc;
    cursor: default;
}

.urun-parca-row.bg-gray-100 {
    background-color: #f7f7f7;
}

.urun-parca-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    margin-right: 15px;
    flex-shrink: 0;
    border: 1px solid #e0e0e0;
}

.urun-parca-ad {
    flex-grow: 1;
    font-size: 15px;
    font-weight: 500;
    color: #333;
}

.miktar-kontrol {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    overflow: hidden;
    flex-shrink: 0;
    margin-right: 15px;
}

.miktar-kontrol button {
    width: 30px;
    height: 30px;
    background-color: #f5f5f5;
    color: #555;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 0;
}

.miktar-kontrol button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.miktar-kontrol input {
    width: 35px;
    height: 30px;
    text-align: center;
    border-left: 1px solid #ccc;
    border-right: 1px solid #ccc;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    background-color: #fff;
    -moz-appearance: textfield;
    appearance: textfield;
}

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

.urun-parca-fiyat-tek {
    font-size: 15px;
    font-weight: 700;
    color: #222;
    min-width: 80px;
    text-align: right;
}

#kisilestirme-sepete-ekle {
    padding: 12px 0;
    font-size: 16px;
}

.urun-aciklama-text {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 10;
    line-clamp: 10;
    -webkit-box-orient: vertical;
    transition: max-height 0.3s ease-out;
    max-height: 14em;
    line-height: 1.4;
    white-space: pre-wrap;
}

.urun-aciklama-text.expanded {
    -webkit-line-clamp: unset;
    max-height: none;
}

.devamini-gor-maske {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(to top, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

.urun_detay_tablar_ul .link_1 {
    color: #3b82f6 !important;
    border-color: #3b82f6 !important;
}