:root {
  --bg: #e8f0ec;
  --bg-deep: #0f241c;
  --ink: #122019;
  --muted: #4a6358;
  --snow: #f4faf7;
  --glacier: #9fd4c4;
  --pine: #1f6b52;
  --pine-deep: #0d3d2e;
  --copper: #b86b2e;
  --line: rgba(18, 32, 25, 0.12);
  --shadow: 0 24px 60px rgba(15, 36, 28, 0.18);
  --radius: 18px;
  --font-display: "Bricolage Grotesque", Georgia, serif;
  --font-body: "Figtree", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(159, 212, 196, 0.55), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(184, 107, 46, 0.18), transparent 55%),
    linear-gradient(180deg, #dceae3 0%, var(--bg) 35%, #d5e4dc 100%);
  min-height: 100vh;
  line-height: 1.5;
}

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

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

button,
input,
select {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 0.85rem clamp(1rem, 3vw, 2.5rem);
  backdrop-filter: blur(16px);
  background: rgba(244, 250, 247, 0.78);
  border-bottom: 1px solid var(--line);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.logo-mark {
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 0.35rem 0.35rem 0.15rem 0.35rem;
  background: linear-gradient(145deg, var(--glacier), var(--pine));
  box-shadow: inset 0 -6px 0 rgba(15, 36, 28, 0.15);
}

.search input {
  width: 100%;
  max-width: 420px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  padding: 0.7rem 1.1rem;
  outline: none;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.search input:focus {
  border-color: var(--pine);
  box-shadow: 0 0 0 3px rgba(31, 107, 82, 0.15);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.lang {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
}

.cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--line);
  background: var(--snow);
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.25s var(--ease), background 0.2s;
}

.cart-btn:hover {
  transform: translateY(-1px);
  background: #fff;
}

.cart-count {
  min-width: 1.4rem;
  height: 1.4rem;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--pine-deep);
  color: #e8fff6;
  font-size: 0.75rem;
}

/* Hero — one composition, brand first, full-bleed */
.hero {
  position: relative;
  min-height: min(92vh, 920px);
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: heroDrift 18s var(--ease) infinite alternate;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 36, 28, 0.25) 0%, rgba(15, 36, 28, 0.55) 45%, rgba(15, 36, 28, 0.88) 100%),
    linear-gradient(90deg, rgba(15, 36, 28, 0.55), transparent 55%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding: clamp(2rem, 6vw, 5rem);
  max-width: 44rem;
  color: var(--snow);
  animation: riseIn 0.9s var(--ease) both;
}

.brand-lockup {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.95;
  color: #e9fff6;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.hero h1 {
  margin: 0 0 0.9rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  max-width: 18ch;
}

.lede {
  margin: 0 0 1.6rem;
  color: rgba(244, 250, 247, 0.86);
  font-size: 1.05rem;
  max-width: 38ch;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.85rem 1.35rem;
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.2s, color 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--glacier);
  color: var(--pine-deep);
}

.btn-primary:hover {
  background: #b8eadb;
}

.btn-ghost {
  background: transparent;
  color: var(--snow);
  border-color: rgba(244, 250, 247, 0.35);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Sections */
.section-head {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1.5rem;
}

.section-head h2,
.promise h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.04em;
}

.section-head p,
.promise > .promise-inner > p {
  margin: 0;
  color: var(--muted);
}

.categories,
.catalog,
.promise {
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1rem, 3vw, 2.5rem);
}

.cat-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(140px, 1fr);
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  scrollbar-width: thin;
}

.cat-chip {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  border-radius: 16px;
  padding: 1rem 1.1rem;
  text-align: left;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.2s, border-color 0.2s;
  min-height: 84px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.25rem;
}

.cat-chip strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.cat-chip span {
  color: var(--muted);
  font-size: 0.8rem;
}

.cat-chip:hover,
.cat-chip.active {
  transform: translateY(-3px);
  border-color: rgba(31, 107, 82, 0.35);
  background: #fff;
}

.cat-chip.active {
  box-shadow: 0 12px 30px rgba(15, 36, 28, 0.1);
}

.cat-chip[data-tone="teal"] { background: linear-gradient(160deg, rgba(159, 212, 196, 0.45), rgba(255, 255, 255, 0.7)); }
.cat-chip[data-tone="sand"] { background: linear-gradient(160deg, rgba(232, 210, 180, 0.5), rgba(255, 255, 255, 0.7)); }
.cat-chip[data-tone="pine"] { background: linear-gradient(160deg, rgba(31, 107, 82, 0.18), rgba(255, 255, 255, 0.7)); }
.cat-chip[data-tone="ink"] { background: linear-gradient(160deg, rgba(18, 32, 25, 0.12), rgba(255, 255, 255, 0.7)); }
.cat-chip[data-tone="slate"] { background: linear-gradient(160deg, rgba(120, 140, 150, 0.25), rgba(255, 255, 255, 0.7)); }
.cat-chip[data-tone="copper"] { background: linear-gradient(160deg, rgba(184, 107, 46, 0.22), rgba(255, 255, 255, 0.7)); }
.cat-chip[data-tone="mist"] { background: linear-gradient(160deg, rgba(180, 210, 220, 0.45), rgba(255, 255, 255, 0.7)); }

.catalog-head {
  flex-direction: row;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.filters select {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  padding: 0.65rem 1rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.1rem;
}

.product {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  animation: riseIn 0.6s var(--ease) both;
}

.product:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.product-media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #fff;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1rem;
  transition: transform 0.5s var(--ease);
}

.product-brand {
  margin: 0 !important;
  font-size: 0.72rem !important;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pine) !important;
}

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

.product-badge {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  background: var(--pine-deep);
  color: #e8fff6;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.3rem 0.55rem;
  border-radius: 8px;
}

.product-body {
  padding: 1rem 1.05rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.product-body h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}

.product-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  flex: 1;
}

.product-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.price {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.add-btn {
  border: 0;
  background: var(--pine);
  color: #eafff5;
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s var(--ease);
}

.add-btn:hover {
  background: var(--pine-deep);
  transform: translateY(-1px);
}

.promise {
  padding-bottom: 5rem;
}

.promise-inner {
  border-radius: 28px;
  padding: clamp(1.75rem, 4vw, 3rem);
  background:
    linear-gradient(135deg, rgba(15, 36, 28, 0.94), rgba(31, 107, 82, 0.9)),
    url("https://images.unsplash.com/photo-1464822759023-fed622ff2c3b?auto=format&fit=crop&w=1600&q=70");
  background-size: cover;
  background-position: center;
  background-blend-mode: multiply;
  color: var(--snow);
  animation: riseIn 0.8s var(--ease) both;
}

.promise-inner p {
  color: rgba(244, 250, 247, 0.82);
  max-width: 40ch;
  margin: 0.5rem 0 1.5rem;
}

.promise-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.promise-list li {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(244, 250, 247, 0.2);
}

.promise-list strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.promise-list span {
  color: rgba(244, 250, 247, 0.75);
  font-size: 0.92rem;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem clamp(1rem, 3vw, 2.5rem) 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-brand {
  display: flex;
  gap: 0.7rem;
  align-items: center;
}

.footer-brand strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-display);
}

.footer-brand p,
.footer-note {
  margin: 0;
  font-size: 0.9rem;
}

/* Cart */
.scrim {
  position: fixed;
  inset: 0;
  background: rgba(15, 36, 28, 0.45);
  z-index: 60;
}

.cart-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(400px, 100%);
  z-index: 70;
  pointer-events: none;
}

.cart-panel {
  height: 100%;
  background: var(--snow);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transform: translateX(105%);
  transition: transform 0.35s var(--ease);
}

.cart-drawer.open {
  pointer-events: auto;
}

.cart-drawer.open .cart-panel {
  transform: translateX(0);
}

.cart-header,
.cart-footer {
  padding: 1.1rem 1.2rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-footer {
  border-bottom: 0;
  border-top: 1px solid var(--line);
  flex-direction: column;
  align-items: stretch;
  gap: 0.85rem;
}

.cart-header h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.icon-close {
  border: 0;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
}

.cart-items {
  flex: 1;
  overflow: auto;
  padding: 0.75rem 1.2rem;
}

.cart-empty {
  color: var(--muted);
  padding: 1rem 0;
}

.cart-line {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}

.cart-line img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 10px;
}

.cart-line h4 {
  margin: 0 0 0.2rem;
  font-size: 0.95rem;
}

.cart-line p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.qty {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.4rem;
}

.qty button {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
}

.line-price {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.05rem;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%) translateY(120%);
  background: var(--pine-deep);
  color: #e8fff6;
  padding: 0.75rem 1.15rem;
  border-radius: 999px;
  z-index: 90;
  opacity: 0;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
  font-weight: 600;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroDrift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(-1.5%, -1%, 0);
  }
}

@media (max-width: 820px) {
  .topbar {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "logo actions"
      "search search";
  }

  .logo { grid-area: logo; }
  .search { grid-area: search; }
  .top-actions { grid-area: actions; }

  .lang {
    display: none;
  }

  .promise-list {
    grid-template-columns: 1fr;
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
