
/* Animações do Menu Mobile */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes hamburgerRotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(90deg);
  }
}

@media (max-width: 1120px) {
  .hero-box {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 3rem;
  }

  .hero h1 {
    max-width: 14ch;
    font-size: 3.2rem;
  }

  .hero-showcase {
    min-height: 360px;
  }

  .paper-stack {
    width: min(320px, 86%);
  }

  .value-strip-inner {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .materials-filters-grid {
    grid-template-columns: 1fr 1fr;
  }
}

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

  .mobile-menu-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 2px solid var(--green-900);
    background: linear-gradient(135deg, #ffffff 0%, #f8fff5 100%);
    color: var(--green-900);
    padding: 12px 18px;
    border-radius: 50px;
    font-weight: 900;
    font-size: 1.1rem;
    white-space: nowrap;
    transition:
      background 0.2s ease,
      border-color 0.2s ease,
      box-shadow 0.2s ease,
      color 0.2s ease;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  }

  .mobile-menu-button[aria-expanded="true"] {
    background: linear-gradient(135deg, var(--green-50) 0%, var(--green-100) 100%);
    border-color: var(--green-600);
    box-shadow: 0 4px 16px rgba(107, 139, 74, 0.2);
  }

  body.mobile-menu-open {
    overflow: hidden;
  }

  .mobile-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    max-height: min(72vh, calc(100dvh - 88px));
    padding: 12px;
    margin-top: 4px;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-radius: 0 0 16px 16px;
    background: linear-gradient(180deg, #ffffff 0%, #fafff5 100%);
    border: 2px solid var(--green-900);
    border-top: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 1000;
    pointer-events: none;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition:
      opacity 0.22s ease-out,
      transform 0.22s ease-out,
      visibility 0s linear 0.22s;
  }

  .mobile-nav.is-open {
    pointer-events: auto;
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0s;
  }

  .mobile-nav a {
    padding: 14px 16px;
    border-radius: 10px;
    color: var(--green-900);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.3px;
    background: transparent;
    border-left: 3px solid transparent;
    transition:
      background 0.16s ease,
      border-color 0.16s ease,
      color 0.16s ease;
  }

  .mobile-nav a:active {
    background: var(--green-100);
  }

  .mobile-nav a.is-active {
    color: #fff;
    background: var(--green-800);
    border-left-color: var(--green-900);
  }

  /* Menu Acordeão */
  .menu-accordion {
    width: 100%;
  }

  .menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-radius: 10px;
    color: var(--green-900);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.3px;
    background: transparent;
    border: none;
    border-left: 3px solid transparent;
    cursor: pointer;
    width: 100%;
    text-align: left;
    transition:
      background 0.16s ease,
      border-color 0.16s ease,
      color 0.16s ease;
  }

  .accordion-trigger {
    padding: 14px 16px;
  }

  .accordion-icon {
    transition: transform 0.3s ease;
    flex-shrink: 0;
  }

  .accordion-trigger.active .accordion-icon {
    transform: rotate(180deg);
  }

  .accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border-left: 3px solid var(--green-200);
    margin: 0;
  }

  .accordion-content.active {
    max-height: 300px;
  }

  .submenu-item {
    display: block;
    padding: 10px 16px 10px 32px;
    color: var(--green-700);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 6px;
    transition: background 0.16s ease, color 0.16s ease;
  }

  @media (hover: hover) and (pointer: fine) {
    .mobile-menu-button:hover {
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
      border-color: var(--green-700);
    }

    .mobile-nav a:hover,
    .menu-item:hover {
      background: linear-gradient(90deg, var(--green-50) 0%, transparent 100%);
      border-left-color: var(--green-600);
    }

    .mobile-nav a.is-active:hover {
      color: #fff;
      background: var(--green-800);
      border-left-color: var(--green-900);
    }

    .submenu-item:hover {
      background: var(--green-50);
    }
  }

  .header-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
  }

  .materials-filters-grid {
    grid-template-columns: 1fr;
  }

  .materials-filters-head,
  .materials-list-head {
    align-items: stretch;
    flex-direction: column;
  }

  .materials-filters {
    padding: 0.85rem;
  }

  .materials-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.2rem;
  }

  .brand {
    min-width: 0;
  }

  .brand strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-menu-button {
    justify-self: end;
  }

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

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

  .sobre-grid,
  .material-card {
    grid-template-columns: 1fr;
  }

  .catalog-head,
  .actions-between {
    align-items: flex-start;
    flex-direction: column;
  }

  .catalog-note {
    width: 100%;
  }
}

@media (max-width: 768px) {
  html,
  body {
    overflow-x: hidden;
  }

  .container {
    width: min(100% - 1.5rem, var(--container));
  }

  .brand {
    --logo-smoke-x: 4px;
    --logo-smoke-y: 2px;
    --logo-smoke-size: 25px;
  }

  .brand img {
    width: 64px;
  }

  .brand strong {
    font-size: 0.95rem;
  }

  .brand span {
    display: none;
  }

  .hero {
    padding-top: 1rem;
  }

  .hero-box {
    padding: 1.15rem;
    border-radius: 18px;
    gap: 1.1rem;
    background-position: center;
  }

  .hero h1 {
    max-width: 12ch;
    font-size: 2.45rem;
    line-height: 1.08;
  }

  .hero-texto {
    max-width: 34ch;
    font-size: 1rem;
    line-height: 1.62;
  }

  .hero-actions,
  .contact-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .footer-inner,
  .footer-inner--home {
    display: flex;
    align-items: stretch;
    flex-direction: column;
    text-align: center;
  }

  .footer-inner > .tpolltech-credit {
    margin-left: 0;
    align-self: center;
  }

  .hero-actions a,
  .hero-actions button,
  .contact-actions a,
  .contact-actions button,
  .products-toolbar .btn,
  .products-toolbar #searchInput {
    width: 100%;
    justify-content: center;
  }

  .hero-proof span,
  .about-stats span {
    width: 100%;
    justify-content: center;
  }

  .hero-showcase {
    min-height: 300px;
  }

  .paper-stack {
    width: min(260px, 82%);
  }

  .sheet-title {
    font-size: 1.55rem;
  }

  .sheet-grid span {
    min-height: 58px;
    font-size: 1.45rem;
  }

  .hero-note {
    right: auto;
    left: 0.3rem;
    bottom: 22px;
    transform: rotate(-3deg);
  }

  .value-strip-inner,
  .products-grid,
  .steps-grid,
  .material-gallery-grid,
  .filters-grid {
    grid-template-columns: 1fr;
  }

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

  .value-strip-inner div {
    min-height: auto;
  }

  .section {
    padding: 3.1rem 0;
  }

  .section-head h2,
  .section-head h1,
  .contato-wrap h2 {
    font-size: 2rem;
  }

  .sobre-grid h2 {
    font-size: 1.9rem;
  }

  .products-toolbar {
    border-radius: 12px;
    padding: 0.85rem;
  }

  .toolbar-main {
    grid-template-columns: 1fr;
  }

  .btn.btn-clean,
  .btn-filter-toggle {
    width: 100%;
  }

  .advanced-filters.is-open {
    max-height: 520px;
  }

  .category-card {
    grid-template-columns: 1fr;
    min-height: 158px;
    gap: 0.65rem;
    padding: 0.8rem;
  }

  .category-arrow {
    display: none;
  }

  .category-content h3 {
    font-size: 1.08rem;
  }

  .check-filters {
    gap: 0.5rem;
  }

  .check-filters label {
    width: 100%;
    justify-content: flex-start;
  }

  .advanced-filter-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .product-footer {
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
  }

  .product-actions {
    width: 100%;
    min-width: 0;
    grid-template-columns: 1fr;
  }

  .btn-buy,
  .btn-outline {
    width: 100%;
  }

  /* Home mobile: acervo mais compacto, com dois materiais por linha. */
  #destaques #productsGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    align-items: stretch;
  }

  #destaques #productsGrid .product-card {
    border-top-width: 3px;
    border-radius: 12px;
  }

  #destaques #productsGrid .product-image {
    height: auto;
    aspect-ratio: 4 / 5;
  }

  #destaques #productsGrid .product-badges,
  #destaques #productsGrid .product-category,
  #destaques #productsGrid .product-card p,
  #destaques #productsGrid .product-chips,
  #destaques #productsGrid .product-price {
    display: none;
  }

  #destaques #productsGrid .product-body {
    padding: 0.7rem;
  }

  #destaques #productsGrid .product-card h3 {
    order: 1;
    min-height: calc(2 * 1.2em);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.22;
    -webkit-line-clamp: 2;
  }

  #destaques #productsGrid .product-trail-mobile {
    order: 2;
    display: block;
    min-height: calc(2 * 1.25em);
    margin-top: 0.35rem;
    color: var(--text-soft);
    font-size: 0.69rem;
    font-weight: 800;
    line-height: 1.3;
  }

  #destaques #productsGrid .btn-cart-add {
    order: 3;
    min-height: 44px;
    margin-top: 0.6rem;
    padding: 0.46rem 0.38rem;
    border-radius: 8px;
    font-size: 0.74rem;
    line-height: 1.15;
  }

  #destaques #productsGrid .product-footer {
    order: 4;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.35rem;
    margin-top: 0.45rem;
    padding-top: 0.45rem;
    border-top: 1px solid rgba(220, 229, 207, 0.9);
  }

  #destaques #productsGrid .product-footer > span:empty {
    display: none;
  }

  #destaques #productsGrid .product-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.3rem;
  }

  #destaques #productsGrid .btn-buy,
  #destaques #productsGrid .btn-outline {
    min-height: 40px;
    padding: 0.38rem 0.24rem;
    border-radius: 7px;
    font-size: 0.72rem;
    line-height: 1.12;
  }

  #destaques #productsGrid .card-recommend-btn {
    width: 100%;
    min-height: 36px;
    justify-content: center;
    align-self: stretch;
    margin: 0;
    padding: 0.36rem 0.28rem;
    border: 1px solid rgba(220, 229, 207, 0.94);
    background: #fafcf6;
    font-size: 0.72rem;
  }

  #destaques #productsGrid .card-recommend-btn svg {
    width: 12px;
    height: 12px;
  }

  #destaques #productsGrid .skeleton-product-body {
    padding: 0.7rem;
    gap: 0.5rem;
  }

  #destaques #productsGrid .skeleton-product-body .skeleton-line--eyebrow,
  #destaques #productsGrid .skeleton-product-body .skeleton-description,
  #destaques #productsGrid .skeleton-product-body .skeleton-chips,
  #destaques #productsGrid .skeleton-product-body .skeleton-price {
    display: none;
  }

  #destaques #productsGrid .skeleton-product-body .skeleton-line--title {
    width: 92%;
    height: 1rem;
  }

  #destaques #productsGrid .skeleton-product-body .skeleton-line--title.skeleton-line--medium {
    width: 68%;
  }

  #destaques #productsGrid .skeleton-product-body .skeleton-button--wide {
    height: 44px;
    margin-top: 0.15rem;
  }

  #destaques #productsGrid .skeleton-product-body .skeleton-footer {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  #destaques #productsGrid .skeleton-product-body .skeleton-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.3rem;
  }

  #destaques #productsGrid .skeleton-product-body .skeleton-actions .skeleton-button {
    width: 100%;
    height: 40px;
  }

  #destaques #productsGrid .skeleton-product-body .skeleton-recommend {
    width: 100%;
    height: 36px;
  }

  .skeleton-steps {
    grid-template-columns: 1fr;
  }

  .material-content {
    padding: 0;
  }

  .material-buy {
    align-items: stretch;
    flex-direction: column;
  }

  .pix-modal {
    padding: 0.55rem;
    align-items: end;
  }

  .pix-dialog {
    max-height: 94vh;
    border-radius: 14px 14px 0 0;
  }

  .pix-dialog-grid {
    grid-template-columns: 1fr;
  }

  .pix-qr-panel,
  .pix-info-panel {
    padding: 1rem;
  }

  .pix-info-panel h2 {
    font-size: 1.55rem;
  }

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

  .pix-actions .btn {
    width: 100%;
  }

  .payment-status-page {
    padding: 1.5rem 0;
  }

  .payment-status-panel {
    grid-template-columns: 1fr;
  }

  .payment-status-actions {
    flex-direction: column;
  }

  .payment-status-actions .btn {
    width: 100%;
  }

  .footer-inner {
    min-height: 0;
    padding: 0.9rem 0;
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-inner p,
  .materials-page-head p {
    overflow-wrap: anywhere;
  }

  .whatsapp-float {
    right: 14px;
    bottom: 14px;
    width: 56px;
    height: 56px;
  }

  /* Mesmos offsets e tamanho do WhatsApp no mobile; a altura empilhada vem do --cart-fab-bottom. */
  .cart-fab {
    right: 14px;
    bottom: var(--cart-fab-bottom, 14px);
    width: 56px;
    height: 56px;
  }
}

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

  .product-image {
    height: 205px;
  }
}

@media (max-width: 420px) {
  .mobile-menu-button span {
    display: none;
  }

  .mobile-menu-button {
    width: 44px;
    height: 44px;
    justify-content: center;
    padding: 0;
    margin-right: 0.2rem;
    transform: none;
  }

  .hero-tag {
    width: 100%;
    justify-content: center;
    line-height: 1.25;
    text-align: center;
    white-space: normal;
  }

  .hero h1 {
    font-size: 2.14rem;
  }

  .section-head h2,
  .section-head h1,
  .contato-wrap h2 {
    font-size: 1.82rem;
  }

  .section-head p:not(.section-kicker) {
    font-size: 0.98rem;
  }

  .hero-texto {
    max-width: 30ch;
  }

  .hero-showcase {
    min-height: 260px;
  }

  .category-card {
    grid-template-columns: 1fr;
  }

  .product-body,
  .step-card,
  .sobre-card {
    padding: 0.9rem;
  }

  .product-image {
    height: 190px;
  }

  .security-badge {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
    padding: 1.5rem;
  }

  .security-icon {
    width: 48px;
    height: 48px;
  }

  .security-content h3 {
    font-size: 1.2rem;
  }

  .security-features {
    justify-content: center;
    gap: 1rem;
  }

  .feature {
    font-size: 0.85rem;
  }

  .payment-security {
    padding: 2rem 0;
    margin: 2rem 0 0;
  }
}

a,
button,
summary,
label,
select,
[role="button"],
.btn {
  cursor: url("../assets/cursors/cursor-pointer-estacao.svg") 6 4, pointer;
}

input,
textarea,
[contenteditable="true"] {
  cursor: text;
}


@media (prefers-reduced-motion: reduce) {
  .mobile-nav,
  .accordion-content,
  .accordion-icon {
    transition: none !important;
  }
}

/* ---------- Direção editorial: responsividade ---------- */
@media (max-width: 1120px) {
  .steps-journey--fresh {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .step-card--journey,
  .step-card--journey:last-child,
  .step-card--journey:not(:first-child):not(:last-child) {
    padding: 1.25rem 1.25rem 1.35rem 0;
  }

  .step-card--journey:nth-child(odd) {
    border-right: 1px solid rgba(84, 114, 60, 0.16);
  }

  .step-card--journey:nth-child(even) {
    padding-left: 1.25rem;
    border-right: 0;
  }

  .step-card--journey:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(84, 114, 60, 0.16);
  }

  .home-heart-shell,
  .home-community-panel,
  .about-process-grid,
  .about-hero-grid {
    grid-template-columns: 1fr;
  }

  .home-community-copy h2,
  .about-process-copy h2 {
    max-width: 16ch;
  }

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

  .about-value-card {
    padding: 1.2rem 1.2rem 1.2rem 0;
    border-bottom: 1px solid rgba(84, 114, 60, 0.16);
  }

  .about-value-card:nth-child(even) {
    padding-left: 1.2rem;
    border-right: 0;
  }

  .about-value-card:nth-child(n + 3) {
    border-bottom: 0;
  }

  .about-note {
    max-width: 680px;
  }
}

@media (max-width: 768px) {
  .steps-journey--fresh {
    grid-template-columns: 1fr;
  }

  .step-card--journey,
  .step-card--journey:last-child,
  .step-card--journey:not(:first-child):not(:last-child),
  .step-card--journey:nth-child(even) {
    min-height: 0;
    padding: 1.2rem 0;
    border-right: 0;
    border-bottom: 1px solid rgba(84, 114, 60, 0.16);
  }

  .step-card--journey:last-child {
    border-bottom: 0;
  }

  .journey-callout {
    align-items: stretch;
    flex-direction: column;
    border-top: 0;
  }

  .journey-callout .btn {
    width: 100%;
  }

  .home-heart-actions,
  .about-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .home-heart-actions .btn,
  .about-hero-actions .btn {
    width: 100%;
  }

  .home-heart-copy h2,
  .home-community-copy h2,
  .about-hero-copy h1,
  .about-process-copy h2 {
    max-width: none;
  }

  .home-values-grid {
    margin-top: 0.4rem;
  }

  .community-action-card {
    grid-template-columns: 30px minmax(0, 1fr) auto;
  }

  .home-trust-grid {
    grid-template-columns: 1fr;
  }

  .home-trust-grid > div,
  .home-trust-grid > div:not(:first-child),
  .home-trust-grid > div:last-child {
    padding: 1rem 0;
    border-right: 0;
    border-bottom: 1px solid rgba(84, 114, 60, 0.16);
  }

  .home-trust-grid > div:last-child {
    border-bottom: 0;
  }

  .about-values-grid {
    grid-template-columns: 1fr;
  }

  .about-value-card,
  .about-value-card:not(:first-child),
  .about-value-card:nth-child(even),
  .about-value-card:nth-child(n + 3),
  .about-value-card:last-child {
    padding: 1.1rem 0;
    border-right: 0;
    border-bottom: 1px solid rgba(84, 114, 60, 0.16);
  }

  .about-value-card:last-child {
    border-bottom: 0;
  }

  .about-process-list article {
    padding: 1.15rem 0;
  }

  .about-closing-card {
    grid-template-columns: 1fr;
    align-items: start;
    padding: 2.5rem 0;
  }

  .about-closing-card .btn {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .community-action-card {
    grid-template-columns: 28px minmax(0, 1fr);
  }

}

