/* Vatan Sepeti — varsayılan vitrin teması. Ana renk panelden (Site ayarları) gelir: --brand */
:root {
  --brand: #b4232c;
  --brand-ink: #fff;
  --cream: #faf6ef;
  --paper: #fffdf9;
  --ink: #221d18;
  --ink-2: #6b6259;
  --line: #e9e1d4;
  --olive: #5f6b3a;
  --honey: #c98a1b;
  --clay: #a5512f;
  --sky: #355c7d;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --r: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 16px/1.6 var(--sans); color: var(--ink); background: var(--cream); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; letter-spacing: -.015em; line-height: 1.15; margin: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--ink-2); }
.small { font-size: 13px; }
code { background: #f0e9dd; padding: 2px 6px; border-radius: 5px; font-size: 14px; }

.preview-bar { background: #222; color: #ddd; font-size: 12.5px; text-align: center; padding: 5px; }
.announce { background: var(--brand); color: var(--brand-ink); text-align: center; font-size: 13.5px; font-weight: 600; padding: 8px 16px; letter-spacing: .01em; }

/* ---------- üst bilgi ---------- */
.header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.header-row { display: flex; align-items: center; gap: 28px; height: 78px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.logo strong { display: block; font: 600 22px/1 var(--serif); letter-spacing: -.02em; }
.logo small { display: block; font-size: 12px; color: var(--ink-2); margin-top: 3px; }
.logo-mark { width: 40px; height: 40px; border-radius: 10px; background:
  conic-gradient(from 45deg, var(--brand) 0 25%, #fff 0 50%, var(--brand) 0 75%, #fff 0) center / 14px 14px,
  var(--brand); box-shadow: inset 0 0 0 4px var(--brand); }
.search { flex: 1; display: flex; max-width: 520px; margin-left: auto; background: #f4eee4; border-radius: 99px; padding: 4px; border: 1px solid transparent; }
.search:focus-within { border-color: var(--brand); background: #fff; }
.search input { flex: 1; border: 0; background: transparent; padding: 8px 16px; font: 15px var(--sans); outline: none; min-width: 0; }
.search button { border: 0; background: var(--ink); color: #fff; border-radius: 99px; padding: 0 18px; font: 600 14px var(--sans); cursor: pointer; }
.cart-link { display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; padding: 10px 16px; border-radius: 99px; border: 1px solid var(--line); }
.cart-link:hover { border-color: var(--ink); }
.cart-count { background: var(--brand); color: #fff; border-radius: 99px; min-width: 22px; height: 22px; display: grid; place-items: center; font-size: 12px; padding: 0 6px; }
.catnav { display: flex; gap: 6px; padding-bottom: 12px; overflow-x: auto; }
.catnav a { text-decoration: none; font-weight: 600; font-size: 14.5px; padding: 6px 12px; border-radius: 99px; white-space: nowrap; }
.catnav a:hover { background: #f4eee4; }
.catnav a.soft { font-weight: 500; color: var(--ink-2); }
.catnav .spacer { flex: 1; }

/* ---------- düğmeler ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 26px; border-radius: 99px; border: 0; font: 600 15px var(--sans); cursor: pointer; text-decoration: none; transition: transform .1s, filter .15s, background .15s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { filter: brightness(.92); }
.btn-line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-block { width: 100%; }
.btn-add { width: 100%; height: 40px; background: #f4eee4; color: var(--ink); font-size: 14px; }
.btn-add:hover { background: var(--ink); color: #fff; }

.note { margin: 16px 0 0; padding: 12px 16px; border-radius: 12px; font-weight: 500; }
.note-success { background: #e9f2e2; color: #2f4d1d; }
.note-error { background: #fbe6e4; color: #7d1219; }

/* ---------- hero ---------- */
.hero { background: linear-gradient(180deg, var(--paper), var(--cream)); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; min-height: 480px; padding-top: 48px; padding-bottom: 48px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: 18px; }
.hero h1 { font-size: clamp(40px, 5.4vw, 66px); font-weight: 500; letter-spacing: -.03em; line-height: 1.02; max-width: 12ch; }
.hero p { font-size: 18.5px; color: var(--ink-2); max-width: 46ch; margin: 22px 0 30px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-art { position: relative; aspect-ratio: 1; max-width: 460px; justify-self: end; width: 100%; }
.kilim { position: absolute; inset: 0; border-radius: 50% 50% 18px 18px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(60,30,10,.45);
  background:
    linear-gradient(45deg, transparent 46%, rgba(255,255,255,.9) 46% 54%, transparent 54%) 0 0 / 46px 46px,
    linear-gradient(-45deg, transparent 46%, rgba(255,255,255,.9) 46% 54%, transparent 54%) 0 0 / 46px 46px,
    conic-gradient(from 45deg at 50% 50%, var(--honey) 0 25%, var(--brand) 0 50%, var(--olive) 0 75%, var(--clay) 0) 0 0 / 92px 92px;
}
.kilim::after { content: ""; position: absolute; inset: 22px; border-radius: 50% 50% 8px 8px; border: 2px solid rgba(255,255,255,.75); }
.hero-badge { position: absolute; left: -20px; bottom: 36px; background: var(--paper); border-radius: 16px; padding: 14px 20px; box-shadow: 0 12px 30px -10px rgba(40,20,5,.3); }
.hero-badge strong { display: block; font: 600 30px/1 var(--serif); color: var(--brand); }
.hero-badge span { font-size: 13px; color: var(--ink-2); font-weight: 600; }

.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: -1px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--r) var(--r); background: var(--paper); padding: 0; max-width: 1152px; }
.trust div { padding: 20px 22px; border-right: 1px solid var(--line); }
.trust div:last-child { border-right: 0; }
.trust b { display: block; font-family: var(--serif); font-size: 17px; }
.trust span { font-size: 13.5px; color: var(--ink-2); }

/* ---------- bölümler ---------- */
.section { padding-top: 56px; }
main > .section:last-child { padding-bottom: 72px; }
.section-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 22px; }
.section-head h2 { font-size: 32px; font-weight: 500; }
.page-head { padding-top: 40px; }
.page-head h1 { font-size: 46px; font-weight: 500; margin-top: 8px; }
.page-head p { margin: 10px 0 0; max-width: 60ch; }
.crumbs { font-size: 13.5px; color: var(--ink-2); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.empty { padding: 40px 0; color: var(--ink-2); font-size: 17px; }

/* yer tutucu ürün görseli — görsel adresi yoksa */
.ph { display: grid; place-items: center; width: 100%; height: 100%; position: relative; overflow: hidden; }
.ph b { font: 500 84px/1 var(--serif); color: rgba(255,255,255,.92); position: relative; text-shadow: 0 2px 20px rgba(0,0,0,.15); }
.ph::before { content: ""; position: absolute; inset: 0; opacity: .22;
  background: linear-gradient(45deg, transparent 45%, #fff 45% 55%, transparent 55%) 0 0 / 28px 28px, linear-gradient(-45deg, transparent 45%, #fff 45% 55%, transparent 55%) 0 0 / 28px 28px; }
.ph-0, .cat-tile.ph-0 { background-color: var(--olive); }
.ph-1, .cat-tile.ph-1 { background-color: var(--honey); }
.ph-2, .cat-tile.ph-2 { background-color: var(--clay); }
.ph-3, .cat-tile.ph-3 { background-color: var(--sky); }
.ph.mini { width: 64px; height: 64px; border-radius: 12px; }
.ph.mini b { font-size: 28px; }

.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat-tile { position: relative; overflow: hidden; display: flex; flex-direction: column; min-height: 210px; padding: 24px; border-radius: var(--r); color: #fff; text-decoration: none; transition: transform .15s; }
.cat-tile::before { content: ""; position: absolute; right: -40px; bottom: -40px; width: 170px; height: 170px; border-radius: 50%; border: 18px solid rgba(255,255,255,.16); }
.cat-tile:hover { transform: translateY(-3px); }
.cat-name { font: 500 25px/1.1 var(--serif); }
.cat-desc { font-size: 14px; opacity: .88; margin-top: 8px; flex: 1; }
.cat-count { font-weight: 700; font-size: 14px; margin-top: 16px; }

.pgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pcard { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .15s, transform .15s; }
.pcard:hover { box-shadow: 0 16px 32px -18px rgba(60,30,10,.35); transform: translateY(-2px); }
.pcard-media { text-decoration: none; position: relative; aspect-ratio: 4 / 3.4; display: block; background: #f0e9dd; }
.pcard-media img { width: 100%; height: 100%; object-fit: cover; }
.tag { position: absolute; top: 12px; left: 12px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px; }
.tag-dark { background: var(--ink); left: auto; right: 12px; }
.tag.inline { position: static; }
.pcard-body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.kicker { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.pcard h3 { font-size: 18.5px; font-weight: 500; flex: 1; }
.pcard h3 a { text-decoration: none; }
.pcard h3 a:hover { color: var(--brand); }
.price-row { display: flex; align-items: baseline; gap: 10px; margin: 4px 0 10px; }
.price { font-weight: 700; font-size: 18px; font-variant-numeric: tabular-nums; }
.price-row s { color: var(--ink-2); font-size: 14px; }
.price-row.big .price { font: 600 34px var(--serif); }
.price-row.big { align-items: center; margin: 18px 0; }

.story { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 44px 48px; border-radius: 22px; background: var(--ink); color: #f3ece1; position: relative; overflow: hidden; }
.story::after { content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; background: conic-gradient(var(--brand) 0 25%, var(--honey) 0 50%, var(--olive) 0 75%, var(--clay) 0); opacity: .35; }
.story h2 { font-size: 34px; font-weight: 500; max-width: 22ch; margin-bottom: 10px; }
.story p { color: #bfb5a7; margin: 0; max-width: 56ch; }
.story .eyebrow { color: #f0a59f; margin-bottom: 12px; }
.story .btn-line { color: #fff; box-shadow: inset 0 0 0 1.5px #fff; position: relative; z-index: 1; flex: none; }
.story .btn-line:hover { background: #fff; color: var(--ink); }

/* ---------- ürün sayfası ---------- */
.product { padding-top: 28px; }
.product-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; margin-top: 18px; }
.product-media { aspect-ratio: 1; border-radius: 22px; overflow: hidden; background: #f0e9dd; }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-media .ph b { font-size: 180px; }
.product-info h1 { font-size: 42px; font-weight: 500; margin-top: 10px; }
.product-info p { color: #463e36; font-size: 17px; }
.buy { display: flex; gap: 12px; align-items: flex-end; margin: 26px 0 12px; }
.qty span { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.qty input { width: 86px; height: 48px; border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; font: 600 16px var(--sans); background: #fff; }
.stock-ok { color: var(--olive); font-weight: 600; margin: 0; }
.stock-out { color: var(--brand); font-weight: 600; }
.perks { list-style: none; padding: 20px 0 0; margin: 22px 0 0; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 14.5px; display: grid; gap: 6px; }
.perks li::before { content: "◆ "; color: var(--brand); font-size: 10px; vertical-align: 2px; }

.prose { max-width: 760px; padding-top: 40px; padding-bottom: 80px; }
.prose h1 { font-size: 48px; font-weight: 500; margin: 10px 0 24px; }
.prose p { font-size: 18px; color: #3d362f; }

/* ---------- sepet ---------- */
.cart-grid { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; }
.cart-lines { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 8px 22px 22px; }
.cart-line { display: grid; grid-template-columns: 64px 1fr 80px 120px; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-line a { text-decoration: none; }
.cart-line input { height: 42px; border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; font: 600 15px var(--sans); width: 100%; }
.line-total { text-align: right; font-variant-numeric: tabular-nums; }
.cart-lines .btn { margin-top: 18px; height: 42px; }
.summary { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; position: sticky; top: 140px; }
.summary h3 { font-size: 22px; margin-bottom: 14px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 15px; }
.sum-row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; font-size: 18px; }
.summary .btn { margin-top: 14px; }
.checkout-form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; }
.f { display: block; margin-bottom: 16px; }
.f span { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.f input, .f textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font: 15.5px var(--sans); background: #fff; outline: none; }
.f input:focus, .f textarea:focus { border-color: var(--brand); }
.f em { display: block; color: var(--brand); font-style: normal; font-size: 13px; margin-top: 4px; }
.f.bad input, .f.bad textarea { border-color: var(--brand); }

.done { text-align: center; padding: 90px 24px; max-width: 560px; margin: 0 auto; }
.done h1 { font-size: 40px; font-weight: 500; margin: 18px 0 10px; }
.done .btn { margin-top: 18px; }
.done-mark { width: 72px; height: 72px; border-radius: 50%; background: var(--olive); color: #fff; display: inline-grid; place-items: center; font-size: 32px; }
.done-mark.soft { background: #e9e1d4; color: var(--ink-2); }
body.maint { display: grid; place-items: center; min-height: 100vh; }
body.maint .logo { justify-content: center; }

/* ---------- alt bilgi ---------- */
.footer { background: #1d1915; color: #cfc6b9; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-top: 56px; padding-bottom: 40px; }
.footer h4 { color: #fff; font-size: 16px; margin-bottom: 12px; }
.footer a, .footer span { display: block; text-decoration: none; font-size: 14.5px; padding: 3px 0; }
.footer a:hover { color: #fff; }
.logo-light strong { color: #fff; }
.logo-light small { color: #a1978a; }
.footer-bottom { border-top: 1px solid #36302a; padding-top: 18px; padding-bottom: 22px; font-size: 13px; color: #8d8478; }

@media (max-width: 1000px) {
  .pgrid, .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid, .product-grid, .cart-grid { grid-template-columns: 1fr; }
  .hero-art { justify-self: center; max-width: 340px; }
  .trust { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .story { flex-direction: column; align-items: flex-start; padding: 32px; }
}
@media (max-width: 640px) {
  .header-row { flex-wrap: wrap; height: auto; padding-top: 12px; padding-bottom: 10px; gap: 12px; }
  .search { order: 3; max-width: none; flex-basis: 100%; }
  .cart-link { margin-left: auto; }
  .pgrid { gap: 12px; }
  .pcard h3 { font-size: 16px; }
  .cart-line { grid-template-columns: 52px 1fr 64px; } .line-total { grid-column: 2 / -1; text-align: left; }
}
