:root {
  --paper: #fbfaf7;
  --surface: #ffffff;
  --mist: #eef1ef;
  --line: #ded8cf;
  --ink: #242321;
  --muted: #65615b;
  --terracotta: #b96548;
  --terracotta-dark: #914c36;
  --sage: #738b76;
  --charcoal: #242321;
  --sand: #d9c9b3;
  --shadow: 0 18px 48px rgba(36, 35, 33, 0.10);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  letter-spacing: 0;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
button, input, select, textarea { font: inherit; }
button, .button {
  min-height: 44px;
  border: 1px solid var(--charcoal);
  border-radius: 6px;
  padding: 0.72rem 1rem;
  background: var(--charcoal);
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  cursor: pointer;
  font-weight: 700;
}
button:hover, .button:hover { background: #000; }
button[data-just-added="true"] {
  background: var(--sage);
  border-color: var(--sage);
  color: #fff;
}
.button-secondary, .button-light {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--line);
}
.button-light {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(255, 255, 255, 0.9);
}
.button-secondary:hover, .button-light:hover { background: var(--mist); color: var(--charcoal); }
.skip-link {
  position: absolute;
  left: 1rem;
  top: 0.5rem;
  z-index: 20;
  background: var(--charcoal);
  color: #fff;
  padding: 0.5rem 0.75rem;
  transform: translateY(-140%);
}
.skip-link:focus { transform: translateY(0); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 15;
  background: rgba(251, 250, 247, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.topline, .primary-nav, .band, .catalog-layout, .content-page, .article-grid, .cart-section, .checkout-layout, .contact-layout, .breadcrumbs, .product-detail, .guide-preview, .site-footer {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}
.topline {
  min-height: 74px;
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr) auto auto auto;
  gap: 1rem;
  align-items: center;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.brand-logo {
  width: clamp(156px, 16vw, 220px);
  height: auto;
  max-height: 52px;
  object-fit: contain;
}
.footer-brand .brand-logo {
  width: 220px;
  max-width: 100%;
  max-height: none;
}
.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--charcoal);
  background: var(--surface);
  border-radius: 6px;
  font-size: 0.75rem;
  letter-spacing: 0;
}
.search-form {
  display: grid;
  grid-template-columns: 1fr auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
}
.search-form input {
  border: 0;
  padding: 0.75rem 0.9rem;
  min-width: 0;
  background: transparent;
}
.search-form button {
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface);
  color: var(--ink);
  min-height: 42px;
}
.cart-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-weight: 700;
}
.cart-link strong {
  min-width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--terracotta);
  color: #fff;
  font-size: 0.85rem;
}
.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 800;
}
.language-switcher a {
  text-decoration: none;
  opacity: 0.5;
}
.language-switcher a.is-active {
  opacity: 1;
  color: var(--terracotta-dark);
}
.menu-button {
  display: none;
  width: 44px;
  min-width: 44px;
  padding: 0;
}
.menu-icon {
  position: relative;
  width: 18px;
  height: 12px;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}
.menu-icon::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 3px;
  border-top: 2px solid currentColor;
}
.primary-nav {
  display: flex;
  gap: 1.2rem;
  min-height: 44px;
  align-items: center;
  overflow-x: auto;
  font-size: 0.95rem;
}
.primary-nav a { text-decoration: none; color: var(--muted); }
.primary-nav a:hover { color: var(--ink); }

.hero {
  min-height: 58svh;
  position: relative;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: var(--charcoal);
}
.hero picture, .hero picture::after {
  position: absolute;
  inset: 0;
}
.hero picture::after {
  content: "";
  display: block;
  background: linear-gradient(90deg, rgba(36,35,33,0.76) 0%, rgba(36,35,33,0.45) 42%, rgba(36,35,33,0.05) 100%);
}
.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-content {
  position: relative;
  z-index: 1;
  width: min(680px, calc(100% - 2rem));
  margin-left: max(1rem, calc((100vw - var(--max)) / 2));
  padding-block: 3rem;
  color: #fff;
}
.hero h1 {
  font-size: clamp(2.25rem, 5.2vw, 4.4rem);
  line-height: 0.98;
  max-width: 14ch;
  margin: 0.2rem 0 1rem;
  letter-spacing: 0;
}
.hero p { max-width: 62ch; font-size: 1.08rem; }
.hero-actions, .product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1.5rem;
}

.page-hero {
  padding: 5rem 1rem 3rem;
  background: linear-gradient(180deg, var(--surface), var(--paper));
  border-bottom: 1px solid var(--line);
}
.page-hero.compact > * {
  width: min(860px, 100%);
  margin-left: max(0rem, calc((100vw - var(--max)) / 2));
  margin-right: auto;
}
.page-hero h1, .content-page h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.05;
  margin: 0.25rem 0 1rem;
  letter-spacing: 0;
}
.page-hero p { max-width: 760px; color: var(--muted); font-size: 1.08rem; }
.eyebrow {
  margin: 0 0 0.45rem;
  color: var(--terracotta-dark);
  font-size: 0.82rem;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0;
}

.band {
  padding-block: 4rem;
}
.benefits {
  padding-top: 2rem;
}
.band.muted {
  width: 100%;
  max-width: none;
  padding-inline: max(1rem, calc((100vw - var(--max)) / 2));
  background: var(--mist);
}
.section-heading {
  max-width: 760px;
  margin-bottom: 1.5rem;
}
.section-heading.inline {
  max-width: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
}
.section-heading h2, .guide-preview h2 {
  font-size: clamp(1.6rem, 3vw, 2.7rem);
  line-height: 1.12;
  margin: 0;
  letter-spacing: 0;
}
.benefit-grid, .category-grid, .support-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.benefit-grid article, .category-card, .product-card, .article-card, .legal-box, .cart-summary, .filters, .checkout-form, .contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(36, 35, 33, 0.04);
}
.benefit-grid article {
  padding: 1.2rem;
}
.benefit-grid h3 { margin-top: 0; }
.category-card { overflow: hidden; }
.category-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--mist);
}
.category-card a {
  display: block;
  text-decoration: none;
  font-weight: 800;
}
.category-card span {
  display: block;
  padding: 1rem 1rem 0;
}
.category-card p { padding: 0 1rem 1rem; color: var(--muted); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  background: var(--surface);
}
.product-image-link img {
  width: 100%;
  aspect-ratio: 1.18 / 1;
  object-fit: cover;
  background: #e7e2da;
}
.product-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1rem;
}
.product-card h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.25;
}
.product-card h3 a { text-decoration: none; }
.product-card p { color: var(--muted); }
.product-card-footer {
  margin-top: auto;
  display: grid;
  gap: 0.75rem;
}
.product-card-footer button { width: 100%; }

.guide-preview {
  margin-block: 4rem;
  padding: 2rem;
  background: var(--charcoal);
  color: #fff;
  border-radius: 8px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
}
.guide-preview p { max-width: 64ch; color: rgba(255,255,255,0.78); }
.support-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.support-list li {
  padding: 1rem;
  border-left: 4px solid var(--sage);
  background: var(--surface);
  border-radius: 8px;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 1.2rem;
  padding-block: 2rem 4rem;
  align-items: start;
}
.filters {
  position: sticky;
  top: 132px;
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
}
.filters h2 { margin: 0; }
.filters label, .checkout-form label, .contact-form label {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.95rem;
}
.filters input, .filters select, .checkout-form input, .checkout-form select, .checkout-form textarea, .contact-form input, .contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 6px;
  padding: 0.72rem 0.75rem;
}
.filters .checkline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.filters .checkline input { width: auto; }
.filter-count, .catalog-toolbar { color: var(--muted); font-weight: 700; }
.catalog-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1rem;
}

.breadcrumbs {
  padding-block: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(320px, 0.94fr);
  gap: 2rem;
  padding-block: 1rem 4rem;
  align-items: start;
}
.product-gallery {
  display: grid;
  gap: 0.75rem;
}
.main-product-image {
  width: 100%;
  aspect-ratio: 1.18 / 1;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--mist);
}
.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
.gallery-thumbs button {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 0;
  overflow: hidden;
  border-radius: 8px;
}
.gallery-thumbs img {
  aspect-ratio: 1.18 / 1;
  object-fit: cover;
  width: 100%;
}
.product-summary {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.product-summary h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.05;
  margin: 0 0 1rem;
  letter-spacing: 0;
}
.lead { font-size: 1.12rem; color: var(--muted); }
.price {
  font-size: 1.55rem;
  font-weight: 900;
  color: var(--terracotta-dark);
}
.qty-label {
  display: grid;
  gap: 0.25rem;
  font-weight: 700;
  color: var(--muted);
}
.qty-label input {
  width: 92px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.7rem;
}
.detail-list {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.detail-list dt, .detail-list dd {
  margin: 0;
  padding: 1rem;
  border-bottom: 1px solid var(--line);
}
.detail-list dt {
  font-weight: 800;
  background: var(--mist);
}

.content-page {
  max-width: 880px;
  padding-block: 3rem 4rem;
  font-size: 1.08rem;
}
.content-page p { color: var(--muted); }
.article-grid {
  padding-block: 3rem 4rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.article-card { padding: 1.2rem; }
.article-card-image {
  display: block;
  margin: -1.2rem -1.2rem 1rem;
}
.article-card-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #e7e2da;
}
.article-card h2 { font-size: 1.25rem; line-height: 1.25; }
.article-card h2 a { text-decoration: none; }
.article-page { padding-top: 2rem; }
.article-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  margin: 1rem 0 1.25rem;
  background: #e7e2da;
}
.legal-box { padding: 1.2rem; }
.legal-box h2 { margin-top: 0; }
.legal-page {
  max-width: 960px;
}
.legal-section {
  padding-top: 1.35rem;
  margin-top: 1.35rem;
  border-top: 1px solid var(--line);
}
.legal-section h2 {
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.2;
}
.legal-section h3 {
  margin-bottom: 0.35rem;
}
.legal-section ul {
  padding-left: 1.2rem;
  color: var(--muted);
}
.legal-section li + li {
  margin-top: 0.45rem;
}
.legal-section dl {
  display: grid;
  grid-template-columns: minmax(160px, 0.42fr) minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
}
.legal-section dt, .legal-section dd {
  margin: 0;
  padding: 0.8rem 0.9rem;
  border-bottom: 1px solid var(--line);
}
.legal-section dt {
  font-weight: 800;
  background: var(--mist);
}
.legal-section dd {
  color: var(--muted);
}
.legal-section dt:last-of-type, .legal-section dd:last-of-type {
  border-bottom: 0;
}
.legal-form-sample {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
  background: var(--surface);
}
.legal-updated {
  font-size: 0.9rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.cart-section, .checkout-layout, .contact-layout {
  padding-block: 3rem 4rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 1.2rem;
  align-items: start;
}
.cart-item {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.75rem;
  margin-bottom: 0.75rem;
}
.cart-item img {
  width: 110px;
  aspect-ratio: 1.18 / 1;
  object-fit: cover;
  border-radius: 6px;
}
.cart-item h3 { margin: 0; font-size: 1rem; }
.cart-item-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}
.cart-item-actions input {
  width: 74px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.6rem;
}
.cart-summary, .checkout-form, .contact-form {
  padding: 1.2rem;
}
.cart-summary .button { width: 100%; margin-top: 0.75rem; }
.cart-toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 45;
  width: min(420px, calc(100% - 2rem));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 0.85rem 1rem;
  color: var(--ink);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease;
}
.cart-toast[hidden] { display: none; }
.cart-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.cart-toast span {
  font-weight: 800;
}
.cart-toast a {
  color: var(--terracotta-dark);
  font-weight: 800;
  white-space: nowrap;
}
.checkout-form { display: grid; gap: 1rem; }
.checkout-form .checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-weight: 600;
}
.checkout-form .checkbox-field input {
  width: auto;
  margin-top: 0.25rem;
  flex: 0 0 auto;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.notice {
  padding: 1rem;
  border: 1px solid var(--sand);
  background: #fff8ee;
  border-radius: 8px;
  color: var(--terracotta-dark);
  font-weight: 700;
}
.form-result {
  color: #2f6a43;
  font-weight: 800;
}

.site-footer {
  padding-block: 3rem 1.5rem;
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 1rem;
}
.footer-cookie-button {
  min-height: 0;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  justify-content: flex-start;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
.footer-cookie-button:hover {
  background: transparent;
  color: var(--terracotta-dark);
}
.legal-line {
  color: var(--muted);
  font-size: 0.88rem;
  border-top: 1px solid var(--line);
  margin-top: 2rem;
  padding-top: 1rem;
}

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 30;
  width: min(960px, calc(100% - 2rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
  box-shadow: var(--shadow);
}
.cookie-banner[hidden] { display: none; }
.cookie-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.cookie-preferences {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
}
:focus-visible {
  outline: 3px solid var(--sage);
  outline-offset: 3px;
}

@media (max-width: 980px) {
  .topline {
    grid-template-columns: auto 1fr auto auto;
  }
  .search-form {
    grid-column: 1 / -1;
    order: 5;
  }
  .menu-button { display: inline-flex; }
  .primary-nav {
    display: none;
    padding-bottom: 1rem;
    flex-wrap: wrap;
  }
  .primary-nav.is-open { display: flex; }
  .benefit-grid, .category-grid, .product-grid, .article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .catalog-layout, .product-detail, .cart-section, .checkout-layout, .contact-layout {
    grid-template-columns: 1fr;
  }
  .filters { position: static; }
  .guide-preview {
    grid-template-columns: 1fr;
  }
  .cart-summary { order: -1; }
}

@media (max-width: 640px) {
  .topline {
    grid-template-columns: auto auto auto auto;
    justify-content: space-between;
    gap: 0.7rem;
  }
  .brand span:last-child { display: none; }
  .cart-link span { display: none; }
  .hero { min-height: 62svh; }
  .hero picture::after {
    background: linear-gradient(180deg, rgba(36,35,33,0.72), rgba(36,35,33,0.34));
  }
  .hero h1 {
    font-size: clamp(2rem, 11vw, 3.4rem);
    max-width: 12ch;
  }
  .hero-content { padding-block: 3rem 3.5rem; }
  .band { padding-block: 3rem; }
  .benefit-grid, .category-grid, .product-grid, .article-grid, .support-list, .form-grid {
    grid-template-columns: 1fr;
  }
  .section-heading.inline {
    display: block;
  }
  .detail-list {
    grid-template-columns: 1fr;
  }
  .detail-list dt { border-bottom: 0; }
  .legal-section dl {
    grid-template-columns: 1fr;
  }
  .legal-section dt {
    border-bottom: 0;
  }
  .product-summary { padding: 1rem; }
  .cart-item {
    grid-template-columns: 88px minmax(0, 1fr);
  }
  .cart-item img { width: 88px; }
  .cart-item > strong { grid-column: 2; }
  .footer-grid, .footer-links {
    grid-template-columns: 1fr;
  }
  .cookie-banner {
    grid-template-columns: 1fr;
  }
  .cookie-actions { justify-content: stretch; }
  .cookie-actions button { flex: 1 1 140px; }
}
