/* ============ NUTYBLISS — shared design system ============ */
@import url('https://fonts.googleapis.com/css2?family=Bagel+Fat+One&family=Fredoka:wght@400;500;600;700&display=swap');

:root {
  --bg:      #f7d9b8;
  --bg-2:    #fbe4cb;
  --paper:   #fff5e6;
  --ink:     #2a1608;
  --ink-soft:#6b3e1e;
  --purple:  #5b2a8a;
  --orange:  #f57e2a;
  --tomato:  #d83a26;
  --leaf:    #2f7a3a;
  --honey:   #e8b62a;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Fredoka', 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: 'Bagel Fat One', 'Fredoka', cursive; font-weight: 400; letter-spacing: 0; margin: 0 0 12px; }

/* ─── PROMO BAR ─── */
.promo-bar {
  background: var(--purple);
  color: #fff;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1px;
  text-align: center;
  padding: 9px;
  text-transform: uppercase;
}

/* ─── NAV ─── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 3px solid var(--ink);
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Bagel Fat One', cursive;
  font-size: 26px;
  color: var(--purple);
  text-shadow: 2px 2px 0 var(--orange);
  text-decoration: none;
}
.nav-logo-icon {
  width: 40px; height: 40px;
  background: var(--orange);
  border: 2.5px solid var(--ink);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.nav-links {
  display: flex;
  gap: 28px;
  font-family: 'Fredoka', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.nav-links a {
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--orange); border-color: var(--orange); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-cart {
  position: relative;
  border: 2.5px solid var(--ink);
  background: var(--purple);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-family: 'Fredoka', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 3px 3px 0 var(--ink);
  transition: all 0.15s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-cart:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.cart-count {
  background: var(--orange);
  color: #fff;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  font-size: 11px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
}
.cart-count:empty { display: none; }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 22px;
  border-radius: 999px;
  font-family: 'Fredoka', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--ink);
  transition: all 0.15s ease;
  box-shadow: 2px 2px 0 var(--ink);
  cursor: pointer;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.btn-primary { background: var(--orange); color: #fff; }
.btn-purple  { background: var(--purple); color: #fff; }
.btn-ghost   { background: var(--paper); color: var(--ink); }
.btn-leaf    { background: var(--leaf); color: #fff; }
.btn-sm { padding: 8px 16px; font-size: 12px; }
.btn-full { width: 100%; justify-content: center; }

/* ─── EYEBROW ─── */
.eyebrow {
  font-family: 'Fredoka', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--purple);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.eyebrow .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--orange);
  border: 1.5px solid var(--ink);
  flex-shrink: 0;
}

/* ─── SECTION HEADER ─── */
.section-header { margin-bottom: 44px; }
.section-title {
  font-family: 'Bagel Fat One', cursive;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1;
  letter-spacing: 0;
  margin: 8px 0 0;
  color: var(--purple);
}
.section-note {
  font-family: 'Fredoka', sans-serif;
  font-size: 14px;
  font-weight: 500;
  margin-top: 14px;
  color: var(--ink-soft);
}

/* ─── PAGE WRAPPER ─── */
.page-wrap { max-width: 1300px; margin: 0 auto; padding: 80px 32px; }
.page-wrap-sm { max-width: 860px; margin: 0 auto; padding: 80px 32px; }

/* ─── PRODUCT CARD ─── */
.product-card {
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: 20px;
  padding: 24px 20px 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
}
.product-card:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.product-badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--tomato); color: #fff;
  font-family: 'Bagel Fat One', cursive;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  transform: rotate(-6deg);
}
.product-img {
  width: 160px; height: 160px;
  display: flex; align-items: center; justify-content: center;
  margin: 12px 0 16px;
}
.product-jar {
  width: 140px; height: 140px;
  border-radius: 50% 50% 45% 45%;
  border: 3px solid var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Bagel Fat One', cursive;
  font-size: 13px;
  color: #fff;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.3s ease;
  position: relative;
  overflow: hidden;
}
.product-card:hover .product-jar { transform: translateY(-6px) rotate(2deg); }
.product-jar::after {
  content: '🥜';
  position: absolute;
  bottom: 8px;
  font-size: 28px;
}
.product-stars { color: var(--honey); font-size: 13px; letter-spacing: 1px; margin-bottom: 6px; }
.product-name { font-family: 'Bagel Fat One', cursive; font-size: 18px; margin-bottom: 4px; color: var(--ink); line-height: 1.1; }
.product-size { font-size: 12px; font-weight: 600; color: var(--ink-soft); margin-bottom: 10px; }
.product-price-row { display: flex; gap: 8px; align-items: baseline; margin-bottom: 14px; justify-content: center; }
.product-orig { text-decoration: line-through; color: var(--ink-soft); font-size: 13px; font-weight: 500; }
.product-sale { font-family: 'Bagel Fat One', cursive; font-size: 22px; color: var(--orange); }
.product-add {
  width: 100%; padding: 12px;
  background: var(--purple); color: #fff;
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  font-family: 'Fredoka', sans-serif;
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.8px; text-transform: uppercase;
  transition: background 0.15s;
  cursor: pointer;
}
.product-add:hover { background: var(--orange); }
.product-add.added { background: var(--leaf); }

/* ─── FLAVOR COLORS ─── */
.jar-classic   { background: linear-gradient(160deg, #e8b62a, #c8891a); }
.jar-crunchy   { background: linear-gradient(160deg, #d4a017, #a87010); }
.jar-choco     { background: linear-gradient(160deg, #5c3317, #3a1f0a); }
.jar-chocoChip { background: linear-gradient(160deg, #7b4420, #4a2510); }
.jar-honey     { background: linear-gradient(160deg, #f0c040, #d4a020); }
.jar-protein   { background: linear-gradient(160deg, #3a7a3a, #1e4e1e); }

/* ─── TOAST ─── */
.toast {
  position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--purple); color: #fff;
  padding: 12px 24px; border-radius: 999px;
  font-family: 'Fredoka', sans-serif; font-size: 14px; font-weight: 600;
  border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
  white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ─── FOOTER ─── */
.footer { background: var(--ink); color: var(--bg); padding: 0; }
.footer-top {
  background: var(--purple);
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  padding: 20px 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  align-items: center;
}
.footer-badge-item {
  display: flex; align-items: center; gap: 8px;
  color: #fff;
  font-family: 'Fredoka', sans-serif; font-size: 13px; font-weight: 600;
  letter-spacing: 0.6px; text-transform: uppercase;
}
.footer-badge-icon {
  width: 32px; height: 32px;
  background: var(--orange); color: #fff;
  border: 2px solid var(--ink); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
}
.footer-main { padding: 48px 32px 24px; }
.footer-grid {
  max-width: 1300px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
}
.footer h4 {
  font-family: 'Fredoka', sans-serif;
  font-size: 12px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--orange); margin: 0 0 14px;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer ul a { text-decoration: none; opacity: 0.85; font-size: 14px; font-weight: 500; color: var(--bg); }
.footer ul a:hover { color: var(--orange); opacity: 1; }
.footer-brand-sub { font-family: 'Fredoka', sans-serif; font-size: 13px; font-weight: 500; margin-top: 10px; opacity: 0.78; max-width: 280px; line-height: 1.55; }
.footer-socials { display: flex; gap: 10px; margin-top: 16px; }
.footer-social {
  width: 38px; height: 38px; border-radius: 50%;
  border: 2px solid var(--orange); background: transparent;
  color: var(--orange); display: flex; align-items: center; justify-content: center;
  text-decoration: none; font-size: 15px;
  transition: all 0.15s;
}
.footer-social:hover { background: var(--orange); color: var(--ink); }
.footer-base {
  max-width: 1300px; margin: 28px auto 0; padding: 18px 0 0;
  border-top: 1px solid rgba(245,234,208,0.18);
  display: flex; justify-content: space-between;
  font-family: 'Fredoka', sans-serif; font-size: 12px;
  font-weight: 500; letter-spacing: 1px; opacity: 0.65;
  flex-wrap: wrap; gap: 12px;
}

/* ─── WHATSAPP FLOAT ─── */
.wa-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 9999;
  display: flex; align-items: center; gap: 10px;
  background: #25d366; color: #fff;
  border: 2.5px solid var(--ink); border-radius: 999px;
  padding: 12px 20px 12px 14px;
  box-shadow: 4px 4px 0 var(--ink);
  text-decoration: none;
  font-family: 'Fredoka', sans-serif; font-size: 15px; font-weight: 700;
  transition: transform 0.15s, box-shadow 0.15s;
}
.wa-float:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--ink); background: #1ebe5d; }
.wa-float svg { flex-shrink: 0; }
@media (max-width: 600px) {
  .wa-float { padding: 12px; bottom: 20px; right: 20px; }
  .wa-float span { display: none; }
}

/* ─── FORM STYLES ─── */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block; font-family: 'Fredoka', sans-serif;
  font-size: 13px; font-weight: 700; letter-spacing: 0.5px;
  text-transform: uppercase; color: var(--ink-soft); margin-bottom: 6px;
}
.form-input {
  width: 100%; padding: 13px 16px;
  border: 2.5px solid var(--ink); border-radius: 12px;
  background: var(--paper); color: var(--ink);
  font-family: 'Fredoka', sans-serif; font-size: 15px; font-weight: 500;
  outline: none; transition: border-color 0.15s, box-shadow 0.15s;
}
.form-input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(245,126,42,0.18); }
select.form-input { appearance: none; cursor: pointer; }
textarea.form-input { resize: vertical; min-height: 120px; }
.form-error { color: var(--tomato); font-size: 12px; font-weight: 600; margin-top: 4px; display: none; }
.form-error.show { display: block; }

/* ─── STARS ─── */
.star-rating { display: flex; gap: 4px; }
.star-rating span {
  font-size: 24px; cursor: pointer;
  color: rgba(42,22,8,0.2);
  transition: color 0.1s;
}
.star-rating span.active { color: var(--honey); }

/* ─── LOADING SPINNER ─── */
.spinner {
  width: 40px; height: 40px; margin: 40px auto;
  border: 4px solid rgba(91,42,138,0.15);
  border-top-color: var(--purple);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── EMPTY STATE ─── */
.empty-state {
  text-align: center; padding: 60px 20px;
}
.empty-state .empty-icon { font-size: 64px; margin-bottom: 16px; }
.empty-state h3 { font-family: 'Bagel Fat One', cursive; font-size: 28px; color: var(--purple); margin-bottom: 10px; }
.empty-state p { color: var(--ink-soft); font-size: 16px; font-weight: 500; margin-bottom: 24px; }

/* ─── TAGS ─── */
.tag {
  display: inline-flex; align-items: center;
  background: var(--paper); color: var(--ink);
  border: 2px solid var(--ink); padding: 5px 12px;
  border-radius: 999px; font-family: 'Fredoka', sans-serif;
  font-size: 11px; font-weight: 700; letter-spacing: 0.5px;
  box-shadow: 2px 2px 0 var(--ink);
}
.tag-purple { background: var(--purple); color: #fff; }
.tag-orange { background: var(--orange); color: #fff; }
.tag-leaf   { background: var(--leaf); color: #fff; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .page-wrap, .page-wrap-sm { padding: 48px 20px; }
  .footer-grid { grid-template-columns: 1fr; }
}
