/* AJUSTES COMPLETOS PARA CELULAR — Armazém Vila Brasil */

@media (max-width: 800px) {

  header {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    padding: 18px 5% 20px !important;
    gap: 10px !important;
    min-height: auto !important;
    overflow: visible !important;
  }

  header .brand {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 0 !important;
  }

  header .brand img.logo,
  header .brand .logo {
    height: 70px !important;
    width: auto !important;
  }

  header nav {
    position: static !important;
    display: flex !important;
    justify-content: center !important;
    gap: 16px !important;
    font-size: 13px !important;
    flex-wrap: wrap !important;
    margin-top: 4px;
  }

  header::after {
    content: "Produtos naturais selecionados para cuidar da sua rotina" !important;
    position: static !important;
    display: block !important;
    transform: none !important;
    left: auto !important;
    top: auto !important;
    white-space: normal !important;
    font-size: 14px !important;
    line-height: 1.35;
    margin-top: 8px;
    padding: 0 10px;
  }

  header::before {
    content: "♡ Naturalmente melhor ♡" !important;
    position: static !important;
    display: block !important;
    transform: none !important;
    left: auto !important;
    top: auto !important;
    margin-top: 4px;
  }

  body {
    background-attachment: scroll !important;
  }

  main {
    padding: 0 14px;
  }

  .hero {
    padding: 20px;
    border-radius: 14px;
  }

  .hero h1 {
    font-size: 24px;
    line-height: 1.25;
  }

  .hero p {
    font-size: 14px;
  }

  .eyebrow {
    font-size: 12px;
  }

  .section-title h2 {
    font-size: 19px;
  }

  .categories {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
  }

  .categories .category {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 13px;
    padding: 7px 14px;
  }

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

  .card {
    padding: 14px;
  }

  .card img {
    height: 180px;
  }

  .card h3 {
    font-size: 17px;
  }

  .card p {
    font-size: 13.5px;
  }

  .price {
    font-size: 17px;
  }

  .product-quantity {
    margin: 10px 0;
  }

  .card button {
    width: 100%;
    padding: 12px;
    font-size: 14px;
  }

  .cart-page h1,
  .checkout-page h1 {
    font-size: 26px;
    text-align: center;
  }

  .cart-item {
    grid-template-columns: 70px 1fr;
    padding: 12px;
    gap: 12px;
  }

  .cart-item img {
    width: 70px;
    height: 62px;
  }

  .cart-item h3 {
    font-size: 15px;
  }

  .cart-item p {
    font-size: 12.5px;
  }

  .quantity {
    gap: 8px;
    flex-wrap: wrap;
  }

  .quantity span {
    font-size: 12.5px;
  }

  .cart-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
  }

  .cart-total {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .cart-total strong {
    font-size: 20px;
    text-align: center;
  }

  .cart-total .btn {
    width: 100%;
    text-align: center;
    padding: 13px;
  }

  .checkout-form {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .checkout-form label {
    font-size: 14px;
  }

  .checkout-form input,
  .checkout-form select,
  .checkout-form textarea {
    font-size: 14px;
    padding: 11px;
  }

  .checkout-form > button {
    width: 100%;
    padding: 14px;
    font-size: 15px;
  }

  .admin-page {
    padding: 0 10px;
  }

  .admin-page h1 {
    font-size: 22px;
  }

  .admin-page .section-title {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    text-align: center;
  }

  .admin-page table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    font-size: 13px;
  }

  .admin-page .panel {
    padding: 16px;
  }

  .site-footer {
    padding: 22px 16px 26px;
    font-size: 12px;
  }
}

@media (max-width: 420px) {
  .hero h1 {
    font-size: 21px;
  }

  .card img {
    height: 150px;
  }

  header .brand img.logo,
  header .brand .logo {
    height: 60px !important;
  }
}
