:root {
  --bg: #f3efe6;
  --bg-deep: #e7e0d2;
  --ink: #1c2418;
  --ink-soft: #4a5444;
  --olive: #3f5a34;
  --olive-deep: #2a3d22;
  --gold: #b6862c;
  --gold-soft: #d9b46a;
  --surface: rgba(255, 252, 246, 0.82);
  --line: rgba(28, 36, 24, 0.12);
  --shadow: 0 18px 40px rgba(28, 36, 24, 0.12);
  --radius: 18px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  background:
    radial-gradient(circle at 12% 8%, rgba(182, 134, 44, 0.16), transparent 34%),
    radial-gradient(circle at 88% 18%, rgba(63, 90, 52, 0.14), transparent 30%),
    linear-gradient(180deg, #f7f3ea 0%, var(--bg) 42%, var(--bg-deep) 100%);
  line-height: 1.5;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem clamp(1rem, 4vw, 2.5rem);
  backdrop-filter: blur(14px);
  background: rgba(243, 239, 230, 0.82);
  border-bottom: 1px solid var(--line);
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.nav {
  display: none;
  gap: 1.25rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.nav a:hover {
  color: var(--olive-deep);
}

.header-cta {
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  background: var(--olive);
  color: #f8f6f0;
}

.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: grid;
  align-items: end;
  padding: clamp(2rem, 6vw, 4.5rem) clamp(1rem, 4vw, 2.5rem) clamp(3rem, 7vw, 5rem);
  overflow: hidden;
  color: #f8f6f0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 28, 16, 0.25) 0%, rgba(20, 28, 16, 0.72) 72%),
    url("images/hero.jpg") center / cover no-repeat,
    linear-gradient(135deg, #314628, #6d5a2f 55%, #1d2718);
  transform: scale(1.04);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  animation: riseIn 0.9s ease both;
}

.hero-brand {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.6rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.hero h1 {
  margin: 0 0 1.6rem;
  max-width: 28ch;
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  font-weight: 500;
  color: rgba(248, 246, 240, 0.9);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.9rem 1.35rem;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--gold);
  color: #1c2418;
}

.btn-primary:hover {
  background: var(--gold-soft);
}

.btn-ghost {
  background: transparent;
  color: var(--olive-deep);
  border: 1px solid var(--line);
  padding: 0.65rem 1rem;
  font-weight: 600;
}

.btn-soft {
  width: 100%;
  background: var(--olive);
  color: #f8f6f0;
  margin-top: 0.9rem;
}

.btn-soft:hover {
  background: var(--olive-deep);
}

.section {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5rem) 0;
}

.section-head {
  margin-bottom: 1.75rem;
}

.section-head h2,
.catalog-head h2 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  letter-spacing: -0.02em;
}

.section-head p,
.catalog-head p {
  margin: 0;
  color: var(--ink-soft);
}

.catalog-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.product-grid,
.category-grid {
  display: grid;
  gap: 1.1rem;
}

.product-grid {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.category-grid {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  animation: riseIn 0.7s ease both;
  transition: transform 0.25s ease;
}

.product-card:hover {
  transform: translateY(-4px);
}

.product-media {
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(145deg, rgba(63, 90, 52, 0.18), rgba(182, 134, 44, 0.2)),
    #d9d2c2;
  position: relative;
  overflow: hidden;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 2.4rem;
  opacity: 0.75;
}

.product-body {
  padding: 1rem 1.05rem 1.15rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-body h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  line-height: 1.25;
}

.product-desc {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  flex: 1;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.9rem;
}

.price {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--olive-deep);
}

.badge {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--olive-deep);
  background: rgba(63, 90, 52, 0.12);
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
}

.category-card {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: calc(var(--radius) - 4px);
  padding: 1.25rem 1rem;
  text-align: left;
  cursor: pointer;
  font: inherit;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  animation: riseIn 0.7s ease both;
}

.category-card:hover,
.category-card.is-active {
  transform: translateY(-3px);
  border-color: rgba(63, 90, 52, 0.45);
  background: rgba(255, 252, 246, 0.95);
}

.category-emoji {
  display: block;
  font-size: 1.7rem;
  margin-bottom: 0.55rem;
}

.category-label {
  display: block;
  font-weight: 700;
  font-size: 1rem;
}

.trust {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto 3.5rem;
  padding: 1.4rem;
  border-radius: calc(var(--radius) + 4px);
  background:
    linear-gradient(135deg, rgba(63, 90, 52, 0.92), rgba(42, 61, 34, 0.96)),
    #2a3d22;
  color: #f4f0e6;
  box-shadow: var(--shadow);
}

.trust-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.trust-list li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 600;
}

.trust-icon {
  font-size: 1.25rem;
}

.site-footer {
  padding: 2rem clamp(1rem, 4vw, 2.5rem) 2.5rem;
  border-top: 1px solid var(--line);
  text-align: center;
}

.footer-brand {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
}

.footer-note {
  margin: 0;
  color: var(--ink-soft);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  background: var(--ink);
  color: #f8f6f0;
  padding: 0.8rem 1.1rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  z-index: 40;
  box-shadow: var(--shadow);
}

.toast[hidden] {
  display: none;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 2rem;
  text-align: center;
  color: var(--ink-soft);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: rgba(255, 252, 246, 0.55);
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroDrift {
  from {
    transform: scale(1.04) translateY(0);
  }
  to {
    transform: scale(1.08) translateY(-1.5%);
  }
}

@media (min-width: 760px) {
  .nav {
    display: flex;
  }

  .trust-list {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-bg,
  .product-card,
  .category-card,
  .hero-content,
  .btn {
    animation: none !important;
    transition: none !important;
  }
}
