:root {
  --color-bg: #faf6f0;
  --color-surface: #ffffff;
  --color-text: #2b241d;
  --color-text-muted: #6b5f52;
  --color-primary: #7a3b2e;
  --color-primary-dark: #5c2b21;
  --color-accent: #c8963e;
  --color-border: #e7ddd0;
  --color-whatsapp: #25d366;
  --radius: 10px;
  --shadow: 0 4px 18px rgba(43, 36, 29, 0.08);
  --shadow-lg: 0 12px 40px rgba(43, 36, 29, 0.22);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
}

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

a { color: inherit; }

h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; margin: 0 0 .4em; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}
.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 20px;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 20px;
}
.logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--color-primary-dark);
  white-space: nowrap;
  line-height: 1.15;
}
.logo-main {
  font-family: Georgia, serif;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: .01em;
}
.logo-main .amp { color: var(--color-accent); font-style: italic; }
.logo-tagline {
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.logo span { color: var(--color-accent); }

.search-box {
  flex: 1;
  max-width: 380px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 7px 14px;
  color: var(--color-text-muted);
}
.search-box input {
  border: none;
  outline: none;
  background: transparent;
  font-size: .9rem;
  width: 100%;
  color: var(--color-text);
}

.main-nav { border-top: 1px solid var(--color-border); }
.main-nav-inner {
  display: flex;
  gap: 26px;
  padding: 10px 20px;
  overflow-x: auto;
}
.main-nav-inner a {
  text-decoration: none;
  font-size: .88rem;
  color: var(--color-text-muted);
  white-space: nowrap;
  transition: color .15s ease;
}
.main-nav-inner a:hover { color: var(--color-primary); }

@media (max-width: 820px) {
  .header-top { flex-wrap: wrap; }
  .search-box { order: 3; max-width: 100%; }
}

.brand-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.tab-btn {
  border: 1px solid var(--color-border);
  background: transparent;
  padding: 7px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-size: .92rem;
  color: var(--color-text-muted);
  transition: all .15s ease;
}
.tab-btn:hover { border-color: var(--color-primary); color: var(--color-primary); }
.tab-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.header-actions { display: flex; align-items: center; gap: 14px; }
.lang-switch {
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 6px 8px;
  background: var(--color-surface);
  font-size: .85rem;
  cursor: pointer;
}
.cart-btn {
  position: relative;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--color-primary-dark);
  padding: 6px;
}
.cart-count {
  position: absolute;
  top: -4px;
  right: -6px;
  background: var(--color-accent);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  border-radius: 999px;
  min-width: 17px;
  height: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #f1e3d3, #faf6f0);
  padding: 56px 0;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 40px;
  align-items: center;
}
.hero h1 { font-size: 2.1rem; color: var(--color-primary-dark); }
.hero p { color: var(--color-text-muted); font-size: 1.02rem; margin-bottom: 22px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-image img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
@media (max-width: 780px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-cta { justify-content: center; }
  .hero-image { order: -1; }
}

/* Trust bar */
.trust-bar { background: var(--color-surface); border-bottom: 1px solid var(--color-border); }
.trust-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 18px 20px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .84rem;
  color: var(--color-text-muted);
  justify-content: center;
  text-align: center;
}
.trust-item svg { color: var(--color-primary); flex-shrink: 0; }
@media (max-width: 780px) {
  .trust-inner { grid-template-columns: repeat(2, 1fr); }
}

/* Filters */
.filters-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 36px;
}
.category-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tab-btn-outline {
  border: 1px solid var(--color-border);
  background: transparent;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-size: .82rem;
  color: var(--color-text-muted);
}
.tab-btn-outline:hover { border-color: var(--color-accent); color: var(--color-accent); }
.tab-btn-outline.active { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px;
  padding: 24px 0 60px;
}
.product-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.product-card { position: relative; }
.product-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #f0e9df;
}
.product-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
}
.badge {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  color: #fff;
}
.badge-new { background: var(--color-primary); }
.badge-stock { background: rgba(43,36,29,.65); }
.badge-outofstock { background: #b3453a; }
.product-card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-brand-badge {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.product-card-body h3 { font-size: 1.02rem; margin: 0; line-height: 1.3; }
.product-format { font-size: .8rem; color: var(--color-text-muted); }
.product-short { font-size: .85rem; color: var(--color-text-muted); flex: 1; }
.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}
.price { font-weight: 700; color: var(--color-primary-dark); }
.price-placeholder-flag { font-size: .65rem; color: #b45309; }

/* Buttons */
.btn {
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .15s ease;
}
.btn:hover { opacity: .9; }
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-secondary { background: transparent; color: var(--color-primary); border: 1px solid var(--color-primary); }
.btn-block { width: 100%; }
.btn-sm { padding: 7px 14px; font-size: .82rem; }
.btn-whatsapp { background: var(--color-whatsapp); color: #fff; width: 100%; }

/* Modal (product + checkout) */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30, 24, 18, .55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-width: 780px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: 28px;
}
.close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: background .15s ease, color .15s ease;
}
.close-btn:hover { background: var(--color-bg); color: var(--color-primary); }
.close-btn:focus-visible,
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.product-modal-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 28px; }

/* Gallery */
.product-modal-gallery { display: flex; flex-direction: column; gap: 10px; }
.modal-main-image-btn {
  display: block; width: 100%; padding: 0; border: none; background: #f0e9df;
  border-radius: var(--radius); overflow: hidden; cursor: zoom-in;
}
.modal-main-image-btn img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.modal-thumbnails { display: flex; gap: 8px; }
.thumb-btn {
  width: 60px; height: 60px; padding: 0; border-radius: 8px; overflow: hidden;
  border: 2px solid transparent; cursor: pointer; background: none; opacity: .7;
}
.thumb-btn img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-btn.active, .thumb-btn:hover { border-color: var(--color-primary); opacity: 1; }

.modal-zoom-overlay {
  display: none; position: fixed; inset: 0; background: rgba(20, 16, 12, .85);
  z-index: 200; align-items: center; justify-content: center; padding: 30px; cursor: zoom-out;
}
.modal-zoom-overlay.open { display: flex; }
.modal-zoom-overlay img { max-width: 100%; max-height: 100%; border-radius: 8px; }

/* Info column */
.product-modal-info .product-brand-badge { margin-bottom: 6px; display: block; }
.product-modal-info h2 { margin-bottom: 4px; }
.modal-description { color: var(--color-text-muted); font-size: .9rem; margin: 8px 0; }
.product-modal-info .price { font-size: 1.3rem; margin-top: 10px; }

.spec-list {
  display: flex; flex-direction: column; gap: 6px;
  border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border);
  padding: 12px 0; margin: 10px 0; font-size: .84rem;
}
.spec-row { display: flex; justify-content: space-between; gap: 12px; }
.spec-label { color: var(--color-text-muted); }
.spec-value { color: var(--color-text); font-weight: 600; text-align: right; }

.qty-row { display: flex; align-items: center; gap: 10px; margin: 14px 0 4px; }
.qty-row label { font-size: .84rem; color: var(--color-text-muted); margin-right: 4px; }
.qty-row button {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--color-border); background: var(--color-surface);
  font-size: 1.1rem; cursor: pointer;
}
.qty-row button:disabled { opacity: .4; cursor: not-allowed; }
.qty-row span { min-width: 24px; text-align: center; font-weight: 600; }
.qty-max-note { font-size: .74rem; color: #b45309; margin-bottom: 10px; }
.modal-delivery-info {
  font-size: .78rem; color: var(--color-text-muted); margin-top: 12px;
  background: var(--color-bg); border-radius: 6px; padding: 8px 10px;
}

@media (max-width: 768px) {
  .product-modal-grid { grid-template-columns: 1fr; }
  #productModalOverlay { padding: 0; }
  #productModalOverlay .product-modal {
    max-width: 100%; width: 100%; max-height: 100vh; border-radius: 0; margin: 0;
  }
  .product-modal-info { display: flex; flex-direction: column; }
  .product-modal-info .btn-block { position: sticky; bottom: 0; margin-top: 10px; }
  .modal-delivery-info { margin-bottom: 8px; }
}

/* Cart drawer */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30, 24, 18, .5);
  display: none;
  z-index: 110;
}
.drawer-overlay.open { display: block; }
.cart-drawer {
  position: absolute;
  top: 0; right: 0;
  height: 100%;
  width: 380px;
  max-width: 92vw;
  background: var(--color-surface);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
}
.cart-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; border-bottom: 1px solid var(--color-border);
}
.cart-items { flex: 1; overflow-y: auto; padding: 14px 20px; }
.cart-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--color-border); }
.cart-item img { width: 60px; height: 60px; object-fit: cover; border-radius: 6px; }
.cart-item-info { flex: 1; }
.cart-item-info h4 { margin: 0 0 4px; font-size: .9rem; }
.cart-item-controls { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.cart-item-controls button {
  width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--color-border);
  background: var(--color-surface); cursor: pointer; font-size: .9rem; line-height: 1;
}
.remove-item { background: none; border: none; color: #b3453a; font-size: .78rem; cursor: pointer; margin-left: auto; }
.cart-empty { text-align: center; color: var(--color-text-muted); padding: 40px 0; }
.cart-footer { padding: 16px 20px 20px; border-top: 1px solid var(--color-border); }
.cart-subtotal { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: 12px; }

/* Checkout form */
.checkout-modal form { display: flex; flex-direction: column; gap: 12px; margin-top: 10px; }
.checkout-modal label { display: flex; flex-direction: column; gap: 4px; font-size: .88rem; color: var(--color-text-muted); }
.checkout-modal input, .checkout-modal select, .checkout-modal textarea {
  border: 1px solid var(--color-border); border-radius: 6px; padding: 9px 10px; font-size: .92rem; font-family: inherit; color: var(--color-text);
}
.checkout-summary {
  background: var(--color-bg); border-radius: 8px; padding: 12px 14px; font-size: .85rem; color: var(--color-text-muted);
}
.checkout-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }

/* Section headings */
.section-heading { text-align: center; color: var(--color-primary-dark); margin-bottom: 24px; }

/* Brand story */
.brand-story-section { padding: 10px 0 60px; }
.brand-story { display: grid; gap: 24px; grid-template-columns: 1fr 1fr; }
.brand-block { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 22px 24px; }
.brand-block h3 { color: var(--color-primary-dark); }
.brand-block p { color: var(--color-text-muted); font-size: .92rem; line-height: 1.5; }
@media (max-width: 720px) {
  .brand-story { grid-template-columns: 1fr; }
}

/* SEO content */
.seo-content { padding: 10px 0 50px; }
.seo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.seo-block h3 { color: var(--color-primary-dark); font-size: 1.15rem; }
.seo-block p { color: var(--color-text-muted); font-size: .92rem; line-height: 1.6; }
@media (max-width: 720px) { .seo-grid { grid-template-columns: 1fr; } }

/* Recipes */
.recipes { background: var(--color-surface); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); padding: 44px 0; }
.recipes h2 { text-align: center; color: var(--color-primary-dark); margin-bottom: 28px; }
.recipes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.recipe-card { background: var(--color-bg); border-radius: var(--radius); padding: 18px 20px; }
.recipe-card h4 { margin: 0 0 8px; color: var(--color-primary-dark); font-size: 1rem; }
.recipe-card p { margin: 0; font-size: .86rem; color: var(--color-text-muted); line-height: 1.5; }
@media (max-width: 780px) { .recipes-grid { grid-template-columns: 1fr; } }

/* FAQ */
.faq-section { padding: 44px 0; }
.faq-section h2 { text-align: center; color: var(--color-primary-dark); margin-bottom: 24px; }
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq-list details {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 12px 16px;
  background: var(--color-surface);
}
.faq-list summary { cursor: pointer; font-weight: 600; font-size: .92rem; }
.faq-list p { margin: 8px 0 0; color: var(--color-text-muted); font-size: .88rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--color-border); padding: 40px 0 0; margin-top: 20px; background: var(--color-surface); }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--color-border);
}
.footer-col h4 { color: var(--color-primary-dark); font-size: .92rem; margin-bottom: 12px; }
.footer-col a, .footer-col p { display: block; color: var(--color-text-muted); font-size: .85rem; text-decoration: none; margin-bottom: 8px; }
.footer-col a:hover { color: var(--color-primary); }
.footer-note-small { font-size: .76rem; font-style: italic; }
.social-links { display: flex; gap: 12px; }
.social-links a { margin-bottom: 0; }
.legal-stub { display: none; padding: 24px 0; border-bottom: 1px solid var(--color-border); }
.legal-stub:target { display: block; }
.legal-stub h4 { color: var(--color-primary-dark); }
.legal-stub p { color: var(--color-text-muted); font-size: .88rem; line-height: 1.6; }
.legal-company-body { white-space: pre-line; }
.legal-draft-notice {
  background: #fdf1dc;
  border: 1px solid #e8c583;
  border-radius: 6px;
  padding: 8px 12px;
  font-style: italic;
  font-size: .8rem !important;
  color: #7a5210 !important;
}
.footer-bottom { padding: 16px 0 20px; }
.footer-inner { font-size: .82rem; color: var(--color-text-muted); text-align: center; }
.footer-bottom p { font-size: .82rem; color: var(--color-text-muted); text-align: center; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }
