:root {
  --bg: #f6f4ef;
  --card: #ffffff;
  --ink: #1c2a2f;
  --muted: #5f6f74;
  --line: #e3ddd2;
  --accent: #0b6e4f;
  --accent-dark: #095840;
  --amazon: #ff9900;
  --amazon-dark: #e88a00;
  --shadow: 0 6px 24px rgba(28, 42, 47, .08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  background: var(--ink);
  color: #fff;
  padding: 22px 0;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.brand {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: .5px;
  color: #fff;
  text-decoration: none;
}
.brand span { color: #8fd1b8; }
.nav a {
  color: #d7e4e0;
  text-decoration: none;
  margin-left: 22px;
  font-size: .95rem;
}
.nav a:hover { color: #fff; }

/* Hero */
.hero {
  padding: 48px 0 8px;
  text-align: center;
}
.hero h1 { font-size: 2rem; margin: 0 0 10px; }
.hero p { color: var(--muted); max-width: 640px; margin: 0 auto; }

/* Product grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 26px;
  padding: 40px 0 60px;
}
.product-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform .18s ease, box-shadow .18s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(28, 42, 47, .14);
}
.product-card .thumb {
  aspect-ratio: 1 / 1;
  background: #efeae0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.product-card .thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.product-card .body { padding: 16px 18px 20px; }
.product-card h2 { font-size: 1.02rem; margin: 0 0 6px; }
.product-card .meta { color: var(--muted); font-size: .85rem; }
.product-card .more {
  margin-top: 12px;
  font-weight: 600;
  color: var(--accent);
  font-size: .9rem;
}

/* Product page */
.product {
  display: grid;
  grid-template-columns: minmax(0, 460px) minmax(0, 1fr);
  gap: 44px;
  padding: 44px 0 60px;
}
.product .gallery {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product .gallery img { max-width: 100%; height: auto; border-radius: 6px; }
.product h1 { font-size: 1.7rem; margin: 0 0 6px; }
.product .author { color: var(--muted); margin: 0 0 22px; }
.product .desc { margin: 0 0 26px; }
.product .desc h3 { font-size: 1.05rem; margin: 22px 0 8px; }

.btn-amazon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--amazon);
  color: #14130f;
  font-weight: 700;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(255, 153, 0, .35);
  transition: background .15s ease;
}
.btn-amazon:hover { background: var(--amazon-dark); }

.specs {
  margin-top: 30px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.specs h3 { font-size: 1.05rem; margin: 0 0 12px; }
.specs table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.specs td { padding: 7px 0; vertical-align: top; border-bottom: 1px solid var(--line); }
.specs td:first-child { color: var(--muted); width: 42%; padding-right: 14px; }

.back-link {
  display: inline-block;
  margin: 30px 0 0;
  text-decoration: none;
  font-weight: 600;
}

.stars { color: var(--amazon-dark); font-weight: 700; }

/* Footer */
.site-footer {
  background: var(--ink);
  color: #c7d3d0;
  padding: 30px 0;
  font-size: .9rem;
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.site-footer a { color: #8fd1b8; text-decoration: none; }

/* Static pages */
.page { padding: 44px 0 60px; max-width: 760px; }
.page h1 { font-size: 1.9rem; }
.page h2 { font-size: 1.2rem; margin-top: 30px; }

/* Cookie banner */
.cookie-bar {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .18);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  z-index: 1000;
}
.cookie-bar p { margin: 0; flex: 1 1 280px; font-size: .9rem; color: var(--muted); }
.cookie-bar .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-bar button {
  border: 0;
  border-radius: 999px;
  padding: 10px 20px;
  font-weight: 600;
  cursor: pointer;
  font-size: .9rem;
}
.cookie-bar .accept { background: var(--accent); color: #fff; }
.cookie-bar .accept:hover { background: var(--accent-dark); }
.cookie-bar .decline { background: #ece8df; color: var(--ink); }
.cookie-bar .decline:hover { background: #e0dbcf; }

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