/* =============================================
   Tekel Bayii — Minimal, premium mobil arayüz
   ============================================= */

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
[hidden] { display: none !important; }

:root {
  /* Gece Noir & Şampanya Altını — daha koyu, daha net premium palet */
  --bg: #050507;            /* saf geceye yakın siyah */
  --bg-elev: #0f0f13;       /* nötr koyu panel — altını öne çıkarır */
  --bg-elev-2: #17171d;     /* yüksek katman */
  --line: #2b2b35;          /* net hairline */
  --line-soft: #1d1d25;
  --text: #f7f4ea;          /* parlak fildişi — yüksek kontrast */
  --text-dim: #b8b3a6;
  --text-mute: #7e7a6f;
  --brand: #d4b264;         /* şampanya altını */
  --brand-2: #eed7a0;       /* parlak altın */
  --brand-ink: #17120a;     /* altın üstü koyu metin */
  --brand-soft: rgba(212, 178, 100, .12);
  --brand-glow: rgba(212, 178, 100, .28);
  --gold-grad: linear-gradient(135deg, #eed7a0 0%, #d4b264 48%, #b9954a 100%);
  --success: #6bbf9a;
  --wa: #25D366;
  --danger: #e0796f;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.5);
  --shadow: 0 10px 34px rgba(0,0,0,.55);
  --safe-bottom: env(safe-area-inset-bottom, 0);
  --safe-top: env(safe-area-inset-top, 0);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter",
               "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: calc(110px + var(--safe-bottom));
  overscroll-behavior-y: contain;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -.01em;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  touch-action: manipulation; /* iOS çift dokunma zoom önlemi */
}
/* iOS Safari: form input'lara odaklanınca otomatik zoom yapmasın */
@supports (-webkit-touch-callout: none) {
  input, textarea, select { font-size: 16px !important; }
}

/* Çok küçük ekranlarda ürün kartları ve diğer ayarlamalar */
@media (max-width: 380px) {
  .app-header { padding-left: 14px; padding-right: 14px; }
  .brand-text h1 { font-size: 15px; }
  .brand-text span { font-size: 11px; }
  .products { padding: 12px 10px 0; gap: 10px; }
  .product .name { font-size: 13px; min-height: 32px; }
  .product .price { font-size: 15px; }
  .product .body { padding: 10px 10px 12px; }
  .cart-bar { left: 10px; right: 10px; }
  .pay-grid { gap: 6px; }
  .pay-opt span { padding: 10px 4px; font-size: 11.5px; min-height: 58px; }
}

/* iOS notch güvenli alanlar */
.app-header { padding-left: max(14px, env(safe-area-inset-left)); padding-right: max(14px, env(safe-area-inset-right)); }
.products { padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); }
.cart-bar { margin-left: env(safe-area-inset-left); margin-right: env(safe-area-inset-right); }

/* ===== Header ===== */
.app-header {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(var(--safe-top) + 14px) 18px 12px;
  background: rgba(5,5,8,.88);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line-soft);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center; font-size: 20px;
  background: var(--brand-soft);
  border: 1px solid var(--brand-glow);
}
.brand-text h1 { font-size: 16px; margin: 0; font-weight: 700; letter-spacing: -.3px; }
.brand-text span { font-size: 12px; color: var(--text-dim); font-weight: 400; }

.icon-btn {
  width: 40px; height: 40px; border-radius: 12px; border: 0;
  background: var(--bg-elev); color: var(--text);
  font-size: 16px; cursor: pointer;
  transition: transform .12s, background .15s;
  display: grid; place-items: center;
}
.icon-btn:active { transform: scale(.92); background: var(--bg-elev-2); }

/* ===== VIP Karşılama Pop-up ===== */
.welcome-pop {
  position: fixed !important;
  top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 10000 !important;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 24px;
  animation: fadeIn .3s;
}
.welcome-pop[hidden] { display: none !important; }
.welcome-card {
  background: linear-gradient(135deg, #16140e 0%, #221b10 100%);
  border: 1px solid var(--brand-glow);
  border-radius: 24px;
  padding: 40px 28px 32px;
  text-align: center;
  max-width: 380px;
  width: 100%;
  box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 100px rgba(212,178,100,.18);
  animation: welcomeIn .5s cubic-bezier(.2,.9,.3,1.2);
}
@keyframes welcomeIn {
  from { transform: scale(.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.welcome-emoji {
  font-size: 56px;
  margin-bottom: 12px;
  animation: emojiPop .6s cubic-bezier(.2,.9,.3,1.4);
  display: inline-block;
}
@keyframes emojiPop {
  0%   { transform: scale(0) rotate(-180deg); }
  60%  { transform: scale(1.3) rotate(20deg); }
  100% { transform: scale(1) rotate(0); }
}
.welcome-card h2 {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.4px;
  color: var(--brand-2);
}
.welcome-card p {
  color: var(--text);
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0 0 24px;
}
.welcome-card p strong { color: var(--brand-2); font-weight: 600; }
.welcome-btn {
  width: 100%;
  padding: 15px;
  background: var(--brand);
  color: #1a0e02;
  border: 0;
  border-radius: 14px;
  font-size: 15.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 24px var(--brand-glow);
  letter-spacing: -.01em;
  transition: transform .12s, box-shadow .15s;
}
.welcome-btn:hover { box-shadow: 0 14px 32px var(--brand-glow); }
.welcome-btn:active { transform: scale(.98); }

/* ===== VIP Gate (giriş kapısı) ===== */
.vip-gate {
  position: fixed !important;
  top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  z-index: 9999 !important;
  background: linear-gradient(160deg, #050507 0%, #0c0a07 55%, #171208 100%) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 24px !important;
  padding-top: max(40px, env(safe-area-inset-top)) !important;
  padding-bottom: max(40px, env(safe-area-inset-bottom)) !important;
  overflow-y: auto;
}
.vip-gate[hidden] { display: none !important; }
.vip-gate.shown { animation: fadeIn .4s ease-out; }
.vip-card {
  width: 100%;
  max-width: 380px;
  background: rgba(20, 20, 26, .9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 36px 28px;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 100px rgba(212,178,100,.14);
  animation: cardIn .5s cubic-bezier(.2,.9,.3,1.05);
}
@keyframes cardIn {
  from { transform: translateY(20px) scale(.96); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.vip-card .vip-logo {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--brand-soft);
  border: 1px solid var(--brand-glow);
  display: grid; place-items: center;
  font-size: 32px;
  margin: 0 auto 20px;
  box-shadow: 0 8px 24px var(--brand-glow);
}
.vip-card h1 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.4px;
  margin: 0 0 8px;
  color: var(--text);
}
.vip-card p {
  color: var(--text-dim);
  font-size: 13.5px;
  line-height: 1.55;
  margin: 0 0 24px;
}
#vipCodeInput {
  width: 100%;
  margin-top: 4px;
  background: var(--bg);
  border: 2px solid var(--line);
  color: var(--text);
  padding: 16px 14px;
  border-radius: 14px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 3px;
  text-align: center;
  font-family: -apple-system, "SF Mono", "Menlo", monospace;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
#vipCodeInput::placeholder {
  color: var(--text-mute);
  letter-spacing: 1px;
  font-size: 15px;
  font-weight: 500;
}
#vipCodeInput:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-glow);
}
.vip-submit {
  width: 100%;
  margin-top: 14px;
  padding: 16px;
  background: var(--brand);
  color: #1a0e02;
  border: 0;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: -.01em;
  box-shadow: 0 10px 24px var(--brand-glow);
  transition: transform .12s, box-shadow .15s;
}
.vip-submit:hover { box-shadow: 0 14px 32px var(--brand-glow); }
.vip-submit:active { transform: scale(.98); }
.vip-submit:disabled { opacity: .6; cursor: not-allowed; }
.vip-error {
  margin-top: 14px;
  padding: 10px 14px;
  background: rgba(248,113,113,.12);
  border: 1px solid rgba(248,113,113,.3);
  border-radius: 10px;
  color: var(--danger);
  font-size: 13px;
  font-weight: 500;
}
.vip-hint {
  margin: 14px 0 0 !important;
  font-size: 12px !important;
  color: var(--text-mute) !important;
}
.vip-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 22px 0 14px;
  color: var(--text-mute); font-size: 11px;
  text-transform: uppercase; letter-spacing: .12em;
}
.vip-divider::before, .vip-divider::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(to var(--d, right), transparent, var(--line));
}
.vip-divider::after { background: linear-gradient(to left, transparent, var(--line)); }
.vip-wa {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  width: 100%; padding: 14px 16px;
  background: rgba(37, 211, 102, .12);
  border: 1px solid rgba(37, 211, 102, .4);
  border-radius: 14px;
  color: #4ee787; text-decoration: none;
  font-size: 14px; font-weight: 600; line-height: 1.3;
  transition: background .15s, transform .12s, box-shadow .15s;
}
.vip-wa:hover { background: rgba(37, 211, 102, .18); box-shadow: 0 8px 24px rgba(37,211,102,.18); }
.vip-wa:active { transform: scale(.98); }
.vip-wa .icn { width: 20px; height: 20px; flex: 0 0 auto; color: var(--wa); }

/* Katalog / mesai saati bilgilendirmesi */
.vip-catalog-note {
  display: flex; align-items: flex-start; gap: 10px;
  text-align: left;
  background: var(--bg-elev);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 13px 14px;
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.55;
}
.vip-catalog-note .icn { width: 19px; height: 19px; flex: 0 0 auto; color: var(--text-mute); margin-top: 1px; }
.vip-catalog-note strong { color: var(--text); }


/* ===== Kapalı Saat Banner ===== */
.shop-closed-banner {
  margin: 12px 14px 0;
  padding: 14px 16px;
  background: linear-gradient(135deg, #1c1710, #2a2012);
  border: 1px solid rgba(212, 178, 100, .35);
  border-radius: 14px;
  display: flex; align-items: center; gap: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
  animation: slideDown .3s cubic-bezier(.2,.9,.3,1.05);
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.shop-closed-banner .cb-icon {
  font-size: 32px;
  flex-shrink: 0;
}
.shop-closed-banner .cb-text {
  display: flex; flex-direction: column;
  gap: 2px;
  flex: 1;
}
.shop-closed-banner .cb-text strong {
  color: var(--brand-2);
  font-size: 15px;
  letter-spacing: -.01em;
}
.shop-closed-banner .cb-text span {
  color: var(--text);
  font-size: 13px;
}
.shop-closed-banner .cb-text small {
  color: var(--text-dim);
  font-size: 11.5px;
  margin-top: 2px;
}

/* Submit butonu kapalıyken */
.submit-btn.shop-closed {
  background: #525261 !important;
  box-shadow: none !important;
  cursor: not-allowed;
}
.submit-btn.shop-closed:hover { box-shadow: none !important; }

/* ===== Search ===== */
.search-bar { padding: 10px 18px 0; }
.search-bar input {
  width: 100%; padding: 13px 16px;
  background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: 14px; color: var(--text); font-size: 15px; outline: none;
  transition: border-color .15s;
}
.search-bar input::placeholder { color: var(--text-mute); }
.search-bar input:focus { border-color: var(--brand); }

/* ===== Categories ===== */
.categories {
  display: flex; gap: 8px; overflow-x: auto;
  padding: 14px 18px 10px;
  scrollbar-width: none;
  position: sticky;
  top: calc(var(--safe-top) + 68px);
  z-index: 20;
  background: linear-gradient(to bottom, rgba(5,5,8,.96) 70%, rgba(5,5,8,0));
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}
.categories::-webkit-scrollbar { display: none; }
.cat-chip {
  flex: 0 0 auto;
  padding: 9px 16px;
  background: var(--bg-elev);
  color: var(--text-dim);
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 14px; font-weight: 600;
  cursor: pointer; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px;
  transition: all .15s;
  letter-spacing: -.01em;
}
.cat-chip:active { transform: scale(.96); }
.cat-chip.active {
  background: #fff; color: #0b0b0d;
  border-color: #fff;
  font-weight: 600;
}

/* ===== Products Grid ===== */
.products {
  padding: 14px 14px 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 600px) { .products { grid-template-columns: repeat(3, 1fr); padding: 16px; gap: 14px; } }
@media (min-width: 900px) { .products { grid-template-columns: repeat(4, 1fr); padding: 20px; gap: 16px; } }
@media (min-width: 1280px) { .products { grid-template-columns: repeat(5, 1fr); max-width: 1400px; margin: 0 auto; } }

.product {
  background: linear-gradient(180deg, #15141b 0%, var(--bg-elev) 70%);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  border: 1px solid var(--line-soft);
  box-shadow: 0 6px 20px rgba(0,0,0,.35);
  transition: transform .2s cubic-bezier(.2,.8,.3,1), border-color .2s, background .25s, box-shadow .25s;
  position: relative;
  cursor: pointer;
}
.product.added {
  animation: pulseAdd .5s cubic-bezier(.2,.9,.3,1.1);
}
@keyframes pulseAdd {
  0%   { transform: scale(1); box-shadow: 0 0 0 0 var(--brand-glow); }
  50%  { transform: scale(1.03); box-shadow: 0 0 0 12px transparent; }
  100% { transform: scale(1); box-shadow: 0 0 0 0 transparent; }
}
.product:active { transform: scale(.98); }
.product.unavailable .ph img, .product.unavailable .ph .ph-fallback { filter: grayscale(.85); opacity: .5; }
.product.unavailable .name, .product.unavailable .price { opacity: .55; }
.product .ph {
  aspect-ratio: 9 / 16;
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(212,178,100,.09) 0%, transparent 55%),
    linear-gradient(135deg, #141219, #08070b);
  display: grid; place-items: center;
  font-size: 56px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,.03);
}
/* Fallback her zaman görünür; img üzerine bindirilir. Yüklenmezse fallback yerinde kalır. */
.product .ph .ph-fallback {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-size: 56px;
}
.product .ph img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; display: block;
  opacity: 0; transition: opacity .35s ease, transform .5s cubic-bezier(.2,.8,.3,1);
}
.product .ph img.loaded { opacity: 1; }
/* Hacim etiketi görsel üzerinde — buzlu cam çip */
.product .ph .vol-tag {
  position: absolute; left: 8px; bottom: 8px; z-index: 2;
  background: rgba(10,10,12,.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--brand-glow);
  color: var(--brand-2);
  font-size: 10.5px; font-weight: 700;
  padding: 3px 9px; border-radius: 100px;
  letter-spacing: .02em;
}
.product .body { padding: 11px 12px 12px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product .name {
  font-size: 14px; font-weight: 600; line-height: 1.32;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 37px;
  color: var(--text);
}
.product .price { font-size: 17px; font-weight: 800; color: var(--brand-2); letter-spacing: -.02em; }
.product .badge {
  position: absolute; top: 8px; left: 8px;
  background: var(--brand); color: #1a0e02;
  font-size: 10px; font-weight: 700; padding: 4px 9px; border-radius: 100px;
  letter-spacing: .3px; text-transform: uppercase;
  box-shadow: 0 4px 12px var(--brand-glow);
}
.product .unavailable-tag {
  position: absolute; inset: 0; z-index: 3;
  display: grid; place-items: center;
  background: rgba(8,8,10,.45);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.product .unavailable-tag span {
  background: rgba(15,15,18,.9);
  border: 1px solid var(--line);
  color: var(--text-dim);
  font-size: 12px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 7px 16px; border-radius: 100px;
}

/* ===== Kart alt satırı: fiyat + ekle / adet kontrolü ===== */
.card-foot {
  margin-top: auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; min-height: 38px;
}
.add-btn {
  flex: 0 0 auto;
  width: 38px; height: 38px;
  border: 0; border-radius: 13px;
  background: var(--gold-grad);
  color: #1a0e02;
  cursor: pointer;
  display: grid; place-items: center;
  box-shadow: 0 6px 16px rgba(212,178,100,.28);
  transition: transform .15s cubic-bezier(.2,.9,.3,1.3), box-shadow .2s;
}
.add-btn .icn { width: 17px; height: 17px; }
@media (hover: hover) {
  .add-btn:hover { transform: scale(1.08); box-shadow: 0 8px 22px rgba(212,178,100,.42); }
}
.add-btn:active { transform: scale(.88); }
.qty-control {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--brand);
  border-radius: 12px;
  padding: 3px; width: 100%;
  box-shadow: 0 4px 12px var(--brand-glow);
}
.card-foot .qty-control { animation: qtyIn .28s cubic-bezier(.2,.9,.3,1.25); }
@keyframes qtyIn {
  from { transform: scale(.86); opacity: .4; }
  to   { transform: scale(1); opacity: 1; }
}
.qty-btn {
  width: 32px; height: 32px; border: 0;
  background: rgba(0,0,0,.18); color: #1a0e02;
  border-radius: 8px; font-size: 18px; font-weight: 700;
  cursor: pointer; display: grid; place-items: center;
  transition: background .12s;
}
.qty-btn:hover { background: rgba(0,0,0,.28); }
.qty-btn:active { transform: scale(.92); }
.qty-num { font-weight: 700; color: #1a0e02; min-width: 20px; text-align: center; font-size: 14px; }

/* ===== Sticky Cart Bar ===== */
.cart-bar {
  position: fixed; left: 14px; right: 14px;
  bottom: calc(14px + var(--safe-bottom));
  background: var(--gold-grad);
  color: var(--brand-ink);
  border-radius: 100px;
  padding: 11px 14px 11px 18px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  box-shadow: 0 14px 34px rgba(212,178,100,.30), 0 4px 12px rgba(0,0,0,.4);
  z-index: 25;
  animation: slideUp .35s cubic-bezier(.2,.9,.3,1.1);
  max-width: 460px; margin: 0 auto;
}
@keyframes slideUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.cart-info { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.cart-count {
  background: #1a0e02; color: var(--brand);
  min-width: 26px; height: 26px;
  border-radius: 100px;
  display: grid; place-items: center;
  font-size: 13px; padding: 0 8px;
}
.cart-total { font-size: 15px; letter-spacing: -.02em; }
.cart-btn {
  background: #1a0e02; color: #fff;
  border: 0; padding: 9px 18px;
  border-radius: 100px; font-weight: 700; font-size: 14px;
  cursor: pointer;
}
.cart-btn:active { transform: scale(.96); }

/* ===== Bottom Sheets ===== */
.sheet {
  position: fixed; inset: 0; z-index: 50;
  display: flex; align-items: flex-end; justify-content: center;
}
.sheet-backdrop {
  position: absolute; inset: 0; background: rgba(0,0,0,.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: fadeIn .2s;
}
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
.sheet-panel {
  position: relative;
  width: 100%; max-width: 540px;
  background: var(--bg-elev);
  border-radius: 28px 28px 0 0;
  padding: 8px 18px calc(22px + var(--safe-bottom));
  max-height: 92vh;
  max-height: 92dvh; /* iOS Safari için dinamik viewport */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  animation: sheetIn .3s cubic-bezier(.2,.9,.3,1.05);
  box-shadow: 0 -20px 60px rgba(0,0,0,.5);
  border: 1px solid var(--line-soft);
  border-bottom: 0;
}
@keyframes sheetIn { from { transform: translateY(100%); } to { transform: translateY(0); } }
.sheet-handle {
  width: 44px; height: 5px; border-radius: 100px;
  background: #3a3a44; margin: 10px auto 14px;
  cursor: pointer;
  position: relative;
  /* Daha geniş tıklama alanı için padding'li hayalet alan */
}
.sheet-handle::before {
  content: '';
  position: absolute;
  inset: -14px -40px;
}

/* Kapatma butonu — ürün detay sheet için */
.sheet-close {
  position: absolute;
  top: 18px; right: 18px;
  width: 40px; height: 40px;
  min-width: 40px; min-height: 40px;
  border-radius: 50%;
  background: var(--bg-elev-2);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 16px; font-weight: 600;
  cursor: pointer;
  z-index: 5;
  display: grid; place-items: center;
  transition: background .15s, transform .12s, border-color .15s;
  -webkit-tap-highlight-color: transparent;
}
.sheet-close:hover { background: var(--bg); border-color: var(--brand); color: var(--brand-2); }
.sheet-close:active { transform: scale(.92); }
.sheet-header {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 12px;
}
.sheet-header h2 { margin: 0; font-size: 19px; font-weight: 700; letter-spacing: -.3px; }

/* ===== Cart Items ===== */
.cart-items { display: flex; flex-direction: column; gap: 8px; padding: 6px 0; }
.cart-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-elev-2);
  padding: 10px 12px; border-radius: 14px;
  border: 1px solid var(--line-soft);
}
.cart-item .name { flex: 1; font-size: 14px; font-weight: 500; letter-spacing: -.01em; }
.cart-item .name small { display: block; color: var(--text-dim); margin-top: 2px; font-weight: 400; font-size: 12px; }
.cart-item .qty-control { width: auto; min-width: 110px; }
.cart-empty {
  text-align: center; padding: 50px 16px;
  color: var(--text-dim); font-size: 14px;
}
.cart-empty::before {
  content: '🛒'; display: block; font-size: 48px; margin-bottom: 12px; opacity: .35;
}

.cart-summary { margin: 16px 0 8px; padding: 14px 16px; background: var(--bg-elev-2); border-radius: 14px; border: 1px solid var(--line-soft); }
.summary-row { display: flex; justify-content: space-between; padding: 5px 0; font-size: 14px; color: var(--text-dim); }
.summary-row.big { font-size: 18px; color: var(--text); padding-top: 10px; border-top: 1px solid var(--line); margin-top: 6px; font-weight: 700; letter-spacing: -.02em; }

.cart-form { display: flex; flex-direction: column; gap: 10px; margin: 14px 0; }
.cart-form input, .cart-form textarea {
  background: var(--bg-elev-2); border: 1px solid var(--line);
  color: var(--text); padding: 13px 14px; border-radius: 12px;
  font-size: 15px; font-family: inherit; outline: none; resize: vertical;
  transition: border-color .15s;
}
.cart-form input::placeholder, .cart-form textarea::placeholder { color: var(--text-mute); }
.cart-form input:focus, .cart-form textarea:focus { border-color: var(--brand); }
.cart-form textarea { min-height: 64px; }

.section-label {
  font-size: 12px; font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin: 8px 2px -2px;
  display: flex; align-items: center; gap: 6px;
}
.section-label .req { color: var(--brand); font-size: 14px; }

.pay-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.pay-opt {
  position: relative;
  cursor: pointer;
}
.pay-opt input {
  position: absolute; opacity: 0; pointer-events: none;
}
.pay-opt span {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center;
  background: var(--bg-elev-2);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 12px 6px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-dim);
  transition: all .15s;
  min-height: 64px;
  line-height: 1.4;
}
.pay-opt:active span { transform: scale(.96); }
.pay-opt input:checked + span {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand-2);
  font-weight: 600;
}

.location-btn {
  background: var(--bg-elev-2); border: 1px dashed var(--line);
  color: var(--text); padding: 13px; border-radius: 12px;
  font-size: 14px; font-weight: 500; cursor: pointer;
  transition: all .15s;
}
.location-btn:hover { border-color: var(--brand); color: var(--brand-2); }
.location-btn.active { border-style: solid; border-color: var(--success); color: var(--success); background: rgba(52,211,153,.06); }
.loc-status {
  font-size: 13px;
  color: var(--text);
  padding: 10px 12px;
  line-height: 1.55;
  background: var(--bg-elev-2);
  border-radius: 10px;
  border-left: 3px solid var(--brand);
}
.loc-status strong { color: #fff; }
.loc-status em { color: var(--brand-2); font-style: normal; font-weight: 600; }
.loc-status a { color: var(--brand-2); text-decoration: underline; }

/* Sepette mesafe ücreti uyarısı */
.delivery-notice {
  background: var(--brand-soft);
  border: 1px solid var(--brand-glow);
  color: var(--brand-2);
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 500;
  margin: 8px 0;
  line-height: 1.5;
}
.delivery-notice.success {
  background: rgba(52,211,153,.10);
  border-color: rgba(52,211,153,.35);
  color: var(--success);
}

.manual-loc {
  background: var(--bg-elev-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--text);
}
.manual-loc summary {
  cursor: pointer;
  color: var(--text);
  font-weight: 600;
  list-style: none;
  user-select: none;
  padding: 2px 0;
}
.manual-loc summary::-webkit-details-marker { display: none; }
.manual-loc[open] summary {
  color: var(--brand-2);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.manual-body { display: flex; flex-direction: column; gap: 10px; }
.ml-steps {
  margin: 0 0 4px;
  padding-left: 22px;
  color: #fff;
  font-size: 13px;
  line-height: 1.6;
}
.ml-steps li { margin-bottom: 4px; color: #fff; }
.ml-steps strong { color: var(--brand-2); }
.ml-steps a { color: var(--brand-2); font-weight: 600; text-decoration: none; }
.ml-steps a:hover { text-decoration: underline; }
.manual-body input {
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  outline: none;
}
.manual-body input::placeholder { color: var(--text-mute); }
.manual-body input:focus { border-color: var(--brand); }
.ml-section {
  display: flex; flex-direction: column; gap: 8px;
}
.ml-section-title {
  font-size: 13px; font-weight: 700;
  color: var(--brand-2);
  letter-spacing: -.01em;
}
.ml-section-hint {
  margin: -4px 0 4px;
  font-size: 12.5px; color: var(--text-dim);
  line-height: 1.45;
}
.ml-divider {
  display: flex; align-items: center; gap: 10px;
  margin: 4px 0;
  color: var(--text-mute);
  font-size: 11px; font-weight: 600; letter-spacing: 1px;
}
.ml-divider::before, .ml-divider::after {
  content: ''; flex: 1;
  border-top: 1px solid var(--line);
}

.addr-search { position: relative; }
.addr-search input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  outline: none;
}
.addr-search input:focus { border-color: var(--brand); }
.addr-search input::placeholder { color: var(--text-mute); }

.addr-status {
  font-size: 12px;
  color: var(--text-dim);
  padding: 6px 4px 0;
}
.addr-status.error { color: var(--danger); }

.addr-results {
  margin-top: 6px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  max-height: 240px;
  overflow-y: auto;
}
.addr-result {
  display: block; width: 100%;
  text-align: left;
  padding: 11px 14px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--text);
  font-size: 13.5px;
  cursor: pointer;
  transition: background .12s;
  line-height: 1.4;
}
.addr-result:last-child { border-bottom: 0; }
.addr-result:hover, .addr-result:focus {
  background: var(--brand-soft);
  color: var(--brand-2);
  outline: none;
}
.addr-result strong {
  display: block; color: #fff;
  font-size: 14px; font-weight: 600;
  margin-bottom: 2px;
}
.addr-result:hover strong, .addr-result:focus strong { color: var(--brand-2); }
.addr-result small { color: var(--text-dim); font-size: 12px; }

.ml-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ml-btn, .ml-btn-ghost {
  padding: 11px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  border: 0;
  transition: transform .12s, background .15s;
}
.ml-btn {
  background: var(--brand);
  color: #1a0e02;
}
.ml-btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}
.ml-btn-ghost:hover { background: var(--bg-elev); border-color: var(--brand); color: var(--brand-2); }
.ml-btn:active, .ml-btn-ghost:active { transform: scale(.97); }

.submit-btn {
  width: 100%; padding: 17px;
  background: var(--wa);
  color: #fff; border: 0; border-radius: 16px;
  font-size: 16px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  cursor: pointer; box-shadow: 0 10px 24px rgba(37,211,102,.3);
  margin-top: 6px; letter-spacing: -.01em;
  transition: transform .12s, box-shadow .15s;
}
.submit-btn:hover { box-shadow: 0 14px 32px rgba(37,211,102,.4); }
.submit-btn:active { transform: scale(.98); }
.submit-btn:disabled { opacity: .6; box-shadow: none; }
.wa-icon { font-size: 20px; }
.hint { font-size: 12px; color: var(--text-mute); text-align: center; margin: 12px 8px 0; line-height: 1.5; }

/* ===== Product Sheet ===== */
.sheet-product { padding-top: 4px; }
.sheet-product > #productSheetContent { padding-top: 8px; }
.sheet-product .ph-lg {
  aspect-ratio: 9 / 16;
  max-height: 60vh;
  width: auto;
  max-width: 100%;
  margin: 0 auto 18px;
  background: linear-gradient(135deg, #141219, #09080c);
  border-radius: 18px;
  position: relative;
  display: grid; place-items: center;
  font-size: 100px; overflow: hidden;
  border: 1px solid var(--line-soft);
}
.sheet-product .ph-lg .ph-fallback {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-size: 100px;
}
.sheet-product .ph-lg img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; display: block;
  opacity: 0; transition: opacity .35s ease;
}
.sheet-product .ph-lg img.loaded { opacity: 1; }
.sheet-product h2 { font-size: 22px; margin: 0 0 6px; letter-spacing: -.3px; }
.sheet-product .price-lg { font-size: 26px; font-weight: 700; color: var(--brand-2); margin-bottom: 14px; letter-spacing: -.02em; }
.sheet-product .desc { color: var(--text-dim); font-size: 14px; line-height: 1.5; margin-bottom: 18px; }
.sheet-product .add-lg {
  width: 100%; padding: 16px; border: 0;
  background: var(--brand); color: #1a0e02;
  border-radius: 14px; font-weight: 700; font-size: 16px;
  cursor: pointer; letter-spacing: -.01em;
  box-shadow: 0 10px 24px var(--brand-glow);
}
.sheet-product .add-lg:active { transform: scale(.98); }

/* ===== Toast ===== */
.toast {
  position: fixed; left: 50%;
  bottom: calc(100px + var(--safe-bottom));
  transform: translateX(-50%);
  background: rgba(15,15,20,.96);
  color: #fff;
  padding: 12px 20px;
  border-radius: 100px;
  font-size: 14px; font-weight: 600;
  z-index: 100;
  border: 1px solid var(--brand-glow);
  box-shadow: 0 10px 30px rgba(0,0,0,.5);
  animation: toastIn .25s cubic-bezier(.2,.9,.3,1.1);
  max-width: 90vw; text-align: center;
  letter-spacing: -.01em;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ===== Empty / Error states ===== */
.state-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-dim);
}
.state-empty .state-icon {
  font-size: 56px;
  opacity: .35;
  margin-bottom: 14px;
  display: block;
}
.state-empty .state-title {
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}
.state-empty .state-sub {
  font-size: 13px;
  color: var(--text-dim);
}

/* ===== Skeletons ===== */
.skeleton-grid { display: contents; }
.skeleton {
  aspect-ratio: 9 / 18;
  background: linear-gradient(90deg, var(--bg-elev) 0%, var(--bg-elev-2) 50%, var(--bg-elev) 100%);
  background-size: 200% 100%;
  border-radius: var(--radius);
  animation: shimmer 1.4s infinite linear;
}
@keyframes shimmer { from { background-position: 200% 0 } to { background-position: -200% 0 } }

/* =============================================
   Açılış Animasyonu — İki Bira Tokuşturma (gerçekçi)
   ============================================= */
body.intro-active { overflow: hidden; }
.intro-splash {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px;
  background:
    radial-gradient(130% 100% at 50% 32%, #241809 0%, #150d05 42%, #08080b 100%);
  overflow: hidden;
  transition: opacity .55s ease, visibility .55s ease;
}
/* sıcak ışık halesi + üstten ince ışık huzmesi */
.intro-splash::before {
  content: ""; position: absolute; left: 50%; top: 34%;
  width: 460px; height: 460px; transform: translate(-50%, -50%) scale(.6);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,205,138,.22) 0%, transparent 66%);
  filter: blur(10px); opacity: 0;
  animation: introGlow 2.6s ease forwards;
}
.intro-splash::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 50% 120%, transparent 60%, rgba(0,0,0,.55) 100%);
  pointer-events: none;
}
.intro-splash.intro-done { opacity: 0; visibility: hidden; }

.intro-stage {
  position: relative;
  display: flex; align-items: flex-end; justify-content: center;
  gap: 4px;
  width: min(90vw, 460px); height: 230px;
  will-change: transform;
}
.intro-splash.clinked .intro-stage { animation: stageShake .42s cubic-bezier(.36,.07,.19,.97); }

.mug-wrap {
  width: 132px; height: 178px;
  display: grid; place-items: end center;
  will-change: transform;
  filter: drop-shadow(0 16px 22px rgba(0,0,0,.55));
}
.beer-mug { width: 100%; height: 100%; display: block; transform-origin: 50% 92%; }
.beer-mug.flip { transform: scaleX(-1); }   /* sol kupanın kulpu dışa baksın */

/* Giriş + tokuşma + sönümlenen sallanma (gerçek fizik hissi) */
.mug-left  { transform-origin: 70% 100%; animation: mugInLeft  1.45s cubic-bezier(.3,.05,.2,1) forwards; }
.mug-right { transform-origin: 30% 100%; animation: mugInRight 1.45s cubic-bezier(.3,.05,.2,1) forwards; }

@keyframes mugInLeft {
  0%   { transform: translateX(-165%) translateY(-4%) rotate(-24deg); opacity: 0; }
  26%  { opacity: 1; }
  50%  { transform: translateX(-9%)  translateY(0)    rotate(-3deg); }   /* yaklaşma */
  60%  { transform: translateX(5%)   rotate(10deg); }                    /* ÇARPIŞMA */
  68%  { transform: translateX(-3%)  rotate(-1deg); }                    /* geri tepme */
  78%  { transform: translateX(2%)   rotate(6deg); }                     /* ikincil salınım */
  88%  { transform: translateX(-1%)  rotate(2deg); }
  100% { transform: translateX(1%)   rotate(4deg); }                     /* yerine otur */
}
@keyframes mugInRight {
  0%   { transform: translateX(165%)  translateY(-4%) rotate(24deg); opacity: 0; }
  26%  { opacity: 1; }
  50%  { transform: translateX(9%)    translateY(0)   rotate(3deg); }
  60%  { transform: translateX(-5%)   rotate(-10deg); }
  68%  { transform: translateX(3%)    rotate(1deg); }
  78%  { transform: translateX(-2%)   rotate(-6deg); }
  88%  { transform: translateX(1%)    rotate(-2deg); }
  100% { transform: translateX(-1%)   rotate(-4deg); }
}
@keyframes introGlow {
  0%   { opacity: 0; transform: translate(-50%,-50%) scale(.55); }
  55%  { opacity: 1; transform: translate(-50%,-50%) scale(1); }
  100% { opacity: .6; transform: translate(-50%,-50%) scale(1.06); }
}
@keyframes stageShake {
  0%,100% { transform: translate(0,0); }
  20% { transform: translate(-3px, 1px); }
  40% { transform: translate(3px, -1px); }
  60% { transform: translate(-2px, 1px); }
  80% { transform: translate(2px, 0); }
}

/* Bardak içinde sürekli yükselen kabarcıklar */
.rise { animation: bubbleRise 2.4s ease-in infinite; }
.rise.r1 { animation-delay: 0s;    animation-duration: 2.6s; }
.rise.r2 { animation-delay: .5s;   animation-duration: 2.1s; }
.rise.r3 { animation-delay: 1.0s;  animation-duration: 2.8s; }
.rise.r4 { animation-delay: 1.5s;  animation-duration: 2.3s; }
@keyframes bubbleRise {
  0%   { transform: translateY(0)     scale(1);   opacity: 0; }
  12%  { opacity: .85; }
  80%  { opacity: .5; }
  100% { transform: translateY(-92px) scale(.4);  opacity: 0; }
}

/* Tokuşmada köpük titremesi */
.intro-splash.clinked .foam { animation: foamWobble .5s ease-out; transform-origin: 50% 100%; }
@keyframes foamWobble {
  0% { transform: scaleY(1); }
  30% { transform: scaleY(1.12) translateY(-2px); }
  60% { transform: scaleY(.96); }
  100% { transform: scaleY(1); }
}

/* ===== Tokuşma efekt katmanı ===== */
.clink-fx { position: absolute; left: 50%; top: 33%; width: 4px; height: 4px; pointer-events: none; }

/* yumuşak darbe halkası */
.impact-ring {
  position: absolute; left: 50%; top: 50%;
  width: 24px; height: 24px; margin: -12px 0 0 -12px;
  border-radius: 50%;
  border: 2px solid rgba(255,240,200,.9);
  opacity: 0;
}
.intro-splash.clinked .impact-ring { animation: impactRing .55s ease-out forwards; }
@keyframes impactRing {
  0%   { opacity: 0; transform: scale(.2); border-width: 3px; }
  25%  { opacity: .95; }
  100% { opacity: 0; transform: scale(3.4); border-width: .5px; }
}

/* tek, ince ışık parıltısı (gerçekçi cam yansıması) */
.glint {
  position: absolute; left: 50%; top: 50%;
  width: 54px; height: 54px; margin: -27px 0 0 -27px;
  background:
    radial-gradient(circle, rgba(255,250,235,.95) 0%, rgba(255,210,120,.45) 28%, transparent 60%);
  opacity: 0;
}
.intro-splash.clinked .glint { animation: glintFlash .4s ease-out forwards; }
@keyframes glintFlash {
  0% { opacity: 0; transform: scale(.3); }
  30% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.5); }
}

/* Tokuşmada biranın sıçraması (liquid slosh) */
.slosh { transform-box: fill-box; transform-origin: 50% 100%; }
.intro-splash.clinked .slosh { animation: sloshUp .6s cubic-bezier(.3,.6,.4,1); }
@keyframes sloshUp {
  0%   { transform: translateY(0) scaleY(1); }
  28%  { transform: translateY(-7px) scaleY(1.18); }
  58%  { transform: translateY(3px) scaleY(.9); }
  80%  { transform: translateY(-1px) scaleY(1.04); }
  100% { transform: translateY(0) scaleY(1); }
}

/* sıçrayan damlacıklar — köpük (beyaz) ve bira (amber) */
.drop {
  position: absolute; left: 50%; top: 50%;
  width: 6px; height: 6px; margin: -3px 0 0 -3px;
  border-radius: 50%; opacity: 0;
}
.drop.foam { background: #fffaf0; box-shadow: 0 0 4px rgba(255,240,210,.6); }
.drop.beer {
  width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px;
  background: radial-gradient(circle at 35% 30%, #ffd87a, #e8941a);
  box-shadow: 0 0 5px rgba(232,148,26,.5);
}
.intro-splash.clinked .drop.foam { animation: dropFly .6s cubic-bezier(.3,.5,.6,1) forwards; }
.intro-splash.clinked .drop.beer { animation: dropFly .85s cubic-bezier(.25,.4,.5,1) .06s forwards; }
@keyframes dropFly {
  0%   { opacity: 0; transform: translate(0,0) scale(.4); }
  12%  { opacity: 1; }
  42%  { transform: translate(calc(var(--dx) * .55), var(--peak)) scale(1); opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx), var(--fall)) scale(.5); }
}

/* ===== Dökülme: taşan bira akıntıları + birikinti ===== */
.spill-fx { position: absolute; left: 0; right: 0; top: 0; bottom: 0; pointer-events: none; }
.pour {
  position: absolute; left: 50%; top: 33%;
  width: 5px; height: 70px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(to bottom, rgba(255,200,90,0) 0%, #ffc24d 18%, #ef8a0c 100%);
  transform-origin: top center; transform: translateX(-50%) scaleY(0);
  opacity: 0;
}
.pour-l { margin-left: -7px; rotate: 8deg; }
.pour-r { margin-left: 7px;  rotate: -8deg; }
.intro-splash.clinked .pour { animation: pourDown .8s ease-in .12s forwards; }
@keyframes pourDown {
  0%   { opacity: 0; transform: translateX(-50%) scaleY(0); }
  20%  { opacity: 1; }
  55%  { opacity: 1; transform: translateX(-50%) scaleY(1); }
  100% { opacity: 0; transform: translateX(-50%) scaleY(1) translateY(8px); }
}
.puddle {
  position: absolute; left: 50%; top: calc(33% + 66px);
  width: 70px; height: 12px; margin-left: -35px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(239,138,12,.55) 0%, rgba(239,138,12,.15) 60%, transparent 75%);
  transform: scale(.2); opacity: 0;
}
.intro-splash.clinked .puddle { animation: puddleGrow .9s ease-out .34s forwards; }
@keyframes puddleGrow {
  0%   { opacity: 0; transform: scale(.2); }
  40%  { opacity: .9; }
  100% { opacity: .5; transform: scale(1.15); }
}

.intro-title {
  font-size: 32px; font-weight: 800; letter-spacing: -.02em;
  background: linear-gradient(180deg, #fff 0%, var(--brand-2) 135%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: 0; transform: translateY(12px);
  animation: introText .65s cubic-bezier(.2,.7,.3,1) forwards 1.05s;
}
.intro-sub {
  font-size: 14px; color: var(--text-dim); font-weight: 500;
  opacity: 0; animation: introText .65s ease forwards 1.3s;
}
@keyframes introText {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .mug-left, .mug-right, .rise, .drop, .impact-ring, .glint, .slosh, .pour, .puddle,
  .intro-title, .intro-sub, .intro-splash::before { animation-duration: .3s !important; animation-iteration-count: 1 !important; }
}

/* =============================================
   Hacim (cl) Filtresi
   ============================================= */
.volume-filter {
  display: flex; gap: 8px; overflow-x: auto;
  padding: 2px 18px 10px;
  scrollbar-width: none;
  position: sticky;
  top: calc(var(--safe-top) + 118px);
  z-index: 19;
  background: linear-gradient(to bottom, rgba(5,5,8,.96) 70%, rgba(5,5,8,0));
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}
.volume-filter::-webkit-scrollbar { display: none; }
.vol-chip {
  flex: 0 0 auto;
  padding: 7px 14px;
  background: var(--bg-elev);
  color: var(--text-dim);
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 12.5px; font-weight: 600;
  cursor: pointer; white-space: nowrap;
  transition: all .15s; letter-spacing: -.01em;
}
.vol-chip:active { transform: scale(.95); }
.vol-chip.active {
  background: var(--brand); color: #1a0e02;
  border-color: var(--brand);
}
.vol-tag {
  align-self: flex-start;
  font-size: 10.5px; font-weight: 700;
  color: var(--brand-2);
  background: var(--brand-soft);
  border: 1px solid var(--brand-glow);
  padding: 1px 7px; border-radius: 100px;
  letter-spacing: .01em;
}

/* =============================================
   ETA bildirimi (tahmini teslimat)
   ============================================= */
.eta-notice {
  background: rgba(59,130,246,.10);
  border: 1px solid rgba(59,130,246,.32);
  color: #93c5fd;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 12.5px; font-weight: 500;
  margin: 8px 0; line-height: 1.5;
}

/* =============================================
   En çok birlikte alınanlar (öneriler)
   ============================================= */
.reco-block {
  margin: 14px 0 4px;
  padding: 14px 0 4px;
  border-top: 1px solid var(--line-soft);
}
.reco-title {
  font-size: 13.5px; font-weight: 700; color: var(--text);
  margin: 0 0 10px; letter-spacing: -.01em;
}
.reco-row {
  display: flex; gap: 10px; overflow-x: auto;
  padding-bottom: 6px; scrollbar-width: none;
}
.reco-row::-webkit-scrollbar { display: none; }
.reco-card {
  flex: 0 0 122px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px; cursor: pointer;
  display: flex; flex-direction: column; gap: 6px;
  transition: border-color .15s, transform .1s;
}
.reco-card:active { transform: scale(.97); }
.reco-img {
  width: 100%; aspect-ratio: 1 / 1;
  background: var(--bg-elev-2);
  border-radius: 10px; overflow: hidden;
  position: relative;
  display: grid; place-items: center;
}
.reco-img img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .3s ease;
}
.reco-img img.loaded { opacity: 1; }
.reco-ph {
  position: absolute; inset: 0;
  font-size: 30px; display: grid; place-items: center;
}
.reco-name {
  font-size: 12px; font-weight: 600; color: var(--text);
  line-height: 1.25; min-height: 30px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.reco-name em { font-style: normal; color: var(--brand-2); font-weight: 700; }
.reco-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: auto; }
.reco-price { font-size: 12.5px; font-weight: 700; color: var(--brand-2); }
.reco-add {
  flex: 0 0 auto;
  width: 28px; height: 28px; border-radius: 50%;
  border: 0; background: var(--brand); color: #1a0e02;
  font-size: 18px; font-weight: 700; line-height: 1;
  cursor: pointer; display: grid; place-items: center;
}
.reco-add:active { transform: scale(.9); }

/* =============================================
   Premium çizgi-ikonlar (SVG) — boyut & renk
   ============================================= */
.icn {
  width: 20px; height: 20px;
  display: inline-block; vertical-align: -.18em;
  flex: 0 0 auto;
  stroke: currentColor; fill: none;
}
/* Marka logosu */
.brand-logo { color: var(--brand); }
.brand-logo .icn { width: 22px; height: 22px; vertical-align: middle; }
/* Header arama düğmesi */
.icon-btn .icn { width: 18px; height: 18px; vertical-align: middle; color: var(--text); }
/* Kategori çipleri — ikon renk metinden gelir (aktif çipte koyulaşır) */
.cat-chip .icn { width: 16px; height: 16px; }
.cat-chip:not(.active) .icn { color: var(--brand); }     /* pasif çipte altın vurgu */
.cat-chip.active .icn { color: var(--brand-ink); }
/* Ürün görsel placeholder ikonu */
.product .ph .ph-fallback .icn { width: 40%; height: 40%; color: var(--brand); opacity: .55; stroke-width: 1.3; }
.sheet-product .ph-lg .ph-fallback .icn { width: 38%; height: 38%; color: var(--brand); opacity: .6; stroke-width: 1.3; }
.reco-ph .icn { width: 30px; height: 30px; color: var(--brand); opacity: .55; }
/* Bölüm etiketleri & form ikonları */
.section-label .icn { width: 15px; height: 15px; color: var(--brand); vertical-align: -.2em; }
.location-btn .icn { width: 17px; height: 17px; vertical-align: -.22em; margin-right: 5px; color: var(--brand); }
.location-btn:hover .icn { color: var(--brand-2); }
.reco-title .icn { width: 16px; height: 16px; color: var(--brand); vertical-align: -.2em; margin-right: 2px; }
.ml-section-title .icn { width: 15px; height: 15px; color: var(--brand); vertical-align: -.2em; }
/* Ödeme seçenekleri — ikon metnin üstünde */
.pay-opt span .icn { width: 22px; height: 22px; margin-bottom: 5px; color: var(--text-dim); }
.pay-opt input:checked + span .icn { color: var(--brand-2); }
/* Gönder butonu (WhatsApp) */
.wa-icon .icn { width: 20px; height: 20px; vertical-align: middle; }
/* Kapalı saat ayı, VIP kilidi, karşılama yıldızı */
.shop-closed-banner .cb-icon { color: var(--brand-2); display: grid; place-items: center; }
.shop-closed-banner .cb-icon .icn { width: 26px; height: 26px; }
.vip-card .vip-logo { color: var(--brand); }
.vip-card .vip-logo .icn { width: 38px; height: 38px; }
.welcome-emoji { color: var(--brand-2); }
.welcome-emoji .icn { width: 54px; height: 54px; }

/* =============================================
   Header aksiyonları
   ============================================= */
.header-actions { display: flex; align-items: center; gap: 8px; }

/* =============================================
   "Tümü" görünümü — kategoriye göre yatay raflar
   ============================================= */
.products.is-rails {
  display: block !important;
  padding: 4px 0 0 !important;
}
.cat-section { margin: 0 0 8px; }
.cat-section-head {
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  background: transparent; border: 0;
  padding: 10px max(14px, env(safe-area-inset-left)) 10px max(14px, env(safe-area-inset-right));
  color: var(--text); text-align: left;
  cursor: pointer; font: inherit;
}
.cat-section-icon {
  width: 36px; height: 36px;
  border-radius: 11px;
  display: grid; place-items: center;
  background: var(--brand-soft);
  border: 1px solid var(--brand-glow);
  color: var(--brand-2);
}
.cat-section-icon .icn { width: 20px; height: 20px; }
.cat-section-title { font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.cat-section-count {
  font-size: 11px; font-weight: 700; color: var(--text-mute);
  background: var(--bg-elev); border: 1px solid var(--line-soft);
  padding: 2px 8px; border-radius: 100px;
}
.cat-section-arrow {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 600; color: var(--text-mute);
  transition: color .15s, transform .18s;
}
.cat-section-arrow .icn { width: 16px; height: 16px; }
.cat-section-head:hover .cat-section-arrow,
.cat-section-head:active .cat-section-arrow { color: var(--brand-2); transform: translateX(3px); }

.cat-row {
  display: flex; gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px max(14px, env(safe-area-inset-left)) 18px max(14px, env(safe-area-inset-right));
  scrollbar-width: none; -ms-overflow-style: none;
  scroll-padding-left: 14px;
}
.cat-row::-webkit-scrollbar { display: none; }
.cat-row .product-rail {
  flex: 0 0 160px;
  scroll-snap-align: start;
}
@media (min-width: 600px) { .cat-row .product-rail { flex-basis: 188px; } }
@media (min-width: 900px) { .cat-row .product-rail { flex-basis: 210px; } }

/* =============================================
   Premium ürün kartı: giriş animasyonu + mikro etkileşimler
   ============================================= */
.product {
  position: relative;
  animation: cardIn .55s cubic-bezier(.2,.8,.3,1.05) both;
  animation-delay: calc(var(--ord, 0) * 32ms);
}
@keyframes cardIn {
  0%   { opacity: 0; transform: translateY(14px) scale(.97); }
  100% { opacity: 1; transform: translateY(0)    scale(1); }
}
/* Sepet güncellemelerinde giriş animasyonu tekrarlanmasın */
.products.no-anim .product { animation: none; }

/* Resim üzerine alt karartma + nazik zoom */
.product .ph::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.26) 100%);
}
/* Görsel üstünde tek seferlik ışık süpürmesi (kart girişinde) */
.product .ph::before {
  content: ""; position: absolute; inset: -20% -40%; z-index: 1; pointer-events: none;
  background: linear-gradient(115deg, transparent 38%, rgba(255,246,220,.10) 50%, transparent 62%);
  transform: translateX(-120%) rotate(0.001deg);
  animation: phSweep 1.1s ease-out both;
  animation-delay: calc(300ms + var(--ord, 0) * 32ms);
}
@keyframes phSweep {
  from { transform: translateX(-120%); }
  to   { transform: translateX(120%); }
}
.products.no-anim .product .ph::before { animation: none; opacity: 0; }
@media (hover: hover) {
  .product:hover {
    border-color: var(--brand-glow);
    background: linear-gradient(180deg, var(--bg-elev-2) 0%, var(--bg-elev) 60%);
    box-shadow: 0 14px 36px rgba(0,0,0,.5), 0 0 0 1px var(--brand-glow);
    transform: translateY(-3px);
  }
  .product:hover .ph img { transform: scale(1.06); }
  .product:hover .price { color: #f6e3b0; }
}
.product:active { transform: translateY(0) scale(.99); }

/* Kategori rozeti — altın gradyan + ince ışık huzmesi + giriş animasyonu */
.product .badge {
  background: linear-gradient(135deg, #ecd49a 0%, #d4b264 55%, #b9954a 100%);
  color: #1a1206;
  box-shadow: 0 6px 14px rgba(212,178,100,.28);
  position: absolute; top: 8px; left: 8px;
  font-size: 10px; font-weight: 800;
  padding: 4px 9px; border-radius: 100px;
  letter-spacing: .14em; text-transform: uppercase;
  overflow: hidden; z-index: 2;
  transform-origin: left center;
  animation: badgeIn .55s cubic-bezier(.2,.8,.3,1.15) both;
  animation-delay: calc(220ms + var(--ord, 0) * 32ms); /* karta hafifçe gecikmeli iner */
}
.products.no-anim .product .badge { animation: none; }
.product .badge::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%);
  transform: translateX(-110%);
  animation: badgeShine 7s ease-in-out infinite;
  /* Tüm kartlar aynı anda parlamasın — sıraya göre kademeli */
  animation-delay: calc(1.2s + var(--ord, 0) * 280ms);
}
@keyframes badgeIn {
  0%   { opacity: 0; transform: translateY(-6px) scale(.85); }
  60%  { opacity: 1; transform: translateY(0) scale(1.04); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes badgeShine {
  0%, 80% { transform: translateX(-110%); }
  92%     { transform: translateX(110%); }
  100%    { transform: translateX(110%); }
}

/* Sepete eklenince kısa altın parıltı (mevcut .added sınıfı) */
.product.added {
  border-color: var(--brand) !important;
  box-shadow: 0 0 0 3px var(--brand-soft), 0 12px 28px rgba(212,178,100,.28) !important;
}

/* Karttan sepet barına uçan altın nokta */
.fly-dot {
  position: fixed; z-index: 90;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f6e3b0, var(--brand) 65%);
  box-shadow: 0 0 14px rgba(212,178,100,.65), 0 2px 8px rgba(0,0,0,.4);
  pointer-events: none;
  transform: translate(-50%, -50%);
}

/* Hareket azaltma tercihinde animasyonları sakinleştir */
@media (prefers-reduced-motion: reduce) {
  .product { animation-duration: .25s !important; animation-delay: 0 !important; }
  .product .badge::after, .product .ph::before { animation: none !important; transition: none !important; }
  .card-foot .qty-control { animation: none !important; }
}
