/* =============================================
   ESTILOS — Catálogo Divino Nutrir
   ============================================= */

:root {
  --ink: #17140f;
  --forest: #263722;
  --leaf: #587743;
  --leaf-light: #7da35e;
  --vibrant: #7cb342;
  --cream: #f5eedf;
  --paper: #fffaf0;
  --sand: #e8d7b7;
  --gold: #d99c3d;
  --gold-soft: #f0b85c;
  --muted: #706b5d;
  --line: rgba(38, 55, 34, 0.12);
  --glass: rgba(23, 20, 15, 0.82);
  --max: 1180px;
  --radius: 24px;
  --radius-sm: 14px;
  --danger: #c0392b;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

::-webkit-scrollbar-thumb {
  background: var(--leaf);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--forest);
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(217, 156, 61, 0.08), transparent 24%),
    linear-gradient(180deg, var(--cream) 0%, #fff8e9 42%, #efe3cf 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

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

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

/* =============================================
   HEADER
   ============================================= */

.site-header {
  position: fixed;
  z-index: 40;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  padding: 0 max(20px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid rgba(255, 250, 240, 0.08);
  background: rgba(23, 20, 15, 0.85);
  color: var(--paper);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  transition: background 300ms ease, box-shadow 300ms ease;
}

.site-header.is-scrolled {
  background: rgba(23, 20, 15, 0.97);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.2);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 850;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px rgba(217, 156, 61, 0.3);
  transition: box-shadow 300ms ease;
}

.brand:hover img {
  box-shadow: 0 0 0 2px var(--gold);
}

.main-nav {
  display: flex;
  gap: 32px;
  color: rgba(255, 250, 240, 0.65);
  font-size: 0.88rem;
  font-weight: 600;
}

.main-nav a {
  position: relative;
  padding: 4px 0;
  transition: color 250ms ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
  transition: width 300ms ease;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--paper);
}

.main-nav a:hover::after,
.main-nav a.is-active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Cart button in header */
.cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 250, 240, 0.15);
  background: transparent;
  color: var(--paper);
  cursor: pointer;
  transition: border-color 250ms ease, background 250ms ease;
}

.cart-btn:hover {
  border-color: var(--gold);
  background: rgba(217, 156, 61, 0.12);
}

.cart-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  background: var(--gold);
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 250ms ease, transform 250ms ease;
}

.cart-badge.is-visible {
  opacity: 1;
  transform: scale(1);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 800;
  background: var(--gold);
  color: var(--ink);
  transition: transform 200ms ease, background 200ms ease, box-shadow 200ms ease;
}

.header-cta:hover {
  background: var(--gold-soft);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(217, 156, 61, 0.3);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  border: none;
  background: transparent;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
  align-items: center;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--paper);
  transition: transform 300ms ease, opacity 300ms ease;
  transform-origin: center;
}

.menu-toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.menu-toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  position: fixed;
  z-index: 39;
  top: 68px;
  left: 0;
  right: 0;
  bottom: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  background: rgba(23, 20, 15, 0.98);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  color: var(--paper);
  font-size: 1.25rem;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: opacity 350ms ease;
}

.mobile-nav.is-open {
  opacity: 1;
  pointer-events: all;
}

.mobile-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 36px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 850;
  font-size: 1rem;
}

/* =============================================
   HERO / APRESENTAÇÃO DO CATÁLOGO
   ============================================= */

.catalog-hero {
  position: relative;
  padding: 120px max(20px, calc((100vw - var(--max)) / 2)) 48px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 350px;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(217, 156, 61, 0.12), transparent 55%),
    radial-gradient(ellipse at 80% 100%, rgba(124, 179, 66, 0.08), transparent 50%),
    var(--ink);
  color: var(--paper);
  overflow: hidden;
}

.catalog-hero .eyebrow {
  margin: 0 0 16px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.catalog-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.catalog-hero p {
  max-width: 560px;
  margin: 0 auto 32px;
  color: rgba(255, 250, 240, 0.72);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* =============================================
   CONTROLES (Busca + Filtros + Ordenação)
   ============================================= */

.catalog-controls {
  position: sticky;
  top: 68px;
  z-index: 30;
  padding: 16px max(20px, calc((100vw - var(--max)) / 2));
  background: rgba(23, 20, 15, 0.92);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 250, 240, 0.06);
}

.controls-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  max-width: var(--max);
  margin: 0 auto;
}

.search-wrapper {
  position: relative;
  flex: 1;
  min-width: 200px;
}

.search-wrapper svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  fill: none;
  stroke: rgba(255, 250, 240, 0.4);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 10px 14px 10px 42px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 250, 240, 0.12);
  background: rgba(255, 250, 240, 0.06);
  color: var(--paper);
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: border-color 250ms ease, background 250ms ease;
}

.search-input::placeholder {
  color: rgba(255, 250, 240, 0.45);
}

.search-input:focus {
  border-color: var(--gold);
  background: rgba(255, 250, 240, 0.1);
}

.sort-select {
  padding: 10px 32px 10px 14px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 250, 240, 0.12);
  background: rgba(255, 250, 240, 0.06);
  color: var(--paper);
  font-size: 0.85rem;
  font-family: inherit;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,250,240,0.5)' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  outline: none;
  transition: border-color 250ms ease;
}

.sort-select:focus {
  border-color: var(--gold);
}

.sort-select option {
  background: var(--ink);
  color: var(--paper);
}

/* Category filters */
.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: var(--max);
  margin: 12px auto 0;
  padding: 0;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 250, 240, 0.12);
  background: transparent;
  color: rgba(255, 250, 240, 0.75);
  font-size: 0.8rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 250ms ease, color 250ms ease, background 250ms ease;
}

.filter-btn:hover {
  border-color: rgba(255, 250, 240, 0.3);
  color: var(--paper);
}

.filter-btn.is-active {
  border-color: var(--gold);
  background: rgba(217, 156, 61, 0.15);
  color: var(--gold);
}

/* =============================================
   GRID DE PRODUTOS
   ============================================= */

.catalog-section {
  padding: 40px max(20px, calc((100vw - var(--max)) / 2)) 80px;
}

.results-info {
  max-width: var(--max);
  margin: 0 auto 24px;
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 600;
}

.results-info strong {
  color: var(--gold);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: var(--max);
  margin: 0 auto;
}

.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  color: rgba(255, 250, 240, 0.75);
  font-size: 1.1rem;
  font-weight: 600;
}

.no-results svg {
  display: block;
  margin: 0 auto 16px;
  width: 48px;
  height: 48px;
  stroke: rgba(255, 250, 240, 0.4);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* =============================================
   CARD DE PRODUTO
   ============================================= */

.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 250, 240, 0.12);
  border-radius: var(--radius-sm);
  background: rgba(30, 27, 22, 0.95);
  transition: transform 350ms ease, box-shadow 350ms ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}

.product-media {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 200px;
  padding: 18px;
  background:
    radial-gradient(circle at 50% 45%, rgba(217, 156, 61, 0.15), transparent 44%),
    linear-gradient(145deg, rgba(50, 44, 34, 0.9), rgba(40, 35, 28, 0.95));
  overflow: hidden;
}

.product-media.has-image {
  background: rgba(40, 35, 28, 1);
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--forest);
  color: var(--paper);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.product-badge.badge-promo {
  background: var(--gold);
  color: var(--ink);
}

.product-media img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.15));
  transition: transform 400ms ease;
}

.product-img-clickable {
  cursor: pointer;
}

.product-img-clickable:hover {
  transform: scale(1.08);
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.25));
}

/* Fallback image placeholder */
.product-media .img-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 160px;
  border-radius: 8px;
  background: rgba(50, 44, 34, 0.6);
  color: rgba(255, 250, 240, 0.7);
  font-size: 2.4rem;
}

.product-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px 16px 16px;
  min-width: 0;
}

.product-category-label {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-info h3 {
  margin-bottom: 4px;
  font-size: 0.92rem;
  line-height: 1.3;
  font-weight: 700;
  color: #fff;
}

.product-desc {
  margin-bottom: 10px;
  color: rgba(255, 250, 240, 0.8);
  font-size: 0.78rem;
  line-height: 1.5;
}

.product-weight {
  margin-bottom: 8px;
  color: rgba(255, 250, 240, 0.8);
  font-size: 0.78rem;
  font-weight: 600;
}

/* Weight selector for bulk products */
.weight-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.weight-option {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 250, 240, 0.2);
  background: rgba(255, 250, 240, 0.06);
  color: rgba(255, 250, 240, 0.8);
  font-size: 0.75rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 200ms ease, color 200ms ease, background 200ms ease, transform 150ms ease;
}

.weight-option:hover {
  border-color: rgba(255, 250, 240, 0.4);
  color: #fff;
  background: rgba(255, 250, 240, 0.1);
}

.weight-option.is-active {
  border-color: var(--gold);
  background: rgba(217, 156, 61, 0.25);
  color: var(--gold);
  transform: scale(1.05);
  box-shadow: 0 0 8px rgba(217, 156, 61, 0.3);
}

/* Product footer: price + qty + add to cart */
.product-bottom {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 250, 240, 0.08);
}

.product-price {
  color: var(--gold);
  font-size: 1.15rem;
  font-weight: 850;
  white-space: nowrap;
}

.product-price .price-original {
  display: block;
  color: rgba(255, 250, 240, 0.45);
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: line-through;
}

.product-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 250, 240, 0.2);
  overflow: hidden;
  background: rgba(255, 250, 240, 0.06);
}

.qty-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: background 200ms ease;
  position: relative;
}

.qty-btn::after {
  content: "";
  position: absolute;
  inset: -4px;
}

.qty-btn:hover {
  background: rgba(255, 250, 240, 0.15);
}

.qty-value {
  min-width: 28px;
  text-align: center;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
}

.add-to-cart-btn {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: none;
  background: var(--gold);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  transition: background 200ms ease, transform 180ms ease;
  white-space: nowrap;
}

.add-to-cart-btn:hover {
  background: var(--gold-soft);
  transform: scale(1.04);
}

.add-to-cart-btn:disabled,
.add-to-cart-btn.is-disabled {
  background: rgba(255, 250, 240, 0.08);
  color: rgba(255, 250, 240, 0.5);
  cursor: not-allowed;
  transform: none;
}

.add-to-cart-btn.is-added {
  background: var(--vibrant);
  color: var(--ink);
}

/* =============================================
   CARRINHO LATERAL
   ============================================= */

.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 350ms ease;
}

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

.cart-panel {
  position: fixed;
  z-index: 61;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 100vw);
  display: flex;
  flex-direction: column;
  background: var(--ink);
  color: var(--paper);
  transform: translateX(100%);
  transition: transform 350ms ease;
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.4);
}

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

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 250, 240, 0.08);
}

.cart-header h2 {
  font-size: 1.15rem;
  font-weight: 800;
}

.cart-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 250, 240, 0.12);
  background: transparent;
  color: var(--paper);
  cursor: pointer;
  transition: border-color 200ms ease, background 200ms ease;
}

.cart-close:hover {
  border-color: rgba(255, 250, 240, 0.3);
  background: rgba(255, 250, 240, 0.06);
}

.cart-close svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
}

.cart-empty {
  text-align: center;
  padding: 48px 0;
  color: rgba(255, 250, 240, 0.7);
  font-size: 0.92rem;
}

.cart-empty svg {
  display: block;
  margin: 0 auto 12px;
  width: 40px;
  height: 40px;
  stroke: rgba(255, 250, 240, 0.35);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Cart item */
.cart-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 250, 240, 0.06);
}

.cart-item-img {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: contain;
  background: rgba(255, 250, 240, 0.06);
}

.cart-item-img-placeholder {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(255, 250, 240, 0.08);
  font-size: 1.4rem;
  color: rgba(255, 250, 240, 0.55);
}

.cart-item-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cart-item-name {
  font-size: 0.88rem;
  font-weight: 700;
}

.cart-item-weight {
  color: rgba(255, 250, 240, 0.75);
  font-size: 0.75rem;
  font-weight: 600;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}

.cart-item-qty {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 250, 240, 0.2);
  overflow: hidden;
}

.cart-item-qty button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: var(--paper);
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 200ms ease;
}

.cart-item-qty button:hover {
  background: rgba(255, 250, 240, 0.1);
}

.cart-item-qty span {
  min-width: 26px;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
}

.cart-item-subtotal {
  color: var(--gold);
  font-size: 0.88rem;
  font-weight: 800;
  white-space: nowrap;
}

.cart-item-remove {
  border: none;
  background: transparent;
  color: rgba(255, 250, 240, 0.7);
  font-size: 0.75rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 0;
  transition: color 200ms ease;
}

.cart-item-remove:hover {
  color: var(--danger);
}

/* Cart footer */
.cart-footer {
  padding: 20px 24px;
  border-top: 1px solid rgba(255, 250, 240, 0.08);
}

.cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.cart-total span {
  font-size: 0.92rem;
  color: rgba(255, 250, 240, 0.8);
}

.cart-total strong {
  color: var(--gold);
  font-size: 1.3rem;
  font-weight: 850;
}

.cart-footer-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-checkout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  border: none;
  background: #25d366;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.btn-checkout:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
}

.btn-checkout svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.btn-continue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 250, 240, 0.15);
  background: transparent;
  color: rgba(255, 250, 240, 0.8);
  font-size: 0.85rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 200ms ease, color 200ms ease;
}

.btn-continue:hover {
  border-color: rgba(255, 250, 240, 0.3);
  color: var(--paper);
}

.btn-clear-cart {
  border: none;
  background: transparent;
  color: rgba(255, 250, 240, 0.6);
  font-size: 0.78rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  padding: 4px 0;
  transition: color 200ms ease;
  align-self: center;
}

.btn-clear-cart:hover {
  color: var(--danger);
}

/* =============================================
   MODAL DE CHECKOUT / FORMULÁRIO
   ============================================= */

.checkout-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(0, 0, 0, 0.6);
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
  padding: 20px;
}

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

.checkout-modal {
  width: min(480px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 250, 240, 0.08);
  padding: 32px;
  transform: scale(0.92);
  transition: transform 300ms ease;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.checkout-overlay.is-open .checkout-modal {
  transform: scale(1);
}

.checkout-modal h2 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.checkout-modal>p {
  color: rgba(255, 250, 240, 0.7);
  font-size: 0.88rem;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(255, 250, 240, 0.7);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(255, 250, 240, 0.12);
  background: rgba(255, 250, 240, 0.06);
  color: var(--paper);
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: border-color 250ms ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 250, 240, 0.3);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.form-group select option {
  background: var(--ink);
  color: var(--paper);
}

.delivery-options {
  display: flex;
  gap: 10px;
}

.delivery-option {
  flex: 1;
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(255, 250, 240, 0.12);
  background: transparent;
  color: rgba(255, 250, 240, 0.8);
  font-size: 0.88rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  text-align: center;
  transition: border-color 250ms ease, color 250ms ease, background 250ms ease;
}

.delivery-option:hover {
  border-color: rgba(255, 250, 240, 0.3);
  color: var(--paper);
}

.delivery-option.is-active {
  border-color: var(--gold);
  background: rgba(217, 156, 61, 0.12);
  color: var(--gold);
}

.address-group {
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms ease, opacity 300ms ease;
  opacity: 0;
}

.address-group.is-visible {
  max-height: 120px;
  opacity: 1;
}

.checkout-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.btn-send-whatsapp {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  border: none;
  background: #25d366;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.btn-send-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
}

.btn-send-whatsapp svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.btn-cancel-checkout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 250, 240, 0.12);
  background: transparent;
  color: rgba(255, 250, 240, 0.75);
  font-size: 0.9rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 200ms ease, color 200ms ease;
}

.btn-cancel-checkout:hover {
  border-color: rgba(255, 250, 240, 0.3);
  color: var(--paper);
}

/* =============================================
   TOAST / FEEDBACK
   ============================================= */

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 80;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--forest);
  color: var(--paper);
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease, transform 300ms ease;
  white-space: nowrap;
  max-width: calc(100vw - 32px);
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* =============================================
   VER MAIS PRODUTOS
   ============================================= */

.load-more-wrapper {
  display: flex;
  justify-content: center;
  padding: 32px 0 16px;
}

.load-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 32px;
  border-radius: 999px;
  border: 2px solid var(--gold);
  background: rgba(217, 156, 61, 0.08);
  color: var(--gold);
  font-size: 0.92rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 200ms ease, background 200ms ease, transform 150ms ease;
}

.load-more-btn:hover {
  border-color: var(--gold);
  background: rgba(217, 156, 61, 0.12);
  transform: translateY(-2px);
}

/* =============================================
   WHATSAPP FLOAT
   ============================================= */

.whatsapp-float {
  position: fixed;
  z-index: 50;
  bottom: 24px;
  right: 24px;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
  transition: transform 250ms ease, box-shadow 250ms ease;
  animation: whatsappPulse 3s ease-in-out infinite;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.45);
}

@keyframes whatsappPulse {

  0%,
  100% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
  }

  50% {
    box-shadow: 0 4px 28px rgba(37, 211, 102, 0.55);
  }
}

/* =============================================
   COPYRIGHT
   ============================================= */

.copyright {
  padding: 20px max(20px, calc((100vw - var(--max)) / 2));
  background: var(--ink);
  text-align: center;
  border-top: 1px solid rgba(255, 250, 240, 0.06);
}

.copyright p {
  margin-bottom: 0;
  font-size: 0.78rem;
  color: rgba(255, 250, 240, 0.3);
}

/* =============================================
   LIGHTBOX — Visualização de Imagem
   ============================================= */

.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.92);
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
  padding: 24px;
}

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

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 101;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 250, 240, 0.2);
  background: rgba(23, 20, 15, 0.7);
  color: var(--paper);
  cursor: pointer;
  transition: border-color 200ms ease, background 200ms ease;
}

.lightbox-close:hover {
  border-color: var(--gold);
  background: rgba(217, 156, 61, 0.2);
}

.lightbox-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 90vw;
  max-height: 85vh;
}

.lightbox-img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 16px 64px rgba(0, 0, 0, 0.5);
  transform: scale(0.92);
  transition: transform 300ms ease;
}

.lightbox-overlay.is-open .lightbox-img {
  transform: scale(1);
}

.lightbox-caption {
  color: rgba(255, 250, 240, 0.85);
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  max-width: 600px;
}

/* =============================================
   ANIMAÇÕES
   ============================================= */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

.product-card {
  animation: fadeInUp 400ms ease forwards;
}

/* =============================================
   RESPONSIVO
   ============================================= */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .product-card {
    animation: none;
  }

  .whatsapp-float {
    animation: none;
  }
}

@media (max-width: 1080px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .product-bottom {
    grid-template-columns: 1fr auto;
  }
}

@media (max-width: 800px) {
  .main-nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .mobile-nav {
    display: flex;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-bottom {
    grid-template-columns: 1fr auto;
  }

  .cart-panel {
    width: min(380px, 100vw);
  }
}

@media (max-width: 640px) {
  .site-header {
    height: 60px;
    padding: 0 16px;
  }

  .mobile-nav {
    top: 60px;
  }

  .brand span {
    display: none;
  }

  .brand img {
    width: 34px;
    height: 34px;
  }

  .menu-toggle span {
    width: 20px;
  }

  .catalog-hero {
    padding: 100px 16px 36px;
  }

  .catalog-hero h1 {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

  .catalog-hero p {
    font-size: 0.92rem;
  }

  .catalog-controls {
    padding: 12px 16px;
    top: 60px;
  }

  .controls-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .search-wrapper {
    min-width: unset;
  }

  .sort-select {
    width: 100%;
  }

  .category-filters {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .catalog-section {
    padding: 24px 16px 60px;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .product-media {
    min-height: 180px;
  }

  .product-media img {
    height: 150px;
  }

  .product-bottom {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .product-actions {
    justify-content: flex-start;
  }

  .add-to-cart-btn {
    width: 100%;
  }

  .cart-panel {
    width: 100vw;
  }

  .checkout-modal {
    padding: 24px;
    border-radius: var(--radius-sm);
  }

  .checkout-actions {
    flex-direction: column;
  }

  .delivery-options {
    flex-direction: column;
  }

  .whatsapp-float {
    width: 48px;
    height: 48px;
    bottom: 16px;
    right: 16px;
  }

  .whatsapp-float svg {
    width: 24px;
    height: 24px;
  }

  .toast {
    white-space: normal;
    text-align: center;
    border-radius: 12px;
  }
}

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .product-media {
    min-height: 130px;
    padding: 10px;
  }

  .product-media img {
    height: 110px;
  }

  .product-media .img-placeholder {
    height: 110px;
    font-size: 1.8rem;
  }

  .product-badge {
    top: 6px;
    left: 6px;
    padding: 3px 7px;
    font-size: 0.65rem;
  }

  .product-info {
    padding: 10px 10px 12px;
    gap: 4px;
  }

  .product-category-label {
    font-size: 0.65rem;
  }

  .product-info h3 {
    font-size: 0.82rem;
    -webkit-line-clamp: 2;
  }

  .product-desc {
    font-size: 0.72rem;
    -webkit-line-clamp: 2;
  }

  .weight-options {
    gap: 4px;
  }

  .weight-option {
    padding: 4px 8px;
    font-size: 0.68rem;
  }

  .product-bottom {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .product-price {
    font-size: 1rem;
  }

  .product-actions {
    justify-content: space-between;
  }

  .qty-btn {
    width: 28px;
    height: 28px;
    font-size: 0.85rem;
  }

  .qty-value {
    min-width: 22px;
    font-size: 0.75rem;
  }

  .add-to-cart-btn {
    min-height: 36px;
    font-size: 0.75rem;
    padding: 0 10px;
  }
}