/* =========================================================
   A. Nuray Oktay — site stilleri
   Renkler logodaki turkuaz ve kitap kapaklarındaki gece mavisinden.
   ========================================================= */
:root {
  --ink: #1b2233;
  --ink-soft: #4a5264;
  --ink-mute: #767d8c;
  --paper: #fbf8f3;
  --paper-2: #f3ede3;
  --paper-3: #efe8dc;
  --line: #e4dccd;
  --night: #0f1d3a;
  --night-2: #16294f;
  --teal: #3fb3c2;          /* logo */
  --teal-deep: #1d7a87;     /* metin/buton için yeterli kontrast */
  --teal-ink: #135f69;
  --gold: #b98f55;
  --danger: #b3261e;
  --ok: #1f7a4d;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(20,25,40,.06), 0 2px 8px rgba(20,25,40,.05);
  --shadow: 0 10px 30px -12px rgba(15,29,58,.28), 0 2px 6px rgba(15,29,58,.06);
  --shadow-book: 0 22px 40px -18px rgba(15,29,58,.55), 0 4px 10px rgba(15,29,58,.12);
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --text-serif: "Lora", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased;
  font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--teal-ink); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--teal-deep); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--night); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

h1, h2, h3, h4 { font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; font-family: var(--serif); font-weight: 600; line-height: 1.12; letter-spacing: -.005em; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }
.eyebrow { font: 600 .74rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--teal-deep); margin: 0 0 14px; display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; }
.lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 60ch; }
.muted { color: var(--ink-mute); }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--teal-deep); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  background: var(--bg); color: var(--fg); font-weight: 600; font-size: .95rem; letter-spacing: .01em;
  text-decoration: none; cursor: pointer; transition: transform .15s ease, background .2s, box-shadow .2s, color .2s;
  white-space: nowrap;
}
.btn:hover { background: var(--teal-ink); color: #fff; transform: translateY(-1px); box-shadow: 0 8px 18px -8px rgba(19,95,105,.6); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-ghost { --bg: transparent; --fg: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--paper-2); color: var(--ink); box-shadow: none; }
.btn-light { --bg: #fff; --fg: var(--night); }
.btn-light:hover { background: var(--paper-2); color: var(--night); }
.btn-outline-light { --bg: transparent; --fg: #fff; border-color: rgba(255,255,255,.35); }
.btn-outline-light:hover { background: rgba(255,255,255,.1); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: .88rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .5; pointer-events: none; }
.btn.is-loading { pointer-events: none; opacity: .75; }
.btn.is-loading::after { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(251,248,243,.86); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 20px -16px rgba(15,29,58,.4); }
.nav { display: flex; align-items: center; gap: 24px; height: 74px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 46px; width: auto; }
.nav-links { display: flex; gap: 4px; margin: 0 0 0 auto; padding: 0; list-style: none; }
.nav-links a {
  display: block; padding: 8px 14px; border-radius: 999px; color: var(--ink-soft); text-decoration: none;
  font-weight: 500; font-size: .95rem; transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--ink); background: var(--paper-2); }
.nav-links a[aria-current="page"] { color: var(--teal-ink); background: rgba(63,179,194,.12); }
.cart-btn {
  position: relative; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px 0 14px;
  border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-weight: 600; font-size: .92rem; color: var(--ink); text-decoration: none;
  transition: border-color .2s, box-shadow .2s;
}
.cart-btn:hover { border-color: var(--teal); box-shadow: var(--shadow-sm); }
.cart-btn svg { width: 20px; height: 20px; }
.cart-count {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--teal-deep); color: #fff;
  font-size: .75rem; display: inline-grid; place-items: center; transition: transform .25s cubic-bezier(.3,1.6,.5,1);
}
.cart-count[data-empty="true"] { background: var(--paper-3); color: var(--ink-mute); }
.cart-count.bump { transform: scale(1.35); }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; place-items: center; }
.menu-btn svg { width: 22px; height: 22px; }

@media (max-width: 860px) {
  .nav { height: 64px; gap: 10px; }
  .brand img { height: 32px; }
  .menu-btn { display: grid; order: 3; }
  .cart-btn { margin-left: auto; padding: 0 12px; }
  .cart-btn .cart-label { display: none; }
  .nav-links {
    position: fixed; inset: 64px 0 auto 0; flex-direction: column; gap: 2px; margin: 0; padding: 12px var(--gutter) 22px;
    background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px -20px rgba(15,29,58,.35);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .2s ease;
  }
  .nav-links a { padding: 13px 14px; font-size: 1.05rem; border-radius: 10px; }
  body.nav-open .nav-links { transform: none; opacity: 1; visibility: visible; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #e9eef8;
  background:
    radial-gradient(900px 500px at 85% 20%, rgba(63,179,194,.28), transparent 60%),
    radial-gradient(700px 500px at 10% 110%, rgba(63,179,194,.16), transparent 60%),
    linear-gradient(160deg, var(--night) 0%, var(--night-2) 60%, #123a52 100%);
}
.hero::before { /* tüy */
  content: ""; position: absolute; width: 560px; height: 490px; right: -120px; bottom: -150px;
  background: url("../img/tuy.png") no-repeat center / contain; opacity: .07; transform: rotate(-8deg); pointer-events: none;
}
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 48px; padding-top: clamp(56px, 9vw, 110px); padding-bottom: clamp(64px, 9vw, 120px); position: relative; }
.hero .eyebrow { color: var(--teal); }
.hero h1 { color: #fff; margin-bottom: 22px; }
.hero h1 em { font-style: italic; color: var(--teal); font-weight: 500; }
.hero-quote {
  font-family: var(--serif); font-style: italic; font-size: clamp(1.25rem, 2.2vw, 1.55rem); line-height: 1.5;
  color: #cfd8ea; border-left: 2px solid var(--teal); padding: 4px 0 4px 22px; margin: 0 0 34px; max-width: 30ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-books { position: relative; height: 440px; }
.hero-books img {
  position: absolute; width: 210px; border-radius: 4px 8px 8px 4px; box-shadow: 0 30px 50px -20px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.06);
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.hero-books img:nth-child(1) { left: 6%; top: 60px; transform: rotate(-9deg); }
.hero-books img:nth-child(2) { left: 50%; top: 0; margin-left: -115px; width: 230px; z-index: 2; }
.hero-books img:nth-child(3) { right: 4%; top: 70px; transform: rotate(8deg); }
.hero-books:hover img:nth-child(1) { transform: rotate(-12deg) translateX(-14px); }
.hero-books:hover img:nth-child(3) { transform: rotate(11deg) translateX(14px); }
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 20px; }
  .hero-books { height: 300px; max-width: 460px; width: 100%; margin: 0 auto; }
  .hero-books img { width: 150px; }
  .hero-books img:nth-child(2) { width: 170px; margin-left: -85px; }
}
@media (max-width: 420px) {
  .hero-books { height: 250px; }
  .hero-books img { width: 118px; }
  .hero-books img:nth-child(2) { width: 140px; margin-left: -70px; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-tight { padding: clamp(44px, 6vw, 72px) 0; }
.section-alt { background: var(--paper-2); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.page-head { padding-top: clamp(48px, 7vw, 84px); padding-bottom: clamp(28px, 4vw, 44px); }
.page-head h1 { margin-bottom: 14px; }
.crumbs { font-size: .86rem; color: var(--ink-mute); margin-bottom: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs a { color: var(--ink-mute); text-decoration: none; }
.crumbs a:hover { color: var(--teal-deep); }
.crumbs span[aria-hidden] { opacity: .5; }

/* ---------- Author teaser ---------- */
.author { display: grid; grid-template-columns: 380px 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.author-photo { position: relative; border-radius: 200px 200px var(--radius) var(--radius); overflow: hidden; background: var(--paper-3); aspect-ratio: 4/5; }
.author-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.author blockquote { margin: 0 0 26px; font-family: var(--text-serif); font-size: 1.12rem; line-height: 1.8; color: var(--ink-soft); }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 30px 0 34px; padding: 0; list-style: none; }
.facts li { border-top: 1px solid var(--line); padding-top: 12px; }
.facts b { display: block; font-family: var(--serif); font-size: 1.7rem; color: var(--teal-ink); font-weight: 600; line-height: 1.1; }
.facts span { font-size: .84rem; color: var(--ink-mute); line-height: 1.4; display: block; margin-top: 4px; }
@media (max-width: 860px) {
  .author { grid-template-columns: 1fr; }
  .author-photo { max-width: 320px; }
  .facts { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Book cards ---------- */
.books { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 30px); }
@media (max-width: 1020px) { .books { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .books { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
.book { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 14px 16px; transition: transform .25s, box-shadow .25s, border-color .25s; }
.book:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.book-cover { display: block; background: var(--paper-2); border-radius: 10px; padding: 18px 18px 22px; margin-bottom: 14px; }
.book-cover img { width: 100%; aspect-ratio: 5/7; object-fit: cover; border-radius: 2px 5px 5px 2px; box-shadow: var(--shadow-book); transition: transform .35s; }
.book:hover .book-cover img { transform: translateY(-3px) rotate(-1deg); }
.book-series { font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-deep); margin-bottom: 6px; }
.book h3 { font-size: 1.22rem; margin: 0 0 12px; line-height: 1.2; }
.book h3 a { color: inherit; text-decoration: none; }
.book h3 a:hover { color: var(--teal-ink); }
.book-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.price { font-weight: 700; font-size: 1.08rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.price small { font-weight: 500; color: var(--ink-mute); font-size: .78em; margin-left: 2px; }
.stock-out { font-size: .82rem; color: var(--danger); font-weight: 600; }
@media (max-width: 480px) {
  .book { padding: 10px 10px 12px; }
  .book-cover { padding: 12px 12px 14px; }
  .book h3 { font-size: 1.05rem; }
  .book-foot .btn { width: 100%; }
}

/* Series band */
.series { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.series-shelf { display: flex; align-items: end; gap: 0; padding: 30px 10px 0; border-bottom: 10px solid #d9cfbd; border-radius: 0 0 4px 4px; overflow-x: auto; scrollbar-width: none; }
.series-shelf a { flex: 1 0 0; min-width: 62px; margin-right: -14px; transition: transform .25s; position: relative; }
.series-shelf a:hover { transform: translateY(-12px); z-index: 2; }
.series-shelf img { aspect-ratio: 5/7; object-fit: cover; width: 100%; border-radius: 2px 5px 5px 2px; box-shadow: -6px 0 16px -6px rgba(0,0,0,.35), var(--shadow-book); }
@media (max-width: 860px) { .series { grid-template-columns: 1fr; } }

/* Quote band */
.band { background: var(--night); color: #d9e1f0; text-align: center; position: relative; overflow: hidden; }
.band::before { content: "“"; position: absolute; font-family: var(--serif); font-size: 260px; line-height: 1; color: rgba(63,179,194,.14); left: 50%; top: 18px; transform: translateX(-50%); }
.band blockquote { position: relative; margin: 0 auto; max-width: 26ch; font-family: var(--serif); font-style: italic; font-size: clamp(1.6rem, 3.4vw, 2.4rem); line-height: 1.35; color: #fff; }
.band cite { display: block; margin-top: 20px; font: 500 .82rem var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--teal); font-style: normal; }

/* How ordering works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; list-style: none; margin: 0; padding: 0; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; counter-increment: s; position: relative; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(63,179,194,.14); color: var(--teal-ink); font-family: var(--serif); font-weight: 700; font-size: 1.25rem; margin-bottom: 16px; }
.steps h3 { font-size: 1.3rem; margin-bottom: 6px; }
.steps p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Book detail ---------- */
.detail { display: grid; grid-template-columns: minmax(260px, 400px) 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; padding-bottom: clamp(48px, 7vw, 90px); }
.detail-cover { position: sticky; top: 100px; background: var(--paper-2); border-radius: var(--radius); padding: clamp(24px, 4vw, 44px); }
.detail-cover img { border-radius: 3px 7px 7px 3px; box-shadow: var(--shadow-book); width: 100%; }
.detail h1 { font-size: clamp(2rem, 4vw, 3rem); }
.detail-desc { font-family: var(--text-serif); font-size: 1.06rem; line-height: 1.8; color: var(--ink-soft); }
.detail-desc ul { padding-left: 0; list-style: none; margin: 0 0 1em; }
.detail-desc li { position: relative; padding-left: 24px; margin-bottom: 8px; }
.detail-desc li::before { content: ""; position: absolute; left: 4px; top: .75em; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.buybox { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin: 28px 0 18px; display: grid; gap: 16px; }
.buybox-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.buybox .price { font-size: 1.7rem; font-family: var(--serif); }
.buybox .btn { flex: 1; min-width: 180px; }
.buybox-note { font-size: .86rem; color: var(--ink-mute); margin: 0; display: flex; gap: 8px; align-items: flex-start; }
.buybox-note svg { width: 18px; height: 18px; flex: none; color: var(--teal-deep); margin-top: 2px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: #fff; height: 46px; }
.qty button { width: 42px; height: 100%; border: 0; background: none; cursor: pointer; font-size: 1.2rem; color: var(--ink-soft); border-radius: 999px; }
.qty button:hover { color: var(--teal-ink); background: var(--paper-2); }
.qty input { width: 38px; text-align: center; border: 0; background: none; font-weight: 600; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-sm { height: 36px; }
.qty-sm button { width: 34px; font-size: 1rem; }
.qty-sm input { width: 30px; }
.volnav { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.volnav a { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); text-decoration: none; color: var(--ink-soft); font-weight: 600; background: #fff; }
.volnav a:hover { border-color: var(--teal); color: var(--teal-ink); }
.volnav a[aria-current="page"] { background: var(--teal-deep); color: #fff; border-color: var(--teal-deep); }
@media (max-width: 820px) {
  .detail { grid-template-columns: 1fr; }
  .detail-cover { position: static; max-width: 340px; }
}

/* Excerpts */
.excerpts { max-width: 760px; margin: 0 auto; }
.excerpt { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 44px); margin-bottom: 22px; }
.excerpt-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.tag { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; background: rgba(63,179,194,.14); color: var(--teal-ink); font-size: .76rem; font-weight: 600; letter-spacing: .04em; }
.tag-plain { background: var(--paper-2); color: var(--ink-mute); }
.excerpt h3 { font-size: 1.6rem; margin-bottom: 18px; }
.prose { font-family: var(--text-serif); font-size: 1.06rem; line-height: 1.85; color: #2c3345; }
.prose p { margin: 0 0 1.1em; text-align: left; hyphens: auto; }
.prose h4 { font-family: var(--sans); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-deep); margin: 1.8em 0 .8em; }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 2px solid var(--teal); font-style: italic; color: var(--ink-soft); }
.more summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; font: 600 .92rem var(--sans); color: var(--teal-deep); padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); margin-top: 4px; }
.more summary::-webkit-details-marker { display: none; }
.more summary:hover { border-color: var(--teal); }
.more summary::after { content: "↓"; transition: transform .2s; }
.more[open] summary { display: none; }
.fade-bottom { position: relative; }

/* ---------- About ---------- */
.letter { display: grid; grid-template-columns: 300px 1fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.letter aside { position: sticky; top: 100px; }
.letter aside .author-photo { margin-bottom: 20px; }
.timeline { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.timeline li { position: relative; padding: 0 0 16px 20px; font-size: .9rem; color: var(--ink-soft); line-height: 1.45; }
.timeline li::before { content: ""; position: absolute; left: -5px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--paper); border: 2px solid var(--teal); }
.timeline b { display: block; font-family: var(--serif); font-size: 1.2rem; color: var(--ink); line-height: 1.2; }
.letter .prose { font-size: 1.1rem; max-width: 68ch; }
.letter .prose > p:first-of-type::first-letter { float: left; font-family: var(--serif); font-size: 4.6em; line-height: .8; padding: 8px 10px 0 0; color: var(--teal-deep); font-weight: 600; }
.pull { font-family: var(--serif) !important; font-size: 1.65rem !important; line-height: 1.35 !important; font-style: italic; color: var(--teal-ink) !important; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; margin: 1.6em 0 !important; }
.signature { font-family: var(--serif); font-size: 1.1rem; margin-top: 2em; color: var(--ink-soft); }
.signature strong { display: block; font-size: 1.9rem; font-style: italic; font-weight: 500; color: var(--ink); }
@media (max-width: 860px) {
  .letter { grid-template-columns: 1fr; }
  .letter aside { position: static; display: grid; grid-template-columns: 140px 1fr; gap: 20px; align-items: start; }
  .letter aside .author-photo { margin: 0; }
}

/* ---------- Forms ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3.5vw, 36px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-size: .86rem; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.field label .req { color: var(--teal-deep); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid #d8cfbf; border-radius: var(--radius-sm); background: var(--paper);
  transition: border-color .2s, box-shadow .2s, background .2s; font-size: 1rem;
}
.field textarea { min-height: 130px; resize: vertical; line-height: 1.55; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal-deep); background: #fff; box-shadow: 0 0 0 4px rgba(63,179,194,.18); }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: var(--danger); }
.field .err { display: none; color: var(--danger); font-size: .8rem; margin-top: 5px; }
.field.has-error .err { display: block; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--ink-soft); line-height: 1.5; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--teal-deep); flex: none; }
.check.has-error { color: var(--danger); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.alert { border-radius: var(--radius-sm); padding: 14px 16px; font-size: .94rem; display: none; margin-top: 16px; }
.alert.show { display: block; }
.alert-ok { background: #e8f5ee; color: #14553a; border: 1px solid #bfe3cf; }
.alert-err { background: #fbecea; color: #8a1f18; border: 1px solid #f0c6c1; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(28px, 5vw, 64px); align-items: start; padding-bottom: clamp(56px, 8vw, 100px); }
.contact-info { display: grid; gap: 14px; }
.info-item { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.info-item .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(63,179,194,.14); color: var(--teal-ink); flex: none; }
.info-item .ic svg { width: 20px; height: 20px; }
.info-item b { display: block; font-size: .95rem; }
.info-item span, .info-item a { font-size: .92rem; color: var(--ink-soft); word-break: break-word; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

/* ---------- Cart page ---------- */
.cart-layout { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; padding-bottom: clamp(56px, 8vw, 100px); }
@media (max-width: 940px) { .cart-layout { grid-template-columns: 1fr; } }
.cart-items { list-style: none; margin: 0; padding: 0; }
.cart-item { display: grid; grid-template-columns: 72px 1fr auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-item:first-child { padding-top: 0; }
.cart-item img { width: 72px; border-radius: 2px 5px 5px 2px; box-shadow: var(--shadow-sm); }
.cart-item h3 { font-size: 1.12rem; margin: 0 0 4px; line-height: 1.25; }
.cart-item h3 a { color: inherit; text-decoration: none; }
.cart-item .unit { font-size: .84rem; color: var(--ink-mute); }
.cart-item .ctrl { display: flex; align-items: center; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
.cart-item .line-total { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.link-btn { background: none; border: 0; padding: 4px 0; cursor: pointer; color: var(--ink-mute); font-size: .84rem; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--danger); }
.summary { position: sticky; top: 100px; }
.summary-row { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; font-size: .95rem; color: var(--ink-soft); }
.summary-row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 16px; font-size: 1.15rem; color: var(--ink); font-weight: 700; }
.summary-row.total span:last-child { font-family: var(--serif); font-size: 1.6rem; }
.empty { text-align: center; padding: 56px 20px; }
.empty svg { width: 56px; height: 56px; color: var(--teal); margin: 0 auto 16px; }
.checkout-steps { display: flex; gap: 8px; margin-bottom: 28px; font-size: .84rem; color: var(--ink-mute); flex-wrap: wrap; }
.checkout-steps span { display: inline-flex; align-items: center; gap: 8px; }
.checkout-steps b { width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--paper-3); color: var(--ink-soft); font-size: .78rem; }
.checkout-steps .on b { background: var(--teal-deep); color: #fff; }
.checkout-steps .on { color: var(--ink); font-weight: 600; }
.success { text-align: center; max-width: 620px; margin: 0 auto; padding: 20px 0 clamp(56px, 8vw, 100px); }
.success .badge-ok { width: 76px; height: 76px; border-radius: 50%; background: #e8f5ee; color: var(--ok); display: grid; place-items: center; margin: 0 auto 22px; }
.success .badge-ok svg { width: 36px; height: 36px; }
.order-no { display: inline-block; font: 700 1.3rem ui-monospace, "SFMono-Regular", Menlo, monospace; letter-spacing: .06em; background: var(--paper-2); border: 1px dashed #cfc4b0; padding: 10px 18px; border-radius: 10px; margin: 6px 0 20px; }

/* ---------- Drawer ---------- */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(15,29,58,.42); opacity: 0; visibility: hidden; transition: .25s; z-index: 60; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: var(--paper); z-index: 61;
  transform: translateX(100%); transition: transform .32s cubic-bezier(.2,.8,.2,1), visibility .32s; display: flex; flex-direction: column;
  visibility: hidden;
}
body.drawer-open .drawer { transform: none; visibility: visible; box-shadow: -20px 0 50px -20px rgba(15,29,58,.4); }
body.drawer-open .drawer-backdrop { opacity: 1; visibility: visible; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 1.6rem; margin: 0; }
.icon-btn { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; cursor: pointer; }
.icon-btn svg { width: 18px; height: 18px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 22px; }
.drawer-body .cart-item { grid-template-columns: 56px 1fr auto; }
.drawer-body .cart-item img { width: 56px; }
.drawer-body .cart-item h3 { font-size: 1rem; }
.drawer-foot { border-top: 1px solid var(--line); padding: 18px 22px 22px; display: grid; gap: 10px; background: #fff; }
.drawer-foot .summary-row { padding: 0 0 6px; font-size: 1.05rem; color: var(--ink); font-weight: 700; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; visibility: hidden; z-index: 80;
  background: var(--night); color: #fff; padding: 12px 18px; border-radius: 999px; box-shadow: var(--shadow); font-size: .92rem;
  display: flex; align-items: center; gap: 10px; transition: .25s; max-width: calc(100% - 32px);
}
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.toast svg { width: 18px; height: 18px; color: var(--teal); flex: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: #b9c3d8; padding: 64px 0 28px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer img { height: 48px; width: auto; margin-bottom: 16px; }
.site-footer h4 { font: 600 .76rem var(--sans); letter-spacing: .16em; text-transform: uppercase; color: #fff; margin: 6px 0 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #b9c3d8; text-decoration: none; }
.site-footer a:hover { color: var(--teal); }
.site-footer p { font-size: .94rem; max-width: 40ch; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 44px; padding-top: 22px; font-size: .84rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: #8894ad; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding-top: clamp(70px, 12vw, 140px); padding-bottom: clamp(70px, 12vw, 140px); }
.notfound .big { font-family: var(--serif); font-size: clamp(6rem, 18vw, 11rem); line-height: 1; color: var(--teal); opacity: .5; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
@media print {
  .site-header, .site-footer, .drawer, .toast, .buybox { display: none !important; }
}
