:root {
  --paper: #f5eedf;
  --paper-strong: #fff9ef;
  --ink: #10213a;
  --ink-soft: #42566f;
  --accent: #e0522e;
  --accent-deep: #b63d22;
  --gold: #f1c35a;
  --mint: #9fd4c3;
  --navy: #132741;
  --line: rgba(16, 33, 58, 0.12);
  --shadow: 0 24px 60px rgba(12, 28, 44, 0.14);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Source Serif 4", Georgia, serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(241, 195, 90, 0.18), transparent 32%),
    radial-gradient(circle at 85% 20%, rgba(159, 212, 195, 0.2), transparent 30%),
    linear-gradient(180deg, #fbf6ec 0%, #f1e7d6 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(19, 39, 65, 0.06) 0.7px, transparent 0.7px);
  background-size: 18px 18px;
  opacity: 0.35;
}

a {
  color: inherit;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 56px;
  position: relative;
}

.topbar,
.hero,
.featured-section,
.controls-section,
.shelves-section,
.catalog-section,
.trust-section,
.footer {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--paper-strong);
  background:
    linear-gradient(135deg, var(--accent) 0%, #f57534 55%, var(--gold) 100%);
  box-shadow: var(--shadow);
}

.brand-eyebrow,
.eyebrow,
.panel-label,
.search-label {
  margin: 0;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.brand-name {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
}

.ghost-link,
.primary-link {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.ghost-link {
  padding: 12px 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.6);
}

.primary-link {
  padding: 14px 22px;
  color: var(--paper-strong);
  background: linear-gradient(135deg, var(--accent-deep), var(--accent));
  box-shadow: 0 14px 30px rgba(224, 82, 46, 0.26);
}

.ghost-link:hover,
.primary-link:hover,
.product-card:hover,
.shelf-card:hover,
.featured-card:hover {
  transform: translateY(-2px);
}

.hero,
.featured-section,
.controls-section,
.shelves-section,
.catalog-section,
.trust-card {
  background: rgba(255, 252, 247, 0.78);
  border: 1px solid rgba(16, 33, 58, 0.08);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.9fr);
  gap: 28px;
  padding: 34px;
  border-radius: 36px;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -40px -60px auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 82, 46, 0.2), transparent 68%);
  pointer-events: none;
}

.hero-copy h1,
.section-head h2,
.trust-card h2,
.empty-state h3 {
  margin: 0;
  font-family: "Bricolage Grotesque", sans-serif;
  line-height: 0.96;
  letter-spacing: -0.03em;
}

.hero-copy h1 {
  max-width: 12ch;
  font-size: clamp(2.9rem, 8vw, 5.4rem);
  margin-top: 12px;
}

.hero-text,
.section-note,
.trust-card p,
.empty-state p,
.product-desc,
.micro-note,
.footer p {
  color: var(--ink-soft);
}

.hero-text {
  max-width: 58ch;
  font-size: 1.1rem;
  line-height: 1.55;
  margin: 18px 0 22px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.micro-note {
  margin: 0;
  max-width: 28ch;
  font-size: 0.98rem;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.stat-card,
.shelf-card,
.panel-item,
.featured-card,
.product-card,
.trust-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
}

.stat-card {
  padding: 16px;
}

.stat-value {
  display: block;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--navy);
}

.stat-label {
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.hero-panel {
  align-self: stretch;
  padding: 22px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(19, 39, 65, 0.96) 0%, rgba(14, 27, 48, 0.94) 100%);
  color: var(--paper-strong);
  box-shadow: 0 18px 40px rgba(19, 39, 65, 0.28);
}

.hero-panel .panel-label {
  color: rgba(255, 249, 239, 0.72);
  margin-bottom: 14px;
}

.panel-grid {
  display: grid;
  gap: 12px;
}

.panel-item {
  padding: 15px 16px;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.1);
}

.panel-item strong,
.shelf-card strong,
.chip-button,
.price-pill,
.product-title,
.featured-card h3 {
  font-family: "Bricolage Grotesque", sans-serif;
}

.panel-item strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1rem;
}

.panel-item span {
  color: rgba(255, 249, 239, 0.78);
}

.featured-section,
.controls-section,
.shelves-section,
.catalog-section {
  margin-top: 22px;
  padding: 28px;
  border-radius: 30px;
}

.section-head,
.controls-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 18px;
}

.section-head h2,
.controls-head h2,
.trust-card h2 {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  max-width: 18ch;
}

.section-note {
  max-width: 28ch;
  text-align: right;
  line-height: 1.45;
}

.featured-grid,
.shelf-card-grid,
.product-grid,
.trust-section {
  display: grid;
  gap: 18px;
}

.featured-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.featured-card {
  padding: 18px;
}

.featured-card h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  line-height: 1.08;
}

.featured-card p {
  margin: 0 0 14px;
  line-height: 1.45;
}

.featured-card a,
.product-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--navy);
  color: var(--paper-strong);
  text-decoration: none;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
}

.controls-bar {
  display: grid;
  gap: 16px;
}

.search-field {
  display: grid;
  gap: 10px;
}

.search-field input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip-button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  color: var(--navy);
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 0.95rem;
  cursor: pointer;
}

.chip-button.active {
  background: var(--navy);
  color: var(--paper-strong);
  border-color: var(--navy);
}

.shelf-card-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.shelf-card {
  padding: 18px;
}

.shelf-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
}

.shelf-card p {
  margin: 0;
  line-height: 1.45;
  color: var(--ink-soft);
}

.product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-card {
  overflow: hidden;
}

.product-image-wrap {
  aspect-ratio: 0.88;
  background:
    linear-gradient(135deg, rgba(241, 195, 90, 0.28), rgba(159, 212, 195, 0.38));
  position: relative;
}

.product-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.image-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 2.6rem;
  font-weight: 800;
  color: rgba(19, 39, 65, 0.55);
}

.product-body {
  padding: 16px;
}

.product-meta,
.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-meta {
  margin-bottom: 10px;
}

.tag-pill,
.price-pill,
.merchant-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.84rem;
  border: 1px solid var(--line);
}

.price-pill {
  color: var(--paper-strong);
  background: linear-gradient(135deg, var(--accent), #ef6d3d);
  border-color: transparent;
}

.merchant-pill,
.tag-pill {
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.82);
}

.product-title {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.14;
}

.product-link {
  text-decoration: none;
}

.product-desc {
  margin: 10px 0 14px;
  font-size: 0.98rem;
  line-height: 1.48;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.product-cta {
  flex: 0 0 auto;
}

.hidden {
  display: none !important;
}

.empty-state {
  padding: 28px;
  text-align: center;
  border-radius: 24px;
  border: 1px dashed rgba(16, 33, 58, 0.2);
}

.trust-section {
  margin-top: 22px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.trust-card {
  padding: 24px;
  border-radius: 26px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 4px 0;
}

.footer p {
  margin: 0;
}

@media (max-width: 1080px) {
  .hero,
  .featured-grid,
  .shelf-card-grid,
  .product-grid,
  .trust-section {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 18px, 100%);
    padding-top: 14px;
  }

  .topbar,
  .section-head,
  .controls-head,
  .footer,
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero,
  .featured-section,
  .controls-section,
  .shelves-section,
  .catalog-section,
  .trust-card {
    padding: 20px;
  }

  .stats-row,
  .featured-grid,
  .shelf-card-grid,
  .product-grid,
  .trust-section {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    max-width: 9ch;
  }

  .section-note {
    text-align: left;
  }
}
