/* ============================================
   Crumb & Co. — Gorgeous Cookies
   ============================================ */

:root {
  --cream: #faf3e7;
  --cream-2: #f4e8d3;
  --ink: #2a1810;
  --ink-2: #4a2f1f;
  --brown: #6b3e1f;
  --choco: #3a1f0f;
  --pink: #f5c4c4;
  --pink-2: #e89a9a;
  --gold: #d4a056;
  --mint: #b8d4c1;
  --shadow: 0 30px 60px -25px rgba(58, 31, 15, 0.45);
  --shadow-sm: 0 10px 25px -10px rgba(58, 31, 15, 0.3);
  --radius: 24px;
  --radius-sm: 14px;
  --max-w: 1200px;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
*::selection { background: var(--pink-2); color: var(--ink); }

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
em { font-style: italic; color: var(--brown); font-family: var(--font-display); }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ============================================
   Loader
   ============================================ */
.loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--cream);
  display: grid; place-items: center;
  transition: opacity .6s var(--ease), visibility .6s;
}
.loader.hide { opacity: 0; visibility: hidden; }
.loader-cookie { animation: spin 1.4s linear infinite; }
.cookie {
  width: 80px; height: 80px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #c89165, #8b5a2b);
  position: relative; box-shadow: var(--shadow);
}
.cookie span {
  position: absolute; width: 8px; height: 8px;
  background: #2a1810; border-radius: 50%;
}
.cookie span:nth-child(1) { top: 20%; left: 30%; }
.cookie span:nth-child(2) { top: 50%; left: 60%; width: 10px; height: 10px; }
.cookie span:nth-child(3) { top: 65%; left: 25%; width: 6px; height: 6px; }
.cookie span:nth-child(4) { top: 35%; left: 70%; width: 7px; height: 7px; }
.cookie span:nth-child(5) { top: 70%; left: 55%; width: 9px; height: 9px; }
.loader p {
  margin-top: 24px; font-family: var(--font-display);
  font-size: 18px; color: var(--brown);
  letter-spacing: 0.5px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================
   Marquee
   ============================================ */
.marquee {
  background: var(--ink); color: var(--cream);
  font-size: 13px; padding: 12px 0; overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.marquee-track {
  display: flex; gap: 40px; white-space: nowrap;
  animation: marquee 30s linear infinite;
  width: max-content;
}
.marquee-track span { display: inline-block; letter-spacing: 0.5px; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================
   Header
   ============================================ */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 243, 231, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(58, 31, 15, 0.06);
  transition: all .3s var(--ease);
}
.header.scrolled { box-shadow: 0 4px 20px rgba(58, 31, 15, 0.08); }

.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  font-size: 28px; display: inline-block;
  animation: wobble 4s ease-in-out infinite;
}
@keyframes wobble {
  0%, 100% { transform: rotate(-8deg); }
  50% { transform: rotate(8deg); }
}
.logo-text {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 700;
  letter-spacing: -0.5px;
}
.logo-text span { color: var(--brown); font-style: italic; }

.nav-links {
  display: flex; gap: 36px;
}
.nav-links a {
  font-size: 14px; font-weight: 500;
  color: var(--ink-2);
  position: relative;
  transition: color .2s;
}
.nav-links a::after {
  content: ''; position: absolute;
  left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--brown);
  transition: width .3s var(--ease);
}
.nav-links a:hover { color: var(--brown); }
.nav-links a:hover::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--ink);
  transition: all .2s var(--ease);
  position: relative;
}
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:hover { background: var(--cream-2); transform: scale(1.05); }
.cart-btn .cart-count {
  position: absolute; top: 2px; right: 2px;
  min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--brown); color: var(--cream);
  border-radius: 9px;
  font-size: 11px; font-weight: 700;
  display: grid; place-items: center;
  transform: scale(0);
  transition: transform .3s var(--ease);
}
.cart-btn .cart-count.show { transform: scale(1); }
.cart-btn .cart-count.bump { animation: bump .4s var(--ease); }
@keyframes bump {
  0% { transform: scale(1); }
  50% { transform: scale(1.4); }
  100% { transform: scale(1); }
}

.menu-toggle {
  display: none;
  width: 42px; height: 42px;
  flex-direction: column; gap: 4px;
  align-items: center; justify-content: center;
  border-radius: 50%;
}
.menu-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: all .3s var(--ease);
}
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px;
  font-size: 14px; font-weight: 600;
  border-radius: 999px;
  transition: all .25s var(--ease);
  letter-spacing: 0.2px;
}
.btn-primary {
  background: var(--ink); color: var(--cream);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--brown);
  transform: translateY(-2px);
  box-shadow: 0 15px 30px -10px rgba(58, 31, 15, 0.4);
}
.btn-primary span { transition: transform .2s var(--ease); }
.btn-primary:hover span { transform: translateX(4px); }
.btn-ghost {
  background: transparent; color: var(--ink);
  border: 1.5px solid rgba(58, 31, 15, 0.2);
}
.btn-ghost:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.btn-dark {
  background: var(--choco); color: var(--cream);
}
.btn-dark:hover { background: var(--ink); transform: translateY(-2px); }
.btn-sm { padding: 10px 18px; font-size: 13px; }
.btn-block { width: 100%; justify-content: center; }

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  padding: 80px 0 120px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none;
}
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.55;
  animation: float 18s ease-in-out infinite;
}
.blob-1 {
  width: 500px; height: 500px;
  background: var(--pink);
  top: -100px; right: -100px;
}
.blob-2 {
  width: 400px; height: 400px;
  background: var(--cream-2);
  bottom: -100px; left: -100px;
  animation-delay: -6s;
}
.blob-3 {
  width: 300px; height: 300px;
  background: var(--gold);
  top: 50%; left: 50%;
  opacity: 0.2;
  animation-delay: -12s;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.05); }
  66% { transform: translate(-30px, 40px) scale(0.95); }
}

.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: 80px; align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--brown);
  padding: 6px 14px;
  background: rgba(212, 160, 86, 0.15);
  border-radius: 999px;
  margin-bottom: 24px;
}
.eyebrow.light { background: rgba(255, 255, 255, 0.15); color: var(--cream); }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 92px);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -2px;
  margin-bottom: 24px;
}
.ital {
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(120deg, var(--brown), var(--gold) 60%, var(--pink-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}
.hero-sub {
  font-size: 19px; color: var(--ink-2);
  max-width: 520px; margin-bottom: 36px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stats {
  display: flex; gap: 40px; margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid rgba(58, 31, 15, 0.1);
}
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.5px;
}
.hero-stats span { font-size: 12px; color: var(--ink-2); }

.hero-visual {
  display: grid; place-items: center;
  position: relative;
}
.hero-card {
  position: relative;
  width: 100%; max-width: 480px;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--pink) 0%, var(--cream-2) 100%);
  border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: var(--shadow);
  animation: floatY 6s ease-in-out infinite;
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

.cookie-stack { position: relative; width: 60%; height: 60%; }
.big-cookie {
  position: absolute;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #d4a574 0%, #8b5a2b 70%, #5a3818 100%);
  box-shadow: inset -10px -10px 30px rgba(0, 0, 0, 0.3), 0 20px 40px rgba(58, 31, 15, 0.3);
}
.big-cookie::before, .big-cookie::after {
  content: ''; position: absolute;
  background: #2a1810; border-radius: 50%;
}
.big-cookie::before { width: 18px; height: 18px; top: 30%; left: 25%; }
.big-cookie::after { width: 24px; height: 24px; top: 55%; left: 60%; box-shadow:
  -30px -10px 0 -2px #2a1810,
  20px 20px 0 -4px #2a1810,
  -10px 25px 0 -6px #2a1810;
}
.c1 { top: 0; left: 30%; transform: rotate(-15deg); z-index: 3; }
.c2 { top: 20%; left: 0; transform: rotate(10deg); z-index: 2; width: 150px; height: 150px; opacity: 0.95; }
.c3 { top: 35%; right: 0; transform: rotate(25deg); z-index: 1; width: 160px; height: 160px; opacity: 0.9; }

.floating-badge {
  position: absolute; top: 8%; right: -10%;
  background: var(--ink); color: var(--cream);
  padding: 18px 22px; border-radius: 18px;
  box-shadow: var(--shadow);
  animation: floatY 4s ease-in-out infinite;
  animation-delay: -2s;
  transform: rotate(8deg);
  text-align: center;
}
.floating-badge span {
  display: block; font-size: 10px; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 4px;
}
.floating-badge strong {
  font-family: var(--font-display);
  font-size: 18px; line-height: 1.1;
  font-style: italic; font-weight: 500;
}
.floating-tag {
  position: absolute; bottom: 12%; left: -8%;
  background: var(--cream);
  padding: 14px 20px; border-radius: 999px;
  box-shadow: var(--shadow-sm);
  font-weight: 700; font-size: 15px;
  animation: floatY 5s ease-in-out infinite;
  animation-delay: -1s;
  transform: rotate(-6deg);
}

/* ============================================
   Strip
   ============================================ */
.strip {
  background: var(--ink); color: var(--cream);
  padding: 28px 0; overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.strip-track {
  display: flex; gap: 30px; white-space: nowrap;
  animation: marquee 25s linear infinite;
  width: max-content;
  font-family: var(--font-display);
  font-size: 32px; font-weight: 500;
  font-style: italic;
  align-items: center;
}
.strip-track span:nth-child(even) { color: var(--gold); font-size: 24px; }

/* ============================================
   Sections
   ============================================ */
.section { padding: 120px 0; position: relative; }
.section-head {
  text-align: center; max-width: 720px;
  margin: 0 auto 64px;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.1; font-weight: 600;
  letter-spacing: -1.5px;
  margin-bottom: 16px;
}
.section-head p {
  font-size: 17px; color: var(--ink-2);
}

/* ============================================
   Filters
   ============================================ */
.filters {
  display: flex; gap: 10px; justify-content: center;
  margin-bottom: 48px; flex-wrap: wrap;
}
.chip {
  padding: 10px 22px; border-radius: 999px;
  font-size: 14px; font-weight: 500;
  color: var(--ink-2);
  background: var(--cream-2);
  transition: all .2s var(--ease);
}
.chip:hover { background: var(--pink); }
.chip.active {
  background: var(--ink); color: var(--cream);
}

/* ============================================
   Product grid
   ============================================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.product-card {
  background: var(--cream-2);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
  transition: all .3s var(--ease);
  cursor: pointer;
  overflow: hidden;
}
.product-card::before {
  content: ''; position: absolute; inset: 0;
  background: var(--card-color, var(--pink));
  opacity: 0; transition: opacity .3s var(--ease);
  z-index: 0;
}
.product-card > * { position: relative; z-index: 1; }
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}
.product-card:hover::before { opacity: 0.4; }

.product-visual {
  height: 180px;
  display: grid; place-items: center;
  margin-bottom: 20px;
  position: relative;
}
.product-visual .pc-cookie {
  width: 130px; height: 130px; border-radius: 50%;
  background: var(--cookie-color, radial-gradient(circle at 30% 30%, #d4a574, #8b5a2b));
  box-shadow: inset -8px -8px 20px rgba(0,0,0,0.3), 0 12px 25px rgba(58, 31, 15, 0.25);
  position: relative;
  transition: transform .4s var(--ease);
}
.product-card:hover .pc-cookie { transform: rotate(15deg) scale(1.08); }
.pc-cookie::before, .pc-cookie::after {
  content: ''; position: absolute;
  background: #2a1810; border-radius: 50%;
}
.pc-cookie::before { width: 14px; height: 14px; top: 30%; left: 30%; }
.pc-cookie::after { width: 18px; height: 18px; top: 55%; left: 55%; box-shadow:
  -25px -8px 0 -2px #2a1810,
  20px 18px 0 -3px #2a1810;
}

.product-tag {
  position: absolute; top: 16px; right: 16px;
  background: var(--ink); color: var(--cream);
  font-size: 10px; font-weight: 700;
  letter-spacing: 1.2px; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px;
  z-index: 2;
}
.product-name {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}
.product-desc {
  font-size: 13px; color: var(--ink-2);
  margin-bottom: 20px; line-height: 1.5;
}
.product-foot {
  display: flex; align-items: center;
  justify-content: space-between;
}
.product-price {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 700;
  color: var(--brown);
}
.add-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--ink); color: var(--cream);
  display: grid; place-items: center;
  font-size: 20px;
  transition: all .2s var(--ease);
}
.add-btn:hover {
  background: var(--brown);
  transform: scale(1.1) rotate(90deg);
}
.add-btn.added {
  background: var(--mint);
  color: var(--ink);
  animation: pop .4s var(--ease);
}
@keyframes pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* ============================================
   Bestsellers / Feature
   ============================================ */
.bestsellers { background: var(--ink); color: var(--cream); border-radius: 40px 40px 0 0; }
.bestsellers .section-head h2 em { color: var(--gold); }
.bestsellers .eyebrow { background: rgba(212, 160, 86, 0.2); color: var(--gold); }
.feature {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}
.feature-visual {
  position: relative;
  aspect-ratio: 1;
  display: grid; place-items: center;
}
.feature-cookie {
  width: 320px; height: 320px; border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, #f0c896 0%, #c89055 50%, #6b3e1f 100%);
  position: relative;
  box-shadow: inset -20px -20px 60px rgba(0, 0, 0, 0.4),
              0 50px 80px -20px rgba(212, 160, 86, 0.3);
  animation: floatY 5s ease-in-out infinite;
}
.feature-cookie::before, .feature-cookie::after {
  content: ''; position: absolute;
  background: #1a0f08; border-radius: 50%;
}
.feature-cookie::before { width: 28px; height: 28px; top: 25%; left: 30%; }
.feature-cookie::after { width: 36px; height: 36px; top: 55%; left: 55%; box-shadow:
  -50px -20px 0 -3px #1a0f08,
  40px 35px 0 -4px #1a0f08,
  -20px 50px 0 -6px #1a0f08,
  60px -10px 0 -2px #1a0f08;
}
.feature-shadow {
  position: absolute; bottom: 10%; left: 50%;
  transform: translateX(-50%);
  width: 280px; height: 30px;
  background: radial-gradient(ellipse, rgba(212, 160, 86, 0.3), transparent 70%);
  border-radius: 50%;
  filter: blur(10px);
}
.sparkle {
  position: absolute;
  color: var(--gold);
  font-size: 24px;
  animation: sparkle 3s ease-in-out infinite;
}
.sparkle.s1 { top: 15%; left: 15%; }
.sparkle.s2 { top: 30%; right: 20%; animation-delay: -1s; font-size: 18px; }
.sparkle.s3 { bottom: 20%; left: 25%; animation-delay: -2s; font-size: 28px; }
@keyframes sparkle {
  0%, 100% { opacity: 0.3; transform: scale(0.8) rotate(0); }
  50% { opacity: 1; transform: scale(1.2) rotate(180deg); }
}

.feature-text h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 1.1; font-weight: 600;
  letter-spacing: -1.5px;
  margin: 16px 0 24px;
}
.feature-text h2 em { color: var(--gold); }
.feature-text p { color: rgba(250, 243, 231, 0.8); font-size: 17px; margin-bottom: 24px; }
.feature-list {
  list-style: none; display: grid;
  grid-template-columns: 1fr 1fr; gap: 12px;
  margin-bottom: 36px;
}
.feature-list li {
  font-size: 14px; color: rgba(250, 243, 231, 0.9);
  padding: 8px 0;
}
.price-row { display: flex; align-items: center; gap: 24px; }
.price {
  font-family: var(--font-display);
  font-size: 56px; font-weight: 700;
  color: var(--gold);
  letter-spacing: -2px;
}

/* ============================================
   About
   ============================================ */
.about { background: var(--cream-2); border-radius: 40px 40px 0 0; margin-top: -1px; }
.about-grid {
  display: grid; grid-template-columns: 1fr 1.1fr;
  gap: 80px; align-items: center;
}
.about-imgs {
  position: relative;
  height: 500px;
}
.img {
  position: absolute;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.1), transparent);
}
.img-1 {
  width: 60%; height: 65%;
  top: 0; left: 0;
  background: linear-gradient(135deg, #d4a574, #8b5a2b);
  transform: rotate(-3deg);
}
.img-2 {
  width: 55%; height: 50%;
  bottom: 0; right: 0;
  background: linear-gradient(135deg, #f5c4c4, #e89a9a);
  transform: rotate(4deg);
}
.img-3 {
  width: 45%; height: 45%;
  top: 30%; right: 10%;
  background: linear-gradient(135deg, #b8d4c1, #8faf9c);
  transform: rotate(-5deg);
  z-index: 2;
}
.since {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(-12deg);
  background: var(--ink); color: var(--cream);
  padding: 20px 28px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 18px; font-weight: 600;
  font-style: italic;
  box-shadow: var(--shadow);
  z-index: 3;
  width: 110px; height: 110px;
  display: grid; place-items: center;
  text-align: center;
  line-height: 1.1;
}

.about-text h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.5vw, 52px);
  line-height: 1.1; font-weight: 600;
  letter-spacing: -1.5px;
  margin: 16px 0 24px;
}
.about-text p { font-size: 17px; color: var(--ink-2); margin-bottom: 18px; }
.signature {
  font-family: var(--font-display);
  font-style: italic; font-size: 22px;
  color: var(--brown);
  margin-top: 32px;
}

/* ============================================
   Reviews
   ============================================ */
.reviews { background: var(--cream); }
.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.review {
  background: var(--cream-2);
  padding: 32px 28px;
  border-radius: var(--radius);
  transition: all .3s var(--ease);
  position: relative;
}
.review:hover {
  transform: translateY(-4px);
  background: var(--pink);
}
.review.highlight {
  background: var(--ink); color: var(--cream);
  transform: scale(1.03);
}
.review.highlight p { color: rgba(250, 243, 231, 0.9); }
.stars { color: var(--gold); font-size: 18px; margin-bottom: 14px; letter-spacing: 2px; }
.review p {
  font-family: var(--font-display);
  font-size: 18px; line-height: 1.5;
  margin-bottom: 20px;
  font-weight: 400;
}
.review footer {
  display: flex; flex-direction: column;
  border-top: 1px solid rgba(58, 31, 15, 0.1);
  padding-top: 14px;
}
.review.highlight footer { border-color: rgba(250, 243, 231, 0.1); }
.review footer strong { font-size: 14px; }
.review footer span { font-size: 12px; opacity: 0.7; }

/* ============================================
   Newsletter
   ============================================ */
.news-card {
  background: linear-gradient(135deg, var(--pink) 0%, var(--gold) 100%);
  border-radius: var(--radius);
  padding: 64px;
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: 48px; align-items: center;
  position: relative;
  overflow: hidden;
}
.news-card::before {
  content: '🍪'; position: absolute;
  font-size: 280px; right: -40px; bottom: -80px;
  opacity: 0.15;
  transform: rotate(15deg);
}
.news-left h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1; font-weight: 600;
  letter-spacing: -1.5px;
  margin: 16px 0 12px;
}
.news-left h2 em { color: var(--ink); }
.news-left p { font-size: 16px; color: var(--ink-2); }
.news-form {
  display: flex; gap: 8px;
  position: relative; z-index: 1;
}
.news-form input {
  flex: 1; padding: 16px 22px;
  border: 2px solid var(--ink);
  background: var(--cream);
  border-radius: 999px;
  font-family: inherit; font-size: 15px;
  color: var(--ink);
  outline: none;
  transition: all .2s;
}
.news-form input:focus { background: white; }

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--choco); color: var(--cream);
  padding: 80px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}
.footer .logo-text { color: var(--cream); }
.footer p { color: rgba(250, 243, 231, 0.7); margin: 16px 0 24px; max-width: 320px; }
.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.socials .social {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(250, 243, 231, 0.1);
  display: grid; place-items: center;
  color: var(--cream);
  transition: all .25s var(--ease);
  position: relative;
  overflow: hidden;
}
.socials .social svg {
  width: 18px; height: 18px;
  transition: transform .25s var(--ease);
  position: relative; z-index: 1;
}
.socials .social::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--gold);
  transform: scale(0);
  border-radius: 50%;
  transition: transform .3s var(--ease);
  z-index: 0;
}
.socials .social:hover {
  color: var(--ink);
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(212, 160, 86, 0.3);
}
.socials .social:hover::before { transform: scale(1); }
.socials .social:hover svg { transform: scale(1.15) rotate(-8deg); }
.footer h4 {
  font-family: var(--font-display);
  font-size: 16px; font-weight: 600;
  margin-bottom: 18px;
  letter-spacing: 0.3px;
}
.footer a {
  display: block;
  color: rgba(250, 243, 231, 0.7);
  font-size: 14px;
  padding: 6px 0;
  transition: color .2s;
}
.footer a:hover { color: var(--gold); }
.footer-bottom {
  display: flex; justify-content: space-between;
  padding-top: 30px;
  border-top: 1px solid rgba(250, 243, 231, 0.1);
  font-size: 13px;
  color: rgba(250, 243, 231, 0.6);
}

/* ============================================
   Cart drawer
   ============================================ */
.drawer-backdrop {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(42, 24, 16, 0.5);
  backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden;
  transition: all .3s;
}
.drawer-backdrop.open { opacity: 1; visibility: visible; }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 100%; max-width: 440px;
  background: var(--cream);
  z-index: 201;
  transform: translateX(100%);
  transition: transform .4s var(--ease);
  display: flex; flex-direction: column;
  box-shadow: -20px 0 60px rgba(58, 31, 15, 0.2);
}
.drawer.open { transform: translateX(0); }

.drawer-head {
  padding: 24px;
  border-bottom: 1px solid rgba(58, 31, 15, 0.1);
  display: flex; align-items: center; justify-content: space-between;
}
.drawer-head h3 {
  font-family: var(--font-display);
  font-size: 24px; font-weight: 600;
}
.drawer-head h3 span { font-size: 14px; color: var(--ink-2); font-weight: 400; font-family: var(--font-body); }

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}
.empty-state {
  text-align: center;
  padding: 40px 0;
}
.empty-cookie {
  font-size: 64px;
  margin-bottom: 16px;
  display: inline-block;
  animation: wobble 3s ease-in-out infinite;
}
.empty-state h4 {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 600;
  margin-bottom: 8px;
}
.empty-state p { color: var(--ink-2); font-size: 14px; }

.cart-item {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(58, 31, 15, 0.08);
}
.cart-item:last-child { border-bottom: none; }
.cart-thumb {
  width: 56px; height: 56px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--cookie-color, var(--cream-2));
  box-shadow: inset -3px -3px 8px rgba(0,0,0,0.2);
  position: relative;
}
.cart-thumb::before, .cart-thumb::after {
  content: ''; position: absolute;
  background: #2a1810; border-radius: 50%;
}
.cart-thumb::before { width: 6px; height: 6px; top: 30%; left: 30%; }
.cart-thumb::after { width: 8px; height: 8px; top: 55%; left: 55%; }

.cart-info { flex: 1; }
.cart-info h5 {
  font-family: var(--font-display);
  font-size: 15px; font-weight: 600;
  margin-bottom: 2px;
}
.cart-info span { font-size: 13px; color: var(--ink-2); }
.qty {
  display: flex; align-items: center; gap: 8px;
  background: var(--cream-2);
  border-radius: 999px; padding: 4px;
}
.qty button {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--cream);
  font-weight: 600; font-size: 14px;
  transition: all .2s;
}
.qty button:hover { background: var(--ink); color: var(--cream); }
.qty span { min-width: 20px; text-align: center; font-size: 14px; font-weight: 600; }

.drawer-foot {
  padding: 24px;
  border-top: 1px solid rgba(58, 31, 15, 0.1);
  background: var(--cream-2);
}
.drawer-row {
  display: flex; justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.drawer-row span { font-size: 14px; color: var(--ink-2); }
.drawer-row strong {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 700;
}
.drawer-row.small { margin-bottom: 20px; }
.drawer-row.small span { font-size: 12px; }

/* ============================================
   Toast
   ============================================ */
.toast {
  position: fixed; bottom: 30px; left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--ink); color: var(--cream);
  padding: 14px 24px;
  border-radius: 999px;
  box-shadow: var(--shadow);
  font-size: 14px; font-weight: 500;
  z-index: 300;
  transition: transform .4s var(--ease);
  display: flex; align-items: center; gap: 8px;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ============================================
   Cookie consent
   ============================================ */
.consent {
  position: fixed; bottom: 20px; left: 20px; right: 20px;
  max-width: 520px;
  background: var(--ink); color: var(--cream);
  padding: 16px 20px;
  border-radius: 18px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  box-shadow: var(--shadow);
  z-index: 50;
  font-size: 14px;
  transform: translateY(150%);
  animation: slideUp .6s var(--ease) 1.2s forwards;
}
@keyframes slideUp { to { transform: translateY(0); } }
.consent.hide { animation: slideDown .4s var(--ease) forwards; }
@keyframes slideDown { to { transform: translateY(150%); } }
.consent > div { display: flex; gap: 8px; flex-shrink: 0; }
@media (max-width: 520px) {
  .consent { flex-direction: column; align-items: flex-start; }
  .consent > div { width: 100%; }
  .consent > div button { flex: 1; }
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 960px) {
  .hero { padding: 60px 0 80px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-stats { justify-content: center; gap: 28px; }
  .feature { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .about-grid { grid-template-columns: 1fr; gap: 60px; }
  .news-card { grid-template-columns: 1fr; padding: 40px 28px; text-align: center; }
  .news-form { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .section { padding: 80px 0; }
  .price { font-size: 40px; }
}
@media (max-width: 720px) {
  .nav-links {
    position: fixed; top: 76px; left: 0; right: 0;
    background: var(--cream);
    flex-direction: column; gap: 0;
    padding: 20px 24px 30px;
    border-bottom: 1px solid rgba(58,31,15,0.08);
    transform: translateY(-150%);
    transition: transform .3s var(--ease);
    box-shadow: 0 20px 30px rgba(58, 31, 15, 0.1);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid rgba(58, 31, 15, 0.06); }
  .nav-links a:last-child { border: none; }
  .nav-links a::after { display: none; }
  .menu-toggle { display: flex; }
  .hero-title { letter-spacing: -1.5px; }
  .hero-stats { flex-direction: column; gap: 20px; align-items: center; }
  .hero-stats div { align-items: center; }
  .floating-badge { top: 5%; right: 0; }
  .floating-tag { bottom: 5%; left: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .feature-list { grid-template-columns: 1fr; }
  .drawer { max-width: 100%; }
}
@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .hero-card { max-width: 320px; }
  .big-cookie { width: 130px; height: 130px; }
  .big-cookie.c2, .big-cookie.c3 { width: 110px; height: 110px; }
  .feature-cookie { width: 240px; height: 240px; }
  .about-imgs { height: 380px; }
  .product-grid { grid-template-columns: 1fr; }
}

/* Reveal animations */
.reveal { opacity: 0; transform: translateY(30px); transition: all .8s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }
