/* ── Custom properties ─────────────────────────────────────── */
:root {
  --radius: 1rem;
  --background: oklch(0.97 0.018 80);
  --foreground: oklch(0.25 0.04 45);
  --card: oklch(0.995 0.006 80);
  --card-foreground: oklch(0.25 0.04 45);
  --primary: oklch(0.33 0.06 45);
  --primary-foreground: oklch(0.97 0.018 80);
  --secondary: oklch(0.92 0.035 75);
  --secondary-foreground: oklch(0.3 0.05 45);
  --muted: oklch(0.93 0.025 78);
  --muted-foreground: oklch(0.48 0.04 50);
  --accent: oklch(0.72 0.13 65);
  --accent-foreground: oklch(0.22 0.04 45);
  --border: oklch(0.87 0.03 70);
  --cocoa: oklch(0.22 0.04 40);
  --cocoa-foreground: oklch(0.95 0.025 80);
  --caramel: oklch(0.74 0.13 68);
  --whatsapp: oklch(0.62 0.16 150);
  --whatsapp-foreground: oklch(0.99 0 0);
  --gradient-cocoa: radial-gradient(ellipse at 70% 30%, oklch(0.36 0.07 50), oklch(0.18 0.035 40) 70%);
  --shadow-warm: 0 20px 50px -20px oklch(0.3 0.06 45 / 0.45);
  --font-display: "Fraunces", Georgia, serif;
  --font-sans: "Outfit", system-ui, sans-serif;
}

/* ── Base ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; border-color: var(--border); }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--font-display); margin: 0; line-height: 1.05; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; border: none; background: none; padding: 0; }

/* ── Animations ─────────────────────────────────────────────── */
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-14px); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}
.animate-float { animation: float-y 6s ease-in-out infinite; }
.animate-rise  { animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }

/* ── Layout ─────────────────────────────────────────────────── */
.site-root { min-height: 100vh; overflow-x: hidden; padding-bottom: 5rem; }
.container  { max-width: 72rem; margin: 0 auto; padding: 0 1rem; }
.section    { padding: 5rem 0; }

/* ── Section title ──────────────────────────────────────────── */
.section-title           { margin-bottom: 2.5rem; }
.section-title.centered  { text-align: center; }
.section-title .eyebrow  {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
}
.section-title h2 {
  margin-top: 0.5rem;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 9999px;
  padding: 0.625rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: transform 0.15s, opacity 0.15s;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary         { background: var(--primary); color: var(--primary-foreground); box-shadow: var(--shadow-warm); }
.btn-primary:hover   { opacity: 0.92; transform: scale(1.02); }
.btn-caramel         { background: var(--caramel); color: var(--accent-foreground); }
.btn-caramel:hover   { transform: scale(1.05); }
.btn-whatsapp        { background: var(--whatsapp); color: var(--whatsapp-foreground); }
.btn-whatsapp:hover  { transform: scale(1.05); }
.btn-outline         { background: transparent; border: 1px solid color-mix(in oklch, var(--cocoa-foreground) 40%, transparent); }
.btn-outline:hover   { background: color-mix(in oklch, var(--cocoa-foreground) 10%, transparent); }
.btn-ghost-caramel   { background: transparent; border: 1px solid color-mix(in oklch, var(--caramel) 60%, transparent); color: var(--caramel); }
.btn-ghost-caramel:hover { background: color-mix(in oklch, var(--caramel) 15%, transparent); }
.btn-ghost-primary   { background: transparent; border: 1px solid color-mix(in oklch, var(--primary) 30%, transparent); color: var(--primary); }
.btn-ghost-primary:hover { background: color-mix(in oklch, var(--primary) 10%, transparent); }
.btn-lg              { padding: 0.75rem 1.5rem; font-size: 1rem; }
.btn[aria-disabled="true"] { pointer-events: none; background: var(--muted); color: var(--muted-foreground); box-shadow: none; }

/* ── Nav ────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 40;
  border-bottom: 1px solid color-mix(in oklch, var(--border) 60%, transparent);
  background: color-mix(in oklch, var(--background) 85%, transparent);
  backdrop-filter: blur(8px);
}
.site-header-inner {
  max-width: 72rem; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.5rem 1rem;
}
.nav-logo img      { height: 2.75rem; width: auto; mix-blend-mode: multiply; }
.nav-links         { display: none; list-style: none; margin: 0; padding: 0; gap: 1.75rem; font-size: 0.875rem; font-weight: 500; }
.nav-links a:hover { color: var(--accent); transition: color 0.15s; }
.nav-actions       { display: flex; align-items: center; gap: 0.5rem; }
.cart-badge {
  display: inline-block; margin-left: 0.5rem;
  background: var(--caramel); color: var(--accent-foreground);
  border-radius: 9999px; padding: 0 0.5rem;
  font-size: 0.75rem; font-weight: 700;
}

/* ── Offer banner ───────────────────────────────────────────── */
.offer-banner {
  background: var(--caramel);
  padding: 0.5rem 1rem;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent-foreground);
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero       { position: relative; background-image: var(--gradient-cocoa); color: var(--cocoa-foreground); }
.hero-inner {
  max-width: 72rem; margin: 0 auto;
  display: grid; align-items: center; gap: 2rem;
  padding: 3.5rem 1rem;
}
.hero-eyebrow {
  display: inline-block;
  border: 1px solid color-mix(in oklch, var(--caramel) 50%, transparent);
  padding: 0.25rem 0.75rem; border-radius: 9999px;
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--caramel); margin-bottom: 1rem;
}
.hero-title          { font-size: clamp(2.5rem, 8vw, 4.5rem); font-weight: 900; line-height: 1.02; }
.hero-title .italic  { font-style: italic; color: var(--caramel); }
.hero-subtitle       { margin-top: 1.25rem; max-width: 28rem; font-size: 1.125rem; opacity: 0.85; }
.hero-tagline        { margin-top: 0.5rem; font-family: var(--font-display); font-style: italic; color: var(--caramel); }
.hero-actions        { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-img-wrap       { position: relative; }
.hero-img-wrap img   { width: 100%; max-width: 28rem; margin: 0 auto; border-radius: 2rem; box-shadow: var(--shadow-warm); }
.hero-img-caption    {
  position: absolute; bottom: -1rem; left: 1rem;
  background: var(--card); color: var(--card-foreground);
  border-radius: 1rem; padding: 0.75rem 1rem; box-shadow: var(--shadow-warm);
}
.hero-img-caption .sub  { font-size: 0.75rem; color: var(--muted-foreground); }
.hero-img-caption .main { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; }

/* ── Menu ───────────────────────────────────────────────────── */
.menu-section  { max-width: 72rem; margin: 0 auto; padding: 5rem 1rem; }
.product-grid  { display: grid; gap: 1.5rem; }
.product-card  {
  background: var(--card); border-radius: 1.5rem;
  overflow: hidden; box-shadow: var(--shadow-warm);
  transition: transform 0.15s;
}
.product-card:hover              { transform: translateY(-4px); }
.product-card-image              { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--muted); }
.product-card-image img          { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; display: block; }
.product-card:hover .product-card-image img { transform: scale(1.05); }
.product-tag {
  position: absolute; top: 0.75rem; left: 0.75rem;
  background: var(--primary); color: var(--primary-foreground);
  border-radius: 9999px; padding: 0.25rem 0.75rem; font-size: 0.75rem; font-weight: 600;
}
.product-price {
  position: absolute; top: 0.75rem; right: 0.75rem;
  background: var(--caramel); color: var(--accent-foreground);
  border-radius: 9999px; padding: 0.25rem 0.75rem;
  font-family: var(--font-display); font-size: 1.125rem; font-weight: 700;
}
.product-body   { padding: 1.25rem; }
.product-body h3 { font-size: 1.5rem; font-weight: 700; }
.product-body p  { margin-top: 0.25rem; font-size: 0.875rem; color: var(--muted-foreground); }
.product-actions { margin-top: 1rem; display: flex; align-items: center; gap: 0.5rem; }
.qty-stepper     { display: flex; align-items: center; gap: 0.75rem; border: 1px solid var(--border); border-radius: 9999px; padding: 0.25rem 0.5rem; }
.qty-btn         { width: 2rem; height: 2rem; border-radius: 9999px; background: var(--secondary); font-weight: 700; font-size: 1.125rem; display: flex; align-items: center; justify-content: center; }
.qty-btn:hover   { background: var(--muted); }
.qty-value       { width: 1.25rem; text-align: center; font-weight: 600; }
.product-wa      { margin-left: auto; }

/* ── Why Us ─────────────────────────────────────────────────── */
.why-grid       { display: grid; gap: 1rem; }
.why-card       { background: var(--card); border-radius: 1.5rem; padding: 1.5rem; text-align: center; box-shadow: var(--shadow-warm); }
.why-card .icon { font-size: 2.5rem; }
.why-card p     { margin-top: 0.75rem; font-weight: 600; }

/* ── Story ──────────────────────────────────────────────────── */
.story-inner       { max-width: 72rem; margin: 0 auto; display: grid; align-items: center; gap: 2.5rem; padding: 5rem 1rem; }
.story-inner img   { width: 100%; border-radius: 2rem; object-fit: cover; box-shadow: var(--shadow-warm); }
.story-eyebrow     { font-size: 0.875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.2em; color: var(--accent); }
.story-text h2     { margin-top: 0.5rem; font-size: clamp(2rem, 5vw, 3rem); font-weight: 900; }
.story-text p      { margin-top: 1.25rem; font-size: 1.125rem; color: var(--muted-foreground); }

/* ── Reviews ────────────────────────────────────────────────── */
.reviews-section  { background-image: var(--gradient-cocoa); color: var(--cocoa-foreground); padding: 5rem 0; }
.reviews-header   { text-align: center; }
.reviews-eyebrow  { font-size: 0.875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.2em; color: var(--caramel); }
.reviews-header h2 { margin-top: 0.5rem; font-size: clamp(2rem, 5vw, 3rem); font-weight: 900; }
.reviews-grid     { display: grid; gap: 1.5rem; margin-top: 2.5rem; }
.review-card      { background: color-mix(in oklch, var(--cocoa-foreground) 10%, transparent); border-radius: 1.5rem; padding: 1.5rem; text-align: left; }
.review-stars     { color: var(--caramel); }
.review-card p    { margin-top: 0.75rem; }
.review-card footer { margin-top: 1rem; font-weight: 600; }
.reviews-empty    { max-width: 32rem; margin: 1.5rem auto 0; opacity: 0.8; text-align: center; }
.reviews-cta      { margin-top: 2rem; text-align: center; }

/* ── Find Us ────────────────────────────────────────────────── */
.find-inner     { max-width: 72rem; margin: 0 auto; display: grid; gap: 2rem; padding: 5rem 1rem; }
.find-name      { font-weight: 600; }
.find-address   { color: var(--muted-foreground); }
.find-hours     { margin-top: 0.5rem; font-size: 0.875rem; color: var(--muted-foreground); }
.find-actions   { margin-top: 1.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.find-maps-link { font-size: 0.875rem; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.find-maps-link:hover { color: var(--accent); }
.qr-card        { margin-top: 1.5rem; display: flex; align-items: center; gap: 1rem; background: var(--card); border-radius: 1.5rem; padding: 1rem; box-shadow: var(--shadow-warm); }
.qr-card img    { width: 6.5rem; height: 6.5rem; flex-shrink: 0; border-radius: 0.75rem; }
.qr-info        { flex: 1; min-width: 0; }
.qr-title       { font-weight: 600; }
.qr-desc        { margin-top: 0.125rem; font-size: 0.875rem; color: var(--muted-foreground); }
.qr-note        { margin-top: 0.375rem; font-size: 0.75rem; color: var(--muted-foreground); }
.find-map       { width: 100%; height: 20rem; border-radius: 1.5rem; border: 1px solid var(--border); box-shadow: var(--shadow-warm); display: block; }

/* ── Gallery ────────────────────────────────────────────────── */
.gallery-section { background: var(--secondary); padding: 5rem 0; }
.gallery-grid   { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-top: 2rem; }
.gallery-item   { border-radius: 1rem; overflow: hidden; display: block; }
.gallery-item img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform 0.3s; display: block; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-cta    { text-align: center; margin-top: 2rem; }

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer     { background: var(--cocoa); color: var(--cocoa-foreground); }
.footer-inner    { max-width: 72rem; margin: 0 auto; display: grid; gap: 2rem; padding: 3.5rem 1rem; }
.footer-name     { font-family: var(--font-display); font-size: 1.5rem; font-weight: 900; }
.footer-tagline  { margin-top: 0.5rem; font-style: italic; color: var(--caramel); }
.footer-col h4   { font-weight: 600; color: var(--caramel); margin: 0 0 0.5rem; }
.footer-col a    { display: block; margin-top: 0.5rem; }
.footer-col a:hover { text-decoration: underline; }
.footer-col p    { margin-top: 0.5rem; }
.footer-bottom   {
  border-top: 1px solid color-mix(in oklch, var(--cocoa-foreground) 10%, transparent);
  padding: 1.25rem 0;
  text-align: center;
  font-size: 0.75rem;
  opacity: 0.6;
}

/* ── Floating WhatsApp FAB ──────────────────────────────────── */
.whatsapp-fab {
  display: none;
  position: fixed; bottom: 1.25rem; right: 1.25rem; z-index: 40;
  width: 3.5rem; height: 3.5rem; border-radius: 9999px;
  background: var(--whatsapp); color: var(--whatsapp-foreground);
  align-items: center; justify-content: center;
  box-shadow: var(--shadow-warm);
  transition: transform 0.15s;
}
.whatsapp-fab:hover { transform: scale(1.1); }
.whatsapp-fab svg   { width: 1.75rem; height: 1.75rem; }

/* ── Mobile bottom bar ──────────────────────────────────────── */
.mobile-bar {
  display: flex;
  position: fixed; inset: auto 0 0 0; z-index: 40;
  gap: 0.5rem;
  border-top: 1px solid var(--border);
  background: color-mix(in oklch, var(--background) 95%, transparent);
  backdrop-filter: blur(8px);
  padding: 0.75rem;
}
.mobile-bar a { flex: 1; }

/* ── Order drawer ───────────────────────────────────────────── */
.drawer-overlay {
  position: fixed; inset: 0; z-index: 50;
  background: color-mix(in oklch, var(--cocoa) 60%, transparent);
  display: flex; justify-content: flex-end;
}
.drawer-panel {
  display: flex; flex-direction: column;
  height: 100%; width: 100%; max-width: 28rem;
  background: var(--background);
}
.drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--border); padding: 1.25rem; flex-shrink: 0;
}
.drawer-header h2 { font-size: 1.5rem; font-weight: 700; }
.drawer-close     { font-size: 1.5rem; line-height: 1; color: inherit; }
.drawer-body      { flex: 1; overflow-y: auto; padding: 1.25rem; display: flex; flex-direction: column; gap: 0.75rem; }
.drawer-product   { display: flex; align-items: center; gap: 0.75rem; background: var(--card); border-radius: 1rem; padding: 0.75rem; }
.drawer-product img { width: 3.5rem; height: 3.5rem; flex-shrink: 0; border-radius: 0.75rem; object-fit: cover; }
.drawer-product-info { flex: 1; min-width: 0; }
.drawer-product-name  { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drawer-product-price { font-size: 0.875rem; color: var(--muted-foreground); }
.mode-toggle { display: flex; gap: 0.5rem; padding-top: 0.5rem; }
.mode-btn      { flex: 1; border-radius: 9999px; border: 1px solid var(--border); padding: 0.5rem; font-weight: 600; font-family: inherit; background: var(--card); cursor: pointer; }
.mode-btn.active { background: var(--primary); color: var(--primary-foreground); }
.drawer-field  { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.875rem; font-weight: 500; }
.drawer-input  { border-radius: 0.75rem; border: 1px solid var(--border); background: var(--card); padding: 0.5rem 0.75rem; font-family: inherit; font-size: 1rem; }
.drawer-textarea { border-radius: 0.75rem; border: 1px solid var(--border); background: var(--card); padding: 0.5rem 0.75rem; font-family: inherit; font-size: 1rem; resize: vertical; }
.drawer-footer { border-top: 1px solid var(--border); padding: 1.25rem; flex-shrink: 0; }
.drawer-total  { display: flex; justify-content: space-between; font-size: 1.125rem; font-weight: 700; margin-bottom: 0.75rem; }
.drawer-send   { display: block; border-radius: 9999px; padding: 0.75rem; text-align: center; font-weight: 600; font-family: inherit; }
.drawer-send.enabled  { background: var(--whatsapp); color: var(--whatsapp-foreground); text-decoration: none; cursor: pointer; }
.drawer-send.disabled { background: var(--muted); color: var(--muted-foreground); pointer-events: none; }
.drawer-note   { margin-top: 0.5rem; text-align: center; font-size: 0.75rem; color: var(--muted-foreground); }

/* ── Responsive: sm (≥640 px) ──────────────────────────────── */
@media (min-width: 640px) {
  .product-grid { grid-template-columns: 1fr 1fr; }
  .why-grid     { grid-template-columns: 1fr 1fr; }
}

/* ── Responsive: md (≥768 px) ──────────────────────────────── */
@media (min-width: 768px) {
  .site-root        { padding-bottom: 0; }
  .nav-links        { display: flex; }
  .whatsapp-fab     { display: flex; }
  .mobile-bar       { display: none; }
  .hero-inner       { grid-template-columns: 1fr 1fr; padding-top: 6rem; padding-bottom: 6rem; }
  .story-inner      { grid-template-columns: 1fr 1fr; }
  .story-inner img  { aspect-ratio: 4 / 5; }
  .find-inner       { grid-template-columns: 1fr 1fr; }
  .footer-inner     { grid-template-columns: 1fr 1fr 1fr 1fr; }
  .gallery-grid     { grid-template-columns: repeat(4, 1fr); }
  .reviews-grid     { grid-template-columns: repeat(3, 1fr); }
}

/* ── Responsive: lg (≥1024 px) ─────────────────────────────── */
@media (min-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .why-grid     { grid-template-columns: repeat(5, 1fr); }
}
