/* ==========================================================================
   Responsivo
   ========================================================================== */

@media (max-width: 1180px) {
  .category-grid,
  .product-grid--home {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .product-grid,
  .gift-grid,
  .info-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .product-row {
    grid-template-columns: repeat(3, 1fr);
  }

  .row-arrow {
    display: none;
  }

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

@media (max-width: 980px) {
  html {
    scroll-padding-top: 120px;
  }

  .topbar__inner {
    justify-content: center;
    text-align: center;
    flex-wrap: wrap;
    padding: 6px 0;
  }

  .topbar__right {
    display: none;
  }

  .header-main {
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "toggle logo actions"
      "search search search";
    gap: 10px 12px;
  }

  .logo img {
    width: 96px;
    height: 74px;
    margin-inline: auto;
  }

  .header-action > span:not(.badge) {
    display: none;
  }

  .header-actions {
    gap: 12px;
  }

  .nav-list {
    display: none;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
  }

  .nav-bar {
    position: relative;
  }

  .nav-bar .btn--yellow {
    margin-left: auto;
  }

  .nav-bar.is-open .nav-list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    left: 16px;
    right: 16px;
    top: 100%;
    background: var(--color-white);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    padding: 10px;
    z-index: 40;
  }

  .hero__slide {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 22px 20px 44px;
    gap: 8px;
  }

  .hero__aside {
    align-items: center;
    width: 100%;
  }

  .hero__benefits {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    max-width: none;
  }

  .hero__title {
    font-size: clamp(1.45rem, 7vw, 2rem);
    -webkit-text-stroke: 0;
  }

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

  .promos,
  .home-cta,
  .home-banners,
  .home-promos,
  .listing,
  .product-detail,
  .cart-layout,
  .checkout-layout,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .filters {
    position: static;
  }

  .departments__menu {
    width: min(94vw, 520px);
  }

  .departments.is-open .departments__menu {
    grid-template-columns: 1fr 1fr;
  }

  .campaign-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-banner__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner__actions {
    justify-content: stretch;
  }

  .cookie-banner__actions .btn {
    flex: 1 1 100%;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 20px, var(--container));
  }

  .topbar {
    font-size: 0.74rem;
  }

  .topbar__left .topbar__item:last-child {
    display: none;
  }

  .header-main {
    grid-template-columns: auto 1fr auto;
    padding: 4px 0 2px;
  }

  .logo img {
    width: 78px;
    height: 60px;
  }

  .search {
    height: 44px;
  }

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

  .search button {
    width: 46px;
    height: 44px;
  }

  .nav-bar {
    gap: 6px;
    padding-bottom: 8px;
  }

  .nav-bar .btn {
    min-height: 38px;
    padding: 0 12px;
    font-size: 0.8rem;
    white-space: nowrap;
  }

  .nav-bar .btn--yellow {
    padding: 0 10px;
    font-size: 0.72rem;
  }

  .hero {
    min-height: 0;
    border-radius: 18px;
    margin-top: 4px;
  }

  .hero__title {
    display: none;
  }

  .hero__brand img {
    width: min(170px, 62%);
  }

  .hero__arrow {
    display: none;
  }

  .hero__dots {
    bottom: 8px;
  }

  .hero__bubble {
    font-size: 0.86rem;
    max-width: min(100%, 260px);
    margin-inline: auto;
    padding: 10px 14px;
  }

  .hero__benefits {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .hero__benefit {
    font-size: 0.56rem;
    padding: 7px 2px;
    border-radius: 12px;
    line-height: 1.15;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .hero__slide {
    padding: 12px 10px 28px;
  }

  .section-head {
    gap: 8px;
    margin-bottom: 12px;
  }

  .section-title {
    font-size: 1.15rem;
    line-height: 1.2;
  }

  .section-link {
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 0.82rem;
  }

  .category-grid,
  .product-row,
  .product-grid,
  .product-grid--home,
  .gift-grid,
  .info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

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

  .category-card {
    padding: 10px 6px 12px;
    border-radius: 16px;
  }

  .category-card__art {
    width: 58px;
    height: 58px;
  }

  .category-card__art img {
    width: 46px;
    height: 46px;
  }

  .category-card__name {
    font-size: 0.72rem;
  }

  .benefits {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 8px 0;
  }

  .footer-grid,
  .footer-main {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .banner-card,
  .promo-card {
    min-height: 0;
  }

  .banner-card {
    padding: 18px;
  }

  .promo-card {
    padding: 16px 18px;
  }

  .promo-card h3 {
    font-size: 1.02rem;
  }

  .product-grid--home .product-card,
  .product-grid .product-card {
    padding: 10px 8px 12px;
    min-width: 0;
  }

  .product-card__name {
    overflow-wrap: anywhere;
  }

  .product-card__actions {
    min-width: 0;
  }

  .product-grid--home .product-card__actions .btn,
  .product-grid .product-card__actions .btn {
    min-height: 34px;
    min-width: 0;
    flex: 1;
    font-size: 0.72rem;
    padding: 0 6px;
  }

  .product-grid--home .fav-btn,
  .product-grid .fav-btn {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
  }

  .departments__menu {
    left: 0;
    right: 0;
    width: auto;
    max-height: min(70vh, 520px);
    overflow: auto;
  }

  .cookie-banner {
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 14px;
    border-radius: 18px;
  }

  .cookie-panel__actions {
    flex-wrap: wrap;
  }

  .cookie-panel__actions .btn,
  .cookie-banner__actions .btn {
    min-height: 40px;
  }

  .cookie-banner__title {
    font-size: 1rem;
  }

  .campaign-banner {
    padding: 16px;
    border-radius: 18px;
  }

  .page-hero:has(+ .prose),
  .container.prose {
    max-width: none;
  }

  .map-frame {
    min-height: 240px;
  }

  .footer-policies {
    justify-content: center;
    gap: 8px 12px;
    text-align: center;
  }

  .product-detail__image {
    min-height: 220px;
  }

  .cart-item {
    grid-template-columns: 72px 1fr;
    gap: 10px;
  }

  .qty-control {
    justify-content: flex-start;
  }
}
