/* ---------- Hero Slider ---------- */
/* Eskiden display:none/block ile sert kesme yapılıyordu, "efektsiz" hissettiriyordu. Artık tüm
   slaytlar üst üste (position:absolute) duruyor, sadece opacity ile 1s yumuşak crossfade yapılıyor.
   Kutu boyutu artık ".hero-slider" üzerinde (eskiden ".hero-slide-inner" üzerindeydi) — çünkü tüm
   slaytlar absolute olunca üst kapsayıcının kendi yüksekliğini tanımlaması gerekiyor. */
.hero-slider { position: relative; overflow: hidden; background: var(--c-accent-1); min-height: 560px; }
.hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1s ease; }
.hero-slide.active { opacity: 1; visibility: visible; z-index: 1; }
.hero-slide-inner {
  position: relative; width: 100%; height: 100%; display: flex; align-items: center;
  background-size: cover; background-position: center;
}
.hero-slide-inner::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.08) 55%, transparent 80%); }
.hero-slide-content { position: relative; z-index: 2; max-width: 480px; min-width: 0; box-sizing: border-box; padding: 0; margin: 0 8% 0 8%; color: #fff; }
.hero-slide-content .eyebrow { color: #fff; opacity: .85; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: 12px; margin-bottom: 10px; display: block; }
.hero-slide-content h1 { overflow-wrap: break-word; color: #fff; text-shadow: 0 2px 20px rgba(0,0,0,.3); }
.hero-slide-content p { color: rgba(255,255,255,.9); }
.hero-nav-dots { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 3; }
.hero-nav-dots button { width: 9px; height: 9px; border-radius: 50%; border: 1px solid #fff; background: transparent; cursor: pointer; padding: 0; }
.hero-nav-dots button.active { background: #fff; }
.hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; background: rgba(255,255,255,.85); border: none; width: 44px; height: 44px; border-radius: 50%; font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.hero-arrow.prev { left: 20px; } .hero-arrow.next { right: 20px; }

/* Masaüstü: sabit yükseklik yerine, yönetim panelinin standart ürettiği slider görseliyle (1920×720,
   2.667:1) birebir eşleşen bir aspect-ratio kullanılıyor. Kutu oranı görselle tam eşleştiği için
   "cover" hiçbir piksel kırpmıyor ve yanlarda boşluk kalmıyor. Sadece ≥768px için geçerli — mobil
   kural (aşağıda, max-width:767px) hiç değişmedi. */
@media (min-width: 768px) {
  .hero-slider { min-height: 0; aspect-ratio: 1920 / 720; }
}

@media (max-width: 767px) {
  .hero-slider { min-height: 440px; }
  .hero-slide-inner { background-position: center top; align-items: flex-end; padding-bottom: 56px; }
  .hero-slide-content { margin: 0 20px; max-width: calc(100% - 40px); }
  .hero-slide-content h1 { font-size: 24px; }
  .hero-slide-content p { display: none; }
  .hero-slide-content .btn-site { padding: 11px 20px; font-size: 11px; margin-top: 4px; }
  .hero-arrow { display: none; }
  .hero-nav-dots { bottom: 18px; }
}

/* ---------- Section basics ---------- */
.site-section { padding: 60px 0; }
.site-section.bg-tint { background: var(--c-accent-8); }
.site-section-head { text-align: center; margin-bottom: 36px; }
.site-section-head .eyebrow { color: var(--c-accent-2); text-transform: uppercase; letter-spacing: .12em; font-size: 11px; font-weight: 700; }
.site-section-head .view-all { display: block; margin-top: 12px; font-size: 12px; text-decoration: underline; }

/* ---------- Category showcase — yatay kaydırmalı daire carousel ---------- */
.cat-showcase {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 4px 4px 16px;
  scrollbar-width: thin;
}
.cat-showcase::-webkit-scrollbar { height: 6px; }
.cat-showcase::-webkit-scrollbar-thumb { background: var(--c-accent-3); border-radius: 3px; }
.cat-card { text-align: center; flex: 0 0 auto; width: 96px; }
.cat-card .cat-img { border-radius: 50%; overflow: hidden; aspect-ratio: 1; margin-bottom: 10px; background: var(--c-accent-8); border: 2px solid transparent; transition: border-color var(--transition); }
.cat-card:hover .cat-img { border-color: var(--c-accent-2); }
.cat-card .cat-img img { width: 100%; height: 100%; object-fit: cover; }
.cat-card span { font-size: 12px; font-weight: 600; }

/* ---------- Product cards / grids ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 991px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px) { .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }

.product-card { position: relative; }
.product-card { max-width: 100%; min-width: 0; }
.product-card:hover { z-index: 2; }
.product-card .p-img { position: relative; aspect-ratio: 2/3; width: 100%; background: var(--c-accent-8); overflow: hidden; border-radius: var(--radius); margin-bottom: 14px; transition: transform .35s ease, box-shadow .35s ease; box-shadow: 0 0 0 2px rgba(17,24,39,.22), 0 10px 28px rgba(0,0,0,.18); }
.product-card:hover .p-img { transform: translateY(-6px); box-shadow: 0 0 0 2px rgba(17,24,39,.3), 0 28px 32px -16px rgba(0,0,0,.42); }
.product-card .p-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product-card:hover .p-img img { transform: scale(1.05); }
.product-card .p-img img.p-img-hover { position: absolute; inset: 0; opacity: 0; transition: opacity .4s ease, transform .4s ease; }
.product-card:hover .p-img img.p-img-hover { opacity: 1; }
.product-card .p-img.touch-preview img.p-img-hover { opacity: 1; }
.product-card .p-badge { position: absolute; top: 10px; left: 10px; background: var(--c-accent-1); color: #fff; font-size: 10px; font-weight: 700; text-transform: uppercase; padding: 5px 11px; border-radius: var(--radius); }
.product-card .p-fav { position: absolute; top: 10px; right: 10px; background: rgba(255,255,255,.92); width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: none; cursor: pointer; opacity: 0; transition: opacity var(--transition); }
.product-card:hover .p-fav, .product-card .p-fav:focus-visible { opacity: 1; }
@media (max-width: 767px) { .product-card .p-fav { opacity: 1; } }
.product-card .p-cat { font-size: 11px; color: var(--c-accent-4); text-transform: uppercase; letter-spacing: .04em; }
.product-card .p-title { font-size: 13px; font-weight: 600; margin: 4px 0 6px; display: block; }
.product-card .p-price { font-size: 14px; }
.product-card .p-price .old { color: var(--c-accent-4); text-decoration: line-through; margin-right: 8px; font-size: 12px; }
.product-card .p-price .new { color: var(--c-accent-1); font-weight: 700; }
.product-card .p-addcart {
  margin-top: 10px; width: 100%; border: 1px solid var(--c-accent-1); background: transparent; padding: 10px; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; cursor: pointer; transition: all var(--transition); border-radius: var(--radius);
}
.product-card .p-addcart:hover { background: var(--c-accent-1); color: #fff; }
.product-card.out-of-stock .p-img::after { content: 'Tükendi'; position: absolute; inset: 0; background: rgba(255,255,255,.75); display: flex; align-items: center; justify-content: center; font-family: var(--font-body); font-weight: 700; text-transform: uppercase; font-size: 12px; }

/* ---------- Ana sayfa ürün kartları — referans site (eticaretv9fashion.demobul.com.tr) "Çok Satanlar"
   kartı (.pcard) Playwright ile 1440px ve 390px'te ölçülüp birebir uygulandı: kart genişliği 310.2px'te
   görsel alanı 310.2×413.6px (aspect-ratio TAM 3/4, referansın kendi inline "aspect-ratio:3/4"i), radius
   .pcard__media üzerinde 12px, görsel-metin arası boşluk .pcard__content{padding-top:8px}, satırlar arası
   6px. Izgara boşluğu: masaüstü 40px (grid gap-10), mobil 24px (grid gap-6) — referansta ölçülen tam
   değerler. Sadece ".home-product-grid" sınıfına uygulanır; kategori/mağaza sayfası (magaza.php,
   kategori.php) kendi ".product-grid"ini kullanmaya devam eder, etkilenmez. */
.product-grid.home-product-grid { gap: 40px; }
@media (max-width: 991px) { .product-grid.home-product-grid { gap: 32px; } }
@media (max-width: 767px) { .product-grid.home-product-grid { gap: 24px; } }
.home-product-grid .product-card .p-img { display: block; aspect-ratio: 3/4; border-radius: 12px; margin-bottom: 0; }
.home-product-grid .product-card .p-img img { object-position: center center; transition: transform .5s cubic-bezier(.22,.61,.36,1); }
.home-product-grid .product-card:hover .p-img img { transform: scale(1.03); }
.home-product-grid .product-card .p-cat { display: none; }
.home-product-grid .product-card .p-title {
  margin: 8px 0 0; padding: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}

/* ---------- Tabs widget (sekmeli vitrin) ---------- */
.site-tabs-nav { display: flex; justify-content: center; gap: 30px; margin-bottom: 32px; list-style: none; padding: 0; flex-wrap: wrap; }
.site-tabs-nav button { background: none; border: none; font-family: var(--font-body); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding-bottom: 8px; border-bottom: 2px solid transparent; cursor: pointer; color: var(--c-accent-4); }
.site-tabs-nav button.active { border-color: var(--c-accent-2); color: var(--c-accent-1); }
.site-tab-pane { display: none; }
.site-tab-pane.active { display: block; }

/* ---------- Promo / banner blocks ---------- */
.banner-block { position: relative; border-radius: var(--radius); overflow: hidden; display: flex; align-items: center; min-height: 260px; background-size: cover; background-position: center; }
.banner-block::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.5), transparent 70%); }
.banner-block .banner-content { position: relative; z-index: 2; padding: 30px; margin: 0 0 0 30px; color: #fff; max-width: 320px; }
.banner-block .banner-content h4 { color: #fff; }
.banner-block-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 767px) { .banner-block-row { grid-template-columns: 1fr; } }

.cta-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 767px) { .cta-cols { grid-template-columns: 1fr; } }
.cta-col { position: relative; min-height: 320px; display: flex; align-items: flex-end; background-size: cover; background-position: center; border-radius: var(--radius); overflow: hidden; }
.cta-col::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.6)); }
.cta-col .cta-col-content { position: relative; z-index: 2; padding: 24px; color: #fff; }
.cta-col .cta-col-content h4 { color: #fff; }

/* ---------- Newsletter ---------- */
.footer-newsletter { padding: 44px 0; background: var(--c-accent-1); color: #fff; text-align: center; }
.footer-newsletter .eyebrow { color: var(--c-accent-2); text-transform: uppercase; letter-spacing: .12em; font-size: 11px; font-weight: 700; }
.footer-newsletter h3 { color: #fff; margin-top: 8px; }
.footer-newsletter p { color: rgba(255,255,255,.75); }
.footer-newsletter form { display: flex; max-width: 420px; width: 100%; margin: 20px auto 0; gap: 0; box-sizing: border-box; }
.footer-newsletter input { flex: 1; min-width: 0; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.06); color: #fff; border-right: none; padding: 12px 16px; font-family: var(--font-body); border-radius: var(--radius) 0 0 var(--radius); }
.footer-newsletter input::placeholder { color: rgba(255,255,255,.55); }
.footer-newsletter .btn-site { border-radius: 0 var(--radius) var(--radius) 0; background: var(--c-accent-2); border-color: var(--c-accent-2); }
.footer-newsletter .btn-site:hover { background: #fff; color: var(--c-accent-1); border-color: #fff; }

/* ---------- Sezon Fırsatları (referans: eticaretv9fashion.demobul.com.tr, Playwright ile ölçüldü) ----------
   Masaüstü: hover'da genişleyen 5'li akordeon galeri (flex-grow geçişi, 800ms cubic-bezier).
   Mobil: yatay kaydırmalı (scroll-snap) tek kart galerisi. Sadece bu bloğa özel — diğer bölümlere dokunulmadı. */
.deals-section { background: #f1f5f9; padding: 80px 0; text-align: center; }
@media (min-width: 1024px) { .deals-section { padding: 128px 0; } }
.deals-section .deals-heading { font-size: 36px; font-weight: 300; letter-spacing: -.02em; text-transform: uppercase; margin-bottom: 32px; }
@media (min-width: 1024px) { .deals-section .deals-heading { font-size: 72px; letter-spacing: -.05em; } }
.deals-section .deals-sub { font-size: 14px; font-weight: 300; color: var(--c-accent-4); max-width: 576px; margin: 0 auto 64px; }
@media (min-width: 1024px) { .deals-section .deals-sub { font-size: 16px; } }

.deals-countdown { display: flex; align-items: flex-start; justify-content: center; gap: 16px; margin-bottom: 48px; flex-wrap: wrap; }
@media (min-width: 1024px) { .deals-countdown { gap: 48px; } }
.deals-countdown .dc-unit { display: flex; flex-direction: column; align-items: center; }
.deals-countdown .dc-unit span.dc-num { font-size: 36px; font-weight: 200; line-height: 1; color: var(--c-accent-1); font-variant-numeric: tabular-nums; }
@media (min-width: 1024px) { .deals-countdown .dc-unit span.dc-num { font-size: 96px; } }
.deals-countdown .dc-unit span.dc-label { font-size: 8px; text-transform: uppercase; letter-spacing: .3em; color: var(--c-accent-4); margin-top: 8px; }
@media (min-width: 1024px) { .deals-countdown .dc-unit span.dc-label { font-size: 10px; } }
.deals-countdown .dc-colon { font-size: 30px; font-weight: 300; color: var(--c-accent-3); align-self: center; margin-top: -8px; }
@media (min-width: 1024px) { .deals-countdown .dc-colon { font-size: 60px; margin-top: -16px; } }

.deals-gallery { display: none; height: 760px; gap: 15px; overflow: hidden; border-radius: 16px; }
@media (min-width: 768px) { .deals-gallery { display: flex; } }
.deals-panel {
  position: relative; height: 100%; overflow: hidden; border-radius: 12px; display: block;
  flex-grow: 1; flex-basis: 0; transition: flex-grow .8s cubic-bezier(.25,1,.5,1);
}
.deals-panel:hover { flex-grow: 4; }
.deals-panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.deals-panel .dp-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.1); transition: background .7s ease; pointer-events: none; }
.deals-panel:hover .dp-overlay { background: rgba(0,0,0,.45); }
.deals-panel .dp-preview {
  position: absolute; inset-block: 0; right: 0; width: 80px; background: rgba(0,0,0,.55); border-left: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center; transform: translateX(100%); transition: transform .7s cubic-bezier(.25,1,.5,1);
}
.deals-panel:hover .dp-preview { transform: translateX(0); }
.deals-panel .dp-preview span { color: #fff; font-size: 12px; text-transform: uppercase; letter-spacing: .5em; font-weight: 700; writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; }
@media (min-width: 1024px) { .deals-panel .dp-preview span { font-size: 14px; } }
.deals-panel .dp-content {
  position: absolute; left: 24px; right: 104px; bottom: 24px; z-index: 2;
  display: flex; flex-direction: column; align-items: flex-start;
  transform: translateY(32px); opacity: 0; pointer-events: none; transition: all .7s cubic-bezier(.25,1,.5,1) .1s;
}
@media (min-width: 1024px) { .deals-panel .dp-content { left: 40px; right: 120px; bottom: 40px; } }
.deals-panel:hover .dp-content { transform: translateY(0); opacity: 1; pointer-events: auto; }
.deals-panel .dp-price { background: rgba(255,255,255,.95); color: #000; padding: 8px 16px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; box-shadow: 0 8px 20px rgba(0,0,0,.2); }
.deals-panel .dp-title { color: #fff; font-size: 30px; font-weight: 300; letter-spacing: -.01em; line-height: 1.1; text-shadow: 0 2px 10px rgba(0,0,0,.4); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (min-width: 1024px) { .deals-panel .dp-title { font-size: 48px; } }

.deals-carousel { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; }
@media (min-width: 768px) { .deals-carousel { display: none; } }
.deals-carousel .dc-slide { position: relative; flex: 0 0 82%; aspect-ratio: 3/4; border-radius: 16px; overflow: hidden; scroll-snap-align: start; background: var(--c-accent-8); }
.deals-carousel .dc-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.deals-carousel .dc-slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.8), rgba(0,0,0,.1) 55%, transparent); }
.deals-carousel .dc-slide .dc-slide-content { position: absolute; left: 20px; right: 20px; bottom: 20px; z-index: 2; }
.deals-carousel .dc-slide .dc-slide-title { color: #fff; font-size: 24px; font-weight: 300; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.deals-carousel .dc-slide .dc-slide-price { display: inline-block; background: #fff; color: #000; padding: 6px 16px; border-radius: 999px; font-size: 12px; font-weight: 700; }

/* ---------- Çok Satanlar (rütbeli ürün ızgarası) ---------- */
.ranked-grid .ranked-item { position: relative; min-width: 0; max-width: 100%; }
.ranked-grid .ranked-item .p-rank {
  position: absolute; top: 10px; left: 10px; z-index: 3; width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,.92); color: var(--c-accent-1); font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 10px rgba(0,0,0,.15);
}
.ranked-grid .ranked-item .p-badge { left: 48px; }
