/* Gönen Kooperatif — site stylesheet */
:root {
  --bg: #f8f4ec;
  --bg-alt: #efe7d8;
  --surface: #ffffff;
  --ink: #241d2b;
  --ink-soft: #5b5163;
  --line: #ddd2c0;
  --primary: #5b2a86;
  --primary-ink: #ffffff;
  --primary-deep: #3d1b5c;
  --accent: #b8893b;
  --wa: #1f8f4e;
  --wa-deep: #17733e;
  --destructive: #b3261e;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-control: 999px;
  --shadow: 0 1px 2px rgba(36, 29, 43, .06), 0 8px 24px rgba(36, 29, 43, .08);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --pad: clamp(20px, 5vw, 72px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.65 var(--sans);
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--primary-deep); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5.4vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; border-radius: var(--radius-sm); }
.skip:focus { left: 8px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 244, 236, .94);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; padding: 12px var(--pad); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand img { width: 48px; height: 48px; object-fit: cover; object-position: 50% 18%; border-radius: 50%; background: #fff; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-text strong { font-family: var(--serif); font-size: 1.12rem; font-weight: 600; }
.brand-text span { font-size: .74rem; color: var(--ink-soft); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .96rem; padding: 8px 12px; border-radius: var(--radius-control); }
.nav a:hover { background: var(--bg-alt); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--primary); }
.nav a.nav-cta { background: var(--primary); color: var(--primary-ink); padding: 9px 18px; margin-left: 6px; }
.nav a.nav-cta:hover { background: var(--primary-deep); color: #fff; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 8px; color: var(--ink); cursor: pointer; }
.menu-toggle svg { width: 28px; height: 28px; }
@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px var(--pad) 20px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav a.nav-cta { margin: 14px 0 0; text-align: center; border-radius: var(--radius-control); border: 0; }
  .brand-text span { display: none; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 600 1rem/1 var(--sans); text-decoration: none; cursor: pointer;
  padding: 15px 26px; border-radius: var(--radius-control); border: 2px solid transparent;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: var(--primary-ink); }
.btn-primary:hover { background: var(--primary-deep); color: #fff; }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); color: inherit; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-deep); color: #fff; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; pointer-events: none; }
.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow::after { content: " →"; }

/* ---------- sections ---------- */
.section { padding: clamp(56px, 9vw, 120px) var(--pad); }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--primary-deep); color: #f3ecf8; }
.section-dark h2, .section-dark h3 { color: #fff; }
.eyebrow { font: 600 .78rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; display: block; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.lead { font-size: 1.18rem; color: var(--ink-soft); max-width: 62ch; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(88vh, 820px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 12, 28, .15) 0%, rgba(20, 12, 28, .35) 45%, rgba(26, 12, 40, .85) 100%); }
.hero-content { position: relative; z-index: 1; padding: 0 var(--pad) clamp(48px, 8vw, 96px); max-width: 1100px; }
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero p { font-size: clamp(1.05rem, 1.6vw, 1.3rem); max-width: 54ch; color: #f1e9f6; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero .btn-primary { background: #fff; color: var(--primary-deep); }
.hero .btn-primary:hover { background: #f1e9f6; }

.page-hero { padding: clamp(48px, 8vw, 104px) var(--pad) clamp(32px, 5vw, 56px); border-bottom: 1px solid var(--line); }
.page-hero h1 { margin-bottom: .25em; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 32px var(--pad); border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font: 600 clamp(2rem, 3.6vw, 3rem)/1 var(--serif); color: var(--primary); margin-bottom: 8px; }
.stat span { color: var(--ink-soft); font-size: .95rem; }
@media (max-width: 800px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 24px var(--pad); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* ---------- split ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.split-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ---------- product grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: clamp(16px, 2.4vw, 32px); }
.tile { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.tile:hover { color: var(--ink); }
.tile-media { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-alt); }
.tile-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.tile:hover .tile-media img { transform: scale(1.04); }
.tile-media .ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-soft); font-size: .9rem; }
.ribbons { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.ribbon { background: #fff; color: var(--primary-deep); font: 600 .74rem/1 var(--sans); padding: 7px 11px; border-radius: var(--radius-control); letter-spacing: .02em; }
.ribbon.out { background: var(--ink); color: #fff; }
.tile-body { padding: 14px 4px 0; }
.tile-body h3 { font-size: 1.16rem; margin: 0 0 4px; }
.price { font-weight: 600; color: var(--ink); }
.price s { color: var(--ink-soft); font-weight: 400; margin-left: 8px; }
.tile-meta { color: var(--ink-soft); font-size: .9rem; margin-top: 2px; }

.toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  font: 500 .95rem/1 var(--sans); padding: 11px 18px; border-radius: var(--radius-control);
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer;
}
.chip:hover { border-color: var(--ink-soft); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip[disabled] { opacity: .4; cursor: not-allowed; text-decoration: line-through; }
.select {
  font: 500 .95rem/1 var(--sans); padding: 11px 38px 11px 16px; border-radius: var(--radius-control);
  border: 1px solid var(--line); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23241d2b' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 14px center;
  color: var(--ink); appearance: none; cursor: pointer;
}
.count { color: var(--ink-soft); font-size: .95rem; }
.state { padding: 64px 0; text-align: center; color: var(--ink-soft); }
.state .btn { margin-top: 16px; }
.is-loading { opacity: .55; transition: opacity .2s; }
.skeleton .tile-media { animation: pulse 1.4s ease-in-out infinite; }
.skeleton .bar { height: 14px; background: var(--bg-alt); border-radius: 4px; margin-top: 12px; width: 70%; animation: pulse 1.4s ease-in-out infinite; }
.skeleton .bar.short { width: 35%; }
@keyframes pulse { 50% { opacity: .5; } }
.more { display: flex; justify-content: center; margin-top: 40px; }

/* ---------- product detail ---------- */
.pdp { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 80px); padding: clamp(28px, 5vw, 64px) var(--pad) clamp(56px, 8vw, 110px); align-items: start; }
.pdp-gallery { display: grid; gap: 12px; position: sticky; top: 96px; }
.pdp-main { aspect-ratio: 1 / 1; border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-alt); }
.pdp-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.thumbs button { width: 76px; height: 76px; padding: 0; border: 2px solid transparent; border-radius: var(--radius-md); overflow: hidden; cursor: pointer; background: var(--bg-alt); }
.thumbs button[aria-pressed="true"] { border-color: var(--primary); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.crumbs { font-size: .9rem; color: var(--ink-soft); margin-bottom: 18px; }
.crumbs a { color: var(--ink-soft); }
.pdp-info h1 { font-size: clamp(2rem, 3.6vw, 3rem); }
.pdp-price { font: 600 1.7rem/1.2 var(--serif); color: var(--primary); margin: 6px 0 24px; }
.pdp-price s { font: 400 1.1rem var(--sans); color: var(--ink-soft); margin-left: 10px; }
.pdp-desc { color: var(--ink-soft); margin-bottom: 28px; }
.pdp-desc p { margin: 0 0 .8em; }
.field { border: 0; padding: 0; margin: 0 0 22px; }
.field legend { font-weight: 600; margin-bottom: 10px; font-size: .95rem; }
.swatch { width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--line); cursor: pointer; padding: 0; }
.swatch[aria-pressed="true"] { outline: 2px solid var(--ink); outline-offset: 3px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius-control); background: var(--surface); }
.stepper button { width: 46px; height: 46px; border: 0; background: none; font-size: 1.3rem; cursor: pointer; color: var(--ink); border-radius: var(--radius-control); }
.stepper button:disabled { opacity: .35; cursor: not-allowed; }
.stepper output { min-width: 36px; text-align: center; font-weight: 600; }
.order-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; margin-top: 8px; }
.order-box .btn { width: 100%; margin-top: 18px; padding: 18px 24px; font-size: 1.05rem; }
.order-note { font-size: .9rem; color: var(--ink-soft); margin: 12px 0 0; }
.blocked { font-size: .92rem; color: var(--ink-soft); margin: 10px 0 0; }
.stock-low { font-size: .9rem; color: var(--accent); font-weight: 600; }
.info-sections details { border-top: 1px solid var(--line); padding: 16px 0; }
.info-sections summary { font-weight: 600; cursor: pointer; }
@media (max-width: 860px) {
  .pdp { grid-template-columns: 1fr; }
  .pdp-gallery { position: static; }
}

/* ---------- cards / projects ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card-num { font: 600 .85rem/1 var(--sans); color: var(--accent); letter-spacing: .1em; display: block; margin-bottom: 14px; }
a.card { text-decoration: none; color: var(--ink); display: block; transition: border-color .15s, transform .15s; }
a.card:hover { border-color: var(--primary); transform: translateY(-2px); color: var(--ink); }

.project { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(28px, 5vw, 72px); padding: clamp(48px, 7vw, 96px) var(--pad); border-bottom: 1px solid var(--line); scroll-margin-top: 80px; }
.project:nth-of-type(even) { background: var(--bg-alt); }
.project-aside img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); margin-top: 20px; }
.project-body { max-width: 70ch; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.tag { font-size: .82rem; padding: 6px 12px; border-radius: var(--radius-control); background: var(--surface); border: 1px solid var(--line); color: var(--ink-soft); }
.signature { font-family: var(--serif); font-style: italic; color: var(--ink-soft); margin-top: 24px; }
@media (max-width: 860px) { .project { grid-template-columns: 1fr; } }

/* ---------- quote ---------- */
.quote { text-align: center; }
.quote blockquote { margin: 0 auto; max-width: 30ch; font: 500 clamp(1.5rem, 3vw, 2.4rem)/1.35 var(--serif); }
.quote cite { display: block; margin-top: 22px; font: 600 .82rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #d9c49a; font-style: normal; }

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 12px; }
.gallery figure { margin: 0; border-radius: var(--radius-md); overflow: hidden; background: var(--bg-alt); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery .wide { grid-column: span 2; }
.gallery .tall { grid-row: span 2; }
@media (max-width: 800px) { .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; } }

/* ---------- partners ---------- */
.partners { display: flex; align-items: center; justify-content: center; gap: clamp(28px, 6vw, 80px); flex-wrap: wrap; }
.partners img { height: 72px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .2s, opacity .2s; }
.partners img:hover { filter: none; opacity: 1; }

/* ---------- people ---------- */
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.person { border-left: 3px solid var(--primary); padding: 6px 0 6px 18px; }
.person b { display: block; font-family: var(--serif); font-size: 1.25rem; font-weight: 600; }
.person span { color: var(--ink-soft); }

/* ---------- lists ---------- */
.principles { counter-reset: p; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 48px; }
.principle { counter-increment: p; padding: 24px 0; border-top: 1px solid var(--line); }
.principle h3::before { content: counter(p, decimal-leading-zero) "  "; color: var(--accent); font-family: var(--sans); font-size: .9rem; font-weight: 700; vertical-align: middle; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding: 10px 0 10px 30px; position: relative; border-bottom: 1px solid var(--line); }
.checklist li::before { content: ""; position: absolute; left: 4px; top: 19px; width: 12px; height: 7px; border-left: 2px solid var(--primary); border-bottom: 2px solid var(--primary); transform: rotate(-45deg); }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(28px, 5vw, 72px); }
.contact-list { list-style: none; padding: 0; margin: 0 0 28px; }
.contact-list li { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-list svg { width: 22px; height: 22px; flex: none; color: var(--primary); margin-top: 3px; }
.contact-list small { display: block; color: var(--ink-soft); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }
.contact-list a { color: var(--ink); font-weight: 500; }
.map { width: 100%; height: 100%; min-height: 380px; border: 0; border-radius: var(--radius-lg); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- cta band ---------- */
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-band h2 { margin: 0; max-width: 20ch; }

/* ---------- footer ---------- */
.site-footer { background: #1d1424; color: #cfc4d8; padding: 64px var(--pad) 28px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: #fff; font-family: var(--sans); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer a { color: #cfc4d8; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-brand strong { display: block; color: #fff; font-family: var(--serif); font-size: 1.3rem; font-weight: 600; margin-bottom: 8px; }
.footer-bottom { margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .85rem; color: #9d90a8; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- floating whatsapp ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 40;
  width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff;
  display: grid; place-items: center; box-shadow: var(--shadow);
}
.wa-float:hover { background: var(--wa-deep); color: #fff; }

.prose { max-width: 72ch; }
.error { color: var(--destructive); }

/* ---------- icons ---------- */
.ico-wa { display: inline-block; width: 20px; height: 20px; flex: none; background: currentColor; -webkit-mask: url(/img/wa.svg) center / contain no-repeat; mask: url(/img/wa.svg) center / contain no-repeat; }
.wa-float .ico-wa { width: 30px; height: 30px; }