:root {
  --bg: #f4f1ea;
  --paper: #ffffff;
  --ink: #1f2a24;
  --muted: #6b7872;
  --accent: #2f5d4f;
  --accent-dark: #234539;
  --line: #e3ded2;
  --gold: #b08a3e;
  --shadow: 0 8px 30px rgba(31, 42, 36, 0.08);
  --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Georgia", "Iowan Old Style", "Times New Roman", serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.wrap { width: min(1120px, 92%); margin: 0 auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 241, 234, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.brand .mark {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid; place-items: center;
  font-size: 18px; font-family: Georgia, serif;
}
.brand .name { font-size: 20px; }
.brand .name small { display: block; font-size: 11px; font-weight: 400; color: var(--muted); letter-spacing: 2px; text-transform: uppercase; }

.nav { display: flex; gap: 28px; }
.nav a {
  text-decoration: none;
  font-size: 15px;
  font-family: -apple-system, "Helvetica Neue", sans-serif;
  color: var(--ink);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: border-color .2s, color .2s;
}
.nav a:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Hero ---------- */
.hero {
  padding: 80px 0 60px;
  text-align: center;
}
.hero .eyebrow {
  font-family: -apple-system, "Helvetica Neue", sans-serif;
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 12px;
  color: var(--gold);
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.12;
  font-weight: 700;
  max-width: 16ch;
  margin: 0 auto 22px;
}
.hero p {
  max-width: 56ch;
  margin: 0 auto 32px;
  font-size: 19px;
  color: var(--muted);
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: -apple-system, "Helvetica Neue", sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  transition: background .2s, transform .15s;
}
.btn:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--accent); }
.btn.ghost:hover { background: rgba(47,93,79,.08); }

/* ---------- Section heads ---------- */
.section { padding: 50px 0; }
.section-head { text-align: center; margin-bottom: 44px; }
.section-head .eyebrow {
  font-family: -apple-system, "Helvetica Neue", sans-serif;
  text-transform: uppercase; letter-spacing: 4px; font-size: 12px; color: var(--gold);
}
.section-head h2 { font-size: clamp(26px, 4vw, 38px); margin-top: 10px; }
.section-head p { color: var(--muted); margin-top: 12px; max-width: 60ch; margin-left:auto; margin-right:auto; }

/* ---------- Product grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 30px;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(31,42,36,.13); }

.card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #efece4;
  overflow: hidden;
}
.card-media img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 18px;
  transition: transform .3s;
}
.card:hover .card-media img { transform: scale(1.03); }
.badge {
  position: absolute; top: 14px; left: 14px;
  font-family: -apple-system, sans-serif;
  font-size: 11px; font-weight: 700; letter-spacing: .5px;
  text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px;
  background: var(--accent); color: #fff;
}
.badge.new { background: var(--gold); }

.card-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.card-body .lang {
  font-family: -apple-system, sans-serif;
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--muted); margin-bottom: 8px;
}
.card-body h3 { font-size: 21px; line-height: 1.25; margin-bottom: 6px; }
.card-body .author { color: var(--muted); font-style: italic; margin-bottom: 16px; }

.specs {
  list-style: none;
  font-family: -apple-system, sans-serif;
  font-size: 13.5px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-bottom: 20px;
  display: grid; gap: 6px;
}
.specs li { display: flex; justify-content: space-between; gap: 10px; }
.specs li span:first-child { color: var(--muted); }
.specs li span:last-child { text-align: right; font-weight: 600; }

.card-foot { margin-top: auto; }
.card-foot .btn { width: 100%; justify-content: center; }
.ebay-note {
  font-family: -apple-system, sans-serif;
  font-size: 12px; color: var(--muted);
  text-align: center; margin-top: 10px;
}

/* ---------- Trust strip ---------- */
.trust { background: var(--accent); color: #fff; }
.trust .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 30px; padding: 46px 0; }
.trust .item { text-align: center; }
.trust .item .ico { font-size: 26px; margin-bottom: 8px; }
.trust .item h4 { font-size: 18px; margin-bottom: 4px; }
.trust .item p { font-family: -apple-system, sans-serif; font-size: 13.5px; color: rgba(255,255,255,.8); }

/* ---------- About ---------- */
.about .wrap { max-width: 760px; text-align: center; }
.about p { font-size: 18px; color: var(--ink); margin-bottom: 16px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--accent-dark);
  color: rgba(255,255,255,.85);
  font-family: -apple-system, sans-serif;
  font-size: 14px;
  padding: 50px 0 30px;
  margin-top: 40px;
}
.site-footer .cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 36px; }
.site-footer h5 { font-family: Georgia, serif; font-size: 17px; margin-bottom: 14px; color: #fff; }
.site-footer a { color: rgba(255,255,255,.8); text-decoration: none; display: block; margin-bottom: 8px; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .legal {
  border-top: 1px solid rgba(255,255,255,.15);
  margin-top: 34px; padding-top: 20px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 13px; color: rgba(255,255,255,.6);
}
.site-footer .legal a { display: inline; margin: 0 0 0 14px; }

@media (max-width: 720px) {
  .nav { display: none; }
  .site-footer .cols { grid-template-columns: 1fr; }
}

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  bottom: 18px; left: 50%;
  transform: translateX(-50%) translateY(160%);
  width: min(940px, 94%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(0,0,0,.22);
  padding: 22px 26px;
  z-index: 100;
  font-family: -apple-system, "Helvetica Neue", sans-serif;
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  transition: transform .45s cubic-bezier(.2,.8,.2,1);
}
.cookie-banner.show { transform: translateX(-50%) translateY(0); }
.cookie-banner .ct { flex: 1; min-width: 260px; }
.cookie-banner h4 { font-family: Georgia, serif; font-size: 18px; margin-bottom: 6px; color: var(--ink); }
.cookie-banner p { font-size: 13.5px; color: var(--muted); }
.cookie-banner p a { color: var(--accent); }
.cookie-banner .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-banner .btn { padding: 11px 20px; font-size: 14px; }

@media (max-width: 560px) {
  .cookie-banner { flex-direction: column; align-items: stretch; text-align: left; }
  .cookie-banner .actions .btn { flex: 1; }
}

/* ---------- Product page ---------- */
.breadcrumb {
  font-family: -apple-system, sans-serif;
  font-size: 13.5px;
  color: var(--muted);
  padding: 22px 0 0;
}
.breadcrumb a { color: var(--accent); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 8px; color: var(--line); }

.product {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  padding: 32px 0 60px;
  align-items: start;
}
.gallery .stage {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  aspect-ratio: 1 / 1;
  display: grid; place-items: center;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.gallery .stage img { width: 100%; height: 100%; object-fit: contain; padding: 26px; }
.gallery .thumbs { display: flex; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.gallery .thumbs button {
  width: 76px; height: 76px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  padding: 6px; cursor: pointer;
  transition: border-color .2s;
}
.gallery .thumbs button.active { border-color: var(--accent); }
.gallery .thumbs img { width: 100%; height: 100%; object-fit: contain; }

.product-info .lang {
  font-family: -apple-system, sans-serif;
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--muted); margin-bottom: 10px;
}
.product-info h1 { font-size: clamp(28px, 4vw, 38px); line-height: 1.15; }
.product-info .author { font-style: italic; color: var(--muted); font-size: 19px; margin: 8px 0 18px; }
.product-info .pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.pill {
  font-family: -apple-system, sans-serif;
  font-size: 12px; font-weight: 700; letter-spacing: .4px;
  padding: 6px 13px; border-radius: 999px;
  background: rgba(47,93,79,.1); color: var(--accent);
}
.pill.new { background: rgba(176,138,62,.15); color: var(--gold); }

.buy-box {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  margin-bottom: 28px;
}
.buy-box .btn { width: 100%; justify-content: center; font-size: 16px; padding: 15px; }
.buy-box .meta {
  font-family: -apple-system, sans-serif;
  font-size: 13px; color: var(--muted);
  text-align: center; margin-top: 12px;
}

.product-info h2 { font-size: 22px; margin: 28px 0 12px; }
.product-info p { font-size: 16.5px; color: #2c352f; margin-bottom: 14px; }

.spec-table { width: 100%; border-collapse: collapse; font-family: -apple-system, sans-serif; font-size: 14.5px; }
.spec-table tr { border-bottom: 1px solid var(--line); }
.spec-table th { text-align: left; color: var(--muted); font-weight: 500; padding: 9px 14px 9px 0; width: 42%; vertical-align: top; }
.spec-table td { padding: 9px 0; font-weight: 600; vertical-align: top; }

@media (max-width: 820px) {
  .product { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- Policy pages ---------- */
.doc { background: var(--paper); }
.doc .wrap { max-width: 800px; padding: 60px 0; }
.doc h1 { font-size: clamp(30px, 5vw, 42px); margin-bottom: 8px; }
.doc .updated { font-family: -apple-system, sans-serif; font-size: 13px; color: var(--muted); margin-bottom: 36px; }
.doc h2 { font-size: 24px; margin: 34px 0 12px; }
.doc h3 { font-size: 19px; margin: 22px 0 8px; }
.doc p, .doc li { font-size: 16.5px; color: #2c352f; margin-bottom: 12px; }
.doc ul { padding-left: 22px; margin-bottom: 16px; }
.doc table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 15px; }
.doc th, .doc td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.doc th { background: #f0ede5; font-family: -apple-system, sans-serif; }
.doc .back { display: inline-block; margin-bottom: 24px; font-family: -apple-system, sans-serif; font-size: 14px; color: var(--accent); text-decoration: none; }
.doc .back:hover { text-decoration: underline; }
