:root {
  --ink: #1f2621;
  --muted: #65705f;
  --paper: #f8f6f0;
  --white: #ffffff;
  --line: #e2e0d6;
  --green: #2c6b44;
  --green-dark: #1d4a2e;
  --clay: #c35f37;
  --sand: #efe9dd;
  --shadow: 0 10px 30px rgba(31, 38, 33, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.container { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 246, 240, .96);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  min-height: 72px;
}
.brand {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--green-dark);
}
.main-nav {
  display: flex;
  gap: 4px;
  overflow-x: auto;
}
.main-nav a, .mobile-nav a {
  padding: 9px 12px;
  border-radius: 6px;
  white-space: nowrap;
  color: #46503f;
}
.main-nav a:hover { background: #eae6d8; color: var(--ink); }
.header-controls { display: flex; align-items: center; gap: 8px; }
.search {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  padding-right: 4px;
}
.search input {
  width: 150px;
  border: 0;
  outline: 0;
  padding: 9px 10px;
  background: transparent;
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  position: relative;
}
.icon-button:hover { background: #eae6d8; }
.cart-button { border-color: var(--line); background: var(--white); }
.cart-count {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  background: var(--clay);
  color: #fff;
  font-size: 11px;
  display: grid;
  place-items: center;
}
.language-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  overflow: hidden;
  border-radius: 6px;
  background: var(--white);
}
.lang-button {
  border: 0;
  background: transparent;
  padding: 8px 12px;
  font-weight: 700;
  color: var(--muted);
}
.lang-button.active { background: var(--green); color: #fff; }
.mobile-menu-button { display: none; }
.mobile-nav { display: none; padding: 8px 16px 16px; }

.hero {
  position: relative;
  min-height: 560px;
  display: grid;
  align-items: center;
  background: url("https://images.unsplash.com/photo-1416879595882-3373a0480b5b?auto=format&fit=crop&w=1800&q=80") center/cover no-repeat;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(19, 26, 20, .72), rgba(19, 26, 20, .18));
}
.hero-content {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
  color: #fff;
  padding: 56px 0;
}
.hero-eyebrow { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0; color: #ecd9bd; }
.hero h1 {
  max-width: 720px;
  margin: 12px 0 16px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1;
  letter-spacing: -0.035em;
}
.hero p { max-width: 540px; margin: 0 0 28px; font-size: 18px; color: #eeeade; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.primary-button, .secondary-button {
  min-height: 46px;
  padding: 12px 20px;
  border: 0;
  border-radius: 6px;
  font-weight: 700;
}
.primary-button { background: var(--clay); color: #fff; }
.primary-button:hover { background: #a84e2c; }
.secondary-button { background: #fff; color: var(--ink); }
.secondary-button:hover { background: #f1ede2; }

.section { padding: 56px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 22px; }
.section-head h2 { margin: 0; font-size: clamp(26px, 4vw, 38px); line-height: 1.15; letter-spacing: -0.02em; }
.section-head p { margin: 6px 0 0; color: var(--muted); }
.all-link { white-space: nowrap; font-weight: 700; color: var(--green); }

.collection-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.collection-tile {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 8px;
}
.collection-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.collection-tile:hover img { transform: scale(1.04); }
.collection-label {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  color: #fff;
  font-weight: 800;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.product-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow .2s ease, transform .2s ease;
}
.product-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.product-image { aspect-ratio: 4 / 3; width: 100%; background: var(--sand); }
.product-image img { width: 100%; height: 100%; object-fit: cover; }
.product-body { display: flex; flex-direction: column; flex: 1; padding: 16px; gap: 9px; }
.product-collection { font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--muted); }
.product-title {
  min-height: 44px;
  font-weight: 700;
  line-height: 1.3;
}
.rating { color: #a17438; font-size: 14px; }
.product-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.price { font-size: 18px; font-weight: 800; }
.add-button {
  border: 1px solid var(--green);
  color: var(--green);
  background: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  font-weight: 700;
}
.add-button:hover { background: var(--green); color: #fff; }
.empty-state {
  padding: 48px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.list-header {
  padding: 34px 0 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 26px;
}
.list-header h1 { margin: 0 0 6px; font-size: clamp(32px, 5vw, 48px); letter-spacing: -0.03em; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.sort-select, .pagination button { border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 10px; }
.pagination { display: flex; gap: 8px; align-items: center; margin-top: 28px; justify-content: center; }
.pagination button:disabled { opacity: .4; cursor: not-allowed; }

.product-detail {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 42px;
  padding: 44px 0;
}
.detail-image { aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: var(--sand); }
.detail-image img { width: 100%; height: 100%; object-fit: cover; }
.detail-info h1 { margin: 8px 0 12px; font-size: clamp(32px, 4vw, 48px); line-height: 1.1; letter-spacing: -0.03em; }
.detail-price { font-size: 28px; font-weight: 850; }
.detail-description { color: #454f40; margin: 18px 0; }
.stock { color: var(--green); font-weight: 700; }
.buy-actions { display: flex; gap: 10px; align-items: center; margin: 20px 0; }
.quantity-input {
  width: 76px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.reviews-section { border-top: 1px solid var(--line); padding: 42px 0 64px; }
.review-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 42px; }
.review-card { padding: 16px 0; border-bottom: 1px solid var(--line); }
.review-card strong { display: block; }
.review-form, .cart-panel, input {
  accent-color: var(--green);
}
.review-form {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.review-form label, .checkout-form label { display: grid; gap: 5px; font-size: 14px; font-weight: 600; }
.review-form input, .review-form textarea, .checkout-form input {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  outline-color: var(--green);
  background: #fff;
}
.review-form textarea { min-height: 84px; resize: vertical; }
.stars {
  display: inline-flex;
  gap: 3px;
}
.stars button { width: 34px; height: 34px; border: 0; background: transparent; font-size: 22px; color: #cbc5b5; }
.stars button.active { color: #c68b25; }

.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 100;
  width: min(430px, 100%);
  height: 100vh;
  overflow: auto;
  background: var(--white);
  box-shadow: -10px 0 40px rgba(31,38,33,.15);
  transform: translateX(100%);
  transition: transform .25s ease;
  padding: 18px;
}
.cart-panel.open { transform: translateX(0); }
.cart-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.cart-head h2 { margin: 0; }
.cart-body { display: grid; gap: 12px; padding-bottom: 16px; }
.cart-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.cart-item img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; background: var(--sand); }
.cart-item-name { font-weight: 700; line-height: 1.2; }
.cart-item-qty { display: flex; align-items: center; gap: 6px; }
.qty-button { width: 28px; height: 28px; border: 1px solid var(--line); background: #fff; border-radius: 4px; }
.cart-empty { color: var(--muted); text-align: center; padding: 28px 0; }
.shipping-options { display: grid; gap: 8px; margin-bottom: 14px; }
.shipping-option { display: flex; gap: 10px; align-items: start; padding: 10px; border: 1px solid var(--line); border-radius: 6px; }
.shipping-option.selected { border-color: var(--green); background: #f2f7f2; }
.shipping-option span { display: block; font-weight: 700; }
.shipping-option small { color: var(--muted); font-weight: 400; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.checkout-form { display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 14px; }
.checkout-form h3 { margin: 0; }
.cart-summary { display: grid; gap: 5px; }
.cart-summary div { display: flex; justify-content: space-between; }
.cart-summary .total { font-size: 18px; border-top: 1px solid var(--line); padding-top: 8px; }
.checkout-button { width: 100%; }
.form-message { min-height: 20px; color: #a84e2c; font-size: 14px; }
.form-message.success { color: var(--green); }
.order-confirm {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 50px 0;
}
.order-card { max-width: 520px; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }

.site-footer {
  border-top: 1px solid var(--line);
  background: #f2efe6;
  margin-top: 50px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 30px;
  padding: 42px 0;
}
.footer-grid a { display: block; margin-bottom: 8px; color: #4c564a; }
.footer-grid p, .footer-grid span { color: var(--muted); }

@media (max-width: 1024px) {
  .collection-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .product-detail { grid-template-columns: 1fr; }
  .review-grid { grid-template-columns: 1fr; }
}
@media (max-width: 780px) {
  .header-inner { grid-template-columns: auto auto 1fr; gap: 8px; }
  .main-nav { display: none; }
  .search input { width: 90px; }
  .mobile-menu-button { display: inline-flex; }
  .mobile-nav.open { display: grid; }
  .hero { min-height: 520px; }
  .hero h1 { font-size: 48px; }
  .collection-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .field-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .search { display: none; }
  .hero { min-height: 480px; }
  .product-grid { grid-template-columns: 1fr; }
  .product-title { min-height: 0; }
  .section { padding: 40px 0; }
}
