/* =========================================================
   Gifts4Kids — shared stylesheet
   Used by index.html, birthday.html, christmas.html, quiz.html
   and every products/<slug>.html detail page.
   ========================================================= */

:root {
  --pink: #ff5d8f;
  --orange: #ffb347;
  --yellow: #ffd23f;
  --green: #4ecdc4;
  --blue: #4d96ff;
  --purple: #9b5de5;
  --ink: #1a1a2e;
  --cream: #fff9f0;
  --shadow: 0 12px 30px rgba(26, 26, 46, 0.15);
  --shadow-lg: 0 20px 50px rgba(26, 26, 46, 0.22);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  line-height: 1.2;
}

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

/* ---------- Header ---------- */
/* Scoped to the site's top-level <header> only — nested <header> elements
   (e.g. .post-header inside an article) must not inherit sticky positioning. */
body > header {
  background: linear-gradient(135deg, #ff5d8f 0%, #ffb347 50%, #ffd23f 100%);
  padding: 1.2rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.logo {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
  text-shadow: 2px 2px 0 rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.logo-icon {
  display: inline-block;
  transform: rotate(-8deg);
  animation: wiggle 3s ease-in-out infinite;
}

@keyframes wiggle {
  0%, 100% { transform: rotate(-8deg); }
  50% { transform: rotate(8deg); }
}

.main-nav {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.main-nav a {
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.25);
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  color: white;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
}

.main-nav a:hover,
.main-nav a.active {
  background: white;
  color: var(--ink);
  transform: translateY(-2px);
}


/* ---------- Hamburger button (hidden on desktop) ---------- */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 2px;
  transition: transform 0.28s ease, opacity 0.28s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-close {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  width: 40px;
  height: 40px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  -webkit-tap-highlight-color: transparent;
}

/* ---------- Hero ---------- */
.hero {
  padding: 4rem 1.5rem 3rem;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero h1 .accent-pink { color: var(--pink); }
.hero h1 .accent-blue { color: var(--blue); }
.hero h1 .accent-purple { color: var(--purple); }

.hero p {
  font-size: 1.25rem;
  color: #555;
  max-width: 700px;
  margin: 0 auto 1.5rem;
}

.hero-emojis {
  font-size: 2.5rem;
  letter-spacing: 0.5rem;
  margin-bottom: 1.5rem;
}

.hero-emojis span {
  display: inline-block;
  animation: bounce 2.5s ease-in-out infinite;
}
.hero-emojis span:nth-child(2) { animation-delay: 0.2s; }
.hero-emojis span:nth-child(3) { animation-delay: 0.4s; }
.hero-emojis span:nth-child(4) { animation-delay: 0.6s; }
.hero-emojis span:nth-child(5) { animation-delay: 0.8s; }

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ---------- CTA Buttons ---------- */
.cta-row {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow);
}

.cta-primary {
  background: linear-gradient(135deg, var(--pink), var(--orange));
  color: white;
}

.cta-secondary {
  background: white;
  color: var(--ink);
  border: 2px solid var(--ink);
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ---------- Filter / Sort Bar ---------- */
.filter-bar {
  max-width: 1200px;
  margin: 0 auto 2rem;
  padding: 1.5rem;
  background: white;
  border-radius: 24px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 1rem;
}

.filter-bar h3 {
  font-size: 1rem;
  color: #666;
  margin-bottom: 0.4rem;
}

.search-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.search-input {
  flex: 1;
  min-width: 220px;
  padding: 0.85rem 1.2rem;
  font-size: 1rem;
  font-family: inherit;
  border: 2px solid #e5e5ea;
  border-radius: 999px;
  background: var(--cream);
  transition: border-color 0.2s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--pink);
}

.sort-select {
  padding: 0.85rem 1.2rem;
  font-size: 1rem;
  font-family: inherit;
  border: 2px solid #e5e5ea;
  border-radius: 999px;
  background: white;
  cursor: pointer;
  font-weight: 600;
}

.chip-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.chip {
  padding: 0.5rem 1rem;
  background: #f4f4f8;
  border: 2px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  color: var(--ink);
}

.chip:hover {
  background: #ebebf2;
}

.chip.active {
  background: linear-gradient(135deg, var(--pink), var(--orange));
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(255, 93, 143, 0.35);
}

.results-count {
  font-size: 0.9rem;
  color: #888;
  font-weight: 600;
}

/* ---------- Age Section ---------- */
.age-section {
  padding: 3rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.age-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.age-badge {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 0.4rem 1.2rem;
  border-radius: 999px;
  color: white;
  box-shadow: var(--shadow);
}

.age-section h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.age-section .tagline {
  color: #666;
  font-size: 1.05rem;
  margin-top: -0.5rem;
  margin-bottom: 1.5rem;
  flex-basis: 100%;
}

/* ---------- Product Grid & Card ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  border: 3px solid transparent;
}

.card:hover {
  transform: translateY(-8px) rotate(-0.5deg);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 93, 143, 0.3);
}

.product-image {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  position: relative;
  overflow: hidden;
}

/* Sparkle overlay only on gradient cards (no photo) */
.product-image:not(.has-photo)::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.3) 0, transparent 8%),
    radial-gradient(circle at 70% 60%, rgba(255,255,255,0.25) 0, transparent 6%),
    radial-gradient(circle at 40% 80%, rgba(255,255,255,0.2) 0, transparent 7%);
}

.product-image .emoji {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.2));
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card:hover .emoji {
  transform: scale(1.15) rotate(-6deg);
}

/* Photo variant — fills the same square area as the gradient version.
   Works regardless of source image aspect ratio: tall, wide, or square. */
.product-image.has-photo {
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.04);
}

.product-image.has-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1.25rem;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.08));
}

.card:hover .product-image.has-photo img {
  transform: scale(1.06);
}

.product-detail .product-image.has-photo {
  background: #ffffff;
  border: 1px solid #ececf2;
}

.product-detail .product-image.has-photo img {
  padding: 2rem;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,0.10));
}

.card-body {
  padding: 1.25rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.6rem;
}

.card-body h3 {
  font-size: 1.2rem;
  color: var(--ink);
}

.card-body h3 a:hover {
  color: var(--pink);
}

.card-body p {
  color: #666;
  font-size: 0.95rem;
  flex: 1;
}

.card-meta {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  font-size: 0.75rem;
}

.meta-tag {
  background: #f0f0f5;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  color: #555;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.price {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink);
}

.buy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.1rem;
  background: linear-gradient(135deg, #ff9900 0%, #ff7a00 100%);
  color: white;
  font-weight: 800;
  font-size: 0.9rem;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(255, 122, 0, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.buy-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 122, 0, 0.55);
}

.buy-btn:active { transform: translateY(0); }

.buy-btn-large {
  padding: 1rem 1.6rem;
  font-size: 1.05rem;
}

/* ---------- Gradient palettes ---------- */
.grad-1 { background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%); }
.grad-2 { background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%); }
.grad-3 { background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%); }
.grad-4 { background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%); }
.grad-5 { background: linear-gradient(135deg, #fccb90 0%, #d57eeb 100%); }
.grad-6 { background: linear-gradient(135deg, #5ee7df 0%, #b490ca 100%); }
.grad-7 { background: linear-gradient(135deg, #ffd1ff 0%, #fad0c4 100%); }
.grad-8 { background: linear-gradient(135deg, #fbc2eb 0%, #a6c1ee 100%); }
.grad-9 { background: linear-gradient(135deg, #ff6e7f 0%, #bfe9ff 100%); }
.grad-10 { background: linear-gradient(135deg, #f6d365 0%, #fda085 100%); }
.grad-11 { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
.grad-12 { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }

/* ---------- Age section accents ---------- */
.age-0-2 .age-badge { background: linear-gradient(135deg, #ff9a9e, #fad0c4); }
.age-3-5 .age-badge { background: linear-gradient(135deg, #ffb347, #ffd23f); }
.age-6-8 .age-badge { background: linear-gradient(135deg, #4ecdc4, #4d96ff); }
.age-9-12 .age-badge { background: linear-gradient(135deg, #9b5de5, #ff5d8f); }

.age-0-2 { background: linear-gradient(180deg, transparent, rgba(255, 154, 158, 0.08)); }
.age-3-5 { background: linear-gradient(180deg, transparent, rgba(255, 210, 63, 0.08)); }
.age-6-8 { background: linear-gradient(180deg, transparent, rgba(78, 205, 196, 0.08)); }
.age-9-12 { background: linear-gradient(180deg, transparent, rgba(155, 93, 229, 0.08)); }

/* ---------- Product detail page ---------- */
.breadcrumbs {
  max-width: 1100px;
  margin: 1.5rem auto 0;
  padding: 0 1.5rem;
  font-size: 0.9rem;
  color: #888;
}

.breadcrumbs a:hover { color: var(--pink); text-decoration: underline; }

.product-detail {
  max-width: 1100px;
  margin: 1.5rem auto 0;
  padding: 0 1.5rem 3rem;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 1.4fr;
  gap: 3rem;
}

.product-detail .product-image {
  aspect-ratio: 1 / 1;
  border-radius: 32px;
  font-size: 12rem;
  box-shadow: var(--shadow-lg);
}

.product-detail h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.6rem;
}

.product-detail .price {
  font-size: 2rem;
  margin: 1rem 0 1.5rem;
}

.product-detail .lead {
  font-size: 1.2rem;
  color: #444;
  margin-bottom: 1.5rem;
}

.product-detail .description {
  font-size: 1.05rem;
  color: #333;
  margin-bottom: 1.5rem;
}

.product-detail .buyers-guide {
  background: #fff5e0;
  border-left: 5px solid var(--orange);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0 2rem;
  font-size: 1rem;
  color: #5c4a1d;
}

.product-detail .buyers-guide h4 {
  margin-bottom: 0.4rem;
  color: var(--ink);
}

.product-detail .age-tag {
  display: inline-block;
  font-size: 0.85rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: #f0f0f5;
  color: #555;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.related {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

.related h2 {
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
}

/* ---------- Quiz ---------- */
.quiz-container {
  max-width: 700px;
  margin: 2rem auto;
  padding: 2rem 1.5rem;
}

.quiz-card {
  background: white;
  border-radius: 32px;
  box-shadow: var(--shadow);
  padding: 2.5rem 2rem;
  text-align: center;
}

.quiz-progress {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.quiz-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #e5e5ea;
}

.quiz-dot.active { background: var(--pink); }

.quiz-step h2 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin-bottom: 1.5rem;
}

.quiz-options {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.quiz-option {
  padding: 1rem 1.5rem;
  border-radius: 16px;
  background: var(--cream);
  border: 2px solid transparent;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  color: var(--ink);
  text-align: center;
}

.quiz-option:hover {
  background: #fff5e0;
  border-color: var(--orange);
  transform: translateY(-2px);
}

.quiz-option.selected {
  background: linear-gradient(135deg, var(--pink), var(--orange));
  color: white;
  border-color: transparent;
}

.quiz-controls {
  display: flex;
  justify-content: space-between;
  margin-top: 1.5rem;
  gap: 0.75rem;
}

.quiz-back, .quiz-next {
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  border: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.quiz-back {
  background: #f0f0f5;
  color: var(--ink);
}

.quiz-next {
  background: linear-gradient(135deg, var(--pink), var(--orange));
  color: white;
  box-shadow: 0 4px 12px rgba(255, 93, 143, 0.35);
  margin-left: auto;
}

.quiz-next:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ---------- Disclosure & Footer ---------- */
.disclosure {
  max-width: 900px;
  margin: 2rem auto 0;
  padding: 1.25rem 1.5rem;
  background: #fff5e0;
  border-left: 5px solid var(--orange);
  border-radius: 12px;
  font-size: 0.95rem;
  color: #5c4a1d;
}

footer {
  margin-top: 4rem;
  padding: 3rem 1.5rem 2rem;
  background: var(--ink);
  color: #c5c5d1;
  text-align: center;
}

footer h4 {
  color: white;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

footer p {
  max-width: 600px;
  margin: 0 auto 1rem;
  font-size: 0.95rem;
}

footer a {
  color: var(--yellow);
  text-decoration: underline;
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.copyright {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  opacity: 0.7;
}

/* ---------- Blog index ---------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.post-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.post-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.post-card-hero {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #ff5d8f 0%, #ffb347 100%);
  overflow: hidden;
}

.post-card-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card-body {
  padding: 1.5rem 1.6rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.post-card-meta {
  font-size: 0.85rem;
  color: #888;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.post-rating {
  color: var(--orange);
  font-weight: 700;
}

.post-rating small { color: #888; font-weight: 400; }

.post-card h3 {
  font-size: 1.3rem;
  line-height: 1.3;
}

.post-card h3 a:hover { color: var(--pink); }

.post-card p {
  color: #555;
  flex: 1;
  font-size: 0.95rem;
}

.post-card-link {
  font-weight: 800;
  color: var(--pink);
  font-size: 0.95rem;
}

.post-card-link:hover { text-decoration: underline; }

/* ---------- Blog post detail ---------- */
.post-article {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

.post-header {
  margin-bottom: 2.5rem;
}

.post-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin: 0.6rem 0 1rem;
  letter-spacing: -0.02em;
}

.post-meta {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.95rem;
  color: #777;
  flex-wrap: wrap;
}

.post-lead {
  font-size: 1.25rem;
  color: #444;
  line-height: 1.55;
  margin-bottom: 1.5rem;
}

.post-rating-box {
  display: inline-block;
  background: linear-gradient(135deg, #fff5e0, #ffe6b3);
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: #5c4a1d;
}

.post-rating-box strong { color: var(--orange); font-size: 1.25rem; letter-spacing: 0.1em; margin-right: 0.4rem; }

.post-hero {
  margin: 1.5rem 0 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.post-hero img { width: 100%; display: block; }

.post-body {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #2a2a3a;
}

.post-body h2 {
  font-size: 1.7rem;
  margin: 2.5rem 0 1rem;
  padding-top: 0.5rem;
  border-top: 2px solid #f0f0f5;
}

.post-body h3 {
  font-size: 1.3rem;
  margin: 2rem 0 0.75rem;
}

.post-body h4 {
  font-size: 1.1rem;
  margin: 1.5rem 0 0.5rem;
}

.post-body p { margin-bottom: 1.25rem; }

.post-body ul, .post-body ol {
  margin: 0 0 1.5rem 1.25rem;
  padding-left: 1rem;
}

.post-body li { margin-bottom: 0.5rem; }

.post-body a {
  color: var(--pink);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

.post-body a:hover { color: var(--orange); }

.post-body strong { color: var(--ink); }

.post-body blockquote {
  margin: 1.5rem 0;
  padding: 0.5rem 1.5rem;
  border-left: 4px solid var(--pink);
  background: #fff5f8;
  border-radius: 0 12px 12px 0;
  color: #555;
  font-style: italic;
}

.post-body code {
  background: #f4f4f8;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-size: 0.92em;
  color: var(--purple);
  font-family: 'SF Mono', Menlo, monospace;
}

.post-body pre {
  background: #1a1a2e;
  color: #ececf2;
  padding: 1.25rem;
  border-radius: 12px;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.post-body pre code { background: none; padding: 0; color: inherit; }

.post-body hr {
  border: none;
  height: 1px;
  background: #e5e5ea;
  margin: 2.5rem 0;
}

.post-body img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 1.5rem 0;
  display: block;
}

/* ---------- Pinterest share button ---------- */
.pin-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 1.1rem;
  background: #e60023;
  color: white;
  font-weight: 800;
  font-size: 0.9rem;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(230, 0, 35, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

.pin-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(230, 0, 35, 0.5);
  color: white;
}

.pin-btn svg {
  flex-shrink: 0;
}

.pin-btn-inline {
  padding: 0.7rem 1.1rem;
}

.pin-btn-overlay {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  padding: 0.55rem 0.9rem;
  font-size: 0.85rem;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover .pin-btn-overlay {
  opacity: 1;
}

/* Share row used on blog posts */
.post-share {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0;
  font-size: 0.95rem;
  color: #666;
  flex-wrap: wrap;
}

.post-share-end {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 2px solid #f0f0f5;
}

/* ---------- Review CTA on product pages ---------- */
.review-cta {
  background: linear-gradient(135deg, #fff5e0, #ffe6b3);
  padding: 0.9rem 1.2rem;
  border-radius: 12px;
  margin-top: 1rem;
  font-size: 1rem;
  color: #5c4a1d;
}

.review-cta a {
  color: #5c4a1d;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

.review-cta a:hover { color: var(--ink); }

/* ---------- "Complete the set" add-on cards ---------- */
.addons {
  margin-top: 2.5rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, #fff5e0 0%, #ffe6b3 100%);
  border-radius: 16px;
  border: 1px solid rgba(255, 179, 71, 0.35);
}

.addons h3 {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
  color: var(--ink);
}

.addons-intro {
  color: #6b5a3a;
  font-size: 0.92rem;
  margin-bottom: 1rem;
}

.addons-grid {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.addon-card {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 0.9rem;
  align-items: center;
  background: white;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.addon-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}

.addon-emoji {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: linear-gradient(135deg, #fff9f0, #fff5e0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  flex-shrink: 0;
}

.addon-info { min-width: 0; }

.addon-info h4 {
  font-family: 'Fredoka', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.15rem;
  line-height: 1.25;
}

.addon-info p {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.4;
  margin: 0;
}

.addon-buy {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
}

.addon-price {
  font-family: 'Fredoka', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.addon-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.85rem;
  background: linear-gradient(135deg, #ff9900, #ff7a00);
  color: white;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.8rem;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(255,122,0,0.3);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.addon-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255,122,0,0.45);
}

@media (max-width: 560px) {
  .addon-card {
    grid-template-columns: 48px 1fr;
    grid-template-rows: auto auto;
  }
  .addon-emoji { width: 48px; height: 48px; font-size: 1.6rem; }
  .addon-buy {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }
}

/* ---------- FAQ section on product pages ---------- */
/* Lives inside .product-info so it inherits the right column's width and
   sits directly under the buy buttons. */
.faqs {
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 2px solid #f0f0f5;
}

.faqs h2 {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
}

.faq-item {
  background: white;
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 0.75rem;
  overflow: hidden;
  border: 1px solid #f0f0f5;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.faq-item[open] {
  border-color: rgba(255,93,143,0.25);
  box-shadow: var(--shadow);
}

.faq-item summary {
  padding: 1.1rem 1.4rem;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: var(--ink);
  user-select: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--pink);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "−";
  transform: rotate(0);
}

.faq-item summary:hover { color: var(--pink); }

.faq-answer {
  padding: 0 1.4rem 1.4rem;
  color: #555;
  font-size: 1rem;
  line-height: 1.65;
}

.faq-answer p { margin: 0; }

/* ---------- Cookie consent banner ---------- */
.cookie-banner {
  position: fixed;
  bottom: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  z-index: 9999;
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(26,26,46,0.25), 0 0 0 1px rgba(0,0,0,0.04);
  padding: 1.25rem 1.5rem;
  max-width: 720px;
  margin: 0 auto;
  font-size: 0.95rem;
  line-height: 1.5;
}

.cookie-banner h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.cookie-banner p {
  color: #555;
  margin-bottom: 1rem;
}

.cookie-banner-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn-cookie {
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-cookie-primary {
  background: linear-gradient(135deg, var(--pink), var(--orange));
  color: white;
  box-shadow: 0 4px 12px rgba(255,93,143,0.35);
}

.btn-cookie-secondary {
  background: #f0f0f5;
  color: var(--ink);
}

.btn-cookie:hover {
  transform: translateY(-1px);
}

.cookie-banner-link {
  color: var(--pink);
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: underline;
}

@media (max-width: 500px) {
  .cookie-banner-actions { flex-direction: column; align-items: stretch; }
  .cookie-banner-actions .btn-cookie { width: 100%; }
}

/* ---------- Footer legal links ---------- */
.footer-legal {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin: 1.5rem 0 0.5rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  opacity: 0.85;
}
.footer-legal a {
  color: #c5c5d1;
  text-decoration: underline;
}
.footer-legal a:hover { color: var(--yellow); }

/* ---------- Static page (about / privacy / etc.) ---------- */
.static-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #2a2a3a;
}

.static-page h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 0.5rem;
}

.static-page .updated {
  color: #888;
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.static-page h2 {
  font-size: 1.5rem;
  margin: 2.5rem 0 1rem;
  padding-top: 0.5rem;
  border-top: 2px solid #f0f0f5;
}

.static-page h3 {
  font-size: 1.2rem;
  margin: 1.75rem 0 0.5rem;
}

.static-page p { margin-bottom: 1.1rem; }
.static-page ul, .static-page ol { margin: 0 0 1.25rem 1.5rem; }
.static-page li { margin-bottom: 0.4rem; }
.static-page a { color: var(--pink); text-decoration: underline; }
.static-page strong { color: var(--ink); }

.static-page .contact-card {
  background: #fff5e0;
  border-left: 4px solid var(--orange);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}

/* ---------- Hidden helper ---------- */
.hidden { display: none !important; }

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
  /* Nav → hamburger overlay */
  .hamburger { display: flex; }
  .nav-close { display: flex; }
  .main-nav {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(26, 26, 46, 0.97);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    z-index: 1000;
    padding: 2rem;
    -webkit-overflow-scrolling: touch;
  }
  .main-nav.open { display: flex; }
  .main-nav a {
    font-size: 1.1rem;
    padding: 0.9rem 2rem;
    width: 100%;
    max-width: 280px;
    text-align: center;
    border-radius: 10px;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Filter bar */
  .filter-bar { padding: 1rem 1.1rem; }
  .search-row { flex-direction: column; gap: 0.6rem; }
  .search-input { min-width: 0 !important; width: 100%; }
  .sort-select { width: 100%; }
  .chip-row {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .chip-row::-webkit-scrollbar { display: none; }
  .chip {
    flex-shrink: 0;
    white-space: nowrap;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
  }

  /* Grid */
  .grid { grid-template-columns: 1fr; }

  /* Hero */
  .hero { padding-top: 3rem; padding-bottom: 2.5rem; }
  .hero h1 { font-size: 2rem; }

  /* Product detail */
  .product-detail { grid-template-columns: 1fr; gap: 2rem; }
  .product-detail .product-image { font-size: 7rem; }
  .product-detail .buy-btn,
  .product-detail .buy-btn-large {
    width: 100%;
    justify-content: center;
    text-align: center;
    font-size: 1rem;
    padding: 1rem 1.5rem;
  }
  .cta-row { flex-direction: column; gap: 0.75rem; }

  /* Quiz */
  .quiz-options { grid-template-columns: 1fr !important; }
  .quiz-controls { flex-direction: column; gap: 0.75rem; }
  .quiz-back, .quiz-next { width: 100%; justify-content: center; text-align: center; }

  /* Cookie banner */
  .cookie-banner-actions { flex-direction: column; align-items: stretch; }
  .cookie-banner-actions .btn-cookie { width: 100%; text-align: center; }

  /* General touch targets */
  -webkit-tap-highlight-color: transparent;
}

@media (max-width: 560px) {
  .hero h1 { font-size: 1.75rem; }
  .hero-sub { font-size: 1rem; }

  .addon-card {
    grid-template-columns: 44px 1fr;
    grid-template-rows: auto auto;
  }
  .addon-emoji { width: 44px; height: 44px; font-size: 1.4rem; }
  .addon-buy {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }
}
