/* =============================================
   ADVENT CALENDAR AFFILIATE SITE — DESIGN SYSTEM
   Inspired by GiftTree + UncommonGoods
   ============================================= */

:root {
  --bg: #D4F5E8;
  --bg-warm: #BEF0D8;
  --ink: #1A1714;
  --ink-2: #3D3929;
  --ink-3: #6B6455;
  --red: #C0392B;
  --red-dark: #96201A;
  --red-light: #F8ECEB;
  --green: #2C5F2E;
  --green-light: #EBF2EB;
  --gold: #B8860B;
  --gold-light: #FFF8E7;
  --gold-border: #DCC89A;
  --cream: #A8E8C4;
  --snow: #EBF9F2;
  --nav-bg: #EBF9F2;
  --nav-h: 72px;
  --shadow-sm: 0 2px 8px rgba(26,23,20,0.08);
  --shadow-md: 0 6px 24px rgba(26,23,20,0.12);
  --shadow-lg: 0 16px 48px rgba(26,23,20,0.16);
  --radius: 6px;
  --radius-lg: 12px;
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Lora', Georgia, serif;
  font-size: 17px;
  line-height: 1.7;
  padding-top: var(--nav-h);
}
img { max-width: 100%; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); }

/* ---- FONTS ---- */
h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
}

/* ---- HOLIDAY ANNOUNCEMENT BAR ---- */
.announcement-bar {
  background: var(--green);
  color: #1A3A1A;
  text-align: center;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
}
.announcement-bar a { color: #fff; text-decoration: underline; }

/* When announcement bar is visible, push nav down */
body.has-announcement-bar {
  --nav-h: 108px;
}
body.has-announcement-bar nav {
  top: 36px;
}

/* ---- NAV ---- */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  background: var(--nav-bg);
  border-bottom: 1px solid #E8E0D0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(26,23,20,0.06);
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink) !important;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.02em;
}
.nav-logo span { color: var(--red); }
.nav-logo .logo-icon { font-size: 26px; }

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links > li > a {
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}
.nav-links > li > a:hover {
  background: var(--red-light);
  color: var(--red);
}

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a::after { content: ' ▾'; font-size: 10px; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: #EBF9F2;
  border: 1px solid #E8E0D0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  min-width: 200px;
  padding: 8px 0;
  z-index: 999;
}
.nav-dropdown:hover .dropdown-menu { display: flex; flex-direction: column; }
.dropdown-menu a {
  display: block !important;
  padding: 10px 18px;
  font-size: 14px;
  color: var(--ink-2) !important;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: all 0.15s;
}
.dropdown-menu a:hover {
  background: var(--red-light);
  color: var(--red) !important;
  border-left-color: var(--red);
}

/* Nav CTA */
.nav-cta {
  background: var(--red);
  color: #fff !important;
  padding: 9px 20px !important;
  border-radius: 24px;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  font-size: 13px !important;
  transition: background 0.2s, transform 0.1s !important;
}
.nav-cta:hover {
  background: var(--red-dark) !important;
  color: #fff !important;
  transform: translateY(-1px);
}

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--ink);
  padding: 8px;
}

/* Mobile menu */
#mobile-menu { display: none; }
#mobile-menu.open {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: #EBF9F2;
  border-bottom: 2px solid var(--red);
  padding: 16px 0;
  z-index: 998;
  box-shadow: var(--shadow-md);
}
#mobile-menu a {
  display: block;
  padding: 13px 24px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  border-bottom: 1px solid #F0EBE0;
}
#mobile-menu a:hover { background: var(--red-light); color: var(--red); }

/* ---- HERO ---- */
.hero {
  background: linear-gradient(135deg, #A8E8C4 0%, #D4F5E8 50%, #A8E8C4 100%);
  color: #1A3A1A;
  padding: 80px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-snowflakes {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  overflow: hidden;
}
.snowflake {
  position: absolute;
  color: rgba(26,58,26,0.1);
  font-size: 20px;
  animation: fall linear infinite;
}
@keyframes fall {
  0% { transform: translateY(-20px) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 0.3; }
  100% { transform: translateY(100vh) rotate(360deg); opacity: 0; }
}
.hero-badge {
  display: inline-block;
  background: rgba(26,58,26,0.08);
  border: 1px solid rgba(26,58,26,0.2);
  color: #1A3A1A;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.hero h1 { color: #1A3A1A !important;
  color: #1A3A1A;
  font-size: clamp(36px, 5vw, 64px);
  margin-bottom: 18px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.hero h1 .highlight { color: #B8860B; }
.hero p { color: #2C5F2E !important;
  font-size: 19px;
  color: rgba(26,58,26,0.85);
  max-width: 620px;
  margin: 0 auto 32px;
}
.hero-cta-group {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-primary {
  background: var(--red);
  color: #1A3A1A;
  padding: 14px 32px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(192,57,43,0.4);
  display: inline-block;
}
.btn-primary:hover {
  background: var(--red-dark);
  color: #1A3A1A;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(192,57,43,0.5);
}
.btn-secondary {
  background: rgba(26,58,26,0.08);
  color: #1A3A1A;
  padding: 14px 32px;
  border-radius: 30px;
  border: 2px solid rgba(26,58,26,0.3);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
}
.btn-secondary:hover {
  background: rgba(26,58,26,0.15);
  color: #1A3A1A;
  transform: translateY(-2px);
}
.hero-stats {
  display: flex;
  gap: 48px;
  justify-content: center;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(26,58,26,0.15);
  flex-wrap: wrap;
}
.hero-stat strong {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: #B8860B;
  font-family: 'Playfair Display', serif;
}
.hero-stat span {
  font-size: 13px;
  color: rgba(26,58,26,0.7);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---- COUNTDOWN BANNER ---- */
.countdown-banner {
  background: var(--red);
  color: #1A3A1A;
  text-align: center;
  padding: 16px;
}
.countdown-banner h3 {
  color: #1A3A1A;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.countdown-timer {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
}
.time-unit {
  text-align: center;
}
.time-unit .num {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 700;
  display: block;
  line-height: 1;
}
.time-unit .label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.8;
}
.time-sep { font-size: 28px; font-weight: 700; opacity: 0.6; margin-bottom: 14px; }

/* ---- SECTION STYLES ---- */
.section { padding: 64px 40px; }
.section-sm { padding: 40px 40px; }
.section-alt { background: var(--bg-warm); }
.section-dark { background: var(--ink); color: #fff; }
.section-dark h2, .section-dark h3 { color: #fff; }

.container { max-width: 1200px; margin: 0 auto; }
.container-narrow { max-width: 860px; margin: 0 auto; }

.section-header { text-align: center; margin-bottom: 48px; }
.section-header .eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}
.section-header h2 { font-size: clamp(26px, 3vw, 40px); margin-bottom: 14px; }
.section-header p { color: var(--ink-3); font-size: 17px; max-width: 540px; margin: 0 auto; }

/* ---- CATEGORY CARDS ---- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.category-card {
  background: #EBF9F2;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
  display: block;
  color: var(--ink);
  border: 1px solid #EDE5D5;
}
.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  color: var(--ink);
}
.category-card-emoji {
  font-size: 56px;
  text-align: center;
  padding: 28px 20px 16px;
  background: var(--gold-light);
  line-height: 1;
}
.category-card-body { padding: 16px 18px 20px; }
.category-card-body h3 { font-size: 17px; margin-bottom: 6px; }
.category-card-body p { font-size: 13px; color: var(--ink-3); line-height: 1.5; }
.category-card-count {
  font-size: 11px;
  color: var(--red);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 8px;
}

/* ---- PRODUCT CARDS ---- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.product-card {
  background: #EBF9F2;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
  display: block;
  color: var(--ink);
  border: 1px solid #EDE5D5;
  position: relative;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  color: var(--ink);
}
.product-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--red);
  color: #1A3A1A;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 20px;
}
.product-badge.green { background: var(--green); }
.product-badge.gold { background: var(--gold); }
.product-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
}
.product-img-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--cream), var(--gold-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 72px;
}
.product-body { padding: 18px 20px 22px; }
.product-brand {
  font-size: 11px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 6px;
}
.product-body h3 { font-size: 17px; margin-bottom: 8px; line-height: 1.3; }
.product-body p { font-size: 14px; color: var(--ink-3); margin-bottom: 14px; }
.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.product-price { font-size: 20px; font-weight: 700; color: var(--ink); font-family: 'Playfair Display', serif; }
.product-price .was { font-size: 13px; color: var(--ink-3); text-decoration: line-through; font-family: 'Lora', serif; margin-right: 6px; font-weight: 400; }
.product-stars { color: #F59E0B; font-size: 13px; margin-bottom: 4px; }
.product-stars span { color: var(--ink-3); font-size: 12px; }

.btn-shop {
  background: var(--red);
  color: #1A3A1A;
  padding: 9px 20px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: background 0.2s;
  display: inline-block;
  white-space: nowrap;
}
.btn-shop:hover { background: var(--red-dark); color: #fff; }

/* ---- TRUST BADGES ---- */
.trust-bar {
  background: var(--green);
  color: #1A3A1A;
  padding: 20px 40px;
}
.trust-bar .container {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
}
.trust-item .icon { font-size: 22px; }

/* ---- GIFT GUIDE CARDS ---- */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.guide-card {
  background: #EBF9F2;
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid #EDE5D5;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
  display: block;
  color: var(--ink);
}
.guide-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  color: var(--ink);
}
.guide-card .guide-icon { font-size: 40px; margin-bottom: 16px; }
.guide-card h3 { font-size: 20px; margin-bottom: 10px; }
.guide-card p { font-size: 14px; color: var(--ink-3); line-height: 1.6; }
.guide-card .guide-link {
  display: inline-block;
  margin-top: 16px;
  color: var(--red);
  font-weight: 700;
  font-size: 14px;
}

/* ---- FEATURED BANNER ---- */
.featured-banner {
  background: linear-gradient(135deg, var(--red) 0%, #8B1C1C 100%);
  color: #1A3A1A;
  border-radius: var(--radius-lg);
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 32px;
}
.featured-banner h2 { color: #fff; font-size: 32px; margin-bottom: 12px; }
.featured-banner p { color: rgba(26,58,26,0.85); font-size: 16px; }
.featured-banner .emoji { font-size: 80px; text-align: center; }

/* ---- FAQ ---- */
.faq-list { list-style: none; }
.faq-item {
  border-bottom: 1px solid #EDE5D5;
  padding: 20px 0;
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  gap: 16px;
}
.faq-question .toggle {
  font-size: 22px;
  color: var(--red);
  flex-shrink: 0;
  transition: transform 0.2s;
}
.faq-item.open .faq-question .toggle { transform: rotate(45deg); }
.faq-answer {
  display: none;
  padding-top: 12px;
  color: var(--ink-3);
  font-size: 15px;
  line-height: 1.7;
}
.faq-item.open .faq-answer { display: block; }

/* ---- NEWSLETTER ---- */
.newsletter-section {
  background: linear-gradient(135deg, var(--green) 0%, #1A3A1A 100%);
  color: #1A3A1A;
  text-align: center;
  padding: 60px 40px;
}
.newsletter-section h2 { color: #fff; margin-bottom: 12px; }
.newsletter-section p { color: rgba(255,255,255,0.8); margin-bottom: 28px; }
.newsletter-form {
  display: flex;
  max-width: 440px;
  margin: 0 auto;
  gap: 0;
}
.newsletter-form input {
  flex: 1;
  padding: 14px 18px;
  border: none;
  border-radius: 30px 0 0 30px;
  font-size: 15px;
  outline: none;
  font-family: 'Lora', serif;
}
.newsletter-form button {
  padding: 14px 24px;
  background: var(--red);
  color: #1A3A1A;
  border: none;
  border-radius: 0 30px 30px 0;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: background 0.2s;
}
.newsletter-form button:hover { background: var(--red-dark); }

/* ---- LAST REVIEWED / BYLINE ---- */
.last-reviewed-visible {
  font-size: 12px;
  color: var(--ink-3);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.byline {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-3);
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.author-bio-box {
  display: flex;
  gap: 20px;
  background: var(--gold-light);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 40px 0;
  align-items: flex-start;
}
.author-bio-img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  border: 3px solid var(--gold-border);
}
.author-bio-text strong { display: block; font-size: 15px; margin-bottom: 2px; }
.author-bio-creds { font-size: 12px; color: var(--ink-3); }
.author-bio-text p { font-size: 14px; color: var(--ink-2); margin: 8px 0; }
.author-bio-link { font-size: 13px; color: var(--red); font-weight: 600; margin-right: 14px; }

/* ---- BREADCRUMB ---- */
.breadcrumb {
  font-size: 13px;
  color: var(--ink-3);
  padding: 14px 0;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--red); }
.breadcrumb .sep { opacity: 0.4; }

/* ---- FOOTER ---- */
footer {
  background: var(--ink);
  color: rgba(255,255,255,0.75);
  padding: 56px 40px 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand .logo {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: #1A3A1A;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.footer-brand .logo span { color: var(--red); }
.footer-brand p { font-size: 14px; line-height: 1.7; max-width: 280px; }
.footer-col h4 {
  color: #1A3A1A;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  color: rgba(255,255,255,0.65);
  font-size: 14px;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 13px; }
.footer-bottom a { color: rgba(255,255,255,0.6); }
.footer-affiliate-disclosure {
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-top: 24px;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(255,255,255,0.5);
}

/* ---- PAGE HERO (inner pages) ---- */
.page-hero {
  background: linear-gradient(135deg, #A8E8C4, #D4F5E8);
  color: #1A3A1A;
  padding: 52px 40px;
  text-align: center;
}
.page-hero h1 { color: #1A3A1A; font-size: clamp(28px, 4vw, 48px); margin-bottom: 12px; }
.page-hero p { color: rgba(26,58,26,0.75); font-size: 17px; max-width: 580px; margin: 0 auto; }

/* ---- RATING STARS ---- */
.rating { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.stars { color: #F59E0B; letter-spacing: 2px; }
.rating-count { font-size: 13px; color: var(--ink-3); }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; }
  .hamburger { display: block; }
  .section { padding: 48px 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .featured-banner { grid-template-columns: 1fr; text-align: center; }
  .hero { padding: 60px 20px; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .newsletter-form { flex-direction: column; }
  .newsletter-form input { border-radius: 30px; }
  .newsletter-form button { border-radius: 30px; }
  .hero-stats { gap: 24px; }
  .trust-bar .container { gap: 20px; }
}
