:root {
  --bg: #f7f4ee;
  --surface: #ffffff;
  --surface-soft: #ece7dc;
  --ink: #17263a;
  --muted: #5f6b72;
  --navy: #17324d;
  --sage: #6d846d;
  --sage-dark: #435f4b;
  --clay: #b8664e;
  --gold: #b89155;
  --line: rgba(23, 38, 58, 0.14);
  --shadow: 0 18px 40px rgba(23, 38, 58, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
  overflow-x: hidden;
}

body.cart-open,
body.nav-open {
  overflow: hidden;
}

img,
svg {
  display: block;
}

[data-lucide] svg {
  display: block;
}

[data-lucide] path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
  letter-spacing: 0;
}

button {
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.announcement {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 8px 20px;
  color: #ffffff;
  background: var(--navy);
  font-size: 13px;
}

.announcement span {
  white-space: nowrap;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 74px;
  padding: 0 42px;
  background: rgba(247, 244, 238, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-weight: 800;
  color: var(--ink);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #ffffff;
  background: var(--sage-dark);
  font-size: 12px;
  font-weight: 900;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  font-size: 14px;
  color: var(--muted);
}

.nav-links a {
  padding: 8px 0;
}

.nav-links a:hover {
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.region-switcher {
  display: inline-grid;
  grid-template-columns: repeat(3, 42px);
  align-items: center;
  height: 40px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.region-option {
  height: 32px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  font-weight: 800;
}

.region-option.is-active {
  color: #ffffff;
  background: var(--navy);
}

.cart-button,
.button,
.checkout-button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  text-align: center;
}

.cart-button {
  position: relative;
  min-width: 112px;
  height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--ink);
  font-weight: 800;
}

.cart-button svg,
.button svg,
.checkout-button svg,
.icon-button svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.cart-count {
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  color: var(--ink);
  background: #ffffff;
  font-size: 12px;
}

.icon-button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
}

.mobile-nav-toggle {
  display: none;
}

.hero {
  position: relative;
  min-height: 540px;
  height: calc(100vh - 150px);
  max-height: 690px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(247, 244, 238, 0.96) 0%, rgba(247, 244, 238, 0.72) 37%, rgba(247, 244, 238, 0.08) 70%);
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-content {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 6%;
  width: min(520px, 42vw);
  transform: translateY(-50%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--clay);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  color: var(--ink);
  font-size: 58px;
  line-height: 1.02;
}

h2 {
  margin-bottom: 14px;
  font-size: 34px;
  line-height: 1.12;
}

h3 {
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 1.25;
}

.hero-copy {
  margin-bottom: 26px;
  color: #334151;
  font-size: 19px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 46px;
  padding: 0 18px;
  border-radius: var(--radius);
  font-weight: 900;
}

.button-primary {
  color: #ffffff;
  background: var(--sage-dark);
  box-shadow: 0 12px 24px rgba(67, 95, 75, 0.2);
}

.button-primary:hover {
  background: #385440;
}

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

.button-secondary:hover {
  border-color: rgba(23, 38, 58, 0.3);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.trust-strip div {
  min-height: 96px;
  padding: 22px 34px;
  border-right: 1px solid var(--line);
}

.trust-strip div:last-child {
  border-right: 0;
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip strong {
  margin-bottom: 4px;
  font-size: 15px;
}

.trust-strip span {
  color: var(--muted);
  font-size: 14px;
}

.section {
  padding: 74px 6%;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(280px, 520px) minmax(260px, 420px);
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 34px;
}

.section-heading.compact {
  display: block;
  max-width: 680px;
}

.section-heading p,
.standards-copy p {
  color: var(--muted);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 26px rgba(23, 38, 58, 0.08);
}

.product-media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--surface-soft);
}

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

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--navy);
  font-size: 12px;
  font-weight: 800;
}

.product-body {
  padding: 18px;
}

.product-title-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.product-title-row h3 {
  margin: 0;
}

.product-price {
  min-width: max-content;
  color: var(--sage-dark);
  font-weight: 900;
}

.product-body p {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 14px;
}

.swatches {
  display: flex;
  gap: 8px;
  align-items: center;
}

.swatch {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 1px var(--line);
}

.product-card .button {
  width: calc(100% - 36px);
  margin: 0 18px 18px;
}

.standards-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.84fr) 1.16fr;
  gap: 42px;
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.standards-copy {
  align-self: center;
}

.standards-copy h2 {
  max-width: 560px;
}

.standards-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.standards-list article,
.review-grid figure {
  min-height: 100%;
  margin: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfaf7;
}

.standards-list svg {
  width: 26px;
  height: 26px;
  margin-bottom: 16px;
  color: var(--sage-dark);
}

.standards-list p,
.review-grid blockquote,
.review-grid figcaption {
  color: var(--muted);
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.review-grid blockquote {
  margin: 0 0 20px;
  font-size: 17px;
}

.review-grid figcaption {
  font-size: 14px;
  font-weight: 800;
}

.newsletter-section {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 520px);
  gap: 34px;
  align-items: center;
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(23, 50, 77, 0.96), rgba(67, 95, 75, 0.94)),
    var(--navy);
}

.newsletter-section .eyebrow,
.newsletter-section h2 {
  color: #ffffff;
}

.newsletter-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.newsletter-form input {
  min-height: 48px;
  min-width: 0;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: var(--radius);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  outline: 0;
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.76);
}

.faq-section {
  background: var(--surface);
}

.faq-list {
  max-width: 900px;
  border-top: 1px solid var(--line);
}

details {
  border-bottom: 1px solid var(--line);
}

summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 18px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
}

summary::after {
  content: "+";
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #ffffff;
  background: var(--sage-dark);
  flex: 0 0 30px;
}

details[open] summary::after {
  content: "-";
}

details p {
  max-width: 690px;
  margin-bottom: 22px;
  color: var(--muted);
}

.cart-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 50;
  width: min(440px, 100vw);
  transform: translateX(104%);
  transition: transform 180ms ease;
}

.cart-drawer.is-open {
  transform: translateX(0);
}

.cart-panel {
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: 100%;
  background: var(--surface);
  box-shadow: -20px 0 60px rgba(23, 38, 58, 0.2);
}

.cart-header,
.cart-footer {
  padding: 22px;
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

.cart-header h2 {
  margin-bottom: 0;
  font-size: 24px;
}

.cart-items {
  overflow: auto;
  padding: 18px 22px;
}

.cart-item {
  display: grid;
  grid-template-columns: 78px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.cart-item img {
  width: 78px;
  height: 78px;
  border-radius: var(--radius);
  object-fit: cover;
  background: var(--surface-soft);
}

.cart-item h3 {
  margin: 0 0 4px;
  font-size: 15px;
}

.cart-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.quantity-controls {
  display: inline-grid;
  grid-template-columns: 30px 34px 30px;
  align-items: center;
  height: 32px;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.quantity-controls button {
  width: 30px;
  height: 30px;
  border: 0;
  background: transparent;
  font-weight: 900;
}

.quantity-controls span {
  text-align: center;
  font-size: 13px;
  font-weight: 900;
}

.remove-item {
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 13px;
  text-decoration: underline;
}

.cart-empty {
  display: none;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 42px;
  color: var(--muted);
}

.cart-empty.is-visible {
  display: grid;
}

.cart-empty svg {
  width: 36px;
  height: 36px;
}

.cart-footer {
  border-top: 1px solid var(--line);
}

.cart-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 18px;
}

.cart-footer p {
  color: var(--muted);
  font-size: 14px;
}

.checkout-button {
  width: 100%;
  min-height: 50px;
  border-radius: var(--radius);
  color: #ffffff;
  background: var(--ink);
  font-weight: 900;
}

.cart-backdrop {
  position: fixed;
  inset: 0;
  z-index: 45;
  pointer-events: none;
  opacity: 0;
  background: rgba(23, 38, 58, 0.35);
  transition: opacity 180ms ease;
}

body.cart-open .cart-backdrop {
  pointer-events: auto;
  opacity: 1;
}

.ai-assistant {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 62;
}

.ai-launcher {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: var(--navy);
  box-shadow: 0 16px 36px rgba(23, 38, 58, 0.22);
  font-weight: 900;
}

.ai-launcher svg {
  width: 20px;
  height: 20px;
}

.ai-panel {
  position: absolute;
  left: 0;
  bottom: 62px;
  display: none;
  width: min(380px, calc(100vw - 40px));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 22px 60px rgba(23, 38, 58, 0.22);
}

.ai-assistant.is-open .ai-panel {
  display: grid;
  grid-template-rows: auto minmax(170px, 280px) auto auto;
}

.ai-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
  background: #fbfaf7;
}

.ai-header h2 {
  margin: 0;
  font-size: 22px;
}

.ai-messages {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  padding: 16px;
  overflow-y: auto;
}

.ai-message {
  max-width: 88%;
  padding: 10px 12px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.42;
  white-space: pre-line;
}

.ai-message.is-bot {
  align-self: flex-start;
  color: var(--ink);
  background: var(--surface-soft);
  border-bottom-left-radius: 4px;
}

.ai-message.is-user {
  align-self: flex-end;
  color: #ffffff;
  background: var(--sage-dark);
  border-bottom-right-radius: 4px;
}

.ai-prompts {
  display: flex;
  gap: 8px;
  padding: 0 16px 12px;
  overflow-x: auto;
}

.ai-prompts button {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: #ffffff;
  font-size: 13px;
  font-weight: 800;
}

.ai-form {
  display: grid;
  grid-template-columns: 1fr 44px;
  gap: 8px;
  padding: 14px;
  border-top: 1px solid var(--line);
  background: #fbfaf7;
}

.ai-form input {
  min-width: 0;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: #ffffff;
  outline: 0;
}

.ai-form input:focus {
  border-color: rgba(67, 95, 75, 0.6);
  box-shadow: 0 0 0 3px rgba(67, 95, 75, 0.12);
}

.ai-form button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: var(--radius);
  color: #ffffff;
  background: var(--sage-dark);
}

.ai-form button svg {
  width: 18px;
  height: 18px;
}

.cookie-banner {
  position: fixed;
  left: auto;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(620px, calc(100% - 40px));
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.cookie-banner.is-visible {
  display: flex;
}

.cookie-banner p {
  margin: 0;
  color: var(--muted);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  padding: 42px 6%;
  color: #ffffff;
  background: #121d2b;
}

.site-footer p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.68);
}

.footer-brand {
  color: #ffffff;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  color: rgba(255, 255, 255, 0.76);
}

.not-found {
  min-height: 100vh;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 18px;
  width: min(620px, calc(100% - 40px));
  margin: 0 auto;
}

.not-found h1 {
  margin: 10px 0 0;
}

.not-found p {
  color: var(--muted);
  font-size: 18px;
}

@media (max-width: 1120px) {
  .site-header {
    padding: 0 24px;
    gap: 18px;
  }

  .hero-content {
    width: min(540px, 52vw);
  }

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

  .standards-section,
  .newsletter-section {
    grid-template-columns: 1fr;
  }

  .standards-list,
  .review-grid {
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    overflow-x: auto;
    padding-bottom: 6px;
  }
}

@media (max-width: 820px) {
  .announcement {
    justify-content: flex-start;
    gap: 18px;
    overflow-x: auto;
  }

  .site-header {
    grid-template-columns: auto 1fr auto auto;
    min-height: 66px;
    padding: 0 16px;
    gap: 10px;
  }

  .mobile-nav-toggle {
    display: inline-flex;
    grid-column: 3;
    justify-self: end;
  }

  .nav-links {
    position: fixed;
    top: 104px;
    left: 16px;
    right: 16px;
    z-index: 30;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  body.nav-open .nav-links {
    display: flex;
  }

  .nav-links a {
    padding: 14px 10px;
    border-bottom: 1px solid var(--line);
  }

  .nav-links a:last-child {
    border-bottom: 0;
  }

  .header-actions {
    grid-column: 4;
    justify-self: end;
  }

  .region-switcher {
    display: none;
  }

  .cart-button {
    min-width: 46px;
    width: 46px;
    padding: 0;
  }

  .cart-button > span:nth-child(2) {
    display: none;
  }

  .cart-count {
    position: absolute;
    top: -5px;
    right: -6px;
  }

  .hero {
    min-height: 482px;
    height: calc(100vh - 158px);
    max-height: 560px;
  }

  .hero::after {
    background: linear-gradient(90deg, rgba(247, 244, 238, 0.96) 0%, rgba(247, 244, 238, 0.78) 48%, rgba(247, 244, 238, 0.12) 100%);
  }

  .hero-image {
    object-position: 61% center;
  }

  .hero-content {
    left: 20px;
    right: 20px;
    width: auto;
    max-width: 330px;
    overflow-wrap: break-word;
  }

  h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 28px;
  }

  .hero-copy {
    font-size: 16px;
  }

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

  .trust-strip div {
    min-height: 88px;
    padding: 18px;
  }

  .section {
    padding: 54px 20px;
  }

  .section-heading {
    display: block;
  }

  .product-grid {
    gap: 14px;
  }

  .newsletter-form {
    grid-template-columns: 1fr;
  }

  .site-footer {
    display: grid;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 15px;
  }

  .brand span:last-child {
    display: none;
  }

  .hero {
    min-height: 500px;
    height: auto;
  }

  .hero-content {
    top: 42%;
  }

  .hero-actions {
    display: grid;
    width: min(100%, 320px);
  }

  .button {
    width: 100%;
  }

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

  .product-card {
    min-height: 0;
  }

  .standards-list,
  .review-grid {
    display: grid;
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .cart-item {
    grid-template-columns: 66px 1fr;
  }

  .cart-item img {
    width: 66px;
    height: 66px;
  }

  .remove-item {
    grid-column: 2;
    justify-self: start;
  }

  .ai-assistant {
    left: 16px;
    bottom: 16px;
  }

  .ai-launcher {
    min-width: 132px;
  }

  .ai-panel {
    width: calc(100vw - 32px);
    bottom: 60px;
  }

  .ai-assistant.is-open .ai-panel {
    grid-template-rows: auto minmax(190px, 44vh) auto auto;
  }

  .cookie-banner {
    display: none;
    align-items: stretch;
    flex-direction: column;
    left: 16px;
    right: 16px;
    bottom: 84px;
    width: auto;
  }

  .cookie-banner p {
    overflow-wrap: break-word;
  }

  .cookie-banner.is-visible {
    display: flex;
  }
}
