:root {
  --ink: #20243a;
  --muted: #626b82;
  --line: #dce1ed;
  --paper: #ffffff;
  --wash: #f5f6fb;
  --accent: #6d4bc3;
  --accent-deep: #3d277d;
  --gold: #c78b2b;
  --topbar-bg: rgba(255, 255, 255, 0.95);
  --site-content-width: 1180px;
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { background: var(--wash); color: var(--ink); margin: 0; }
a { color: inherit; }
main { display: grid; gap: 28px; margin: 0 auto; padding: 24px 16px 64px; width: min(var(--site-content-width), 100%); }
.breadcrumbs { align-items: center; color: var(--muted); display: flex; flex-wrap: wrap; font-size: 13px; gap: 8px; }
.breadcrumbs a { color: var(--accent-deep); font-weight: 700; text-decoration: none; }
.catalog-hero { background: linear-gradient(145deg, #352268, #6d4bc3); border-radius: 22px; box-shadow: 0 20px 50px rgba(44, 32, 84, 0.18); color: #fff; padding: clamp(28px, 6vw, 64px); }
.catalog-hero.compact { padding: clamp(26px, 5vw, 48px); }
.eyebrow { color: #f4d891; display: block; font-size: 12px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.catalog-hero h1 { font-size: clamp(32px, 6vw, 58px); letter-spacing: -.04em; line-height: 1.02; margin: 10px 0 14px; max-width: 850px; }
.catalog-hero p { color: #eee9ff; font-size: clamp(16px, 2vw, 19px); line-height: 1.65; margin: 0; max-width: 850px; }
.hero-action { border: 1px solid rgba(255,255,255,.55); border-radius: 999px; display: inline-flex; font-weight: 800; margin-top: 22px; padding: 10px 16px; text-decoration: none; }
.hero-action:hover, .hero-action:focus-visible { background: #fff; color: var(--accent-deep); }
.catalog-generation-section, .gift-list-section { display: grid; gap: 16px; }
.section-heading span { color: var(--gold); font-size: 11px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.section-heading h2 { font-size: clamp(24px, 4vw, 34px); margin: 4px 0 0; }
.catalog-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.catalog-card { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 10px 28px rgba(39, 43, 66, .07); display: grid; gap: 7px; min-height: 174px; padding: 20px; text-decoration: none; }
.catalog-card:hover, .catalog-card:focus-visible, .gift-card:hover, .gift-card:focus-visible { border-color: #aa9bd7; box-shadow: 0 14px 34px rgba(61, 39, 125, .14); transform: translateY(-2px); }
.catalog-generation { color: var(--accent); font-size: 11px; font-weight: 900; text-transform: uppercase; }
.catalog-card strong { font-size: 20px; line-height: 1.2; }
.catalog-card > span:not(.catalog-generation) { color: var(--muted); font-size: 13px; }
.catalog-card b { align-self: end; color: var(--accent-deep); font-size: 13px; }
.gift-list { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); list-style: none; margin: 0; padding: 0; }
.gift-card { align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 8px 24px rgba(39, 43, 66, .06); display: grid; gap: 14px; grid-template-columns: 80px minmax(0, 1fr) auto; min-height: 122px; padding: 14px; text-decoration: none; transition: .18s ease; }
.gift-art { align-items: center; background: #f2effb; border-radius: 14px; display: flex; height: 80px; justify-content: center; overflow: hidden; width: 80px; }
.gift-art img { height: 80px; image-rendering: pixelated; object-fit: contain; width: 80px; }
.gift-fallback { color: var(--accent); font-size: 34px; }
.gift-copy { display: grid; gap: 5px; min-width: 0; }
.gift-copy strong { font-size: 16px; line-height: 1.3; }
.gift-copy > span { color: var(--accent-deep); font-size: 12px; font-weight: 800; }
.gift-copy small { color: var(--muted); display: -webkit-box; font-size: 12px; line-height: 1.45; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.gift-card > b { color: var(--accent); font-size: 20px; }

@media (max-width: 600px) {
  main { padding-inline: 12px; }
  .gift-list { grid-template-columns: 1fr; }
  .gift-card { grid-template-columns: 64px minmax(0, 1fr) auto; }
  .gift-art, .gift-art img { height: 64px; width: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  .catalog-card, .gift-card { transition: none; }
}
