:root {
  --cream: #fbf5e9;
  --paper: #fffdf8;
  --ink: #33241b;
  --muted: #6f5c4f;
  --line: #e6dac6;
  --crust: #b5602a;
  --crust-dark: #93481b;
  --whatsapp: #128c4f;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --gutter: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding-bottom: 76px;
  background: var(--cream);
  color: var(--ink);
  font: 16px/1.55 var(--sans);
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--crust-dark); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 720px; }
.section { padding-block: 24px; }
.page-head { padding-top: 28px; }
.page-head p, .lead { color: var(--muted); font-size: 1.05rem; }
.empty { color: var(--muted); }
.section-link { margin-top: 16px; font-weight: 600; }

/* Header and tabs */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px var(--gutter);
  color: inherit;
  text-decoration: none;
}
.brand-logo { width: 44px; height: 44px; border-radius: 50%; }
.brand-name { display: block; font: 700 1.15rem/1.2 var(--serif); }
.brand-since { display: block; color: var(--muted); font-size: .75rem; letter-spacing: .04em; }
.tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 0 var(--gutter);
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  flex: none;
  padding: 10px 12px;
  color: var(--muted);
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 3px solid transparent;
}
.tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--crust); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 20px;
  border-radius: 10px;
  border: 1.5px solid transparent;
  font-weight: 700;
  text-decoration: none;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-outline { background: var(--paper); border-color: var(--ink); color: var(--ink); }

/* Hero */
.hero { display: flex; flex-direction: column; background: var(--paper); border-bottom: 1px solid var(--line); }
.hero-copy { padding: 28px var(--gutter); }
.eyebrow { margin-bottom: 8px; color: var(--crust-dark); font-size: .85rem; font-weight: 700; letter-spacing: .04em; }
.hero h1 { font-size: 2.2rem; }
.hero-text { color: var(--muted); font-size: 1.1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-media img { width: 100%; height: 320px; object-fit: cover; }

/* Products */
.product-grid { display: grid; gap: 12px; }
.product {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.product-image { flex: none; width: 92px; height: 92px; object-fit: cover; border-radius: 8px; }
.product-body { flex: 1; min-width: 0; }
.product h3 { margin-bottom: 4px; }
.product-text { margin-bottom: 8px; color: var(--muted); font-size: .9rem; }
.prices { list-style: none; margin: 0 0 8px; padding: 0; }
.prices li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0;
  border-bottom: 1px dashed var(--line);
  font-size: .95rem;
}
.prices li:last-child { border-bottom: 0; }
.prices strong { white-space: nowrap; }
.price-ask { color: var(--muted); font-size: .85rem; font-weight: 500; }
.product-order { color: var(--whatsapp); font-size: .9rem; font-weight: 700; }

.category-links { display: flex; flex-wrap: wrap; gap: 8px; }
.category-links a {
  padding: 6px 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: .9rem;
  text-decoration: none;
}

/* Campaigns */
.campaign-grid { display: grid; gap: 16px; }
.campaign {
  display: block;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
}
.campaign-image { width: 100%; height: 200px; object-fit: cover; }
.campaign-body { padding: 14px 16px; }
.campaign-body p { color: var(--muted); }
.campaign-price { color: var(--crust-dark) !important; font: 700 1.5rem var(--serif); }
.campaign-price span { color: var(--muted); font: 500 .9rem var(--sans); }

/* Content */
.content-image { width: 100%; margin-block: 16px; border-radius: 12px; }
.rich-text { margin-bottom: 1em; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.gallery figcaption { padding-top: 4px; color: var(--muted); font-size: .85rem; }
.contact dt { margin-top: 12px; color: var(--muted); font-size: .85rem; }
.contact dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }

/* Footer */
.site-footer { margin-top: 24px; padding-block: 24px; background: var(--ink); color: #eadfce; }
.site-footer a { color: #fff; }
.site-footer p { margin-bottom: 6px; }
.footer-title { font: 700 1.15rem var(--serif); color: #fff; }
.footer-grid { display: grid; gap: 16px; }

/* Fixed order actions on phones */
.action-bar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 20;
  display: flex;
  gap: 8px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: var(--paper);
  border-top: 1px solid var(--line);
}
.action-bar .btn-outline { flex: none; }
.action-bar .btn-whatsapp { flex: 1; }

@media (min-width: 768px) {
  body { padding-bottom: 0; }
  .site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-inline: max(var(--gutter), calc((100vw - 1120px) / 2)); }
  .brand { padding-inline: 0; }
  .tabs { padding: 0; }
  h1 { font-size: 2.6rem; }
  .hero { flex-direction: row; align-items: stretch; }
  .hero-copy { flex: 1; align-self: center; padding: 48px max(var(--gutter), calc((100vw - 1120px) / 2)); padding-right: 40px; }
  .hero h1 { font-size: 3.2rem; }
  .hero-media { flex: 1; }
  .hero-media img { height: 100%; min-height: 460px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .campaign-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .action-bar { display: none; }
}

@media (min-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
