/* Ajustes mobile dedicados (se carga después de theme.css) */

@media (max-width: 980px) {
  .container {
    width: min(var(--container), calc(100% - 24px));
  }

  .section {
    padding: 40px 0;
  }

  .section__head h2 {
    font-size: 30px;
    line-height: 1.15;
  }

  .grid--offers,
  .grid--products,
  .grid--cats {
    gap: 14px;
  }

  .card {
    border-radius: 14px;
  }

  .card__body {
    padding: 12px;
  }
}

@media (max-width: 768px) {
  body.menu-open {
    overflow: hidden;
  }

  .topbar__inner {
    padding: 8px 0;
    gap: 8px;
  }

  .badge {
    font-size: 12px;
    padding: 5px 9px;
  }

  .topbar__right {
    gap: 8px;
    justify-content: flex-end;
  }

  .topbar__link {
    font-size: 12px;
  }

  .topbar__social {
    width: 26px;
    height: 26px;
    font-size: 1rem;
  }

  .navwrap__inner {
    padding: 10px 0;
  }

  .hamburger {
    position: relative;
    z-index: 120;
    width: 40px;
    height: 40px;
    padding: 8px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.04);
  }

  .hamburger span {
    transition: transform 0.2s ease, opacity 0.2s ease;
    transform-origin: center;
  }

  .hamburger.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .hamburger.is-active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .brand img {
    height: 38px;
    max-height: 38px;
  }

  .btn--sm {
    padding: 9px 12px;
    font-size: 12px;
  }

  .nav {
    top: 96px;
    left: 0;
    right: 0;
    max-height: calc(100vh - 96px);
    overflow-y: auto;
    z-index: 110;
    background: #fff;
  }

  .nav__list {
    width: 100%;
    gap: 8px;
    padding: 14px 12px 18px;
  }

  .nav__list > li {
    width: 100%;
  }

  .nav__link {
    display: block;
    width: 100%;
    padding: 11px 12px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.04);
    font-size: 17px;
    line-height: 1.2;
  }

  .nav__list .sub-menu {
    margin-top: 6px;
    padding-left: 10px;
  }

  .navwrap__inner > .btn--whatsapp {
    display: none;
  }

  .hero,
  .hero__inner {
    min-height: auto;
  }

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

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

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

  .card__title {
    font-size: 15px;
  }

  .price {
    margin: 8px 0 10px;
  }

  .band {
    padding: 20px 0;
  }

  .band__item {
    padding: 14px;
  }

  .cta {
    padding: 28px 0;
  }

  .cta__inner {
    padding: 16px;
    border-radius: 14px;
  }

  .footer {
    padding-top: 28px;
  }

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

  .footer__brand img {
    max-width: 160px;
  }

  .post-type-archive-product ul.products,
  .woocommerce-shop ul.products,
  .single-product .related.products ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

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

  .section__head h2 {
    font-size: 24px;
  }

  .topbar__left {
    display: none;
  }

  .topbar__inner {
    justify-content: flex-end;
  }

  .nav {
    top: 88px;
    max-height: calc(100vh - 88px);
  }

  .btn--whatsapp {
    gap: 6px;
  }

  .btn--sm {
    padding: 8px 10px;
    font-size: 11px;
  }

  .grid--offers,
  .grid--products,
  .grid--cats,
  .post-type-archive-product ul.products,
  .woocommerce-shop ul.products,
  .single-product .related.products ul.products {
    grid-template-columns: 1fr;
  }

  .card--cat {
    aspect-ratio: 16 / 10;
  }

  .card--product img,
  .card--offer img {
    aspect-ratio: 4 / 3;
  }

  .float-whatsapp {
    width: 52px;
    height: 52px;
    right: 12px;
    bottom: 12px;
  }
}
