/* Frente D - coleção e busca. CSS que no tema vinha inline nas seções md-hero, md-colecao-topo, main-collection-product-grid e main-search. */

/* variáveis do cartão (section settings da grade) */
.cl-col { --md-card-preco-promo: #F80202; --md-card-selo-fundo: #F80202; --md-card-selo-cor: #FFFFFF; --md-card-selo-fonte: 10px; }

/* ---------- md-hero (1 slide, "BUY ONE, GET TWO.") ---------- */
.cl-hero { isolation: isolate; position: relative; display: block; overflow: hidden; background-color: #00306B; }
.cl-hero .md-hero__palco { position: relative; width: 100%; aspect-ratio: 1.5; min-height: 360px; }
.cl-hero .md-hero__slide { position: absolute; inset: 0; }
.cl-hero .md-hero__midia { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.cl-hero .md-hero__rodape { position: absolute; z-index: 30; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; align-items: flex-start; padding: 15px 15px 30px; pointer-events: none; }
.cl-hero .md-hero__controles { display: flex; align-items: center; gap: 21px; margin-bottom: 4px; pointer-events: auto; }
.cl-hero .md-hero__textos { display: grid; width: 100%; }
.cl-hero .md-hero__texto { grid-area: 1 / 1; align-self: end; display: flex; flex-direction: column; align-items: flex-start; }
.cl-hero .md-hero__titulo { margin: 0; font-size: 20px; font-weight: 600; line-height: 1.1; letter-spacing: 0.4px; color: #ffffff; }
.cl-hero .md-hero__sub { margin: 5px 0 0; font-size: 14px; font-weight: 400; line-height: 1.43; color: #ffffff; }
.cl-hero .md-hero__link-total { display: block; position: absolute; inset: 0; z-index: 10; }
/* sem a foto "md-colecao-sale" da NBA: fotos de produto da coleção em molduras, como nos banners da NFL */
.cl-hero__midia { display: flex !important; align-items: flex-start; justify-content: center; gap: 3%; padding: 24px 15px 0; box-sizing: border-box; }
.cl-hero__foto { display: block; flex: 0 0 29%; max-width: 160px; box-sizing: border-box; padding: 6px; background: #F1F4F8; border: 3px solid #0A1A33; }
.cl-hero__foto img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; mix-blend-mode: multiply; }
.cl-hero__foto--2 { margin-top: 18px; }
@media screen and (min-width: 990px) {
  .cl-hero .md-hero__palco { aspect-ratio: 3.2; height: auto; min-height: 400px; max-height: calc(90dvh - var(--announcement-bar-height, 0px)); }
  .cl-hero .md-hero__rodape { padding: 40px; }
  .cl-hero .md-hero__controles { margin-bottom: 11px; padding-left: 5px; }
  .cl-hero .md-hero__titulo { font-size: 30px; letter-spacing: 0.6px; }
  .cl-hero__midia { align-items: center; justify-content: flex-end; gap: 2%; padding: 0 5% 0 45%; }
  .cl-hero__foto { flex: 0 0 30%; max-width: 260px; padding: 10px; border-width: 4px; }
  .cl-hero__foto--2 { margin-top: 70px; }
}
[dir="rtl"] .cl-hero .md-hero__rodape, [dir="rtl"] .cl-hero .md-hero__texto { align-items: flex-start; }
@media screen and (min-width: 990px) { [dir="rtl"] .cl-hero__midia { padding: 0 45% 0 5%; } }

/* ---------- md-colecao-topo (linha abaixo do título: vao_linha 41 => 21px; escondida no celular) ---------- */
.md-colecao .md-col-topo-divisor { display: block; height: 1px; background: #dbdbdb; margin-top: 21px; }
@media screen and (max-width: 749px) { .md-colecao .md-col-topo-divisor { display: none; } }
[dir="rtl"] .md-col-topo__trilha li + li:before { display: inline-block; }

/* ---------- main-collection-product-grid ---------- */
.cl-sec { padding-top: 0; padding-bottom: 6px; }
@media screen and (min-width: 750px) { .cl-sec { padding-top: 60px; padding-bottom: 20px; } }
.cl-col .facets-vertical .facets__form-vertical .product-count { display: none; }
.cl-col .facets-vertical-sort { display: none; }
.cl-col facet-remove, .cl-col facet-filters-form, .cl-col menu-drawer, .cl-col main-search { display: block; }
.cl-col .active-facets facet-remove { display: inline-block; }
.cl-col .active-facets .active-facets-vertical-filter facet-remove { display: flex; }
.cl-col .md-chips facet-remove { display: inline-flex; }
.cl-col .facets-vertical .active-facets .active-facets-vertical-filter:only-child > facet-remove { display: none; }
.cl-col .facets__label.disabled { cursor: default; }
.cl-col .md-sort__opcao { white-space: nowrap; }
[dir="rtl"] .cl-col .md-sort__opcao { text-align: right; padding: 10px 12px 10px 40px; }
[dir="rtl"] .cl-col .md-sort__lista { left: auto; right: 0; }

/* gaveta do celular: o tema depende de html.js + menu-drawer (JS da Shopify); aqui o collection.js põe/tira .menu-opening */
@media screen and (max-width: 749px) {
  .cl-col .mobile-facets__disclosure:not(.menu-opening) .mobile-facets__inner { transform: translate(-105vw); }
  .cl-col .mobile-facets__disclosure.menu-opening .mobile-facets__inner { transform: translate(0); }
  .cl-col .mobile-facets__submenu { position: static; transform: none; visibility: visible; display: block; }
  .cl-col .mobile-facets__details:not([open]) > .mobile-facets__submenu { display: none; }
  .cl-col .mobile-facets__details[open] .mobile-facets__arrow { transform: rotate(90deg); }
  .cl-col .mobile-facets__arrow { transition: transform .3s ease; line-height: 0; }
  .cl-col .mobile-facets__arrow svg { width: 14px; height: 10px; }
  .cl-col .mobile-facets__label > svg:first-of-type, .cl-col .mobile-facets__label .icon-checkmark { display: none; }
  .cl-col .mobile-facets__details[open] .mobile-facets__submenu { padding: 0; }
}
[dir="rtl"] .cl-col .mobile-facets__disclosure:not(.menu-opening) .mobile-facets__inner { transform: translate(105vw); }
[dir="rtl"] .cl-col details.menu-opening .mobile-facets__close { right: auto; left: 20px; }
html.cl-trava, html.cl-trava body { overflow: hidden; }

/* md-paginacao */
.md-paginacao { margin: 60px 0; }
.md-paginacao__contador { margin: 0 0 15px; font-size: 14px; font-weight: 400; line-height: 1.4; color: #686c6d; text-align: center; }
.md-paginacao__linha { display: flex; align-items: center; justify-content: center; gap: 5px; }
.md-paginacao__passo { display: inline-flex; align-items: center; gap: 12px; padding: 0 8px; color: #000; font-size: 16px; font-weight: 400; text-decoration: none; cursor: pointer; }
.md-paginacao__passo.is-desligado { opacity: 0.5; cursor: not-allowed; }
.md-paginacao__passo svg { width: 20px; height: 20px; flex: 0 0 20px; }
[dir="rtl"] .md-paginacao__passo svg { transform: scaleX(-1); }
.md-paginacao__numero { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; width: 36px; height: 36px; border: 0; border-radius: 4px; background: transparent; color: #000; font-size: 14px; font-weight: 400; text-decoration: none; transition: background-color 0.15s ease; }
a.md-paginacao__numero:hover { background-color: #f6f6f6; }
.md-paginacao__numero.is-atual { border: 1px solid #dbdbdb; }
.md-paginacao__reticencias { padding: 0 8px; font-size: 16px; font-weight: 400; color: #686c6d; }
@media screen and (max-width: 639px) { .md-paginacao__palavra { display: none; } }

/* coleção vazia (filtros sem resultado) */
.cl-col .collection--empty .title-wrapper { margin-top: 6rem; margin-bottom: 10rem; text-align: center; }
.cl-col .collection--empty .title { font-size: 18px; font-weight: 600; line-height: 1.4; }

/* ---------- main-search ---------- */
.cl-busca .template-search__header { margin-bottom: 3rem; }
.cl-busca .template-search__search { margin: 0 auto 3.5rem; max-width: 74.1rem; }
.cl-busca .template-search__search .search { margin-top: 3rem; }
.cl-busca.cl-col .template-search--empty, .cl-busca .template-search--empty { padding-bottom: 18rem; }
.cl-busca .search__button .icon { height: 1.8rem; }
.cl-busca .cl-busca__status { margin: 0; text-align: center; font-size: 14px; line-height: 1.5; }
@media screen and (min-width: 750px) { .cl-busca .template-search__header { margin-bottom: 5rem; } }
@media screen and (max-width: 749px) { .cl-busca .template-search__search .search { margin-top: 1.5rem; } }
