﻿.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: 999px;
  background: linear-gradient(90deg, #f1f7e9 0%, #e1ead6 50%, #f1f7e9 100%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
}

.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.18s ease, box-shadow 0.18s ease, border-color 0.18s 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);
  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--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 {
  cursor: wait;
  pointer-events: none;
}

.product-card.skeleton .product-image {
  background: linear-gradient(90deg, #f2f2f2 0%, #e4e4e4 50%, #f2f2f2 100%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  min-height: 220px;
}

.product-card.skeleton h3,
.product-card.skeleton p,
.product-card.skeleton .product-meta {
  background: linear-gradient(90deg, #f2f2f2 0%, #e4e4e4 50%, #f2f2f2 100%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  height: 1rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

.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 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-badges {
  position: absolute;
  top: 0.72rem;
  left: 0.72rem;
  z-index: 2;
  display: flex;
  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-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-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);
}

.step-card {
  position: relative;
  padding: 1.25rem;
  overflow: hidden;
}

.step-card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--green-600), var(--gold));
}

.step-card span {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: var(--green-800);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 1.2rem;
}

.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 {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
}

.material-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.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-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);
}

.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;
}

.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);
}

.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;
}

#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;
}

.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); }
}
