/* Öne Geç CMS — "Vitrin" teması: e-ticaret görünümü (ürün-öncelikli).
   Serin açık gri zemin, beyaz yüzeyler, görsel-baskın ürün kartları, kategori
   karoları, sabit filtre çubuğu, Inter. Fiyat/sepet YOK — CTA "Teklif Al / WhatsApp".
   --accent site başına base.html içinde :root'ta atanır (varsayılan #2563EB). */

:root {
  --bg: #F7F8FA;
  --surface: #FFFFFF;
  --ink: #0F172A;
  --muted: #64748B;
  --line: #E6E9EE;
  --accent-dark: color-mix(in oklab, var(--accent), black 18%);
  --tint: color-mix(in oklab, var(--accent), white 88%);
  --tint-soft: color-mix(in oklab, var(--accent), white 94%);
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 6px 20px rgba(15, 23, 42, .05);
  --shadow-lift: 0 6px 16px rgba(15, 23, 42, .08), 0 18px 40px rgba(15, 23, 42, .10);
  --r-lg: 14px;
  --r-md: 10px;
  --r-sm: 8px;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px;
  line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
h1, h2, h3 { font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; overflow-wrap: break-word; }
.mono { font-weight: 700; font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; }
.muted { color: var(--muted); }
.dot { color: var(--accent); }
.accent { color: var(--accent); }
.text-link { color: var(--accent); text-decoration: none; font-weight: 700; }
.text-link:hover { text-decoration: underline; }

/* ---------- düğmeler ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font); font-weight: 700; font-size: 14px; letter-spacing: 0.02em;
  padding: 12px 24px; min-height: 46px; border-radius: var(--r-md); border: 1px solid transparent;
  background: transparent; color: var(--ink); text-decoration: none; cursor: pointer;
  transition: transform 150ms var(--ease), box-shadow 150ms var(--ease),
    background 150ms var(--ease), border-color 150ms var(--ease), color 150ms var(--ease); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--accent), transparent 74%); }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px);
  box-shadow: 0 8px 22px color-mix(in srgb, var(--accent), transparent 66%); }
.btn-ghost { background: var(--surface); color: var(--accent); border-color: var(--line); box-shadow: var(--shadow); }
.btn-ghost:hover { border-color: var(--accent); transform: translateY(-1px); }
.btn-sm { padding: 9px 18px; min-height: 42px; font-size: 13px; }

.wa-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--accent); position: relative; flex-shrink: 0; }
.wa-dot::after { content: ""; position: absolute; left: 5px; top: 5px; width: 8px; height: 8px;
  border: 2px solid #fff; border-radius: 50%; border-bottom-color: transparent; transform: rotate(45deg); }
.btn-primary .wa-dot { background: #fff; }
.btn-primary .wa-dot::after { border-color: var(--accent); border-bottom-color: transparent; }

/* ---------- üst bar ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.logo { font-weight: 800; font-size: 18px; letter-spacing: -0.01em; text-decoration: none; }
.site-header nav { display: flex; gap: 24px; align-items: center; }
.site-header nav a:not(.btn) { text-decoration: none; font-size: 14px; font-weight: 600; color: var(--muted);
  padding: 8px 0; transition: color 150ms var(--ease); }
.site-header nav a:not(.btn):hover { color: var(--accent); }
.site-header nav a.btn-primary, .site-header nav a.btn-primary:hover { color: #fff; }
.site-header nav a.btn-ghost, .site-header nav a.btn-ghost:hover { color: var(--accent); }
.nav-toggle, .nav-toggle-box { display: none; }

/* ---------- shop hero (kompakt, ürün-öncelikli) ---------- */
.shop-hero { padding: 64px 0 40px; text-align: center; }
.shop-hero .eyebrow { margin: 0 auto 20px; }
.shop-hero h1 { font-size: clamp(36px, 5.4vw, 60px); line-height: 1.05; max-width: 16ch; margin: 0 auto; }
.shop-hero p.lede { margin: 18px auto 28px; }
.shop-hero .hero-ctas { justify-content: center; }
p.lede { font-size: 18px; font-weight: 500; color: var(--muted); max-width: 56ch; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; background: var(--tint); color: var(--accent-dark);
  font-size: 12px; letter-spacing: 0.08em; padding: 7px 15px; border-radius: 999px; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.eyebrow b { font-weight: 800; color: inherit; }
.eyebrow a { color: inherit; }

/* ---------- kategori karoları ---------- */
.cat-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat-tile { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 20px 22px; text-decoration: none; box-shadow: var(--shadow);
  transition: transform 160ms var(--ease), box-shadow 160ms var(--ease), border-color 160ms var(--ease); }
.cat-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: var(--accent); }
.cat-tile .cat-name { font-weight: 800; font-size: 16px; letter-spacing: -0.01em; }
.cat-tile .cat-go { width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%; background: var(--tint);
  color: var(--accent-dark); display: flex; align-items: center; justify-content: center; font-weight: 800;
  transition: background 160ms var(--ease), color 160ms var(--ease); }
.cat-tile:hover .cat-go { background: var(--accent); color: #fff; }

/* ---------- bölümler ---------- */
section { padding: 64px 0; }
section.pt-0 { padding-top: 8px; }
section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.page-head { padding: 48px 0 12px; }
.page-head h1 { font-size: clamp(30px, 4.6vw, 48px); }
.page-head .eyebrow { margin-bottom: 16px; }
.sec-head { margin-bottom: 32px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.sec-head h2 { font-size: clamp(24px, 3.4vw, 34px); }
.sec-head p { color: var(--muted); font-size: 15px; font-weight: 500; }
.sec-head p:empty { display: none; }

/* ---------- ürün gridi + kartlar (görsel-baskın) ---------- */
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; padding: 0 0 16px; text-decoration: none; display: flex; flex-direction: column;
  box-shadow: var(--shadow); transition: transform 170ms var(--ease), box-shadow 170ms var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.card h3 { font-size: 15.5px; font-weight: 700; letter-spacing: -0.01em; margin: 14px 16px 0; line-height: 1.35; }
.card p { color: var(--muted); font-size: 13.5px; margin: 6px 16px 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .price { color: var(--accent); font-weight: 800; margin: 8px 16px 0; font-size: 15px; }
.card .card-cta { margin: 12px 16px 0; color: var(--accent); font-size: 12px; letter-spacing: 0.06em;
  transition: gap 150ms var(--ease); }
.card:hover .card-cta { color: var(--accent-dark); }
.card-img { aspect-ratio: 1 / 1; background-size: cover; background-position: center; background-color: #EEF1F5; }
/* ürün kartı görseli: beyaz zeminde tam sığdır (contain) */
.card-img.product { background-size: contain; background-repeat: no-repeat; background-position: center;
  background-color: #fff; border-bottom: 1px solid var(--line); }
.card-img.empty { display: flex; align-items: center; justify-content: center; color: var(--muted);
  font-size: 12px; letter-spacing: 0.08em; }
.card-img.tall { aspect-ratio: 4 / 3; margin-bottom: 20px; border: 1px solid var(--line); border-radius: var(--r-md); }
.card-img.wide { aspect-ratio: 21 / 9; margin-bottom: 28px; border: 1px solid var(--line); border-radius: var(--r-lg); }

/* ---------- ürün filtre (sabit hap çubuğu) ---------- */
.filter { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; position: sticky; top: 72px; z-index: 20;
  padding: 14px 0; background: color-mix(in srgb, var(--bg), transparent 8%);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.filter a { display: inline-flex; align-items: center; text-decoration: none; color: var(--muted);
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 16px; min-height: 40px; font-weight: 700; font-size: 13.5px;
  transition: color 150ms var(--ease), border-color 150ms var(--ease), background 150ms var(--ease); }
.filter a.on, .filter a:hover { color: #fff; border-color: var(--accent); background: var(--accent); }

/* ---------- hizmet kartları (kullanılırsa) ---------- */
.plates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.plate { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 28px; box-shadow: var(--shadow); text-decoration: none; display: flex; flex-direction: column; gap: 12px;
  transition: transform 170ms var(--ease), box-shadow 170ms var(--ease); }
.plate:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.plate h3 { order: 1; font-size: 17px; font-weight: 800; }
.plate p { order: 2; flex: 1; color: var(--muted); font-size: 14.5px; font-weight: 500; }
.plate .spec { order: 3; align-self: flex-start; background: var(--tint-soft); border: 1px solid var(--tint);
  color: var(--accent-dark); font-size: 12px; font-weight: 800; padding: 6px 13px; border-radius: 999px; }
.plate .more { order: 4; color: var(--accent); font-size: 13px; font-weight: 800; letter-spacing: 0.04em; }
.svc-ico { width: 48px; height: 48px; border-radius: 12px; background: var(--tint); flex-shrink: 0; }

/* ---------- neden biz ---------- */
.why { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.why > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 28px; display: grid; grid-template-columns: 46px 1fr; column-gap: 20px; row-gap: 6px;
  align-content: start; box-shadow: var(--shadow); }
.why .no { grid-row: 1 / span 2; width: 46px; height: 46px; border-radius: 12px;
  background: var(--tint); border: 1px solid var(--tint); color: var(--accent-dark);
  font-size: 15px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.why h3 { font-size: 18px; }
.why p { color: var(--muted); font-size: 15px; font-weight: 500; }

/* ---------- iş defteri (kullanılırsa) ---------- */
.ledger { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ledger-row { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 26px 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; }
.ledger-row > span:first-child { align-self: flex-start; font-size: 12px; font-weight: 800;
  color: var(--accent-dark); background: var(--tint); padding: 6px 13px; border-radius: 999px; }
.ledger-row > span:first-child:empty { display: none; }
.ledger-row > span:nth-child(2) { font-size: 18px; font-weight: 800; line-height: 1.3; }
.ledger-row .where { font-size: 13px; font-weight: 700; color: var(--muted); }
.ledger-row .where:empty { display: none; }
.ledger-quote { grid-column: 1 / -1; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border-radius: var(--r-lg); padding: 36px 40px; font-size: clamp(18px, 2.2vw, 23px); font-weight: 800; line-height: 1.35; }

/* ---------- blog ---------- */
.post-list { display: grid; gap: 14px; }
.post-row { display: grid; grid-template-columns: 120px 1fr 2fr; gap: 24px; align-items: baseline;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 20px 24px; box-shadow: var(--shadow); text-decoration: none;
  transition: transform 170ms var(--ease), box-shadow 170ms var(--ease); }
.post-row:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.post-row .mono { color: var(--muted); }
.post-row h3 { font-size: 18px; transition: color 150ms var(--ease); }
.post-row:hover h3 { color: var(--accent); }
.post-row p { color: var(--muted); font-size: 14.5px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- ürün detayı (galeri + sabit satın-al kutusu) ---------- */
.page-head.compact { padding-bottom: 6px; }
.product-title { font-size: clamp(28px, 4vw, 46px) !important; text-transform: none !important; }
.product-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 44px; align-items: start; }
.product-main { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; overflow: hidden; box-shadow: var(--shadow); }
.product-main img { max-width: 100%; max-height: 100%; object-fit: contain; }
.product-main.empty { color: var(--muted); font-size: 13px; letter-spacing: 0.1em; }
.product-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumb { width: 72px; height: 72px; padding: 4px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-sm); cursor: pointer; transition: border-color 150ms var(--ease); }
.thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.thumb.on, .thumb:hover { border-color: var(--accent); }
.product-info { position: sticky; top: 96px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 26px; display: grid; gap: 16px; }
.product-info .lede { margin: 0; font-size: 16px; }
.price-big { font-size: 26px; font-weight: 800; color: var(--accent); }
.product-ctas { display: grid; gap: 10px; }
.product-ctas .btn { text-align: center; }
.assure { display: grid; gap: 6px; color: var(--muted); font-size: 12px; letter-spacing: 0.04em;
  border-top: 1px solid var(--line); padding-top: 14px; }
.product-desc { margin-top: 64px; }
.related { margin-top: 64px; border-top: 1px solid var(--line); padding-top: 36px; }

/* ---------- düzyazı ---------- */
.prose { max-width: 68ch; }
.prose p { margin-bottom: 1.2em; }
.prose h2, .prose h3 { margin: 1.6em 0 0.6em; }
.prose ul, .prose ol { margin: 0 0 1.2em 1.4em; }
.prose img { border: 1px solid var(--line); border-radius: var(--r-md); }
.prose iframe, .prose video { max-width: 100%; }
.prose table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.prose blockquote { color: var(--muted); font-weight: 600; border-left: 3px solid var(--accent);
  background: var(--tint-soft); border-radius: 0 var(--r-sm) var(--r-sm) 0; padding: 14px 20px; margin: 1.4em 0; }

/* ---------- galeri ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery-grid .card-img { aspect-ratio: 4 / 3; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow); }
.gallery-grid figcaption { margin-top: 10px; color: var(--muted); font-size: 12px; }

/* ---------- form ---------- */
.contact-form { display: grid; gap: 16px; max-width: 560px; }
.contact-form label { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; color: var(--muted); display: grid; gap: 6px; }
.contact-form input, .contact-form textarea { font-family: var(--font); font-size: 16px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 12px 14px; min-height: 46px; transition: border-color 150ms var(--ease), box-shadow 150ms var(--ease); }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--tint); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; }
.alert { padding: 14px 18px; border: 1px solid; border-radius: var(--r-sm); margin-bottom: 24px; }
.alert.ok { border-color: #16A34A; color: #16A34A; background: color-mix(in oklab, #16A34A, transparent 92%); }
.alert.err { border-color: #DC2626; color: #DC2626; background: color-mix(in oklab, #DC2626, transparent 92%); }
.maps { margin-top: 44px; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
.maps iframe { display: block; width: 100%; height: 380px; border: 0; }

/* ---------- CTA bandı + alt bilgi ---------- */
.cta-band { padding: 16px 0 88px; }
.cta-band .wrap { max-width: 1136px; width: calc(100% - 40px);
  background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: #fff; border-radius: var(--r-lg);
  padding: 48px 52px; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(24px, 3.2vw, 30px); }
.cta-band .cta-note { color: rgba(255, 255, 255, .85); margin-top: 8px; font-size: 14px; }
.cta-band .btn-primary { background: #fff; color: var(--accent); }
.cta-band .btn-primary:hover { background: #fff; color: var(--accent-dark); }
footer { background: var(--surface); border-top: 1px solid var(--line); padding: 32px 0; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; color: var(--muted); }

/* ---------- hareket ---------- */
html.js .reveal { opacity: 0; transform: translateY(16px);
  transition: opacity 520ms var(--ease), transform 520ms var(--ease); transition-delay: calc(var(--i, 0) * 60ms); }
html.js .reveal.is-set { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .btn, .plate, .card, .post-row, .cat-tile { transition: none; }
}

/* ---------- tablet ---------- */
@media (max-width: 900px) {
  .product-grid { grid-template-columns: 1fr; }
  .product-info { position: static; }
  .cat-tiles { grid-template-columns: repeat(2, 1fr); }
  .plates { grid-template-columns: repeat(2, 1fr); }
  .why { grid-template-columns: 1fr; }
  .ledger { grid-template-columns: 1fr; }
  .cards-4, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .post-row { grid-template-columns: 1fr; gap: 6px; }
  .form-row { grid-template-columns: 1fr; }

  .nav-toggle { display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; margin-right: -10px; font-size: 22px; cursor: pointer; user-select: none; }
  .site-header nav { display: none; position: absolute; top: 72px; left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    flex-direction: column; align-items: stretch; padding: 12px 32px 20px; gap: 0;
    max-height: calc(100dvh - 72px); overflow-y: auto; }
  .site-header nav a:not(.btn) { padding: 12px 0; font-size: 16px; min-height: 44px; display: flex; align-items: center; }
  .site-header nav .btn { margin-top: 12px; text-align: center; }
  .nav-toggle-box:checked ~ nav { display: flex; }
  .filter { position: static; }
}

/* ---------- telefon ---------- */
@media (max-width: 560px) {
  .wrap { padding: 0 20px; }
  section { padding: 48px 0; }
  .shop-hero { padding: 40px 0 28px; }
  .shop-hero h1 { font-size: clamp(30px, 9vw, 40px); }
  .page-head { padding: 36px 0 12px; }
  .page-head h1 { font-size: clamp(28px, 8vw, 36px); }
  .sec-head { margin-bottom: 24px; }
  .sec-head h2 { font-size: 25px; }
  p.lede { font-size: 16px; }
  .hero-ctas .btn { flex: 1 1 100%; min-height: 50px; }
  .cat-tiles { grid-template-columns: 1fr; }
  .cards-4 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .card h3 { font-size: 14px; margin: 12px 12px 0; }
  .card p, .card .price, .card .card-cta { margin-left: 12px; margin-right: 12px; }
  .product-desc, .related { margin-top: 44px; }
  .cta-band { padding: 8px 0 56px; }
  .cta-band .wrap { padding: 32px 24px; }
  .cta-band .btn { width: 100%; min-height: 50px; }
  .maps iframe { height: 280px; }
}
