@font-face {
  font-display: swap;
  font-family: Poppins;
  font-style: normal;
  font-weight: 700;
  src: url("/fonts/Poppins-Bold.ttf") format("truetype");
}

:root {
  --font-body: Arial, Helvetica, sans-serif;
  --font-heading: Poppins, Arial, Helvetica, sans-serif;
  --brand: #0e9f4f;
  --brand-bright: #4ade6b;
  /* Darker shade of the brand green, for small text that must stay readable on white. */
  --brand-text: #0a7a3c;
  /* Red is kept only for errors and out-of-stock warnings. */
  --danger: #a81d22;
  --black: #141414;
  --ink: #141414;
  --body: #4a4a4a;
  --muted: #767676;
  --line: #e5e5e5;
  --soft: #f7f7f7;
  --white: #fff;
  --whatsapp: #25d366;
  --radius: 10px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--body);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
}
main { display: block; min-height: 50vh; outline: none; }
h1, h2, h3 { color: var(--ink); font-family: var(--font-heading); font-weight: 700; line-height: 1.15; margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }

.draft-banner {
  background: #fff4c7;
  color: #5c4700;
  font-size: 13px;
  padding: 6px 16px;
  text-align: center;
}

/* Header */
.topbar { background: var(--brand-bright); color: var(--ink); font-size: 13px; font-weight: 700; }
.topbar-inner { align-items: center; display: flex; flex-wrap: wrap; gap: 4px 24px; justify-content: center; min-height: 38px; padding-block: 6px; }
.topbar a { color: var(--ink); text-decoration: none; }
.topbar a:hover { text-decoration: underline; }

.masthead { background: var(--white); }
.masthead-inner { align-items: center; display: flex; gap: 24px; padding-block: 14px; }
.logo { display: inline-flex; flex: none; }
.logo img { display: block; height: 58px; width: auto; }
.search { display: flex; flex: 1; max-width: 560px; margin-inline: auto; position: relative; }
.search input { background: var(--soft); border: 1px solid var(--line); border-radius: 999px; min-width: 0; padding: 9px 44px 9px 16px; width: 100%; }
.search button { background: none; border: 0; color: var(--ink); cursor: pointer; display: grid; height: 100%; place-items: center; position: absolute; right: 0; width: 44px; }
.cart-link { align-items: center; color: var(--body); display: inline-flex; flex: none; font-size: 14px; gap: 8px; text-decoration: none; }
.cart-link b { color: var(--ink); }
.cart-icon { color: var(--ink); display: inline-flex; position: relative; }
.cart-count { background: var(--brand-bright); border-radius: 999px; color: var(--ink); font-size: 11px; font-weight: 700; line-height: 18px; min-width: 18px; padding: 0 4px; position: absolute; right: -8px; text-align: center; top: -7px; }

.main-nav { background: var(--black); position: sticky; top: 0; z-index: 20; }
.main-nav .wrap { display: flex; flex-wrap: wrap; gap: 2px; justify-content: center; }
.main-nav .wrap::-webkit-scrollbar { display: none; }
.main-nav a { color: var(--white); flex: none; font-size: 15px; padding: 12px 13px; text-decoration: none; white-space: nowrap; }
.main-nav a:hover, .main-nav a.active { background: var(--brand-bright); color: var(--ink); }

/* Buttons */
.btn { align-items: center; background: var(--brand); border: 0; border-radius: 999px; color: var(--ink); cursor: pointer; display: inline-flex; font-weight: 700; gap: 8px; justify-content: center; padding: 11px 22px; text-align: center; text-decoration: none; }
.btn:hover { background: var(--brand-bright); }
.btn:disabled { cursor: not-allowed; opacity: .6; }
.btn-white { background: var(--white); color: var(--ink); }
.btn-white:hover { background: #eee; }
.btn-black { background: var(--black); color: var(--white); }
.btn-black:hover { background: #333; }
.btn-outline { background: var(--white); border: 1.5px solid var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--soft); }
.btn-whatsapp { background: var(--whatsapp); color: #06331a; }
.btn-whatsapp:hover { background: #1ebe5b; }
.btn-block { width: 100%; }
.btn-small { font-size: 14px; padding: 8px 14px; }
:focus-visible { outline: 3px solid #1a73e8; outline-offset: 2px; }

/* Home */
.hero { background: var(--brand-bright); color: var(--ink); padding: 56px 0 60px; text-align: center; }
.hero h1 { font-size: clamp(30px, 5.4vw, 52px); margin: 0 auto 14px; max-width: 900px; }
.hero p { margin: 0 auto 24px; max-width: 640px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.section { padding: 48px 0; }
.section-soft { background: var(--soft); }
.section-title { font-size: clamp(25px, 3.4vw, 36px); text-align: center; }
.section-sub { margin: 8px auto 28px; max-width: 640px; text-align: center; }
.rule-title { align-items: center; color: var(--ink); display: flex; font-family: var(--font-heading); font-size: 20px; font-weight: 700; gap: 18px; margin-bottom: 24px; }
.rule-title::before, .rule-title::after { background: var(--line); content: ""; flex: 1; height: 1px; }
.feature-grid { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.feature { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.feature h3 { color: var(--brand-text); font-size: 18px; margin-bottom: 8px; }
.feature p { margin: 0; }
.category-grid { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
.category-tile { color: var(--ink); font-size: 14px; font-weight: 700; letter-spacing: .04em; text-align: center; text-decoration: none; text-transform: uppercase; }
.category-art { align-items: center; aspect-ratio: 16 / 9; background: var(--soft); border-radius: var(--radius); color: var(--brand); display: flex; justify-content: center; margin-bottom: 10px; transition: background .15s, color .15s; }
.category-art img { height: 100%; mix-blend-mode: multiply; object-fit: contain; padding: 8px; width: 100%; }
.category-tile:hover .category-art { background: var(--brand-bright); color: var(--ink); }
.cta-band { background: var(--black); color: var(--white); padding: 44px 0; text-align: center; }
.cta-band h2 { color: var(--white); font-size: clamp(24px, 3.2vw, 34px); margin-bottom: 10px; }
.cta-band p { margin: 0 0 20px; }

/* Products */
.product-grid { display: grid; gap: 22px 18px; grid-template-columns: repeat(4, 1fr); }
.product-card { display: flex; flex-direction: column; text-align: center; }
.product-art { align-items: center; aspect-ratio: 1; background: var(--soft); border-radius: var(--radius); color: #b9b9b9; display: flex; justify-content: center; margin-bottom: 10px; overflow: hidden; }
.product-art img { height: 100%; object-fit: contain; width: 100%; }
.product-art.has-photo { background: var(--white); border: 1px solid var(--line); }
.product-cat { color: var(--muted); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.product-name { color: var(--ink); font-family: var(--font-body); font-size: 15px; font-weight: 400; line-height: 1.3; margin: 4px 0 6px; }
.product-desc { color: var(--muted); flex: 1; font-size: 13px; margin: 0 0 8px; }
.product-price { color: var(--ink); font-weight: 700; }
.stock-line { color: var(--brand-text); font-size: 13px; margin-bottom: 10px; }
.stock-low { color: #9a5b00; font-weight: 700; }
.stock-out { color: var(--danger); font-weight: 700; }

.page { padding: 32px 0 56px; }
.page-title { font-size: clamp(26px, 3.4vw, 34px); margin-bottom: 8px; }
.page-sub { margin: 0 0 24px; }
.empty { background: var(--soft); border-radius: var(--radius); padding: 40px 16px; text-align: center; }
.empty p { margin: 0 0 16px; }

/* Cart */
.cart-layout { align-items: start; display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr) 360px; }
.cart-row { align-items: center; border-bottom: 1px solid var(--line); display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr) auto auto; padding: 14px 0; }
.cart-row h3 { font-size: 15px; font-weight: 700; }
.cart-row small { color: var(--muted); }
.qty { align-items: center; border: 1px solid var(--line); border-radius: 999px; display: inline-flex; }
.qty button { background: none; border: 0; color: var(--ink); cursor: pointer; font-size: 18px; height: 36px; width: 36px; }
.qty span { min-width: 26px; text-align: center; }
.line-total { color: var(--ink); font-weight: 700; min-width: 92px; text-align: right; }
.link-button { background: none; border: 0; color: var(--danger); cursor: pointer; font-size: 13px; padding: 0; text-decoration: underline; }
.panel { background: var(--soft); border-radius: var(--radius); padding: 20px; }
.panel h2 { font-size: 19px; margin-bottom: 14px; }
.sum-row { display: flex; gap: 12px; justify-content: space-between; margin-bottom: 8px; }
.sum-row span:last-child { flex: none; }
.sum-total { border-top: 1px solid #d6d6d6; color: var(--ink); font-size: 18px; font-weight: 700; margin-top: 10px; padding-top: 10px; }
.panel-actions { display: grid; gap: 10px; margin-top: 16px; }

/* Forms */
.form-grid { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field-full { grid-column: 1 / -1; }
.field label { color: var(--ink); font-size: 14px; font-weight: 700; }
.field small { color: var(--muted); font-size: 12px; }
.field input, .field select, .field textarea { background: var(--white); border: 1px solid #bdbdbd; border-radius: 8px; padding: 10px 12px; width: 100%; }
.form-error { background: #fdecec; border-radius: 8px; color: var(--danger); grid-column: 1 / -1; margin: 0; padding: 10px 12px; }

/* Payment and confirmation */
.status-card { border: 1px solid var(--line); border-radius: var(--radius); margin: 0 auto; max-width: 560px; padding: 28px 22px; }
.status-card h1 { font-size: 26px; margin-bottom: 8px; }
.status-card > p { margin: 0 0 16px; }
.status-note { background: var(--soft); border-radius: 8px; margin: 16px 0; padding: 12px 14px; }
.status-good { background: #e7f7ee; color: #0b5c31; }
.status-bad { background: #fdecec; color: var(--danger); }
.spinner { animation: spin 1s linear infinite; border: 3px solid var(--line); border-radius: 50%; border-top-color: var(--brand); display: inline-block; flex: none; height: 22px; width: 22px; }
.waiting { align-items: center; display: flex; gap: 12px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } }
.action-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

/* Privacy notice */
.legal { max-width: 780px; }
.legal h2 { font-size: 20px; margin: 28px 0 8px; }
.legal p { margin: 0 0 12px; }
.legal ul { margin: 0 0 12px; padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal a { overflow-wrap: anywhere; }
.note-date { color: var(--muted); font-size: 14px; }
.form-note { color: var(--muted); font-size: 13px; margin: 0; }

/* Contact */
.contact-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
.contact-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.contact-card h2 { font-size: 16px; margin-bottom: 6px; }
.contact-card p { margin: 0; overflow-wrap: anywhere; }

/* Footer */
.footer { background: var(--black); color: #cfcfcf; font-size: 14px; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: 1.3fr 1fr 1fr; padding-block: 40px; }
.footer h3 { color: var(--white); font-size: 16px; margin-bottom: 10px; }
.footer-logo { display: block; height: 62px; margin: -8px 0 6px -8px; width: auto; }
.footer p { margin: 0; }
.footer-links { display: flex; flex-direction: column; gap: 6px; overflow-wrap: anywhere; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--white); text-decoration: underline; }
.footer-base { border-top: 1px solid #2c2c2c; font-size: 13px; padding: 14px 16px; text-align: center; }

/* Floating elements */
.whatsapp-float { align-items: center; background: var(--whatsapp); border: 0; border-radius: 50%; bottom: 18px; box-shadow: 0 4px 14px rgba(0, 0, 0, .28); color: var(--white); cursor: pointer; display: flex; height: 56px; justify-content: center; position: fixed; right: 18px; width: 56px; z-index: 30; }
.toast { background: var(--ink); border-radius: 8px; bottom: 86px; color: var(--white); font-size: 14px; left: 50%; max-width: calc(100% - 32px); padding: 10px 16px; position: fixed; text-align: center; transform: translateX(-50%); width: max-content; z-index: 40; }

@media (max-width: 900px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .cart-layout { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .masthead-inner { flex-wrap: wrap; gap: 12px; justify-content: space-between; }
  .logo img { height: 46px; }
  .cart-word { display: none; }
  .search { flex-basis: 100%; max-width: none; order: 3; }
  .main-nav .wrap { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
  .feature-grid, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .category-grid, .product-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 44px; }
  .section { padding: 36px 0; }
  .cart-row { grid-template-columns: minmax(0, 1fr) auto; }
  .line-total { grid-column: 1 / -1; text-align: left; }
}
