/* product.css - Ürün Detay Sayfası Özel Stilleri */

/* BREADCRUMB */
.breadcrumb { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-gray); margin: 20px 0; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.breadcrumb::-webkit-scrollbar { display: none; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb i { font-size: 10px; }
.breadcrumb .current { color: var(--text-dark); font-weight: 600; }

/* ÜRÜN DETAY ANA YAPI */
.product-detail-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; background-color: var(--surface); padding: 40px; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); margin-bottom: 50px; border: 1px solid var(--border); }

/* Galeri */
.product-gallery { display: flex; flex-direction: column; gap: 20px; }
.gallery-main { width: 100%; height: 500px; background-color: var(--bg-color); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; position: relative; overflow: visible; flex-shrink: 0; touch-action: pan-y; }
.gallery-main img { max-height: 90%; width: 100%; object-fit: contain; mix-blend-mode: multiply; transition: var(--transition); cursor: crosshair; user-select: none; -webkit-user-drag: none; }
.gallery-badge { position: absolute; top: 20px; left: 20px; background-color: var(--secondary); color: white; padding: 6px 12px; border-radius: var(--radius-sm); font-weight: 800; font-size: 14px; z-index: 2; }
.gallery-thumbs { display: flex; gap: 15px; overflow-x: auto; scrollbar-width: none; }
.gallery-thumbs::-webkit-scrollbar { display: none; }
.thumb-item { width: 100px; height: 100px; flex-shrink: 0; background-color: var(--bg-color); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; cursor: pointer; border: 2px solid transparent; transition: var(--transition); overflow: hidden; }
.thumb-item img { max-height: 80%; max-width: 80%; object-fit: contain; mix-blend-mode: multiply; }
.thumb-item.active { border-color: var(--primary); }
.thumb-item:hover { border-color: var(--border); }

/* ===== E-TİCARET ZOOM SİSTEMİ (Premium Amazon stili) ===== */

/* Zoom wrapper: görsel + sağ panel yan yana */
.zoom-wrapper {
    position: relative;
    display: flex;
    gap: 0;
    align-items: flex-start;
}

/* Büyüteç lensi — görselin üzerinde hareket eder */
.zoom-lens {
    position: absolute;
    display: none;
    width: auto;
    height: auto;
    border: 2px solid var(--primary);
    background: rgba(79, 70, 229, 0.10);
    border-radius: 4px;
    pointer-events: none;
    z-index: 10;
    box-shadow: 0 0 0 1px rgba(79,70,229,0.3), inset 0 0 8px rgba(79,70,229,0.08);
    backdrop-filter: brightness(1.05);
}

/* Zoom sonuç paneli — görselin sağına konumlanır */
.zoom-result {
    display: none;
    position: absolute;
    left: calc(100% + 15px);
    top: 0;
    background-repeat: no-repeat;
    background-color: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15), 0 4px 16px rgba(0,0,0,0.08);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.15s ease;
    overflow: hidden;
    pointer-events: none;
}

/* İpucu ikonu (hover'da kaybolur) */
.zoom-icon-hint {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: rgba(0,0,0,0.5);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    pointer-events: none;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    z-index: 5;
}

/* Ürün Bilgileri */
.product-info { display: flex; flex-direction: column; }
.pdp-brand { color: var(--text-gray); font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 5px; }
.pdp-title { font-size: 28px; font-weight: 800; line-height: 1.2; margin-bottom: 15px; color: var(--text-dark); }
.pdp-meta { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 25px; font-size: 14px; border-bottom: 1px solid var(--border); padding-bottom: 20px; flex-wrap: wrap; }
.pdp-rating { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text-dark); flex-wrap: wrap; }
.rating-stars { display: flex; gap: 2px; color: #F59E0B; font-size: 13px; }
.rating-text { display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--text-dark); }
.pdp-rating span span { color: var(--text-gray); font-weight: 500; text-decoration: underline; cursor: pointer; }
.pdp-sku { color: var(--text-gray); font-weight: 600; font-size: 13px; background: #f1f5f9; padding: 4px 10px; border-radius: 6px; }

.pdp-price-box { margin-bottom: 30px; }
.pdp-old-price { font-size: 18px; color: var(--text-gray); text-decoration: line-through; margin-bottom: 5px; display: block; }
.pdp-current-price { font-size: 32px; font-weight: 800; color: var(--primary); display: flex; align-items: center; gap: 15px; flex-wrap: wrap; }
.pdp-discount-tag { font-size: 13px; color: var(--tertiary); background: #d1fae5; padding: 4px 10px; border-radius: 20px; font-weight: 700; }

/* Varyasyonlar (Simüle) */
.variant-section { margin-bottom: 30px; }
.variant-title { font-size: 14px; font-weight: 700; margin-bottom: 10px; display: flex; justify-content: space-between; }
.variant-title span { color: var(--text-gray); font-weight: 600; }
.color-options { display: flex; gap: 12px; }
.color-btn { width: 36px; height: 36px; border-radius: 50%; border: 2px solid transparent; padding: 2px; cursor: pointer; transition: var(--transition); }
.color-btn .inner { width: 100%; height: 100%; border-radius: 50%; border: 1px solid rgba(0,0,0,0.1); }
.color-btn.active { border-color: var(--primary); transform: scale(1.1); }

/* Miktar ve Sepet */
.action-row { display: flex; gap: 15px; margin-bottom: 30px; flex-wrap: wrap; }
.qty-selector { display: flex; align-items: center; background-color: var(--bg-color); border-radius: var(--radius-sm); border: 1px solid var(--border); overflow: hidden; height: 50px; }
.qty-btn { width: 40px; height: 100%; font-size: 16px; display: flex; align-items: center; justify-content: center; color: var(--text-dark); transition: var(--transition); background: none; border: none; }
.qty-btn:hover { background-color: #cbd5e1; }
.qty-input { width: 40px; height: 100%; border: none; background: transparent; text-align: center; font-size: 15px; font-weight: 700; color: var(--text-dark); outline: none; }

.btn-add-cart { flex: 1; min-width: 180px; height: 50px; background-color: var(--primary); color: white; border-radius: var(--radius-sm); font-size: 15px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 10px; transition: var(--transition); border: none; }
.btn-add-cart:hover { background-color: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.3); }

.btn-fav-large { width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 18px; color: var(--text-gray); transition: var(--transition); background: white; }
.btn-fav-large:hover { color: var(--secondary); border-color: var(--secondary); background-color: #fff1f2; }

/* Güven Kutuları */
.trust-badges { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; background-color: var(--bg-color); padding: 20px; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.trust-item { display: flex; align-items: center; gap: 12px; }
.trust-item i { font-size: 22px; color: var(--primary); width: 25px; text-align: center; }
.trust-item div h4 { font-size: 13px; font-weight: 700; color: var(--text-dark); margin: 0; }
.trust-item div p { font-size: 11px; color: var(--text-gray); margin: 0; }

/* --- TAB (SEKME) YAPISI --- */
.product-tabs { background-color: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); border: 1px solid var(--border); margin-bottom: 60px; overflow: hidden; }
.tabs-header { display: flex; border-bottom: 1px solid var(--border); background-color: var(--bg-color); overflow-x: auto; scrollbar-width: none; }
.tabs-header::-webkit-scrollbar { display: none; }
.tab-btn { padding: 18px 25px; font-size: 15px; font-weight: 700; color: var(--text-gray); border-bottom: 3px solid transparent; white-space: nowrap; transition: var(--transition); background: none; border-left: none; border-right: none; border-top: none; }
.tab-btn:hover { color: var(--text-dark); }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); background-color: var(--surface); }

.tab-content { padding: 35px; display: none; }
.tab-content.active { display: block; animation: fadeIn 0.4s ease; }
.tab-content h3 { font-size: 18px; font-weight: 800; margin-bottom: 15px; color: var(--text-dark); }
.tab-content p { color: var(--text-gray); margin-bottom: 12px; font-size: 14px; line-height: 1.7; }
.tab-content ul { list-style: disc; padding-left: 20px; color: var(--text-gray); font-size: 14px; margin-bottom: 12px; }
.tab-content ul li { margin-bottom: 6px; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* RESPONSIVE */
@media (max-width: 991px) {
    .product-detail-wrapper { grid-template-columns: 1fr; gap: 30px; padding: 25px; }
    .gallery-main { height: 400px; }
}

@media (max-width: 1024px) {
    .zoom-lens, .zoom-result, .zoom-icon-hint { display: none !important; }
}

@media (max-width: 768px) {
    .product-detail-wrapper { padding: 15px; border-radius: 0; margin-top: -20px; border-left: none; border-right: none; gap: 20px; }
    .gallery-main { height: 350px; }
    .thumb-item { width: 70px; height: 70px; }
    .pdp-title { font-size: 20px; margin-bottom: 10px; }
    .pdp-meta { padding-bottom: 15px; margin-bottom: 20px; }
    .pdp-price-box { margin-bottom: 20px; }
    .pdp-current-price { font-size: 26px; gap: 10px; }
    .action-row { gap: 10px; }
    .btn-add-cart { min-width: unset; flex: 2; }
    .btn-fav-large { flex: 0.5; }
    .trust-badges { grid-template-columns: 1fr; padding: 15px; }
    .tab-btn { padding: 12px 15px; font-size: 12px; }
    .tab-content { padding: 20px 15px; }
}

@media (max-width: 480px) {
    .pdp-meta { flex-direction: column; align-items: flex-start; gap: 10px; }
    .pdp-sku { width: 100%; border-radius: 4px; }
    .action-row { flex-direction: row; flex-wrap: nowrap; gap: 8px; align-items: stretch; }
    .qty-selector { width: 110px; flex: 0 0 auto; height: 50px; }
    .btn-add-cart { order: 2; flex: 1; min-width: 0; font-size: 13px; padding: 0 10px; height: 50px; }
    .btn-fav-large { order: 3; width: 50px; height: 50px; flex: 0 0 auto; }
    .qty-btn { width: 34px; }
    .qty-input { width: 32px; }
}
/* --- YORUM SİSTEMİ STİLLERİ --- */
.reviews-container { display: flex; flex-direction: column; gap: 30px; }
.reviews-header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 25px; border-bottom: 1px solid var(--border); gap: 20px; flex-wrap: wrap; }
.add-review-btn-box .btn-primary { 
    padding: 12px 24px; 
    background-color: var(--primary); 
    color: white; 
    border: none; 
    border-radius: var(--radius-sm); 
    font-weight: 700; 
    transition: var(--transition); 
    font-size: 14px;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}
.add-review-btn-box .btn-primary:hover { 
    background-color: var(--primary-dark); 
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}
.avg-box { display: flex; flex-direction: column; align-items: center; background-color: var(--primary-light); padding: 20px; border-radius: var(--radius-md); min-width: 150px; }
.avg-val { font-size: 32px; font-weight: 800; color: var(--primary); line-height: 1; margin-bottom: 10px; }
.avg-stars { color: #F59E0B; margin-bottom: 5px; }
.total-reviews { font-size: 13px; color: var(--text-gray); font-weight: 600; }

.review-form-card { background: var(--bg-color); padding: 25px; border-radius: var(--radius-md); border: 1px solid var(--border); margin-bottom: 30px; }
.review-form-card h4 { margin-bottom: 20px; font-weight: 800; }
.rating-input-box { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; }
.star-rating-input { display: flex; flex-direction: row-reverse; gap: 5px; }
.star-rating-input label { cursor: pointer; color: #cbd5e1; transition: var(--transition); font-size: 24px; padding: 0 2px; }
.star-rating-input label:hover,
.star-rating-input label:hover ~ label,
.star-rating-input input:checked ~ label { color: #F59E0B; }
.star-rating-input input { display: none; }

.form-file-input { margin: 15px 0; }
.file-label { display: inline-flex; align-items: center; gap: 10px; padding: 10px 15px; background: white; border: 1px dashed var(--border); border-radius: var(--radius-sm); cursor: pointer; color: var(--text-gray); font-weight: 600; font-size: 14px; }
.file-label:hover { border-color: var(--primary); color: var(--primary); }
input[type="file"] { display: none; }

.review-item { padding: 25px 0; border-bottom: 1px solid var(--border); }
.review-user { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; }
.user-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: white; display: flex; align-items: center; justify-content: center; font-weight: 800; }
.user-name { font-weight: 700; color: var(--text-dark); }
.review-date { font-size: 11px; color: var(--text-gray); margin-top: 4px; }
.review-stars { margin-left: auto; color: #F59E0B; font-size: 13px; }
.review-body p { color: var(--text-dark); margin-bottom: 15px; line-height: 1.6; }
.review-img img { width: 120px; height: 120px; object-fit: cover; border-radius: var(--radius-sm); cursor: pointer; border: 1px solid var(--border); transition: transform 0.3s ease; }
.review-img img:hover { transform: scale(1.05); }

.alert { padding: 15px; border-radius: var(--radius-sm); margin-bottom: 20px; font-weight: 600; font-size: 14px; }
.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-danger { background: #ffe4e6; color: #991b1b; border: 1px solid #fecdd3; }
.no-reviews { text-align: center; padding: 50px 0; color: var(--text-gray); }
.no-reviews i { font-size: 40px; margin-bottom: 15px; opacity: 0.5; }

.form-textarea { width: 100%; min-height: 100px; padding: 15px; border-radius: var(--radius-sm); border: 1px solid var(--border); margin-bottom: 15px; outline: none; transition: var(--transition); }
.form-textarea:focus { border-color: var(--primary); }
.form-actions { display: flex; gap: 12px; margin-top: 10px; }
.form-actions .btn-primary { flex: 1; height: 48px; border-radius: var(--radius-sm); background-color: var(--primary); color: white; border: none; font-weight: 700; cursor: pointer; transition: var(--transition); display: flex; align-items: center; justify-content: center; gap: 8px; }
.form-actions .btn-primary:hover { background-color: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2); }
.form-actions .btn-outline { flex: 1; height: 48px; border-radius: var(--radius-sm); background-color: transparent; color: var(--text-gray); border: 1px solid var(--border); font-weight: 600; cursor: pointer; transition: var(--transition); }
.form-actions .btn-outline:hover { background-color: var(--bg-color); color: var(--text-dark); border-color: var(--text-gray); }
