/* Ana sayfa tema bolumu (Halloween). Uretici: builder/tema_bolumu.py */
.hw { container-type: inline-size; position: relative; margin-top: 30px; border-radius: 10px; overflow: hidden; background: #0d0d0d; color: #ead9b6; font-family: 'Cormorant Garamond', Georgia, serif;
  box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.hw h2, .hw .cz { font-family: 'Cinzel', Georgia, serif; }
/* sahne yuksekligi eski halinin %80'i (2.4:1 -> 3:1); gorsel ortadan kirpilir, raf gorunur kalir */
.hw-sahne { position: relative; aspect-ratio: 3 / 1; min-height: 320px; }
/* fon siyah-beyaz: gorsel ayri katmanda, sadece o gri yapilir; yazilar ve kartlar etkilenmez */
.hw-sahne::before { content: ""; position: absolute; inset: 0; background: url("/assets/tema/halloween/background.webp") center 62% / cover no-repeat; filter: grayscale(1) contrast(1.05); }
.hw-dugme { position: absolute; left: 26px; bottom: 16px; z-index: 4; }
.hw-sahne::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 26%; background: linear-gradient(0deg, #0d0d0d, rgba(13,13,13,0)); pointer-events: none; }
.hw-yazi { position: absolute; left: 4.5%; top: 6%; width: 47%; text-align: center; color: #2a170b; z-index: 2; }
.hw-plaka { display: inline-block; font-family: 'Cinzel', serif; font-weight: 700; letter-spacing: 3px; font-size: clamp(11px, .78cqi, 14px); padding: 7px 22px; margin-bottom: 10px;
  border-top: 1px solid rgba(60,34,14,.7); border-bottom: 1px solid rgba(60,34,14,.7); color: #3a2212; }
.hw-yazi h2 { margin: 0; font-family: 'Cinzel Decorative', 'Cinzel', serif; font-size: clamp(34px, 4.2cqi, 78px); line-height: .95; font-weight: 700; color: #1d0f06;
  text-shadow: 0 1px 0 rgba(255,236,200,.5); }
.hw-slogan { font-size: clamp(17px, 1.35cqi, 25px); font-style: italic; margin: 8px 0 2px; color: #3d2413; }
.hw-ayrac { display: block; width: 62%; height: auto; margin: 4px auto 8px; filter: brightness(.55) sepia(.6); }
.hw-yazi p.metin { font-size: clamp(15px, 1.08cqi, 20px); line-height: 1.45; margin: 0 auto 18px; max-width: 520px; color: #2a170b; }
.hw-btn { display: inline-flex; align-items: center; gap: 10px; font-family: 'Cinzel', serif; font-weight: 700; font-size: clamp(13px, .88cqi, 16px); letter-spacing: 1.2px; text-transform: uppercase;
  color: #f1dcae; background: linear-gradient(180deg, #3a2213, #1b0f07); border: 1px solid #b88a4f; box-shadow: 0 0 0 4px rgba(27,15,7,.85), 0 0 0 5px rgba(184,138,79,.6), 0 8px 18px rgba(0,0,0,.35);
  padding: 12px 28px; border-radius: 2px; text-decoration: none; transition: box-shadow .3s; }
.hw-btn:hover { box-shadow: 0 0 0 4px rgba(27,15,7,.85), 0 0 0 5px rgba(222,170,100,.95), 0 0 26px rgba(255,170,80,.45); color: #fff0cf; }
/* orumcek HALLOWEEN'in ilk A harfinin ortasindan sarkar, A'nin bacaklari arasina iner (olculer sahne genisligine gore olceklenir) */
.hw-orumcek { position: absolute; left: calc(18.96% - 1.25cqi); top: 0; width: 2.5cqi; z-index: 3; transform-origin: 50% 0; animation: hw-sallan 4s ease-in-out infinite; }
.hw-orumcek::before { content: ""; display: block; width: 1px; height: 7.2cqi; margin: 0 auto; background: linear-gradient(#2a2a2a, #555); }
.hw-orumcek img { display: block; width: 100%; margin-top: -6px; }
.hw-isik { position: absolute; left: 75.5%; top: 2%; width: 13%; aspect-ratio: 1; border-radius: 50%; z-index: 1; pointer-events: none;
  background: radial-gradient(circle, rgba(255,255,255,.32), rgba(255,255,255,.08) 45%, transparent 70%); mix-blend-mode: screen; animation: hw-titre 2.2s ease-in-out infinite; }
.hw-grid-alan { position: relative; padding: 6px 26px 18px; }
.hw .grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.hw .card { position: relative; aspect-ratio: 600 / 900; background: url("/assets/tema/halloween/card-frame.webp") center / 100% 100% no-repeat; border: 0; border-radius: 0; box-shadow: 0 14px 28px rgba(0,0,0,.55);
  display: flex; flex-direction: column; overflow: visible; }
/* cercevenin ic penceresi (600x900 uzerinde x 20-581, y 20-626) tamamen siyahla dolar, arkadaki kahve fon gorunmez */
.hw .card-media { position: absolute; left: 3.3%; top: 2.2%; width: 93.5%; height: 67.4%; overflow: hidden; background: #000; }
.hw .card-media img { width: 100%; height: 100%; object-fit: cover; background: #000; filter: sepia(.2) contrast(1.05); transition: transform .5s, filter .5s; }
.hw .card-media::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 45%, transparent 55%, rgba(0,0,0,.55)); }
.hw .card:hover .card-media img { transform: scale(1.05); filter: sepia(.05) contrast(1.08) brightness(1.06); }
/* cercevedeki olculer: parsomen %69.8'de basliyor, sus cizgisi %82.4-83.3 arasi.
   Model adi + kategori cizginin ustunde, fiyat + Buy cizginin altinda. */
.hw .card-body { position: absolute; left: 8%; right: 8%; top: 70.6%; bottom: 3.8%; display: block; text-align: center; padding: 0; }
.hw .card-title { height: 2.4em; display: flex !important; align-items: center; justify-content: center; }
.hw .card-meta { position: absolute; left: 0; right: 0; bottom: 0; height: 34%; }
.hw .card-body .card-cat { position: absolute; left: 0; right: 0; top: 53%; margin: 0; }
.hw .card-title { height: auto; max-height: 2.4em; margin-top: 3%; }
.hw .card-title.uzun { font-size: clamp(9px, 4.4cqi, 12.5px); }
/* kart yazilari kart genisligine gore olceklenir (6'li dizilimde kucuk kartlar icin) */
.hw .card { container-type: inline-size; }
.hw .card-title { font-family: 'Cinzel', serif; font-weight: 700; font-size: clamp(10px, 5.4cqi, 15px); line-height: 1.2; color: #1d0f06; overflow: hidden; }
.hw .card-cat { display: block; font-size: clamp(8px, 3.9cqi, 11px); letter-spacing: .15em; text-transform: uppercase; color: #6a4a2c; margin: 1px auto 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.hw .card-meta { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.hw .card-price { font-family: 'Cinzel', serif; font-weight: 700; font-size: clamp(11px, 7.2cqi, 18px); color: #1d0f06; }
.hw .card-buy { font-family: 'Cinzel', serif; font-weight: 700; font-size: clamp(9px, 5.4cqi, 14px); min-height: 0; color: #f1dcae; background: linear-gradient(180deg, #3a2213, #1b0f07);
  border: 1px solid #b88a4f; border-radius: 2px; padding: .35em .8em; gap: .35em; }
.hw .card-buy svg { width: 1em; height: 1em; }
.hw-kabak { position: absolute; width: 150px; bottom: -78px; z-index: 3; pointer-events: none; filter: drop-shadow(0 6px 10px rgba(0,0,0,.6)); }
.hw-kabak.sol { left: -12px; } .hw-kabak.sag { right: -10px; transform: scaleX(-1); width: 120px; }
.hw-alt { position: relative; padding: 4px 26px 18px; }
.hw-alt img { display: block; width: 100%; height: auto; opacity: .85; }
.hw-alt .satir { display: flex; justify-content: space-between; margin-top: -6px; font-family: 'Cinzel', serif; letter-spacing: 4px; font-size: 12px; text-transform: uppercase; color: rgba(214,186,138,.8); }
@keyframes hw-sallan { 0%,100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg) translateY(6px); } }
@keyframes hw-titre { 0%,100% { opacity: .85; transform: scale(1); } 30% { opacity: 1; transform: scale(1.06); } 65% { opacity: .7; transform: scale(.97); } }
/* Discover dugmesi: alttaki ilk kartla ayni genislikte ve ayni hizada (grid: 26px kenar boslugu, 16px aralik) */
.hw-dugme { width: calc((100% - 52px - 5 * 16px) / 6); }
.hw-dugme .hw-btn { box-sizing: border-box; width: 100%; justify-content: center; padding: 12px 8px; font-size: clamp(11px, .8cqi, 15px); white-space: nowrap;
  box-shadow: inset 0 0 0 3px rgba(27,15,7,.85), inset 0 0 0 4px rgba(184,138,79,.6), 0 8px 18px rgba(0,0,0,.45); }
.hw-dugme .hw-btn:hover { box-shadow: inset 0 0 0 3px rgba(27,15,7,.85), inset 0 0 0 4px rgba(222,170,100,.95), 0 0 26px rgba(255,170,80,.45); }
/* hareketli hayalet: suzulur, goz kirpar, el sallar, "Boo!" balonu acilip kapanir */
/* hayalet sahnenin icinde dolasir (26 sn'lik tur); yon degistirince doner, bu arada suzulur.
   Renk soluk: govde yari saydam kirli beyaz. */
.hw-hayalet { position: absolute; left: 52.5%; top: 16%; width: clamp(68px, 5.5cqi, 110px); z-index: 5; cursor: pointer; display: block;
  animation: hw-uc 26s ease-in-out infinite; }
.hw-hayalet:hover { animation-play-state: paused; } .hw-hayalet:hover .hw-yon { opacity: .95; }
.hw-yon { display: block; opacity: .78; animation: hw-don 26s step-end infinite; }
.hw-hayalet svg { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 10px 14px rgba(0,0,0,.3)); animation: hw-suz 3.4s ease-in-out infinite; }
.hw-hayalet .g-body { fill: #ecebe8; fill-opacity: .82; stroke: #d6d4cf; stroke-width: 2; }
@keyframes hw-uc {
  0%   { left: 52.5%; top: 16%; }
  14%  { left: 70%; top: 14%; }
  28%  { left: 86%; top: 38%; }
  42%  { left: 66%; top: 58%; }
  57%  { left: 38%; top: 54%; }
  72%  { left: 8%; top: 40%; }
  86%  { left: 26%; top: 14%; }
  100% { left: 52.5%; top: 16%; } }
@keyframes hw-don { 0% { transform: scaleX(1); } 28% { transform: scaleX(-1); } 72% { transform: scaleX(1); } }
.hw-hayalet .g-eyes ellipse { fill: #1b1410; transform-origin: center 58px; animation: hw-kirp 4.6s infinite; }
.hw-hayalet .g-glint { fill: #fff; } .hw-hayalet .g-blush { fill: #d9d9d9; opacity: .8; }
.hw-hayalet .g-mouth { stroke: #1b1410; stroke-width: 3; fill: none; stroke-linecap: round; }
.hw-hayalet .g-arm { stroke: #fff; stroke-width: 12; stroke-linecap: round; fill: none; transform-origin: 104px 70px; animation: hw-salla 1.6s ease-in-out infinite; }
.hw-hayalet .g-shadow { fill: rgba(0,0,0,.3); transform-origin: 60px 134px; animation: hw-golge 3.4s ease-in-out infinite; }
.hw-balon { position: absolute; left: 50%; bottom: 100%; margin-left: -85px; margin-bottom: 4px; transform-origin: 50% 100%; width: 170px; background: #1b1410; color: #f1dcae; border: 1px solid #b88a4f; border-radius: 14px; padding: 10px 12px;
  font-family: 'Cormorant Garamond', Georgia, serif; font-size: 16px; line-height: 1.3; animation: hw-balon 6s ease-in-out infinite; }
.hw-balon b { font-family: 'Cinzel', serif; color: #fff; }
@keyframes hw-suz { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@keyframes hw-golge { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.75); opacity: .5; } }
@keyframes hw-kirp { 0%,92%,100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
@keyframes hw-salla { 0%,100% { transform: rotate(0); } 50% { transform: rotate(-28deg); } }
@keyframes hw-balon { 0%,8% { transform: scale(0); opacity: 0; } 14%,70% { transform: scale(1); opacity: 1; } 78%,100% { transform: scale(0); opacity: 0; } }
@media (max-width: 1400px) { .hw .grid { grid-template-columns: repeat(4, 1fr); } .hw-dugme { width: calc((100% - 52px - 3 * 16px) / 4); } }
@media (max-width: 1100px) { .hw .grid { grid-template-columns: repeat(3, 1fr); } .hw-dugme { width: calc((100% - 52px - 2 * 16px) / 3); } .hw-balon { display: none; } }
@media (max-width: 860px) { .hw-sahne { aspect-ratio: auto; min-height: 0; padding: 24px 16px 60px; background-position: 70% center; }
  .hw-yazi { position: relative; left: auto; top: auto; width: 100%; background: rgba(234,217,182,.92); padding: 22px 16px; border-radius: 4px; }
  .hw .grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } .hw-orumcek, .hw-isik, .hw-hayalet { display: none; }
  .hw-kabak { width: 90px; }
  /* telefonda: dugme iki kart genisliginde, kartlar biraz daha genis, kart yazilari kucuk ve kategori gizli */
  .hw-grid-alan { padding: 6px 12px 18px; } .hw .grid { gap: 10px; }
  .hw-dugme { left: 12px; width: calc(100% - 24px); }
  .hw .card-title { font-size: clamp(8.5px, 6cqi, 12px); } .hw .card-title.uzun { font-size: clamp(7.5px, 5cqi, 10.5px); }
  .hw .card-body .card-cat { display: none; }
  .hw .card-meta { height: 38%; bottom: 4%; }
  .hw .card-price { font-size: clamp(9px, 7cqi, 13px); } .hw .card-buy { font-size: clamp(8px, 5.6cqi, 11px); padding: .3em .6em; } }
