/* 1280px */
@media (max-width: 1280px) {
  .navbar__search input {
    width: 180px;
  }

  .navbar__search input:focus {
    width: 200px;
  }

  .products-grid:not(.products-grid--catalog):not(.products-grid--featured),
  .categories__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 1024px */
@media (max-width: 1024px) {
  .navbar__menu {
    display: none;
  }

  .navbar__search {
    display: none;
  }

  .navbar__mobile.is-open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1001;
    background: var(--white);
    box-shadow: var(--shadow-md);
    border-top: 1px solid var(--border-soft);
    max-height: calc(100dvh - 56px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .navbar__mobile .navbar__link {
    display: block;
    padding: 0.75rem 1rem;
  }

  .hero--slider {
    min-height: clamp(420px, 70vh, 560px);
    text-align: center;
  }

  .hero__inner {
    margin-top: auto;
  }

  .hero__content {
    max-width: 100%;
    margin-inline-start: 0;
  }

  .hero__description {
    margin-inline: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__overlay {
    background:
      linear-gradient(180deg, rgba(245, 241, 232, 0) 0%, rgba(245, 241, 232, 0.04) 40%, rgba(245, 241, 232, 0.42) 74%, rgba(245, 241, 232, 0.62) 100%);
  }

  .hero__slide img {
    object-position: center top;
  }

  .hero__dots {
    bottom: 1.25rem;
  }

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

  .products-grid:not(.products-grid--catalog):not(.products-grid--featured),
  .categories__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .site-footer__top {
    grid-template-columns: repeat(2, 1fr);
  }

  .site-footer__benefits {
    grid-template-columns: repeat(2, 1fr);
  }

  .newsletter__inner {
    flex-direction: column;
    text-align: center;
  }

  .newsletter__content {
    flex-direction: column;
  }

  .newsletter__form {
    width: 100%;
    max-width: 100%;
    flex-direction: column;
  }
}

/* 768px */
@media (max-width: 768px) {
  .topbar__benefits {
    display: none;
  }

  .topbar__inner {
    justify-content: center;
  }

  .navbar__action span:not(.navbar__cart-badge) {
    display: none;
  }

  .benefits-bar__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem 0.5rem;
  }

  .categories__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }

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

  .products-grid:not(.products-grid--catalog):not(.products-grid--featured) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .site-footer__top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .site-footer__intro {
    max-width: none;
  }

  .site-footer__benefits {
    grid-template-columns: 1fr;
  }

  .site-footer__bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* 480px */
@media (max-width: 480px) {
  .container,
  .container-wide {
    width: min(100% - 1rem, var(--container-max));
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .product-card__footer {
    flex-direction: column;
    align-items: stretch;
  }

  .product-card__actions {
    justify-content: center;
  }
}

/* ===== Mejoras móvil — sitio web Chakön ===== */
html {
  -webkit-text-size-adjust: 100%;
}

.chakon-front {
  overflow-x: clip;
}

body.menu-open {
  overflow: hidden;
}

img,
video,
svg {
  max-width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  :root {
    --section-py: clamp(1.35rem, 4vw, 2rem);
    --section-gap: 1rem;
  }

  .container,
  .container-wide,
  .container-narrow {
    width: min(100% - 1.25rem, var(--container-max));
  }

  .section-header {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .section-header .btn,
  .section-header .section-link {
    width: 100%;
    justify-content: center;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .navbar__inner {
    gap: 0.5rem;
    padding: 0.55rem 0;
  }

  .navbar__logo img {
    height: 34px;
  }

  .navbar__actions {
    gap: 0.15rem;
  }

  .navbar__action {
    min-width: 44px;
    min-height: 44px;
    padding: 0.5rem;
    justify-content: center;
  }

  .navbar__action--account span {
    display: none;
  }

  .navbar__welcome {
    text-align: center;
    font-size: 0.75rem;
    padding-bottom: 0.35rem;
  }

  .hero--slider {
    min-height: clamp(360px, 62vh, 480px);
  }

  .hero__inner {
    padding-block: clamp(1.75rem, 7vw, 2.75rem);
    margin-top: auto;
  }

  .hero__content {
    max-width: 100%;
    margin-inline-start: 0;
  }

  .hero__title {
    font-size: clamp(1.75rem, 7vw, 2.35rem);
  }

  .benefits-bar {
    padding: 1rem 0;
  }

  .benefits-bar__item {
    min-width: 0;
  }

  .newsletter {
    padding: 1.35rem;
    border-radius: var(--radius-lg);
  }

  .newsletter__content {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .newsletter__text {
    font-size: 0.9375rem;
  }

  .newsletter__form {
    width: 100%;
  }

  .newsletter__form .btn {
    width: 100%;
  }

  .newsletter__leaf {
    display: none;
  }

  .featured-offer__details {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .featured-offer__discount-block,
  .featured-offer__timer-block,
  .featured-offer__checkout {
    width: 100%;
  }

  .featured-offer__actions .btn {
    width: 100%;
  }

  .category-card {
    aspect-ratio: 1 / 1;
  }

  .catalog-hero__content h1,
  .blog-hero__content h1,
  .category-single-hero__title {
    font-size: clamp(1.75rem, 7vw, 2.25rem);
  }

  .page-single__content {
    overflow-wrap: anywhere;
  }

  .page-single__content table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .product-single__prices {
    padding: 1rem;
  }

  .product-single__qty {
    align-self: stretch;
    justify-content: center;
  }

  .auth-card {
    padding: 1.25rem;
  }

  .account-main__actions {
    flex-direction: column;
  }

  .account-main__btn-submit {
    width: 100%;
    min-width: 0;
  }

  .whatsapp-float {
    bottom: max(1rem, env(safe-area-inset-bottom, 1rem));
    right: max(1rem, env(safe-area-inset-right, 1rem));
    width: 52px;
    height: 52px;
  }

  .site-footer__legal {
    flex-direction: column;
    gap: 0.65rem;
    align-items: center;
  }
}

@media (max-width: 640px) {
  .topbar__item--hide-sm {
    display: none;
  }

  .navbar__mobile-cta {
    grid-template-columns: 1fr;
  }

  .product-card--catalog .product-card__footer--catalog-premium {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container,
  .container-wide,
  .container-narrow {
    width: min(100% - 1rem, var(--container-max));
  }

  .topbar__item--hide-md {
    display: none;
  }

  .topbar__inner {
    gap: 0.5rem;
  }

  .topbar__social .ch-icon {
    font-size: 0.9375rem;
  }

  .btn {
    padding: 0.8125rem 1.25rem;
  }

  .btn-sm {
    padding: 0.625rem 1rem;
  }

  .benefits-bar__grid {
    gap: 0.5rem 0.35rem;
  }

  .benefits-bar__text {
    font-size: 0.625rem;
    line-height: 1.2;
  }

  .site-footer__benefit {
    justify-content: center;
    text-align: center;
  }

  .site-footer__logo {
    width: 118px;
  }
}
