/* =========================================================
   StyleSnoop — Shared stylesheet
   ========================================================= */

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Lora', Georgia, serif;
  color: #2a1a1a;
  background: #faf6f2;
  line-height: 1.6;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5 { font-family: 'Playfair Display', serif; color: #4a0e1f; letter-spacing: 0.2px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

:root {
  --primary: #6b1230;
  --primary-dark: #4a0e1f;
  --accent: #c9a449;
  --accent-light: #e9c97a;
  --bg: #faf6f2;
  --card: #ffffff;
  --muted: #8a7a7a;
  --line: #e8dfd6;
}

@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { animation: fadeUp .7s ease both; }

/* ---------- Announcement bar ---------- */
.announce {
  background: var(--primary-dark);
  color: var(--accent-light);
  font-size: 13px;
  text-align: center;
  padding: 8px 16px;
  letter-spacing: 0.6px;
}

/* ---------- Navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
}
.logo {
  font-family: 'Playfair Display', serif;
  font-weight: 900; font-size: 26px;
  color: var(--primary);
}
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a {
  font-family: 'Playfair Display', serif;
  font-size: 15px; font-weight: 500;
  position: relative; padding: 4px 0;
  transition: color .25s;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -4px;
  width: 0; height: 2px; background: var(--accent);
  transition: width .3s;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.icon-btn { background: none; border: none; font-size: 18px; cursor: pointer; color: var(--primary-dark); }

.btn {
  cursor: pointer; border: none;
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 999px;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(107,18,48,0.25); }
.btn-ghost { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-ghost:hover { background: var(--primary); color: #fff; }
.btn-accent { background: var(--accent); color: var(--primary-dark); }
.btn-accent:hover { background: var(--accent-light); }

.mobile-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--primary); }

/* ---------- Ad shells ---------- */
.ad {
  background: #f1eee9;
  border: 1.5px dashed #b6a99a;
  color: #7a6c5d;
  font-family: 'Lora', serif;
  font-size: 13px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  position: relative;
  margin: 22px auto;
  text-align: center;
}
.ad::before {
  content: 'Advertisement';
  position: absolute; top: 6px; left: 10px;
  font-size: 10px; letter-spacing: 1.4px; text-transform: uppercase;
  color: #9a8c7a;
}
.ad .ad-size { font-weight: 600; color: #6f6253; }

/* Hide every ad slot when SHOW_ADS is false (set by ads.js) */
html.ads-off .ad,
html.ads-off .sticky-ad,
html.ads-off .interstitial { display: none !important; }
.ad-728x90 { width: 100%; max-width: 728px; height: 90px; }
.ad-300x250 { width: 300px; max-width: 100%; height: 250px; }
.ad-970x90 { width: 100%; max-width: 970px; height: 90px; }

/* ---------- Layout ---------- */
main { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------- Hero ---------- */
.hero {
  padding: 56px 0 28px;
  display: grid; gap: 40px;
  grid-template-columns: 1fr 1.2fr;
  align-items: center;
}
.hero h1 { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.08; margin-bottom: 18px; }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero p { font-size: 17px; color: #5a4a4a; max-width: 520px; margin-bottom: 26px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-art {
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, #6b1230 0%, #4a0e1f 100%);
  border-radius: 24px;
  position: relative; overflow: hidden;
  box-shadow: 0 20px 50px rgba(74,14,31,0.25);
}
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 36px 0 12px; }
.stat-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 18px 20px; text-align: center;
  transition: transform .25s, box-shadow .25s;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(74,14,31,0.10); }
.stat-card .num { font-family: 'Playfair Display', serif; font-size: 28px; color: var(--primary); font-weight: 700; }
.stat-card .lbl { font-size: 13px; color: var(--muted); letter-spacing: 0.6px; text-transform: uppercase; }

/* ---------- Section heads ---------- */
.section-head {
  display: flex; align-items: end; justify-content: space-between;
  margin: 48px 0 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}
.section-head h2 { font-size: 28px; }
.section-head a { color: var(--accent); font-weight: 600; font-size: 14px; }

/* ---------- Category grid ---------- */
.cats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.cat {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 22px 14px; text-align: center; cursor: pointer;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.cat:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 10px 30px rgba(201,164,73,0.18); }
.cat .emo { font-size: 34px; display: block; margin-bottom: 8px; }
.cat .name { font-family: 'Playfair Display', serif; font-weight: 700; color: var(--primary-dark); }
.cat .count { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ---------- Reviews + sidebar layout ---------- */
.layout { display: grid; grid-template-columns: 1fr 320px; gap: 36px; align-items: start; margin-top: 30px; }
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.review {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden; cursor: pointer;
  transition: transform .25s, box-shadow .25s;
  display: flex; flex-direction: column;
}
.review:hover { transform: translateY(-5px); box-shadow: 0 14px 36px rgba(74,14,31,0.12); }
.review:hover .review-img img { transform: scale(1.05); }
.review-img {
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, #f3e6d6, #e9c97a);
  display: flex; align-items: center; justify-content: center;
  font-size: 54px;
  overflow: hidden;
  position: relative;
}
.review-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 18%;
  transition: transform .5s ease;
  display: block;
}
.review-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.review .brand { font-size: 12px; color: var(--accent); letter-spacing: 1.2px; text-transform: uppercase; font-weight: 600; }
.review h3 { font-size: 18px; margin: 4px 0 8px; line-height: 1.25; }
.review .snippet { font-size: 14px; color: #5a4a4a; flex: 1; }
.review .meta { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.stars { color: var(--accent); font-size: 14px; letter-spacing: 1px; }
.price { font-weight: 700; color: var(--primary); }
.review .actions { display: flex; gap: 8px; margin-top: 12px; }
.review .actions button { flex: 1; padding: 8px; font-size: 13px; }

/* Expandable full review */
.review-full { margin-top: 14px; border-top: 1px dashed var(--line); }
.review-full > summary {
  list-style: none; cursor: pointer; padding: 10px 0 4px;
  font-family: 'Playfair Display', serif; font-weight: 600;
  font-size: 14px; color: var(--primary);
  display: flex; align-items: center; justify-content: space-between;
}
.review-full > summary::-webkit-details-marker { display: none; }
.review-full > summary::after {
  content: '＋'; font-size: 18px; color: var(--accent);
  transition: transform .25s;
}
.review-full[open] > summary::after { content: '−'; }
.review-full > summary:hover { color: var(--primary-dark); }
.review-full .full-body {
  font-size: 14.5px; line-height: 1.7; color: #3a2a2a;
  padding: 6px 0 4px;
}
.review-full .full-body p { margin-bottom: 10px; }
.review-full .full-body p:last-child { margin-bottom: 0; }

/* ---------- Sidebar ---------- */
.sidebar { display: flex; flex-direction: column; gap: 22px; }
.widget {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 18px;
}
.widget h4 {
  font-size: 16px; margin-bottom: 12px;
  padding-bottom: 8px; border-bottom: 1px solid var(--line);
}
.trend-item {
  display: flex; gap: 12px; padding: 8px 0;
  border-bottom: 1px dashed var(--line); cursor: pointer;
}
.trend-item:last-child { border-bottom: none; }
.trend-item .ti-img {
  width: 50px; height: 50px; border-radius: 8px; flex-shrink: 0;
  background: linear-gradient(135deg, #f3e6d6, #c9a449);
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.trend-item .ti-meta .t { font-family: 'Playfair Display', serif; font-weight: 600; font-size: 14px; line-height: 1.3; }
.trend-item .ti-meta .s { font-size: 12px; color: var(--muted); }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  background: #f5ece0; color: var(--primary-dark);
  padding: 6px 12px; border-radius: 999px;
  font-size: 12px; cursor: pointer;
  border: 1px solid transparent;
  transition: background .2s, border-color .2s, color .2s;
}
.tag:hover { border-color: var(--accent); }
.tag.active { background: var(--primary); color: #fff; }

/* ---------- Newsletter ---------- */
.newsletter {
  margin: 60px 0 30px;
  padding: 44px 32px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  text-align: center;
}
.newsletter h2 { color: #fff; font-size: 30px; margin-bottom: 8px; }
.newsletter p { color: var(--accent-light); max-width: 540px; margin: 0 auto 22px; }
.nl-form {
  display: flex; gap: 8px; max-width: 480px; margin: 0 auto;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px; padding: 6px;
}
.nl-form input {
  flex: 1; background: transparent; border: none; outline: none;
  color: #fff; padding: 10px 16px; font-size: 14px;
  font-family: inherit;
}
.nl-form input::placeholder { color: rgba(255,255,255,0.6); }

/* ---------- Footer ---------- */
footer {
  background: #1d0810; color: #d8c9bf;
  margin-top: 40px;
  padding: 56px 24px 18px;
}
.footer-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px;
}
.footer-grid h5 {
  color: var(--accent); font-size: 16px; margin-bottom: 14px;
  letter-spacing: 1px; text-transform: uppercase;
}
.footer-grid p, .footer-grid a { font-size: 14px; color: #c9b9af; }
.footer-grid ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-grid a:hover { color: var(--accent-light); }
.footer-bottom {
  max-width: 1200px; margin: 32px auto 0;
  padding-top: 18px; border-top: 1px solid rgba(216,201,191,0.15);
  font-size: 12px; color: #9a8e84;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
}
.footer-brand-logo {
  font-family: 'Playfair Display', serif;
  font-weight: 900; font-size: 24px; color: #fff; margin-bottom: 12px;
}
.footer-brand-logo span { color: var(--accent); }

/* ---------- Sticky footer ad ---------- */
.sticky-ad {
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 80;
  background: #f1eee9;
  border-top: 1.5px dashed #b6a99a;
  padding: 8px 40px 8px 16px;
  display: none;
  align-items: center; justify-content: center;
  min-height: 60px;
}
.sticky-ad.show { display: flex; }
.sticky-ad .close {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: var(--primary); color: #fff;
  border: none; width: 26px; height: 26px; border-radius: 50%;
  cursor: pointer; font-size: 14px;
}
.sticky-ad .ad-label {
  position: absolute; left: 12px; top: 4px;
  font-size: 10px; color: #9a8c7a; letter-spacing: 1.4px; text-transform: uppercase;
}
.sticky-ad .ad-size { font-size: 13px; color: #6f6253; font-weight: 600; }

/* ---------- Interstitial overlay ---------- */
.interstitial {
  position: fixed; inset: 0;
  background: rgba(10,4,8,0.75);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: none;
  align-items: center; justify-content: center;
  padding: 16px;
  animation: fadeUp .25s ease both;
}
.interstitial.show { display: flex; }
.interstitial-card {
  width: 600px; max-width: 100%; height: 400px; max-height: 90vh;
  background: #fff; border-radius: 16px;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
}
.interstitial-card .label {
  background: #f1eee9;
  color: #7a6c5d;
  font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 8px 16px; text-align: left;
  border-bottom: 1px dashed #b6a99a;
}
.interstitial-creative {
  flex: 1;
  background: linear-gradient(135deg, #fff8e7 0%, #f3e0a8 50%, #c9a449 100%);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  color: var(--primary-dark);
  text-align: center;
  padding: 24px;
  position: relative;
}
.interstitial-creative .big { font-size: 32px; font-weight: 700; margin-bottom: 8px; }
.interstitial-creative .small { font-size: 14px; color: #5a4a3a; font-family: 'Lora', serif; }
.interstitial-footer {
  padding: 12px 16px;
  background: #fff;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: #5a4a4a;
}
.skip-btn {
  background: var(--primary); color: #fff; border: none;
  padding: 8px 18px; border-radius: 999px; cursor: pointer;
  font-family: 'Playfair Display', serif; font-weight: 600;
  opacity: 0.5; pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.skip-btn.ready { opacity: 1; pointer-events: auto; }
.skip-btn.ready:hover { transform: translateY(-1px); background: var(--primary-dark); }

/* ---------- Inner-page (about/faq/privacy/etc.) layout ---------- */
.page {
  padding: 40px 0;
  max-width: 800px;
  margin: 0 auto;
}
.page h1 { font-size: 38px; margin-bottom: 6px; }
.page .lead { color: var(--muted); margin-bottom: 24px; font-style: italic; }
.page h2 { font-size: 22px; margin: 28px 0 10px; color: var(--primary); }
.page p { margin-bottom: 14px; color: #3a2a2a; }
.page ul { padding-left: 22px; margin-bottom: 14px; }
.page ul li { margin-bottom: 6px; }
.faq-item {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 16px 20px; margin-bottom: 12px;
}
.faq-item .q {
  font-family: 'Playfair Display', serif;
  font-weight: 700; color: var(--primary); margin-bottom: 6px;
}
.contact-form {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 24px;
  display: flex; flex-direction: column; gap: 12px;
}
.contact-form input, .contact-form textarea {
  border: 1px solid var(--line); border-radius: 8px;
  padding: 12px; font-family: inherit; font-size: 14px;
  background: #fdfaf6;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: 2px solid var(--accent); border-color: transparent;
}
.contact-form textarea { min-height: 130px; resize: vertical; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .mobile-toggle { display: block; }
  .nav-links.show {
    display: flex; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; flex-direction: column; padding: 14px 24px; gap: 14px;
    border-bottom: 1px solid var(--line);
  }
  .hero { grid-template-columns: 1fr; }
  .hero-art { width: 100%; max-width: 360px; margin: 0 auto; aspect-ratio: 4/5; }
  .stats { grid-template-columns: 1fr 1fr 1fr; }
  .cats { grid-template-columns: repeat(3, 1fr); }
  .layout { grid-template-columns: 1fr; }
  .reviews { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr; }
  .cats { grid-template-columns: 1fr 1fr; }
  .reviews { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
  .section-head h2 { font-size: 22px; }

  .newsletter { padding: 32px 18px; }
  .newsletter h2 { font-size: 24px; }
  .nl-form {
    flex-direction: column;
    border-radius: 16px;
    padding: 10px;
    gap: 10px;
  }
  .nl-form input {
    width: 100%;
    padding: 10px 12px;
    background: rgba(255,255,255,0.12);
    border-radius: 10px;
    text-align: center;
  }
  .nl-form .btn { width: 100%; padding: 10px 18px; font-size: 14px; }
}
