:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --surface-soft: #f4f1eb;
  --surface-sage: #e8eee7;
  --ink: #22231f;
  --muted: #6b6d66;
  --line: #ded9cf;
  --sage: #647965;
  --sage-deep: #405442;
  --terracotta: #b56c50;
  --gold: #b78a4b;
  --danger: #9f3a32;
  --shadow: 0 18px 55px rgba(44, 42, 35, 0.12);
  color-scheme: light;
  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;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
}

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

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

button {
  cursor: pointer;
}

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

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 250, 247, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(222, 217, 207, 0.8);
}

.nav {
  max-width: 1220px;
  margin: 0 auto;
  padding: 14px 22px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
}

.wordmark {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 500;
  line-height: 1;
  color: var(--ink);
}

.wordmark span {
  color: var(--sage);
}

.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.nav-link,
.icon-button,
.lang-button,
.pill-button,
.primary-button,
.secondary-button,
.text-button {
  border: 0;
  background: transparent;
  color: var(--ink);
}

.nav-link {
  padding: 10px 12px;
  border-radius: 6px;
  color: #34352f;
  font-size: 14px;
  font-weight: 600;
}

.nav-link:hover,
.nav-link.active {
  background: var(--surface-sage);
  color: var(--sage-deep);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
}

.icon-button,
.lang-button {
  min-width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  position: relative;
}

.lang-button {
  gap: 3px;
  padding: 0 11px;
  font-size: 13px;
  font-weight: 700;
}

.lang-button span {
  color: var(--muted);
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -7px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--terracotta);
  color: white;
  font-size: 12px;
  line-height: 20px;
  text-align: center;
  font-weight: 800;
}

.menu-button {
  display: none;
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--line);
  padding: 10px 22px 18px;
  background: var(--bg);
}

.mobile-panel.open {
  display: grid;
  gap: 8px;
}

.mobile-lang {
  text-align: left;
}

.main {
  flex: 1;
}

.container {
  width: min(1220px, calc(100% - 44px));
  margin: 0 auto;
}

.section {
  padding: 64px 0;
}

.section.tight {
  padding: 34px 0;
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.section-title h2,
.page-hero h1,
.hero h1 {
  margin: 0;
  line-height: 1.05;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

.section-title h2 {
  font-size: 34px;
}

.section-title p,
.page-hero p,
.hero p {
  color: var(--muted);
  margin: 8px 0 0;
}

.hero {
  min-height: 640px;
  display: grid;
  align-items: end;
  background:
    linear-gradient(90deg, rgba(21, 27, 22, 0.7), rgba(21, 27, 22, 0.26) 48%, rgba(21, 27, 22, 0.05)),
    var(--hero-image) center / cover;
  color: white;
}

.hero-inner {
  width: min(1220px, calc(100% - 44px));
  margin: 0 auto;
  padding: 82px 0 42px;
}

.hero-copy {
  max-width: 650px;
}

.eyebrow {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.08em;
  font-weight: 800;
  color: var(--sage-deep);
}

.hero .eyebrow {
  color: #eaf2e7;
}

.hero h1 {
  font-size: 58px;
  max-width: 720px;
}

.hero p {
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  max-width: 590px;
}

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

.primary-button,
.secondary-button,
.pill-button {
  border-radius: 8px;
  min-height: 44px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
}

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

.primary-button:hover {
  background: var(--sage-deep);
}

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

.secondary-button:hover,
.pill-button:hover {
  border-color: var(--sage);
  color: var(--sage-deep);
}

.hero .secondary-button {
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.12);
  color: white;
}

.hero-categories {
  margin-top: 54px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.hero-category {
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  padding: 12px;
  min-height: 86px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-category strong {
  font-size: 14px;
  line-height: 1.22;
}

.hero-category span {
  color: var(--muted);
  font-size: 13px;
}

.trust-strip {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.trust-grid {
  width: min(1220px, calc(100% - 44px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.trust-item {
  background: var(--surface);
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.trust-item svg {
  color: var(--sage);
  flex: none;
}

.trust-item strong {
  display: block;
  font-size: 14px;
}

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

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

.category-tile {
  min-height: 255px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  background: var(--surface-soft);
  box-shadow: var(--shadow);
}

.category-tile img {
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(22, 23, 20, 0.08), rgba(22, 23, 20, 0.62));
}

.category-tile-content {
  position: relative;
  z-index: 1;
  height: 100%;
  min-height: 255px;
  padding: 20px;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.category-tile h3 {
  margin: 0;
  font-size: 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

.category-tile p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.84);
}

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

.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.product-media {
  aspect-ratio: 4 / 3;
  background: var(--surface-soft);
  overflow: hidden;
}

.product-media img {
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.product-card:hover .product-media img {
  transform: scale(1.035);
}

.product-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.meta {
  color: var(--sage);
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-card h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.25;
}

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

.card-bottom {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.price {
  font-weight: 900;
  font-size: 18px;
}

.tax-note {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

.small-icon-button {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.small-icon-button:hover {
  background: var(--surface-sage);
  border-color: var(--sage);
}

.page-hero {
  background: var(--surface-soft);
  border-bottom: 1px solid var(--line);
  padding: 56px 0;
}

.page-hero h1 {
  font-size: 48px;
}

.toolbar {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 12px;
  margin-bottom: 24px;
}

.field,
.select-field,
.textarea-field {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
  color: var(--ink);
}

.field,
.select-field {
  height: 46px;
  padding: 0 14px;
}

.textarea-field {
  min-height: 120px;
  padding: 12px 14px;
  resize: vertical;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 34px;
  align-items: start;
}

.prose {
  max-width: 860px;
}

.prose h2,
.prose h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.15;
  margin: 28px 0 10px;
}

.prose h2 {
  font-size: 30px;
}

.prose h3 {
  font-size: 23px;
}

.prose p,
.prose li {
  color: #4c4e47;
}

.info-panel,
.form-panel,
.summary-panel,
.notice {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}

.info-panel h2,
.form-panel h2,
.summary-panel h2 {
  margin: 0 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  font-weight: 500;
}

.info-list {
  display: grid;
  gap: 12px;
}

.info-line {
  display: flex;
  gap: 10px;
  color: #42443e;
}

.info-line svg {
  color: var(--sage);
  flex: none;
  margin-top: 2px;
}

.form-grid {
  display: grid;
  gap: 12px;
}

.label {
  display: grid;
  gap: 7px;
  font-size: 13px;
  font-weight: 800;
  color: #42443e;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.95fr);
  gap: 34px;
  align-items: start;
}

.detail-media {
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface-soft);
  box-shadow: var(--shadow);
}

.detail-media img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.detail-panel h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  font-size: 44px;
  line-height: 1.05;
  margin: 8px 0 12px;
}

.feature-list {
  display: grid;
  gap: 9px;
  padding: 0;
  list-style: none;
  margin: 18px 0;
}

.feature-list li {
  display: flex;
  gap: 10px;
  color: #454740;
}

.feature-list svg {
  color: var(--sage);
  flex: none;
  margin-top: 2px;
}

.quantity-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 22px 0;
}

.quantity-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
}

.quantity-control button {
  width: 42px;
  height: 42px;
  border: 0;
  background: var(--surface);
}

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

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
  gap: 24px;
}

.cart-items {
  display: grid;
  gap: 12px;
}

.cart-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.cart-row img {
  width: 112px;
  height: 86px;
  object-fit: cover;
  border-radius: 6px;
}

.cart-row h3 {
  margin: 0 0 5px;
  font-size: 17px;
}

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

.cart-actions {
  display: grid;
  gap: 10px;
  justify-items: end;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.summary-line.total {
  border: 0;
  font-size: 22px;
  font-weight: 900;
}

.notice {
  background: var(--surface-sage);
  border-color: #d3ddcf;
  color: #39463a;
}

.empty-state {
  padding: 44px 22px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  text-align: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.55);
}

.footer {
  background: #20231f;
  color: rgba(255, 255, 255, 0.86);
  padding: 44px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.7fr 0.7fr 0.9fr;
  gap: 26px;
}

.footer .wordmark {
  color: white;
  margin-bottom: 12px;
}

.footer h3 {
  margin: 0 0 12px;
  color: white;
  font-size: 15px;
}

.footer p,
.footer a,
.footer li {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 34px;
  padding-top: 18px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
}

.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(32, 35, 31, 0.48);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 84px 22px;
}

.search-overlay.open {
  display: flex;
}

.search-panel {
  width: min(760px, 100%);
  background: var(--surface);
  border-radius: 8px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.search-panel-header {
  display: flex;
  gap: 10px;
  align-items: center;
}

.search-results {
  margin-top: 14px;
  display: grid;
  gap: 8px;
  max-height: 50vh;
  overflow: auto;
}

.search-result {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 8px;
}

.search-result:hover {
  background: var(--surface-soft);
}

.search-result img {
  width: 70px;
  height: 54px;
  object-fit: cover;
  border-radius: 6px;
}

.image-fallback {
  background:
    linear-gradient(135deg, rgba(100, 121, 101, 0.18), rgba(181, 108, 80, 0.18)),
    var(--surface-soft);
}

@media (max-width: 980px) {
  .nav {
    grid-template-columns: auto auto;
  }

  .nav-links {
    display: none;
  }

  .menu-button {
    display: inline-flex;
  }

  .nav-actions {
    justify-self: end;
  }

  .hero {
    min-height: 590px;
  }

  .hero h1 {
    font-size: 44px;
  }

  .hero-categories {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .category-grid,
  .toolbar,
  .content-grid,
  .product-detail,
  .cart-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  body {
    overflow-x: hidden;
  }

  .container,
  .hero-inner,
  .trust-grid {
    width: min(100% - 28px, 1220px);
  }

  .nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    gap: 8px;
  }

  .wordmark {
    font-size: 24px;
    min-width: 0;
    flex: 1 1 auto;
  }

  .nav-actions {
    flex: 0 0 auto;
    gap: 6px;
  }

  .nav-actions [data-open-search] {
    display: none;
  }

  .nav-actions .lang-button {
    display: none;
  }

  .icon-button {
    min-width: 38px;
    height: 38px;
  }

  .lang-button {
    min-width: 67px;
    height: 38px;
    padding: 0 8px;
  }

  .cart-count {
    right: -3px;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding: 70px 0 28px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 36px;
  }

  .section {
    padding: 44px 0;
  }

  .section-title {
    display: block;
  }

  .hero-categories,
  .trust-grid,
  .category-grid,
  .product-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .cart-row {
    grid-template-columns: 84px 1fr;
  }

  .cart-row img {
    width: 84px;
    height: 72px;
  }

  .cart-actions {
    grid-column: 1 / -1;
    justify-items: stretch;
  }

  .cart-actions .quantity-control {
    justify-content: center;
  }

  .search-result {
    grid-template-columns: 58px 1fr;
  }

  .search-result .price {
    grid-column: 2;
  }
}
