/* ============================================================
   TERRA & GRÃO — STYLES
   Estética vintage/retrô anos 70
   ============================================================ */

/* ============================================================
   RESET & CUSTOM PROPERTIES
============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Paleta vintage */
  --cream: #F5EFE0;
  --cream-dark: #EDE4CE;
  --brown-dark: #3D2817;
  --brown-mid: #754A33;
  --mustard: #C9A961;
  --mustard-lt: #E2C97E;
  --olive: #6B7043;
  --terracotta: #A0522D;
  --black-soft: #1A1410;
  --cobalt: #1A56DB;
  --cobalt-hover: #1448C8;
  --white: #FFFEF9;

  /* Tipografia */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-retro: 'Bebas Neue', Impact, sans-serif;
  --font-body: 'Inter', 'Work Sans', system-ui, sans-serif;

  /* Sombras & raios */
  --shadow-warm: 0 2px 16px rgba(61, 40, 23, .14);
  --shadow-warm-lg: 0 8px 40px rgba(61, 40, 23, .22);
  --radius: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  /* Dimensões fixas */
  --header-h: 64px;
  --filter-h: 52px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--brown-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

button {
  cursor: pointer;
  font-family: var(--font-body);
  border: none;
  outline: none;
  background: none;
}

a {
  text-decoration: none;
}

select {
  font-family: var(--font-body);
}

::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: var(--cream);
}

::-webkit-scrollbar-thumb {
  background: var(--brown-mid);
  border-radius: 3px;
}

/* ============================================================
   HEADER
============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  background: var(--cream);
  border-bottom: 1px solid rgba(61, 40, 23, .1);
  transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
}

.header.scrolled {
  background: rgba(245, 239, 224, 0.85);
  /* var(--cream) com opacidade */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(61, 40, 23, .15);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.header-nav a {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brown-mid);
  transition: color .2s;
}

.header-nav a:hover {
  color: var(--brown-dark);
}

.nav-sep {
  color: var(--mustard);
  font-size: .8rem;
}

.header-logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-retro);
  font-size: 1.65rem;
  letter-spacing: .14em;
  color: var(--brown-dark);
}

.header-logo .amp {
  color: var(--mustard);
}

.cart-btn {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: var(--brown-dark);
  color: var(--cream);
  padding: .45rem 1rem;
  border-radius: var(--radius);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: background .3s, transform .2s;
}

.cart-btn:hover {
  background: var(--terracotta);
  transform: translateY(-1px);
}

.cart-count {
  background: var(--mustard);
  color: var(--brown-dark);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: .68rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes pulseGlow {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(201, 169, 97, 0.7);
  }

  50% {
    transform: scale(1.3);
    box-shadow: 0 0 0 6px rgba(201, 169, 97, 0);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(201, 169, 97, 0);
  }
}

.cart-count.pulse {
  animation: pulseGlow 0.6s ease-out;
}

/* Hamburger menu (mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  z-index: 101;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--brown-dark);
  border-radius: 2px;
  transition: all .3s;
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--cream);
  border-bottom: 1px solid rgba(61, 40, 23, .1);
  padding: 1rem 2rem;
  z-index: 99;
  flex-direction: column;
  gap: .25rem;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--brown-dark);
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: .6rem 0;
  border-bottom: 1px solid rgba(61, 40, 23, .06);
}

/* ============================================================
   FILTER BAR
============================================================ */
.filter-bar {
  position: sticky;
  top: var(--header-h);
  z-index: 90;
  height: var(--filter-h);
  background: var(--cream);
  border-bottom: 1px solid rgba(61, 40, 23, .09);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  overflow-x: auto;
  white-space: nowrap;
}

.filter-bar::-webkit-scrollbar {
  height: 0;
}

.filter-label {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--brown-mid);
  flex-shrink: 0;
}

.filter-cats {
  display: flex;
  gap: .35rem;
}

.filter-btn {
  padding: .28rem .85rem;
  border-radius: 20px;
  border: 1.5px solid rgba(139, 90, 60, .4);
  background: transparent;
  color: var(--brown-mid);
  font-size: .75rem;
  font-weight: 600;
  transition: all .2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--brown-dark);
  border-color: var(--brown-dark);
  color: var(--cream);
}

.filter-sep {
  width: 1px;
  height: 22px;
  background: rgba(61, 40, 23, .15);
  flex-shrink: 0;
}

.price-wrap {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-shrink: 0;
}

.price-range {
  -webkit-appearance: none;
  width: 110px;
  height: 3px;
  border-radius: 2px;
  outline: none;
  background: linear-gradient(to right,
      var(--brown-dark) 0%,
      var(--brown-dark) var(--pct, 100%),
      rgba(139, 90, 60, .25) var(--pct, 100%),
      rgba(139, 90, 60, .25) 100%);
}

.price-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--mustard);
  border: 2px solid var(--brown-dark);
  cursor: pointer;
}

.price-display {
  font-size: .72rem;
  font-weight: 700;
  color: var(--brown-dark);
  min-width: 62px;
}

.sort-select {
  padding: .28rem .5rem;
  border: 1.5px solid rgba(139, 90, 60, .4);
  border-radius: var(--radius);
  background: transparent;
  color: var(--brown-mid);
  font-size: .75rem;
  cursor: pointer;
  outline: none;
  flex-shrink: 0;
}

.active-filter-pill {
  display: none;
  align-items: center;
  gap: .3rem;
  background: rgba(160, 82, 45, .1);
  border-radius: 20px;
  padding: .2rem .7rem;
  font-size: .7rem;
  color: var(--terracotta);
  font-weight: 700;
  flex-shrink: 0;
}

.active-filter-pill.show {
  display: flex;
}

.clear-btn {
  color: var(--terracotta);
  font-size: .7rem;
  font-weight: 600;
  text-decoration: underline;
}

/* ============================================================
   MAIN / INTRO
============================================================ */
.main-content {
  margin-top: var(--header-h);
}

.intro {
  padding: 3.5rem 2rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
}

.intro-title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.05;
  color: var(--brown-dark);
}

.intro-title em {
  font-style: italic;
  color: var(--terracotta);
}

.intro-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.stamp {
  flex-shrink: 0;
  width: 78px;
  height: 78px;
  border: 2px dashed var(--mustard);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: .5rem;
  font-family: var(--font-retro);
  font-size: .52rem;
  letter-spacing: .08em;
  color: var(--mustard);
  line-height: 1.4;
  text-transform: uppercase;
  transform: rotate(-14deg);
}

.intro-text {
  max-width: 300px;
  font-size: .88rem;
  color: var(--brown-mid);
  line-height: 1.7;
  text-align: right;
}

/* ============================================================
   BENTO GRID
============================================================ */
.bento-grid {
  padding: .5rem 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.bento-row {
  display: grid;
  gap: 1rem;
  min-height: 390px;
}

.bento-row.left {
  grid-template-columns: 300px 1fr 1fr;
}

.bento-row.right {
  grid-template-columns: 1fr 1fr 300px;
}

/* Estado filtrado do grid */
.bento-grid.filtered {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.bento-grid.filtered .bento-row {
  display: contents;
}

.bento-grid.filtered .bento-row .lc {
  display: none !important;
}

.bento-grid.filtered .bento-row .product-card {
  height: 100%;
  min-height: 390px;
}

/* -------- Product Card -------- */
.product-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-warm);
  display: flex;
  flex-direction: column;
  transition: transform .32s ease, box-shadow .32s ease;
  position: relative;
}

.product-card:hover {
  transform: scale(1.018);
  box-shadow: var(--shadow-warm-lg);
}

/* paper-grain overlay vintage */
.product-card::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  border-radius: var(--radius-md);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='.035'/%3E%3C/svg%3E");
}

.prod-img-wrap {
  position: relative;
  height: 155px;
  overflow: hidden;
  flex-shrink: 0;
}

.prod-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(18%) saturate(115%) brightness(94%);
  transition: transform .55s ease;
}

.product-card:hover .prod-img-wrap img {
  transform: scale(1.07);
}

.price-badge {
  position: absolute;
  top: .7rem;
  right: .7rem;
  background: var(--mustard);
  color: var(--brown-dark);
  font-family: var(--font-retro);
  font-size: 1.05rem;
  padding: .15rem .55rem;
  border-radius: 3px;
  letter-spacing: .03em;
}

.limited-badge {
  position: absolute;
  top: .7rem;
  left: .7rem;
  background: var(--terracotta);
  color: #fff;
  font-size: .6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  padding: .18rem .48rem;
  border-radius: 3px;
}

.prod-body {
  padding: .95rem 1rem 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .42rem;
  position: relative;
  z-index: 2;
}

.prod-cat {
  font-size: .62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--olive);
}

.prod-name {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--brown-dark);
}

.prod-desc {
  font-size: .76rem;
  color: var(--brown-mid);
  line-height: 1.55;
  flex: 1;
}

/* -------- Variações de produto -------- */
.var-section {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.var-label {
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--brown-mid);
}

.swatches {
  display: flex;
  gap: .4rem;
}

.swatch {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color .18s, transform .18s;
}

.swatch:hover {
  transform: scale(1.18);
}

.swatch.on {
  border-color: var(--brown-dark);
  box-shadow: 0 0 0 1px var(--brown-dark);
}

.size-row {
  display: flex;
  gap: .3rem;
}

.size-btn {
  padding: .16rem .48rem;
  border: 1.5px solid rgba(139, 90, 60, .5);
  border-radius: 3px;
  background: transparent;
  color: var(--brown-mid);
  font-size: .68rem;
  font-weight: 700;
  transition: all .18s;
}

.size-btn:hover,
.size-btn.on {
  background: var(--brown-dark);
  border-color: var(--brown-dark);
  color: var(--cream);
}

.type-sel {
  width: 100%;
  padding: .3rem .5rem;
  border: 1.5px solid rgba(139, 90, 60, .35);
  border-radius: var(--radius);
  background: var(--cream);
  color: var(--brown-dark);
  font-size: .74rem;
  cursor: pointer;
  outline: none;
}

/* Botão comprar */
.add-btn {
  margin-top: .6rem;
  width: 100%;
  padding: .75rem 1rem;
  background: var(--terracotta);
  color: var(--white);
  border-radius: var(--radius-md);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  transition: all .3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 4px 14px rgba(160, 82, 45, 0.35);
}

.add-btn:hover {
  background: var(--brown-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(61, 40, 23, 0.45);
}

.add-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(61, 40, 23, 0.3);
}

.add-btn.busy {
  opacity: .7;
  pointer-events: none;
}

.add-btn.done {
  background: #2d7a3a;
  box-shadow: 0 4px 14px rgba(45, 122, 58, 0.4);
}

/* -------- Lifestyle Image Card -------- */
.lc {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  cursor: zoom-in;
  height: 100%;
  min-height: 200px;

  .root-block {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .root-block.reverse {
    direction: ltr;
  }

  .root-img {
    order: -1;
  }
}

.lc img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(12%) saturate(110%) brightness(88%);
  transition: transform .55s ease, filter .3s;
}

.lc:hover img {
  transform: scale(1.045);
  filter: sepia(4%) saturate(112%) brightness(93%);
}

.lc .overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(61, 40, 23, .55) 0%, transparent 55%);
}

.lc .lc-label {
  position: absolute;
  bottom: .9rem;
  left: 1rem;
  font-family: var(--font-serif);
  font-size: .88rem;
  font-style: italic;
  color: var(--cream);
  text-shadow: 0 1px 6px rgba(0, 0, 0, .45);
}

.lc .zoom-icon {
  position: absolute;
  top: .7rem;
  right: .7rem;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: .85rem;
  opacity: 0;
  transition: opacity .25s;
}

.lc:hover .zoom-icon {
  opacity: 1;
}

/* Sem produtos (estado vazio do filtro) */
.no-products {
  display: none;
  text-align: center;
  padding: 5rem 2rem;
  color: var(--brown-mid);
  font-style: italic;
  font-size: 1.05rem;
}

.no-products.show {
  display: block;
}

/* ============================================================
   STORYTELLING — NOSSAS RAÍZES
============================================================ */
.roots-section {
  padding: 5rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 5.5rem;
}

.root-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.root-block.reverse {
  direction: rtl;
}

.root-block.reverse>* {
  direction: ltr;
}

.root-step {
  font-family: var(--font-retro);
  font-size: 1.3rem;
  color: var(--mustard);
  letter-spacing: 0.1em;
}

.root-title {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  color: var(--brown-dark);
  margin: 0.5rem 0 1.2rem;
  line-height: 1.1;
}

.root-desc {
  font-size: 1.05rem;
  color: var(--brown-mid);
  line-height: 1.75;
}

.root-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-warm-lg);
  aspect-ratio: 4/3;
}

.root-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(12%) saturate(105%) brightness(92%);
}

/* ============================================================
   SOCIAL PROOF — DEPOIMENTOS
============================================================ */
.social-proof {
  padding: 5rem 2rem;
  background: var(--cream-dark);
  text-align: center;
  border-top: 1px solid rgba(61, 40, 23, .06);
  border-bottom: 1px solid rgba(61, 40, 23, .06);
}

.sp-header {
  margin-bottom: 3.5rem;
}

.sp-title {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  color: var(--brown-dark);
  margin-bottom: 0.8rem;
}

.sp-sub {
  font-size: 0.95rem;
  color: var(--brown-mid);
}

.sp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.sp-card {
  background: var(--cream);
  padding: 2.2rem 1.8rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-warm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sp-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-warm-lg);
}

.sp-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--brown-dark);
  line-height: 1.6;
  margin-bottom: 2rem;
  position: relative;
}

.sp-author {
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--terracotta);
}

/* ============================================================
   HERO FOOTER — texto gigante "torrefação"
============================================================ */
.hero-section {
  position: relative;
  overflow: hidden;
  height: clamp(280px, 50vh, 520px);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 3rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1447933601403-0c6688de566e?w=1800&q=65') center/cover no-repeat;
  filter: blur(4px) sepia(35%) brightness(32%);
  transform: scale(1.12);
  will-change: transform;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  padding: 0 1rem;
  pointer-events: none;
}

.hero-giant {
  font-family: var(--font-retro);
  font-size: clamp(4.5rem, 18vw, 22rem);
  line-height: .85;
  color: var(--mustard);
  letter-spacing: -.01em;
  text-transform: uppercase;
  text-shadow: 0 4px 48px rgba(0, 0, 0, .55);
}

.hero-sub {
  margin-top: .5rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(.85rem, 2vw, 1.15rem);
  color: var(--cream);
  opacity: .78;
  letter-spacing: .22em;
  text-transform: uppercase;
}

/* ============================================================
   SITE FOOTER
============================================================ */
.site-footer {
  background: var(--brown-dark);
  color: var(--cream);
  padding: 2.5rem 2rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
}

.footer-logo {
  font-family: var(--font-retro);
  font-size: 1.8rem;
  letter-spacing: .1em;
  color: var(--mustard);
}

.footer-tagline {
  font-size: .76rem;
  color: rgba(245, 239, 224, .55);
  font-style: italic;
  margin-top: .25rem;
}

.footer-copy {
  font-size: .68rem;
  color: rgba(245, 239, 224, .35);
  margin-top: .35rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  justify-content: flex-end;
}

.footer-links a {
  font-size: .76rem;
  color: rgba(245, 239, 224, .65);
  text-transform: uppercase;
  letter-spacing: .06em;
  transition: color .2s;
}

.footer-links a:hover {
  color: var(--mustard);
}

/* ============================================================
   CART DRAWER
============================================================ */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 20, 16, .62);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}

.cart-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 420px;
  max-width: 100vw;
  background: var(--cream);
  z-index: 201;
  transform: translateX(100%);
  transition: transform .4s cubic-bezier(.4, 0, .2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -6px 0 40px rgba(61, 40, 23, .18);
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-hdr {
  padding: 1.3rem 1.4rem .9rem;
  border-bottom: 1px solid rgba(61, 40, 23, .1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-hdr-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
}

.cart-close-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(61, 40, 23, .08);
  color: var(--brown-dark);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}

.cart-close-btn:hover {
  background: rgba(61, 40, 23, .16);
}

.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: .8rem 1.4rem;
}

.empty-cart {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 1rem;
  padding: 3rem 0;
  text-align: center;
}

.empty-cart svg {
  opacity: .25;
}

.empty-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--brown-dark);
}

.empty-text {
  font-size: .82rem;
  color: var(--brown-mid);
}

.cart-item {
  display: flex;
  gap: .8rem;
  padding: .85rem 0;
  border-bottom: 1px solid rgba(61, 40, 23, .07);
  animation: slideDown .28s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ci-img {
  width: 62px;
  height: 62px;
  border-radius: var(--radius);
  object-fit: cover;
  filter: sepia(12%) saturate(110%);
  flex-shrink: 0;
}

.ci-info {
  flex: 1;
  min-width: 0;
}

.ci-name {
  font-weight: 600;
  font-size: .83rem;
  color: var(--brown-dark);
  line-height: 1.3;
}

.ci-var {
  font-size: .7rem;
  color: var(--brown-mid);
  margin-top: .12rem;
}

.ci-controls {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin-top: .45rem;
}

.qty-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(61, 40, 23, .08);
  color: var(--brown-dark);
  font-size: .95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .18s;
}

.qty-btn:hover {
  background: rgba(61, 40, 23, .17);
}

.qty-val {
  font-weight: 700;
  font-size: .82rem;
  min-width: 18px;
  text-align: center;
}

.ci-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  flex-shrink: 0;
  padding: .05rem 0;
}

.rm-btn {
  color: rgba(160, 82, 45, .5);
  font-size: .8rem;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .18s;
}

.rm-btn:hover {
  background: rgba(160, 82, 45, .1);
  color: var(--terracotta);
}

.ci-price {
  font-weight: 700;
  font-size: .88rem;
  color: var(--brown-dark);
}

.cart-foot {
  padding: .9rem 1.4rem 1.4rem;
  border-top: 1px solid rgba(61, 40, 23, .1);
  background: var(--white);
}

.totals {
  display: flex;
  flex-direction: column;
  gap: .38rem;
  margin-bottom: .95rem;
}

.total-row {
  display: flex;
  justify-content: space-between;
  font-size: .8rem;
  color: var(--brown-mid);
}

.total-row.grand {
  font-size: .98rem;
  font-weight: 700;
  color: var(--brown-dark);
  padding-top: .45rem;
  border-top: 1px solid rgba(61, 40, 23, .1);
  margin-top: .2rem;
}

.ship-note {
  font-size: .68rem;
  color: var(--olive);
  font-weight: 600;
}

.checkout-btn {
  width: 100%;
  padding: .88rem;
  background: var(--brown-dark);
  color: var(--cream);
  border-radius: var(--radius);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  transition: background .3s, transform .18s;
}

.checkout-btn:hover {
  background: var(--terracotta);
  transform: translateY(-1px);
}

/* ============================================================
   LIGHTBOX
============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(26, 20, 16, .93);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s;
}

.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lb-wrap {
  position: relative;
  max-width: 88vw;
  max-height: 86vh;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.lb-img {
  max-width: 88vw;
  max-height: 86vh;
  object-fit: contain;
  filter: sepia(8%) saturate(110%);
  display: block;
}

.lb-close {
  position: absolute;
  top: .85rem;
  right: .85rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}

.lb-close:hover {
  background: rgba(255, 255, 255, .3);
}

.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}

.lb-nav:hover {
  background: rgba(255, 255, 255, .3);
}

.lb-prev {
  left: 1.2rem;
}

.lb-next {
  right: 1.2rem;
}

.lb-cap {
  position: absolute;
  bottom: .9rem;
  left: 0;
  right: 0;
  text-align: center;
  color: rgba(245, 239, 224, .75);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: .85rem;
}

/* ============================================================
   TOAST NOTIFICATION
============================================================ */
#toasts {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 400;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .45rem;
  pointer-events: none;
}

.toast {
  background: var(--brown-dark);
  color: var(--cream);
  padding: .5rem 1.2rem;
  border-radius: 99px;
  font-size: .75rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: toastIn .38s cubic-bezier(.175, .885, .32, 1.275) forwards;
}

.toast strong {
  font-weight: 600;
}

.toast span {
  font-weight: 400;
  opacity: 0.9;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.toast.out {
  animation: toastOut .28s ease forwards;
}

@keyframes toastOut {
  to {
    opacity: 0;
    transform: translateY(-8px) scale(.9);
  }
}

/* ============================================================
   FADE-IN (Intersection Observer)
============================================================ */
.fi {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}

.fi.vis {
  opacity: 1;
  transform: translateY(0);
}

.fi.delay-1 {
  transition-delay: .1s;
}

.fi.delay-2 {
  transition-delay: .2s;
}

/* ============================================================
   UTILITÁRIOS
============================================================ */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.spin {
  display: inline-block;
  animation: spin .65s linear infinite;
}

/* ============================================================
   RESPONSIVIDADE
============================================================ */

/* Tablet (768px - 1100px) */
@media (max-width: 1100px) {
  .bento-row.left {
    grid-template-columns: 280px 1fr;
  }

  .bento-row.right {
    grid-template-columns: 1fr 280px;
  }

  /* esconde 3ª coluna em tablet */
  .bento-row .lc:nth-of-type(2) {
    display: none;
  }
}

/* Mobile (<768px) */
@media (max-width: 768px) {
  .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
    gap: 1rem;
  }

  .header-nav {
    display: none;
  }

  .header-logo {
    position: static;
    transform: none;
    font-size: 1.1rem;
    order: -1; /* Força para a extrema esquerda */
    margin-right: auto;
  }

  .hamburger {
    display: flex;
    order: 1; /* Move o hamburger para a direita */
    margin-right: 0.5rem;
  }

  .cart-btn {
    order: 2; /* Força a sacola para a extrema direita */
  }

  .bento-row.left,
  .bento-row.right {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .bento-row.right .product-card {
    order: -1;
  }

  .bento-row .lc:not(:first-of-type) {
    display: none;
  }

  .lc {
    height: 230px !important;
  }

  .intro {
    flex-direction: column;
    align-items: flex-start;
  }

  .intro-text {
    text-align: left;
  }

  .intro-right {
    flex-direction: row-reverse;
  }

  .site-footer {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }

  .cart-drawer {
    width: 100vw;
  }

  .filter-bar {
    height: auto;
    padding: .6rem 1rem;
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  /* ============================================================
     STORYTELLING — MOBILE FIX
  ============================================================ */
  .roots-section {
    gap: 4rem;
    padding: 3rem 1rem;
  }

  .root-block {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }

  .root-block.reverse {
    direction: ltr;
  }

  .root-img {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    order: -1; /* Garante que a imagem sempre apareça acima do texto no celular */
  }

  .root-img img {
    height: auto;
    object-fit: cover;
  }
}