*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.55; }
a { color: var(--amber-d); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.container { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; }

.site-header {
  background: var(--steel);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 40;
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
}
.logo {
  font-family: var(--display);
  font-size: 1.55rem;
  letter-spacing: 0.06em;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}
.logo:hover { text-decoration: none; color: var(--amber); }
.logo span { color: var(--amber); }
.main-nav ul { display: flex; gap: 1.2rem; list-style: none; margin: 0; padding: 0; }
.main-nav a { color: #d7dbe0; font-weight: 600; }
.main-nav a:hover, .main-nav a.active { color: #fff; text-decoration: none; }
.cart-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid #4a515c;
  padding: 0.4rem 0.7rem;
  border-radius: 6px;
}
.cart-link:hover { text-decoration: none; border-color: var(--amber); }
#cart-count {
  background: var(--amber);
  color: #16181c;
  border-radius: 99px;
  min-width: 1.25rem;
  height: 1.25rem;
  display: inline-grid;
  place-items: center;
  font-size: 0.75rem;
}

.hero {
  background: linear-gradient(120deg, #1c2128 0%, #323a46 70%);
  color: #fff;
  padding: 3.6rem 0 3.2rem;
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.12;
  margin: 0 0 0.8rem;
  letter-spacing: 0.02em;
  max-width: 18ch;
}
.hero p { max-width: 640px; color: #c9ced6; margin: 0 0 1.4rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  background: var(--amber);
  color: #16181c;
  font: inherit;
  font-weight: 700;
  padding: 0.7rem 1.15rem;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { filter: brightness(1.05); text-decoration: none; }
.btn-ghost { background: transparent; color: #fff; border-color: #6a7380; }
.btn-outline { background: #fff; border-color: var(--line); color: var(--ink); }

.section { padding: 3.2rem 0; }
.section h2 {
  font-family: var(--display);
  font-size: 1.8rem;
  letter-spacing: 0.04em;
  margin: 0 0 1.4rem;
}
.note { font-size: 0.88rem; color: var(--muted); }

.grid-products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.card img { aspect-ratio: 1; object-fit: cover; background: #e8e4dc; }
.card-body { padding: 1rem 1.1rem 1.15rem; display: flex; flex-direction: column; flex: 1; }
.card h3 { margin: 0 0 0.35rem; font-size: 1.12rem; }
.price { font-size: 1.25rem; font-weight: 700; margin: 0.4rem 0 0.9rem; }
.card .btn { width: 100%; margin-top: auto; }

.about-band { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about-band p { max-width: 760px; }

.page-header { padding: 2rem 0 0.5rem; }
.breadcrumbs { font-size: 0.85rem; color: var(--muted); margin-bottom: 0.4rem; }

.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding-bottom: 3rem;
}
.legal-content, .prose {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.4rem 1.6rem;
  margin-bottom: 2.5rem;
}
.legal-content h2 { font-size: 1.15rem; margin: 1.2rem 0 0.4rem; }
.legal-content p, .legal-content li { color: var(--muted); }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
label { display: block; font-weight: 600; font-size: 0.88rem; margin: 0.65rem 0 0.25rem; }
input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.65rem 0.75rem;
  font: inherit;
  background: #fff;
}
textarea { min-height: 110px; }

.cart-table { width: 100%; border-collapse: collapse; background: #fff; }
.cart-table th, .cart-table td { padding: 0.75rem; border-bottom: 1px solid var(--line); text-align: left; }
.cart-table img { width: 64px; height: 64px; object-fit: cover; }
.qty { width: 4rem; }
.total-row { font-size: 1.15rem; font-weight: 700; text-align: right; margin: 1rem 0; }

.site-footer {
  background: var(--steel);
  color: #b8bec6;
  padding: 2rem 0 1.4rem;
}
.site-footer a { color: #e0b14a; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.9rem 1.2rem; margin-bottom: 1rem; font-size: 0.9rem; }
.copy { font-size: 0.82rem; color: #8d949e; }

#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #16181c;
  color: #fff;
  padding: 1rem 1.4rem;
  z-index: 90;
  display: none;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  justify-content: space-between;
  border-top: 3px solid var(--amber);
}
#cookie-banner p { margin: 0; flex: 1; font-size: 0.88rem; }
#cookie-banner a { color: var(--amber); }

.toast {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--steel);
  color: #fff;
  padding: 0.7rem 1rem;
  border-radius: 6px;
  z-index: 120;
  font-size: 0.9rem;
  box-shadow: var(--shadow);
}

@media (max-width: 900px) {
  .header-row { flex-wrap: wrap; padding: 0.5rem 0; }
  .main-nav { width: 100%; order: 3; }
  .main-nav ul { overflow-x: auto; padding-bottom: 0.4rem; }
  .grid-products, .product-layout, .contact-grid { grid-template-columns: 1fr; }
}
