@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@500;600;700&family=Jost:wght@400;500;600&display=swap');

:root {
  --sage: #b7bb8e;
  --sage-dark: #9a9e70;
  --wine: #6d1f2b;
  --wine-light: #8a2c39;
  --cream: #f6f2e7;
  --cream-2: #efe8d6;
  --ink: #2c2620;
  --ink-soft: #5c5348;
  --terracotta: #c1552c;
  --radius: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes popIn {
  0% { transform: scale(0.8); opacity: 0; }
  60% { transform: scale(1.05); }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes cartBump {
  0%, 100% { transform: scale(1); }
  30% { transform: scale(1.35) rotate(-6deg); }
  60% { transform: scale(0.95) rotate(3deg); }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Jost', sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

h1, h2, h3, .display {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  margin: 0;
  color: var(--wine);
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Announcement bar ---------- */
.announce {
  background: var(--ink);
  color: var(--cream-2);
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  padding: 9px 0;
  letter-spacing: 0.02em;
}
.announce i { color: var(--sage); vertical-align: -2px; margin-right: 6px; }
.announce-rotator {
  position: relative;
  height: 18px;
}
.announce-msg {
  position: absolute;
  left: 0; right: 0;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}
.announce-msg.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ---------- WhatsApp float ---------- */
@keyframes waPulse {
  0% { box-shadow: 0 10px 24px rgba(0,0,0,0.22), 0 0 0 0 rgba(47,174,91,0.55); }
  70% { box-shadow: 0 10px 24px rgba(0,0,0,0.22), 0 0 0 14px rgba(47,174,91,0); }
  100% { box-shadow: 0 10px 24px rgba(0,0,0,0.22), 0 0 0 0 rgba(47,174,91,0); }
}
.wa-float {
  position: fixed;
  bottom: 26px; right: 26px;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #2fae5b;
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.22);
  z-index: 50;
  transition: transform 0.15s;
  animation: waPulse 2.6s ease-out infinite;
}
.wa-float:hover { transform: scale(1.1); animation-play-state: paused; }

/* ---------- Testimonials ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.testimonial-card {
  background: white;
  border: 1px solid var(--cream-2);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.testimonial-card i { color: var(--sage-dark); font-size: 24px; margin-bottom: 12px; display: block; }
.testimonial-card p { font-size: 14px; color: var(--ink-soft); margin-bottom: 14px; }
.t-name { font-family: 'Fredoka', sans-serif; font-size: 13px; color: var(--wine); }

/* ---------- Header ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--cream);
  border-bottom: 2px solid var(--cream-2);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo img { height: 46px; width: auto; }
nav { display: flex; gap: 32px; }
nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
}
nav a:hover { color: var(--wine); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.cart-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--wine);
  cursor: pointer;
  margin-right: 10px;
}
.icon-btn {
  position: relative;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--wine);
  font-size: 20px;
  transition: background 0.15s;
}
.icon-btn:hover { background: var(--cream-2); }
.icon-btn.bump i { animation: cartBump 0.5s ease; }
.cart-count {
  position: absolute;
  top: 0; right: 0;
  background: var(--terracotta);
  color: white;
  font-size: 11px;
  font-weight: 600;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Hero ---------- */
.hero {
  background: var(--sage);
  padding: 72px 0 0;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 40px;
}
.hero-text .eyebrow {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wine);
  font-weight: 600;
  margin-bottom: 14px;
  display: block;
}
.hero-text h1 {
  font-size: 52px;
  line-height: 1.08;
  margin-bottom: 18px;
}
.hero-text p {
  font-size: 17px;
  color: #40402a;
  max-width: 440px;
  margin-bottom: 28px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-primary {
  background: var(--wine);
  color: var(--cream);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(109,31,43,0.3); }
.btn-outline {
  background: transparent;
  color: var(--wine);
  border: 2px solid var(--wine);
}
.btn-outline:hover { background: rgba(109,31,43,0.08); }
.hero-ctas { display: flex; gap: 14px; }
.hero-visual {
  position: relative;
  align-self: end;
}
.hero-visual img {
  border-radius: var(--radius) var(--radius) 0 0;
  width: 100%;
  height: 460px;
  object-fit: cover;
  object-position: top;
  animation: floatY 6s ease-in-out infinite;
  will-change: transform;
}

/* ---------- Marquee ---------- */
.marquee {
  background: var(--wine);
  color: var(--cream);
  padding: 12px 0;
  overflow: hidden;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  gap: 48px;
  animation: scroll 28s linear infinite;
  font-family: 'Fredoka', sans-serif;
  font-size: 14px;
  letter-spacing: 0.04em;
}
.marquee-track span { opacity: 0.92; }
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Sections ---------- */
section { padding: 80px 0; }
.section-head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 48px;
}
.section-head .eyebrow {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 600;
  display: block;
  margin-bottom: 10px;
}
.section-head h2 { font-size: 34px; margin-bottom: 10px; }
.section-head p { color: var(--ink-soft); }

/* ---------- Filters ---------- */
.filters {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.filter-chip {
  padding: 9px 20px;
  border-radius: 999px;
  border: 2px solid var(--cream-2);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  background: white;
  transition: all 0.15s;
}
.filter-chip.active {
  background: var(--wine);
  border-color: var(--wine);
  color: var(--cream);
}
.filter-chip:hover:not(.active) { border-color: var(--wine); color: var(--wine); }

/* ---------- Product grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--cream-2);
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), box-shadow 0.35s;
}
.card:hover { transform: translateY(-8px) rotate(-0.5deg); box-shadow: 0 20px 40px rgba(44,38,32,0.14); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s cubic-bezier(0.16,1,0.3,1); }
.card:hover .card-media img { transform: scale(1.08) rotate(0.5deg); }
.card-media {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--cream-2);
}
.card-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--terracotta);
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
}
.card-fav {
  position: absolute;
  top: 12px; right: 12px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.85);
  display: flex; align-items: center; justify-content: center;
  color: var(--wine);
  font-size: 16px;
  border: none;
  cursor: pointer;
  z-index: 2;
  transition: transform 0.2s;
}
.card-fav:hover { transform: scale(1.1); }
.card-fav.is-active { color: white; background: var(--terracotta); }
.hidden { display: none !important; }
.img-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px; height: 30px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.85);
  color: var(--wine);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s;
}
.img-nav:hover { background: rgba(255,255,255,0.98); }
.img-nav.prev { left: 8px; }
.img-nav.next { right: 8px; }
.img-dots {
  position: absolute;
  bottom: 10px; left: 0; right: 0;
  display: flex; align-items: center; justify-content: center; gap: 5px;
  z-index: 2;
}
.img-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.6);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.img-dot.active { background: white; transform: scale(1.3); }
.card-body { padding: 16px 18px 20px; }
.card-body .cat { font-size: 12px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.05em; }
.card-body h3 { font-family: 'Jost', sans-serif; font-weight: 600; font-size: 16px; color: var(--ink); margin: 4px 0 8px; }
.swatches { display: flex; gap: 8px; margin-bottom: 8px; }
.swatch {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2px solid transparent;
  box-shadow: 0 0 0 1px var(--cream-2) inset;
  transition: box-shadow 0.15s, transform 0.15s;
}
.swatch:hover { transform: scale(1.2); }
.swatch.active { box-shadow: 0 0 0 2px var(--wine); animation: popIn 0.3s ease; }
.btn:active { transform: scale(0.96); }
.add-btn:active { transform: scale(0.85) rotate(90deg); }
.variant-label { font-size: 12px; color: var(--ink-soft); margin-bottom: 4px; }
.card-price { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.card-price .price { font-family: 'Fredoka', sans-serif; font-size: 18px; color: var(--wine); }
.installments { font-size: 12px; color: var(--ink-soft); margin-top: 2px; }
.add-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--cream-2);
  color: var(--wine);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  transition: background 0.15s;
}
.add-btn:hover { background: var(--wine); color: var(--cream); }

/* ---------- Custom order banner ---------- */
.custom-banner {
  background: var(--wine);
  border-radius: 28px;
  color: var(--cream);
  padding: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  position: relative;
  overflow: hidden;
}
.custom-banner::before {
  content: '';
  position: absolute;
  width: 340px; height: 340px;
  border-radius: 50%;
  background: var(--wine-light);
  right: -120px; top: -120px;
  opacity: 0.5;
}
.custom-banner .eyebrow {
  font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--sage); font-weight: 600; display: block; margin-bottom: 12px;
}
.custom-banner h2 { color: var(--cream); font-size: 32px; margin-bottom: 14px; }
.custom-banner p { color: #e8dfd0; max-width: 420px; margin-bottom: 26px; }
.custom-steps { display: flex; flex-direction: column; gap: 16px; position: relative; z-index: 1; }
.custom-step { display: flex; gap: 14px; align-items: flex-start; }
.custom-step .num {
  width: 30px; height: 30px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--sage);
  color: var(--wine);
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
}
.custom-step p { margin: 0; color: var(--cream); font-size: 15px; }

/* ---------- About ---------- */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.about-media { position: relative; }
.about-media img { border-radius: var(--radius); width: 100%; }
.about-text .eyebrow { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--terracotta); font-weight: 600; display: block; margin-bottom: 12px; }
.about-text h2 { font-size: 30px; margin-bottom: 16px; }
.about-text p { color: var(--ink-soft); margin-bottom: 16px; }

/* ---------- Newsletter ---------- */
.newsletter { background: var(--wine); padding: 52px 0; }
.newsletter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.newsletter h2 { color: var(--cream); font-size: 24px; margin-bottom: 6px; }
.newsletter p { color: #e8dfd0; font-size: 14px; margin: 0; }
.newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter-form input {
  padding: 13px 18px;
  border-radius: 999px;
  border: none;
  min-width: 260px;
  font-family: inherit;
  font-size: 14px;
}
.newsletter-form .btn-primary { background: var(--sage); color: var(--wine); }

/* ---------- Footer ---------- */
footer { background: var(--ink); color: var(--cream-2); padding: 56px 0 28px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-grid h4 { color: var(--cream); font-family: 'Jost', sans-serif; font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px; }
.footer-grid a, .footer-grid p { color: #b8b1a4; font-size: 14px; display: block; margin-bottom: 10px; }
.footer-bottom { border-top: 1px solid #423b31; padding-top: 22px; font-size: 13px; color: #8c8477; display: flex; justify-content: space-between; }

/* ---------- Cart drawer ---------- */
.overlay {
  position: fixed; inset: 0;
  background: rgba(44,38,32,0.45);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.overlay.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 420px;
  max-width: 92vw;
  background: var(--cream);
  z-index: 91;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}
.drawer.open { transform: translateX(0); }
.drawer-head {
  padding: 22px 24px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 2px solid var(--cream-2);
}
.drawer-head h3 { font-size: 20px; }
.drawer-items { flex: 1; overflow-y: auto; padding: 12px 24px; }
.drawer-item { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--cream-2); }
.drawer-item img { width: 70px; height: 88px; object-fit: cover; border-radius: 10px; }
.drawer-item-info { flex: 1; }
.drawer-item-info .name { font-weight: 500; font-size: 14px; margin-bottom: 2px; }
.drawer-item-info .variant { font-size: 12px; color: var(--ink-soft); margin-bottom: 8px; }
.qty-row { display: flex; align-items: center; gap: 10px; }
.qty-btn { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--cream-2); background: white; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.drawer-item-price { font-family: 'Fredoka', sans-serif; color: var(--wine); font-size: 15px; white-space: nowrap; }
.remove-btn { font-size: 12px; color: var(--ink-soft); text-decoration: underline; margin-top: 6px; }
.drawer-empty { padding: 60px 20px; text-align: center; color: var(--ink-soft); }
.drawer-empty i { font-size: 40px; color: var(--cream-2); margin-bottom: 12px; display: block; }
.drawer-foot { padding: 20px 24px 26px; border-top: 2px solid var(--cream-2); }
.shipping-note {
  display: flex; align-items: center; gap: 8px;
  background: var(--cream-2); color: var(--ink-soft);
  font-size: 13px; padding: 10px 14px; border-radius: 10px; margin-bottom: 16px;
}
.shipping-note.success { background: #e5ecd6; color: #3f5a1f; }
.shipping-note i { font-size: 16px; }
.subtotal-row { display: flex; justify-content: space-between; margin-bottom: 16px; font-size: 15px; }
.subtotal-row .amt { font-family: 'Fredoka', sans-serif; font-size: 20px; color: var(--wine); }
.drawer-foot .btn { width: 100%; justify-content: center; }

/* ---------- Checkout modal ---------- */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(44,38,32,0.5);
  z-index: 100;
  display: none;
  align-items: center; justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--cream);
  border-radius: 24px;
  max-width: 920px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.modal-form { padding: 40px; }
.modal-summary { background: var(--cream-2); padding: 40px; border-radius: 0 24px 24px 0; }
.modal-close { position: absolute; top: 20px; right: 20px; font-size: 22px; color: var(--ink-soft); background: white; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.modal-form h2 { font-size: 24px; margin-bottom: 4px; }
.modal-form .sub { color: var(--ink-soft); font-size: 14px; margin-bottom: 26px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.field { margin-bottom: 12px; }
.field label { font-size: 13px; font-weight: 500; color: var(--ink-soft); display: block; margin-bottom: 6px; }
.field input, .field select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--cream-2);
  background: white;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
}
.field input:focus, .field select:focus { outline: none; border-color: var(--wine); }
.pay-methods { display: flex; gap: 10px; margin: 18px 0 24px; }
.pay-method {
  flex: 1;
  border: 1.5px solid var(--cream-2);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  background: white;
}
.pay-method.active { border-color: var(--wine); color: var(--wine); background: #fbf5ee; }
.pay-method i { display: block; font-size: 20px; margin-bottom: 6px; }
.modal-summary h3 { font-size: 16px; margin-bottom: 18px; }
.summary-item { display: flex; gap: 12px; margin-bottom: 16px; align-items: center; }
.summary-item img { width: 52px; height: 64px; object-fit: cover; border-radius: 8px; }
.summary-item .name { font-size: 13px; font-weight: 500; }
.summary-item .qty { font-size: 12px; color: var(--ink-soft); }
.summary-item .price { margin-left: auto; font-family: 'Fredoka', sans-serif; color: var(--wine); font-size: 14px; }
.summary-line { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 10px; color: var(--ink-soft); }
.summary-total { display: flex; justify-content: space-between; font-size: 18px; margin-top: 14px; padding-top: 14px; border-top: 2px solid #ddd3c0; }
.summary-total .amt { font-family: 'Fredoka', sans-serif; color: var(--wine); }
.demo-note {
  background: #fbf0d9; color: #7a5a12; font-size: 12px; padding: 10px 14px;
  border-radius: 10px; margin-top: 18px; display: flex; gap: 8px; align-items: flex-start;
}

/* ---------- Cart label (header) ---------- */

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: var(--cream); padding: 14px 24px; border-radius: 999px;
  font-size: 14px; font-weight: 500; display: flex; align-items: center; gap: 10px;
  opacity: 0; pointer-events: none; transition: all 0.3s; z-index: 200;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast i { color: var(--sage); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  nav { display: none; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-text h1 { font-size: 38px; }
  .hero-visual img { height: 320px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .custom-banner { grid-template-columns: 1fr; padding: 36px; }
  .about { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .modal { grid-template-columns: 1fr; }
  .modal-summary { border-radius: 0; }
}
