/* ===========================================================
   Vasa Antikvariat – gemensam stilmall
   =========================================================== */

:root {
  --navy: #0e2a3b;
  --navy-deep: #081b27;
  --teal: #1c5566;
  --gold: #c69a4b;
  --gold-light: #e3c47e;
  --cream: #f6f1e7;
  --paper: #fffdf8;
  --ink: #23303a;
  --muted: #6a7782;
  --border: #e3dccd;
  --shadow: 0 10px 30px rgba(14, 42, 59, .12);
  --radius: 14px;
  --maxw: 1180px;
  --serif: "Georgia", "Times New Roman", serif;
  --sans: "Helvetica Neue", Arial, system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 { font-family: var(--serif); color: var(--navy); line-height: 1.2; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(8, 27, 39, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(198, 154, 75, .25);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--cream);
  font-family: var(--serif);
  font-size: 1.25rem;
  letter-spacing: .5px;
}
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 38px; height: 38px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--gold);
  font-weight: 700;
  font-size: 1rem;
}
.brand b { color: var(--gold-light); font-weight: 600; }

.nav { display: flex; gap: 26px; }
.nav a {
  color: var(--cream);
  font-size: .95rem;
  letter-spacing: .3px;
  opacity: .85;
}
.nav a:hover { color: var(--gold-light); opacity: 1; text-decoration: none; }

.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  color: var(--cream); font-size: 1.6rem;
}

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(rgba(8,27,39,.82), rgba(8,27,39,.88)),
    radial-gradient(circle at 30% 20%, #1c5566 0%, #0e2a3b 60%);
  color: var(--cream);
  padding: 90px 0 100px;
  text-align: center;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.4rem);
  margin: 0 0 18px;
}
.hero p {
  max-width: 640px;
  margin: 0 auto 30px;
  font-size: 1.15rem;
  opacity: .9;
}
.hero .kicker {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: .8rem;
  color: var(--gold-light);
  margin-bottom: 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-gold {
  background: var(--gold);
  color: var(--navy-deep);
}
.btn-gold:hover { background: var(--gold-light); box-shadow: 0 8px 22px rgba(198,154,75,.4); }
.btn-outline {
  background: transparent;
  color: var(--cream);
  border-color: rgba(227,196,126,.6);
}
.btn-outline:hover { border-color: var(--gold-light); color: var(--gold-light); }
.btn-ebay {
  background: #e53238;
  color: #fff;
}
.btn-ebay:hover { background: #c8262b; box-shadow: 0 8px 22px rgba(229,50,56,.35); }
.btn-ghost {
  background: transparent;
  color: var(--teal);
  border-color: var(--border);
}
.btn-ghost:hover { background: #fff; border-color: var(--teal); }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section-head .kicker {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: .78rem;
  color: var(--gold);
  font-weight: 700;
}
.section-head h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); margin: 10px 0 14px; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }

/* ---------- Product grid / cards ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 30px;
}
.card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(14,42,59,.18); }
.card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #efe9db;
  overflow: hidden;
}
.card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.card:hover .card-media img { transform: scale(1.05); }
.badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--navy);
  color: var(--gold-light);
  font-size: .72rem;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}
.card-body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-body .author {
  font-size: .82rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.card-body h3 { font-size: 1.2rem; margin: 0 0 10px; }
.card-body .desc {
  color: var(--muted);
  font-size: .95rem;
  margin: 0 0 18px;
  flex: 1;
}
.price {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 16px;
}
.price small { font-size: .8rem; color: var(--muted); font-weight: 400; }
.card-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.card-actions .btn { padding: 10px 18px; font-size: .9rem; }

/* ---------- Product detail page ---------- */
.product { padding: 50px 0 80px; }
.breadcrumb { font-size: .9rem; color: var(--muted); margin-bottom: 26px; }
.breadcrumb a { color: var(--teal); }
.product-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 50px;
  align-items: start;
}
.gallery-main {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.gallery-main img { width: 100%; aspect-ratio: 1/1; object-fit: contain; background: #fff; }
.thumbs {
  display: flex;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.thumbs button {
  width: 76px; height: 76px;
  border: 2px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  padding: 0; cursor: pointer;
  background: #fff;
}
.thumbs button.active { border-color: var(--gold); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }

.product-info .author {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: .85rem;
  color: var(--muted);
}
.product-info h1 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 8px 0 16px; }
.product-info .price { font-size: 2rem; }
.product-info .desc { color: var(--ink); font-size: 1.02rem; }
.spec {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  border-top: 1px solid var(--border);
}
.spec li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  font-size: .95rem;
}
.spec li span:first-child { color: var(--muted); }
.spec li span:last-child { font-weight: 600; text-align: right; }
.buy-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.note {
  margin-top: 20px;
  font-size: .85rem;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
}

/* ---------- Trust strip ---------- */
.features {
  background: var(--paper);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.features .grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding: 54px 0;
}
.feature { text-align: center; }
.feature .ic { font-size: 2rem; margin-bottom: 10px; }
.feature h3 { font-size: 1.1rem; margin: 0 0 6px; }
.feature p { color: var(--muted); font-size: .92rem; margin: 0; }

/* ---------- Content pages (policy) ---------- */
.doc { padding: 60px 0 80px; background: var(--paper); }
.doc .container { max-width: 800px; }
.doc h1 { font-size: 2.2rem; margin-bottom: 8px; }
.doc .updated { color: var(--muted); font-size: .9rem; margin-bottom: 36px; }
.doc h2 { font-size: 1.35rem; margin: 38px 0 12px; }
.doc p, .doc li { color: var(--ink); font-size: 1rem; }
.doc ul { padding-left: 22px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: #c4cdd4;
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
}
.site-footer h4 {
  color: var(--gold-light);
  font-family: var(--serif);
  font-size: 1.05rem;
  margin: 0 0 16px;
}
.site-footer a { color: #c4cdd4; display: block; margin-bottom: 10px; font-size: .92rem; }
.site-footer a:hover { color: var(--gold-light); }
.site-footer .about p { font-size: .92rem; opacity: .85; max-width: 320px; }
.footer-bottom {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .85rem;
  opacity: .75;
}

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(160%);
  width: calc(100% - 40px);
  max-width: 860px;
  background: var(--navy);
  color: var(--cream);
  border: 1px solid rgba(198,154,75,.35);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,.4);
  padding: 22px 26px;
  z-index: 100;
  transition: transform .4s cubic-bezier(.2,.8,.2,1);
}
.cookie-banner.show { transform: translateX(-50%) translateY(0); }
.cookie-banner .ck-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.cookie-banner h4 { color: var(--gold-light); margin: 0 0 6px; font-size: 1.1rem; }
.cookie-banner p { margin: 0; font-size: .9rem; opacity: .9; flex: 1 1 320px; }
.cookie-banner a { color: var(--gold-light); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions .btn { padding: 10px 20px; font-size: .88rem; }
.btn-cookie-decline {
  background: transparent;
  color: var(--cream);
  border-color: rgba(255,255,255,.35);
}
.btn-cookie-decline:hover { border-color: var(--cream); }

/* ---------- Responsiv ---------- */
@media (max-width: 860px) {
  .nav {
    position: absolute;
    top: 70px; left: 0; right: 0;
    background: var(--navy-deep);
    flex-direction: column;
    gap: 0;
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease, padding .3s ease;
  }
  .nav.open { max-height: 360px; padding: 14px 24px 22px; }
  .nav a { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav-toggle { display: block; }
  .product-layout { grid-template-columns: 1fr; gap: 30px; }
  .features .grid3 { grid-template-columns: 1fr; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}
