/* ===========================================================
   COLD CAKE — stil
   Sade, ferah, profesyonel patisserie estetiği.
   Krem zemin · zarif serif · bol boşluk · rengi pastalar verir.
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
  --bg:       #f6f3ed;   /* porselen krem */
  --bg-2:     #fffdf9;
  --card:     #ffffff;
  --ink:      #26221c;   /* sıcak koyu */
  --ink-soft: #5a5348;
  --muted:    #9a9284;
  --line:     #e7e1d5;
  --line-2:   #efeae0;
  --gold:     #b08a45;   /* bronz-altın, açık zeminde okunur */
  --gold-soft:#c9a45c;
  --radius:   14px;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }

/* ---------- Üst bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px;
  background: rgba(246,243,237,.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .35s ease, box-shadow .35s ease;
}
.topbar.show { border-bottom: 1px solid var(--line); box-shadow: 0 6px 24px rgba(38,34,28,.04); }
.topbar img { width: 34px; height: 34px; border-radius: 50%; }
.topbar .brand {
  font-family: var(--serif); font-size: 22px; font-weight: 600;
  letter-spacing: 3px; color: var(--ink);
}
.topbar-cta {
  margin-left: auto; font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--ink-soft); text-decoration: none;
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px;
  transition: .2s ease;
}
.topbar-cta:hover { color: var(--ink); border-color: var(--gold); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 82svh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 60px 24px 48px;
  background:
    radial-gradient(120% 70% at 50% 0%, #fffdf8 0%, var(--bg) 60%);
}
.hero-inner { max-width: 640px; }
.hero .logo {
  width: 104px; height: 104px; margin: 0 auto 26px; border-radius: 50%;
  box-shadow: 0 10px 34px rgba(38,34,28,.14);
}
.hero .eyebrow {
  font-size: 12px; letter-spacing: 4px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 18px;
}
.hero h1 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(50px, 15vw, 104px);
  letter-spacing: clamp(4px, 2vw, 12px); line-height: .96;
  color: var(--ink);
}
.hero .ornament {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  margin: 24px auto; color: var(--gold); font-size: 13px;
}
.hero .ornament span { display: block; width: 60px; height: 1px; background: var(--line); position: relative; }
.hero .ornament span::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, var(--gold-soft)); }
.hero .ornament span:last-child::after { background: linear-gradient(90deg, var(--gold-soft), transparent); }
.hero p.tag {
  margin: 0 auto; max-width: 30ch;
  font-family: var(--serif); font-style: italic;
  font-size: clamp(20px, 5vw, 26px); color: var(--ink-soft);
}
.hero .cta {
  display: inline-block; margin-top: 34px;
  font-family: var(--sans); font-size: 13px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
  border: 1px solid var(--ink); border-radius: 999px; padding: 14px 30px;
  transition: .25s ease;
}
.hero .cta:hover { background: var(--ink); color: var(--bg-2); }

/* giriş animasyonları */
.reveal { opacity: 0; transform: translateY(16px); animation: rise .9s cubic-bezier(.2,.8,.2,1) forwards; }
.reveal.r1 { animation-delay: .10s; }
.reveal.r2 { animation-delay: .30s; }
.reveal.r3 { animation-delay: .42s; }
.reveal.r4 { animation-delay: .58s; }
.reveal.r5 { animation-delay: .70s; }
.reveal.r6 { animation-delay: .88s; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .reveal { animation: none; opacity: 1; transform: none; } }

/* ---------- Koleksiyon girişi ---------- */
.intro { text-align: center; padding: 20px 24px 8px; max-width: 620px; margin: 0 auto; }
.intro-mark { color: var(--gold); font-size: 15px; margin-bottom: 12px; }
.intro h2 { font-family: var(--serif); font-size: clamp(30px, 8vw, 44px); color: var(--ink); letter-spacing: .5px; }
.intro p { margin-top: 14px; color: var(--ink-soft); font-size: 15px; line-height: 1.8; }

/* ---------- Araç çubuğu (arama + filtre) ---------- */
.toolbar {
  position: sticky; top: 58px; z-index: 30;
  margin-top: 18px; padding: 14px 16px 12px;
  background: rgba(246,243,237,.94);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2);
}
.search {
  display: flex; align-items: center; gap: 10px;
  max-width: 560px; margin: 0 auto 12px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px;
  padding: 11px 16px; transition: border-color .2s ease, box-shadow .2s ease;
}
.search:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(176,138,69,.10); }
.search svg { width: 18px; height: 18px; color: var(--muted); flex: 0 0 auto; }
.search input {
  flex: 1; border: none; outline: none; background: transparent;
  font-family: var(--sans); font-size: 15px; color: var(--ink);
}
.search input::placeholder { color: var(--muted); }
.search input::-webkit-search-cancel-button { display: none; }
.search-clear {
  border: none; background: var(--line-2); color: var(--ink-soft);
  width: 22px; height: 22px; border-radius: 50%; cursor: pointer;
  font-size: 12px; line-height: 1; flex: 0 0 auto;
}

.filter {
  display: flex; gap: 8px; overflow-x: auto;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.filter::-webkit-scrollbar { display: none; }

.empty { text-align: center; color: var(--muted); padding: 60px 24px; font-size: 15px; }
.empty b { color: var(--ink); font-weight: 600; }
.chip {
  flex: 0 0 auto;
  font-family: var(--sans); font-size: 13px; font-weight: 500;
  color: var(--ink-soft); background: transparent;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 17px; white-space: nowrap; cursor: pointer;
  transition: .2s ease;
}
.chip:hover { color: var(--ink); border-color: var(--gold); }
.chip.active { color: var(--bg-2); background: var(--ink); border-color: var(--ink); font-weight: 600; }

/* ---------- Grid ---------- */
.section-title {
  font-family: var(--serif); font-size: 28px; color: var(--ink);
  padding: 30px 18px 4px; letter-spacing: .5px;
}
.section-title small {
  display: block; font-family: var(--sans); font-size: 11px; letter-spacing: 2px;
  color: var(--muted); text-transform: uppercase; margin-top: 2px;
}

.grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 16px; padding: 14px 18px 44px;
}
@media (min-width: 620px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
@media (min-width: 980px) { .grid { grid-template-columns: repeat(4, 1fr); max-width: 1200px; margin: 0 auto; } }

.card {
  background: transparent; border: none; cursor: pointer;
  display: flex; flex-direction: column;
}

.thumb {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: 12px; background: var(--line-2);
  box-shadow: 0 8px 22px rgba(38,34,28,.09);
  transition: box-shadow .35s ease, transform .35s ease;
}
.card:hover .thumb { transform: translateY(-5px); box-shadow: 0 22px 46px rgba(38,34,28,.16); }
.thumb img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.thumb img.loaded { opacity: 1; }
.card:hover .thumb img.main { transform: scale(1.06); }
.thumb .lqip { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(14px); transform: scale(1.1); opacity: 1; transition: opacity .5s ease; }
.thumb.done .lqip { opacity: 0; }

/* ince altın iç-çerçeve dokunuşu */
.thumb::after {
  content: ''; position: absolute; inset: 0; border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(176,138,69,.14); pointer-events: none;
}

/* fotoğrafı olmayan ürünler için sade yer tutucu */
.thumb.placeholder {
  display: grid; place-items: center; text-align: center;
  background: linear-gradient(180deg, #fffdf9, #f1ece2);
}
.thumb.placeholder svg { width: 46px; height: 46px; opacity: .8; }
.thumb.placeholder .soon { margin-top: 10px; font-size: 10px; letter-spacing: 2px; color: var(--muted); text-transform: uppercase; }

.card .body { padding: 15px 8px 6px; text-align: center; }
.card h3 {
  font-family: var(--serif); font-weight: 600; font-size: 21px;
  color: var(--ink); line-height: 1.22; letter-spacing: .2px;
}
.card .meta {
  margin-top: 8px; font-size: 10.5px; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--muted); display: flex; justify-content: center; align-items: center; gap: 8px;
}
.card .meta i { color: var(--gold); font-style: normal; font-size: 8px; }

/* ---------- Detay (sheet) ---------- */
.sheet-bg {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(38,34,28,.42); backdrop-filter: blur(3px);
  opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
.sheet-bg.open { opacity: 1; pointer-events: auto; }

.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 61;
  max-height: 92vh; overflow-y: auto;
  background: var(--bg-2);
  border-radius: 22px 22px 0 0;
  transform: translateY(100%); transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.sheet.open { transform: translateY(0); }
@media (min-width: 720px) {
  .sheet {
    left: 50%; right: auto; bottom: auto; top: 50%;
    width: min(560px, 92vw); max-height: 88vh;
    transform: translate(-50%, -46%) scale(.96); opacity: 0;
    border-radius: 18px;
  }
  .sheet.open { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}
.sheet .grab { width: 42px; height: 4px; border-radius: 99px; background: var(--line); margin: 10px auto 0; }
.sheet .sheet-img { aspect-ratio: 4/5; max-height: 44vh; width: 100%; overflow: hidden; }
.sheet .sheet-img img { width: 100%; height: 100%; object-fit: cover; }
.sheet .sheet-img.placeholder { display:grid; place-items:center; background: linear-gradient(180deg,#fffdf9,#f3efe6); aspect-ratio: 16/9; max-height: none; }
.sheet .sheet-img.placeholder svg { width: 60px; height: 60px; opacity: .7; }

.sheet .content { padding: 22px 24px 32px; }
.sheet h2 { font-family: var(--serif); font-size: 32px; color: var(--ink); line-height: 1.1; }
.sheet .cat { font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }

.specs { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
.spec { flex: 1 1 calc(50% - 5px); min-width: 120px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; }
.spec .k { font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.spec .v { font-family: var(--serif); font-size: 22px; color: var(--ink); }

.ingredients-title { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin: 8px 0 6px; }
.ingredients { color: var(--ink-soft); font-size: 14px; line-height: 1.7; }

.order-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-top: 24px; width: 100%;
  background: var(--ink); color: var(--bg-2);
  font-family: var(--sans); font-weight: 600; font-size: 16px;
  border: none; border-radius: 12px; padding: 15px; cursor: pointer;
  text-decoration: none; transition: background .2s ease;
}
.order-btn:hover { background: #3a3529; }
.order-btn svg { width: 20px; height: 20px; }

.close-x {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,253,249,.9); border: 1px solid var(--line);
  color: var(--ink); font-size: 17px; cursor: pointer;
  display: grid; place-items: center; box-shadow: 0 4px 14px rgba(38,34,28,.12);
}

/* ---------- Depolama çubuğu ---------- */
.storage-bar {
  display: flex; justify-content: center; gap: 24px; flex-wrap: wrap;
  padding: 16px; margin: 8px 18px 0;
  border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2);
  font-size: 12px; color: var(--muted);
}
.storage-bar b { color: var(--gold); }

/* ---------- Sabit WhatsApp butonu (sağ alt köşe) ---------- */
.wa-fab {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 50;                      /* detay paneli (60/61) bunun üstünde kalsın */
  height: 56px; min-width: 56px;
  display: inline-flex; align-items: center; justify-content: center; gap: 0;
  padding: 0 13px;                   /* 13 + ikon 30 + 13 = 56 → tam daire */
  border-radius: 999px;
  background: #25D366; color: #fff;   /* WhatsApp'ın kendi yeşili — tanınırlık için */
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(37,211,102,.34), 0 3px 10px rgba(38,34,28,.16);
  animation: fabIn .5s .9s cubic-bezier(.2,.8,.2,1) both;
  transition: transform .25s ease, box-shadow .25s ease;
}
.wa-fab svg { width: 30px; height: 30px; flex: 0 0 auto; }
.wa-fab:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(37,211,102,.44), 0 4px 12px rgba(38,34,28,.18); }
.wa-fab:active { transform: scale(.96); }

/* etiket: sadece masaüstünde, üstüne gelince açılır */
.wa-label {
  font-family: var(--sans); font-size: 14px; font-weight: 600;
  white-space: nowrap; overflow: hidden;
  max-width: 0; opacity: 0;
  transition: max-width .3s ease, opacity .25s ease, margin-left .3s ease;
}
@media (hover: hover) and (min-width: 720px) {
  .wa-fab:hover .wa-label { max-width: 190px; opacity: 1; margin-left: 10px; }
}

@keyframes fabIn { from { opacity: 0; transform: translateY(14px) scale(.9); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .wa-fab { animation: none; } }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 46px 20px 60px; text-align: center; background: var(--bg-2);
  margin-top: 40px;
}
footer .logo { width: 70px; height: 70px; border-radius: 50%; margin: 0 auto 14px; box-shadow: 0 8px 24px rgba(38,34,28,.12); }
footer .fname { font-family: var(--serif); font-size: 26px; letter-spacing: 4px; color: var(--ink); }
footer .contact { margin: 20px 0; display: flex; flex-direction: column; gap: 12px; align-items: center; }
footer .contact a { color: var(--ink-soft); text-decoration: none; font-size: 15px; display: inline-flex; gap: 8px; align-items: center; }
footer .contact a:hover { color: var(--gold); }
footer .contact svg { width: 18px; height: 18px; }
footer .note { font-size: 12px; color: var(--muted); margin-top: 18px; line-height: 1.8; }
footer .cc { margin-top: 16px; font-size: 11px; letter-spacing: 2px; color: var(--muted); }
