/* Dosya: assets/css/urun-detay.css */

/* =========================================
   ÜRÜN DETAY SAYFASI ÖZEL STİLLERİ
   ========================================= */

/* --- 1. GALERİ VE SOL KOLON --- */

.product-left-col {
    position: relative;
}

/* Ana Galeri Kartı */
.product-gallery-card { 
    background: #fff; 
    border: 1px solid #f1f1f1; 
    border-radius: 16px; 
    padding: 20px; 
    position: relative; 
    overflow: hidden; 
    box-shadow: 0 5px 20px rgba(0,0,0,0.02); 
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-gallery-card img { 
    transition: transform 0.5s ease; 
    cursor: zoom-in; 
    max-width: 100%;
    height: auto;
}

.product-gallery-card:hover img { 
    transform: scale(1.05); 
}

/* Küçük Resimler */
.thumb-img {
    border: 2px solid transparent;
    border-radius: 8px;
    transition: all 0.2s;
}

.thumb-img:hover {
    border-color: #ffc107; /* Sarı Konsept Vurgusu */
    opacity: 0.8;
}

/* Dosya Yükleme Alanı */
.file-upload-wrapper { 
    border: 2px dashed #ddd; 
    border-radius: 12px; 
    padding: 20px; 
    text-align: center; 
    background: #f9f9f9; 
    transition: 0.3s; 
    position: relative; 
    cursor: pointer; 
}
.file-upload-wrapper:hover { 
    border-color: #ffc107; /* Sarı Konsept Vurgusu */
    background: #fff; 
}
.file-upload-wrapper input[type="file"] { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    opacity: 0; 
    cursor: pointer; 
}
.upload-icon { 
    font-size: 24px; 
    color: #ffc107; /* Sarı Konsept Vurgusu */
    margin-bottom: 5px; 
    display: block; 
}


/* --- 2. ÜRÜN BİLGİLERİ VE SEÇENEKLER --- */

.product-title { font-size: 1.8rem; font-weight: 800; color: #1a1a1a; line-height: 1.3; }
.product-meta { font-size: 0.9rem; color: #666; margin-bottom: 15px; }
.product-price-tag { font-size: 2rem; font-weight: 800; color: #ffc107; letter-spacing: -1px; }
.old-price { font-size: 1.1rem; text-decoration: line-through; color: #999; margin-left: 10px; }

/* Özellik Başlıkları */
.feature-label { 
    font-weight: 700; 
    font-size: 0.85rem; 
    text-transform: uppercase; 
    color: #555; 
    margin-bottom: 5px; 
    display: block; 
}

/* Standart Selectbox */
.form-select-feature { 
    padding: 10px; 
    border-radius: 6px; 
    border-color: #dee2e6; 
    font-size: 0.95rem; 
    cursor: pointer; 
}
.form-select-feature:focus { 
    border-color: #ffc107; /* Sarı Konsept Vurgusu */
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.25); 
}

/* --- KUTUCUKLU SEÇİM (BOX SELECTION) --- */
.option-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 10px;
}

.option-box {
    position: relative;
}

.option-box-input { display: none; } /* Radyo butonu gizle */

.option-box-label {
    border: 1px solid #dee2e6; /* Sadeleştirilmiş kenarlık */
    border-radius: 8px;
    padding: 10px 5px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
    height: 100%;
    min-height: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.option-box-label:hover {
    border-color: #adb5bd;
    background: #f8f9fa;
}

/* Seçili Olduğunda (SARI KONSEPT) */
.option-box-input:checked + .option-box-label {
    border-color: #ffc107;
    background-color: #fff9e6; 
    box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.25);
    color: #000;
}

/* Onay ikonu */
.option-box-input:checked + .option-box-label::after {
    content: '\f00c';
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 10px;
    color: #ffc107;
}

.option-box-img { 
    width: 100%; 
    height: 40px; 
    margin-bottom: 8px; 
    object-fit: contain; 
}
.option-box-text { font-size: 0.85rem; font-weight: 600; line-height: 1.2; color: #212529; margin-bottom: 3px; word-break: break-word; }
.option-box-price { font-size: 0.75rem; color: #198754; font-weight: 500; margin-top: 3px; }


/* --- 3. ADET SEÇİMİ (LİSTE TİPİ) --- */

.qty-list-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.qty-list-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border: 1px solid #eef2f5;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: #fff;
    width: 100%;
    margin-bottom: 0;
}

.qty-list-item:hover { 
    background-color: #f8f9fa; 
    border-color: #dee2e6;
}

/* Adet Seçili Durum (SARI KONSEPT) */
.qty-list-item.active {
    border-color: #ffc107; 
    background-color: #fff9e6; 
    box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.25); 
}

.qty-radio { 
    margin-right: 15px; 
    transform: scale(1.2); 
    cursor: pointer; 
} 

.qty-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    flex-wrap: wrap;
}

.qty-count { font-weight: 800; font-size: 1.05rem; min-width: 110px; color: #212529; }
.qty-list-item.active .qty-count { color: #000; } 
.qty-unit { font-size: 0.85rem; color: #6c757d; margin-right: auto; }
.qty-total { font-weight: 800; font-size: 1.1rem; color: #198754; text-align: right; min-width: 100px; }
.qty-vat-info { font-size: 0.7rem; font-weight: normal; color: #adb5bd; margin-left: 5px; display: block; }


/* --- 4. SAĞ TARAF STICKY ÖZET --- */

.summary-box {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: -webkit-sticky;
    position: sticky;
    top: 130px; 
    z-index: 30;
    align-self: flex-start;
}

.summary-row { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 0.9rem; color: #555; }
.summary-row span:last-child { font-weight: 600; color: #333; }


/* --- 5. TESLİMAT VE KARGO BİLGİ KUTUSU (SARI KONSEPT) --- */

.delivery-info-box {
    display: flex;
    align-items: center;
    background-color: #fff;
    border: 1px solid #eef2f5;
    border-radius: 12px;
    padding: 20px;
    margin-top: 0; 
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    flex-wrap: wrap; 
}
.delivery-date-section {
    display: flex;
    align-items: center;
    flex: 0 0 auto; 
    padding-right: 20px;
}
.del-icon-box {
    width: 50px;
    height: 50px;
    background: #fff9e6; 
    color: #ffc107; 
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-right: 15px;
}
.del-text-group {
    display: flex;
    flex-direction: column;
}
.del-label {
    font-size: 12px;
    color: #6c757d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.del-value {
    font-size: 16px;
    font-weight: 800;
    color: #212529;
}
.del-separator {
    width: 1px;
    height: 60px;
    background-color: #dee2e6;
    margin: 0 20px;
}
.delivery-desc-section {
    flex: 1; 
}
.del-desc-text {
    margin: 0;
    font-size: 13px;
    color: #495057;
    line-height: 1.5;
}

/* SİPARİŞ NOTU TASARIMI (SARI KONSEPT) */
.order-note-wrapper {
    background-color: #fcfcfc;
    border: 2px dashed #dee2e6; 
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}
.order-note-wrapper:focus-within {
    background-color: #fff;
    border-color: #ffc107; 
    box-shadow: 0 0 0 0.25rem rgba(255, 193, 7, 0.15);
}
.order-note-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: #495057;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}
.order-note-textarea {
    border: none;
    background: transparent;
    width: 100%;
    resize: none;
    font-size: 0.95rem;
    color: #212529;
    padding: 0;
}
.order-note-textarea:focus {
    outline: none;
    box-shadow: none;
    background: transparent;
}
.order-note-textarea::placeholder {
    color: #adb5bd;
    font-size: 0.9rem;
    font-style: italic;
}


/* --- 6. ÜRÜN AÇIKLAMA (SHOW MORE) --- */

.product-desc-wrapper { position: relative; overflow: hidden; transition: all 0.5s ease; }
.product-desc-wrapper.collapsed { max-height: 250px; }
.desc-gradient-overlay {
    position: absolute; bottom: 0; left: 0; width: 100%; height: 120px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), #fff);
    pointer-events: none; opacity: 0; transition: opacity 0.3s;
}
.product-desc-wrapper.collapsed .desc-gradient-overlay { opacity: 1; }
.desc-toggle-btn-wrapper { position: relative; z-index: 5; margin-top: -20px; text-align: center; }


/* --- 7. SÜREÇ ADIMLARI --- */

.process-section { background: #fdfdfd; padding: 50px 0; border-top: 1px solid #f0f0f0; margin-top: 0; }
.step-item { text-align: center; padding: 15px; }
.step-icon { 
    font-size: 2rem; color: #ffc107; margin-bottom: 15px; background: #fff; 
    width: 80px; height: 80px; line-height: 80px; border-radius: 50%; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); margin-left: auto; margin-right: auto; 
    display: flex; align-items: center; justify-content: center; overflow: hidden; 
}
.step-icon img { width: 100%; height: 100%; object-fit: cover; }
.step-title { font-weight: 700; margin-bottom: 10px; font-size: 1rem; }
.step-desc { font-size: 0.85rem; color: #777; }


/* --- 8. MODERN MÜŞTERİ YORUMLARI & YILDIZ OYLAMA --- */

.review-stats-card {
    background: #f8f9fa; border-radius: 12px; padding: 25px; text-align: center; height: 100%; border: 1px solid #eee;
}
.big-rating { font-size: 3.5rem; font-weight: 800; color: #333; line-height: 1; margin-bottom: 5px; }
.rating-stars { color: #ffc107; font-size: 1.2rem; margin-bottom: 5px; }

.rating-bar-row { display: flex; align-items: center; font-size: 0.85rem; margin-bottom: 6px; color: #666; }
.rating-bar-label { width: 45px; text-align: left; display: flex; align-items: center; gap: 4px; }
.rating-bar-track { flex-grow: 1; height: 6px; background: #e9ecef; border-radius: 3px; margin: 0 10px; overflow: hidden; }
.rating-bar-fill { height: 100%; background: #ffc107; border-radius: 3px; }
.rating-bar-count { width: 30px; text-align: right; font-weight: 600; }
.write-review-btn { width: 100%; margin-top: 15px; }

/* Yorum Listesi Kartı */
.review-card {
    background: #fff; border: 1px solid #f0f0f0; border-radius: 12px; padding: 20px; margin-bottom: 20px; transition: 0.3s; box-shadow: 0 2px 10px rgba(0,0,0,0.01);
}
.review-card:hover { box-shadow: 0 5px 20px rgba(0,0,0,0.05); }

.review-header { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 12px; }
.review-avatar {
    width: 45px; height: 45px; background: linear-gradient(135deg, #FFC107, #ffca2c); color: #000;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 1.2rem; flex-shrink: 0;
}
.review-meta h6 { font-weight: 700; margin: 0; color: #333; font-size: 0.95rem; }
.review-meta small { color: #999; font-size: 0.8rem; }
.review-stars { font-size: 0.85rem; color: #ffc107; margin-top: 3px; }
.review-body { font-size: 0.95rem; color: #555; line-height: 1.6; }

/* --- DÜZELTİLMİŞ YILDIZ OYLAMA (TEK YILDIZ) --- */
.star-rating-input {
    display: flex;
    flex-direction: row-reverse; /* Sağdan sola doldurma */
    justify-content: flex-end;   /* Görsel olarak sola yasla */
    gap: 8px;
    border: none;
}

/* Radio butonlarını kesinlikle gizle */
.star-rating-input input {
    display: none !important;
}

/* HTML'den gelen eski ikonları gizle (Çift görünümü engeller) */
.star-rating-input label i, 
.star-rating-input label svg { 
    display: none !important; 
}

/* Yıldız Etiketleri */
.star-rating-input label {
    font-size: 32px; /* Yıldız boyutu */
    color: #e4e5e9;  /* Boş yıldız rengi (Gri) */
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
    margin: 0;
    padding: 0;
    line-height: 1;
}

/* FontAwesome ile Tek Yıldız Bas */
.star-rating-input label:before {
    content: '\f005';
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

/* Hover ve Seçili Durumlar */
.star-rating-input input:checked ~ label,
.star-rating-input label:hover,
.star-rating-input label:hover ~ label {
    color: #FFC107; /* Dolu yıldız rengi (Altın) */
}

/* Tıklayınca hafif büyüme efekti */
.star-rating-input input:checked + label:before {
    transform: scale(1.15); 
}


/* --- RESPONSIVE --- */
@media (max-width: 991px) {
    .product-left-col, .summary-box { position: static; box-shadow: none; border: none; padding: 0; background: transparent; margin-bottom: 30px; }
    .review-stats-card { margin-bottom: 30px; }
}

@media (max-width: 768px) {
    .delivery-info-box { flex-direction: column; align-items: flex-start; padding: 15px; }
    .delivery-date-section { margin-bottom: 15px; padding-right: 0; width: 100%; border-bottom: 1px solid #f0f0f0; padding-bottom: 15px; }
    .del-separator { display: none; }
    .delivery-desc-section { width: 100%; }
    
    .qty-details { flex-direction: column; align-items: flex-start; }
    .qty-count, .qty-unit, .qty-total { width: 100%; text-align: left; margin-bottom: 2px; }
    .qty-total { margin-top: 5px; font-size: 1.1rem; border-top: 1px dashed #eee; padding-top: 5px; width: 100%; text-align: left; }
}