/* ==========================================================================
   RESPONSIVE DESIGN & BREAKPOINTS
   ========================================================================== */

/* Telas Grandes (>= 1920px) */
@media (min-width: 1920px) {
  .container {
    max-width: 1440px;
  }
}

/* Telas Desktop Padrão (1025px - 1919px) - Regra Oficial 75% */
@media (min-width: 1025px) and (max-width: 1919px) {
  .container {
    max-width: 75%;
  }
}

/* Telas Médias / Tablets (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
  .container {
    max-width: 1080px;
    padding: 0 1rem;
  }

  .nav .list > li > a,
  .nav .list > li > span {
    padding: 10px 6px;
    font-size: 0.8125rem;
  }

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

/* Dispositivos Móveis (<= 767px) */
@media (max-width: 767px) {
  .container {
    padding: 0 0.625rem; /* 10px */
  }

  /* Aplicação & Header Mobile */
  .application.with-message-line {
    padding-top: 190px;
  }

  .application:not(.with-message-line) {
    padding-top: 153px;
  }

  .header {
    top: 42px;
  }

  .header .line {
    height: auto;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }

  .header.fixed .line {
    height: auto;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }

  .header-menu {
    display: flex;
  }

  .block-logo img,
  .header-logo img {
    max-height: 36px;
  }

  .search-wrapper,
  .header-search-wrapper {
    margin: 0.5rem 0 0;
    width: 100%;
  }

  .input-search {
    height: 42px;
    padding: 0 46px 0 16px;
  }

  .account,
  .header-account {
    display: none;
  }

  /* Slideshow Mobile */
  .banner-desktop {
    display: none !important;
  }

  .banner-mobile {
    display: block !important;
  }

  .slide-image-desktop {
    display: none !important;
  }

  .slide-image-mobile {
    display: block !important;
  }

  .section-slideshow .prev,
  .section-slideshow .next,
  .slideshow-nav-btn {
    display: none !important;
  }

  .section-slideshow .swiper-container .dots,
  .section-slideshow .slideshow-dots {
    bottom: 16px;
  }

  /* Seções e Espaçamentos */
  .section-showcase,
  .section-banners-grid,
  .section-news,
  .section-brands,
  .section-newsletter {
    padding: 1.5rem 0;
  }

  /* Vitrines de Produtos Mobile: 2 Colunas */
  .list-product,
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .product,
  .product-card {
    padding: 0.35rem;
  }

  .product-info .product-name,
  .product-title {
    font-size: 0.8125rem;
    max-height: 38px;
    margin-bottom: 4px;
  }

  .product-prices,
  .product-price {
    min-height: 50px;
    margin-bottom: 0.5rem;
  }

  .product-price .current-price,
  .price-current {
    font-size: 0.9375rem;
  }

  .product-button,
  .btn-buy,
  .product-btn-buy {
    height: 42px;
    padding: 0 0.5rem;
    font-size: 0.8125rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Banners em Linha (4 Mini) no Mobile: 2x2 */
  .banner-line .container,
  .banners-line-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  /* Mosaico no Mobile: Empilhado */
  .section-banners-grid .\31-big-2-half,
  .section-banners-grid [class*="1-big-2-half"],
  .mosaic-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
  }

  /* Notícias no Mobile */
  .news-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* Telas grandes (1920x1080 etc.): os textos secundários de 12 a 14px ficavam
   pequenos demais. Sobem um degrau a partir de 1440px e outro a partir de 1800px.
   Abaixo de 1440px nada muda. Cards de produto e rodapé têm seus degraus próprios. */
@media (min-width: 1440px) {
  .top-bar, .top-bar .message, .topbar-text,
  .breadcrumb, .breadcrumb-item,
  .box-noticia .noticia_dados h3 .date,
  .editorial-meta, .editorial-meta-top, .editorial-readtime,
  .editorial-single .nav-label, article.editorial-single nav.post-navigation .nav-label,
  .filter-name,
  .product-infos .dados-campo, .product-infos .dados-valor,
  .product-single .price-payment-link, a.price-payment-link,
  .product-single .price-cash, .product-single .price-installments,
  .cep-field__button,
  .product-gallery-caption, .product-image-note,
  .product-rating-single .total, .woocommerce-product-rating label { font-size: .9375rem; }

  .product-tags .tag.text, .product-tag, .editorial-chip,
  .filter-count, .sidebar-category .filter-count, .price-filter-currency { font-size: .875rem; }

  .section-info-ruler .ruler-text, .section-info-ruler .item .text { font-size: .9375rem; }
}

@media (min-width: 1800px) {
  .top-bar, .top-bar .message, .topbar-text,
  .breadcrumb, .breadcrumb-item,
  .box-noticia .noticia_dados h3 .date,
  .editorial-meta, .editorial-meta-top, .editorial-readtime,
  .editorial-single .nav-label, article.editorial-single nav.post-navigation .nav-label,
  .filter-name,
  .product-infos .dados-campo, .product-infos .dados-valor,
  .product-single .price-payment-link, a.price-payment-link,
  .product-single .price-cash, .product-single .price-installments,
  .cep-field__button,
  .product-gallery-caption, .product-image-note,
  .product-rating-single .total, .woocommerce-product-rating label { font-size: 1rem; }

  .product-tags .tag.text, .product-tag, .editorial-chip,
  .filter-count, .sidebar-category .filter-count, .price-filter-currency { font-size: .9375rem; }

  .section-info-ruler .ruler-text, .section-info-ruler .item .text { font-size: 1rem; }
}

@media (min-width: 1440px) {
  .second-level > li > a, .sub-link, .third-level a, .dados-campo, .dados-valor,
  .sidebar-category .price-filter-inputs .filter-label,
  .sidebar-category .price-filter-inputs input.text { font-size: .9375rem; }
}

@media (min-width: 1800px) {
  .second-level > li > a, .sub-link, .third-level a, .dados-campo, .dados-valor,
  .sidebar-category .price-filter-inputs .filter-label,
  .sidebar-category .price-filter-inputs input.text { font-size: 1rem; }
}

@media (min-width: 1440px) {
  .product-short-description, .product-short-description p,
  .product-meta-item, .product-meta-item a,
  #woocommerce-correios-calculo-de-frete-na-pagina-do-produto p { font-size: .9375rem; }
}

@media (min-width: 1800px) {
  .product-short-description, .product-short-description p,
  .product-meta-item, .product-meta-item a,
  #woocommerce-correios-calculo-de-frete-na-pagina-do-produto p { font-size: 1rem; }
}

@media (min-width: 1440px) { #woocommerce-correios-calculo-de-frete-na-pagina-do-produto .col-75 > p { font-size: .9375rem; } }
@media (min-width: 1800px) { #woocommerce-correios-calculo-de-frete-na-pagina-do-produto .col-75 > p { font-size: 1rem; } }

/* Checkout e carrinho (blocos do WooCommerce) em telas grandes */
@media (min-width: 1440px) {
  body.woocommerce-checkout form.checkout label,
  body.woocommerce-checkout form.checkout .optional,
  body.woocommerce-checkout form.checkout .pb-pay-sub,
  body.woocommerce-checkout form.checkout .pb-bandeiras-title,
  body.woocommerce-checkout .pb-place-order-proxy__note,
  body.woocommerce-checkout .woocommerce-terms-and-conditions-checkbox-text,
  body.woocommerce-checkout .woocommerce-terms-and-conditions-link,
  body.woocommerce-checkout form.checkout span,
  .wc-block-components-panel__button,
  .wc-block-components-totals-footer-item-shipping { font-size: .9375rem; }
}

@media (min-width: 1800px) {
  body.woocommerce-checkout form.checkout label,
  body.woocommerce-checkout form.checkout .optional,
  body.woocommerce-checkout form.checkout .pb-pay-sub,
  body.woocommerce-checkout form.checkout .pb-bandeiras-title,
  body.woocommerce-checkout .pb-place-order-proxy__note,
  body.woocommerce-checkout .woocommerce-terms-and-conditions-checkbox-text,
  body.woocommerce-checkout .woocommerce-terms-and-conditions-link,
  body.woocommerce-checkout form.checkout span,
  .wc-block-components-panel__button,
  .wc-block-components-totals-footer-item-shipping { font-size: 1rem; }
}

@media (min-width: 1440px) {
  body.woocommerce-checkout .pb-pay-sub, body.woocommerce-checkout .pb-pay-sub strong,
  body.woocommerce-checkout .pb-bandeiras-title { font-size: .9375rem !important; }
}
@media (min-width: 1800px) {
  body.woocommerce-checkout .pb-pay-sub, body.woocommerce-checkout .pb-pay-sub strong,
  body.woocommerce-checkout .pb-bandeiras-title { font-size: 1rem !important; }
}

@media (min-width: 1440px) {
  .wp-block-woocommerce-cart .wc-block-components-product-name,
  .wp-block-woocommerce-cart .wc-block-components-product-metadata,
  .wp-block-woocommerce-cart .wc-block-components-product-metadata p,
  .wp-block-woocommerce-cart .wc-block-components-formatted-money-amount,
  .wp-block-woocommerce-cart .wc-block-components-formatted-money-amount bdi,
  .wp-block-woocommerce-cart .wc-block-components-formatted-money-amount__currency-symbol,
  .wp-block-woocommerce-cart .wc-block-components-product-price { font-size: .9375rem; }
}
@media (min-width: 1800px) {
  .wp-block-woocommerce-cart .wc-block-components-product-name,
  .wp-block-woocommerce-cart .wc-block-components-product-metadata,
  .wp-block-woocommerce-cart .wc-block-components-product-metadata p,
  .wp-block-woocommerce-cart .wc-block-components-formatted-money-amount,
  .wp-block-woocommerce-cart .wc-block-components-formatted-money-amount bdi,
  .wp-block-woocommerce-cart .wc-block-components-formatted-money-amount__currency-symbol,
  .wp-block-woocommerce-cart .wc-block-components-product-price { font-size: 1rem; }
}

@media (min-width: 1440px) { .wp-block-woocommerce-cart a.wc-block-components-product-name { font-size: .9375rem !important; } }
@media (min-width: 1800px) { .wp-block-woocommerce-cart a.wc-block-components-product-name { font-size: 1rem !important; } }

@media (min-width: 1440px) { .editorial-single time, .editorial-single .editorial-meta-top span, .editorial-single .editorial-meta span { font-size: .9375rem; } }
@media (min-width: 1800px) { .editorial-single time, .editorial-single .editorial-meta-top span, .editorial-single .editorial-meta span { font-size: 1rem; } }

@media (min-width: 1440px) { .editorial-byline-text, .editorial-byline-text span, .editorial-byline-text time { font-size: .9375rem; } }
@media (min-width: 1800px) { .editorial-byline-text, .editorial-byline-text span, .editorial-byline-text time { font-size: 1rem; } }

@media (min-width: 1440px) { .woocommerce-pagination .page-numbers, a.page-numbers, span.page-numbers { font-size: .9375rem; } }
@media (min-width: 1800px) { .woocommerce-pagination .page-numbers, a.page-numbers, span.page-numbers { font-size: 1rem; } }

@media (min-width: 1440px) { .catalog-pagination a.page-numbers, .catalog-pagination span.page-numbers { font-size: .9375rem; } }
@media (min-width: 1800px) { .catalog-pagination a.page-numbers, .catalog-pagination span.page-numbers { font-size: 1rem; } }

@media (min-width: 1800px) { .commerce-footer .newsletter-eyebrow, .section-newsletter .newsletter-eyebrow { font-size: 1rem; } }
