/* Cadının Evi teması: menü sayfası. Eski Impreza tasarımının sadeleştirilmiş karşılığı. */
:root {
    --zemin: #f5efe4;
    --kart: #fff;
    --metin: #626262;
    --baslik: #3f2a56;
    --koyu: #180229;
    --ana: #7856ff;
    --ikincil: #b37c46;
    --cizgi: #e8e8e8;
    --soluk: #999;
    --serif: "abril-text", Georgia, "Times New Roman", serif;
    --sans: "tt-commons-pro", -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --genislik: 480px;
    --alt-cubuk: 52px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--zemin); color: var(--metin); font: 300 16px/1.55 var(--sans); }
body:has(dialog[open]) { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--koyu); }
h2, h3 { font-family: var(--serif); color: var(--baslik); font-weight: 400; margin: 0; }

.sayfa { max-width: var(--genislik); margin: 0 auto; background: var(--kart); min-height: 100vh; padding-bottom: calc(var(--alt-cubuk) + env(safe-area-inset-bottom)); }

/* Üst bölüm */
.ust { background: var(--kart) url(../img/ust.jpg) top center / cover no-repeat; text-align: center; padding: 0 16px 10px; }
.ust-baglantilar { display: flex; justify-content: center; gap: 24px; padding: 10px 10px 6px; font-size: 13px; background: var(--kart); margin: 0 -16px; }
.ust-baglantilar a, .ust-baglantilar .dil { display: inline-flex; align-items: center; gap: 6px; color: var(--metin); text-decoration: none; }
.ust-baglantilar .dil { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.logo { display: inline-block; margin-top: 30px; }
.logo img { width: 220px; height: auto; margin: 0 auto; }

/* Kategoriler (akordeon) */
.menu { padding: 16px 16px 8px; }
.bos { text-align: center; padding: 40px 0; }
.kategori { margin-bottom: 10px; }
.kategori-kart { position: relative; display: block; height: 127px; border-radius: 6px; overflow: hidden; cursor: pointer; list-style: none; background: linear-gradient(100deg, #6b46e8, #9b82ff); -webkit-tap-highlight-color: transparent; }
.kategori-kart::-webkit-details-marker { display: none; }
.kategori-kart img { width: 100%; height: 100%; object-fit: cover; object-position: left center; }
.kategori-kart:focus-visible { outline: 3px solid var(--ana); outline-offset: 2px; }
.kategori-ad { position: absolute; clip: rect(0 0 0 0); width: 1px; height: 1px; overflow: hidden; white-space: nowrap; }
.kategori-kart.gorselsiz .kategori-ad { position: static; clip: auto; width: auto; height: 100%; display: flex; align-items: center; padding: 0 28px; color: #fff; font: 600 20px var(--sans); letter-spacing: .06em; text-transform: uppercase; white-space: normal; }
.kategori-icerik { padding-top: .5rem; }
.kategori-not { color: var(--soluk); font-size: 14px; }
.kategori-not p { margin: 0 0 1em; }

/* Ürün satırı */
.urunler { list-style: none; margin: 0; padding: 0; }
.urunler li + li .urun { border-top: 1px solid rgba(179, 124, 70, .6); }
.urun { display: flex; align-items: center; gap: 14px; padding: 10px 0; color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.urun-gorsel { flex: 0 0 72px; width: 72px; aspect-ratio: 3 / 4; border-radius: 6px; overflow: hidden; background: var(--zemin); }
.urun-gorsel:empty { display: none; }
.urun-gorsel img { width: 100%; height: 100%; object-fit: cover; }
.urun-bilgi { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.urun-baslik { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; }
.urun-ad { font: 400 20px/1.2 var(--serif); color: var(--koyu); letter-spacing: .03em; }
.miktar { font-size: 13px; color: var(--soluk); }
.etiket { display: inline-block; padding: 1px 7px 2px; border-radius: 10px; background: var(--ana); color: #fff; font-size: 11px; }
.etiket-oneri { background: var(--ikincil); }
.etiket-cok_yakinda { background: var(--soluk); }
.urun-ozet { font-size: 13px; line-height: 1.15; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.urun-daha { font-size: 13px; color: var(--koyu); text-decoration: underline dotted; text-underline-offset: 3px; margin-top: 6px; }
.fiyat { font: 400 21px/1 var(--serif); color: var(--baslik); white-space: nowrap; letter-spacing: .02em; }

/* Alt bölümler */
.alt-notlar { text-align: center; font-size: 14px; padding: 20px 0; }
.alt-notlar p { margin: 0; }
.desenli { background: var(--zemin) url(../img/desen.svg) right bottom / 250px no-repeat; }
.ik { text-align: center; padding: 56px 24px; margin-bottom: 10px; }
.ust-yazi { color: var(--ikincil); margin: 0 0 10px; }
.ik h3 { font-size: 26px; margin-bottom: 12px; }
.dugme { display: inline-block; margin-top: 10px; padding: 12px 28px; border: 0; border-radius: 12px; background: linear-gradient(90deg, #7856ff, #8f73ff); color: #fff; font: 600 15px var(--sans); text-decoration: none; cursor: pointer; }
.alt { text-align: center; font-size: 14px; color: var(--soluk); padding: 16px 16px 24px; }
.alt p { margin: 0; }
.alt a { color: inherit; text-decoration: none; }

/* Sabit alt çubuk */
.alt-cubuk { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: flex; justify-content: center; align-items: stretch; max-width: var(--genislik); margin: 0 auto; height: calc(var(--alt-cubuk) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--zemin); border-top: 1px solid #ddd6ca; font-size: 14px; }
.alt-cubuk > * { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--koyu); text-decoration: none; background: none; border: 0; font: inherit; cursor: pointer; padding: 0 6px; }
.alt-cubuk > * + * { border-left: 1px solid #ddd6ca; }

/* Pencereler */
.pencere { width: 100%; max-width: var(--genislik); height: 100%; max-height: 100%; margin: 0 auto; padding: 0; border: 0; background: var(--kart); color: var(--metin); overscroll-behavior: contain; }
.pencere::backdrop { background: rgba(24, 2, 41, .45); }
.pencere[open] { display: flex; flex-direction: column; animation: pencere-ac .18s ease-out; }
.pencere > * { flex-shrink: 0; }
@keyframes pencere-ac { from { opacity: 0; transform: translateY(16px); } }
@media (prefers-reduced-motion: reduce) { .pencere[open] { animation: none; } }

/* Ürün penceresi: görsel en üstte kenardan kenara, kapat düğmesi kaydırırken de üstte kalır, alt çubuk pencerede de görünür. */
.pencere-araclar { position: sticky; top: 0; z-index: 2; height: 0; }
.pencere-araclar .pencere-kapat { top: 12px; right: 12px; width: 40px; height: 40px; }
.pencere-gorsel { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: var(--zemin); }
.pencere-ic { flex: 1 0 auto; padding: 4px 24px 28px; }
.pencere-araclar + .pencere-ic { padding-top: 56px; }
.pencere .alt-cubuk { position: sticky; bottom: 0; max-width: none; margin: 0; }
.pencere-baslik { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0 18px; border-bottom: 2px solid var(--cizgi); }
.pencere-baslik h2 { font-size: 19px; font-weight: 600; letter-spacing: .02em; }
.pencere-baslik .fiyat { font-size: 21px; font-weight: 600; }
.pencere-miktar { color: var(--soluk); margin: 10px 0 0; }
.pencere-icerik { padding: 18px 0; border-bottom: 2px solid var(--cizgi); }
.pencere-icerik > :first-child { margin-top: 0; }
.pencere-icerik > :last-child { margin-bottom: 0; }
.pencere-icerik img { border-radius: 6px; margin: 12px 0; }
.pencere-icerik figure { margin: 16px 0 0; }
.pencere-icerik figure img { margin: 0; }
.pencere-icerik figcaption { margin-top: 6px; font-size: 13px; color: var(--soluk); text-align: center; }
.iliskili { padding: 18px 0 4px; border-bottom: 2px solid var(--cizgi); }
.iliskili h3 { font-size: 18px; margin-bottom: 4px; }
.iliskili .urun-gorsel { flex-basis: 48px; width: 48px; }
.iliskili .urun-ad { font-size: 17px; }
.iliskili .fiyat { font-size: 18px; }
.belgeler { margin: 18px 0 0; font-size: 14px; color: var(--soluk); }
.belgeler strong { font-weight: 600; color: var(--koyu); }
.pencere-ic:focus { outline: none; }

@media (min-width: 481px) {
    body { padding: 0 0 0; }
    .pencere { height: auto; max-height: calc(100% - 48px); margin-top: 24px; border-radius: 8px; }
}

/* Bannerlar: kaydırılabilir şerit, noktalar */
.bannerlar { padding: 16px 16px 0; }
.banner-serit { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 6px; }
.banner-serit::-webkit-scrollbar { display: none; }
.banner { flex: 0 0 100%; scroll-snap-align: center; border-radius: 6px; overflow: hidden; background: var(--zemin); }
.banner img { width: 100%; height: auto; }
.banner-noktalar { display: flex; justify-content: center; gap: 8px; padding: 10px 0 0; }
.banner-noktalar button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: #d8cfc0; cursor: pointer; }
.banner-noktalar button[aria-current="true"] { background: var(--ana); width: 20px; border-radius: 4px; }

/* Popup */
.duyuru-popup { width: min(92vw, 440px); max-height: 92vh; padding: 0; border: 0; border-radius: 10px; background: var(--kart); overflow: auto; overscroll-behavior: contain; }
.duyuru-popup::backdrop { background: rgba(0,0, 0, .1); backdrop-filter: blur(10px); }
.duyuru-popup[open] { animation: pencere-ac .2s ease-out; }
.duyuru-gorsel { display: block; }
.duyuru-gorsel img { width: 100%; height: auto; max-height: 80vh; object-fit: contain; background: var(--zemin); }
.duyuru-metin { padding: 16px 20px; text-align: center; color: var(--baslik); }
.duyuru-metin p { margin: 0 0 .6em; }
.duyuru-metin p:last-child { margin: 0; }
.duyuru-kapat { position: absolute; top: 8px; right: 8px; z-index: 1; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: rgba(24, 2, 41, .55); color: #fff; cursor: pointer; }
