:root {
  --bg: #f7f1ea;
  --surface: rgba(255, 250, 245, 0.76);
  --surface-strong: rgba(255, 252, 248, 0.94);
  --surface-soft: rgba(255, 247, 240, 0.88);
  --text: #34241e;
  --muted: #756159;
  --accent: #2f7a49;
  --accent-dark: #1f5a34;
  --accent-soft: #dcecdf;
  --olive: #79866b;
  --line: rgba(31, 90, 52, 0.16);
  --shadow: 0 24px 60px rgba(23, 68, 39, 0.14);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 12%, rgba(219, 239, 226, 0.92) 0, transparent 34%),
    radial-gradient(circle at 88% 8%, rgba(208, 231, 216, 0.78) 0, transparent 28%),
    radial-gradient(circle at 80% 78%, rgba(226, 242, 231, 0.52) 0, transparent 26%),
    linear-gradient(180deg, #fffefd 0%, #f2f8f3 52%, #e5f0e8 100%);
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.16;
  pointer-events: none;
  z-index: -2;
}

.site-top {
  width: min(1120px, 94vw);
  margin: 18px auto 0;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgba(31, 90, 52, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 32px rgba(23, 68, 39, 0.08);
}

.site-brand {
  color: var(--accent-dark);
  text-decoration: none;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.site-nav-link {
  text-decoration: none;
  color: var(--text);
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.site-nav-link:hover {
  background: rgba(47, 122, 73, 0.08);
  color: var(--accent-dark);
}

.site-nav-link.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
}

.bg-orb {
  position: fixed;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  filter: blur(52px);
  opacity: 0.55;
  z-index: -1;
}

.orb-1 {
  background: rgba(104, 163, 123, 0.62);
  top: -80px;
  right: -120px;
  animation: drift 8s ease-in-out infinite alternate;
}

.orb-2 {
  background: rgba(176, 219, 190, 0.56);
  bottom: -120px;
  left: -90px;
  animation: drift 10s ease-in-out infinite alternate-reverse;
}

@keyframes drift {
  from {
    transform: translateY(0px) scale(1);
  }

  to {
    transform: translateY(25px) scale(1.08);
  }
}

.hero {
  text-align: center;
  width: min(1120px, 94vw);
  margin: 18px auto 28px;
  padding: 88px 24px 74px;
  position: relative;
  border: 1px solid rgba(141, 80, 56, 0.1);
  border-radius: 32px;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.9), rgba(244, 251, 246, 0.78)),
    rgba(255, 255, 255, 0.52);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  animation: riseIn 700ms ease-out;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(47, 122, 73, 0.12);
  border-radius: 24px;
  pointer-events: none;
}

.hero-overline {
  margin: 0;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero h1 {
  margin: 10px 0 4px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.7rem, 8vw, 5rem);
  line-height: 0.92;
  font-weight: 700;
}

.hero h1 span {
  color: var(--accent-dark);
}

.hero-subtitle {
  margin: 16px auto 20px;
  max-width: 700px;
  color: var(--muted);
  font-size: clamp(1rem, 2.6vw, 1.18rem);
  line-height: 1.7;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 auto 26px;
  max-width: 720px;
}

.hero-chip {
  border: 1px solid rgba(47, 122, 73, 0.14);
  background: rgba(248, 252, 249, 0.96);
  color: var(--text);
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: 0 8px 18px rgba(23, 68, 39, 0.06);
}

.hero-cta {
  display: inline-block;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border-radius: 999px;
  padding: 13px 28px;
  font-weight: 700;
  box-shadow: 0 16px 30px rgba(31, 90, 52, 0.28);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 38px rgba(31, 90, 52, 0.34);
}

.hero-cta-secondary {
  background: rgba(255, 255, 255, 0.86);
  color: var(--accent-dark);
  border: 1px solid rgba(31, 90, 52, 0.18);
  box-shadow: 0 12px 24px rgba(23, 68, 39, 0.08);
}

.hero-cta-secondary:hover {
  box-shadow: 0 16px 28px rgba(23, 68, 39, 0.12);
}

.hero-note {
  margin: 20px auto 0;
  max-width: 560px;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.7;
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
  padding-bottom: 54px;
}

.sort-row {
  background: var(--surface);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
  border-radius: 24px;
  padding: 18px 20px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.sort-row h2 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2rem;
}

.sort-row label {
  justify-self: end;
  color: var(--muted);
  font-weight: 600;
}

select {
  width: 100%;
  max-width: 220px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--text);
  padding: 11px 13px;
  font-size: 0.95rem;
}

.gift-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
}

.gift-card {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 16px 34px rgba(24, 73, 42, 0.1);
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(14px);
  animation: cardIn 460ms ease forwards;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.gift-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 42px rgba(24, 73, 42, 0.14);
  border-color: rgba(47, 122, 73, 0.24);
}

.gift-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 320ms ease;
}

.gift-card:hover img {
  transform: scale(1.05);
}

.gift-content {
  padding: 18px;
  display: grid;
  gap: 10px;
  flex: 1;
  position: relative;
}

.gift-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18px;
  width: 54px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), rgba(121, 134, 107, 0.8));
}

.gift-content h3 {
  margin: 10px 0 0;
  font-size: 1.2rem;
  line-height: 1.25;
}

.gift-content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.gift-footer {
  margin-top: auto;
  display: grid;
  gap: 12px;
  padding-top: 6px;
}

.gift-price {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.8rem;
  font-weight: 700;
}

.gift-button {
  border: none;
  border-radius: 14px;
  padding: 12px 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  text-align: center;
  transition: transform 180ms ease, opacity 180ms ease;
}

.gift-button:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.empty-state {
  text-align: center;
  color: var(--muted);
  margin: 24px 0 10px;
}

.site-footer {
  text-align: center;
  color: var(--muted);
  padding: 18px 22px 34px;
}

.site-footer p {
  margin: 0;
}

.footer-link {
  display: inline-block;
  margin-top: 10px;
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration: none;
}

.footer-link:hover {
  text-decoration: underline;
}

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

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes cardIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .site-top {
    padding: 14px;
    border-radius: 18px;
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    width: 100%;
  }

  .site-nav-link {
    flex: 1 1 auto;
    text-align: center;
  }

  .hero {
    margin-top: 14px;
    padding: 68px 18px 54px;
    border-radius: 24px;
  }

  .sort-row {
    grid-template-columns: 1fr;
    justify-items: start;
    padding: 18px;
    border-radius: 18px;
  }

  .sort-row label {
    justify-self: start;
  }

  .gift-card img {
    height: 210px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
}
