/* ===== havhavmiyav.com vitrini (header altı) =====
   Kaynak: havhavmiyav.com ana sayfa vitrini (hm-vitrin). Tüm kurallar .hm altında — site stilleriyle çakışmaz.
   Yükseklik sabit (masaüstü 320, tablet 276, mobil clamp); metin solda, görsel/animasyon sağda; mobilde görsel üstte.
   Yazı tipi olarak sitenin kendi başlık ailesi (--display) kullanılır; ek font yüklenmez. */
.hm { --head: var(--display); --hm-yellow: #FFD23F; --hm-yellow-d: #F2C230; --hm-ink: #121212; }
.hm .kap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.hm .kap.hm-vitrin { position: relative; margin-top: 14px; margin-bottom: 14px; }
.hm .hv-iz { position: relative; height: 384px; border-radius: 20px; overflow: hidden; touch-action: pan-y; }

.hm a.hv-slayt { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility 0s linear .5s; overflow: hidden; display: block; background: var(--hv-zemin, #132F78); color: var(--hv-yazi); text-decoration: none; }
.hm a.hv-slayt.aktif { opacity: 1; visibility: visible; transition: opacity .5s ease; z-index: 1; }
.hm .hv-yazi-acik { --hv-yazi: #fff; --hv-etiket: #FFD23F; }
.hm .hv-yazi-koyu { --hv-yazi: #121212; --hv-etiket: #C8102E; }

.hm .hv-gorsel { position: absolute; inset: 0; display: block; }
.hm .hv-gorsel img, .hm .hv-gorsel video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: right center; -webkit-user-drag: none; user-select: none; }
.hm .hv-video-tema video { left: auto; right: 0; width: min(42%, 510px); object-fit: cover; object-position: center; -webkit-mask-image: linear-gradient(90deg, transparent, #000 24%); mask-image: linear-gradient(90deg, transparent, #000 24%); }
.hm .hv-kutu-sahne { display: flex; align-items: center; justify-content: flex-end; padding-right: 7%; }

.hm .hv-metin { position: absolute; inset: 0; z-index: 1; width: min(58%, 640px); padding: 30px 0 34px 60px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.hm .hv-ust { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.hm .hv-logo { display: inline-flex; align-items: center; gap: 9px; background: #fff; border-radius: 999px; padding: 6px 14px 6px 12px; box-shadow: 0 2px 8px -4px rgba(0, 0, 0, .35); }
.hm .hv-logo img { display: block; height: 24px; width: auto; }
.hm .hv-logo b { font: 800 13px/1 var(--head); color: #132F78; white-space: nowrap; }
.hm .hv-metin small { font: 800 13px/1 var(--head); letter-spacing: .08em; text-transform: uppercase; color: var(--hv-etiket); }
.hm .hv-metin .hv-baslik { display: block; margin: 0; font: 800 38px/1.08 var(--head); color: var(--hv-yazi); max-width: 20ch; }
.hm .hv-alt { display: block; margin: 0; font-size: 17px; line-height: 1.4; color: var(--hv-yazi); opacity: .92; max-width: 38ch; }
.hm .hv-btn { margin-top: auto; min-height: 84px; padding: 0 52px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: var(--hm-yellow); color: var(--hm-ink); font: 800 28px/1.15 var(--head); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .55); transition: background .15s ease, transform .15s ease; }
.hm a.hv-slayt:hover .hv-btn { background: var(--hm-yellow-d); transform: translateY(-1px); }
.hm a.hv-slayt:focus-visible { outline: 3px solid #1F4FC8; outline-offset: -3px; }

.hm .hv-kontrol { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; z-index: 2; padding: 2px 10px; }
.hm .hv-dur { width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; display: grid; place-items: center; cursor: pointer; fill: #CCD2DD; padding: 0; }
.hm .hv-dur .i-oyna, .hm .durdu .hv-dur .i-dur { display: none; }
.hm .durdu .hv-dur .i-oyna { display: block; }
.hm .hv-cizgiler { display: flex; gap: 6px; }
.hm .hv-cubuk { position: relative; width: 36px; height: 32px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.hm .hv-cubuk::before, .hm .hv-cubuk i { content: ''; position: absolute; left: 0; right: 0; top: 14px; height: 4px; border-radius: 2px; }
.hm .hv-cubuk::before { background: #CBD2DD; }
.hm .hv-cubuk i { background: #1F4FC8; transform-origin: left center; transform: scaleX(0); }
.hm .hv-kontrol-koyu .hv-dur { fill: rgba(18, 18, 18, .55); }
.hm .hv-kontrol-koyu .hv-cubuk::before { background: rgba(18, 18, 18, .3); }
.hm .hv-kontrol-koyu .hv-cubuk i { background: #121212; }
.hm .hv-cubuk:focus-visible, .hm .hv-dur:focus-visible { outline: 2px solid #1F4FC8; outline-offset: 2px; border-radius: 4px; }

/* ----- Tek ürün slaytı (yılbaşı kutusu) ----- */
.hm .hv-slayt.hv-ikili { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility 0s linear .5s; overflow: hidden; background: var(--hv-zemin, #123A2C); color: #FFF8EC; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 32px; padding: 22px 9% 50px 60px; }
.hm .hv-slayt.hv-ikili.aktif { opacity: 1; visibility: visible; transition: opacity .5s ease; z-index: 1; }
.hm .hv-ikili p { margin: 0; }
.hm .hi-sol { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; position: relative; z-index: 1; }
.hm .hi-ust { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; }
.hm .hi-rozet { font: 800 11px/1 var(--head); letter-spacing: .1em; text-transform: uppercase; background: #C8102E; color: #fff; padding: 7px 12px; border-radius: 99px; }
.hm .hi-el { font: 800 26px/1 var(--head); font-style: italic; color: #F2C14E; transform: rotate(-3deg); transform-origin: left center; margin-top: 8px !important; }
.hm .hi-baslik { display: block; margin: 0; font: 800 40px/1.05 var(--head); letter-spacing: -.01em; color: #FFF8EC; }
.hm .hi-alt { font-size: 16px; line-height: 1.4; opacity: .92; max-width: 44ch; }
.hm .hi-satir { display: flex; align-items: center; gap: 22px; margin-top: 10px; }
.hm .hi-btn { display: inline-flex; align-items: center; min-height: 84px; padding: 0 52px; border-radius: 99px; background: var(--hm-yellow); color: #123A2C; font: 800 28px/1 var(--head); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .55); text-decoration: none; white-space: nowrap; transition: background .15s ease, transform .15s ease; }
.hm .hi-btn:hover { background: var(--hm-yellow-d); transform: translateY(-1px); }
.hm .hi-not { font-size: 14px; opacity: .9; }
.hm .hi-kartlar { display: flex; gap: 20px; height: 100%; position: relative; z-index: 1; }
.hm .hi-kart { display: flex; flex-direction: column; width: clamp(180px, 21vw, 270px); height: 100%; background: #fff; border-radius: 16px; padding: 10px 10px 0; text-decoration: none; color: #123A2C; transition: transform .2s ease; }
.hm .hi-kart:hover { transform: translateY(-3px); }
.hm .hi-resim { flex: 1 1 auto; min-height: 0; position: relative; display: block; }
.hm .hi-resim img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; -webkit-user-drag: none; user-select: none; }
.hm .hi-ad { flex: 0 0 auto; padding: 8px 4px 10px; text-align: center; font: 600 15px/1.2 var(--head); color: #4A5A52; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm .hi-ad b { color: #123A2C; font-weight: 800; }
.hm .hi-btn:focus-visible, .hm .hi-kart:focus-visible { outline: 3px solid #F2C14E; outline-offset: 3px; }
.hm .hi-yildiz { position: absolute; fill: #F2C14E; pointer-events: none; }
.hm .hi-y1 { width: 26px; height: 26px; left: 52%; top: 8%; }
.hm .hi-y2 { width: 16px; height: 16px; left: 47%; bottom: 12%; }
.hm .hi-y3 { width: 12px; height: 12px; right: 4%; top: 8%; opacity: .6; fill: #fff; }
@keyframes hi-pirilti { 0%, 100% { transform: scale(1) rotate(0); opacity: 1; } 50% { transform: scale(.55) rotate(20deg); opacity: .5; } }

/* ----- Aylık kutu animasyonu (partials/hm-kutu-anim.njk) ----- */
.hm .hv-kutu-sahne .hz-svg { display: block; height: 84%; width: auto; max-width: 40%; overflow: visible; will-change: transform; font-family: var(--head); }
/* Tema sırasındaki mağaza kartı (sections/index/themes.njk): aynı sahne, kare alanda */
.theme.theme--hm { display: block; color: inherit; text-decoration: none; }
/* Geniş ekranda dört kart yan yana sığar (kaydırma gerekmez); dar ekranda mevcut yatay kaydırma sürer */
@media (min-width: 1100px) { .theme-scroll--4 .theme { flex: 1 1 0; min-width: 0; } .theme-scroll--4 + .scroll-hint { display: none; } }
.hm .hz-kap { background: #132F78; }
.hm .hz-kap .hz-svg { display: block; width: 90%; height: auto; overflow: visible; will-change: transform; font-family: var(--head); }
.theme--hm .hv-btn { margin-top: .9rem; min-height: 50px; padding: 0 26px; font-size: 17px; }
.theme--hm:hover .hv-btn { background: var(--hm-yellow-d); }
.hm .hz-svg * { transform-box: fill-box; }
.hm .hz-svg { --t: 4s; }
@media (prefers-reduced-motion: no-preference) {
  .hm .hv-ikili.aktif .hi-yildiz { animation: hi-pirilti 2.4s ease-in-out infinite; }
  .hm .hv-ikili.aktif .hi-y2 { animation-delay: .8s; }
  .hm .hv-ikili.aktif .hi-y3 { animation-delay: 1.5s; }
  .hm .hz-svg:not(.hz-hazir) .hz-ic, .hm .hz-svg:not(.hz-hazir) .hz-hediye, .hm .hz-svg:not(.hz-hazir) .hz-yildiz, .hm .hz-svg:not(.hz-hazir) .hz-tik, .hm .hz-svg:not(.hz-hazir) .hz-gun-dolu { opacity: 0; }
  .hm .aktif .hz-hazir .hz-kutu { animation: hz-kutu var(--t) var(--g, 0s) infinite both; transform-origin: 50% 100%; }
  .hm .aktif .hz-hazir .hz-dus { animation: hz-dus var(--t) var(--g) infinite both; }
  .hm .aktif .hz-hazir .hz-oyuncak { animation: hz-oyuncak var(--t) var(--g) infinite both; transform-origin: 50% 100%; }
  .hm .aktif .hz-hazir .hz-hediye { animation: hz-etiket var(--t) infinite both; transform-origin: 50% 100%; }
  .hm .aktif .hz-hazir .hz-yildiz { animation: hz-parla var(--t) var(--g) infinite both; transform-origin: 50% 50%; }
  .hm .aktif .hz-hazir .hz-gun-dolu { animation: hz-gun var(--t) infinite both; transform-origin: 50% 50%; }
  .hm .aktif .hz-hazir .hz-tik { animation: hz-tik var(--t) infinite both; }
  .hm .aktif .hz-hazir .hz-ay { animation: hz-ay var(--t) infinite both; transform-origin: 50% 50%; }
  .hm .aktif .hz-hazir .hz-hiz { animation: hz-hiz var(--t) var(--g, 0s) infinite both; }
  .hm .durdu .hz-svg *, .hm .gorunmez .hz-svg * { animation-play-state: paused; }
}
/* Bir tur (ay): 0-8% boş kutu gelir, 10-24% ürünler düşer, 24-34% hediye oyuncak, 40-52% takvim işaretlenir ve kutu zıplar,
   70-80% dolu kutu sağa gider, 92-100% takvim yeni aya döner */
@keyframes hz-kutu { 0% { transform: translateY(46px) scale(.9); opacity: 0; } 7% { transform: none; opacity: 1; } 44%, 50%, 56% { transform: none; } 47% { transform: translateY(-12px); } 53% { transform: translateY(-5px); } 70% { transform: translateX(-10px); opacity: 1; animation-timing-function: cubic-bezier(.6, 0, .9, .5); } 80% { transform: translateX(520px) skewX(-14deg); opacity: 0; } 100% { transform: translateX(520px); opacity: 0; } }
@keyframes hz-dus { 0%, 9% { transform: translateY(-150px); opacity: 0; animation-timing-function: cubic-bezier(.55, 0, .9, .45); } 11% { opacity: 1; } 19% { transform: none; opacity: 1; } 21% { transform: scale(1.05, .92); } 24%, 86% { transform: none; opacity: 1; } 88%, 100% { transform: translateY(-150px); opacity: 0; } }
@keyframes hz-oyuncak { 0%, 23% { transform: translateY(30px) scale(.6); opacity: 0; } 29% { transform: translateY(-50px) scale(1); opacity: 1; animation-timing-function: cubic-bezier(.6, 0, .8, .4); } 35%, 86% { transform: none; opacity: 1; } 88%, 100% { transform: translateY(30px) scale(.6); opacity: 0; } }
@keyframes hz-etiket { 0%, 28% { transform: none; } 32% { transform: scale(1.12); } 36%, 100% { transform: none; } }
@keyframes hz-parla { 0%, 26% { transform: scale(0) rotate(0); opacity: 0; } 32% { transform: scale(1.3) rotate(45deg); opacity: 1; } 40%, 66% { transform: scale(1) rotate(90deg); opacity: 1; } 72%, 100% { transform: scale(0) rotate(120deg); opacity: 0; } }
@keyframes hz-gun { 0%, 38% { transform: scale(0); opacity: 0; } 43% { transform: scale(1.25); opacity: 1; } 47%, 90% { transform: none; opacity: 1; } 94%, 100% { transform: scale(0); opacity: 0; } }
@keyframes hz-tik { 0%, 43% { stroke-dashoffset: 16; opacity: 0; } 44% { opacity: 1; } 51%, 90% { stroke-dashoffset: 0; opacity: 1; } 94%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes hz-ay { 0% { transform: scaleY(0); opacity: 0; } 5%, 92% { transform: none; opacity: 1; } 97%, 100% { transform: scaleY(0); opacity: 0; } }
@keyframes hz-hiz { 0%, 70% { opacity: 0; transform: none; } 74% { opacity: .9; } 80% { opacity: 0; transform: translateX(380px); } 100% { opacity: 0; transform: translateX(380px); } }

/* ----- Responsive ----- */
@media (max-width: 1099px) {
  .hm .hv-slayt.hv-ikili { padding: 20px 28px 48px 36px; gap: 22px; }
  .hm .hi-baslik { font-size: 34px; }
  .hm .hi-not { display: none; }
}
@media (max-width: 989px) {
  .hm .hv-iz { height: 330px; }
  .hm .hv-btn, .hm .hi-btn { min-height: 68px; padding: 0 38px; font-size: 22px; }
  .hm .hv-logo b { font-size: 12px; }
  .hm .hv-metin { padding: 24px 0 42px 32px; width: 60%; }
  .hm .hv-metin .hv-baslik { font-size: 30px; }
  .hm .hv-alt { font-size: 15px; }
  .hm .hi-baslik { font-size: 28px; }
  .hm .hi-el { font-size: 22px; }
  .hm .hi-alt { display: none; }
  .hm .hi-kart { width: clamp(150px, 22vw, 200px); }
  .hm .hi-ad { font-size: 13px; }
}
@media (min-width: 750px) and (max-width: 989px) {
  .hm .hv-kontrol { left: auto; right: 16px; transform: none; }
}
/* Mobil: görsel üstte, yazı altında, buton en altta; kontroller sağ altta */
@media (max-width: 749px) {
  .hm .kap { padding: 0 16px; }
  .hm .kap.hm-vitrin { margin-top: 10px; margin-bottom: 10px; --hv-y: clamp(440px, 116vw, 480px); }
  .hm .hv-iz { border-radius: 16px; height: var(--hv-y); }
  .hm a.hv-slayt.hv-yazili { display: flex; flex-direction: column; }
  .hm .hv-yazili .hv-gorsel { position: relative; inset: auto; flex: 1 1 auto; min-height: 0; height: auto; }
  .hm .hv-yazili .hv-gorsel img, .hm .hv-yazili .hv-gorsel video { object-fit: cover; object-position: center; }
  .hm .hv-yazili .hv-metin { position: relative; inset: auto; flex: 0 0 auto; width: auto; padding: 12px 18px 18px; gap: 6px; }
  .hm .hv-yazili .hv-btn { margin-top: 8px; }
  .hm .hv-metin .hv-baslik { font-size: 24px; line-height: 1.12; max-width: none; }
  .hm .hv-alt { font-size: 15px; max-width: none; }
  .hm .hv-logo img { height: 19px; }
  .hm .hv-logo { padding: 5px 11px 5px 9px; gap: 7px; }
  .hm .hv-logo b { font-size: 11.5px; }
  .hm .hv-metin .hv-btn { min-height: 64px; padding: 0 clamp(20px, calc(20px + (100vw - 360px) * .2), 34px); font-size: clamp(19px, calc(19px + (100vw - 360px) / 15), 22px); max-width: calc(100% - var(--hv-n, 3) * 24px - 8px); }
  .hm .hv-video-tema video { width: 100%; object-position: center 12%; -webkit-mask-image: linear-gradient(0deg, transparent, #000 18%); mask-image: linear-gradient(0deg, transparent, #000 18%); }
  .hm .hv-kutu-sahne { justify-content: center; padding: 10px 0 0; position: relative; }
  .hm .hv-kutu-sahne .hz-svg { height: 100%; max-width: 92%; }
  .hm .hv-kontrol { right: 20px; bottom: 26px; left: auto; transform: none; padding: 0; display: grid; justify-items: end; gap: 0; }
  .hm .hv-dur { width: 24px; height: 24px; }
  .hm .hv-cizgiler { gap: 0; }
  .hm .hv-cubuk { width: 24px; height: 24px; }
  .hm .hv-cubuk::before, .hm .hv-cubuk i { left: 3px; right: 3px; top: 10px; }
  .hm .hv-slayt.hv-ikili { display: flex; flex-direction: column; align-items: stretch; gap: 10px; padding: 16px 16px 17px; }
  .hm .hi-sol { display: contents; }
  .hm .hi-rozet { font-size: 10px; padding: 5px 9px; }
  .hm .hi-el { font-size: 20px; margin-top: 2px !important; }
  .hm .hi-baslik { font-size: 26px; margin-top: -2px; }
  .hm .hi-kartlar { order: 5; flex: 1 1 auto; min-height: 0; height: auto; justify-content: center; }
  .hm .hi-kart { flex: 0 1 240px; min-width: 0; width: auto; border-radius: 12px; padding: 6px 6px 0; }
  .hm .hi-ad { padding: 6px 2px 8px; font-size: 13px; }
  .hm .hi-satir { order: 6; margin-top: 0; }
  .hm .hi-btn { min-height: 64px; padding: 0 clamp(20px, calc(20px + (100vw - 360px) * .2), 34px); font-size: clamp(19px, calc(19px + (100vw - 360px) / 15), 22px); }
  .hm .hi-y1 { left: auto; right: 18px; top: 16px; width: 20px; height: 20px; }
  .hm .hi-y2 { display: none; }
  .hm .hi-y3 { right: 48px; top: 40px; }
}
@media (prefers-reduced-motion: reduce) { .hm a.hv-slayt, .hm .hv-slayt.hv-ikili { transition: none; } }
