:root {
  --ink: #1c1917;
  --muted: #6b6258;
  --paper: #f3eee4;
  --paper-2: #e8dfd0;
  --white: #fcfaf6;
  --pine: #23403a;
  --pine-deep: #152b27;
  --clay: #b4532a;
  --clay-dark: #8f3e1d;
  --line: #d9d0c2;
  --ok: #2f6b45;
  --radius: 18px;
  --shadow: 0 18px 40px rgba(28, 25, 23, 0.08);
  --font: "Manrope", "Segoe UI", sans-serif;
  --serif: "Fraunces", Georgia, serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  min-height: 100vh;
}

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

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(252, 250, 246, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  min-height: 78px;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 10px;
}

.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--pine);
  color: var(--white);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.05rem;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.15rem;
}

.logo-text small {
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--pine);
  border-radius: 12px;
  background: var(--white);
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
  margin: 0 auto;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.nav a {
  font-weight: 600;
  font-size: 0.95rem;
}

.nav a:hover,
.nav a.is-active {
  color: var(--pine);
}

.cart-btn {
  order: 2;
}

.nav-toggle {
  order: 3;
}

.cart-btn,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--pine);
  color: var(--white);
  padding: 11px 18px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  transition: 0.2s ease;
}

.cart-btn:hover,
.btn:hover {
  background: var(--pine-deep);
}

.btn-secondary {
  background: transparent;
  color: var(--pine);
  border: 1.5px solid var(--pine);
}

.btn-secondary:hover {
  background: var(--pine);
  color: var(--white);
}

.hero {
  position: relative;
  min-height: 72vh;
  display: grid;
  align-items: end;
  background: #1a2c28 center / cover no-repeat;
  color: var(--white);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(21, 43, 39, 0.25) 0%,
    rgba(21, 43, 39, 0.78) 100%
  );
}

.hero .container {
  position: relative;
  z-index: 1;
  padding: 72px 0 56px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 12px;
  border: 1px solid rgba(252, 250, 246, 0.35);
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.hero h1,
.page-hero h1,
.legal-page h1,
.product-info h1 {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 4.4rem);
  max-width: 16ch;
  margin-bottom: 16px;
}

.hero p {
  max-width: 62ch;
  color: rgba(252, 250, 246, 0.88);
  margin-bottom: 22px;
  font-size: 1.05rem;
}

.notice {
  background: #fff7ed;
  color: #7c2d12;
  border: 1px solid #f0d2b4;
  padding: 16px 18px;
  border-radius: 14px;
  font-weight: 700;
  max-width: 760px;
}

.hero .notice {
  background: rgba(252, 250, 246, 0.96);
  margin-top: 8px;
}

.section {
  padding: 64px 0;
}

.section h2,
.product-info h2,
.legal-page h2 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 18px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 28px;
}

.category-grid,
.product-grid,
.steps,
.footer-grid {
  display: grid;
  gap: 18px;
}

.category-grid {
  grid-template-columns: 1fr;
}

.category-card {
  position: relative;
  min-height: 180px;
  overflow: hidden;
  border-radius: var(--radius);
  color: var(--white);
}

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

.category-card span {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 1;
  font-family: var(--serif);
  font-size: 1.4rem;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(21, 43, 39, 0.72));
}

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

.filter-btn {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 14px;
  cursor: pointer;
  font-weight: 700;
}

.filter-btn.active {
  background: var(--pine);
  color: var(--white);
  border-color: var(--pine);
}

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

.product-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}

.product-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--paper-2);
}

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

.product-content h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.25;
}

.product-content p {
  color: var(--muted);
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.price,
.price-large {
  font-weight: 800;
  color: var(--pine);
}

.price-large {
  font-size: 1.85rem;
}

.stock {
  font-weight: 700;
  color: var(--ok);
}

.page-hero {
  padding: 48px 0 12px;
}

.page-hero p {
  color: var(--muted);
  max-width: 70ch;
}

.product-page {
  padding: 36px 0 64px;
}

.product-layout {
  display: grid;
  gap: 32px;
}

.product-gallery .main-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 22px;
  background: var(--paper-2);
}

.thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.thumbs img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 14px;
  cursor: pointer;
  border: 2px solid transparent;
}

.thumbs img.active,
.thumbs img:hover {
  border-color: var(--pine);
}

.spec-list {
  margin: 0 0 22px 18px;
  color: #3f3a34;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0;
}

.delivery-box,
.about-card,
.cart-box,
.cookie-bar {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.delivery-box h3,
.about-card h2 {
  font-family: var(--serif);
  margin-bottom: 10px;
}

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

.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.step b {
  display: block;
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--clay);
  margin-bottom: 8px;
}

.about-grid {
  display: grid;
  gap: 22px;
}

.about-grid img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  border-radius: var(--radius);
}

.legal-page {
  padding: 40px 0 72px;
}

.legal-page h2 {
  margin: 28px 0 10px;
}

.legal-page p,
.legal-page li {
  color: #3f3a34;
  margin-bottom: 10px;
}

.legal-page ul,
.legal-page ol {
  margin: 0 0 14px 20px;
}

.cart-layout {
  display: grid;
  gap: 22px;
  padding-bottom: 64px;
}

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

.cart-item img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 12px;
}

.qty {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.qty button {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--paper);
  cursor: pointer;
}

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

.order-form label {
  display: grid;
  gap: 6px;
  font-weight: 700;
  font-size: 0.92rem;
}

.order-form input,
.order-form select,
.order-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: var(--white);
}

.site-footer {
  background: var(--pine-deep);
  color: #f6f1e8;
  padding: 48px 0 24px;
  margin-top: 24px;
}

.footer-grid {
  padding-bottom: 28px;
}

.footer-grid h4 {
  font-family: var(--serif);
  margin-bottom: 12px;
}

.footer-grid ul {
  list-style: none;
}

.footer-grid li + li,
.footer-grid p + p {
  margin-top: 8px;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid rgba(246, 241, 232, 0.14);
  padding-top: 18px;
}

.footer-badges span,
.footer-badges a {
  background: rgba(246, 241, 232, 0.1);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
}

.age-badge {
  background: var(--clay) !important;
}

.cookie-bar {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 50;
  display: none;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow);
}

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

.empty-cart {
  color: var(--muted);
  padding: 12px 0 20px;
}

.toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  background: var(--pine);
  color: var(--white);
  padding: 12px 16px;
  border-radius: 12px;
  z-index: 60;
  display: none;
}

.toast.is-visible {
  display: block;
}

@media (min-width: 700px) {
  .category-grid,
  .product-grid,
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid,
  .cart-layout,
  .product-layout,
  .footer-grid {
    grid-template-columns: 1.05fr 0.95fr;
  }

  .cookie-bar {
    left: auto;
    width: min(560px, calc(100% - 32px));
  }
}

@media (min-width: 980px) {
  .category-grid {
    grid-template-columns: repeat(4, 1fr);
  }

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

  .steps,
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
  }
}

@media (max-width: 860px) {
  .container {
    width: min(1180px, calc(100% - 20px));
  }

  .header-row {
    gap: 8px;
    min-height: 64px;
  }

  .logo-mark {
    width: 34px;
    height: 34px;
    font-size: 0.95rem;
  }

  .logo-text {
    font-size: 0.98rem;
  }

  .nav-toggle {
    display: grid;
    place-items: center;
    order: -1;
  }

  .cart-btn,
  .nav-toggle {
    flex-shrink: 0;
  }

  .cart-btn {
    margin-left: auto;
    padding: 8px 12px;
    font-size: 0.88rem;
  }

  .logo-text small {
    display: none;
  }

  .nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    margin-left: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 16px;
    flex-direction: column;
    align-items: flex-start;
  }

  .nav.is-open {
    display: flex;
  }

  .hero {
    min-height: 86vh;
  }
}
