/* ============================================================
   Anfelia Çikolata – Yeni sade/modern tasarım
   ============================================================ */

:root {
  --bg:        #faf7f1;
  --bg-soft:   #f2ebdf;
  --surface:   #ffffff;
  --ink:       #241d17;
  --ink-soft:  #6f6157;
  --ink-faint: #9a8c80;
  --accent:    #ad7438;
  --accent-deep:#8a5a28;
  --accent-soft:#f6ecdd;
  --line:      #e8dfd0;
  --ok:        #2e7d4f;
  --danger:    #b3392e;
  --radius:    14px;
  --shadow-sm: 0 1px 2px rgba(36,29,23,.05), 0 4px 14px rgba(36,29,23,.06);
  --shadow-md: 0 8px 28px rgba(36,29,23,.10);
  --header-h:  76px;
}

* { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* NOT: html'e overflow:hidden EKLEME — position:sticky'yi kırar */
}
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* overflow-x:clip → sticky/fixed'ı kırmadan yatay taşmayı engeller */
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1,h2,h3,h4 { font-family: 'Fraunces', Georgia, serif; font-weight: 600; line-height: 1.15; margin: 0 0 .5em; }
p { margin: 0 0 1rem; }
button { font-family: inherit; cursor: pointer; }
.container { width: min(1160px, 100% - 40px); margin-inline: auto; }
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ─── Üst bant ─────────────────────────────────────────────── */
.topbar { background: var(--ink); color: #ecdfc8; font-size: .82rem; }
.topbar-inner {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; padding: 9px 0; letter-spacing: .01em;
}
.topbar-text strong { color: #f3c98b; font-weight: 600; }
.topbar-sub { color: #b9a98c; }
@media (max-width: 640px) { .topbar-sub { display: none; } }

/* ─── Navigasyon ───────────────────────────────────────────── */
.site-nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(250,247,241,.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s ease;
  /* NOT: overflow:hidden EKLEME — backdrop-filter position:fixed için
     yeni bir "containing block" oluşturur; overflow:hidden ile birleşince
     nav-menu (position:fixed) görünmez olur. */
}
.site-nav.is-scrolled { box-shadow: var(--shadow-sm); }
.nav-inner {
  display: flex; align-items: center; gap: 24px; height: var(--header-h);
  min-width: 0;
  /* overflow:hidden KULLANMA — fixed dropdown'ı keser */
}
/* nav-brand: logo ve marka adı daima sabit ve görünür */
.nav-brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-logo { height: 42px; width: auto; flex-shrink: 0; }
.nav-brand-name {
  font-family: 'Fraunces', serif; font-size: 1.25rem; font-weight: 600; letter-spacing: -.01em;
  white-space: nowrap; color: var(--ink);
}
.nav-brand-name em { font-style: normal; color: var(--accent); }
.nav-menu { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-link {
  padding: 8px 12px; border-radius: 8px; font-size: .9rem; font-weight: 500;
  color: var(--ink-soft); white-space: nowrap; transition: color .15s, background .15s;
}
.nav-link:hover { color: var(--ink); background: rgba(36,29,23,.05); }
.nav-link.is-active { color: var(--accent-deep); background: var(--accent-soft); }
.nav-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.cart-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: #fff; border: none;
  padding: 9px 16px; border-radius: 999px; font-size: .88rem; font-weight: 500;
  transition: transform .15s, background .15s;
}
.cart-btn:hover { background: var(--accent-deep); transform: translateY(-1px); }
.cart-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.cart-btn-label { }
.cart-badge {
  min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: .72rem; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .2s;
}
.cart-badge.has-items { animation: pop .3s ease; }
@keyframes pop { 50% { transform: scale(1.25); } }
.nav-burger { display: none; background: none; border: none; padding: 8px; flex-shrink: 0; cursor: pointer; }
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }
.nav-burger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.is-active span:nth-child(2) { opacity: 0; }
.nav-burger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-burger { display: flex; flex-direction: column; justify-content: center; align-items: center; }
  .nav-menu {
    display: none; /* Açılana kadar gizli */
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9999;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--surface);
    border-bottom: 2px solid var(--accent);
    padding: 12px 18px 16px;
    box-shadow: 0 12px 32px rgba(36,29,23,.18);
  }
  .nav-menu.is-open {
    display: flex !important; /* Tıklanınca kesin açılır */
  }
  .nav-link { padding: 12px; border-radius: 8px; font-size: .95rem; }
  .nav-actions { margin-left: auto; }
  .nav-inner { gap: 10px; }
  .nav-brand-name { font-size: 1.12rem; }
}

@media (max-width: 480px) {
  .nav-inner { gap: 8px; }
  .nav-logo { height: 36px; }
  .nav-brand-name { font-size: 1.02rem; }
  .cart-btn { padding: 9px 12px; }
}

@media (max-width: 360px) {
  .nav-logo { height: 32px; }
  .nav-brand-name { font-size: 0.92rem; }
}



/* ─── Toast ────────────────────────────────────────────────── */
.toast {
  position: fixed; top: calc(var(--header-h) + 14px); left: 50%; transform: translateX(-50%);
  z-index: 90; padding: 12px 22px; border-radius: 999px; font-size: .9rem; font-weight: 500;
  box-shadow: var(--shadow-md); animation: rise .3s ease;
}
.toast-ok { background: var(--ok); color: #fff; }
.toast-error { background: var(--danger); color: #fff; }
.toast.is-leaving { opacity: 0; transform: translateX(-50%) translateY(-8px); transition: .35s; }
@keyframes rise { from { opacity: 0; transform: translateX(-50%) translateY(10px); } }

/* ─── Butonlar ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  font-size: .9rem; font-weight: 600; letter-spacing: .01em;
  transition: transform .15s, background .15s, border-color .15s, color .15s;
}
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--accent-deep); transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover:not(:disabled) { background: var(--accent-deep); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover:not(:disabled) { border-color: var(--ink); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 14px; font-size: .82rem; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-link { background: none; border: none; color: var(--accent-deep); padding: 0; font-weight: 600; }
.btn-quantity {
  width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--surface); font-size: 1.1rem; line-height: 1; color: var(--ink);
}
.btn-quantity:hover { border-color: var(--ink); }

/* ─── Hero ─────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; background: var(--ink); color: #f4ead6; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(900px 400px at 85% 20%, rgba(173,116,56,.28), transparent 60%),
              radial-gradient(700px 400px at 10% 90%, rgba(173,116,56,.16), transparent 60%);
}
.hero-inner { position: relative; z-index: 1; padding: 50px 0 60px; max-width: 680px; min-width: 0; }
.hero-kicker {
  display: inline-block; font-size: .74rem; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: #e2b172; border: 1px solid rgba(226,177,114,.4);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 14px;
  /* Çok dar ekranda taşmasın */
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hero h1, .hero h2.hero-title { font-size: clamp(2.2rem, 4.5vw, 3.2rem); font-weight: 600; letter-spacing: -.02em; }
.hero p { color: #cfc0a8; font-size: 1.02rem; max-width: 520px; margin: 14px 0 24px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn-ghost-light { border: 1px solid rgba(255,255,255,.32); color: #fff; background: rgba(255,255,255,.06); }
.btn-ghost-light:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.5); }

/* ─── Hero slider (5 slayt) ────────────────────────────────── */
.hero-slider { background: #17110c; }
.hero-slider::after { display: none; }

.hero-slides { position: relative; min-height: 420px; }

.hero-slide {
  position: absolute; inset: 0;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0; visibility: hidden;
  transition: opacity .9s ease;
}
.hero-slide.is-active { opacity: 1; visibility: visible; z-index: 1; }

/* Fotoğrafın üstünü okunur kılan koyu gradyan */
.hero-slide::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(18,12,8,.95) 0%, rgba(18,12,8,.86) 38%, rgba(18,12,8,.48) 66%, rgba(18,12,8,.12) 100%),
    linear-gradient(to top, rgba(18,12,8,.72) 0%, rgba(18,12,8,0) 42%);
}

.hero-slide .hero-inner {
  position: relative; z-index: 2;
  padding: 48px 0 64px; max-width: 640px;
}

.hero-price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 12px 0 18px; }
.hero-price-now { font-family: "Fraunces", Georgia, serif; font-size: 1.5rem; color: #e2b172; }
.hero-price-old { font-size: 1rem; color: #a99a80; text-decoration: line-through; }
.hero-weight { font-size: .88rem; color: #cfc0a8; }

/* Oklar */
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 46px; height: 46px; display: grid; place-items: center;
  border-radius: 50%; cursor: pointer; padding: 0;
  color: #fff; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.22);
  transition: background .2s ease, border-color .2s ease, opacity .2s ease;
}
.hero-arrow:hover { background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.45); }
.hero-arrow svg { width: 22px; height: 22px; }
.hero-arrow-prev { left: 20px; }
.hero-arrow-next { right: 20px; }

/* Alt noktalar */
.hero-dots { position: absolute; left: 0; right: 0; bottom: 40px; z-index: 5; }
.hero-dots-inner { display: flex; gap: 9px; }
.hero-dot {
  width: 30px; height: 3px; padding: 0; cursor: pointer;
  border: 0; border-radius: 2px;
  background: rgba(255,255,255,.28);
  transition: background .25s ease, width .25s ease;
}
.hero-dot:hover { background: rgba(255,255,255,.6); }
.hero-dot.is-active { background: #e2b172; width: 46px; }

.section-search { padding: 10px 0 0; background: var(--bg); }
.hero-search { display: flex; gap: 12px; align-items: center; justify-content: center; padding: 14px 16px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.hero-search-field { position: relative; flex: 1; }
.hero-search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--ink-faint); }
.hero-search-input { padding-left: 44px; border-radius: 999px; }
.hero-search-btn { border-radius: 999px; padding: 11px 22px; }
@media (max-width: 720px) {
  .hero-slides { min-height: 380px; }
  .hero-slide .hero-inner { padding: 34px 0 48px; }
  .hero-arrow { width: 38px; height: 38px; }
  .hero-arrow-prev { left: 10px; }
  .hero-arrow-next { right: 10px; }
  .hero-dots { bottom: 14px; }
  .hero-dot { width: 22px; }
  .hero-dot.is-active { width: 34px; }
}

/* Hareket azaltma tercihi: otomatik geçiş kapalı kalır, JS de durur */
@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
}

/* ─── Bölüm başlıkları ─────────────────────────────────────── */
.section { padding: 70px 0; }
/* En çok satanlar bölümü: koleksiyondan ayrışsın, marka bandına doğru akış yapsın */
.section-bestsellers {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg) 0%, var(--accent-soft) 100%);
}
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 30px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -.01em; margin: 0; }
.section-head .section-sub { color: var(--ink-faint); font-size: .92rem; margin-top: 6px; }
.section-head .section-link { color: var(--accent-deep); font-weight: 600; font-size: .9rem; }

/* ─── Kategori filtreleri ──────────────────────────────────── */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink-soft); font-size: .86rem; font-weight: 500;
  transition: .15s;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ─── Ürün kartı grid ──────────────────────────────────────── */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px 20px; }
@media (max-width: 1024px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  { .grid { grid-template-columns: repeat(2, 1fr); gap: 18px 14px; } }
@media (max-width: 420px)  { .grid { grid-template-columns: 1fr 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; position: relative;
  transition: transform .18s, box-shadow .18s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card-media {
  position: relative; aspect-ratio: 4 / 3; background: var(--bg-soft); overflow: hidden;
}
.card-media img { width: 100%; height: 100%; object-fit: contain; transition: transform .35s; }
.card:hover .card-media img { transform: scale(1.03); }
.tag-badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px; color: #fff; background: var(--ink);
}
.tag-badge.t-sale  { background: var(--danger); }
.tag-badge.t-new   { background: var(--ok); }
.tag-badge.t-vegan { background: #6b8f3a; }
.tag-badge.t-premium { background: var(--accent-deep); }
.tag-badge.t-silver, .tag-badge.t-gold { background: var(--ink); }
/* En çok satanlar sıra rozeti */
.rank-badge {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: .82rem; font-weight: 700; font-variant-numeric: tabular-nums;
  color: #fff; background: var(--accent-deep);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .22);
}
.rank-badge.is-top { background: var(--accent); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.card-body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-cat { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); font-weight: 600; }
.card-title { font-size: 1.02rem; font-weight: 600; margin: 0; line-height: 1.3; }
.card-title a:hover { color: var(--accent-deep); }
.card-meta { font-size: .78rem; color: var(--ink-faint); }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 10px; }
.price { font-weight: 700; font-size: 1.05rem; }
.price small { display: block; font-size: .78rem; font-weight: 500; color: var(--ink-faint); }
.price .old { color: var(--ink-faint); text-decoration: line-through; font-weight: 500; margin-right: 6px; }
.price .now { color: var(--ink); }
.add-btn {
  border: 1px solid var(--ink); background: transparent; color: var(--ink);
  border-radius: 999px; padding: 8px 14px; font-size: .8rem; font-weight: 600;
  transition: .15s;
}
.add-btn:hover { background: var(--ink); color: #fff; }
.stock-low { font-size: .72rem; color: var(--danger); font-weight: 600; }

/* ─── Alt marka bloğu ──────────────────────────────────────── */
.brandband { background: var(--accent-soft); }
.brandband-inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; padding: 54px 0; }
@media (max-width: 720px) { .brandband-inner { grid-template-columns: 1fr; } }
.brandband-item { display: flex; gap: 16px; align-items: flex-start; }
.brandband-icon { font-size: 1.5rem; }
.brandband-item h3 { font-size: 1.05rem; margin-bottom: 4px; }
.brandband-item p { color: var(--ink-soft); font-size: .88rem; margin: 0; }

/* ─── Ürün detay ───────────────────────────────────────────── */
.detail { padding: 44px 0 70px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
@media (max-width: 860px) { .detail-grid { grid-template-columns: 1fr; } }
.detail-media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 480px;
  margin-inline: auto;
}
.detail-media img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  display: block;
}

/* ─── Ürün görsel galerisi (ana görsel + küçük önizlemeler) ── */
.detail-gallery { width: 100%; max-width: 480px; margin-inline: auto; }
.detail-gallery .detail-media { margin-inline: 0; }
.detail-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.detail-thumb {
  width: 76px; height: 76px; border-radius: 10px; overflow: hidden;
  border: 2px solid var(--line); background: var(--bg-soft);
  padding: 0; cursor: pointer; transition: border-color .15s;
}
.detail-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.detail-thumb:hover { border-color: var(--accent); }
.detail-thumb.is-active { border-color: var(--accent-deep); }
.breadcrumb { font-size: .8rem; color: var(--ink-faint); margin-bottom: 22px; }
.breadcrumb a:hover { color: var(--accent-deep); }
.detail h1 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 10px; }
.detail-cat { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-deep); font-weight: 700; margin-bottom: 8px; }
.detail-price { display: flex; align-items: baseline; gap: 12px; margin: 16px 0 6px; }
.detail-price .now { font-size: 1.7rem; font-weight: 700; }
.detail-price .old { color: var(--ink-faint); text-decoration: line-through; font-size: 1.05rem; }
.detail-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin: 18px 0; }
.detail-meta dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-faint); font-weight: 600; }
.detail-meta dd { margin: 2px 0 0; font-size: .9rem; }
.detail-desc { color: var(--ink-soft); }
.detail-actions { display: flex; gap: 12px; align-items: flex-end; margin-top: 22px; flex-wrap: wrap; }
.qty-stepper { display: inline-flex; align-items: center; gap: 6px; }
.qty-input {
  width: 54px; height: 34px; text-align: center; border: 1px solid var(--line); border-radius: 8px;
  font-size: .95rem; font-weight: 600; background: var(--surface); color: var(--ink);
}
.qty-input::-webkit-inner-spin-button { opacity: 1; }
.detail-accordion { margin-top: 30px; border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-head {
  width: 100%; background: none; border: none; text-align: left; padding: 16px 2px;
  font-size: 1rem; font-weight: 600; color: var(--ink); display: flex; justify-content: space-between;
}
.acc-head::after { content: "+"; color: var(--accent); font-weight: 500; }
.acc-item.is-open .acc-head::after { content: "–"; }
.acc-body { display: none; padding: 0 2px 18px; color: var(--ink-soft); font-size: .92rem; white-space: pre-line; }
.acc-item.is-open .acc-body { display: block; }

/* ─── Sepet ────────────────────────────────────────────────── */
.page-wrap { padding: 48px 0 72px; }
.page-title { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 6px; }
.page-sub { color: var(--ink-faint); margin-bottom: 28px; }
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 34px; align-items: start; }
@media (max-width: 860px) { .cart-layout { grid-template-columns: 1fr; } }
.cart-list { display: flex; flex-direction: column; gap: 14px; }
.cart-row {
  display: grid; grid-template-columns: 84px 1fr auto; gap: 16px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px;
}
.cart-row img { width: 84px; height: 84px; object-fit: contain; border-radius: 10px; background: var(--bg-soft); }
.cart-row-title { font-weight: 600; font-size: .98rem; }
.cart-row-title a:hover { color: var(--accent-deep); }
.cart-row-meta { font-size: .8rem; color: var(--ink-faint); margin-top: 2px; }
.cart-row-price { font-weight: 700; text-align: right; }
.cart-row-controls { display: flex; gap: 10px; align-items: center; margin-top: 8px; }
.cart-remove { background: none; border: none; color: var(--ink-faint); font-size: .82rem; text-decoration: underline; padding: 0; }
.cart-remove:hover { color: var(--danger); }
.cart-empty {
  text-align: center; background: var(--surface); border: 1px dashed var(--line);
  border-radius: var(--radius); padding: 70px 20px; color: var(--ink-soft);
}
.cart-empty h2 { margin-bottom: 8px; }
.cart-empty .btn { margin-top: 18px; }

.summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: sticky; top: calc(var(--header-h) + 16px); }
.summary h3 { font-size: 1.15rem; margin-bottom: 16px; }
.summary-row { display: flex; justify-content: space-between; padding: 7px 0; font-size: .92rem; color: var(--ink-soft); }
.summary-row strong { color: var(--ink); }
.summary-total { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 14px; font-size: 1.12rem; }
.summary-total .val { font-size: 1.35rem; font-weight: 700; }
.coupon-box { margin: 14px 0; padding: 14px; background: var(--bg); border-radius: 12px; border: 1px solid var(--line); }
.coupon-box label { font-size: .8rem; font-weight: 600; display: block; margin-bottom: 6px; }
.coupon-line { display: flex; gap: 8px; }
.coupon-line input {
  flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px;
  font-size: .88rem; text-transform: uppercase;
}
.coupon-note { font-size: .78rem; color: var(--ok); margin-top: 8px; }
.coupon-note.is-error { color: var(--danger); }

/* ─── Formlar ──────────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: 6px; }
.form-control {
  width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px;
  font-size: .94rem; font-family: inherit; background: var(--surface); color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.form-control:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(173,116,56,.15); }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .form-row-2 { grid-template-columns: 1fr; } }
textarea.form-control { min-height: 96px; resize: vertical; }
.field-error { color: var(--danger); font-size: .8rem; margin-top: 4px; }

.checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 34px; align-items: start; }
@media (max-width: 900px) { .checkout-layout { grid-template-columns: 1fr; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 18px; }
.panel h2 { font-size: 1.14rem; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.panel h2 .step-num {
  width: 26px; height: 26px; border-radius: 999px; background: var(--ink); color: #fff;
  font-size: .8rem; display: inline-flex; align-items: center; justify-content: center; font-weight: 700;
}
.pm-list { display: flex; flex-direction: column; gap: 10px; }
.pm-option {
  position: relative; display: flex; gap: 14px; align-items: flex-start;
  border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.pm-option:hover { border-color: var(--ink-faint); }
.pm-option.selected { border-color: var(--accent); background: var(--accent-soft); }
.pm-option input { position: absolute; opacity: 0; }
.pm-icon { font-size: 1.35rem; line-height: 1.2; }
.pm-label { font-weight: 600; font-size: .95rem; }
.pm-desc { font-size: .82rem; color: var(--ink-faint); margin-top: 2px; }
.pm-badge { margin-left: auto; font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; color: var(--accent-deep); font-weight: 700; align-self: center; }
.pm-iyzico { margin-left: auto; align-self: center; display: inline-flex; align-items: center; gap: 7px; font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; color: var(--accent-deep); font-weight: 700; }
.pm-iyzico .iyzico-badge-img, .pm-iyzico .iyzico-badge-svg { color: var(--ink); }

/* ─── iyzico güvenli ödeme rozetleri ───────────── */
.iyzico-trust { display: inline-flex; align-items: center; gap: 9px; }
.iyzico-trust-text { font-size: .82rem; color: var(--ink-soft); }
.iyzico-badge-img, .iyzico-badge-svg { display: inline-block; vertical-align: middle; color: var(--ink); }
.pay-trust { margin-top: 14px; padding-top: 13px; border-top: 1px dashed var(--line); display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--ink-soft); font-size: .8rem; flex-wrap: wrap; }
.footer-trust { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 0 6px; color: var(--ink-soft); font-size: .8rem; flex-wrap: wrap; }
.product-trust { display: flex; align-items: center; gap: 9px; margin-top: 10px; color: var(--ink-soft); font-size: .8rem; }
.alert {
  border-radius: 12px; padding: 14px 16px; font-size: .9rem; margin-bottom: 18px;
}
.alert-error { background: #fbebe7; border: 1px solid #f0c9c2; color: var(--danger); }
.alert-ok { background: #e9f4ec; border: 1px solid #c6e3cd; color: var(--ok); }
.alert-note { background: var(--accent-soft); border: 1px solid #ecdcc2; color: var(--accent-deep); }
.alert ul { margin: 4px 0 0; padding-left: 18px; }

/* ─── Sipariş onay / hata ──────────────────────────────────── */
.result { max-width: 640px; margin: 0 auto; text-align: center; padding: 70px 0; }
.result-icon {
  width: 72px; height: 72px; border-radius: 999px; margin: 0 auto 22px;
  display: flex; align-items: center; justify-content: center; font-size: 2rem;
}
.result-icon.ok { background: #e9f4ec; color: var(--ok); }
.result-icon.fail { background: #fbebe7; color: var(--danger); }
.result h1 { font-size: 2rem; margin-bottom: 8px; }
.result .order-no { font-size: 1.15rem; font-weight: 700; color: var(--accent-deep); }
.result-card { text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-top: 26px; }
.result-row { display: flex; justify-content: space-between; padding: 7px 0; font-size: .92rem; color: var(--ink-soft); }
.result-row strong { color: var(--ink); }
.iban {
  background: var(--bg); border: 1px dashed var(--line); border-radius: 12px; padding: 14px 16px;
  font-size: .9rem; margin-top: 14px; text-align: left;
}
.iban code { font-weight: 700; letter-spacing: .03em; }

/* ─── Hakkımızda bandı (vitrin) ────────────────────────────── */
.about { background: var(--bg-soft); }
.about-inner { max-width: 760px; margin: 0 auto; text-align: center; padding: 64px 0; }
.about-inner h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }

/* ─── Footer ───────────────────────────────────────────────── */
.site-footer { background: var(--ink); color: #cfc0a8; margin-top: 0; }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 36px; padding: 56px 0 40px; }
@media (max-width: 900px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-logo-row { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.footer-logo { height: 64px; width: auto; }
.footer-company { font-family: 'Fraunces', serif; font-size: 1.12rem; color: #fff; }
.footer-tag { font-size: .8rem; color: #a99a80; }
.footer-about { font-size: .88rem; line-height: 1.7; margin-top: 8px; max-width: 340px; }
.site-footer h4 { color: #f3c98b; font-size: .92rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 16px; font-family: 'Inter', sans-serif; font-weight: 600; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; font-size: .88rem; }
.site-footer ul a:hover { color: #fff; }
.footer-contact li a:hover { color: #fff; }
.footer-announce { margin-top: 8px; color: #a99a80; }
.footer-announce strong { color: #f3c98b; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,.08); padding: 18px 0; font-size: .8rem; color: #a99a80;
}
.footer-admin { color: #a99a80; }
.footer-admin:hover { color: #fff; }

/* ─── Basit tablo (grilerde yardımcı) ──────────────────────── */
.table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.data th {
  text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .05em;
  color: var(--ink-faint); padding: 13px 16px; border-bottom: 1px solid var(--line); font-weight: 600;
}
table.data td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data tr:last-child td { border-bottom: none; }
table.data tr:hover td { background: var(--bg); }
.badge {
  display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: .74rem; font-weight: 600;
}
.badge-gray { background: #eee8dd; color: #6f6157; }
.badge-ok { background: #e9f4ec; color: var(--ok); }
.badge-warn { background: #fff4e0; color: #96610f; }
.badge-danger { background: #fbebe7; color: var(--danger); }
.badge-info { background: var(--accent-soft); color: var(--accent-deep); }

.empty-note { text-align: center; color: var(--ink-faint); padding: 40px 0; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ============================================================
   MOBİL UYUMLULUK DÜZELTMELERİ
   ============================================================ */

/* ─── Genel: container dar ekranlarda boşluk ───────────────── */
@media (max-width: 480px) {
  .container { width: min(1160px, 100% - 24px); }
  .page-wrap  { padding: 28px 0 52px; }
}

/* ─── Topbar: çok dar ekranda metnin taşmasını önle ────────── */
@media (max-width: 480px) {
  .topbar-inner { justify-content: center; }
  .topbar-text  { text-align: center; font-size: .78rem; }
}

/* ─── Navigasyon: sepet etiketi mobilde gizle ───────────────── */
@media (max-width: 900px) {
  .cart-btn-label { display: none; }
  /* Hamburger butonu dokunma alanı min 44×44 */
  .nav-burger { padding: 11px; min-width: 44px; min-height: 44px; display: flex; flex-direction: column; justify-content: center; }
  /* Sepet butonu: daha kompakt ama yeterli dokunma alanı */
  .cart-btn { padding: 10px 13px; min-height: 44px; }
  /* Nav-inner gap küçülsün */
  .nav-inner { gap: 10px; }
}

/* ─── Buton dokunma alanları (WCAG 2.5.5 – min 44×44 px) ───── */
.btn-sm { padding: 10px 14px; font-size: .82rem; min-height: 44px; }
@media (max-width: 900px) {
  .btn { min-height: 48px; }
}

/* ─── Hero arama kutusu: mobilde dikey ─────────────────────── */
@media (max-width: 600px) {
  .hero-search {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 14px;
  }
  .hero-search-field { width: 100%; }
  .hero-search-btn   { width: 100%; justify-content: center; }
}

/* ─── Hero butonları: dar ekranda tam genişlik ──────────────── */
@media (max-width: 500px) {
  .hero-actions {
    flex-direction: column;
    gap: 10px;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
  /* Hero iç padding küçülsün, kompakt dursun */
  .hero-inner { padding: 30px 0 42px; }
  .hero-slide .hero-inner { padding: 30px 0 46px; }
}

/* ─── Hero: 480px altında yazı küçülsün ────────────────────── */
@media (max-width: 480px) {
  .hero h1, .hero h2.hero-title { font-size: clamp(1.7rem, 6vw, 2.1rem); }
  .hero-arrow { display: none; } /* Nokta navigasyon yeterli */
  .hero-slides { min-height: 380px; }
}

/* ─── Hero: çok küçük ekranda daha da küçült ───────────────── */
@media (max-width: 400px) {
  .hero h1, .hero h2.hero-title { font-size: 1.55rem; }
  .hero-slide .hero-inner { padding: 26px 0 40px; }
  .hero-slides { min-height: 360px; }
}

/* ─── Ürün grid: 360px altında tek kolon ───────────────────── */
@media (max-width: 360px) {
  .grid { grid-template-columns: 1fr; }
}

/* ─── Ürün detay meta tablosu: tek kolon ───────────────────── */
@media (max-width: 560px) {
  .detail-meta { grid-template-columns: 1fr; }
  .detail-actions { flex-direction: column; align-items: stretch; }
  .detail-actions .btn { width: 100%; justify-content: center; }
}

/* ─── Sepet satırları: dar ekranda fiyatı alt satıra al ────── */
@media (max-width: 560px) {
  .cart-row {
    grid-template-columns: 72px 1fr;
    grid-template-rows: auto auto;
  }
  .cart-row-price {
    grid-column: 1 / -1;
    text-align: left;
    padding-top: 4px;
    border-top: 1px dashed var(--line);
    font-size: 1rem;
  }
  .cart-row img { width: 72px; height: 72px; }
}

/* ─── Sepet özeti: mobilde sticky kaldır ───────────────────── */
@media (max-width: 860px) {
  .summary { position: static; }
}

/* ─── Ödeme: özet mobilde formun altına gelsin ─────────────── */
@media (max-width: 900px) {
  .checkout-layout {
    display: flex;
    flex-direction: column;
  }
  /* Sipariş özeti sidebar'ı formun altına */
  .checkout-layout > aside.summary { order: 2; }
  .checkout-layout > div           { order: 1; }
  /* Özeti sticky değil normal akış yap */
  .checkout-layout .summary { position: static; }
}

/* ─── Footer: 520–640 arası tek kolona düşür ───────────────── */
@media (max-width: 640px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-about { max-width: 100%; }
}

/* ─── Footer bottom: tek satır taşıyorsa alt alta ──────────── */
@media (max-width: 480px) {
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; gap: 6px; }
}

/* ─── Sipariş sonucu sayfası ────────────────────────────────── */
@media (max-width: 560px) {
  .result { padding: 40px 0; }
  .result h1 { font-size: 1.6rem; }
  .result-card { padding: 16px; }
}

/* ─── Tablo: dar ekranda yatay kaydırma ipucu ───────────────── */
@media (max-width: 600px) {
  .table-wrap { -webkit-overflow-scrolling: touch; }
  table.data th, table.data td { padding: 10px 12px; font-size: .82rem; }
}

/* ─── Bölüm başlıkları: dar ekran ──────────────────────────── */
@media (max-width: 480px) {
  .section { padding: 44px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ─── Ödeme panel başlığı: çok uzun metin taşmasın ─────────── */
@media (max-width: 480px) {
  .panel h2 { font-size: 1rem; }
  .panel { padding: 16px; }
}

/* ─── Chips (kategori filtreleri): yatay kaydırılabilir ────── */
@media (max-width: 600px) {
  .chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex-shrink: 0; }
}

/* ─── Form row: tel + ad soyad yan yana – küçük ekranda alt alta */
@media (max-width: 480px) {
  .form-row-2 { grid-template-columns: 1fr; }
}

/* ─── Brandband: 520px altında tek kolon (zaten var, genişlet) */
@media (max-width: 520px) {
  .brandband-inner { gap: 20px; padding: 36px 0; }
}

/* ─── Footer sosyal medya ikonları (boşsa gizli) */
.footer-social { display: flex; gap: 12px; margin-top: 14px; }
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: inherit; text-decoration: none;
  transition: background .2s ease, transform .2s ease;
}
.footer-social a:hover { background: rgba(255, 255, 255, .2); transform: translateY(-2px); }

/* ─── Hesabım sayfası */
.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 820px) { .account-grid { grid-template-columns: 1fr; } }

/* ─── Hukuki sayfalar (KVKK / Mesafeli Satış / İade) */
.panel h2 { margin-top: 26px; }
.panel h2:first-child { margin-top: 0; }
.panel ul { margin: 8px 0 0 18px; padding: 0; }
.panel ul li { margin-bottom: 6px; }
.panel p { margin: 8px 0; }

/* ─── Yüzen WhatsApp Butonu ───────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 54px;
  height: 54px;
  background-color: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: transform .2s ease, box-shadow .2s ease;
  text-decoration: none;
}
.whatsapp-float:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
  color: #fff;
}
.whatsapp-float .whatsapp-label { display: none; }
@media (max-width: 640px) {
  .whatsapp-float { bottom: 18px; right: 18px; width: 48px; height: 48px; }
}

/* ─── Ürün Detayında WhatsApp Butonu ──────────────── */
.btn-whatsapp {
  background-color: #25D366;
  color: #fff;
  border-color: #25D366;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
}
.btn-whatsapp:hover {
  background-color: #20bd5a;
  border-color: #20bd5a;
  color: #fff;
}

/* ─── AJAX Sepete Ekleme & Rozet Animasyonu ────────── */
.cart-badge.is-pulse {
  animation: cartBadgePop 0.45s ease;
}
@keyframes cartBadgePop {
  0% { transform: scale(1); }
  40% { transform: scale(1.4); }
  100% { transform: scale(1); }
}
.btn.btn-success-state, .add-btn.btn-success-state {
  background: var(--ok) !important;
  color: #fff !important;
  border-color: var(--ok) !important;
}