:root {
  --ink: #1f2928;
  --muted: #64706d;
  --paper: #fbfaf5;
  --soft: #eef4ee;
  --line: #d8e0db;
  --green: #247b64;
  --green-dark: #155542;
  --coral: #e8684a;
  --sun: #f2be5c;
  --charcoal: #263130;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(31, 41, 40, 0.12);
  --radius: 8px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
}

body.drawer-open {
  overflow: hidden;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(210px, 1fr) auto auto;
  align-items: center;
  gap: 24px;
  padding: 14px clamp(16px, 4vw, 52px);
  background: rgba(251, 250, 245, 0.92);
  border-bottom: 1px solid rgba(216, 224, 219, 0.9);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  flex: 0 0 42px;
  color: var(--white);
  background: var(--charcoal);
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1rem;
}

.brand small {
  color: var(--muted);
  font-size: 0.75rem;
}

.main-nav {
  display: flex;
  gap: 6px;
  color: var(--muted);
  font-size: 0.92rem;
}

.main-nav a {
  padding: 9px 11px;
  border-radius: 6px;
}

.main-nav a:hover {
  color: var(--ink);
  background: var(--soft);
}

.cart-trigger,
.button,
.icon-button,
.quantity button,
.product-card button {
  min-height: 42px;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
}

.cart-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 12px;
  color: var(--white);
  background: var(--green);
}

.cart-trigger strong {
  display: grid;
  min-width: 23px;
  height: 23px;
  place-items: center;
  color: var(--green-dark);
  background: var(--white);
  border-radius: 999px;
  font-size: 0.78rem;
}

.hero {
  position: relative;
  min-height: min(680px, calc(100vh - 110px));
  isolation: isolate;
  display: grid;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero picture,
.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero img {
  object-fit: cover;
  object-position: center right;
  z-index: -2;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, rgba(251, 250, 245, 0.96) 0%, rgba(251, 250, 245, 0.85) 38%, rgba(251, 250, 245, 0.2) 70%),
    linear-gradient(0deg, rgba(251, 250, 245, 0.2), rgba(251, 250, 245, 0.1));
}

.hero-content {
  width: min(690px, calc(100% - 32px));
  margin-left: clamp(16px, 5vw, 72px);
  padding: 56px 0 64px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--coral);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

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

h1 {
  max-width: 17ch;
  font-size: clamp(2.4rem, 4.2vw, 3.25rem);
  line-height: 1.03;
}

h2 {
  font-size: clamp(2rem, 4.7vw, 3.4rem);
}

h3 {
  font-size: 1.08rem;
}

.hero-copy {
  max-width: 600px;
  margin: 18px 0 0;
  color: #495551;
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.7;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  font-weight: 800;
  transition:
    transform 0.18s ease,
    background 0.18s ease;
}

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

.button.primary {
  color: var(--white);
  background: var(--green);
}

.button.primary:hover {
  background: var(--green-dark);
}

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

.button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.button.full {
  width: 100%;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 650px;
  margin: 26px 0 0;
}

.hero-stats div {
  padding: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(216, 224, 219, 0.9);
  border-radius: var(--radius);
}

.hero-stats dt {
  font-weight: 900;
}

.hero-stats dd {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.section {
  padding: clamp(58px, 9vw, 104px) clamp(16px, 4vw, 52px);
}

.section-heading {
  display: grid;
  max-width: 940px;
  gap: 16px;
  margin-bottom: 34px;
}

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

.section-heading p:not(.eyebrow) {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.store-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 390px);
  gap: clamp(20px, 3vw, 34px);
  align-items: start;
}

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

.product-card {
  display: grid;
  gap: 16px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(31, 41, 40, 0.06);
}

.product-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--soft);
}

.product-body {
  display: grid;
  gap: 14px;
  padding: 0 16px 16px;
}

.product-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.product-title {
  display: grid;
  gap: 6px;
}

.product-title p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.product-meta {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.price {
  min-width: max-content;
  color: var(--green-dark);
  font-size: 1.05rem;
  font-weight: 900;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  padding: 6px 9px;
  color: var(--charcoal);
  background: #f5eadb;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
}

.product-card button {
  width: 100%;
  color: var(--white);
  background: var(--charcoal);
  font-weight: 900;
}

.checkout-panel,
.cart-sheet {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.checkout-panel {
  position: sticky;
  top: 86px;
  padding: 20px;
}

.panel-heading {
  margin-bottom: 18px;
}

.panel-heading h2,
.cart-head h2 {
  font-size: 1.35rem;
}

.status-note {
  margin: 10px 0 0;
  padding: 11px 12px;
  color: #5d4138;
  background: #fff1df;
  border: 1px solid #f1d2b5;
  border-radius: var(--radius);
  font-size: 0.88rem;
  line-height: 1.45;
}

.cart-summary {
  display: grid;
  gap: 10px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
}

.summary-row strong {
  color: var(--ink);
}

.summary-row.total {
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 900;
}

.currency-note {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.checkout-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--charcoal);
  font-size: 0.88rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 13px;
  color: var(--ink);
  background: var(--paper);
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(232, 104, 74, 0.34);
  outline-offset: 2px;
}

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  min-height: 44px;
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.form-status[data-status="success"] {
  color: #14633c;
}

.form-status[data-status="error"] {
  color: #a13a2a;
}

.shipping-band {
  color: var(--white);
  background: var(--charcoal);
}

.shipping-band .eyebrow {
  color: var(--sun);
}

.shipping-band .section-heading p {
  color: #cfd8d4;
}

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

.steps article,
.ownership-grid article {
  min-height: 210px;
  padding: 22px;
  border-radius: var(--radius);
}

.steps article {
  background: #33413f;
  border: 1px solid #465754;
}

.steps span {
  color: var(--sun);
  font-weight: 900;
}

.steps h3,
.ownership-grid h3 {
  margin-top: 28px;
}

.steps p,
.ownership-grid p {
  margin: 12px 0 0;
  line-height: 1.6;
}

.steps p {
  color: #dbe2df;
}

.ownership-section {
  background: #f6f3ea;
}

.ownership-grid article {
  background: var(--white);
  border: 1px solid var(--line);
}

.ownership-grid h3 {
  color: var(--green-dark);
}

.ownership-grid p {
  color: var(--muted);
}

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

.faq-list {
  display: grid;
  gap: 10px;
  max-width: 940px;
}

details {
  padding: 18px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

summary {
  cursor: pointer;
  font-weight: 900;
}

details p {
  margin: 13px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
}

.cart-drawer[aria-hidden="false"] {
  display: block;
}

.cart-scrim {
  position: absolute;
  inset: 0;
  background: rgba(31, 41, 40, 0.5);
}

.cart-sheet {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(420px, 100%);
  height: 100%;
  padding: 20px;
  border-radius: 0;
}

.cart-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.icon-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--ink);
  background: var(--soft);
  font-size: 1.7rem;
  line-height: 1;
}

.cart-items {
  display: grid;
  align-content: start;
  gap: 14px;
  overflow: auto;
  padding: 16px 0;
}

.cart-empty {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.cart-item {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

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

.cart-item h3 {
  font-size: 0.95rem;
}

.cart-item p {
  margin: 6px 0 10px;
  color: var(--muted);
  font-size: 0.86rem;
}

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

.quantity button {
  display: grid;
  width: 34px;
  height: 34px;
  min-height: 34px;
  place-items: center;
  color: var(--ink);
  background: var(--soft);
  font-weight: 900;
}

.quantity span {
  min-width: 22px;
  text-align: center;
  font-weight: 900;
}

.cart-footer {
  display: grid;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(16px, 4vw, 52px);
  color: #d8e0db;
  background: #151d1c;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--sun);
  font-weight: 800;
}

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

.lang-switcher {
  background: transparent;
  border: 1px solid var(--ink-mid);
  color: var(--ink);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.82rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.lang-switcher:hover {
  background: var(--ink);
  color: var(--sun);
}

/* Chat widget */
.chat-widget {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 200;
}

.chat-toggle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  transition: transform 0.15s;
}

.chat-toggle:hover {
  transform: scale(1.05);
}

.chat-panel {
  position: absolute;
  right: 0;
  bottom: 72px;
  width: 320px;
  max-width: calc(100vw - 40px);
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-panel[aria-hidden="true"] {
  display: none;
}

.chat-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
}

.chat-notice {
  padding: 10px 14px;
  font-size: 0.78rem;
  background: #fff6d8;
  color: #5b4200;
  border-bottom: 1px solid #ecece6;
}

.chat-messages {
  flex: 1;
  min-height: 220px;
  max-height: 320px;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-message {
  max-width: 86%;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 0.88rem;
  line-height: 1.4;
}

.chat-message.user {
  align-self: flex-end;
  background: var(--primary);
  color: #fff;
  border-bottom-right-radius: 2px;
}

.chat-message.assistant {
  align-self: flex-start;
  background: #f0f0ea;
  color: var(--ink);
  border-bottom-left-radius: 2px;
}

.chat-form {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid #ecece6;
}

.chat-form input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid #dadad2;
  border-radius: 999px;
  font-size: 0.88rem;
}

.chat-form button {
  padding: 10px 16px;
  border: none;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

/* Policy pages */
.policy-page {
  max-width: 760px;
  margin: 0 auto;
  padding-top: 120px;
  padding-bottom: 80px;
  font-size: 1rem;
  line-height: 1.7;
}

.policy-page h1 {
  font-size: 2.4rem;
  margin-bottom: 18px;
}

.policy-page h2 {
  font-size: 1.3rem;
  margin-top: 32px;
  margin-bottom: 12px;
}

.policy-page p,
.policy-page ul {
  margin-bottom: 14px;
}

.policy-page ul {
  padding-left: 24px;
}

@media (max-width: 720px) {
  .chat-panel {
    width: calc(100vw - 32px);
    right: -6px;
  }

  .policy-page {
    padding-top: 96px;
  }
}

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

  .main-nav {
    display: none;
  }

  .store-layout {
    grid-template-columns: 1fr;
  }

  .checkout-panel {
    position: static;
  }

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

@media (max-width: 720px) {
  .site-header {
    gap: 12px;
    padding: 10px 14px;
  }

  .brand small {
    display: none;
  }

  .cart-trigger {
    padding-inline: 10px;
  }

  .hero {
    min-height: auto;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(251, 250, 245, 0.96) 0%, rgba(251, 250, 245, 0.86) 56%, rgba(251, 250, 245, 0.48) 100%),
      linear-gradient(90deg, rgba(251, 250, 245, 0.8), rgba(251, 250, 245, 0.2));
  }

  .hero img {
    object-position: 66% center;
  }

  .hero-content {
    width: auto;
    margin: 0;
    padding: 34px 16px 40px;
  }

  h1 {
    max-width: 13ch;
    font-size: clamp(2.15rem, 10vw, 3rem);
  }

  h2 {
    font-size: clamp(1.9rem, 10vw, 2.7rem);
  }

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

  .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 100%;
    gap: 8px;
  }

  .hero-stats div {
    padding: 10px;
  }

  .hero-stats dd {
    font-size: 0.72rem;
  }

  .section {
    padding: 54px 16px;
  }

  .product-top,
  .site-footer {
    flex-direction: column;
  }
}
