:root {
  --ink: #17201b;
  --muted: #687069;
  --paper: #f6f2e9;
  --card: #fffdf8;
  --leaf: #1d5a43;
  --leaf-dark: #113c2d;
  --peach: #eea77c;
  --blush: #f4d9cd;
  --line: #ded9cd;
  --shadow: 0 18px 45px rgba(38, 54, 45, 0.11);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
button, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.site-header {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50% 50% 48% 52% / 56% 46% 54% 44%;
  color: #fff;
  background: var(--leaf);
  font-family: Georgia, serif;
  font-size: 16px;
}

.store-link {
  color: var(--leaf-dark);
  text-decoration: none;
  font-size: 14px;
  font-weight: 750;
}

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

main { overflow: hidden; }

.hero {
  width: min(1180px, calc(100% - 40px));
  min-height: 430px;
  margin: 16px auto 34px;
  padding: clamp(38px, 6vw, 74px);
  border-radius: 34px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  align-items: center;
  gap: 46px;
  color: #fff;
  background:
    radial-gradient(circle at 82% 18%, rgba(255,255,255,.11) 0 3px, transparent 4px),
    linear-gradient(135deg, var(--leaf-dark), var(--leaf) 72%);
  box-shadow: var(--shadow);
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  width: 270px;
  height: 270px;
  left: -120px;
  bottom: -160px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
}

.eyebrow, .step-label {
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.hero .eyebrow { color: #ffd3bb; }

h1, h2, p { margin-top: 0; }

h1, h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 690px;
  margin-bottom: 22px;
  font-size: clamp(44px, 6vw, 76px);
  line-height: .98;
}

.intro {
  max-width: 620px;
  margin-bottom: 27px;
  color: rgba(255,255,255,.82);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.65;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-points span {
  padding: 9px 13px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  color: rgba(255,255,255,.92);
  background: rgba(255,255,255,.07);
  font-size: 13px;
  font-weight: 650;
}

.hero-art {
  min-height: 280px;
  position: relative;
}

.gift {
  position: absolute;
  border-radius: 18px;
  box-shadow: 0 24px 38px rgba(0,0,0,.2);
}

.gift::before, .gift::after {
  content: "";
  position: absolute;
  background: rgba(255,255,255,.82);
}

.gift::before { width: 16%; height: 100%; left: 42%; }
.gift::after { height: 16%; width: 100%; top: 42%; }

.gift span::before, .gift span::after {
  content: "";
  position: absolute;
  top: -38px;
  width: 58px;
  height: 46px;
  border: 12px solid rgba(255,255,255,.82);
  border-radius: 50%;
}

.gift span::before { left: calc(50% - 59px); transform: rotate(18deg); }
.gift span::after { left: calc(50% - 10px); transform: rotate(-18deg); }

.gift-one {
  width: 174px;
  height: 174px;
  right: 72px;
  bottom: 12px;
  background: var(--peach);
  transform: rotate(6deg);
}

.gift-two {
  width: 112px;
  height: 112px;
  left: 22px;
  top: 25px;
  background: #f2d56c;
  transform: rotate(-9deg);
}

.gift-two span::before, .gift-two span::after {
  top: -29px;
  width: 40px;
  height: 32px;
  border-width: 9px;
}

.gift-two span::before { left: calc(50% - 42px); }
.gift-two span::after { left: calc(50% - 5px); }

.spark { position: absolute; color: #ffd3bb; font-size: 30px; }
.spark-one { top: 7px; right: 15px; }
.spark-two { left: 30%; bottom: 5px; font-size: 20px; }

.finder {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 42px 0 28px;
}

.filter-panel {
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--card);
  box-shadow: 0 10px 30px rgba(38,54,45,.07);
}

.filter-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.step-label { color: var(--peach); }

.filter-heading h2, .finish-gift h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 3.3vw, 47px);
  line-height: 1.08;
}

.text-button {
  padding: 6px 0;
  border: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.filters label > span {
  display: block;
  margin: 0 0 8px 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .045em;
  text-transform: uppercase;
}

select {
  width: 100%;
  height: 52px;
  padding: 0 42px 0 15px;
  border: 1px solid #d8d3c7;
  border-radius: 12px;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
  font-weight: 650;
}

select:focus-visible, button:focus-visible, a:focus-visible {
  outline: 3px solid rgba(238,167,124,.6);
  outline-offset: 3px;
}

.filter-summary {
  min-height: 41px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.filter-summary p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.filter-summary strong { color: var(--ink); }

.surprise-button, .load-more {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  white-space: nowrap;
}

.surprise-button {
  padding: 11px 16px;
  color: var(--leaf-dark);
  background: var(--blush);
}

.product-grid {
  padding-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: var(--card);
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(38,54,45,.12);
}

.product-image-wrap {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #eee9df;
  position: relative;
}

.product-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform .35s ease;
}

.product-card:hover .product-image { transform: scale(1.035); }

.match-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(17,60,45,.93);
  font-size: 11px;
  font-weight: 800;
}

.product-body {
  padding: 20px;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.product-meta {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.product-price { color: var(--leaf); font-size: 16px; letter-spacing: 0; }

.product-title {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  line-height: 1.18;
  letter-spacing: -.02em;
}

.product-guidance {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.product-link {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--leaf-dark);
  text-decoration: none;
  font-size: 14px;
  font-weight: 850;
}

.product-link:hover { color: var(--leaf); }

.load-row { text-align: center; }

.load-more {
  margin-top: 28px;
  padding: 14px 22px;
  color: #fff;
  background: var(--leaf);
}

.empty-state {
  grid-column: 1 / -1;
  padding: 56px 24px;
  border: 1px dashed #cfc8bb;
  border-radius: 20px;
  color: var(--muted);
  background: rgba(255,255,255,.45);
  text-align: center;
}

.empty-state h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-family: Georgia, serif;
  font-size: 27px;
}

.finish-gift {
  width: min(1180px, calc(100% - 40px));
  margin: 52px auto 72px;
  padding: clamp(32px, 5vw, 56px);
  border-radius: 26px;
  background: var(--blush);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.finish-gift p:not(.eyebrow) {
  max-width: 620px;
  margin: 14px 0 0;
  color: #685b54;
  line-height: 1.55;
}

.finish-gift a {
  padding: 14px 20px;
  border-radius: 999px;
  color: #fff;
  background: var(--leaf-dark);
  text-decoration: none;
  font-weight: 800;
  white-space: nowrap;
}

footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 42px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

footer p { margin: 0; }
footer a { color: var(--leaf-dark); font-weight: 800; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 610px) {
  .site-header, .hero, .finder, .finish-gift, footer { width: min(100% - 24px, 1180px); }
  .site-header { min-height: 66px; }
  .store-link { font-size: 12px; }
  .hero { min-height: 0; margin-top: 8px; padding: 36px 25px; border-radius: 24px; }
  h1 { font-size: 43px; }
  .hero-points { gap: 7px; }
  .hero-points span { font-size: 11px; padding: 7px 9px; }
  .finder { padding-top: 24px; }
  .filter-panel { border-radius: 20px; }
  .filters, .product-grid { grid-template-columns: 1fr; }
  .filter-heading { align-items: center; }
  .filter-heading h2 { font-size: 31px; }
  .filter-summary { align-items: flex-start; flex-direction: column; }
  .surprise-button { width: 100%; }
  .finish-gift { align-items: flex-start; flex-direction: column; margin-bottom: 48px; }
  .finish-gift a { width: 100%; text-align: center; }
  footer { flex-direction: column; gap: 10px; }
}

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