﻿.btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 0.78rem 1.12rem;
  font-weight: 900;
  font-size: 0.96rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.btn-primary {
  background: var(--green-800);
  color: #fff;
  box-shadow: 0 12px 26px rgba(53, 77, 43, 0.22);
}

.btn-primary:hover {
  background: var(--green-900);
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(53, 77, 43, 0.28);
}

.btn-secondary {
  background: #fff;
  color: var(--green-800);
  border-color: rgba(84, 114, 60, 0.36);
}

.btn-secondary:hover {
  background: var(--green-100);
  border-color: var(--green-600);
  color: var(--green-900);
}

.categories-grid,
.products-grid,
.steps-grid {
  display: grid;
  gap: 1.1rem;
}

.materials-main {
  min-height: calc(100vh - 240px);
  padding: 2.8rem 0 3.4rem;
}

.materials-tabs-section > .container {
  display: grid;
  gap: 1.1rem;
}

.materials-page-head {
  max-width: 980px;
  margin-bottom: 0.2rem;
}

.materials-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.materials-tab {
  border: 1px solid rgba(84, 114, 60, 0.28);
  background: #fff;
  color: var(--green-800);
  border-radius: 999px;
  padding: 0.48rem 0.9rem;
  font-weight: 800;
  cursor: pointer;
}

.materials-tab.is-active {
  background: var(--green-800);
  color: #fff;
  border-color: var(--green-800);
}

.materials-filters {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid rgba(220, 229, 207, 0.92);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 12px 30px rgba(36, 48, 31, 0.07);
}

.materials-filters-head,
.materials-list-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 0.85rem;
}

.materials-list-head {
  margin: 0.35rem 0 0.2rem;
}

.materials-list-head h2 {
  margin: 0.05rem 0 0;
  color: var(--green-900);
  font-family: "Merriweather", serif;
  font-size: 1.65rem;
  line-height: 1.16;
}

.materials-filters-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) repeat(4, minmax(150px, 1fr));
  gap: 0.7rem;
}

.materials-filter-field {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.materials-filter-field span {
  color: var(--green-800);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.materials-filter-field input,
.materials-filter-field select {
  width: 100%;
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(84, 114, 60, 0.28);
  padding: 0.58rem 0.72rem;
  background: #fff;
  color: var(--green-900);
  font: inherit;
}

.materials-filter-field input:focus,
.materials-filter-field select:focus {
  outline: none;
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(108, 145, 74, 0.14);
}

.materials-filters-grid--loading {
  grid-template-columns: 2fr repeat(2, 1fr);
}

.materials-filters-grid--loading span,
.materials-loading-pill {
  min-height: 44px;
  border-radius: 10px;
}

.materials-loading-pill {
  display: inline-flex;
  width: 180px;
}

.materials-highlight {
  display: grid;
  gap: 0.8rem;
}

.materials-list {
  display: grid;
  gap: 1rem;
}

.materials-highlight-head h2 {
  margin: 0;
  color: var(--green-900);
  font-family: "Merriweather", serif;
  font-size: 1.55rem;
}

.materials-highlight-head p {
  margin: 0.35rem 0 0.9rem;
  color: var(--text-soft);
}

.products-grid--acervo-highlight {
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.products-grid--acervo {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

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

.products-grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  grid-auto-rows: 1fr;
  align-items: stretch;
}

.steps-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  counter-reset: step;
}

.category-card,
.product-card,
.step-card,
.sobre-card,
.simple-card {
  background: var(--card);
  border: 1px solid rgba(220, 229, 207, 0.9);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(36, 48, 31, 0.08);
}

.category-card {
  --tone: var(--green-600);
  position: relative;
  overflow: hidden;
  min-height: 184px;
  padding: 1rem 0.9rem;
  display: grid;
  grid-template-columns: 1fr;
  align-content: center;
  justify-items: center;
  gap: 0.78rem;
  text-align: center;
  cursor: pointer;
  transition: transform 0.22s cubic-bezier(0.22, 0.88, 0.28, 1), box-shadow 0.22s ease, border-color 0.22s ease;
}

/* Filete colorido que cresce do topo no hover (tom da categoria) */
.category-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  width: auto;
  height: 5px;
  background: linear-gradient(90deg, var(--tone), color-mix(in srgb, var(--tone) 60%, white));
  transform: scaleX(0.14);
  transform-origin: center;
  transition: transform 0.3s cubic-bezier(0.22, 0.88, 0.28, 1);
}

@media (prefers-reduced-motion: no-preference) {
  .category-card:hover::before,
  .category-card:focus-visible::before {
    transform: scaleX(1);
  }

  .category-card:hover .category-icon {
    transform: translateY(-4px) scale(1.03) rotate(-1.5deg);
  }

  .category-card:hover .category-arrow {
    transform: translateY(-50%) translateX(3px);
  }

  .category-icon {
    transition: transform 0.3s cubic-bezier(0.22, 0.88, 0.28, 1);
  }

  .category-arrow {
    transition: transform 0.25s ease;
  }
}

.category-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: var(--tone);
}

.category-card:hover,
.category-card.active {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: color-mix(in srgb, var(--tone) 46%, white);
}

.category-card--literacy {
  --tone: var(--coral);
}

.category-card--math {
  --tone: var(--blue);
}

.category-card--play {
  --tone: var(--gold);
}

.category-card--project {
  --tone: var(--plum);
}

.category-card--dates {
  --tone: var(--rose);
}

.category-icon {
  width: min(112px, 100%);
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, #fff8e9, #eef5e5);
  border: 1px solid rgba(220, 229, 207, 0.8);
  display: grid;
  place-items: center;
  overflow: hidden;
}

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

.category-icon span {
  color: var(--green-800);
  font-weight: 900;
  font-size: 1.1rem;
}

.category-content {
  min-width: 0;
}

.category-content h3 {
  margin: 0;
  color: var(--green-900);
  font-family: "Merriweather", serif;
  font-size: 1.18rem;
  line-height: 1.18;
}

.category-arrow {
  position: absolute;
  top: 50%;
  right: 0.8rem;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--tone) 16%, white);
  color: color-mix(in srgb, var(--tone) 78%, #26381e);
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  line-height: 1;
}

.products-toolbar {
  margin: 1rem 0 1.5rem;
  display: grid;
  gap: 0.85rem;
  background: #fff;
  border: 1px solid rgba(220, 229, 207, 0.92);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 30px rgba(36, 48, 31, 0.08);
  padding: 1rem;
}

.toolbar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.toolbar-kicker {
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--green-700);
  font-weight: 900;
}

.btn.btn-clean {
  min-height: 38px;
  padding: 0.46rem 0.82rem;
  font-size: 0.88rem;
  border-radius: 8px;
}

.products-toolbar #searchInput {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(172, 195, 148, 0.9);
  border-radius: 10px;
  font-size: 1rem;
  padding: 0.9rem 1rem;
  outline: none;
  background: #fbfdf7;
  color: var(--green-900);
}

.products-toolbar #searchInput::placeholder {
  color: #77836d;
}

.products-toolbar #searchInput:focus {
  border-color: var(--green-600);
  box-shadow: 0 0 0 4px rgba(108, 145, 74, 0.16);
}

.toolbar-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: center;
}

.btn-filter-toggle {
  min-height: 52px;
  border-radius: 10px;
  padding: 0.75rem 0.95rem;
  white-space: nowrap;
}

.advanced-filters {
  display: grid;
  gap: 0.72rem;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-4px);
  pointer-events: none;
  transition: max-height 0.24s ease, opacity 0.2s ease, transform 0.2s ease;
}

.advanced-filters.is-open {
  max-height: 420px;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.advanced-filter-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.72rem;
  flex-wrap: wrap;
}

.filters-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.filters-grid select {
  min-height: 46px;
  border: 1px solid rgba(172, 195, 148, 0.9);
  border-radius: 8px;
  padding: 0.72rem 0.78rem;
  font-size: 0.92rem;
  color: var(--text);
  background: #fff;
}

.filters-grid select:focus {
  outline: none;
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(108, 145, 74, 0.14);
}

.check-filters {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.check-filters label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--green-900);
  font-weight: 800;
  font-size: 0.9rem;
  padding: 0.48rem 0.68rem;
  border-radius: 999px;
  border: 1px solid rgba(201, 220, 183, 0.95);
  background: var(--green-100);
}

.check-filters input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--green-700);
}

.results-count {
  margin: 0.1rem 0 0;
  color: var(--green-800);
  font-size: 0.9rem;
  font-weight: 900;
}

.product-card {
  --tone: var(--green-600);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  border-top: 5px solid var(--tone);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.product-card--literacy {
  --tone: var(--coral);
}

.product-card--math {
  --tone: var(--blue);
}

.product-card--play {
  --tone: var(--gold);
}

.product-card--project {
  --tone: var(--plum);
}

.product-card--dates {
  --tone: var(--rose);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: color-mix(in srgb, var(--tone) 36%, white);
}

.product-card-hitarea {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  cursor: pointer;
}

.product-card-hitarea:focus-visible {
  outline: 3px solid var(--green-600);
  outline-offset: -4px;
}

.product-card .product-badges,
.product-card .btn-cart-add,
.product-card .product-actions,
.product-card .card-recommend-btn {
  position: relative;
  z-index: 2;
}

.product-card--vm-clean {
  border-top-width: 3px;
  box-shadow: 0 10px 26px rgba(36, 48, 31, 0.09);
}

.product-card--vm-clean .product-body {
  gap: 0.15rem;
}

.product-card--vm-clean .product-footer {
  border-top-style: dashed;
}

.product-card--vm-compact .product-image {
  height: 180px;
}

.product-card--vm-compact h3 {
  font-size: 1.06rem;
}

.product-card--vm-compact p {
  min-height: calc(2 * 1.55em);
  -webkit-line-clamp: 2;
}

.product-card--vm-compact .product-footer {
  min-height: 56px;
  margin-top: 0.55rem;
  padding-top: 0.55rem;
}

.product-card.skeleton {
  --tone: var(--green-300);
  cursor: wait;
  pointer-events: none;
  transform: none;
  box-shadow: 0 8px 24px rgba(36, 48, 31, 0.06);
}

.card-recommend-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.55rem;
  align-self: flex-start;
  border: 0;
  background: none;
  padding: 0.2rem 0.3rem;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-soft);
  cursor: pointer;
  border-radius: 8px;
  transition: color 0.15s ease, background 0.15s ease;
}

.card-recommend-btn:hover {
  color: var(--green-800);
  background: var(--green-100);
}

.card-recommend-btn svg {
  width: 15px;
  height: 15px;
}


.skeleton-block,
.skeleton-media,
.materials-filters-grid--loading span,
.materials-loading-pill {
  background: linear-gradient(90deg, #f1f5ec 0%, #dfe8d7 48%, #f1f5ec 100%);
  background-size: 220% 100%;
  animation: skeleton-loading 1.35s ease-in-out infinite;
}

.skeleton-product-card .product-image {
  min-height: 220px;
  border-bottom: 1px solid rgba(220, 229, 207, 0.72);
}

.skeleton-product-body {
  gap: 0.62rem;
}

.skeleton-block {
  display: block;
  border-radius: 7px;
}

.skeleton-line {
  width: 100%;
  height: 0.82rem;
}

.skeleton-line--eyebrow {
  width: 34%;
  height: 0.68rem;
}

.skeleton-line--title {
  width: 92%;
  height: 1.08rem;
}

.skeleton-line--medium {
  width: 66%;
}

.skeleton-line--category {
  width: 64%;
  height: 1rem;
}

.skeleton-line--material-title {
  width: 82%;
  height: 1.65rem;
}

.skeleton-line--section-title {
  width: min(240px, 72%);
  height: 1.35rem;
}

.skeleton-description,
.skeleton-material-meta {
  display: grid;
  gap: 0.48rem;
}

.skeleton-chips,
.skeleton-actions,
.skeleton-material-buy {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.skeleton-chips {
  min-height: 3.15rem;
  align-content: flex-start;
  flex-wrap: wrap;
}

.skeleton-pill {
  width: 82px;
  height: 28px;
  border-radius: 999px;
}

.skeleton-pill--short {
  width: 60px;
}

.skeleton-button {
  width: 104px;
  height: 42px;
  border-radius: 8px;
}

.skeleton-button--wide {
  width: 100%;
  height: 44px;
  margin-top: 0.1rem;
}

.skeleton-price {
  width: 86px;
  height: 1.2rem;
}

.skeleton-footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 0.65rem;
  padding-top: 0.68rem;
  border-top: 1px solid rgba(220, 229, 207, 0.72);
}

.skeleton-recommend {
  width: 92px;
  height: 1rem;
}

.skeleton-tab {
  display: inline-flex;
  width: 118px;
  height: 40px;
  border-radius: 999px;
}

.skeleton-filter {
  min-height: 44px;
  border-radius: 10px;
}

.skeleton-section-heading,
.skeleton-list-heading {
  display: grid;
  gap: 0.55rem;
}

.skeleton-category-card {
  pointer-events: none;
}

.skeleton-category-card::before {
  display: none;
}

.skeleton-category-icon {
  width: min(112px, 100%);
  aspect-ratio: 1;
  border-radius: var(--radius-md);
}

.material-card--skeleton {
  pointer-events: none;
}

.material-card--skeleton .material-main-image {
  border-color: rgba(220, 229, 207, 0.72);
}

.material-content--skeleton {
  display: grid;
  gap: 0.7rem;
}

.skeleton-material-meta {
  margin-top: 0.25rem;
}

.skeleton-material-buy {
  margin-top: 0.45rem;
  flex-wrap: wrap;
}

.material-receive--skeleton {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
}

.skeleton-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.skeleton-step {
  min-height: 150px;
  border-radius: var(--radius-md);
}

.product-image {
  position: relative;
  height: 220px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--tone) 13%, white), #fff);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.product-image::after,
.material-main-image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(241, 245, 236, 0.96) 0%, rgba(223, 232, 215, 0.96) 48%, rgba(241, 245, 236, 0.96) 100%);
  background-size: 220% 100%;
  animation: skeleton-loading 1.35s ease-in-out infinite;
  opacity: 1;
  transition: opacity 0.2s ease;
}

.product-image.is-image-ready::after,
.material-main-image.is-image-ready::after {
  opacity: 0;
}

.product-image img[data-progressive-image],
.material-main-image img[data-progressive-image] {
  opacity: 0;
  transition: opacity 0.22s ease;
}

.product-image.is-image-ready img[data-progressive-image],
.material-main-image.is-image-ready img[data-progressive-image] {
  opacity: 1;
}

.product-image.is-image-error img[data-progressive-image],
.material-main-image.is-image-error img[data-progressive-image] {
  opacity: 0;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #fff;
}

.product-badges {
  position: absolute;
  top: 0.72rem;
  left: 0.72rem;
  z-index: 2;
  display: flex;
  pointer-events: none;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.product-badges span {
  padding: 0.32rem 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--green-900);
  font-size: 0.72rem;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(36, 48, 31, 0.12);
}

.product-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 1.1rem;
}

.product-category {
  min-height: 1.1rem;
  color: color-mix(in srgb, var(--tone) 80%, #26381e);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.product-trail-mobile {
  display: none;
}

.product-card h3 {
  margin: 0.45rem 0 0;
  min-height: calc(2 * 1.18em);
  color: var(--green-900);
  font-family: "Merriweather", serif;
  font-size: 1.22rem;
  line-height: 1.18;
  font-weight: 900;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-card p {
  margin: 0.45rem 0 0.7rem;
  min-height: calc(3 * 1.55em);
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.55;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.product-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 0.3rem;
  min-height: 4.35rem;
  align-content: flex-start;
}

.product-chips span,
.product-meta {
  display: inline-flex;
  width: fit-content;
  border: 1px solid rgba(220, 229, 207, 0.94);
  border-radius: 999px;
  padding: 0.34rem 0.52rem;
  background: #fafcf6;
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 800;
}

.product-footer {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  min-height: 74px;
  border-top: 1px solid rgba(220, 229, 207, 0.9);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.product-price {
  color: var(--green-900);
  font-weight: 900;
  font-size: 1.12rem;
}

.product-price--free {
  color: var(--green-700);
}

.product-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
  width: min(280px, 100%);
  min-width: 0;
}

.btn-buy,
.btn-outline {
  font-family: inherit;
  min-height: 52px;
  border: 1px solid rgba(84, 114, 60, 0.36);
  border-radius: 8px;
  padding: 0.48rem 0.68rem;
  font-size: 0.84rem;
  font-weight: 900;
  background: #fff;
  color: var(--green-800);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.22;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.product-actions > a,
.product-actions > button {
  width: 100%;
  min-width: 0;
}

.btn-buy {
  background: var(--green-800);
  color: #fff;
  border-color: var(--green-800);
}

.btn-outline:hover {
  background: var(--green-100);
  border-color: var(--green-600);
}

.btn-buy:hover {
  background: var(--green-900);
  border-color: var(--green-900);
}

/* ==========================================================================
   Value-strip: cores por diferencial + micro-interações (override)
   ========================================================================== */

.value-strip-inner div {
  --tone: var(--green-600);
  position: relative;
  overflow: hidden;
  transition: background 0.22s ease;
}

.value-strip-inner div:nth-child(1) { --tone: var(--green-600); }
.value-strip-inner div:nth-child(2) { --tone: var(--gold); }
.value-strip-inner div:nth-child(3) { --tone: var(--blue); }
.value-strip-inner div:nth-child(4) { --tone: var(--coral); }

.value-strip-inner div::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  width: auto;
  height: 4px;
  background: linear-gradient(90deg, var(--tone), color-mix(in srgb, var(--tone) 55%, white));
  opacity: 0.85;
}

.value-strip-inner strong {
  color: color-mix(in srgb, var(--tone) 72%, var(--green-900));
  transition: transform 0.22s cubic-bezier(0.22, 0.88, 0.28, 1);
}

@media (prefers-reduced-motion: no-preference) {
  .value-strip-inner div:hover {
    background: #ffffff;
  }

  .value-strip-inner div:hover strong {
    transform: translateX(4px);
  }

  .value-strip-inner div:hover::after {
    animation: fx-strip-pulse 1.6s ease-in-out infinite;
  }
}

@keyframes fx-strip-pulse {
  0%,
  100% {
    opacity: 0.85;
  }

  50% {
    opacity: 1;
    filter: brightness(1.12);
  }
}

.steps-journey {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Trilho pontilhado ligando as "estações" — aparece nos vãos entre os cards */
.steps-journey::before {
  content: "";
  position: absolute;
  left: 1.5%;
  right: 1.5%;
  top: calc(1.25rem + 26px);
  height: 3px;
  background: repeating-linear-gradient(
    90deg,
    rgba(84, 114, 60, 0.5) 0 16px,
    transparent 16px 26px
  );
}

/* Em 2 ou 1 coluna o trilho horizontal não faz sentido — só no desktop */
@media (max-width: 1120px) {
  .steps-journey::before {
    display: none;
  }
}

.step-card {
  --tone: var(--green-600);
  position: relative;
  padding: 1.25rem;
  overflow: hidden;
}

.step-card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--tone);
}

.step-card span {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: #fff;
  color: var(--green-900);
  border: 3px solid var(--tone);
  box-shadow: 0 6px 16px rgba(36, 48, 31, 0.14);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 1.3rem;
}

@media (prefers-reduced-motion: no-preference) {
  .step-card span {
    transition: transform 0.22s ease;
  }

  .step-card:hover span {
    transform: scale(1.08) rotate(-4deg);
  }
}

.material-receive {
  margin-top: 1rem;
}

.material-receive .steps-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1120px) {
  .material-receive .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.material-receive h2 {
  margin: 0 0 0.65rem;
  color: var(--green-900);
  font-family: var(--font-display);
}

.steps-cta {
  margin: 1.3rem 0 0;
  font-weight: 900;
}

.steps-cta a {
  color: var(--green-800);
  border-bottom: 2px solid rgba(84, 114, 60, 0.35);
  transition: border-color 0.18s ease, color 0.18s ease;
}

.steps-cta a:hover {
  color: var(--green-900);
  border-color: var(--green-800);
}

.step-card h3 {
  margin: 0.9rem 0 0.35rem;
  color: var(--green-900);
  font-family: "Merriweather", serif;
  font-size: 1.15rem;
  font-weight: 900;
}

.step-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.62;
  font-size: 0.94rem;
}

.sobre-card {
  padding: 1.15rem;
  border-left: 5px solid var(--green-600);
}

.sobre-card h3 {
  margin: 0;
  color: var(--green-900);
  font-family: "Merriweather", serif;
}

.sobre-card ul {
  margin: 0.8rem 0 0;
  padding-left: 1.1rem;
  color: var(--text-soft);
}

.sobre-card li + li {
  margin-top: 0.42rem;
}

.no-results {
  grid-column: 1 / -1;
  padding: 1rem;
  background: #fff;
  border: 1px dashed var(--green-300);
  border-radius: var(--radius-md);
  color: var(--text-soft);
}

.material-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  background: #fff;
  border: 1px solid rgba(220, 229, 207, 0.92);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1rem;
}

.material-main-image {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background:
    linear-gradient(145deg, rgba(241, 247, 233, 0.72), rgba(255, 255, 255, 0.96));
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
}

.material-main-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #fff;
}

.material-content {
  align-self: center;
  padding: 0.6rem;
}

.material-content h1 {
  margin: 0.3rem 0 0.6rem;
  color: var(--green-900);
  font-family: "Merriweather", serif;
  line-height: 1.15;
}

.material-info-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
  color: var(--text-soft);
}

.material-info-list a {
  color: var(--green-800);
  font-weight: 900;
}

.material-buy {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.material-buy-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.material-recommend-btn {
  min-height: 48px;
  padding: 0.45rem 0.9rem;
  font-size: 0.82rem;
}

/* ─── Modal "Recomendar material" ─────────────────────────────────────── */

.recommend-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(24, 32, 20, 0.45);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.recommend-modal-overlay--visible {
  opacity: 1;
}

.recommend-modal {
  width: min(400px, 100%);
  background: #fff;
  border-radius: 14px;
  padding: 1.1rem 1.2rem 1.3rem;
  box-shadow: 0 24px 48px rgba(24, 32, 20, 0.24);
  transform: translateY(8px);
  transition: transform 0.2s ease;
}

.recommend-modal-overlay--visible .recommend-modal {
  transform: translateY(0);
}

.recommend-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.recommend-modal-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--green-900);
}

.recommend-modal-close {
  border: 0;
  background: none;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--text-soft);
  cursor: pointer;
  padding: 0.2rem 0.45rem;
  border-radius: 8px;
}

.recommend-modal-close:hover {
  background: var(--green-100);
  color: var(--green-900);
}

.recommend-modal-product {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0.9rem 0 0.2rem;
  padding: 0.65rem 0.75rem;
  background: var(--green-50, #f3f6ee);
  border-radius: 10px;
}

.recommend-modal-product img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  object-position: center;
  border-radius: 8px;
  background: #fff;
  flex-shrink: 0;
}

.recommend-modal-product strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.3;
}

.recommend-modal-product span {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--green-800);
}

.recommend-modal-hint {
  margin: 0.6rem 0 0.9rem;
  font-size: 0.84rem;
  color: var(--text-soft);
}

.recommend-modal-actions {
  display: grid;
  gap: 0.55rem;
}

.recommend-modal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  border: 1px solid rgba(84, 114, 60, 0.36);
  border-radius: 10px;
  padding: 0.55rem 0.9rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  background: #fff;
  color: var(--green-800);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.recommend-modal-btn:hover {
  background: var(--green-100);
}

.recommend-modal-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.recommend-modal-btn--whatsapp {
  background: #1fa85c;
  border-color: #1fa85c;
  color: #fff;
}

.recommend-modal-btn--whatsapp:hover {
  background: #178a49;
  border-color: #178a49;
}

.recommend-modal-btn--copy:disabled {
  cursor: default;
  color: var(--green-800);
}

/* PWA: dica de instalação no iPhone (iOS não dispara beforeinstallprompt) */
.pwa-ios-hint {
  position: fixed;
  left: 50%;
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: min(92vw, 30rem);
  background: var(--green-800);
  color: #fff;
  border-radius: 12px;
  padding: 0.8rem 1rem;
  box-shadow: 0 14px 32px rgba(36, 48, 31, 0.28);
  font-size: 0.86rem;
  line-height: 1.45;
}

.pwa-ios-hint strong {
  color: var(--green-100);
}

.pwa-ios-hint-close {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.pwa-ios-hint-close:hover {
  background: rgba(255, 255, 255, 0.28);
}

.material-gallery {
  margin-top: 1rem;
  background: #fff;
  border: 1px solid rgba(220, 229, 207, 0.92);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 30px rgba(36, 48, 31, 0.08);
  padding: 1rem;
}

.material-gallery h2 {
  margin: 0 0 0.65rem;
  color: var(--green-900);
  font-family: "Merriweather", serif;
}

.material-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.65rem;
}

.material-gallery-grid img {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  cursor: zoom-in;
}

/* Lightbox da galeria do material */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.6rem;
  padding: 1.2rem;
  background: rgba(22, 31, 19, 0.9);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.gallery-lightbox[hidden] {
  display: none;
}

.gallery-lightbox-figure {
  margin: 0;
  min-width: 0;
  display: grid;
  gap: 0.5rem;
  justify-items: center;
}

.gallery-lightbox-figure img {
  max-width: 100%;
  max-height: 82vh;
  border-radius: var(--radius-md);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  background: #fff;
}

.gallery-lightbox-figure figcaption {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  font-weight: 800;
}

.gallery-lightbox-nav,
.gallery-lightbox-close {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.18s ease;
}

.gallery-lightbox-nav:hover:not(:disabled),
.gallery-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.26);
}

.gallery-lightbox-nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.gallery-lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

@media (max-width: 640px) {
  .gallery-lightbox {
    grid-template-columns: 1fr;
  }

  .gallery-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
  }

  .gallery-lightbox-prev {
    left: 0.6rem;
  }

  .gallery-lightbox-next {
    right: 0.6rem;
  }
}

.simple-card {
  padding: 1.1rem;
}

.simple-card h1,
.simple-card h2 {
  margin-top: 0;
  color: var(--green-900);
  font-family: "Merriweather", serif;
}

.social-links {
  padding-left: 1.2rem;
}

.muted {
  color: var(--text-soft);
}

.has-open-modal {
  overflow: hidden;
}

.pix-modal[hidden] {
  display: none;
}

.free-acquire-modal {
  position: fixed;
  inset: 0;
  z-index: 85;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.free-acquire-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(22, 31, 19, 0.58);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.free-acquire-dialog {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  max-height: min(92vh, 680px);
  overflow: auto;
  border: 1px solid rgba(220, 229, 207, 0.95);
  border-radius: var(--radius-lg);
  padding: clamp(1.35rem, 4vw, 2rem);
  background:
    linear-gradient(145deg, rgba(241, 247, 233, 0.84), rgba(255, 253, 248, 0.98) 46%),
    #fffdf8;
  box-shadow: 0 30px 80px rgba(16, 24, 14, 0.34);
  text-align: center;
}

.free-acquire-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(84, 114, 60, 0.22);
  border-radius: 999px;
  background: #fff;
  color: var(--green-900);
  font: inherit;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
}

.free-acquire-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 0.8rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--green-100);
  color: var(--green-800);
  font-size: 2rem;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(84, 114, 60, 0.16);
}

.free-acquire-kicker {
  margin: 0 0 0.3rem;
  color: var(--green-700);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.free-acquire-dialog h2 {
  margin: 0;
  color: var(--green-900);
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 5vw, 2.15rem);
  line-height: 1.1;
}

.free-acquire-summary {
  margin: 0.75rem auto 0;
  max-width: 38ch;
  color: var(--text);
  font-weight: 900;
  line-height: 1.4;
}

.free-acquire-note {
  margin-top: 1rem;
  display: grid;
  gap: 0.35rem;
  border: 1px solid rgba(172, 195, 148, 0.8);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  background: rgba(238, 244, 232, 0.72);
  color: var(--text-soft);
  line-height: 1.5;
}

.free-acquire-note strong {
  color: var(--green-900);
  font-size: 1.05rem;
}

.free-acquire-status {
  min-height: 1.5em;
  margin: 0.9rem 0 0;
  color: var(--green-800);
  font-weight: 800;
  line-height: 1.45;
}

.free-acquire-actions {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
}

.free-acquire-actions .btn {
  width: 100%;
}

.pix-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.pix-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(22, 31, 19, 0.58);
  backdrop-filter: blur(4px);
}

.pix-dialog {
  position: relative;
  width: min(940px, 100%);
  max-height: min(92vh, 760px);
  overflow: auto;
  border-radius: var(--radius-lg);
  background: #fffdf8;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 30px 80px rgba(16, 24, 14, 0.36);
}

.pix-close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(84, 114, 60, 0.22);
  border-radius: 999px;
  background: #fff;
  color: var(--green-900);
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
}

.pix-dialog-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1px;
  background: var(--border);
}

.pix-qr-panel,
.pix-info-panel {
  background: #fffdf8;
  padding: 1.5rem;
}

.pix-qr-panel {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.8rem;
  background:
    linear-gradient(145deg, rgba(238, 244, 232, 0.9), rgba(255, 246, 232, 0.9)),
    #f7faef;
}

.pix-qr-panel img {
  width: min(260px, 100%);
  aspect-ratio: 1 / 1;
  padding: 0.7rem;
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid rgba(220, 229, 207, 0.95);
  box-shadow: 0 16px 34px rgba(36, 48, 31, 0.12);
}

.pix-qr-placeholder {
  min-height: 320px;
  text-align: center;
}

.pix-qr-loading {
  width: min(230px, 70%);
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  border: 1px solid rgba(220, 229, 207, 0.95);
  background:
    linear-gradient(90deg, transparent 0 46%, rgba(172, 195, 148, 0.22) 46% 54%, transparent 54% 100%),
    linear-gradient(0deg, transparent 0 46%, rgba(172, 195, 148, 0.22) 46% 54%, transparent 54% 100%),
    #fff;
  box-shadow: 0 16px 34px rgba(36, 48, 31, 0.08);
}

.pix-qr-panel span,
.pix-copy-label,
.pix-key-box span,
.pix-copy-status {
  color: var(--text-soft);
  font-size: 0.9rem;
  font-weight: 800;
}

.pix-info-panel {
  display: grid;
  align-content: start;
  gap: 0.85rem;
}

.pix-info-panel h2 {
  margin: 0;
  color: var(--green-900);
  font-family: "Merriweather", serif;
  font-size: 2rem;
  line-height: 1.12;
}

.pix-summary {
  margin: 0;
  color: var(--text);
  font-weight: 800;
}

.pix-buyer-form {
  display: grid;
  gap: 0.85rem;
}

.payment-method-step {
  display: grid;
  gap: 0.8rem;
}

.payment-method-options {
  display: grid;
  gap: 0.6rem;
}

.payment-method-option {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.72rem 0.8rem;
  border: 1px solid rgba(172, 195, 148, 0.9);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font-weight: 700;
}

.payment-method-option input {
  accent-color: var(--green-700);
}

.checkout-whatsapp-field {
  display: grid;
  gap: 0.35rem;
  color: var(--text-soft);
  font-size: 0.86rem;
  font-weight: 800;
}

.checkout-whatsapp-field input {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(172, 195, 148, 0.9);
  border-radius: 8px;
  padding: 0.68rem 0.75rem;
  color: var(--text);
  background: #fff;
}

.checkout-whatsapp-field input:focus {
  outline: none;
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(108, 145, 74, 0.14);
}

.checkout-whatsapp-tip {
  display: block;
  margin-top: 0.15rem;
  padding: 0.55rem 0.65rem;
  border-left: 3px solid var(--green-600);
  border-radius: 6px;
  background: var(--green-100);
  color: var(--text-soft);
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.4;
}

.checkout-whatsapp-tip strong {
  color: var(--green-800);
}

.payment-method-step[hidden] {
  display: none;
}

.pix-buyer-form label {
  display: grid;
  gap: 0.35rem;
  color: var(--text-soft);
  font-size: 0.9rem;
  font-weight: 800;
}

.pix-buyer-form input {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(172, 195, 148, 0.9);
  border-radius: 8px;
  padding: 0.72rem 0.8rem;
  color: var(--text);
  background: #fff;
}

.pix-buyer-form input:focus {
  outline: none;
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(108, 145, 74, 0.14);
}

#pixPaymentDetails {
  display: grid;
  gap: 0.85rem;
}

.pix-qr-panel[hidden],
#pixPaymentDetails[hidden],
.pix-buyer-form[hidden] {
  display: none;
}

.pix-key-box {
  display: grid;
  gap: 0.16rem;
  padding: 0.85rem;
  border: 1px solid rgba(220, 229, 207, 0.95);
  border-radius: var(--radius-md);
  background: #f7fbf1;
}

.pix-key-box strong {
  color: var(--green-900);
  font-size: 1.18rem;
}

.pix-copy-label {
  display: block;
}

#pixCopyPaste {
  width: 100%;
  resize: vertical;
  min-height: 112px;
  border: 1px solid rgba(172, 195, 148, 0.9);
  border-radius: 8px;
  padding: 0.8rem;
  background: #fff;
  color: var(--text);
  font: 0.86rem/1.45 ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

#pixCopyPaste:focus {
  outline: none;
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(108, 145, 74, 0.14);
}

.pix-actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.pix-warning {
  margin: 0;
  padding: 0.78rem 0.85rem;
  border-left: 4px solid var(--coral);
  background: #fff1ec;
  color: #7d3c2b;
  font-weight: 900;
}

.pix-copy-status {
  min-height: 1.25rem;
  margin: 0;
  color: var(--green-800);
}

.pix-copy-status a {
  color: var(--green-900);
  text-decoration: underline;
  font-weight: 900;
}

.payment-status-page {
  min-height: calc(100vh - 180px);
  padding: 3rem 0;
  background: #fffdf8;
}

.payment-status-panel {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
  gap: 1.5rem;
  align-items: start;
}

.payment-status-qr,
.payment-status-info {
  border: 1px solid rgba(220, 229, 207, 0.95);
  border-radius: var(--radius-md);
  background: #fff;
  padding: 1.25rem;
}

.payment-status-qr {
  display: grid;
  justify-items: center;
  gap: 0.85rem;
}

.payment-status-qr img {
  width: min(260px, 100%);
  aspect-ratio: 1 / 1;
  padding: 0.7rem;
  border: 1px solid rgba(220, 229, 207, 0.95);
  border-radius: var(--radius-md);
  background: #fff;
}

.payment-status-info {
  display: grid;
  gap: 0.95rem;
}

.payment-status-info h1 {
  margin: 0;
  color: var(--green-900);
  font-family: "Merriweather", serif;
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.08;
}

.payment-status-info p {
  margin: 0;
}

.payment-status-meta {
  display: grid;
  gap: 0.35rem;
  color: var(--text);
  font-weight: 800;
}

.payment-status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.payment-download {
  display: grid;
  gap: 0.4rem;
  justify-items: start;
  margin: 1.1rem 0 0;
  padding: 1rem;
  border: 1px solid rgba(108, 145, 74, 0.35);
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, rgba(241, 247, 233, 0.9), rgba(255, 253, 248, 0.9));
}

.payment-download .btn {
  min-width: 220px;
}

.payment-download-hint {
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 700;
}

#paymentPixCode {
  width: 100%;
  min-height: 110px;
  resize: vertical;
  border: 1px solid rgba(172, 195, 148, 0.9);
  border-radius: 8px;
  padding: 0.8rem;
  color: var(--text);
  font: 0.86rem/1.45 ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

/* Pagamento aprovado: experiência de sucesso em tela ampla */
.payment-status-page.is-approved {
  min-height: calc(100vh - 138px);
  display: grid;
  align-items: center;
  padding: clamp(1.5rem, 4vw, 4rem) 0;
  background:
    radial-gradient(circle at top left, rgba(139, 178, 95, 0.16), transparent 34%),
    radial-gradient(circle at bottom right, rgba(226, 190, 89, 0.12), transparent 32%),
    #fffdf8;
}

.payment-status-page.is-approved .payment-status-panel {
  width: min(1180px, calc(100% - 2rem));
  max-width: none;
  grid-template-columns: minmax(0, 1fr);
  margin: 0 auto;
}

.payment-status-page.is-approved .payment-status-qr {
  display: none !important;
}

.payment-status-page.is-approved .payment-status-info {
  min-height: min(68vh, 680px);
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.15rem;
  padding: clamp(2rem, 6vw, 5rem);
  text-align: center;
  border-radius: clamp(18px, 3vw, 32px);
  border: 1px solid rgba(108, 145, 74, 0.28);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(244, 249, 238, 0.98));
  box-shadow: 0 24px 70px rgba(53, 78, 40, 0.12);
}

.payment-status-page.is-approved .payment-status-info::before {
  content: "✓";
  display: grid;
  place-items: center;
  width: clamp(68px, 8vw, 92px);
  height: clamp(68px, 8vw, 92px);
  border-radius: 50%;
  background: var(--green-700, #5f7f3f);
  color: #fff;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(95, 127, 63, 0.22);
}

.payment-status-page.is-approved .payment-status-info h1 {
  max-width: 900px;
  font-size: clamp(2.4rem, 7vw, 5rem);
  line-height: 1;
}

.payment-status-page.is-approved .payment-status-info > p {
  max-width: 760px;
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.65;
  color: var(--text-soft);
}

.payment-status-page.is-approved .payment-status-meta {
  justify-items: center;
  gap: 0.45rem;
  font-size: clamp(1rem, 2vw, 1.12rem);
}

.payment-status-page.is-approved .payment-download {
  width: min(720px, 100%);
  box-sizing: border-box;
  justify-items: center;
  margin-top: 0.5rem;
  padding: clamp(1.1rem, 3vw, 1.6rem);
}

.payment-status-page.is-approved .payment-download .btn {
  width: min(360px, 100%);
  min-width: 0;
  justify-content: center;
  font-size: 1.02rem;
  padding: 0.9rem 1.25rem;
}

.payment-status-page.is-approved .payment-download-hint {
  max-width: 560px;
  text-align: center;
  font-size: 0.88rem;
  line-height: 1.5;
}

.payment-status-page.is-approved .payment-status-actions,
.payment-status-page.is-approved .pix-copy-status {
  display: none !important;
}

@media (max-width: 700px) {
  .payment-status-page.is-approved {
    min-height: calc(100vh - 110px);
    padding: 1rem 0;
  }

  .payment-status-page.is-approved .payment-status-panel {
    width: min(100% - 1rem, 1180px);
  }

  .payment-status-page.is-approved .payment-status-info {
    min-height: 72vh;
    padding: 2rem 1rem;
    border-radius: 18px;
  }
}

.whatsapp-float {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 40;
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: #1fa85c;
  color: #fff;
  border: 4px solid #fff;
  box-shadow: 0 14px 28px rgba(25, 104, 57, 0.3);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.whatsapp-float:hover {
  transform: translateY(-2px);
  background: #178a49;
  box-shadow: 0 18px 34px rgba(25, 104, 57, 0.38);
}

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

/* ─── Inline Buyer Form Overlay ────────────────────────────────────────── */
.inline-buyer-form-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.45);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.inline-buyer-form-card {
  background: #fffdf8;
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 24px 48px rgba(36, 48, 31, 0.2);
  animation: fadeIn 0.2s ease-out;
}

.inline-buyer-form-card h3 {
  margin: 0 0 0.3rem;
  color: var(--text-dark);
  font-size: 1.2rem;
}

.inline-buyer-form-card #inlineBuyerFormMethod {
  margin: 0 0 1rem;
  color: var(--text-soft);
  font-size: 0.85rem;
}

.inline-buyer-form-fields {
  display: grid;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}

.inline-buyer-form-fields label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dark);
}

.inline-buyer-form-fields input {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  background: #fff;
  color: var(--text-dark);
  box-sizing: border-box;
}

.inline-buyer-form-fields input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(107, 139, 74, 0.15);
}

.inline-buyer-form-card .inline-buyer-form-fields + .btn,
.inline-buyer-form-card .btn-outline {
  margin-top: 0;
}

.inline-buyer-form-card .btn-outline {
  margin-left: 0.5rem;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── Chips de filtros ativos (acervo) ────────────────────────────────────── */

.materials-active-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.8rem 0 0.4rem;
}

.materials-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid rgba(108, 145, 74, 0.45);
  background: var(--green-100, #f1f7e9);
  color: var(--green-800);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.materials-chip:hover {
  background: var(--green-200, #e1ead6);
  border-color: var(--green-600);
}

.materials-chip span:last-child {
  font-size: 0.95rem;
  line-height: 1;
  opacity: 0.7;
}

.materials-chip:focus-visible {
  outline: 2px solid var(--green-600);
  outline-offset: 2px;
}

/* ─── Autocomplete da busca do acervo ─────────────────────────────────────── */

.materials-filter-field--search {
  position: relative;
}

.materials-suggest {
  position: absolute;
  top: calc(100% - 0.2rem);
  left: 0;
  right: 0;
  z-index: 40;
  background: #fff;
  border: 1px solid rgba(84, 114, 60, 0.3);
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(38, 56, 30, 0.16);
  overflow: hidden;
  display: grid;
}

.materials-suggest-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.7rem;
  border: 0;
  background: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
  border-bottom: 1px solid rgba(84, 114, 60, 0.12);
}

.materials-suggest-item:last-child {
  border-bottom: 0;
}

.materials-suggest-item:hover,
.materials-suggest-item[aria-selected="true"] {
  background: var(--green-100, #f1f7e9);
}

.materials-suggest-item img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--border);
  background: var(--bg-soft, #eef4e8);
  flex-shrink: 0;
}

.materials-suggest-info {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.materials-suggest-info strong {
  font-size: 0.88rem;
  color: var(--green-900);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.materials-suggest-info small {
  font-size: 0.76rem;
  color: var(--text-soft);
}

/* ─── Combina com este material ───────────────────────────────────────────── */

.material-related {
  margin-top: 2.2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--border);
}

.material-related h2 {
  margin-bottom: 0.2rem;
}

.material-related .muted {
  margin-top: 0;
}

.material-related .products-grid {
  margin-top: 1rem;
}

/* ─── Carrinho de materiais ───────────────────────────────────────────────── */

.btn-cart-add {
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.6rem 0.9rem;
  border: 1.5px solid var(--green-600);
  border-radius: 10px;
  background: #fff;
  color: var(--green-800);
  font: inherit;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.btn-cart-add:hover:not(:disabled) {
  background: var(--green-600);
  color: #fff;
}

.btn-cart-add:disabled {
  border-color: var(--border);
  background: var(--green-100, #f1f7e9);
  color: var(--green-800);
  cursor: default;
}

.btn-cart-add:focus-visible {
  outline: 2px solid var(--green-600);
  outline-offset: 2px;
}

.cart-fab {
  position: fixed;
  right: 1.1rem;
  /* Empilhado sobre o .whatsapp-float (base: 1rem + 58px + folga); a página sem
     WhatsApp define o padrão pelo style.css e o JS eleva o FAB quando convive com ele. */
  bottom: var(--cart-fab-bottom, 1.1rem);
  z-index: 900;
  /* Mesmo padrão visual do .whatsapp-float: tamanho, anel branco, raio e sombra. */
  width: 58px;
  height: 58px;
  border: 4px solid #fff;
  border-radius: 16px;
  background: var(--green-800);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(25, 104, 57, 0.3);
  transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.cart-fab:hover {
  background: var(--green-900);
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(25, 104, 57, 0.38);
}

.cart-fab svg {
  width: 26px;
  height: 26px;
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--green-600);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 20px;
  text-align: center;
}

.cart-backdrop {
  position: fixed;
  inset: 0;
  z-index: 950;
  background: rgba(24, 32, 20, 0.45);
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 960;
  width: min(380px, 92vw);
  height: 100dvh;
  background: #fff;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  box-shadow: -12px 0 32px rgba(24, 32, 20, 0.18);
  transform: translateX(105%);
  transition: transform 0.22s ease;
  border-radius: 0;
}

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

.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--border);
}

.cart-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--green-900);
}

.cart-close {
  border: 0;
  background: none;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--text-soft);
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  border-radius: 8px;
}

.cart-close:hover {
  background: var(--green-100, #f1f7e9);
  color: var(--green-900);
}

.cart-items {
  list-style: none;
  margin: 0;
  padding: 0.6rem 1.1rem;
  overflow-y: auto;
  display: grid;
  gap: 0.2rem;
  align-content: start;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(220, 229, 207, 0.7);
}

.cart-item img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--border);
  background: var(--bg-soft, #eef4e8);
  flex-shrink: 0;
}

.cart-item-info {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
  flex: 1;
}

.cart-item-info strong {
  font-size: 0.88rem;
  color: var(--green-900);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cart-item-info span {
  font-size: 0.82rem;
  color: var(--text-soft);
  font-weight: 600;
}

.cart-item-remove {
  border: 0;
  background: none;
  color: var(--text-soft);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.2rem 0.45rem;
  border-radius: 8px;
}

.cart-item-remove:hover {
  background: rgba(192, 57, 43, 0.08);
  color: #a93226;
}

.cart-empty {
  margin: 0;
  padding: 1.4rem 1.1rem;
  color: var(--text-soft);
  font-size: 0.92rem;
  text-align: center;
}

.cart-foot {
  border-top: 1px solid var(--border);
  padding: 1rem 1.1rem 1.2rem;
  display: grid;
  gap: 0.7rem;
}

.cart-total-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 0.95rem;
  color: var(--text-soft);
  font-weight: 600;
}

.cart-total-row strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--green-900);
}

.cart-hint {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-soft);
}

@media (prefers-reduced-motion: reduce) {
  .cart-drawer,
  .cart-fab {
    transition: none;
  }

  .cart-fab:hover {
    transform: none;
  }
}


@media (prefers-reduced-motion: reduce) {
  .skeleton-block,
  .skeleton-media,
  .materials-filters-grid--loading span,
  .materials-loading-pill,
  .product-image::after,
  .material-main-image::after {
    animation: none !important;
    background-position: 0 0;
  }

  .product-image img[data-progressive-image],
  .material-main-image img[data-progressive-image] {
    transition: none;
  }
}
