:root {
  --green: #173f32;
  --green-light: #285947;
  --cream: #f2ead8;
  --paper: #fbf7ec;
  --yellow: #f4b942;
  --ink: #1d241f;
  --muted: #6d746c;
  --line: rgba(23, 63, 50, 0.2);
  --serif: "Fraunces", Georgia, serif;
  --sans: "DM Sans", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  overflow-x: hidden;
}
body.cart-open { overflow: hidden; }
button, a { font: inherit; }
button { color: inherit; }
img { display: block; width: 100%; }
a { color: inherit; text-decoration: none; }

.grain {
  position: fixed;
  inset: 0;
  z-index: 20;
  opacity: .035;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.site-header {
  height: 88px;
  padding: 0 clamp(24px, 5vw, 76px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 247, 236, .9);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 15;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 46px;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--cream);
  background: var(--green);
  font: 700 15px var(--serif);
  letter-spacing: -1px;
  outline: 1px solid var(--green);
  outline-offset: 3px;
}
.brand strong { display: block; font: 700 17px var(--serif); }
.brand small { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .12em; }
nav { display: flex; align-items: center; gap: 32px; font-size: 13px; font-weight: 600; }
nav a { position: relative; }
nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -5px; height: 1px; background: var(--green); transition: .3s; }
nav a:hover::after { right: 0; }
.cart-button {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 10px 10px 18px;
  border: 1px solid var(--green);
  background: transparent;
  border-radius: 100px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  transition: .25s;
}
.cart-button:hover { background: var(--green); color: var(--cream); }
.cart-button strong { width: 25px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: var(--yellow); color: var(--ink); }

.hero {
  min-height: calc(100svh - 88px);
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(30px, 5vw, 90px);
  padding: clamp(56px, 7vw, 100px) clamp(24px, 5vw, 76px) 72px;
  align-items: center;
  position: relative;
}
.hero::before { content: "QUEIJO"; position: absolute; left: -20px; bottom: -34px; color: rgba(23,63,50,.045); font: 700 clamp(110px, 19vw, 300px)/.7 var(--serif); z-index: -1; }
.eyebrow { margin: 0 0 22px; color: var(--green); font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; display: inline-block; vertical-align: middle; margin-right: 10px; }
.hero h1 { margin: 0; color: var(--green); font: 700 clamp(58px, 7vw, 112px)/.88 var(--serif); letter-spacing: -.055em; }
.hero h1 em { color: var(--yellow); font-weight: 600; }
.hero-description { max-width: 510px; margin: 34px 0; color: #586159; font-size: clamp(16px, 1.45vw, 20px); line-height: 1.65; }
.hero-actions { display: flex; align-items: center; gap: 25px; }
.primary-button { display: inline-flex; align-items: center; gap: 32px; background: var(--green); color: var(--cream); padding: 16px 20px 16px 24px; font-size: 13px; font-weight: 700; transition: .3s; }
.primary-button:hover { background: var(--yellow); color: var(--ink); transform: translateY(-2px); }
.primary-button span { font-size: 18px; }
.shipping-note { max-width: 110px; font-size: 11px; line-height: 1.35; color: var(--muted); }
.hero-visual { position: relative; justify-self: end; width: min(100%, 760px); }
.hero-visual img { aspect-ratio: 1.08; object-fit: cover; clip-path: polygon(9% 0, 100% 0, 100% 92%, 0 100%, 0 11%); filter: saturate(.8) contrast(1.04); }
.sun-stamp { position: absolute; z-index: 2; left: -45px; top: 12%; width: 108px; aspect-ratio: 1; display: grid; place-items: center; text-align: center; background: var(--yellow); border-radius: 50%; color: var(--green); font: 700 17px/1.05 var(--serif); transform: rotate(-9deg); box-shadow: 0 0 0 6px var(--paper), 0 0 0 7px var(--yellow); }
.hero-caption { position: absolute; right: 25px; bottom: -20px; padding: 16px 20px; display: flex; gap: 17px; align-items: center; color: var(--cream); background: var(--green); font-size: 12px; }
.hero-caption span { color: var(--yellow); }

.marquee { overflow: hidden; background: var(--yellow); border-block: 1px solid var(--ink); transform: rotate(-1deg) scale(1.02); }
.marquee div { width: max-content; display: flex; gap: 28px; padding: 15px 0; align-items: center; animation: marquee 28s linear infinite; color: var(--green); font: 700 14px var(--serif); text-transform: uppercase; letter-spacing: .08em; }
.marquee i { font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

.catalog-section { padding: 140px clamp(24px, 5vw, 76px); }
.section-heading { display: flex; justify-content: space-between; gap: 40px; align-items: end; margin-bottom: 56px; }
.section-heading h2 { margin: 0; color: var(--green); font: 700 clamp(40px, 5vw, 72px)/.98 var(--serif); letter-spacing: -.04em; }
.section-heading > p { max-width: 430px; margin: 0 0 6px; color: var(--muted); line-height: 1.7; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 35px; }
.filter { border: 1px solid var(--line); background: transparent; padding: 10px 18px; cursor: pointer; font-size: 12px; font-weight: 700; transition: .2s; }
.filter:hover, .filter.active { background: var(--green); border-color: var(--green); color: var(--cream); }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 45px 22px; }
.product-card { position: relative; min-width: 0; animation: cardIn .4s both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(15px); } }
.product-image { position: relative; overflow: hidden; background: var(--cream); }
.product-image img { aspect-ratio: 1.05; object-fit: cover; filter: saturate(.72); transition: transform .7s cubic-bezier(.2,.75,.3,1), filter .4s; }
.product-card:hover img { transform: scale(1.05); filter: saturate(1); }
.product-tag { position: absolute; top: 13px; left: 13px; padding: 7px 10px; background: var(--paper); color: var(--green); font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.add-button { position: absolute; right: 14px; bottom: 14px; width: 48px; aspect-ratio: 1; border: 0; border-radius: 50%; background: var(--yellow); font-size: 24px; cursor: pointer; transition: .25s; box-shadow: 0 5px 20px rgba(0,0,0,.15); }
.add-button:hover { transform: rotate(90deg) scale(1.08); background: var(--green); color: white; }
.product-info { display: grid; grid-template-columns: 1fr auto; gap: 8px 15px; align-items: start; padding: 19px 2px 0; border-top: 1px solid var(--green); }
.product-info h3 { margin: 0; color: var(--green); font: 700 25px var(--serif); }
.product-info strong { color: var(--green); font: 700 17px var(--serif); }
.product-info p { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }

.story { display: grid; grid-template-columns: 1.02fr .98fr; min-height: 690px; background: var(--green); color: var(--cream); }
.story-image { position: relative; overflow: hidden; }
.story-image img { height: 100%; object-fit: cover; filter: saturate(.65); }
.image-label { position: absolute; top: 35px; right: 35px; width: 120px; aspect-ratio: 1; display: grid; place-items: center; text-align: center; border-radius: 50%; background: var(--yellow); color: var(--green); font: 700 15px/1.3 var(--serif); transform: rotate(7deg); }
.story-copy { align-self: center; padding: clamp(55px, 7vw, 110px); }
.story-copy .eyebrow { color: var(--yellow); }
.story-copy h2 { margin: 0 0 28px; font: 700 clamp(43px, 5vw, 73px)/1 var(--serif); letter-spacing: -.045em; }
.story-copy > p:not(.eyebrow) { color: rgba(242,234,216,.72); line-height: 1.8; font-size: 17px; }
.story-numbers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 55px; padding-top: 28px; border-top: 1px solid rgba(242,234,216,.22); }
.story-numbers strong { display: block; color: var(--yellow); font: 700 33px var(--serif); }
.story-numbers span { font-size: 10px; color: rgba(242,234,216,.65); text-transform: uppercase; letter-spacing: .08em; }

.order-steps { padding: 130px clamp(24px, 5vw, 76px); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--green); }
.steps article { padding: 35px 35px 10px 0; border-right: 1px solid var(--line); }
.steps article + article { padding-left: 35px; }
.steps article:last-child { border-right: 0; }
.steps span { color: var(--yellow); font: 700 14px var(--serif); }
.steps h3 { margin: 25px 0 12px; color: var(--green); font: 700 29px var(--serif); }
.steps p { margin: 0; max-width: 300px; color: var(--muted); font-size: 14px; line-height: 1.65; }

footer { background: #102d24; color: var(--cream); padding: 75px clamp(24px, 5vw, 76px) 28px; display: grid; grid-template-columns: 1.4fr .7fr .8fr 1fr; gap: 45px; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 25px; }
.footer-brand .brand-mark { background: var(--yellow); color: var(--green); outline-color: var(--yellow); }
.footer-brand h2 { margin: 0; font: 700 42px/.8 var(--serif); }
footer small { color: var(--yellow); font-size: 9px; letter-spacing: .15em; }
footer p { font-size: 13px; line-height: 1.7; color: rgba(242,234,216,.7); }
.footer-whatsapp { display: flex; justify-content: space-between; padding: 18px 0; border-bottom: 1px solid var(--yellow); color: var(--yellow); font: 700 18px var(--serif); }
.copyright { grid-column: 1/-1; margin: 45px 0 0; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: 10px; text-align: center; }

.overlay { position: fixed; inset: 0; z-index: 30; background: rgba(10,26,21,.55); opacity: 0; pointer-events: none; transition: .35s; backdrop-filter: blur(3px); }
.cart-drawer { position: fixed; z-index: 31; top: 0; right: 0; width: min(460px, 100%); height: 100%; display: grid; grid-template-rows: auto 1fr auto; background: var(--paper); transform: translateX(100%); transition: transform .45s cubic-bezier(.76,0,.24,1); box-shadow: -20px 0 60px rgba(0,0,0,.15); }
.cart-open .overlay { opacity: 1; pointer-events: auto; }
.cart-open .cart-drawer { transform: translateX(0); }
.cart-header { display: flex; justify-content: space-between; align-items: center; padding: 30px; border-bottom: 1px solid var(--line); }
.cart-header .eyebrow { margin-bottom: 4px; }
.cart-header h2 { margin: 0; color: var(--green); font: 700 42px var(--serif); }
.close-cart { border: 0; background: none; font-size: 36px; font-weight: 300; cursor: pointer; }
.cart-items { overflow: auto; padding: 10px 30px; }
.empty-cart { min-height: 100%; display: grid; place-content: center; text-align: center; color: var(--muted); }
.empty-cart span { font-size: 45px; filter: grayscale(1); }
.empty-cart h3 { margin: 15px 0 5px; color: var(--green); font: 700 24px var(--serif); }
.empty-cart p { margin: 0; font-size: 13px; }
.cart-item { display: grid; grid-template-columns: 74px 1fr auto; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-item img { width: 74px; height: 74px; object-fit: cover; }
.cart-item h4 { margin: 0 0 4px; font: 700 17px var(--serif); color: var(--green); }
.cart-item p { margin: 0 0 9px; font-size: 12px; color: var(--muted); }
.quantity { display: flex; align-items: center; gap: 11px; }
.quantity button { width: 24px; aspect-ratio: 1; border: 1px solid var(--line); background: transparent; cursor: pointer; }
.quantity span { font-size: 12px; font-weight: 700; }
.remove-item { border: 0; background: none; color: #a54b3e; font-size: 11px; cursor: pointer; padding: 0; }
.cart-item > strong { align-self: start; font: 700 14px var(--serif); color: var(--green); }
.cart-footer { padding: 25px 30px 30px; border-top: 1px solid var(--line); }
.cart-total { display: flex; justify-content: space-between; align-items: center; }
.cart-total span { font-size: 13px; }
.cart-total strong { color: var(--green); font: 700 25px var(--serif); }
.cart-footer p { color: var(--muted); font-size: 10px; }
.whatsapp-button { width: 100%; border: 0; padding: 16px; margin-top: 10px; background: #1f9d5a; color: white; cursor: pointer; font-size: 13px; font-weight: 700; transition: .25s; }
.whatsapp-button:hover:not(:disabled) { background: #167d46; transform: translateY(-2px); }
.whatsapp-button:disabled { opacity: .4; cursor: not-allowed; }
.whatsapp-icon { margin-right: 7px; font-size: 18px; }
.toast { position: fixed; z-index: 40; left: 50%; bottom: 30px; transform: translate(-50%, 30px); opacity: 0; background: var(--green); color: var(--cream); padding: 13px 20px; font-size: 12px; transition: .3s; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: .15s; }

@media (max-width: 900px) {
  nav { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 65px; }
  .hero-copy { position: relative; z-index: 2; }
  .hero-visual { width: 90%; margin-top: 15px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .story { grid-template-columns: 1fr; }
  .story-image { min-height: 520px; }
  footer { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .site-header { height: 74px; padding-inline: 18px; }
  .brand small { display: none; }
  .brand-mark { width: 38px; }
  .cart-button span { display: none; }
  .cart-button { padding: 7px; border: 0; }
  .hero { min-height: auto; padding: 55px 20px 80px; }
  .hero h1 { font-size: clamp(54px, 17vw, 80px); }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .shipping-note { max-width: none; }
  .hero-visual { width: 100%; }
  .sun-stamp { left: -5px; width: 80px; font-size: 13px; }
  .hero-caption { right: 10px; }
  .catalog-section, .order-steps { padding: 105px 20px; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 25px; }
  .product-grid { grid-template-columns: 1fr; gap: 45px; }
  .product-image img { aspect-ratio: 1.15; }
  .story-image { min-height: 430px; }
  .story-copy { padding: 65px 25px; }
  .story-numbers { gap: 8px; }
  .story-numbers strong { font-size: 25px; }
  .steps { grid-template-columns: 1fr; }
  .steps article, .steps article + article { padding: 30px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  footer { grid-template-columns: 1fr; padding: 60px 25px 25px; }
  .footer-whatsapp { margin-top: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
