/* =========================================
   RESPONSIVIDADE - SERRA VERDE GRAMAS
========================================= */

/* ===== DESKTOP MENOR / NOTEBOOK ===== */
@media (max-width: 1180px) {
  .page {
    width: 100%;
    max-width: 1100px;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 18px;
    margin: 18px auto;
  }

  .search {
    width: 100%;
    max-width: 420px;
  }

  .topbar {
    gap: 14px;
  }

  .topbar-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
  }

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

  .detail {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
    gap: 22px;
    align-items: start;
  }

  .detail-desc {
    width: 100%;
    max-width: 100%;
  }

  .detail-image {
    width: 100%;
    max-width: 420px;
    height: 380px;
  }

  .footer-main-layout {
    gap: 24px;
  }

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

/* ===== TABLET ===== */
@media (max-width: 1024px) {
  .page {
    width: 100%;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 16px;
    margin: 16px auto;
  }

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

  .search {
    max-width: 360px;
    height: 40px;
  }

  .topbar {
    align-items: flex-start;
  }

  .topbar-btns {
    width: 100%;
    justify-content: flex-start;
  }

  .cart-btn {
    min-height: 40px;
    padding: 0 14px;
  }

  .hero {
    height: 140px;
  }

  .hero-title {
    font-size: 24px;
  }

  .hero-subtitle {
    font-size: 12px;
  }

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

  .card {
    min-width: 0;
  }

  .thumb {
    width: 100%;
    height: 210px;
  }

  .detail {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .detail-right {
    justify-self: start;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .detail-image {
    width: 100%;
    max-width: 460px;
    height: 320px;
    object-fit: cover;
    margin: 0 auto;
  }

  .detail-desc {
    width: 100%;
    max-width: 100%;
  }

  .actions {
    flex-wrap: wrap;
    gap: 12px 16px;
  }

  .contato-bg {
    padding: 28px 12px;
    min-height: auto;
  }

  .contato-card {
    max-width: 100%;
    padding: 28px 24px;
  }

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

  .footer-content-right {
    width: 100%;
  }

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

  .em-construcao {
    padding: 60px 18px;
  }
}

/* ===== TABLET PEQUENO / TRANSIÇÃO PARA MOBILE ===== */
@media (max-width: 820px) {
  .page {
    grid-template-columns: 1fr;
    padding: 0 16px;
  }

  .sidebar {
    position: static;
    top: auto;
    order: 2;
    margin-top: 8px;
  }

  main {
    order: 1;
    min-width: 0;
  }

  .topbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .search {
    max-width: 100%;
    width: 100%;
  }

  .topbar-btns {
    justify-content: stretch;
  }

  .topbar-btns .cart-btn {
    flex: 1;
    justify-content: center;
  }

  .hero {
    height: 132px;
  }

  .footer-columns-grid {
    grid-template-columns: 1fr;
  }

  .contact a {
    word-break: break-word;
  }
}

/* ===== MOBILE ===== */
@media (max-width: 720px) {
  .page {
    width: 100%;
    grid-template-columns: 1fr;
    margin: 12px auto;
    padding: 0 14px;
    gap: 14px;
  }

  .sidebar {
    position: static;
    top: auto;
  }

  .brand {
    margin-bottom: 14px;
  }

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

  #switch {
    margin: 14px auto 8px;
  }

  .filter-group,
  .contact,
  .about {
    margin-top: 18px;
    padding-top: 12px;
  }

  .filters li a,
  .contact a,
  .about p {
    font-size: 13px;
    line-height: 1.5;
  }

  .topbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin: 8px 0 10px;
  }

  .topbar-btns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
  }

  .search {
    width: 100%;
    max-width: 100%;
    height: 42px;
    border-radius: 22px;
  }

  .search input {
    font-size: 14px;
    padding: 0 40px 0 14px;
  }

  .cart-btn {
    width: 100%;
    min-height: 42px;
    justify-content: center;
    border-radius: 12px;
    margin-top: 0;
    transform: none;
    text-align: center;
  }

  .hero {
    height: 108px;
    border-radius: 14px;
  }

  .hero-inner {
    padding: 16px;
  }

  .hero-title {
    font-size: 18px;
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 11px;
    line-height: 1.4;
  }

  .grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .card,
  .card-link .card {
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 14px;
    min-width: 0;
  }

  .thumb {
    width: 120px;
    min-width: 120px;
    height: 120px;
    border-radius: 10px;
    overflow: hidden;
  }

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

  .card-body {
    flex: 1;
    min-width: 0;
    padding: 0;
    background: transparent;
  }

  .title {
    font-size: 15px;
    line-height: 1.25;
    margin-bottom: 4px;
  }

  .subtitle {
    font-size: 12px;
    margin-bottom: 8px;
    line-height: 1.4;
  }

  .price {
    font-size: 15px;
  }

  .btn-vermais {
    margin-top: 8px;
    display: inline-flex;
  }

  .btn-voltar {
    font-size: 12px;
    padding: 8px 12px;
    border-radius: 999px;
  }

  .detail {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .detail-left,
  .detail-right {
    width: 100%;
  }

  .detail-category {
    font-size: 11px;
  }

  .detail-title {
    font-size: 22px;
    line-height: 1.15;
  }

  .detail-sku {
    font-size: 12px;
  }

  .detail-price {
    font-size: 28px;
    display: block;
    line-height: 1.1;
  }

  .detail-unit {
    font-size: 16px;
  }

  .detail-btn {
    width: 100%;
    justify-content: center;
    padding: 11px 16px;
    font-size: 13px;
    margin-top: 12px;
    text-align: center;
  }

  #btn-favoritar {
    width: 100%;
    justify-content: center;
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 10px;
  }

  .actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 10px 0 0;
  }

  .actions .action {
    width: 100%;
    justify-content: center;
    margin-top: 0;
    padding: 10px 12px;
    border-radius: 10px;
    text-align: center;
  }

  .action {
    font-size: 12px;
  }

  .action-icon {
    font-size: 16px;
  }

  .detail-desc {
    width: 100%;
    max-width: 100%;
    font-size: 14px;
    line-height: 1.7;
    margin-top: 14px;
  }

  .detail-right {
    justify-self: center;
    display: flex;
    justify-content: center;
  }

  .detail-image {
    width: 100%;
    max-width: 100%;
    height: 260px;
    object-fit: cover;
    margin: 0 auto;
    border-radius: 12px;
  }

  .detail-subtitle {
    margin-top: 24px;
  }

  .see-more-wrap {
    display: flex;
    justify-content: flex-start;
  }

  .contato-bg {
    padding: 20px 0 10px;
    min-height: auto;
  }

  .contato-card {
    width: 100%;
    max-width: 100%;
    padding: 22px 16px;
    border-radius: 14px;
  }

  .contato-card-header {
    margin-bottom: 20px;
  }

  .contato-card-icon {
    font-size: 34px;
  }

  .contato-card-titulo {
    font-size: 20px;
    line-height: 1.2;
  }

  .contato-card-subtitulo {
    font-size: 13px;
    line-height: 1.5;
  }

  .input {
    height: 42px;
    border-radius: 14px;
    font-size: 14px;
  }

  .contato-textarea {
    min-height: 120px;
    height: 120px;
    padding: 12px;
  }

  .contato-submit {
    min-height: 44px;
  }

  .em-construcao {
    padding: 48px 10px;
    gap: 14px;
  }

  .construcao-icon {
    font-size: 52px;
  }

  .construcao-titulo {
    font-size: 22px;
    text-align: center;
  }

  .construcao-texto {
    font-size: 14px;
    line-height: 1.6;
  }

  .btn-voltar-loja {
    justify-content: center;
    text-align: center;
  }

  .site-footer {
    margin-top: 24px;
  }

  .footer-container {
    padding: 24px 16px;
  }

  .footer-main-layout {
    gap: 20px;
  }

  .footer-brand,
  .footer-column,
  .footer-content-right {
    text-align: left;
  }

  .footer-logo {
    max-width: 120px;
  }

  .footer-social-inline {
    flex-wrap: wrap;
    gap: 10px;
  }
}

/* ===== MOBILE PEQUENO ===== */
@media (max-width: 480px) {
  .page {
    padding: 0 12px;
  }

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

  .hero {
    height: 94px;
  }

  .hero-inner {
    padding: 14px;
  }

  .hero-title {
    font-size: 16px;
  }

  .hero-subtitle {
    font-size: 10px;
  }

  .card,
  .card-link .card {
    gap: 10px;
    align-items: flex-start;
  }

  .thumb {
    width: 96px;
    min-width: 96px;
    height: 96px;
  }

  .title {
    font-size: 14px;
  }

  .subtitle {
    font-size: 11px;
  }

  .price {
    font-size: 14px;
  }

  .detail-title {
    font-size: 19px;
  }

  .detail-price {
    font-size: 24px;
  }

  .detail-unit {
    font-size: 14px;
  }

  .detail-image {
    height: 220px;
  }

  .actions {
    grid-template-columns: 1fr;
  }

  .actions .action,
  #btn-favoritar,
  .detail-btn {
    width: 100%;
  }

  .contato-card {
    padding: 18px 14px;
  }

  .contato-card-titulo {
    font-size: 18px;
  }

  .contato-card-subtitulo {
    font-size: 12px;
  }

  .input {
    font-size: 13px;
  }

  .construcao-icon {
    font-size: 46px;
  }

  .construcao-titulo {
    font-size: 20px;
  }

  .btn-voltar-loja {
    width: 100%;
  }

  .footer-container {
    padding: 20px 12px;
  }
}


/* =========================================
   AJUSTES FINAIS - LOGO / SWITCH / FOOTER
   COLE NO FINAL DO responsividade.css
========================================= */

@media (max-width: 1024px) {
  .page {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 18px;
  }

  .sidebar {
    position: static;
    width: 100%;
    max-width: 100%;
    order: 1;
  }

  main {
    order: 2;
    min-width: 0;
  }

  .brand {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
  }

  .brand a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
  }

  .brand img {
    width: 120px;
    height: auto;
    max-width: 100%;
  }

  #switch {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px auto 18px;
  }

  .filters,
  .contact,
  .about {
    text-align: center;
  }

  .filters ul,
  .contact ul {
    padding-left: 0;
  }
}

@media (max-width: 768px) {
  .page {
    padding: 0 14px;
    gap: 16px;
  }

  .brand {
    margin-bottom: 10px;
  }

  .brand img {
    width: 98px;
    height: auto;
  }

  #switch {
    margin: 8px auto 16px;
    width: 64px;
  }

  .site-footer {
    padding: 28px 16px 22px;
    margin-top: 28px;
  }

  .footer-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
  }

  .footer-main-layout {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 100%;
  }

  .footer-brand {
    flex: none;
    width: 100%;
    align-items: center;
    text-align: center;
    gap: 14px;
  }

  .footer-logo {
    width: 130px;
    max-width: 100%;
    margin-top: 0;
    margin-bottom: 0;
  }

  .footer-tagline {
    max-width: 320px;
    margin: 0 auto;
  }

  .footer-social-wrapper {
    width: 100%;
  }

  .footer-social-inline {
    justify-content: center;
    flex-wrap: wrap;
    text-align: center;
  }

  .footer-content-right {
    width: 100%;
  }

  .footer-columns-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .footer-column {
    text-align: center;
  }

  .footer-column ul {
    align-items: center;
  }

  .disclaimer-text,
  .copyright {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .page {
    padding: 0 12px;
  }

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

  #switch {
    margin: 6px auto 14px;
    transform: scale(0.96);
  }

  .site-footer {
    padding: 24px 12px 18px;
  }

  .footer-main-layout {
    gap: 20px;
  }

  .footer-logo {
    width: 112px;
  }

  .footer-tagline,
  .footer-column ul li,
  .disclaimer-text {
    font-size: 12px;
    line-height: 1.6;
  }

  .footer-column h4 {
    font-size: 12px;
    margin-bottom: 10px;
  }

  .footer-social-inline {
    gap: 8px;
  }

  .footer-social-inline a {
    width: 34px;
    height: 34px;
  }
}