:root {
  --bg: #f8f5ee;
  --bg-soft: #eef7ef;
  --card: #ffffff;
  --text: #2f3a2f;
  --muted: #6d746c;
  --primary: #567c57;
  --primary-dark: #3f6240;
  --gold: #c8a968;
  --line: #e6ddcf;
  --shadow: 0 16px 36px rgba(52, 66, 52, 0.08);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #fffefb 0%, #f7f4ed 100%);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }

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

.topbar {
  background: #f3eadb;
  color: #6e6148;
  font-size: 14px;
}
.topbar a { text-decoration: underline; }
.topbar .container {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  flex-wrap: wrap;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,0.92);
  border-bottom: 1px solid rgba(200,169,104,0.18);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(200,169,104,0.5);
}
.brand-text h1 {
  font-size: 24px;
  line-height: 1;
  margin: 0 0 4px;
  color: var(--primary-dark);
  letter-spacing: 0.06em;
}
.brand-text p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
nav ul {
  list-style: none;
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
nav a {
  font-weight: 600;
  color: #465144;
}
nav a:hover,
nav a.active { color: var(--primary); }

.cart-button {
  border: 1px solid #d9cfbf;
  background: #fffdf8;
  color: #6a5b3d;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.cart-count {
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.hero { padding: 42px 0 30px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
}
.hero-copy {
  background: radial-gradient(circle at top left, #f5efe4 0%, #fffdf8 55%, #f4f9f4 100%);
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 46px;
  box-shadow: var(--shadow);
}
.eyebrow {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: #f1eadf;
  color: #8d6d35;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.hero-copy h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
  margin: 0 0 16px;
  color: #2d3b2f;
}
.hero-copy p {
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 18px;
  max-width: 540px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700;
  transition: 0.25s ease;
  border: none;
  cursor: pointer;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary {
  border: 1px solid #d9cfbf;
  color: #6a5b3d;
  background: #fffdf8;
}
.btn-secondary:hover { background: #f8f1e6; }
.full-btn { width: 100%; }
.hero-media img {
  width: 100%;
  border-radius: 30px;
  box-shadow: var(--shadow);
  border: 1px solid #efe6d9;
}

.section { padding: 36px 0 84px; }
.section-title {
  text-align: center;
  margin-bottom: 32px;
}
.section-title span {
  color: #8d6d35;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
}
.section-title h3 {
  margin: 10px 0 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(28px, 4vw, 42px);
}
.section-title p {
  max-width: 720px;
  margin: 12px auto 0;
  color: var(--muted);
}

.card-grid,
.product-grid,
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.info-card,
.product-card,
.contact-card,
.about-card,
.review-card,
.form-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.info-card { padding: 28px; }
.info-card h4,
.product-card h4,
.contact-card h4,
.about-card h4,
.review-card h4,
.form-card h4 {
  margin: 0 0 10px;
  font-size: 22px;
  color: #314032;
}
.info-card p,
.contact-card p,
.about-card p,
.review-card p {
  margin: 0;
  color: var(--muted);
}

.product-card { overflow: hidden; }
.product-card .image-wrap { padding: 20px 20px 0; }
.product-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 18px;
  background: #f7f7f7;
}
.product-card .content { padding: 20px; }
.kicker {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #9a7d45;
}
.price {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary-dark);
  margin: 12px 0 14px;
}
.product-card ul {
  margin: 0 0 18px;
  padding-left: 18px;
  color: var(--muted);
}
.product-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.banner {
  margin-top: 22px;
  background: linear-gradient(135deg, #f2eadc 0%, #edf7ee 100%);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: var(--shadow);
}
.banner h4 {
  margin: 0 0 8px;
  font-size: 26px;
}
.banner p {
  margin: 0;
  color: var(--muted);
}

.about-layout,
.contact-layout,
.checkout-layout {
  display: grid;
  gap: 24px;
  align-items: start;
}
.about-layout { grid-template-columns: 1fr 1fr; }
.contact-layout { grid-template-columns: minmax(320px, 1.1fr) minmax(320px, 1fr); }
.checkout-layout { grid-template-columns: minmax(320px, 1.15fr) minmax(280px, 0.85fr); }
.about-card,
.form-card { padding: 26px; }
.about-image img {
  width: 100%;
  border-radius: 28px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.about-points {
  margin-top: 16px;
  display: grid;
  gap: 14px;
}
.point {
  background: #fbf8f1;
  border: 1px solid #eee1cc;
  border-radius: 16px;
  padding: 14px 16px;
}
.point strong { color: #51401f; }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-content: start;
}
.contact-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.contact-card,
.review-card { padding: 24px; }
.contact-card { min-height: 150px; }
.contact-link {
  display: block;
  width: 100%;
  color: var(--primary-dark);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.6;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.contact-link:hover { color: var(--primary); }
.stars {
  color: #c89f42;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.form-grid {
  display: grid;
  gap: 14px;
}
.form-grid input,
.form-grid textarea,
.form-grid select {
  width: 100%;
  border: 1px solid #ddd3c3;
  border-radius: 14px;
  padding: 14px 16px;
  background: #fffefb;
}
.form-grid textarea {
  min-height: 130px;
  resize: vertical;
}
.split-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.status-text {
  margin: 0;
  color: var(--primary-dark);
  font-weight: 600;
}
.muted-note {
  color: var(--muted);
}

.checkout-items {
  display: grid;
  gap: 14px;
  margin: 16px 0 22px;
}
.checkout-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.checkout-mini {
  color: var(--muted);
  font-size: 14px;
}
.checkout-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.checkout-actions button,
.qty-row button {
  width: 30px;
  height: 30px;
  border: 1px solid #d7ccb8;
  background: #fff;
  border-radius: 50%;
  cursor: pointer;
}
.summary-box,
.cart-foot {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.total-row {
  font-size: 20px;
  color: var(--primary-dark);
}

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(39, 48, 39, 0.35);
  opacity: 0;
  visibility: hidden;
  transition: 0.25s ease;
  z-index: 59;
}
.cart-overlay.show {
  opacity: 1;
  visibility: visible;
}
.cart-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: min(390px, 100%);
  height: 100vh;
  background: #fffdf9;
  box-shadow: -18px 0 40px rgba(0,0,0,0.12);
  z-index: 60;
  transition: right 0.25s ease;
  display: flex;
  flex-direction: column;
}
.cart-drawer.open { right: 0; }
.cart-head,
.cart-foot {
  padding: 18px 20px;
}
.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.cart-head h4 { margin: 0; }
.cart-head button,
.remove-btn {
  border: none;
  background: transparent;
  font-size: 28px;
  cursor: pointer;
  color: #6a5b3d;
}
.cart-body {
  flex: 1;
  overflow: auto;
  padding: 16px 20px;
}
.cart-item {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.cart-item img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 14px;
}
.cart-item-info h5 {
  margin: 0 0 4px;
  font-size: 16px;
}
.cart-item-info p {
  margin: 0 0 8px;
  color: var(--muted);
}
.qty-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.remove-btn { align-self: start; line-height: 1; }

.footer {
  padding: 26px 0 34px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #fffdf8;
}
.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer strong { color: #3b4c3d; }
.footer a { text-decoration: underline; }

@media (max-width: 1080px) {
  .nav-wrap { flex-wrap: wrap; }
}

@media (max-width: 920px) {
  .hero-grid,
  .about-layout,
  .contact-layout,
  .card-grid,
  .product-grid,
  .review-grid,
  .checkout-layout,
  .contact-grid,
  .contact-grid-three {
    grid-template-columns: 1fr;
  }
  .hero-copy,
  .about-card,
  .form-card,
  .info-card { padding: 28px; }
}

@media (max-width: 640px) {
  .nav-wrap { flex-direction: column; align-items: flex-start; }
  nav ul { gap: 14px; }
  .hero-copy { padding: 22px; }
  .hero-copy p { font-size: 16px; }
  .banner { padding: 20px; }
  .split-two { grid-template-columns: 1fr; }
}
