/* Shared site styles for Craftygiftsplace */

:root {
  --font-body: "Plus Jakarta Sans", "Trebuchet MS", sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --bg: #f7f2eb;
  --bg-soft: #efe7dc;
  --surface: #fffdf9;
  --surface-2: #f8f1e8;
  --line: rgba(31, 26, 23, 0.1);
  --text: #1f1a17;
  --muted: #6d6258;
  --accent: #b56e3e;
  --accent-dark: #7a4a2b;
  --accent-soft: #f0dfd1;
  --shadow: 0 16px 36px rgba(34, 24, 16, 0.08);
  --radius: 24px;
  --container: 1180px;
  --scroll-offset: 7rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--scroll-offset);
}

:target {
  scroll-margin-top: var(--scroll-offset);
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(181, 110, 62, 0.09), transparent 28%),
    linear-gradient(180deg, #f7f2eb 0%, #f2ebe2 100%);
  line-height: 1.6;
  overflow-x: hidden;
}

main {
  display: block;
}

button {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid rgba(169, 107, 61, 0.28);
  outline-offset: 3px;
}

img {
  max-width: 100%;
  display: block;
}

.skip-link {
  position: absolute;
  top: -4rem;
  left: 1rem;
  z-index: 120;
  padding: 0.9rem 1.1rem;
  border-radius: 999px;
  background: #fffdf9;
  color: var(--accent-dark);
  border: 1px solid rgba(31, 26, 23, 0.16);
  box-shadow: var(--shadow);
  font-weight: 700;
}

.skip-link:focus-visible {
  top: 1rem;
}

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 250, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.topbar .container {
  width: min(1320px, calc(100% - 1.5rem));
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex: 0 0 auto;
  min-width: max-content;
  order: 1;
}

.brand-logo {
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  object-fit: contain;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 0.06rem;
  min-width: max-content;
}

.brand-copy strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(0.98rem, 0.14vw + 0.94rem, 1.05rem);
  letter-spacing: -0.02em;
  line-height: 1.03;
  white-space: nowrap;
}

.brand-copy > span {
  display: none;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.2;
}

.nav-links {
  display: flex;
  gap: 0.16rem;
  align-items: center;
  flex-wrap: nowrap;
  flex: 1 1 auto;
  min-width: 0;
  justify-content: center;
  margin-left: auto;
  order: 2;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.18rem;
  padding: 0.13rem;
  border: 1px solid rgba(31, 26, 23, 0.14);
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.9);
}

.language-switch-header {
  flex: 0 0 auto;
  order: 3;
}

.language-switch-label {
  display: none;
}

.language-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 32px;
  min-width: 32px;
  padding: 0.28rem 0.4rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.language-switch a:hover,
.language-switch a:focus-visible {
  color: var(--text);
  background: #f6efe7;
  transform: translateY(-1px);
}

.language-switch a[aria-current="true"] {
  background: var(--accent);
  color: #fff;
}

.language-code {
  display: none;
  line-height: 1;
}

.flag-icon {
  width: 0.95rem;
  height: 0.95rem;
  flex: 0 0 auto;
  border-radius: 999px;
  border: 1px solid rgba(31, 26, 23, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.flag-icon--nl {
  background: linear-gradient(180deg, #c54d4f 0 33.33%, #f8f7f3 33.33% 66.66%, #355fa8 66.66% 100%);
}

.flag-icon--en {
  background:
    linear-gradient(90deg, transparent 40%, rgba(248, 247, 243, 0.96) 40% 60%, transparent 60%),
    linear-gradient(180deg, transparent 40%, rgba(248, 247, 243, 0.96) 40% 60%, transparent 60%),
    linear-gradient(90deg, transparent 45%, #d25145 45% 55%, transparent 55%),
    linear-gradient(180deg, transparent 45%, #d25145 45% 55%, transparent 55%),
    #264c98;
}

.flag-icon--de {
  background: linear-gradient(180deg, #151515 0 33.33%, #c64040 33.33% 66.66%, #f0c04c 66.66% 100%);
}

.flag-icon--fr {
  background: linear-gradient(90deg, #2b5cab 0 33.33%, #f8f7f3 33.33% 66.66%, #d25145 66.66% 100%);
}

.flag-icon--es {
  background: linear-gradient(180deg, #c53d2f 0 25%, #f1c75a 25% 75%, #c53d2f 75% 100%);
}

.flag-icon--pt {
  background: linear-gradient(90deg, #1f6a4d 0 40%, #d25145 40% 100%);
}

.flag-icon--it {
  background: linear-gradient(90deg, #2d7a56 0 33.33%, #f8f7f3 33.33% 66.66%, #d25145 66.66% 100%);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 48px;
  padding: 0.85rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(31, 26, 23, 0.18);
  background: #fffdf9;
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
  order: 4;
}

.nav-toggle:hover {
  transform: translateY(-1px);
  background: #f6efe7;
  border-color: rgba(31, 26, 23, 0.28);
}

.nav-toggle:focus-visible {
  outline: 3px solid rgba(169, 107, 61, 0.28);
  outline-offset: 3px;
}

.nav-toggle-lines {
  display: grid;
  gap: 4px;
}

.nav-toggle-line {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform-origin: center;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-links a {
  font-size: 0.78rem;
  color: var(--text);
  opacity: 0.9;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0.34rem 0.38rem;
  white-space: nowrap;
}

.nav-links > a:not(.btn):not(.btn-secondary) {
  border-radius: 999px;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  opacity: 1;
  color: var(--accent-dark);
}

.nav-links a[aria-current="page"] {
  font-weight: 700;
}

.nav-links a.btn,
.nav-links a.btn:hover,
.nav-links a.btn:focus-visible {
  color: #fff;
  opacity: 1;
}

.nav-links a.btn-secondary,
.nav-links a.btn-secondary:hover,
.nav-links a.btn-secondary:focus-visible {
  color: var(--text);
  opacity: 1;
}

.nav-links .btn,
.nav-links .btn-secondary {
  min-height: 40px;
  padding: 0.62rem 0.78rem;
  font-size: 0.77rem;
}

.btn,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.95rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  line-height: 1;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
}

.btn {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
  box-shadow: 0 12px 24px rgba(181, 110, 62, 0.2);
}

.btn:hover,
.btn-secondary:hover {
  transform: translateY(-2px);
}

.btn:hover {
  background: #9e5e33;
  border-color: #9e5e33;
  box-shadow: 0 16px 30px rgba(158, 94, 51, 0.24);
}

.btn-secondary {
  background: #fffdf9;
  color: var(--text);
  border: 1px solid rgba(31, 26, 23, 0.18);
  box-shadow: none;
}

.btn-secondary:hover {
  background: #f6efe7;
  border-color: rgba(31, 26, 23, 0.28);
}

.btn:focus-visible,
.btn-secondary:focus-visible {
  outline: 3px solid rgba(169, 107, 61, 0.28);
  outline-offset: 3px;
}

.hero {
  padding: 1rem 0 1.85rem;
}

.hero-home-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(280px, 0.78fr);
  gap: 0.85rem;
  align-items: start;
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 1rem;
  align-items: start;
}

.hero-home-shell > *,
.hero-shell > *,
.page-grid > *,
.page-actions > * {
  min-width: 0;
}

.hero-copy,
.hero-visual,
.trust-card,
.home-category-card,
.home-bestseller-card,
.category-card,
.occasion-card,
.product-card,
.why-card,
.faq-card,
.cta-panel,
.page-intro,
.copy-card,
.page-sidebar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 1.28rem 1.35rem 1.18rem;
  display: grid;
  gap: 0.62rem;
  align-content: start;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.7rem;
}

h1,
h2,
h3 {
  margin: 0 0 0.8rem;
  line-height: 1.14;
}

h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.85rem, 3.5vw, 2.9rem);
  max-width: 15ch;
  letter-spacing: -0.035em;
}

h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  letter-spacing: -0.03em;
}

h3 {
  font-weight: 800;
}

.hero-copy p {
  color: var(--muted);
  font-size: 0.94rem;
  max-width: 31rem;
  margin: 0;
}

.hero-lede,
.page-lede {
  color: var(--muted);
  font-size: clamp(0.9rem, 0.12vw + 0.86rem, 0.95rem);
  line-height: 1.5;
  max-width: 30rem;
  margin: 0;
}

.hero-actions,
.page-actions {
  display: flex;
  gap: 0.68rem;
  flex-wrap: wrap;
}

.hero-meta,
.page-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.95rem;
}

.hero-support {
  margin: 0;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
}

.hero-actions {
  margin-bottom: 0;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.hero-facts span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0.42rem 0.68rem;
  border-radius: 999px;
  border: 1px solid rgba(31, 26, 23, 0.12);
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.2;
}

.page-note {
  margin: 0;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(241, 223, 207, 0.54);
  border: 1px solid rgba(123, 76, 41, 0.12);
  color: var(--accent-dark);
  font-size: 0.8rem;
  font-weight: 700;
}

.hero-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}

.hero-point {
  padding: 1rem;
  background: var(--surface-2);
  border: 1px solid rgba(57, 43, 31, 0.08);
  border-radius: 18px;
}

.hero-point strong {
  display: block;
  font-size: 0.98rem;
  margin-bottom: 0.2rem;
}

.hero-point span {
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-visual {
  min-height: auto;
  max-width: 390px;
  width: 100%;
  justify-self: end;
  display: grid;
  gap: 0.8rem;
  align-content: start;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.hero-photo-zone {
  position: relative;
  min-height: 290px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(31, 26, 23, 0.12);
  box-shadow: var(--shadow);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.55)),
    radial-gradient(circle at center, rgba(169, 107, 61, 0.1), transparent 34%);
}

.hero-photo-zone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-photo-zone::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 16, 13, 0.04), rgba(20, 16, 13, 0.52));
}

.hero-photo-caption {
  position: absolute;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 1;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: right;
  max-width: 16ch;
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.38);
}

.hero-note,
.badge-card {
  position: static;
  background: rgba(255, 253, 249, 0.98);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0.95rem 1rem;
  max-width: none;
  box-shadow: var(--shadow);
}

.hero-visual-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.hero-collage {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  grid-template-rows: repeat(2, minmax(148px, 1fr));
  gap: 0.65rem;
}

.hero-collage-tile {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(31, 26, 23, 0.12);
  box-shadow: var(--shadow);
  min-height: 148px;
  background: #f5efe7;
}

.hero-collage-tile--1 {
  grid-row: 1 / span 2;
}

.hero-collage-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-collage-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 13, 10, 0.08), rgba(18, 13, 10, 0.6));
}

.hero-collage-label {
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.8rem;
  z-index: 1;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.3;
  text-shadow: 0 8px 20px rgba(0, 0, 0, 0.32);
}

.badge-card strong,
.hero-note strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--accent-dark);
}

.badge-card span,
.hero-note span {
  font-size: 0.93rem;
  color: var(--muted);
}

.section {
  padding: 1.3rem 0 3.2rem;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.3rem;
  flex-wrap: wrap;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 62ch;
}

.trust-grid,
.home-category-grid,
.home-bestsellers-grid,
.support-grid,
.category-grid,
.occasion-grid,
.product-grid,
.why-grid,
.faq-grid,
.page-grid,
.copy-stack {
  display: grid;
  gap: 1rem;
}

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

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

.home-category-grid,
.home-bestsellers-grid,
.support-grid,
.category-grid,
.product-grid,
.why-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

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

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

.page-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
}

.catalog-block {
  content-visibility: auto;
  contain-intrinsic-size: 980px;
}

.home-category-card {
  overflow: hidden;
  background: linear-gradient(180deg, #fffdf9 0%, #f7efe5 100%);
}

.home-category-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.home-category-link:hover,
.home-category-link:focus-visible {
  transform: translateY(-3px);
}

.home-category-link img {
  order: -1;
  width: 100%;
  height: clamp(170px, 20vw, 220px);
  object-fit: cover;
  border-bottom: 1px solid rgba(31, 26, 23, 0.08);
  transition: transform 0.24s ease;
}

.home-category-link:hover img,
.home-category-link:focus-visible img {
  transform: scale(1.03);
}

.home-category-copy {
  display: grid;
  gap: 0.45rem;
  padding: 1.15rem 1.2rem 1.25rem;
}

.home-category-kicker {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.55rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.home-category-card h3 {
  margin: 0;
  font-size: 1.24rem;
  max-width: 13ch;
}

.home-category-card p {
  margin: 0;
  color: var(--muted);
  max-width: 36ch;
}

.trust-card,
.occasion-card,
.why-card,
.faq-card,
.copy-card,
.page-sidebar {
  padding: 1.2rem;
}

.info-card-grid .copy-card:first-child {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #fffdfa 0%, #f3e8dc 100%);
  border-color: rgba(123, 76, 41, 0.16);
}

.trust-card {
  display: grid;
  gap: 0.55rem;
  align-content: start;
}

.trust-card strong,
.occasion-card strong {
  display: block;
  margin-bottom: 0.28rem;
  color: var(--text);
  font-size: 1rem;
}

.trust-card span,
.occasion-card span,
.why-card p,
.faq-card p,
.copy-card p,
.copy-card li,
.page-sidebar p,
.page-intro p,
.breadcrumbs {
  color: var(--muted);
  font-size: 0.95rem;
}

.shop-section-card {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.shop-section-card:hover,
.shop-section-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(31, 26, 23, 0.18);
  background: var(--surface-2);
  box-shadow: var(--shadow);
}

.shop-section-card:focus-visible {
  outline: 3px solid rgba(169, 107, 61, 0.24);
  outline-offset: 2px;
}

.category-card,
.product-card {
  overflow: hidden;
}

.card-media {
  aspect-ratio: 1 / 1;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0)),
    radial-gradient(circle at top right, rgba(169, 107, 61, 0.1), transparent 24%),
    linear-gradient(135deg, #eadfd4, #f6efe7);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: end;
  justify-content: start;
  padding: 1rem;
  position: relative;
  overflow: hidden;
}

.card-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 16, 13, 0.02), rgba(20, 16, 13, 0.18));
  z-index: 0;
}

.category-card .card-media::before {
  background: linear-gradient(180deg, rgba(20, 16, 13, 0.08), rgba(20, 16, 13, 0.68));
}

.card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-media h3 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 1.28rem;
  max-width: 13ch;
  color: #fff;
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}

.category-card .card-media h3 {
  max-width: 18ch;
}

.card-body {
  padding: 1.2rem;
}

.card-body p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.product-card .card-body h3 {
  font-size: 1.08rem;
  margin-bottom: 0.45rem;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 0.95rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.38rem 0.68rem;
  border-radius: 999px;
  background: #f1dfcf;
  color: #7b4c29;
  border: 1px solid rgba(123, 76, 41, 0.16);
  font-size: 0.82rem;
  font-weight: 700;
}

.why-card h3,
.faq-card h3,
.copy-card h2,
.page-sidebar h2 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.cta-panel {
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  background: linear-gradient(135deg, #fffdfa 0%, #f4ece2 100%);
}

.cta-panel p {
  margin: 0;
  color: var(--muted);
  max-width: 58ch;
}

.page-main {
  padding: 2rem 0 4rem;
}

.page-shell {
  display: grid;
  gap: 1rem;
}

.page-intro {
  padding: 2rem;
}

.page-intro h1 {
  max-width: 100%;
}

.page-intro p {
  max-width: 60ch;
  margin: 0 0 1.2rem;
}

.breadcrumbs {
  margin-bottom: 0.9rem;
}

.hero-copy h1 {
  font-size: clamp(1.8rem, 0.95vw + 1.3rem, 2.08rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  max-width: 11.25ch;
  margin-bottom: 0.08rem;
  text-wrap: balance;
}

.page-hero {
  padding: 0.95rem 0 1.7rem;
}

.page-hero-shell {
  gap: 0.85rem;
}

.page-hero-grid {
  grid-template-columns: minmax(0, 1.18fr) minmax(250px, 0.62fr);
  gap: 0.85rem;
  align-items: start;
}

.page-hero-copy {
  padding: 1.18rem 1.26rem 1.16rem;
  display: grid;
  gap: 0.6rem;
  align-content: start;
}

.page-hero-copy h1 {
  font-size: clamp(1.64rem, 0.82vw + 1.16rem, 1.9rem);
  line-height: 1.06;
  letter-spacing: -0.026em;
  max-width: 12.8ch;
  margin-bottom: 0.08rem;
  text-wrap: balance;
}

.page-hero-copy .eyebrow {
  margin-bottom: 0;
}

.page-hero-copy p {
  margin: 0;
  max-width: 30rem;
}

.page-hero .page-actions {
  margin: 0;
}

.page-hero .link-cloud {
  gap: 0.5rem;
}

.page-hero .link-cloud a {
  min-height: 34px;
  padding: 0.45rem 0.76rem;
  font-size: 0.78rem;
}

.page-hero .page-sidebar {
  padding: 0.95rem 0.95rem 1rem;
  background: linear-gradient(180deg, #fffdfa 0%, #f7efe5 100%);
}

.page-hero .page-sidebar h2 {
  font-size: 0.96rem;
  margin-bottom: 0.25rem;
}

.page-hero .page-sidebar p {
  margin: 0 0 0.55rem;
}

.page-hero .quick-links {
  gap: 0.5rem;
  margin-top: 0.3rem;
}

.page-hero .quick-links a {
  padding: 0.65rem 0.8rem;
  border-radius: 14px;
  font-size: 0.9rem;
}

.copy-card ul {
  margin: 0;
  padding-left: 1.1rem;
}

.page-sidebar {
  position: sticky;
  top: calc(var(--scroll-offset) + 1rem);
  align-self: start;
  background: linear-gradient(180deg, #fffdfa 0%, #f7efe5 100%);
}

.listing-photo {
  width: calc(100% + 2.4rem);
  max-width: none;
  margin: -1.2rem -1.2rem 1rem;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
  border-radius: 24px 24px 0 0;
}

.spotlight-card {
  background: linear-gradient(135deg, #fffaf4 0%, #f4ece2 100%);
  border-color: rgba(123, 76, 41, 0.18);
  scroll-margin-top: 120px;
}

.spotlight-card .listing-photo {
  aspect-ratio: 16 / 9;
}

.spotlight-list {
  margin: 0 0 1rem;
  padding-left: 1.1rem;
}

.spotlight-list li + li {
  margin-top: 0.45rem;
}

.spotlight-actions {
  margin-top: 1rem;
}

.copy-card li + li {
  margin-top: 0.45rem;
}

.quick-links {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.quick-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  font-weight: 700;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.quick-links a:hover {
  transform: translateY(-2px);
  border-color: rgba(31, 26, 23, 0.18);
}

.catalog-stack {
  display: grid;
  gap: 1.6rem;
}

.catalog-block {
  display: grid;
  gap: 1rem;
}

.catalog-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  flex-wrap: wrap;
}

.catalog-header p {
  margin: 0;
  color: var(--muted);
  max-width: 68ch;
}

.catalog-grid .product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.catalog-grid .card-media {
  aspect-ratio: 4 / 3;
}

.catalog-grid .card-body {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  height: 100%;
}

.catalog-grid .card-body h3 {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.catalog-grid .card-body p {
  display: -webkit-box;
  margin: 0;
  color: var(--muted);
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.catalog-grid .product-meta {
  margin-bottom: 0;
}

.catalog-grid .btn {
  width: 100%;
  margin-top: auto;
  line-height: 1.2;
  white-space: normal;
  text-align: center;
}

.catalog-empty {
  padding: 1.2rem;
  border: 1px dashed rgba(31, 26, 23, 0.18);
  border-radius: 18px;
  color: var(--muted);
  background: rgba(255, 253, 249, 0.7);
}

.link-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.link-cloud a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--accent-dark);
  font-weight: 700;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

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

.featured-copy-grid .spotlight-card,
.featured-copy-grid .copy-card:last-child {
  grid-column: 1 / -1;
}

.sticky-mobile-cta {
  display: none;
}

.inline-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  color: var(--accent-dark);
}

.inline-link:hover {
  color: var(--accent);
}

.link-cloud a:hover {
  transform: translateY(-2px);
  border-color: rgba(31, 26, 23, 0.18);
  background: var(--surface-2);
}

footer {
  padding: 1.8rem 0 2.3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.footer-inner--expanded {
  align-items: flex-start;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.footer-brand strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: flex-start;
}

.footer-column {
  display: grid;
  gap: 0.65rem;
  min-width: 180px;
}

.footer-links {
  display: grid;
  gap: 0.45rem;
}

.footer-links a {
  color: var(--text);
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--accent-dark);
}

.footer-logo {
  width: 72px;
  height: 72px;
  flex: 0 0 auto;
  object-fit: contain;
}

.footer-etsy-cta {
  width: 100%;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: center;
}

.small-note {
  font-size: 0.86rem;
  color: var(--muted);
}

@media (max-width: 900px) {
  .hero-home-shell,
  .hero-shell {
    grid-template-columns: 1fr;
  }

  .hero-points,
  .featured-copy-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-visual {
    max-width: 100%;
    justify-self: stretch;
  }

  .hero-visual-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-collage {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: minmax(148px, 1fr);
  }

  .hero-collage-tile--1 {
    grid-row: auto;
  }
}

/* Shift the header into the menu layout before translated labels start squeezing the brand. */
@media (max-width: 1280px) {
  .nav {
    align-items: center;
    flex-wrap: wrap;
    padding: 0.82rem 0;
  }

  .brand {
    flex: 1 1 auto;
    min-width: 0;
    max-width: calc(100% - 204px);
  }

  .brand-copy {
    min-width: 0;
  }

  .brand-logo {
    width: 56px;
    height: 56px;
  }

  .brand-copy strong {
    font-size: clamp(0.98rem, 0.18vw + 0.94rem, 1.04rem);
  }

  .js-ready .nav-toggle {
    display: inline-flex;
  }

  .language-switch-header {
    order: 2;
    margin-left: auto;
    margin-right: 0.55rem;
    padding: 0.18rem;
    gap: 0.3rem;
  }

  .nav-links {
    order: 4;
    width: 100%;
    gap: 0.65rem;
    padding-top: 0.75rem;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    margin-left: 0;
  }

  .nav-toggle {
    order: 3;
  }

  .js-ready .nav-links {
    display: none;
  }

  .js-ready .nav-links.is-open {
    display: grid;
    grid-template-columns: 1fr;
  }

  .nav-links a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0.85rem 1rem;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(255, 253, 249, 0.96);
  }

  .language-switch-header a {
    min-width: 0;
    min-height: 44px;
    padding: 0.6rem 0.72rem;
  }

  .nav-links a.btn,
  .nav-links a.btn-secondary {
    width: 100%;
  }

  .hero-copy h1 {
    font-size: clamp(1.62rem, 1.35vw + 0.92rem, 1.88rem);
    max-width: 11.75ch;
  }

  .page-hero-copy h1 {
    font-size: clamp(1.5rem, 1.16vw + 0.9rem, 1.72rem);
    max-width: 13.2ch;
  }

  .hero-lede,
  .page-lede {
    max-width: 28rem;
  }
}

@media (max-width: 900px) {
  .nav {
    align-items: flex-start;
    gap: 0.7rem;
  }

  .brand {
    gap: 0.7rem;
    max-width: calc(100% - 108px);
  }

  .language-switch-header {
    order: 4;
    width: 100%;
    margin: 0.35rem 0 0;
    padding: 0.48rem 0.62rem;
    gap: 0.25rem;
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    scrollbar-width: none;
  }

  .language-switch-label {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    padding-right: 0.2rem;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .language-switch-header a {
    flex: 0 0 auto;
    min-height: 36px;
    min-width: 50px;
    padding: 0.35rem 0.5rem;
    gap: 0.35rem;
  }

  .language-switch-header .flag-icon {
    width: 0.84rem;
    height: 0.84rem;
  }

  .language-switch-header .language-code {
    display: inline;
    font-size: 0.72rem;
  }

  .language-switch-header::-webkit-scrollbar {
    display: none;
  }

  .nav-toggle {
    margin-left: auto;
  }

  .nav-links {
    order: 5;
  }

  .hero-copy {
    padding: 1.08rem 1.12rem 1.04rem;
  }

  .page-hero-copy {
    padding: 1.02rem 1.08rem 1rem;
  }

  .hero-copy h1 {
    font-size: clamp(1.46rem, 2.1vw + 0.84rem, 1.7rem);
    line-height: 1.08;
    max-width: 12.2ch;
  }

  .page-hero-copy h1 {
    font-size: clamp(1.4rem, 1.9vw + 0.82rem, 1.6rem);
    max-width: 13.8ch;
  }

  .hero-lede,
  .page-lede {
    font-size: 0.9rem;
    line-height: 1.46;
    max-width: 25rem;
  }
}

@media (max-width: 1024px) {
  .home-category-grid,
  .home-bestsellers-grid,
  .support-grid,
  .category-grid,
  .product-grid,
  .why-grid,
  .trust-grid,
  .occasion-grid,
  .faq-grid,
  .page-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-points,
  .copy-stack {
    grid-template-columns: 1fr;
  }

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

  .info-card-grid {
    grid-template-columns: 1fr;
  }

  .page-sidebar {
    position: static;
  }
}

@media (max-width: 720px) {
  :root {
    --scroll-offset: 9rem;
  }

  .container {
    width: min(var(--container), calc(100% - 1.25rem));
  }

  .topbar {
    background: rgba(255, 253, 250, 0.96);
  }

  .nav {
    align-items: flex-start;
    gap: 0.68rem;
    padding: 0.72rem 0 0.5rem;
  }

  .brand {
    gap: 0.65rem;
    max-width: calc(100% - 104px);
  }

  .brand-logo {
    width: 52px;
    height: 52px;
  }

  .brand-copy strong {
    font-size: 0.96rem;
  }

  .language-switch-header {
    order: 4;
    width: 100%;
    margin: 0.35rem 0 0;
    padding: 0.44rem 0.56rem;
    gap: 0.25rem;
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    scrollbar-width: none;
  }

  .language-switch-label {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    padding-right: 0.2rem;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .language-switch-header a {
    flex: 0 0 auto;
    min-height: 36px;
    min-width: 48px;
    padding: 0.34rem 0.48rem;
    gap: 0.35rem;
  }

  .language-switch-header .flag-icon {
    width: 0.84rem;
    height: 0.84rem;
  }

  .language-switch-header .language-code {
    display: inline;
    font-size: 0.72rem;
  }

  .language-switch-header::-webkit-scrollbar {
    display: none;
  }

  .nav-toggle {
    margin-left: auto;
  }

  .nav-links {
    order: 5;
  }

  .hero-home-shell,
  .hero-shell,
  .home-category-grid,
  .support-grid,
  .category-grid,
  .product-grid,
  .why-grid,
  .trust-grid,
  .occasion-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 0.45rem 0 1.35rem;
  }

  .page-hero {
    padding: 0.45rem 0 1.35rem;
  }

  .hero-copy,
  .hero-visual,
  .cta-panel,
  .page-intro,
  .copy-card,
  .page-sidebar,
  .trust-card,
  .occasion-card,
  .why-card,
  .faq-card {
    padding: 1.15rem;
  }

  .hero-visual {
    min-height: auto;
    display: grid;
    gap: 0.85rem;
  }

  .hero-copy,
  .page-hero-copy,
  .page-hero .page-sidebar {
    padding: 1rem;
    gap: 0.7rem;
  }

  .hero-home-shell {
    gap: 0.65rem;
  }

  .page-hero-shell {
    gap: 0.7rem;
  }

  .hero-home-shell .hero-collage {
    order: 0;
  }

  .hero-home-shell .hero-copy {
    padding-top: 1.05rem;
  }

  .hero-photo-zone {
    min-height: 260px;
  }

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

  .hero-collage {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: minmax(96px, 1fr);
    gap: 0.45rem;
  }

  .hero-collage-tile {
    min-height: 96px;
    border-radius: 16px;
  }

  .hero-collage-label {
    left: 0.5rem;
    right: 0.5rem;
    bottom: 0.5rem;
    font-size: 0.72rem;
  }

  .home-category-link img {
    height: 168px;
  }

  .home-category-copy {
    padding: 1rem 1rem 1.1rem;
  }

  .badge-card,
  .hero-note {
    max-width: none;
  }

  .hero-photo-caption {
    right: 0.9rem;
    bottom: 0.9rem;
    font-size: 0.92rem;
    max-width: 12ch;
  }

  .hero-copy h1 {
    font-size: clamp(1.38rem, 4.6vw + 0.14rem, 1.6rem);
    line-height: 1.1;
    max-width: 12.6ch;
  }

  .page-hero-copy h1 {
    font-size: clamp(1.32rem, 4.1vw + 0.14rem, 1.52rem);
    line-height: 1.1;
    max-width: 13.4ch;
  }

  .hero-lede,
  .page-lede {
    font-size: 0.88rem;
    line-height: 1.44;
    max-width: 23rem;
  }

  .hero-meta,
  .page-hero-meta {
    gap: 0.45rem 0.7rem;
  }

  .hero-actions,
  .page-actions {
    flex-direction: column;
  }

  .hero-actions .btn,
  .hero-actions .btn-secondary,
  .page-actions .btn,
  .page-actions .btn-secondary,
  .cta-panel .btn,
  .catalog-header .btn {
    width: 100%;
    line-height: 1.25;
    text-align: center;
    white-space: normal;
  }

  .hero-facts {
    gap: 0.4rem;
  }

  .hero-facts span {
    width: auto;
    flex: 1 1 calc(50% - 0.4rem);
    justify-content: center;
    min-height: 30px;
    padding: 0.42rem 0.65rem;
    font-size: 0.76rem;
  }

  .has-sticky-cta .page-actions .btn {
    display: none;
  }

  .page-intro h1,
  .page-actions .btn,
  .page-actions .btn-secondary {
    overflow-wrap: break-word;
  }

  .listing-photo {
    width: calc(100% + 2.6rem);
    margin: -1.3rem -1.3rem 1rem;
    border-radius: 24px 24px 0 0;
  }

  .page-note {
    font-size: 0.74rem;
    padding: 0.32rem 0.62rem;
  }

  .page-hero .link-cloud {
    gap: 0.45rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.1rem;
    scrollbar-width: none;
  }

  .page-hero .link-cloud::-webkit-scrollbar {
    display: none;
  }

  .page-hero .link-cloud a {
    width: auto;
    justify-content: center;
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .page-hero .page-sidebar {
    display: grid;
    gap: 0.45rem;
  }

  .page-hero .page-sidebar > p:last-of-type {
    display: none;
  }

  .page-hero .quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
  }

  .page-hero .quick-links a {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 0.5rem 0.72rem;
    border-radius: 999px;
  }

  .page-hero .quick-links a span {
    display: none;
  }

  .featured-copy-grid {
    grid-template-columns: 1fr;
  }

  .home-bestsellers-grid {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 0.1rem 0.2rem 0.35rem;
    scroll-padding-inline: 0.2rem;
    scroll-snap-type: x proximity;
    overscroll-behavior-x: contain;
  }

  .home-bestseller-card {
    flex: 0 0 min(86%, 22rem);
    min-width: min(86%, 22rem);
    max-width: min(86%, 22rem);
    scroll-snap-align: start;
  }

  .sticky-mobile-cta {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 45;
    padding: 0.7rem max(0.75rem, env(safe-area-inset-right)) calc(0.7rem + env(safe-area-inset-bottom)) max(0.75rem, env(safe-area-inset-left));
    background: linear-gradient(180deg, rgba(247, 242, 235, 0), rgba(247, 242, 235, 0.96) 26%, rgba(247, 242, 235, 0.98) 100%);
  }

  .sticky-mobile-cta .btn {
    width: 100%;
    min-height: 52px;
  }

  .section {
    padding: 1rem 0 2.5rem;
  }

  .page-main {
    padding: 1.35rem 0 3rem;
  }

  .has-sticky-cta .page-main {
    padding-bottom: 6.75rem;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-nav {
    width: 100%;
    flex-direction: column;
    gap: 1rem;
  }

  .footer-brand {
    align-items: flex-start;
  }

  h1 {
    max-width: 100%;
  }
}

@media (max-width: 540px) {
  .brand {
    max-width: calc(100% - 98px);
  }

  .brand-copy strong {
    font-size: 0.92rem;
  }

  .hero-copy,
  .page-hero-copy,
  .page-hero .page-sidebar {
    padding: 0.92rem;
  }

  .hero-copy h1 {
    font-size: clamp(1.34rem, 4.4vw + 0.3rem, 1.5rem);
    line-height: 1.08;
    max-width: 12ch;
  }

  .page-hero-copy h1 {
    font-size: clamp(1.28rem, 4vw + 0.28rem, 1.42rem);
    line-height: 1.08;
    max-width: 13ch;
  }

  .hero-lede,
  .page-lede {
    font-size: 0.86rem;
    line-height: 1.42;
    max-width: 21rem;
  }
}
