/* ==========================================================================
   Güncanlar Piliç Depo - Genel (frontend) stil
   Tema: Beyaz + #fcba03 | Mobil öncelikli
   ========================================================================== */

:root {
  --yellow: #fcba03;
  --yellow-dark: #d99e00;
  --yellow-soft: #fff8e6;
  --bg: #ffffff;
  --text: #1c1c1c;
  --muted: #777777;
  --border: #eeeeee;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.muted { color: var(--muted); }

/* ---- Üst çubuk ---- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--yellow);
  color: #1c1c1c;
  box-shadow: var(--shadow);
}
.topbar .menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  border-radius: 10px;
  padding: 8px;
  cursor: pointer;
  color: #1c1c1c;
}
.topbar .menu-btn:active { background: rgba(255, 255, 255, 0.6); }
.topbar .brand {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.2px;
}
.topbar .brand small {
  display: block;
  font-weight: 500;
  font-size: 11px;
  opacity: 0.75;
}
.topbar .brand a { display: block; }

/* ---- Açılır kapanır sol menü (drawer) ---- */
.drawer {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 290px;
  max-width: 84%;
  background: #fff;
  box-shadow: 2px 0 18px rgba(0, 0, 0, 0.18);
  transform: translateX(-100%);
  transition: transform 0.25s ease;
  z-index: 50;
  display: flex;
  flex-direction: column;
}
.drawer.open { transform: translateX(0); }
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: var(--yellow);
  font-weight: 700;
}
.drawer-head .icon-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: #1c1c1c;
  display: inline-flex;
  padding: 4px;
}
.drawer-list { overflow-y: auto; padding: 6px 0; }
.drawer-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
}
.drawer-list a:active { background: var(--yellow-soft); }
.drawer-list a .ico { color: var(--yellow-dark); flex: 0 0 auto; }
.drawer-list a .txt { flex: 1 1 auto; font-weight: 500; }
.drawer-list a .tag {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 700;
  color: var(--yellow-dark);
  white-space: nowrap;
}
.drawer-empty { padding: 20px 16px; color: var(--muted); font-size: 14px; }

/* ---- Karartma katmanı ---- */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 40;
}
.overlay.show { opacity: 1; visibility: visible; }

/* ---- İçerik ---- */
main { max-width: 720px; margin: 0 auto; }

.hero {
  text-align: center;
  padding: 30px 16px 10px;
}
.hero h1 {
  font-size: 26px;
  letter-spacing: 0.3px;
}
.hero .sub { color: var(--muted); margin-top: 4px; font-size: 14px; }

.phone-card {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 12px 20px;
  background: var(--yellow);
  color: #1c1c1c;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  box-shadow: var(--shadow);
}
.phone-card svg { flex: 0 0 auto; }

.section-title {
  font-size: 16px;
  font-weight: 700;
  padding: 22px 16px 12px;
  border-bottom: 2px solid var(--yellow);
  margin: 8px 12px 0;
  display: inline-block;
}

/* ---- Ürün ızgarası ---- */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 16px;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease;
}
.card:active { transform: scale(0.98); }
.card .thumb {
  aspect-ratio: 1 / 1;
  background: var(--yellow-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--yellow-dark);
}
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .info { padding: 10px 12px 12px; }
.card .name { font-weight: 600; font-size: 14px; }
.card .price {
  color: var(--yellow-dark);
  font-weight: 800;
  margin-top: 6px;
  font-size: 15px;
}

.empty {
  text-align: center;
  color: var(--muted);
  padding: 50px 20px;
}
.empty svg { color: var(--border); margin-bottom: 10px; }

/* ---- Ürün detay sayfası ---- */
.detail { padding: 16px; }
.detail .back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 14px;
}
.detail .photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--yellow-soft);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--yellow-dark);
  box-shadow: var(--shadow);
}
.detail .photo img { width: 100%; height: 100%; object-fit: cover; }
.detail h1 { font-size: 22px; margin-top: 18px; }
.detail .price-big {
  color: var(--yellow-dark);
  font-weight: 800;
  font-size: 26px;
  margin-top: 8px;
}
.btn-order {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
  padding: 16px;
  background: #25d366;      /* WhatsApp yeşili */
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.btn-order:active { filter: brightness(0.95); }
.btn-order svg { flex: 0 0 auto; }
.order-note { text-align: center; color: var(--muted); margin-top: 16px; font-size: 14px; }

/* ---- Alt bilgi ---- */
.foot {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  padding: 28px 16px 34px;
  border-top: 1px solid var(--border);
  margin-top: 20px;
}

/* Geniş ekranlarda 3 sütun */
@media (min-width: 560px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
}
