:root {
  --green: #62a03f;
  --green-d: #34701b;
  --green-l: #e1f0d6;
  --ink: #0d0d0d;
  --muted: #444c57;
  --line: #cdd3da;
  --bg: #ffffff;
  --bg2: #eceff2;
  --radius: 12px;
  --shadow: 0 2px 4px rgba(0,0,0,.08), 0 8px 22px rgba(0,0,0,.12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-d); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
h2 { font-size: 1.5rem; padding-left: 12px; border-left: 6px solid var(--green); }
h3 { font-size: 1.05rem; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.block { padding-block: 32px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.lead { font-size: 1.1rem; color: var(--muted); }
.plain { list-style: none; margin: 0; padding: 0; }
.plain li { margin: .35em 0; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }

/* Header */
.topbar { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 4px solid var(--green); box-shadow: 0 2px 10px rgba(0,0,0,.12); }
.bar { display: flex; align-items: center; gap: 16px; padding-block: 8px; flex-wrap: wrap; }
.brand { display: block; }
.brand img { height: 74px; width: auto; }
.menu-btn { display: none; padding: 10px 14px; border: 2px solid var(--green-d); background: transparent; color: var(--ink); border-radius: 10px; font: inherit; font-weight: 700; cursor: pointer; }
.navstrip { background: #1f4d0f; border-top: 1px solid rgba(255,255,255,.12); }
.navlist { display: flex; align-items: stretch; flex-wrap: wrap; }
.ni { display: flex; align-items: center; padding: 14px 16px; color: #fff; text-decoration: none; font-weight: 800; font-size: .92rem; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.navlist > .ni + .ni, .navlist > .dd + .ni, .navlist > .ni + .dd, .navlist > .dd + .dd { border-left: 1px solid rgba(255,255,255,.14); }
.ni:hover, .ni[aria-current], .dd.cur > .ni, .dd:hover > .ni { background: var(--green); color: #0b1f05; }
.dd { position: relative; display: flex; align-items: stretch; border-left: 1px solid rgba(255,255,255,.14); }
.dd-toggle { background: transparent; border: 0; color: #fff; padding: 0 12px 0 0; margin-left: -8px; font-size: .8rem; cursor: pointer; }
.dd:hover > .dd-toggle, .dd.cur > .dd-toggle { background: var(--green); color: #0b1f05; }
.dd-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 250px; margin: 0; padding: 6px 0; list-style: none; background: #fff; border-top: 4px solid var(--green); box-shadow: 0 12px 30px rgba(0,0,0,.25); z-index: 30; }
.dd-menu a { display: block; padding: 10px 18px; color: var(--ink); text-decoration: none; font-weight: 600; }
.dd-menu a:hover { background: var(--green-l); color: var(--green-d); }
.dd:focus-within .dd-menu, .dd.open .dd-menu { display: block; }
@media (hover: hover) { .dd:hover .dd-menu { display: block; } }

/* Ürünlerimiz geniş menü */
.navstrip { position: relative; }
.dd.mega-dd { position: static; }
.dd-menu.mega { left: 50%; transform: translateX(-50%); width: min(1100px, calc(100% - 32px)); padding: 22px 8px; background: #fff; }
.dd.open .dd-menu.mega, .dd:focus-within .dd-menu.mega { display: grid; }
@media (hover: hover) { .dd:hover .dd-menu.mega { display: grid; } }
.dd-menu.mega { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0; }
.mega-col { padding: 4px 22px; border-left: 1px solid var(--line); }
.mega-col:first-child { border-left: 0; }
.dd-menu .mega-head { padding: 0 0 12px; font-weight: 800; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink); }
.dd-menu .mega-head:hover { background: none; color: var(--green-d); }
.mega-col ul { list-style: none; margin: 0; padding: 0; }
.mega-col li a { padding: 8px 0; color: #4a525c; font-weight: 500; }
.mega-col li a:hover { background: none; color: var(--green-d); text-decoration: underline; }
.chips.sub { margin-top: -8px; }
.chips.sub .chip { background: var(--bg2); border-style: dashed; }
.chips.sub .chip.on { background: var(--green-d); border-style: solid; }
.search { flex: 1 1 200px; max-width: 360px; margin-left: auto; }
.search input { width: 100%; padding: 10px 14px; border: 2px solid #cdd3da; border-radius: 999px; font: inherit; background: var(--bg2); color: var(--ink); }
.search input:focus { border-color: var(--green); outline: none; }
.cartlink { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; background: var(--green); color: #0b1f05; border-radius: 999px; text-decoration: none; font-weight: 800; white-space: nowrap; }
.cartlink:hover { background: #7ab957; }
.badge { background: #0a0a0a; color: #fff; border-radius: 999px; min-width: 22px; height: 22px; padding: 0 6px; display: inline-grid; place-items: center; font-size: .8rem; font-weight: 700; }
.badge[hidden] { display: none; }

/* Buttons */
.btn { display: inline-block; padding: 12px 22px; border: 2px solid var(--green-d); background: var(--green-d); color: #fff; border-radius: 10px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; text-align: center; }
.btn:hover { background: #336a1c; border-color: #336a1c; }
.btn.ghost { background: transparent; color: var(--green-d); }
.btn.ghost:hover { background: var(--green-l); }
.btn.small { padding: 8px 14px; font-size: .9rem; width: 100%; }
.btn.added { background: var(--ink); border-color: var(--ink); }
.btn:disabled { opacity: .6; cursor: wait; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }

/* Hero */
.hero { background: linear-gradient(120deg, #1f4d0f 0%, #3a7a21 55%, #4f9a2b 100%); color: #fff; border-bottom: 4px solid var(--green); }
.hero .lead { color: #e6f4dc; }
.hero h1 { color: #fff; }
.hero .btn { background: #fff; color: #1f4d0f; border-color: #fff; }
.hero .btn:hover { background: var(--green-l); border-color: var(--green-l); }
.hero .btn.ghost { background: transparent; color: #fff; border-color: #fff; }
.hero .btn.ghost:hover { background: rgba(255,255,255,.15); }
.hero-in { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; padding-block: 56px; }
.eyebrow { text-transform: uppercase; letter-spacing: .2em; font-size: .8rem; font-weight: 700; color: #cdeaa8; margin: 0 0 12px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.steps li { display: flex; gap: 14px; align-items: center; background: #fff; color: var(--ink); padding: 14px 16px; border-radius: var(--radius); box-shadow: 0 6px 18px rgba(0,0,0,.25); font-weight: 600; }
.steps b { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--green-d); color: #fff; display: grid; place-items: center; }

/* Sayfa banner'i */
.page-hero { position: relative; text-align: center; color: #fff; padding: 56px 0 50px; overflow: hidden;
  background:
    radial-gradient(60% 120% at 12% 0%, rgba(140,210,90,.45), transparent 60%),
    radial-gradient(50% 100% at 92% 100%, rgba(20,80,10,.7), transparent 60%),
    radial-gradient(40% 70% at 60% 30%, rgba(255,255,255,.08), transparent 70%),
    linear-gradient(120deg, #123a08 0%, #2f6a1a 50%, #4f9a2b 100%); }
.page-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(115deg, rgba(255,255,255,.035) 0 2px, transparent 2px 22px); }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { margin: 0; color: #fff; font-size: clamp(2rem, 5vw, 3rem); }
.page-hero .rule { display: block; width: 56px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.7); margin: 16px auto 0; }
.page-hero p { margin: 14px auto 0; max-width: 60ch; color: #e6f4dc; font-size: 1.05rem; }

/* Ikonlu ozellik sutunlari */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 28px 32px; }
.feature { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 10px 12px; color: var(--ink); text-decoration: none; border-radius: var(--radius); }
.feature .ico { color: var(--green-d); margin-bottom: 8px; transition: transform .2s; }
.feature h3 { font-size: 1.15rem; margin: 6px 0 4px; }
.feature p { margin: 0; color: var(--muted); max-width: 34ch; }
.feature .more { margin-top: 8px; font-weight: 700; color: var(--green-d); }
a.feature:hover { background: var(--green-l); }
a.feature:hover .ico { transform: translateY(-3px); }
.feature.small .ico { width: 52px; height: 52px; }
.cta-row { margin-top: 36px; display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.prose-rich { font-size: 1.05rem; }
.prose-rich h2 { margin-top: 1.6em; }
.prose-rich ul { padding-left: 1.2em; }
.prose-rich li { margin: .35em 0; }
.support-form { margin-top: 32px; padding: 22px; background: var(--bg2); border-radius: var(--radius); border: 1px solid var(--line); }
.support-form h2 { margin-top: 0; }
.contact-cards { margin-bottom: 20px; }

/* Categories / chips */
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.cat { display: flex; flex-direction: column; gap: 2px; padding: 20px 18px; border: 1px solid #b9d9a6; border-radius: var(--radius); text-decoration: none; color: #12330a; background: var(--green-l); font-weight: 800; font-size: 1.05rem; border-left: 8px solid var(--green-d); }
.cat small { color: #3d5a32; font-weight: 500; }
.cat:hover { background: #d3ebc3; box-shadow: var(--shadow); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 20px; }
.chip { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); background: #fff; font-size: .95rem; }
.chip:hover { border-color: var(--green); }
.chip.on { background: var(--green-d); color: #fff; border-color: var(--green-d); }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 8px; }
.crumbs a { color: var(--muted); }

/* Product cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.card { display: flex; flex-direction: column; border: 1px solid var(--line); border-top: 4px solid var(--green); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.card:hover { box-shadow: var(--shadow); border-color: var(--green-d); }
.card-img { display: block; aspect-ratio: 1; background: var(--bg2); }
.card-img img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.noimg { width: 100%; height: 100%; display: grid; place-items: center; color: var(--muted); font-size: .9rem; min-height: 160px; }
.card-body { padding: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body h3 { margin: 0; }
.card-body h3 a { color: var(--ink); text-decoration: none; }
.card-body h3 a:hover { color: var(--green-d); }
.card-brand { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--green-d); font-weight: 700; }
.clamp { margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .92rem; }
.card-price { margin-top: auto; padding-top: 6px; }
.card-price small { color: var(--muted); }
.quote-only { color: var(--muted); font-weight: 600; }
.card .btn { margin-top: 8px; }
.empty { padding: 40px 20px; text-align: center; background: var(--bg2); border-radius: var(--radius); }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.pager a { min-width: 40px; padding: 8px 12px; text-align: center; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: var(--ink); }
.pager a.on { background: var(--green-d); color: #fff; border-color: var(--green-d); }

/* Product detail */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.detail-img { background: var(--bg2); border-radius: var(--radius); aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; }
.detail-img img { width: 100%; height: 100%; object-fit: contain; padding: 16px; }
.price-box { margin-top: 16px; padding: 14px 16px; background: var(--green-l); border-radius: var(--radius); }
.price { font-size: 1.7rem; }
.prose { white-space: pre-line; max-width: 75ch; }
.specs { width: 100%; max-width: 760px; border-collapse: collapse; }
.specs th, .specs td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { width: 38%; color: var(--muted); font-weight: 600; background: var(--bg2); }

/* Quote page */
.qlist { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 10px; }
.qitem { display: grid; grid-template-columns: 64px 1fr auto auto; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); }
.qthumb { width: 64px; height: 64px; background: var(--bg2); border-radius: 8px; overflow: hidden; display: block; }
.qthumb img { width: 64px; height: 64px; object-fit: contain; }
.qname { font-weight: 700; color: var(--ink); text-decoration: none; }
.qty { display: flex; align-items: center; gap: 6px; }
.qbtn { width: 34px; height: 34px; border: 1px solid var(--line); background: #fff; border-radius: 8px; font-size: 1.1rem; cursor: pointer; }
.qbtn:hover { border-color: var(--green); }
.qval { min-width: 28px; text-align: center; font-weight: 700; }
.qdel { background: none; border: 0; color: #b42318; cursor: pointer; font: inherit; text-decoration: underline; }
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-weight: 600; }
.form input, .form textarea, .form select { padding: 11px 12px; border: 1px solid #c9cfd6; border-radius: 8px; font: inherit; background: #fff; }
.form-error { margin: 0; padding: 10px 12px; background: #fdecea; color: #8a1c14; border-radius: 8px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.contact-list { margin-top: 24px; }

/* Footer */
.foot { background: var(--ink); color: #d7dbe0; margin-top: 40px; padding-top: 36px; border-top: 6px solid var(--green); }
.foot a { color: #d7dbe0; }
.foot h3 { color: #fff; }
.foot .muted { color: #a9b0b8; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.foot-grid img { background: #fff; padding: 6px 10px; border-radius: 8px; margin-bottom: 10px; }
.copy { padding-block: 20px; margin-top: 24px; border-top: 1px solid #2b2f35; font-size: .875rem; color: #a9b0b8; }
.wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 30; background: #1fa855; color: #fff; padding: 12px 18px; border-radius: 999px; font-weight: 700; text-decoration: none; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.wa-float:hover { background: #178a45; }

/* NCB Asistan */
.ai-fab { position: fixed; right: 16px; bottom: 72px; z-index: 31; background: var(--ink); color: #fff; border: 0; padding: 12px 18px; border-radius: 999px; font: inherit; font-weight: 700; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.ai-fab::before { content: "✦ "; color: var(--green); }
.ai-fab:hover { background: #2a2a2a; }
.ai-panel { position: fixed; right: 16px; bottom: 16px; z-index: 40; width: min(390px, calc(100vw - 32px)); height: min(600px, calc(100vh - 32px)); background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 12px 40px rgba(0,0,0,.25); display: flex; flex-direction: column; overflow: hidden; }
.ai-panel[hidden] { display: none; }
.ai-head { display: flex; align-items: center; gap: 6px; padding: 12px 12px 12px 16px; background: var(--ink); color: #fff; }
.ai-title { flex: 1; display: flex; flex-direction: column; line-height: 1.2; }
.ai-title small { color: #b9c0c8; }
.ai-ico { background: transparent; border: 0; color: #fff; font-size: 1.05rem; width: 36px; height: 36px; border-radius: 8px; cursor: pointer; }
.ai-ico:hover { background: #333; }
.ai-ico[hidden] { display: none; }
.ai-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--bg2); }
.ai-msg { max-width: 86%; padding: 9px 13px; border-radius: 14px; white-space: pre-wrap; word-wrap: break-word; line-height: 1.45; }
.ai-msg.bot { background: #fff; border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 4px; }
.ai-msg.user { background: var(--green-d); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.ai-msg.typing { color: var(--muted); font-style: italic; }
.ai-cards { display: grid; gap: 8px; align-self: stretch; }
.ai-card { display: flex; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px; }
.ai-card-img { flex: none; width: 56px; height: 56px; background: var(--bg2); border-radius: 8px; overflow: hidden; display: block; }
.ai-card-img img { width: 56px; height: 56px; object-fit: contain; }
.ai-card-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; align-items: flex-start; }
.ai-card-name { font-weight: 700; color: var(--ink); text-decoration: none; font-size: .95rem; }
.ai-card-info small { color: var(--muted); }
.ai-card-info .btn.small { width: auto; }
.ai-wa { align-self: flex-start; background: #1fa855; border-color: #1fa855; }
.ai-wa:hover { background: #178a45; border-color: #178a45; }
.ai-form { display: flex; gap: 6px; padding: 10px; border-top: 1px solid var(--line); background: #fff; }
.ai-form input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid #c9cfd6; border-radius: 10px; font: inherit; }
.ai-mic { width: 42px; border: 1px solid #c9cfd6; background: #fff; border-radius: 10px; font-size: 1.1rem; cursor: pointer; }
.ai-mic[hidden] { display: none; }
.ai-mic.on { background: #d92d20; border-color: #d92d20; animation: ai-pulse 1s infinite; }
.ai-send { padding: 0 14px; border: 0; background: var(--green-d); color: #fff; border-radius: 10px; font: inherit; font-weight: 700; cursor: pointer; }
.ai-send:disabled { opacity: .6; cursor: wait; }
.ai-note { padding: 0 12px 10px; font-size: .74rem; color: var(--muted); background: #fff; }
@keyframes ai-pulse { 50% { opacity: .6; } }
@media (prefers-reduced-motion: reduce) { .ai-mic.on { animation: none; } }
@media (max-width: 800px) {
  .ai-panel { right: 8px; bottom: 8px; width: calc(100vw - 16px); height: calc(100vh - 16px); height: calc(100dvh - 16px); }
}

@media (max-width: 800px) {
  .hero-in, .detail { grid-template-columns: 1fr; }
  .hero-in { padding-block: 32px; gap: 24px; }
  .foot-grid { grid-template-columns: 1fr; }
  .search { order: 3; max-width: none; flex-basis: 100%; margin-left: 0; }
  .cartlink { margin-left: auto; }
  .menu-btn { display: inline-block; }
  .brand img { height: 56px; }
  .navstrip { display: none; }
  .navstrip.open { display: block; }
  .navlist { flex-direction: column; }
  .ni { padding: 14px 8px; border-left: 0 !important; border-top: 1px solid rgba(255,255,255,.12); }
  .dd { flex-wrap: wrap; border-left: 0; border-top: 1px solid rgba(255,255,255,.12); }
  .dd > .ni { flex: 1; border-top: 0; }
  .dd-toggle { padding: 0 18px; margin: 0; font-size: 1rem; }
  .dd-menu { position: static; display: none; width: 100%; box-shadow: none; border-top: 0; background: #163b0a; }
  .dd:focus-within .dd-menu { display: none; }
  .dd.open .dd-menu { display: block; }
  .dd-menu a { color: #fff; padding: 12px 22px; }
  .dd-menu a:hover { background: var(--green); color: #0b1f05; }
  .dd-menu.mega { left: auto; transform: none; width: 100%; padding: 0; background: #163b0a; }
  .dd.open .dd-menu.mega { display: block; }
  .dd:focus-within .dd-menu.mega { display: none; }
  .dd.open:focus-within .dd-menu.mega { display: block; }
  .mega-col { border-left: 0; padding: 0; }
  .dd-menu .mega-head { color: #cdeaa8; padding: 12px 22px 4px; }
  .mega-col li a { color: #fff; padding: 10px 34px; }
  .mega-col li a:hover { color: #0b1f05; text-decoration: none; background: var(--green); }
  .page-hero { padding: 38px 0 34px; }
  .qitem { grid-template-columns: 56px 1fr; }
  .qitem .qty, .qitem .qdel { grid-column: 2; justify-self: start; }
  .qthumb, .qthumb img { width: 56px; height: 56px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
