:root {
  --bg: #f5f2e9;
  --surface: #ffffff;
  --surface-soft: #e9e3d3;
  --ink: #151716;
  --muted: #5e6769;
  --line: #d8d1bf;
  --yellow: #f2b705;
  --yellow-soft: #fff1b8;
  --teal: #0a6b63;
  --teal-dark: #074842;
  --shadow: 0 18px 42px rgba(19, 23, 23, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

main {
  display: flex;
  flex: 1;
  flex-direction: column;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2.5rem, 5.4vw, 4.7rem);
}

h2 {
  font-size: clamp(1.65rem, 3vw, 2.8rem);
}

h3 {
  font-size: 1.15rem;
}

p {
  margin: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 1rem;
  min-height: 62px;
  padding: 0.65rem clamp(1rem, 3vw, 2rem);
  border-bottom: 1px solid rgba(21, 23, 22, 0.12);
  background: rgba(245, 242, 233, 0.94);
  backdrop-filter: blur(16px);
}

.site-header > * {
  min-width: 0;
}

.brand,
.nav-links,
.nav-cta,
.language-switcher {
  font-size: 0.9rem;
  font-weight: 800;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  max-width: min(220px, 56vw);
  text-decoration: none;
}

.brand span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 30px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 0.78rem;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.4rem);
  color: var(--muted);
}

.nav-links a,
.nav-cta,
.language-switcher a {
  text-decoration: none;
}

.nav-links a:hover,
.nav-cta:hover,
.language-switcher a:hover {
  color: var(--teal);
}

.nav-cta {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 6px;
  padding: 0 0.9rem;
  background: var(--ink);
  color: #fff;
}

.language-switcher {
  position: relative;
  justify-self: end;
}

.language-switcher details {
  position: relative;
  border: 0;
  padding: 0;
}

.language-switcher summary {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  padding: 0 0.72rem;
  list-style: none;
  cursor: pointer;
}

.language-switcher summary::-webkit-details-marker {
  display: none;
}

.language-switcher summary::after {
  content: "";
  width: 0;
  height: 0;
  border-inline: 4px solid transparent;
  border-top: 5px solid currentColor;
}

.language-switcher summary span,
.language-menu a span {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 24px;
  border-radius: 5px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 900;
}

.language-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  display: grid;
  min-width: 172px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.language-menu a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.72rem 0.85rem;
  color: var(--ink);
  white-space: nowrap;
}

.language-menu a + a {
  border-top: 1px solid var(--line);
}

.language-menu a[aria-current="page"] {
  background: var(--surface-soft);
}

.brand-hero {
  padding: clamp(1rem, 2.4vw, 1.5rem) clamp(1rem, 4vw, 2rem);
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.brand-hero-copy {
  display: grid;
  grid-template-columns: minmax(150px, 0.24fr) minmax(0, 0.76fr);
  gap: 0.85rem clamp(1rem, 3vw, 2rem);
  align-items: center;
}

.brand-hero-copy .eyebrow {
  margin: 0;
}

.brand-hero-main {
  display: grid;
  gap: 0.35rem;
}

.brand-hero-main h2 {
  font-size: clamp(1.3rem, 2.4vw, 2rem);
}

.brand-hero-main p {
  max-width: 720px;
  color: var(--muted);
  font-size: 0.96rem;
}

.eyebrow,
.section-kicker,
.product-type {
  margin: 0 0 0.65rem;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.hero-actions {
  margin-top: 1.3rem;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  border-radius: 6px;
  padding: 0.68rem 0.95rem;
  font: inherit;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
  transition: transform 150ms ease, background 150ms ease, color 150ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  border-color: var(--yellow);
  background: var(--yellow);
  color: #151515;
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.button-secondary.light {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

.hero-note {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.76) !important;
  font-size: 0.9rem !important;
}

.compact-section {
  padding: clamp(2rem, 4vw, 3.2rem) clamp(1rem, 4vw, 2rem);
}

.section-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.compact-heading {
  display: grid;
  gap: 0.45rem;
  max-width: 760px;
  margin-bottom: clamp(1rem, 2.2vw, 1.45rem);
}

.compact-heading h2 {
  max-width: 760px;
}

.compact-heading > p:not(.section-kicker),
.catalog-card-copy,
.catalog-card-meta {
  color: var(--muted);
}

.catalog-section {
  flex: 1;
  padding: clamp(1.4rem, 3.2vw, 2.4rem) clamp(1rem, 4vw, 2rem);
  background: #f8f5ea;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 360px));
  gap: 1rem;
  justify-content: start;
}

.catalog-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.catalog-card-media {
  background: #ddd5c3;
  text-decoration: none;
}

.catalog-card-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.catalog-card-body {
  display: grid;
  align-content: space-between;
  gap: 0.8rem;
  padding: 1rem;
}

.catalog-card-body h3 {
  margin-bottom: 0.5rem;
}

.catalog-card-body h3 a {
  text-decoration: none;
}

.catalog-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 850;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr));
  gap: 1rem;
}

.product-card,
.product-detail-module {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.product-card {
  display: grid;
  grid-template-columns: minmax(180px, 0.42fr) minmax(0, 0.58fr);
  min-height: 246px;
  overflow: hidden;
}

.product-card-media {
  position: relative;
  min-height: 246px;
  background: #ddd5c3;
  text-decoration: none;
}

.product-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card-body {
  display: grid;
  align-content: space-between;
  gap: 0.9rem;
  padding: 1.15rem;
}

.product-card-body h3 a {
  text-decoration: none;
}

.product-card-body p:not(.product-type),
.detail-module-section p,
.detail-module-section li,
.product-summary > p:not(.eyebrow):not(.product-subtitle) {
  color: var(--muted);
}

.card-actions {
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.text-link {
  color: var(--teal);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}

.status-pill {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(10, 107, 99, 0.28);
  border-radius: 999px;
  background: #e1f2ef;
  color: var(--teal-dark);
  padding: 0.2rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.product-card-media .status-pill {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
}

.status-pill.muted {
  border-color: rgba(94, 103, 105, 0.3);
  background: #eeeeea;
  color: var(--muted);
}

.product-page-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.58fr) minmax(320px, 0.42fr);
  gap: clamp(1rem, 3vw, 2rem);
  width: min(1180px, calc(100% - 2rem));
  margin: clamp(1rem, 2.5vw, 2rem) auto 0;
  align-items: start;
}

.product-gallery,
.product-summary,
.product-card,
.product-detail-module {
  min-width: 0;
}

.product-gallery {
  display: grid;
  gap: 0.75rem;
}

.featured-photo {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.featured-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.gallery-button {
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 0.35rem;
  cursor: pointer;
}

.gallery-button img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  object-fit: cover;
}

.gallery-button.active {
  border-color: var(--teal);
  outline: 3px solid rgba(10, 107, 99, 0.16);
}

.product-summary {
  display: grid;
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: clamp(1.2rem, 2.6vw, 1.7rem);
  box-shadow: var(--shadow);
}

.product-summary h1 {
  font-size: clamp(2.2rem, 4.8vw, 4.2rem);
}

.product-subtitle {
  color: var(--teal);
  font-size: 1.05rem;
  font-weight: 900;
}

.summary-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 0.9rem;
}

.product-detail-module {
  overflow: hidden;
}

.detail-module-heading {
  padding: clamp(1.1rem, 2vw, 1.35rem) clamp(1rem, 2vw, 1.25rem);
  border-bottom: 1px solid var(--line);
}

.detail-module-content {
  display: grid;
}

.detail-module-section {
  padding: clamp(1.1rem, 2vw, 1.35rem) clamp(1rem, 2vw, 1.25rem);
  border-bottom: 1px solid var(--line);
}

.detail-module-section:last-child {
  border-bottom: 0;
}

.detail-module-section h3 {
  margin-bottom: 0.85rem;
  font-size: clamp(1.18rem, 1.8vw, 1.55rem);
}

.detail-module-section ul {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding-left: 1.15rem;
}

.detail-module-section details {
  border-top: 1px solid var(--line);
  padding: 0.85rem 0;
}

.detail-module-section details:last-child {
  border-bottom: 1px solid var(--line);
}

.detail-module-section summary {
  cursor: pointer;
  font-weight: 900;
}

.detail-module-section details p {
  margin-top: 0.55rem;
}

.richtext-content {
  display: grid;
  gap: 1rem;
  padding: clamp(1.1rem, 2vw, 1.35rem) clamp(1rem, 2vw, 1.25rem);
}

.richtext-content h2,
.richtext-content h3,
.richtext-content h4 {
  margin-top: 0.35rem;
}

.richtext-content h2 {
  font-size: clamp(1.3rem, 2vw, 1.75rem);
}

.richtext-content h3 {
  font-size: clamp(1.12rem, 1.6vw, 1.35rem);
}

.richtext-content p,
.richtext-content li,
.richtext-content figcaption,
.richtext-content td {
  color: var(--muted);
}

.richtext-content ul,
.richtext-content ol {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding-left: 1.15rem;
}

.richtext-content figure {
  display: grid;
  gap: 0.55rem;
  margin: 0;
}

.richtext-content img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.richtext-content table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
}

.richtext-content th,
.richtext-content td {
  border: 1px solid var(--line);
  padding: 0.65rem 0.75rem;
  text-align: left;
}

.richtext-content th {
  background: #f5f0e2;
  color: var(--ink);
}

.richtext-content blockquote {
  margin: 0;
  border-left: 3px solid var(--yellow);
  padding-left: 1rem;
  color: var(--muted);
}

.detail-image-block {
  display: grid;
  gap: 0.55rem;
  margin: 0;
}

.detail-image-block img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
}

.detail-image-block figcaption {
  color: var(--muted);
  font-size: 0.92rem;
}

.other-products {
  background: #f9f7ef;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.7rem clamp(1rem, 4vw, 2rem);
  border-top: 1px solid var(--line);
  background: var(--ink);
  color: #fff;
}

.site-footer p,
.site-footer span {
  margin-top: 0.22rem;
  color: rgba(255, 255, 255, 0.68);
}

.site-footer a {
  color: var(--yellow);
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .nav-links {
    display: none;
  }

  .compact-heading,
  .product-page-hero {
    grid-template-columns: 1fr;
  }

  .product-summary {
    order: -1;
  }
}

@media (max-width: 760px) {
  h1 {
    font-size: clamp(2.35rem, 11vw, 3.4rem);
  }

  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 58px;
    gap: 0.65rem;
    padding: 0.58rem 0.75rem;
  }

  .brand {
    gap: 0.5rem;
    font-size: 0.82rem;
  }

  .brand-mark {
    width: 36px;
    height: 28px;
  }

  .nav-cta {
    display: none;
  }

  .language-switcher summary {
    min-height: 36px;
    max-width: 96px;
    padding: 0 0.55rem;
    overflow: hidden;
    font-size: 0;
  }

  .language-switcher summary span {
    flex: 0 0 auto;
  }

  .brand-hero {
    padding: 1rem 0.75rem;
  }

  .brand-hero-copy {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .card-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    grid-template-columns: 1fr;
  }

  .product-card-media {
    min-height: 220px;
  }

  .summary-row {
    justify-content: flex-start;
  }

  .gallery-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer {
    display: grid;
  }
}
