/* ===== Reveal on scroll ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ===== Hero ===== */
.hero {
  padding: 64px 0 20px;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.1rem, 5.5vw, 3.4rem);
  margin-bottom: 20px;
}

.hero h1 .maintitle {
  color: var(--primary);
}

.hero h1 .subtitle {
  color: var(--accent);
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--muted-text);
  max-width: 480px;
  margin-bottom: 32px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 0.85rem;
  color: var(--muted-text);
}

.hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-trust svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
  flex-shrink: 0;
}

/* Ilustração da hero: blobs + chips das categorias, sem depender de foto */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 340px;
}

.hero-blob {
  position: absolute;
  inset: 0;
  border-radius: 50% 45% 55% 50% / 50% 55% 45% 50%;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  opacity: 0.28;
  filter: blur(2px);
}

.hero-visual::before,
.hero-visual::after {
  content: "";
  position: absolute;
  background: url("../img/decor/cloud.svg") no-repeat center / contain;
  filter: drop-shadow(0 3px 6px rgba(42, 35, 26, 0.18));
  pointer-events: none;
}

.hero-visual::before {
  width: 78px;
  height: 44px;
  top: 2px;
  left: -14px;
  animation: cloud-drift-a 14s ease-in-out infinite;
}

.hero-visual::after {
  width: 56px;
  height: 32px;
  bottom: 24px;
  right: -10px;
  animation: cloud-drift-b 18s ease-in-out infinite;
}

.hero-leaf {
  position: absolute;
  bottom: -8px;
  width: 42px;
  height: 42px;
  background: url("../img/decor/leaf-cluster.svg") no-repeat center / contain;
  transform-origin: bottom center;
  pointer-events: none;
}

.hero-leaf--left {
  left: -14px;
  animation: leaf-sway-left 6s ease-in-out infinite;
}

.hero-leaf--right {
  right: -14px;
  animation: leaf-sway-right 7s ease-in-out infinite;
  animation-delay: -3s;
}

@keyframes cloud-drift-a {

  0%,
  100% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(10px);
  }
}

@keyframes cloud-drift-b {

  0%,
  100% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(-8px);
  }
}

@keyframes leaf-sway-left {

  0%,
  100% {
    transform: rotate(-3deg);
  }

  50% {
    transform: rotate(3deg);
  }
}

@keyframes leaf-sway-right {

  0%,
  100% {
    transform: scaleX(-1) rotate(-3deg);
  }

  50% {
    transform: scaleX(-1) rotate(3deg);
  }
}


.hero-photo {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* ===== Categorias ===== */
#categorias {
  padding-top: 32px;
  padding-bottom: 48px;
}

#categorias .section-header {
  margin-bottom: 28px;
}

#produtos {
  padding-top: 40px;
}

.categorias-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.category-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 3px;
  padding: 16px 14px;
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--foreground);
  border: 1px solid var(--border);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-card::after {
  content: "";
  position: absolute;
  top: -9px;
  right: 14px;
  width: 20px;
  height: 30px;
  background: url("../img/decor/vine.svg") no-repeat center / contain;
  pointer-events: none;
}

.category-card__emoji {
  font-size: 1.9rem;
  margin-bottom: 2px;
}

.category-card h3 {
  font-size: 1rem;
}

.category-card p {
  color: var(--muted-text);
  font-size: 0.76rem;
  line-height: 1.3;
  max-width: 22ch;
}

.category-card__count {
  margin-top: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.category-card--vasinhos {
  background: var(--cat-vasinhos-bg);
}

.category-card--vasinhos .category-card__count {
  color: var(--cat-vasinhos-fg);
}

.category-card--pai {
  background: var(--cat-pai-bg);
}

.category-card--pai .category-card__count {
  color: var(--cat-pai-fg);
}

.category-card--mae {
  background: var(--cat-mae-bg);
}

.category-card--mae .category-card__count {
  color: var(--cat-mae-fg);
}

.category-card--filho {
  background: var(--cat-filho-bg);
}

.category-card--filho .category-card__count {
  color: var(--cat-filho-fg);
}

.category-card--pet {
  background: var(--cat-pet-bg);
}

.category-card--pet .category-card__count {
  color: var(--cat-pet-fg);
}

.categorias-footer {
  text-align: center;
  margin-top: 32px;
}

/* ===== Filtro de produtos ===== */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 44px;
}

.filter-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted-text);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-tab:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-tab.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

/* ===== Produtos ===== */
.product-group {
  margin-bottom: 52px;
}

.product-group:last-child {
  margin-bottom: 0;
}

.product-group__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

.product-group__header span {
  font-size: 1.6rem;
}

.product-group__header h3 {
  font-size: 1.3rem;
}

.products-grid {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 4px 4px 14px;
  margin: -4px -4px 0;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.product-card {
  flex: 0 0 auto;
  width: min(72vw, 230px);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.product-card__media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  font-size: 3.4rem;
  background: var(--muted-bg);
  overflow: hidden;
  width: 100%;
  border: none;
  padding: 0;
  cursor: pointer;
}

/* Plantinhas espalhadas nos 3 primeiros cards de cada categoria */
.products-grid .product-card:nth-child(1) .product-card__media::after,
.products-grid .product-card:nth-child(2) .product-card__media::after,
.products-grid .product-card:nth-child(3) .product-card__media::after {
  content: "";
  position: absolute;
  width: 30px;
  height: 30px;
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 2px 3px rgba(42, 35, 26, 0.2));
}

.products-grid .product-card:nth-child(1) .product-card__media::after {
  top: 6px;
  left: 6px;
  background: url("../img/decor/vine.svg") no-repeat center / contain;
}

.products-grid .product-card:nth-child(2) .product-card__media::after {
  top: 6px;
  right: 6px;
  background: url("../img/decor/leaf-cluster.svg") no-repeat center / contain;
  transform: scaleX(-1);
}

.products-grid .product-card:nth-child(3) .product-card__media::after {
  bottom: 6px;
  left: 6px;
  background: url("../img/decor/vine.svg") no-repeat center / contain;
  transform: rotate(180deg);
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card__media--vasinhos {
  background: var(--cat-vasinhos-bg);
}

.product-card__media--pai {
  background: var(--cat-pai-bg);
}

.product-card__media--mae {
  background: var(--cat-mae-bg);
}

.product-card__media--filho {
  background: var(--cat-filho-bg);
}

.product-card__media--pet {
  background: var(--cat-pet-bg);
}

.product-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  flex: 1;
}

.product-card__body h4 {
  font-size: 1rem;
}

.product-card__title-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-weight: inherit;
  color: inherit;
  text-align: left;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
}

.product-card__title-btn:hover {
  color: var(--primary);
}

.product-card__body p {
  color: var(--muted-text);
  font-size: 0.85rem;
  flex: 1;
}

.product-card__ref {
  font-size: 0.7rem;
  color: var(--muted-text);
  opacity: 0.75;
  text-decoration: none;
}

a.product-card__ref:hover {
  opacity: 1;
  text-decoration: underline;
}

.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.product-card__price {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--foreground);
}

.product-card .btn {
  padding: 10px 16px;
  font-size: 0.82rem;
  min-height: 40px;
}

/* ===== Página de detalhes do produto (produto.html) ===== */
.produto-voltar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted-text);
  text-decoration: none;
  margin-bottom: 24px;
}

.produto-voltar:hover {
  color: var(--primary);
}

.produto-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.produto-gallery__main {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  font-size: 6rem;
  background: var(--muted-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.produto-gallery__main--vasinhos {
  background: var(--cat-vasinhos-bg);
}

.produto-gallery__main--pai {
  background: var(--cat-pai-bg);
}

.produto-gallery__main--mae {
  background: var(--cat-mae-bg);
}

.produto-gallery__main--filho {
  background: var(--cat-filho-bg);
}

.produto-gallery__main--pet {
  background: var(--cat-pet-bg);
}

.produto-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.produto-gallery__thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.produto-gallery__thumb {
  flex-shrink: 0;
  width: 68px;
  height: 68px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  cursor: pointer;
  opacity: 0.65;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.produto-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.produto-gallery__thumb:hover {
  opacity: 1;
}

.produto-gallery__thumb.is-active {
  opacity: 1;
  border-color: var(--primary);
}

.produto-category {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  margin-bottom: 10px;
}

.produto-info h1 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  margin-bottom: 14px;
}

.produto-info__desc {
  color: var(--muted-text);
  font-size: 1rem;
  margin-bottom: 24px;
}

.produto-specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.produto-spec {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

.produto-spec__label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted-text);
  margin-bottom: 4px;
}

.produto-spec__value {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--foreground);
  font-variant-numeric: tabular-nums;
}

.produto-ref {
  font-size: 0.82rem;
  color: var(--muted-text);
  margin-bottom: 24px;
}

.produto-ref a {
  color: var(--primary);
  text-decoration: none;
}

.produto-ref a:hover {
  text-decoration: underline;
}

.produto-purchase {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.produto-price {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--foreground);
}

@media (min-width: 760px) {
  .produto-layout {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .produto-gallery {
    position: sticky;
    top: 100px;
  }
}

/* ===== Explorar por categoria (família > tipo > produtos) ===== */
.explorer {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.explorer-breadcrumb {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--foreground);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.explorer-reset {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 20px;
  margin-bottom: 20px;
  padding: 6px 14px;
  min-height: 36px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted-text);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.explorer-reset:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.explorer-step__label {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-text);
  margin-bottom: 14px;
}

.explorer-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

#categorias-intro {
  padding-bottom: 24px;
}

#explorer-section {
  padding-top: 0;
}

.section-header--compact {
  max-width: 480px;
  margin-bottom: 0;
}

.section-header--compact .section-title {
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.section-header--compact .section-desc {
  font-size: 0.85rem;
}

.explorer-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 100px;
  padding: 16px 14px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.explorer-option:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.explorer-option.is-active {
  border-color: var(--primary);
  background: var(--muted-bg);
}

.explorer-option__emoji {
  font-size: 1.9rem;
}

.explorer-option__label {
  font-size: 0.84rem;
  font-weight: 600;
  text-align: center;
  color: var(--foreground);
}

.explorer-option__count {
  font-size: 0.7rem;
  color: var(--muted-text);
}

/* ===== Encomendas personalizadas ===== */
.custom-order {
  position: relative;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 56px 32px;
  text-align: center;
}

.custom-order::before {
  content: "";
  position: absolute;
  top: -55px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  background: url("../img/logo-mark.svg") no-repeat center / contain;
  filter: drop-shadow(0 4px 6px rgba(42, 35, 26, 0.3));
  pointer-events: none;
}

.custom-order .section-label {
  color: rgba(255, 255, 255, 0.85);
}

.custom-order h2 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin-bottom: 14px;
}

.custom-order p {
  color: rgba(255, 255, 255, 0.92);
  max-width: 540px;
  margin: 0 auto 28px;
  font-size: 1.02rem;
}

.custom-order-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  list-style: none;
  margin-bottom: 32px;
}

.custom-order-list li {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
}

.custom-order .btn-whatsapp {
  background: #ffffff;
  color: var(--primary-dark);
}

.custom-order .btn-whatsapp:hover {
  background: #f4fdfc;
}

/* ===== Como funciona ===== */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.step-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
}

.step-card::after {
  content: "";
  position: absolute;
  top: -10px;
  width: 24px;
  height: 32px;
  pointer-events: none;
  filter: drop-shadow(0 2px 3px rgba(42, 35, 26, 0.15));
}

.step-card:nth-child(1)::after {
  right: 16px;
  background: url("../img/decor/vine.svg") no-repeat center / contain;
}

.step-card:nth-child(2)::after {
  left: 16px;
  background: url("../img/decor/vine.svg") no-repeat center / contain;
  transform: scaleX(-1);
}

.step-card:nth-child(3)::after {
  right: 20px;
  width: 26px;
  height: 26px;
  background: url("../img/decor/leaf-cluster.svg") no-repeat center / contain;
}

.step-card .num {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 14px;
}

.step-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.step-card p {
  color: var(--muted-text);
  font-size: 0.92rem;
}