/* KATEGORİ BAŞLIĞI VE ALT KATEGORİ BARI */
.category-page-title { text-align: center; font-size: calc(var(--y) * 1.6); font-weight: bold; letter-spacing: 3px; color: #fff; margin: calc(var(--y) * 0.5) 0 calc(var(--y) * 1.25) 0; text-transform: uppercase; border-bottom: 1px dashed #333; padding-bottom: calc(var(--y) * 0.75); }
.sub-category-bar { display: flex; gap: calc(var(--y) * 0.5); overflow-x: auto; padding-bottom: calc(var(--y) * 0.75); margin-bottom: calc(var(--y) * 0.75); scrollbar-width: none; }
.sub-category-bar::-webkit-scrollbar { display: none; }
.sub-cat-btn { background: #111; border: 1px solid #ff99cc; color: #ff99cc; padding: calc(var(--y) * 0.5) calc(var(--y) * 1); border-radius: calc(var(--y) * 1); font-size: calc(var(--y) * 0.9); cursor: pointer; white-space: nowrap; transition: 0.2s; text-transform: uppercase; font-weight: bold; }
.sub-cat-btn:hover { background: #ff99cc; color: #000; }
.sub-cat-btn.active { background: #ff99cc; color: #000; border-color: #ff99cc; }

/* FİLTRE BARI */
#filter-bar { padding: calc(var(--y) * 0.5); max-width: calc(var(--y) * 70); margin: 0 auto; }
#filter-bar.hidden { display: none; }
.filter-dropdown-container { display: flex; gap: calc(var(--y) * 0.5); flex-wrap: wrap; margin-bottom: calc(var(--y) * 0.75); width: 100%; border-bottom: 1px dashed #333; padding-bottom: calc(var(--y) * 0.75); }
.filter-dropdown { position: relative; }
.filter-btn { background: #1a1a1a; color: #ff99cc; border: 1px solid #ff99cc; padding: calc(var(--y) * 0.5) calc(var(--y) * 1); border-radius: calc(var(--y) * 0.25); cursor: pointer; display: flex; align-items: center; gap: calc(var(--y) * 0.5); font-size: calc(var(--y) * 0.9); font-weight: bold; text-transform: uppercase; transition: 0.2s; }
.filter-btn:hover { background: #ff99cc; color: #000; }
.filter-content { display: none; position: absolute; top: 100%; left: 0; background: #111; min-width: calc(var(--y) * 10); border: 1px solid #ff99cc; border-radius: calc(var(--y) * 0.25); padding: calc(var(--y) * 0.75); z-index: 100; margin-top: calc(var(--y) * 0.5); box-shadow: 0 calc(var(--y) * 0.5) calc(var(--y) * 1.25) rgba(0,0,0,0.8); max-height: none !important; overflow-y: visible !important; }
.filter-content.show { display: flex; flex-direction: column; gap: calc(var(--y) * 0.5); }
.filter-content-label { display: flex; align-items: center; gap: calc(var(--y) * 0.5); cursor: pointer; font-size: calc(var(--y) * 0.9); color: #eee; text-transform: uppercase; }
.filter-content-label:hover { color: #ff99cc; }
.filter-checkbox { accent-color: #ff99cc; width: calc(var(--y) * 0.75); height: calc(var(--y) * 0.75); cursor: pointer; }
.active-filters-row { display: flex; flex-wrap: wrap; gap: calc(var(--y) * 0.5); margin-bottom: calc(var(--y) * 0.75); align-items: center; width: 100%; }
.filter-tag.active { background: #ff99cc; color: #000; border: none; font-weight: bold; padding: calc(var(--y) * 0.25) calc(var(--y) * 0.5); display: flex; align-items: center; gap: calc(var(--y) * 0.5); border-radius: calc(var(--y) * 1); cursor: pointer; }

/* Kutuların Ana İskeleti */
.card { position: relative; background: #fff; border-radius: calc(var(--y) * 0.5); overflow: hidden; cursor: pointer; transition: transform 0.3s; display: flex; flex-direction: column; min-width: 0; }
.card:hover { transform: scale(0.98); }
.card-image { flex-grow: 1; position: relative; background: #222; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.card-image img { width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0; }

/* ==========================================
   2 DURUMLU LÜKS VİTRİN DÜZENİ (YAZI VE İKON)
========================================== */

/* Ana Kutu (Kategoriler de bunu kullanır, bu yüzden varsayılan flex ayarları eklendi) */
.card-info { 
    height: calc(var(--y) * 3); 
    background: #ff99cc; 
    display: flex; align-items: center; justify-content: space-between; 
    padding: 0 calc(var(--y) * 0.75); 
    color: #000; z-index: 2; 
    min-width: 0; box-sizing: border-box;
    font-weight: bold; font-size: calc(var(--y) * 0.9); /* Kategori isimleri için korundu */
}

/* 1. DURUM: ÜRÜNE GİT / YİNE DE EKLE Varsa (İsim boydan boya uzar, Fiyat ve Yazı alttadır) */
.card-info.layout-text { flex-direction: column; justify-content: center; align-items: flex-start; font-weight: normal; font-size: initial; }
.card-info.layout-text .p-name { width: 100%; margin-bottom: calc(var(--y) * 0.4); /* ZEKÂ: Boşluk artırıldı, denge sağlandı */ }
.card-info.layout-text .card-info-bottom { display: flex; justify-content: space-between; align-items: center; width: 100%; }

/* 2. DURUM: SEPET İKONU Varsa (İsim ikona çarpmadan kesilir, İkon sağda dikilir) */
.card-info.layout-icon { flex-direction: row; justify-content: space-between; align-items: center; font-weight: normal; font-size: initial; }
.card-info.layout-icon .product-details { display: flex; flex-direction: column; justify-content: center; min-width: 0; flex-grow: 1; margin-right: calc(var(--y) * 0.5); }
.card-info.layout-icon .p-name { width: 100%; margin-bottom: calc(var(--y) * 0.4); /* ZEKÂ: Boşluk artırıldı, denge sağlandı */ }

/* Ortak Yazı Kuralları */
.p-name { 
    font-size: calc(var(--y) * 0.85); /* ZEKÂ: Daha büyük font */
    font-weight: 600; /* ZEKÂ: Okunaklı, zarif bir kalınlık (bold kadar kaba değil) */
    text-transform: uppercase; 
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis; 
    line-height: 1; 
}
.p-price { 
    font-size: calc(var(--y) * 0.85); 
    font-weight: normal; 
    line-height: 1; 
}

/* ZEKÂ: Buton yazılarının alt satıra inmesini KESİN OLARAK yasaklayan zırhlar */
.go-to-product-text { font-size: calc(var(--y) * 0.7); color: #000; font-weight: 900; display: flex; align-items: center; gap: calc(var(--y) * 0.25); text-transform: uppercase; white-space: nowrap !important; flex-shrink: 0; }
.wishlist-btn-grid { white-space: nowrap !important; flex-shrink: 0; }
.wishlist-btn-grid .btn-text::before { white-space: nowrap !important; }

/* Zarif Ürüne Git Metni ve Sepet Butonu */
.add-btn { background: #000; color: #fff; display: flex; align-items: center; justify-content: center; transition: 0.2s; }
.add-btn:hover { background: #fff; color: #000; border: 1px solid #000; }
.add-btn.disabled { border-radius: calc(var(--y) * 0.25); font-size: calc(var(--y) * 0.7); pointer-events: none; opacity: 0.7; }
.cart-add-only { width: calc(var(--y) * 1.75); height: calc(var(--y) * 1.75); border-radius: 50%; font-size: calc(var(--y) * 1.1); background: #000; color: #ff99cc; border: 1px solid #ff99cc; }
.cart-add-only:hover { background: #ff99cc; color: #000; border: 1px solid #000; transform: scale(1.1); }

/* ÜRÜN SLIDER VE KARE KUTULAR */
.product-image-box { background: #222; border-radius: calc(var(--y) * 0.75); padding: 0 !important; aspect-ratio: 1 / 1; overflow: hidden !important; position: relative; }
.product-slider { display: flex; width: 100%; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.product-slider::-webkit-scrollbar { display: none; }
.product-slider img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; scroll-snap-stop: always; }

/* Masaüstü Okları ve Güvenli Tıklama Alanı */
.slider-nav { position: absolute; top: 0; bottom: 0; width: 15%; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 5; opacity: 0; transition: opacity 0.3s; }
.product-image-box:hover .slider-nav { opacity: 1; }
.slider-nav.left { left: 0; }
.slider-nav.right { right: 0; }
.slider-nav i { background: rgba(0,0,0,0.4); color: #fff; width: calc(var(--y) * 1.75); height: calc(var(--y) * 1.75); display: flex; align-items: center; justify-content: center; border-radius: 50%; font-size: calc(var(--y) * 0.9); backdrop-filter: blur(calc(var(--y) * 0.25)); transition: 0.2s; }
.slider-nav:hover i { background: #ff99cc; color: #000; transform: scale(1.1); }

/* Noktalı Navigasyon (Dots) */
.slider-dots { position: absolute; bottom: calc(var(--y) * 0.75); left: 50%; transform: translateX(-50%); display: flex; gap: calc(var(--y) * 0.5); z-index: 5; background: rgba(0,0,0,0.3); padding: calc(var(--y) * 0.5) calc(var(--y) * 0.5); border-radius: calc(var(--y) * 1); backdrop-filter: blur(calc(var(--y) * 0.25)); }
.slider-dot { width: calc(var(--y) * 0.5); height: calc(var(--y) * 0.5); background: rgba(255, 255, 255, 0.4); border-radius: 50%; cursor: pointer; transition: all 0.3s; }
.slider-dot:hover { background: rgba(255, 255, 255, 0.8); }
.slider-dot.active { background: #ff99cc; transform: scale(1.2); box-shadow: 0 0 calc(var(--y) * 0.5) #ff99cc; }

.product-info-box { background: #111; border: 1px solid #333; border-radius: calc(var(--y) * 0.75); padding: calc(var(--y) * 2); aspect-ratio: 1 / 1; height: auto; display: flex; flex-direction: column; }
.var-group { margin: calc(var(--y) * 1) 0; }
.var-title { font-size: calc(var(--y) * 0.9); color: #aaa; margin-bottom: calc(var(--y) * 0.5); display: block; text-transform: uppercase; letter-spacing: 1px; }
.var-btn { background: #222; color: #fff; border: 1px solid #444; padding: calc(var(--y) * 0.5) calc(var(--y) * 1); margin: 0 calc(var(--y) * 0.5) calc(var(--y) * 0.5) 0; border-radius: calc(var(--y) * 0.25); cursor: pointer; transition: 0.2s; font-size: calc(var(--y) * 0.9); }
.var-btn:hover { border-color: #ff99cc; }
.var-btn.active { background: #ff99cc; color: #000; border-color: #ff99cc; font-weight: bold; }

/* ÜRÜN SAYFASI - NOT, FAVORİ VE TABLAR */
.product-note { font-size: calc(var(--y) * 0.9); color: #aaa; background: #1a1a1a; padding: calc(var(--y) * 0.5) calc(var(--y) * 0.75); border-left: 3px solid #ff99cc; margin: calc(var(--y) * 0.5) 0 calc(var(--y) * 1) 0; font-style: italic; border-radius: 0 calc(var(--y) * 0.25) calc(var(--y) * 0.25) 0; }
.fav-btn { position: absolute; top: calc(var(--y) * 1); right: calc(var(--y) * 1); background: rgba(0,0,0,0.5); color: #fff; width: calc(var(--y) * 2.25); height: calc(var(--y) * 2.25); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: calc(var(--y) * 1.4); cursor: pointer; z-index: 10; backdrop-filter: blur(calc(var(--y) * 0.25)); border: 1px solid #333; transition: 0.3s; }
.fav-btn:hover { background: #111; color: #ff99cc; border-color: #ff99cc; transform: scale(1.1); }
.fav-btn.active { color: #ff99cc; }
.fav-btn.active .fa-heart { font-weight: 900; }

/* WIDE / NARROW MOD ÜRÜN KUTULARI (DİKEY ESNEKLİK VE KUSURSUZ HİZALAMA) */
.box-span-full { grid-column: 1 / -1; width: 100%; min-width: 0; }

/* Sekme Butonları (Mobil İçin Ortak) */
.prod-tab-btn { background: transparent; color: #888; border: none; padding: calc(var(--y) * 0.25) 0 calc(var(--y) * 0.5) 0; font-size: calc(var(--y) * 1.1); font-weight: bold; cursor: pointer; text-transform: uppercase; transition: 0.2s; position: relative; }
.prod-tab-btn:hover { color: #ff99cc; }
.prod-tab-btn.active { color: #ff99cc; }
.prod-tab-btn.active::after { content: ''; position: absolute; bottom: -1px; left: 0; width: 100%; height: 2px; background: #ff99cc; }

/* Yorum Listesi Tasarımı */
.customer-review { border-bottom: 1px dashed #333; padding-bottom: calc(var(--y) * 0.75); margin-bottom: calc(var(--y) * 0.75); }
.customer-review:last-child { border-bottom: none; }
.cr-header { display: flex; justify-content: space-between; margin-bottom: calc(var(--y) * 0.25); font-size: calc(var(--y) * 0.9); }
.cr-name { font-weight: bold; color: #fff; }
.cr-date { color: #666; }
.cr-stars { color: #ffcc00; font-size: calc(var(--y) * 0.9); margin-bottom: calc(var(--y) * 0.5); }
.cr-text { color: #ccc; font-size: calc(var(--y) * 0.9); line-height: 1.6; }

/* ZEKÂ: Sadece Yorum Yokken 'Giriş Yap' Kutusunu ve Metnini Dikey Ortala */
#tab-reviews:not(:has(.customer-review)) > div:nth-of-type(1) { margin-top: auto; }
#tab-reviews:not(:has(.customer-review)) > #prod-reviews-container { margin-bottom: auto; }

/* ==========================================
   JS'DEN ÇIKARILAN ORTAK VİTRİN STİLLERİ
========================================== */
/* Home View */
.home-loading { text-align: center; padding: calc(var(--y) * 2.5); color: #fff; }

/* Category View */
.grid-error { color: #ff4d4d; text-align: center; padding: calc(var(--y) * 2.5); }
.cat-img-trans { transition: opacity 0.5s ease; }
.btn-coming-soon { width: auto; padding: 0 calc(var(--y) * 0.5); font-size: calc(var(--y) * 0.7); border-radius: calc(var(--y) * 0.75); background: #ff99cc; color: #000; font-weight: bold; white-space: nowrap; flex-shrink: 0; }
.go-to-product-text { white-space: nowrap; flex-shrink: 0; }
.price-crossed { text-decoration: line-through; opacity: 0.5; }
.price-error { color: #ff4d4d; font-size: 0.6rem; }
.card-info-center { justify-content: center; }

/* Product View */
.fomo-badge { display: inline-block; background: #ff4d4d; color: #fff; font-size: calc(var(--y) * 0.9); font-weight: bold; padding: calc(var(--y) * 0.25) calc(var(--y) * 0.5); border-radius: calc(var(--y) * 0.25); margin-bottom: calc(var(--y) * 0.75); }
.prod-info-text { font-size: calc(var(--y) * 0.9); color: #aaa; margin-top: calc(var(--y) * 0.5); font-style: italic; line-height: 1.4; }
.btn-action-yakinda { background: #ff99cc; color: #000; cursor: default; margin-top: calc(var(--y) * 1); font-weight: bold; letter-spacing: 2px; }
.btn-action-error { background: #555; cursor: not-allowed; margin-top: calc(var(--y) * 1); color: #999; }
.btn-action-missing { background: #444; color: #999; cursor: not-allowed; margin-top: calc(var(--y) * 1); }
.btn-action-outline { margin-top: calc(var(--y) * 1); background: transparent; border: 1px solid #ff99cc; color: #ff99cc; }
.btn-action-normal { margin-top: calc(var(--y) * 1); }
.prod-out-badge { color: #ff4d4d; font-size: calc(var(--y) * 1.1); font-weight: bold; margin-top: calc(var(--y) * 0.25); text-transform: uppercase; letter-spacing: 1px; }
.prod-note-text { color: #ccc; font-size: calc(var(--y) * 0.9); margin-top: calc(var(--y) * 0.25); line-height: 1.6; }
.review-form-box { margin-bottom: calc(var(--y) * 1); padding: calc(var(--y) * 0.75); background: #1a1a1a; border-radius: calc(var(--y) * 0.5); border: 1px solid #333; }
.review-form-title { color: #ff99cc; margin-bottom: calc(var(--y) * 0.5); }
.review-select, .review-textarea { width: 100%; padding: calc(var(--y) * 0.5); background: #111; color: #fff; border: 1px solid #444; border-radius: calc(var(--y) * 0.25); margin-bottom: calc(var(--y) * 0.5); }
.review-textarea { font-family: inherit; resize: vertical; }
.btn-submit-review { padding: calc(var(--y) * 0.5); font-size: calc(var(--y) * 0.9); }
.review-login-prompt { margin-bottom: calc(var(--y) * 1); padding: calc(var(--y) * 0.75); background: #1a1a1a; border-radius: calc(var(--y) * 0.5); text-align: center; color: #aaa; border: 1px solid #333; }
.review-login-link { color: #ff99cc; text-decoration: underline; }
.review-loading { text-align: center; color: #888; padding: calc(var(--y) * 1); }
.review-empty-msg { color: #888; font-style: italic; padding: calc(var(--y) * 0.5) 0; }
.prod-desc-text { color: #ccc; line-height: 1.6; font-size: calc(var(--y) * 0.9); white-space: pre-wrap; }
.prod-nav-header { width: 100%; max-width: 1400px; margin: 0 auto calc(var(--y) * 0.5) auto; padding: 0 calc(var(--y) * 0.5); }
.detail-title { font-size: 2.5rem; margin-bottom: 0; }
.detail-price { font-size: calc(var(--y) * 1.8); color: #ff99cc; border-bottom: 1px dashed #333; padding-bottom: calc(var(--y) * 1); margin-top: calc(var(--y) * 0.5); }

/* Search Engine */
.search-empty-box { text-align: center; padding: calc(var(--y) * 2.5); grid-column: span 4; color: #fff; }
.search-empty-desc { color: #aaa; margin-top: calc(var(--y) * 0.5); }