:root {
  --green: #3f7a12;
  --green-dark: #2b5a08;
  --green-soft: #eef5e4;
  --cream: #fbf8f1;
  --ink: #1f2a16;
  --muted: #6b7262;
  --line: #e7e2d6;
  --red: #d8432b;
  --wa: #25d366;
  --wa-dark: #128c4b;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(31, 42, 22, .06), 0 8px 24px rgba(31, 42, 22, .08);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--cream); line-height: 1.55; }
img { max-width: 100%; display: block; }
a { color: var(--green); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; margin: 0; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.ic { width: 1.2em; height: 1.2em; flex: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .8em 1.3em; border-radius: 999px; border: 0; cursor: pointer;
  font: 600 1rem/1.1 var(--sans); text-decoration: none; transition: transform .15s, background .15s, box-shadow .15s;
}
.btn:active { transform: scale(.97); }
.btn-sm { padding: .6em 1em; font-size: .92rem; }
.btn-block { width: 100%; }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 6px 16px rgba(37, 211, 102, .3); }
.btn-wa:hover { background: var(--wa-dark); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--green-soft); }
.btn-ghost { background: var(--green-soft); color: var(--green-dark); padding: .8em; }
.btn-ghost:hover { background: #e1edd2; }

/* ---------- header ---------- */
.topbar { background: var(--green-dark); color: #e9f3dc; text-align: center; font-size: .82rem; padding: .45em 1em; }
.header { position: sticky; top: 0; z-index: 50; background: rgba(251, 248, 241, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 1rem; height: 64px; }
.brand { display: flex; align-items: center; gap: .55rem; color: var(--ink); text-decoration: none; font: 700 1.3rem var(--serif); }
.nav { margin-left: auto; display: flex; gap: 1.6rem; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav a:hover { color: var(--green); }
@media (max-width: 820px) {
  .nav { display: none; }
  .header .btn { margin-left: auto; }
}

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(78vh, 680px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: #2a2a22; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.55), rgba(0,0,0,0) 75%), linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.7) 100%); }
.hero-content { position: relative; z-index: 1; padding: 4rem 0 3.5rem; max-width: 700px; margin-left: max(16px, (100% - 1200px) / 2); }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .8rem; font-weight: 700; color: #d9f0b8; margin: 0 0 .6rem; }
.hero h1 { font-size: clamp(2.6rem, 8vw, 5rem); text-shadow: 0 2px 20px rgba(0,0,0,.35); }
.hero-lead { font-size: clamp(1.05rem, 2.4vw, 1.3rem); margin: 1rem 0 1.8rem; color: #f3f3ee; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- features ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: -2rem; position: relative; z-index: 2; }
.feature { display: flex; gap: .8rem; align-items: center; background: #fff; border-radius: var(--radius); padding: 1rem 1.1rem; box-shadow: var(--shadow); }
.feature .ic { width: 2.2rem; height: 2.2rem; padding: .45rem; border-radius: 12px; background: var(--green-soft); color: var(--green); }
.feature strong { display: block; font-size: .98rem; }
.feature span { color: var(--muted); font-size: .85rem; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); gap: .6rem; } .feature { padding: .8rem; } }
@media (max-width: 420px) { .feature span { display: none; } }

/* ---------- sections ---------- */
.section-head { text-align: center; margin-bottom: 1.6rem; }
.section-head h2 { font-size: clamp(2rem, 5vw, 2.8rem); }
.section-head p { color: var(--muted); margin: .4rem 0 0; }
.products { padding: 4.5rem 0 3rem; }

/* ---------- toolbar ---------- */
.toolbar { position: sticky; top: 64px; z-index: 20; background: var(--cream); padding: .75rem 0; margin-bottom: 1rem; }
.search { display: flex; align-items: center; gap: .6rem; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 0 1.1rem; max-width: 520px; margin: 0 auto .8rem; color: var(--muted); }
.search:focus-within { border-color: var(--green); box-shadow: 0 0 0 4px rgba(63, 122, 18, .12); }
.search input { flex: 1; border: 0; outline: 0; background: transparent; font: inherit; padding: .8rem 0; color: var(--ink); min-width: 0; font-size: 1rem; }
.chips { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; padding: 2px; justify-content: safe center; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: .5rem .95rem; font: 600 .9rem var(--sans); cursor: pointer; transition: all .15s; }
.chip span { color: var(--muted); font-weight: 500; margin-left: .15rem; }
.chip:hover { border-color: var(--green); }
.chip.is-active { background: var(--green); border-color: var(--green); color: #fff; }
.chip.is-active span { color: #d9f0b8; }
/* Telefonda arama kutusu yukarı kayar, yalnızca kategori düğmeleri yapışkan kalır. */
@media (max-width: 700px) {
  .toolbar { top: -4px; padding-top: 10px; }
  .search { height: 48px; margin-bottom: 10px; }
}

/* ---------- product grid ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
@media (max-width: 1024px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .grid { grid-template-columns: repeat(2, 1fr); gap: .75rem; } }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(31,42,22,.06), 0 16px 32px rgba(31,42,22,.12); }
.card[hidden] { display: none; }
.card-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.card-media { position: relative; flex: none; aspect-ratio: 1; overflow: hidden; background: var(--green-soft); }
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-noimg { width: 100%; height: 100%; }
.card.is-out .card-media img { filter: grayscale(.6); opacity: .75; }
.badge { position: absolute; left: .6rem; top: .6rem; padding: .3em .65em; border-radius: 999px; font-size: .75rem; font-weight: 700; color: #fff; }
.badge-sale { background: var(--red); }
.badge-out { background: rgba(31, 42, 22, .82); top: auto; bottom: .6rem; }
.card-body { padding: .85rem 1rem 1rem; display: flex; flex-direction: column; gap: .15rem; flex: 1; }
.card-title { font: 600 1rem/1.3 var(--sans); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; min-height: 2.6em; }
.card-size { margin: 0; color: var(--muted); font-size: .85rem; min-height: 1.55em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.price { margin: auto 0 0; padding-top: .45rem; display: flex; align-items: baseline; flex-wrap: wrap; gap: .1rem .45rem; }
.price-now { font-size: 1.15rem; color: var(--green-dark); }
.price-old { color: var(--muted); font-size: .9rem; }
.empty { text-align: center; color: var(--muted); padding: 3rem 1rem; }
@media (max-width: 700px) { .card-body { padding: .7rem .75rem .8rem; } .card-title { font-size: .93rem; } .price-now { font-size: 1.05rem; } }

/* ---------- steps ---------- */
.steps-section { background: var(--green-soft); padding: 4rem 0; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.steps li { background: #fff; border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.steps span { display: inline-grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--green); color: #fff; font-weight: 700; margin-bottom: .8rem; }
.steps strong { display: block; font-size: 1.1rem; }
.steps p { margin: .35rem 0 0; color: var(--muted); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.5rem; padding: 4.5rem 0; align-items: start; }
.about h2 { font-size: clamp(2rem, 5vw, 2.6rem); margin-bottom: 1rem; }
.about p { font-size: 1.12rem; color: #3b4433; }
.contact-card { background: #fff; border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: .9rem; }
.contact-card h3 { font-size: 1.4rem; }
.contact-card > a, .contact-card > span { display: flex; align-items: center; gap: .7rem; color: var(--ink); text-decoration: none; font-weight: 500; }
.contact-card > a:hover { color: var(--green); }
.contact-card .ic { color: var(--green); }
.socials { display: flex; gap: .6rem; padding-top: .3rem; }
.socials a { display: grid; place-items: center; width: 2.8rem; height: 2.8rem; border-radius: 50%; background: var(--green-soft); color: var(--green-dark); }
.socials a:hover { background: var(--green); color: #fff; }
@media (max-width: 820px) { .about { grid-template-columns: 1fr; gap: 1.5rem; padding: 3.5rem 0; } }

.footer { background: var(--ink); color: #c9cfbf; text-align: center; padding: 1.6rem 0 5.5rem; font-size: .9rem; }

/* ---------- floating whatsapp ---------- */
.wa-float { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(18, 140, 75, .4); transition: transform .2s; }
.wa-float:hover { transform: scale(1.06); }
.wa-float .ic { width: 30px; height: 30px; }

/* ---------- product dialog ---------- */
.pd { width: min(980px, 100%); max-height: min(92vh, 900px); padding: 0; border: 0; border-radius: 22px; background: #fff; color: var(--ink); box-shadow: 0 30px 80px rgba(0,0,0,.35); overflow: hidden; }
.pd::backdrop { background: rgba(20, 26, 14, .6); backdrop-filter: blur(3px); }
.pd[open] { animation: pd-in .22s ease-out; }
@keyframes pd-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.pd-inner { display: grid; grid-template-columns: 1.05fr 1fr; max-height: inherit; }
.pd-close { position: absolute; top: 12px; right: 12px; z-index: 3; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); box-shadow: 0 2px 8px rgba(0,0,0,.15); display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.pd-gallery { background: var(--green-soft); display: flex; flex-direction: column; min-height: 0; }
.pd-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; aspect-ratio: 1; flex: none; }
.pd-track::-webkit-scrollbar { display: none; }
.pd-track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: center; }
.pd-thumbs { display: flex; gap: .5rem; padding: .7rem; overflow-x: auto; }
.pd-thumbs button { flex: none; width: 58px; height: 58px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; background: none; opacity: .7; }
.pd-thumbs button.is-active { border-color: var(--green); opacity: 1; }
.pd-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pd-info { padding: 2rem 2rem 2.2rem; overflow-y: auto; }
.pd-cat { margin: 0 0 .3rem; color: var(--green); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; }
.pd-info h2 { font-size: clamp(1.6rem, 4vw, 2.1rem); padding-right: 2.5rem; }
.pd-size { margin: .3rem 0 0; color: var(--muted); }
.pd-price { margin: 1rem 0; display: flex; align-items: center; flex-wrap: wrap; gap: .5rem .8rem; }
.pd-price .price-now { font-size: 1.8rem; }
.pd-price .price-old { font-size: 1.1rem; }
.pd-price .badge { position: static; }
.pd-variants { display: grid; gap: .5rem; margin-bottom: 1rem; }
.pd-variants:empty { display: none; }
.variant { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 1rem; border: 2px solid var(--line); border-radius: 12px; cursor: pointer; }
.variant:has(input:checked) { border-color: var(--green); background: var(--green-soft); }
.variant input { accent-color: var(--green); margin-right: .5rem; }
.variant b { color: var(--green-dark); }
.variant s { color: var(--muted); font-size: .85rem; margin-right: .4rem; }
.pd-actions { display: flex; gap: .6rem; margin-bottom: 1.4rem; }
.pd-actions .btn-wa { flex: 1; font-size: 1.05rem; padding: 1em; }
.pd-desc { white-space: pre-line; color: #3b4433; margin: 0 0 1.2rem; }
.pd-info h3 { font: 700 1rem var(--sans); margin-bottom: .5rem; }
.pd-benefits { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.pd-benefits li { position: relative; padding-left: 1.6rem; color: #3b4433; }
.pd-benefits li::before { content: ""; position: absolute; left: 0; top: .3em; width: 1.05rem; height: 1.05rem; border-radius: 50%; background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233f7a12' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 65% no-repeat; }
.out-note { margin: -.4rem 0 1rem; color: var(--red); font-weight: 600; }

@media (max-width: 760px) {
  .pd { width: 100%; max-width: 100%; max-height: 94dvh; margin: auto 0 0; border-radius: 22px 22px 0 0; }
  .pd[open] { animation: pd-up .25s ease-out; }
  .pd-inner { display: block; overflow-y: auto; max-height: 94dvh; }
  .pd-track { aspect-ratio: 4 / 3.4; }
  .pd-info { padding: 1.3rem 1.2rem calc(1.6rem + env(safe-area-inset-bottom)); overflow: visible; }
}
@keyframes pd-up { from { transform: translateY(40px); opacity: .4; } }
body.has-dialog { overflow: hidden; }

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