/* Anons penceresi (an-) — vitrin anasayfası + panel önizlemesi aynı dosyayı kullanır (durum.md 7.12).
   Tailwind'e bağlı değildir. Tema renkleri .an-t-<tema> üzerindeki değişkenlerle verilir. */
html.an-kilit, html.an-kilit body { overflow: hidden; }
.an {
    --a1: #60a5fa; --a2: #2563eb; --a3: #1e3a8a; --vurgu: #fde68a; --parca1: #fff; --parca2: #bfdbfe; --parca3: #fde68a;
    position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; color: #0f172a;
    -webkit-font-smoothing: antialiased;
}
.an *, .an *::before, .an *::after { box-sizing: border-box; }
.an svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.an-perde { position: absolute; inset: 0; background: rgba(2, 6, 23, .6); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); opacity: 0; transition: opacity .25s; }
.an-kutu {
    position: relative; display: flex; flex-direction: column; width: min(560px, 100%);
    max-height: min(90vh, 760px); max-height: min(90dvh, 760px); overflow: hidden;
    border-radius: 28px; background: #fff; outline: none;
    box-shadow: 0 40px 80px -24px rgba(2, 6, 23, .6), 0 0 0 1px rgba(255, 255, 255, .08);
    opacity: 0; transform: translateY(22px) scale(.96); transition: opacity .25s, transform .35s cubic-bezier(.2, .9, .25, 1.15);
}
.an.acik .an-perde { opacity: 1; }
.an.acik .an-kutu { opacity: 1; transform: none; }

/* Kapat */
.an-x {
    position: absolute; top: 12px; right: 12px; z-index: 5; display: grid; place-items: center; width: 38px; height: 38px;
    border: 1px solid rgba(255, 255, 255, .35); border-radius: 13px; background: rgba(255, 255, 255, .18); color: #fff;
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); cursor: pointer; transition: background .15s, transform .15s;
}
.an-x:hover { background: rgba(255, 255, 255, .32); transform: rotate(90deg); }
.an-x:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.an-x svg { width: 19px; height: 19px; stroke-width: 2.4; }

/* Sahne: temalı üst alan */
.an-sahne {
    position: relative; flex: none; overflow: hidden; color: #fff;
    background:
        radial-gradient(120% 90% at 85% -10%, rgba(255, 255, 255, .28), transparent 55%),
        radial-gradient(90% 120% at 0% 110%, var(--a3) 0%, transparent 60%),
        linear-gradient(140deg, var(--a1) 0%, var(--a2) 48%, var(--a3) 100%);
}
.an-sahne::before {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .22;
    background-image: radial-gradient(rgba(255, 255, 255, .55) 1px, transparent 1.4px); background-size: 16px 16px;
    -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); mask-image: linear-gradient(180deg, #000, transparent 85%);
}
.an-sahne::after { content: ""; position: absolute; right: -70px; bottom: -90px; width: 240px; height: 240px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .22); box-shadow: 0 0 0 26px rgba(255, 255, 255, .05), 0 0 0 58px rgba(255, 255, 255, .035); pointer-events: none; }
.an-sahne-ic { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 22px 22px 26px; }
.an-rozet {
    align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 9px; border-radius: 999px;
    background: rgba(255, 255, 255, .95); color: var(--a3); font-size: 11px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase;
    box-shadow: 0 8px 18px -10px rgba(2, 6, 23, .6);
}
.an-rozet svg { width: 15px; height: 15px; stroke-width: 2.3; color: var(--a2); }

/* Büyük simge */
.an-ikon {
    position: relative; display: grid; place-items: center; width: 96px; height: 96px; margin: 2px 0 4px; border-radius: 30px;
    background: linear-gradient(150deg, rgba(255, 255, 255, .34), rgba(255, 255, 255, .1));
    border: 1px solid rgba(255, 255, 255, .45); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 18px 34px -16px rgba(2, 6, 23, .7);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    animation: an-suz 3.4s ease-in-out infinite;
}
.an-ikon svg { position: relative; z-index: 1; width: 48px; height: 48px; stroke-width: 1.7; filter: drop-shadow(0 3px 6px rgba(2, 6, 23, .3)); }
.an-halka { position: absolute; inset: -2px; border-radius: inherit; border: 2px solid rgba(255, 255, 255, .7); animation: an-halka 2.2s ease-out infinite; }
.an-halka.h2 { animation-delay: 1.1s; }
.an-ikon-dalga svg { animation: an-cal 2.2s ease-in-out infinite; transform-origin: 50% 50%; }
.an-ikon-nabiz svg { animation: an-atis 1.6s ease-in-out infinite; }
.an-t-bakim .an-ikon svg { animation: an-anahtar 2.8s ease-in-out infinite; transform-origin: 30% 70%; }
.an-t-hediye .an-ikon svg { animation: an-zipla 2.2s cubic-bezier(.3, 1.6, .5, 1) infinite; }
.an-t-sinirli .an-ikon svg { animation: an-kum 3.2s ease-in-out infinite; }

/* KAPALIYIZ tabelası */
.an-tabela {
    position: relative; margin-top: -4px; padding: 7px 16px; border-radius: 10px; background: #fff; color: var(--vurgu);
    font-size: 13px; font-weight: 950; letter-spacing: .22em; box-shadow: 0 10px 20px -10px rgba(2, 6, 23, .7);
    transform-origin: 50% -16px; animation: an-salin 3.6s ease-in-out infinite;
}
.an-tabela::before, .an-tabela::after { content: ""; position: absolute; top: -15px; width: 2px; height: 16px; background: rgba(255, 255, 255, .75); }
.an-tabela::before { left: 24%; transform: rotate(18deg); }
.an-tabela::after { right: 24%; transform: rotate(-18deg); }

/* Bakım şeridi */
.an-serit { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; height: 14px; background: repeating-linear-gradient(-45deg, #facc15 0 14px, #111827 14px 28px); background-size: 40px 14px; animation: an-serit 1.6s linear infinite; opacity: .95; }

/* Ürün kartları (kampanya) */
.an-urunler { display: grid; gap: 12px; width: 100%; }
.an-urunler.n1 { grid-template-columns: minmax(0, 260px); justify-content: center; }
.an-urunler.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 420px; }
.an-urunler.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.an-urun {
    position: relative; display: flex; flex-direction: column; min-width: 0; padding: 10px 10px 12px; border-radius: 18px;
    background: #fff; color: #0f172a; text-decoration: none; box-shadow: 0 16px 30px -18px rgba(2, 6, 23, .75), inset 0 0 0 1px rgba(15, 23, 42, .06);
    transition: transform .22s, box-shadow .22s; animation: an-kart-gel .5s cubic-bezier(.2, .9, .25, 1.2) both;
}
.an-urun:nth-child(2) { animation-delay: .08s; }
.an-urun:nth-child(3) { animation-delay: .16s; }
.an-urun:hover { transform: translateY(-4px) rotate(-.6deg); box-shadow: 0 22px 36px -18px rgba(2, 6, 23, .8), inset 0 0 0 2px var(--a2); }
.an-urun:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.an-urun-gorsel { position: relative; display: block; height: 118px; margin-bottom: 8px; border-radius: 12px; background: #f8fafc; overflow: hidden; }
.an-urunler.n1 .an-urun-gorsel { height: 160px; }
.an-urun-gorsel img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; padding: 6px; object-fit: contain; background: #fff; }
.an-gorsel-yok { position: absolute; inset: 0; display: grid; place-items: center; color: #cbd5e1; }
.an-gorsel-yok svg { width: 34px; height: 34px; stroke-width: 1.5; }
.an-urun-marka { color: var(--a2); font-size: 10px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.an-urun-ad { margin-top: 2px; font-size: 12.5px; font-weight: 750; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.an-urun-koli { align-self: flex-start; margin-top: 7px; padding: 3px 8px; border-radius: 999px; background: #fef2f2; color: #b91c1c; font-size: 10.5px; font-weight: 850; white-space: nowrap; }
.an-urun-git { display: inline-flex; align-items: center; gap: 4px; margin-top: auto; padding-top: 8px; color: #475569; font-size: 11px; font-weight: 800; }
.an-urun-git svg { width: 13px; height: 13px; transition: transform .2s; }
.an-urun:hover .an-urun-git { color: var(--a2); }
.an-urun:hover .an-urun-git svg { transform: translateX(3px); }

/* Gövde */
.an-govde { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 22px 26px 8px; text-align: center; }
.an-baslik { margin: 0; color: #0f172a; font-size: 26px; font-weight: 900; line-height: 1.15; letter-spacing: -.02em; overflow-wrap: anywhere; }
.an-mesaj { margin: 10px 0 0; color: #475569; font-size: 15.5px; font-weight: 500; line-height: 1.6; white-space: pre-line; overflow-wrap: anywhere; }

/* Alt çubuk */
.an-alt { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px 18px; padding-bottom: max(18px, env(safe-area-inset-bottom)); }
.an-adimlar { display: flex; align-items: center; gap: 6px; min-width: 0; }
.an-sayac { margin-right: 4px; color: #64748b; font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; }
.an-nokta { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: #cbd5e1; cursor: pointer; transition: width .25s, background .25s; }
.an-nokta.aktif { width: 22px; background: var(--a2); }
.an-ipucu { color: #94a3b8; font-size: 12px; font-weight: 650; }
.an-dugmeler { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.an-birincil, .an-ikincil {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; padding: 0 22px; border-radius: 14px;
    font: inherit; font-size: 14.5px; font-weight: 850; cursor: pointer; transition: transform .15s, filter .15s, background .15s;
}
.an-birincil { border: 0; color: #fff; background: linear-gradient(180deg, var(--a2), var(--a3)); box-shadow: 0 12px 22px -12px var(--a3), inset 0 1px 0 rgba(255, 255, 255, .25); }
.an-birincil:hover { transform: translateY(-1px); filter: brightness(1.08); }
.an-birincil svg { width: 17px; height: 17px; }
.an-ikincil { border: 1px solid #e2e8f0; background: #fff; color: #334155; }
.an-ikincil:hover { background: #f8fafc; }
.an-ikincil svg { width: 18px; height: 18px; }
.an-birincil:focus-visible, .an-ikincil:focus-visible, .an-nokta:focus-visible { outline: 3px solid color-mix(in srgb, var(--a2) 45%, transparent); outline-offset: 2px; }

/* Parçacık efektleri */
.an-parcalar { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.an-p { position: absolute; display: block; width: var(--b); height: var(--b); animation-delay: var(--g); animation-duration: var(--s); animation-iteration-count: infinite; }
.an-p.r0 { color: var(--parca1); } .an-p.r1 { color: var(--parca2); } .an-p.r2 { color: var(--parca3); } .an-p.r3 { color: var(--vurgu); }
.an-p-konfeti { top: -14px; height: calc(var(--b) * .45); border-radius: 2px; background: currentColor; animation-name: an-dus; animation-timing-function: linear; }
.an-p-konfeti.r1, .an-p-konfeti.r3 { height: var(--b); border-radius: 50%; }
.an-p-yildiz, .an-p-isilti { background: currentColor; clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); opacity: 0; animation-name: an-pirilti; animation-timing-function: ease-in-out; }
.an-p-kalp { bottom: -18px; background: currentColor; opacity: 0; animation-name: an-yuksel; animation-timing-function: ease-out;
    clip-path: path('M7 12.5 1.5 7.2A3.4 3.4 0 0 1 7 2.6a3.4 3.4 0 0 1 5.5 4.6Z'); width: 14px; height: 13px; }
.an-t-indirim .an-sahne-ic::before, .an-t-hediye .an-sahne-ic::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .28) 50%, transparent 65%); background-size: 260% 100%;
    animation: an-parilti 3.8s ease-in-out infinite;
}

/* ---- Temalar ---- */
/* Duyuru */
.an-t-kutlama { --a1: #7c3aed; --a2: #5b21b6; --a3: #1e1b4b; --vurgu: #fbbf24; --parca1: #fbbf24; --parca2: #f472b6; --parca3: #38bdf8; }
.an-t-kutlama .an-sahne { background: radial-gradient(80% 70% at 50% 0%, rgba(251, 191, 36, .45), transparent 60%), radial-gradient(60% 80% at 100% 100%, rgba(236, 72, 153, .35), transparent 60%), linear-gradient(160deg, #6d28d9 0%, #3b0764 55%, #1e1b4b 100%); }
.an-t-kutlama .an-ikon { color: #fde68a; }
.an-t-bayram { --a1: #10b981; --a2: #047857; --a3: #064e3b; --vurgu: #fcd34d; --parca1: #fde68a; --parca2: #fff; --parca3: #fcd34d; }
.an-t-bayram .an-sahne { background: radial-gradient(70% 70% at 80% 0%, rgba(252, 211, 77, .4), transparent 60%), linear-gradient(160deg, #059669 0%, #065f46 50%, #022c22 100%); }
.an-t-bayram .an-ikon { color: #fde68a; }
.an-t-kapali { --a1: #475569; --a2: #334155; --a3: #0f172a; --vurgu: #ea580c; }
.an-t-kapali .an-sahne { background: radial-gradient(60% 60% at 15% 0%, rgba(249, 115, 22, .35), transparent 60%), linear-gradient(160deg, #475569 0%, #1e293b 55%, #020617 100%); }
.an-t-bilgi { --a1: #3b82f6; --a2: #1d4ed8; --a3: #1e3a8a; }
.an-t-tesekkur { --a1: #fb7185; --a2: #e11d48; --a3: #881337; --vurgu: #fecdd3; --parca1: #fff; --parca2: #fecdd3; --parca3: #fda4af; }
/* Kampanya */
.an-t-hediye { --a1: #ef4444; --a2: #d30f0f; --a3: #7f1d1d; --vurgu: #fbbf24; --parca1: #fde68a; --parca2: #fff; --parca3: #fbbf24; }
.an-t-hediye .an-sahne { background: radial-gradient(70% 60% at 50% 0%, rgba(251, 191, 36, .38), transparent 60%), linear-gradient(160deg, #ef4444 0%, #d30f0f 45%, #7f1d1d 100%); }
.an-t-indirim { --a1: #fb923c; --a2: #ea580c; --a3: #9a3412; --vurgu: #fff7ed; --parca1: #fff; --parca2: #fed7aa; --parca3: #fde68a; }
.an-t-indirim .an-sahne { background: radial-gradient(70% 70% at 90% 0%, rgba(255, 255, 255, .3), transparent 55%), linear-gradient(150deg, #fb923c 0%, #ea580c 45%, #d30f0f 100%); }
.an-t-yeni_urun { --a1: #c084fc; --a2: #9333ea; --a3: #581c87; --vurgu: #67e8f9; --parca1: #fff; --parca2: #67e8f9; --parca3: #f0abfc; }
.an-t-yeni_urun .an-sahne { background: radial-gradient(60% 60% at 10% 0%, rgba(103, 232, 249, .35), transparent 60%), linear-gradient(155deg, #a855f7 0%, #7e22ce 50%, #3b0764 100%); }
.an-t-sinirli { --a1: #fbbf24; --a2: #d97706; --a3: #78350f; --vurgu: #fef3c7; }
.an-t-sinirli .an-sahne { background: radial-gradient(70% 70% at 85% 0%, rgba(254, 243, 199, .45), transparent 55%), linear-gradient(155deg, #f59e0b 0%, #b45309 55%, #451a03 100%); }
/* Sistem */
.an-t-bakim { --a1: #374151; --a2: #1f2937; --a3: #030712; --vurgu: #facc15; }
.an-t-bakim .an-sahne { background: radial-gradient(70% 70% at 80% 0%, rgba(250, 204, 21, .32), transparent 55%), linear-gradient(160deg, #374151 0%, #111827 60%, #030712 100%); }
.an-t-bakim .an-sahne-ic { padding-bottom: 34px; }
.an-t-bakim .an-ikon { color: #facc15; }
.an-t-bakim .an-rozet svg { color: #ca8a04; }
.an-t-iletisim { --a1: #2dd4bf; --a2: #0d9488; --a3: #134e4a; }
.an-t-uyari { --a1: #f87171; --a2: #dc2626; --a3: #7f1d1d; }
.an-t-uyari .an-sahne { background: radial-gradient(60% 60% at 50% 0%, rgba(254, 202, 202, .35), transparent 60%), linear-gradient(160deg, #ef4444 0%, #b91c1c 50%, #450a0a 100%); }
.an-t-sistem_bilgi { --a1: #64748b; --a2: #475569; --a3: #1e293b; }

/* Kampanyada ürün kartları sahnede; simge küçük rozet olarak */
.an-k-kampanya .an-sahne-ic { padding-top: 20px; }

/* ---- Animasyonlar ---- */
@keyframes an-suz { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes an-halka { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.55); opacity: 0; } }
@keyframes an-cal { 0%, 55%, 100% { transform: rotate(0); } 60%, 70%, 80% { transform: rotate(-14deg); } 65%, 75%, 85% { transform: rotate(14deg); } }
@keyframes an-atis { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }
@keyframes an-anahtar { 0%, 60%, 100% { transform: rotate(0); } 70% { transform: rotate(-22deg); } 82% { transform: rotate(10deg); } }
@keyframes an-zipla { 0%, 60%, 100% { transform: translateY(0) rotate(0); } 70% { transform: translateY(-9px) rotate(-6deg); } 80% { transform: translateY(0) rotate(4deg); } }
@keyframes an-kum { 0%, 40% { transform: rotate(0); } 50%, 90% { transform: rotate(180deg); } 100% { transform: rotate(180deg); } }
@keyframes an-salin { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
@keyframes an-serit { to { background-position: 40px 0; } }
@keyframes an-dus { 0% { transform: translate3d(0, -20px, 0) rotate(0); opacity: 1; } 100% { transform: translate3d(28px, 340px, 0) rotate(560deg); opacity: .9; } }
@keyframes an-pirilti { 0%, 100% { transform: scale(.2) rotate(0); opacity: 0; } 50% { transform: scale(1) rotate(45deg); opacity: .95; } }
@keyframes an-yuksel { 0% { transform: translateY(0) scale(.6); opacity: 0; } 15% { opacity: .9; } 100% { transform: translateY(-230px) scale(1.15); opacity: 0; } }
@keyframes an-parilti { 0% { background-position: 130% 0; } 60%, 100% { background-position: -130% 0; } }
@keyframes an-kart-gel { from { opacity: 0; transform: translateY(14px) scale(.94); } to { opacity: 1; transform: none; } }

/* ---- Telefon: alttan açılan sayfa ---- */
@media (max-width: 640px) {
    .an { padding: 0; align-items: end; }
    .an-kutu { width: 100%; max-height: 94vh; max-height: 94dvh; border-radius: 26px 26px 0 0; transform: translateY(40px); }
    .an-kutu::before { content: ""; position: absolute; top: 7px; left: 50%; z-index: 6; width: 42px; height: 4px; margin-left: -21px; border-radius: 999px; background: rgba(255, 255, 255, .55); }
    .an-x { top: 14px; right: 12px; width: 36px; height: 36px; }
    .an-sahne-ic { gap: 12px; padding: 22px 14px 20px; }
    .an-ikon { width: 78px; height: 78px; border-radius: 24px; }
    .an-ikon svg { width: 40px; height: 40px; }
    .an-urunler { gap: 8px; }
    .an-urunler.n1 { grid-template-columns: minmax(0, 220px); }
    .an-urun { padding: 7px 7px 9px; border-radius: 14px; }
    .an-urun-gorsel { height: 84px; margin-bottom: 6px; }
    .an-urunler.n1 .an-urun-gorsel { height: 130px; }
    .an-urunler.n2 .an-urun-gorsel { height: 104px; }
    .an-urun-ad { font-size: 11.5px; }
    .an-urunler.n3 .an-urun-koli { padding: 2px 6px; font-size: 9.5px; white-space: normal; }
    .an-urunler.n3 .an-urun-git { display: none; }
    .an-govde { padding: 18px 18px 6px; }
    .an-baslik { font-size: 22px; }
    .an-mesaj { font-size: 14.5px; }
    .an-alt { padding: 12px 14px 14px; padding-bottom: max(14px, env(safe-area-inset-bottom)); }
    .an-ipucu { display: none; }
    .an-dugmeler { flex: 1; justify-content: flex-end; }
    .an-birincil { flex: 1; max-width: 280px; }
}

/* ---- Hareketi azalt: animasyon ve parçacık yok ---- */
@media (prefers-reduced-motion: reduce) {
    .an-perde, .an-kutu, .an-urun, .an-x, .an-nokta, .an-birincil { transition: none; }
    .an-kutu { transform: none; }
    .an *, .an *::before, .an *::after { animation: none !important; }
    .an-parcalar, .an-halka { display: none; }
}
