@import "../nouislider/nouislider.min.css";
:root {
    --main-color: #35294f;
    --accent-color: #b7b3c1;
    --border-color: #b7b4bf;
    /* Değişken tekrarları güvenli hale getirildi */
    --main: var(--main-color);
    --accent: var(--accent-color);
    --border: var(--border-color); 
	--wodacs-purple: #35294f;
	--wodacs-light-purple: #f4f2f7;
}

.product-title {
	font-size: 1.4rem;
	font-weight: 600;
	margin-bottom: 4px;
}

.page-title {
	font-size: 1.4rem;
	font-weight: 600;
	margin-bottom: 4px;
}

.page-desc {
	font-size: 0.85rem;
	color: #777;
}

.pagination .page-item.active .page-link { background-color: var(--main-color); border-color: var(--main-color); }
.pagination .page-link { color: var(--main-color); }

.custom-breadcrumb { --bs-breadcrumb-divider: '>'; font-size: .9rem; align-items: center; }
.custom-breadcrumb a { font-size: .8rem; color: #b7b4bf; text-decoration: none; transition: color .2s ease; }
.custom-breadcrumb a:hover { color: var(--main-color); }
.custom-breadcrumb .breadcrumb-item.active { font-size: .8rem; color: var(--main-color); font-weight: 600; }

.text-purple { color: var(--wodacs-purple); }
.bg-soft-purple { background-color: var(--wodacs-light-purple); }
.border-purple { border-color: var(--wodacs-purple) !important; }

.btn-purple {
    background-color: var(--wodacs-purple);
    color: white;
    transition: all 0.3s ease;
}

.btn-purple:hover {
    background-color: #2a2040;
    color: white;
    transform: translateY(-2px);
}

.stock-status {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.in-stock { background-color: #28a745; box-shadow: 0 0 8px #28a745; }
.out-of-stock { background-color: #dc3545; }

.quantity-control .btn {
    border-color: #dee2e6;
    background-color: white;
}

/* Sayı oklarını gizle */
#detay-adet-input::-webkit-outer-spin-button,
#detay-adet-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
#detay-adet-input {
    -moz-appearance: textfield;
}

.product-sticky-info {
    position: sticky;
    top: 2rem;
}

/* Ana Resim Taşıyıcı */
.main-image-wrapper {
    height: 600px; /* Sabit maksimum yükseklik */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa; /* Resim arkasında hafif gri ton (boşluklar için) */
    border: 1px solid #eee;
}

/* Resmin kendisi */
#mainProductImage {
    max-height: 100%;
    width: auto; /* Genişliği serbest bırak, yüksekliğe göre oranlasın */
    object-fit: contain; /* 1200x1800'ü bozmadan kutuya sığdırır */
    transition: opacity 0.3s ease;
}

/* Küçük Resimler (Thumbnails) */
.thumb-box {
    height: 100px; /* Küçük resimler için sabit yükseklik */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    transition: all 0.2s ease;
}

.thumb-box img {
    height: 100%;
    width: auto;
    object-fit: cover;
}

.thumb-box.active {
    border-color: var(--wodacs-purple) !important;
    border-width: 2px !important;
}

/* Ana resim üzerindeki buton */
.btn-video-play {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: var(--wodacs-purple);
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    z-index: 10;
}
.btn-video-play:hover { transform: scale(1.05); background: #000; }

/* Video Thumbnail Kaplaması */
.video-thumb { position: relative; background: #000; }
.video-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    z-index: 2;
    text-align: center;
}
.video-overlay i { font-size: 24px; }

/* Genel Buton Yapısı */
.accordion-button {
    box-shadow: none !important;
    border-bottom: 1px solid #eee !important; /* Kapalıyken bile bir sınırı olsun */
    padding: 1.25rem 0; /* Kenarlardan ziyade dikeyde ferahlık */
    transition: all 0.3s ease;
    color: #333 !important; /* Yazı rengini sabitledik */
}

/* Üzerine gelindiğinde (Hover) - Kullanıcıya etkileşim hissi verir */
.accordion-button:hover {
    background-color: #fcfaff !important; /* Çok hafif, belli belirsiz morumsu bir ton */
    padding-left: 10px; /* Hafif bir sağa kayma efekti (isteğe bağlı) */
}

/* Tıklandığında veya Odaklandığında (Focus) */
.accordion-button:focus {
    border-color: #35294f !important; 
    box-shadow: 0 4px 6px -1px rgba(111, 66, 193, 0.1) !important; /* Altta hafif mor bir gölge */
}

/* Açık Olduğunda (Not Collapsed) */
.accordion-button:not(.collapsed) {
    background-color: transparent !important;
    border-bottom: 1px solid #35294f !important; /* Açıkken altı mor çizilsin */
    font-weight: 700; /* Başlık biraz daha belirginleşsin */
}

/* Sağdaki Ok İkonu (Mor yaptık ki dikkat çeksin) */
.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%236f42c1'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.646a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
    background-size: 1.2rem;
}

/* Akınsoft'tan gelen HTML içeriğini güzelleştiren kurallar */
#desc .accordion-body {
    line-height: 1.6; /* Satır aralığını açarak ferahlık sağlar */
    color: #444;      /* Çok siyah olmayan, göz yormayan bir renk */
    font-size: 0.95rem;
}

/* Ana Başlık (h2) */
#desc .accordion-body h2 {
    color: #2c3e50;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    /*border-bottom: 2px solid #f1f1f1;*/
    padding-bottom: 0.5rem;
}

/* Alt Başlık (h3) */
#desc .accordion-body h3 {
    color: #34495e;
    font-size: 1.15rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* Paragraflar arası boşluk */
#desc .accordion-body p {
    margin-bottom: 1rem;
}

/* Liste Grubu (ul) Düzenlemesi */
#desc .accordion-body .list-group-flush {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    /*border: 1px solid #eee;*/ /* Listenin etrafına hafif bir çerçeve */
}

#desc .accordion-body .list-group-item {
    padding: 0.8rem 1.2rem;
    background-color: transparent;
   /* border-bottom: 1px solid #f8f9fa;*/
    color: #555;
    transition: background 0.3s;
}

#desc .accordion-body .list-group-item:hover {
    background-color: #fdfdfd; /* Hafif bir hover etkisi */
}

/* O meşhur "DİKKAT" kutusu (Çamaşır suyu uyarısı olan div) */
#desc .accordion-body div.border {
    background-color: #ededed; /* Çok hafif bir kırmızımsı arka plan */
    border-color: #b7b3c1 !important; /* Kenarlığı yumuşat */
    color: #35294f; /* Yazı rengini dikkat çekici yap */
    border-radius: 10px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Alt Bilgi (Küçük yazılar) */
#desc .accordion-body .text-muted.small {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 6px;
    display: inline-block;
    width: 100%;
}

/* Modalın genel yüksekliğini ve resmin sınırlarını belirle */
#productImageModal .modal-body {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

#modalImage {
    max-height: 85vh; /* Ekran yüksekliğinin %85'ini geçmesin */
    max-width: 95vw;  /* Ekran genişliğinin %95'ini geçmesin */
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    border: 3px solid rgba(255,255,255,0.2); /* Resme hafif bir çerçeve */
}

.modal-backdrop.show {
    background-color: #402b57 !important;
    opacity: 0.85 !important; /* Şeffaflığı buradan ayarlayabilirsin */
}

/* Ana kapsayıcıda overflow:hidden varsa zoom görünmez, o yüzden siliyoruz veya kontrollü veriyoruz */
.main-image-wrapper {
    position: relative;
    overflow: visible !important; /* Dışarı çıkışa izin ver */
}

.cursor-pointer {
	cursor: pointer !important;
}

#zoomLens {
    position: absolute;
    width: 200px;
    height: 300px;
    background-color: rgba(183, 179, 193, 0.2);
    border: 1px solid #b7b3c1;
    display: none; /* JS ile açılacak */
    z-index: 100;
    pointer-events: none; /* Resme tıklamayı engellemez */
	align-items: center;
    justify-content: center;
}

#zoomLens::before, #zoomLens::after {
    content: "";
    position: absolute;
    background-color: #6f42c1;
    pointer-events: none;
}
#zoomLens::before { width: 2px; height: 20px; }
#zoomLens::after { width: 20px; height: 2px; }

/* Dikey çizgi */
#zoomLens::before {
    content: "";
    position: absolute;
    width: 2px;
    height: 20px;
    background-color: #6f42c1; /* Kendi mor rengin, istersen değiştirebilirsin */
    pointer-events: none;
}

/* Yatay çizgi */
#zoomLens::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 2px;
    background-color: #6f42c1;
    pointer-events: none;
}

#zoomResult {
    position: absolute;
    left: 105%; /* Sağdaki kolonun üstüne biner */
    top: 0;
    width: 400px;
    height: 600px;
    background-repeat: no-repeat;
    background-color: #fff;
    z-index: 10000; /* Her şeyin üstünde */
    display: none; /* Başlangıçta gizli */
    pointer-events: none;
    border-radius: 10px;
    border: 1px solid #eee;
}

.btn-close:focus {
    box-shadow: 0 0 0 0.25rem rgba(53, 41, 79, 0.15) !important; /* Çok hafif bir mor gölge */
}