/**
 * product-finder.css
 * Vitrine "O que você procura?" do design system (marmitissima-design,
 * assets/css/product-finder.css) aplicada sobre o Tabs do PageBuilder +
 * Product Widget Advanced com o template "marmitissima"
 * (ver Magento_Theme/js/product-finder.js).
 *
 * Valores em px (o design usa rem com raiz 16px; no Magento a raiz é 10px).
 * Efeitos de animação (puxar a tira, revelar cards, stepper) ficam para a
 * próxima etapa — aqui é só a estrutura e o visual em repouso.
 */
.mm-pf-tabs,
.pull-title,
.mm-pf {
  --mm-accent: #ed3237;
  --mm-accent-dark: #be282c;
  --mm-text: #201e1e;
  --mm-text-strong: #000000;
  --mm-text-secondary: #6e6c6c;
  --mm-surface: #ffffff;
  --mm-surface-alt: #f4f4f4;
  --mm-border: #e4e4e4;
  --mm-shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.06);
  --mm-shadow-medium: 0 8px 32px rgba(0, 0, 0, 0.1);
  --mm-fast: 160ms ease;
  --mm-base: 240ms ease;
  font-family: 'Manrope', sans-serif;
}

/* ===== Título em faixa ("tira de abertura") =====
   Inserido pelo JS logo acima do Tabs; vai de ponta a ponta da tela. */
.pull-title {
  position: relative;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  margin-bottom: 48px;
  background-color: var(--mm-accent);
  overflow: hidden;
}

.pull-title__inner {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  /* --mm-pt-left / --mm-pt-right: medidos pelo JS (tabs-pull-title.js) — o
     texto começa alinhado com o primeiro card de categoria. */
  padding: 20px calc(var(--mm-pt-right, 15px) + 56px) 20px var(--mm-pt-left, 15px);
  clip-path: inset(0 0 0 0);
  /* Abertura com uma leve "mola" (overshoot) — sensação de destravar/abrir,
     não só um wipe liso. Fechar é mais seco e rápido (puxão). */
  transition: clip-path 420ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pull-title.is-closed .pull-title__inner {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 200ms ease-in;
}

.pull-title.is-pulling .pull-title__tab {
  animation: pull-title-swipe 650ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Só o puxão — a aba desliza até quase a outra ponta (0% → 85%) e volta pro
   lugar num pulo quase instantâneo no final (85% → 87%). */
@keyframes pull-title-swipe {
  0% {
    right: 0;
  }
  85% {
    right: calc(100% - 56px);
  }
  87% {
    right: 0;
  }
  100% {
    right: 0;
  }
}

/* Conteúdo da aba nova é "revelado" da esquerda pra direita (no lugar do
   fadeIn padrão do tema). */
div[data-content-type='tabs'].mm-pf-tabs .tabs-content [data-content-type='tab-item'] {
  animation: none;
}

div[data-content-type='tabs'].mm-pf-tabs .tabs-content [data-content-type='tab-item'].mm-pf-reveal {
  animation: mm-pf-reveal 520ms ease 60ms both;
}

@keyframes mm-pf-reveal {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}

.pull-title__tab {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
  width: 56px;
  height: 100%;
  background-color: var(--mm-accent-dark);
  border-radius: 50% 0 0 50%;
}

.pull-title__dashes {
  flex: 1;
  height: 2px;
  margin-left: 20px;
  background-image: repeating-linear-gradient(
    to right,
    rgba(255, 255, 255, 0.5) 0,
    rgba(255, 255, 255, 0.5) 5px,
    transparent 5px,
    transparent 11px
  );
}

.pull-title .pull-title__text {
  flex: 0 0 auto;
  margin: 0;
  font-family: 'Manrope', sans-serif;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: #ffffff;
  white-space: nowrap;
  text-transform: none;
  transform: scale(1) translateX(0);
  transform-origin: left center;
  transition: transform 420ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* O texto "encolhe" um pouco antes de fechar e "estoura" de volta ao abrir. */
.pull-title.is-closed .pull-title__text {
  transform: scale(0.82) translateX(-10px);
  transition: transform 180ms ease-in;
}

@media (prefers-reduced-motion: reduce) {
  .pull-title__inner,
  .pull-title .pull-title__text {
    transition: none !important;
  }

  .pull-title.is-pulling .pull-title__tab,
  div[data-content-type='tabs'].mm-pf-tabs .tabs-content [data-content-type='tab-item'].mm-pf-reveal {
    animation: none !important;
  }
}

/* ===== Linha das abas: categorias à esquerda, setas à direita ===== */
.mm-pf-tabs .mm-pf__nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.mm-pf-tabs .mm-pf__nav-row .title-tabs__navigation,
.mm-pf-tabs .mm-pf__nav-row > .tabs-navigation {
  min-width: 0;
}

.mm-pf__arrows-slot {
  flex-shrink: 0;
}

/* ===== Abas como cards de categoria (imagem em cima, nome embaixo) ===== */
div[data-content-type='tabs'].mm-pf-tabs .tabs-navigation {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 !important;
  padding: 0;
  border: 0;
  font-size: 0;
}

div[data-content-type='tabs'].mm-pf-tabs .tabs-navigation li.tab-header {
  display: block;
  overflow: visible !important;
  margin: 0 !important;
  padding: 0;
  border: 0 !important;
  background: none !important;
  border-radius: 0 !important;
}

div[data-content-type='tabs'].mm-pf-tabs .tabs-navigation li.tab-header a.tab-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
  width: 96px;
  margin: 0 !important;
  padding: 10px 8px 12px;
  border: 1.5px solid var(--mm-border);
  border-radius: 14px;
  background-color: var(--mm-surface);
  color: var(--mm-text-secondary);
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  text-transform: none;
  white-space: normal;
  text-decoration: none;
  transition: background-color var(--mm-fast), border-color var(--mm-fast),
    color var(--mm-fast), box-shadow var(--mm-fast);
}

div[data-content-type='tabs'].mm-pf-tabs .tabs-navigation li.tab-header a.tab-title::after,
div[data-content-type='tabs'].mm-pf-tabs .tabs-navigation li.tab-header a.tab-title::before {
  display: none !important;
}

div[data-content-type='tabs'].mm-pf-tabs .tabs-navigation li.tab-header a.tab-title span.tab-title {
  display: block;
  padding: 0;
  border: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  white-space: normal;
  pointer-events: none;
}

/* .category-pill__thumb = imagem da categoria (JS da vitrine);
   .tab-image = "Imagem da Tab" do PageBuilder. Mesmas medidas do design. */
div[data-content-type='tabs'].mm-pf-tabs .tabs-navigation .category-pill__thumb,
div[data-content-type='tabs'].mm-pf-tabs .tabs-navigation .tab-image {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 100%;
  height: 116px;
  aspect-ratio: auto;
  margin: 0;
  border-radius: 8px;
  background-color: var(--mm-surface-alt);
  overflow: hidden;
  transition: background-color var(--mm-fast);
}

div[data-content-type='tabs'].mm-pf-tabs .tabs-navigation .category-pill__thumb img,
div[data-content-type='tabs'].mm-pf-tabs .tabs-navigation .tab-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

div[data-content-type='tabs'].mm-pf-tabs .tabs-navigation li.tab-header a.tab-title:hover {
  border-color: var(--mm-accent);
  color: var(--mm-accent);
}

div[data-content-type='tabs'].mm-pf-tabs .tabs-navigation li.tab-header.ui-state-active a.tab-title {
  background-color: var(--mm-accent);
  border-color: var(--mm-accent);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(237, 50, 55, 0.28);
}

div[data-content-type='tabs'].mm-pf-tabs .tabs-navigation li.tab-header.ui-state-active .category-pill__thumb,
div[data-content-type='tabs'].mm-pf-tabs .tabs-navigation li.tab-header.ui-state-active .tab-image {
  background-color: rgba(255, 255, 255, 0.25);
}

/* Espaço entre a linha das abas e o conteúdo (28px no design) */
div[data-content-type='tabs'].mm-pf-tabs .tabs-container-title__com {
  margin-bottom: 28px;
}

div[data-content-type='tabs'].mm-pf-tabs .title-tabs__navigation {
  margin: 0;
}

div[data-content-type='tabs'].mm-pf-tabs .tabs-content {
  margin: 0;
  border: 0 !important;
  border-radius: 0 !important;
  overflow: visible;
}

/* ===== Setas + contador ===== */
.mm-pf .carousel-arrows,
.mm-pf-tabs .carousel-arrows {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 8px;
}

.mm-pf-tabs .carousel-arrows[hidden],
.mm-pf .carousel-arrows[hidden] {
  display: none !important;
}

.mm-pf-tabs .carousel-counter,
.mm-pf .carousel-counter {
  min-width: 32px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--mm-text-secondary);
}

.mm-pf-tabs .product-carousel__arrow,
.mm-pf .product-carousel__arrow {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--mm-border);
  border-radius: 50%;
  background-color: var(--mm-surface);
  box-shadow: var(--mm-shadow-soft);
  color: var(--mm-text);
  cursor: pointer;
  transition: background-color var(--mm-fast), box-shadow var(--mm-fast),
    opacity var(--mm-fast), transform var(--mm-fast);
}

.mm-pf-tabs .product-carousel__arrow:hover,
.mm-pf .product-carousel__arrow:hover {
  background-color: var(--mm-surface-alt);
  box-shadow: var(--mm-shadow-medium);
}

.mm-pf-tabs .product-carousel__arrow:active,
.mm-pf .product-carousel__arrow:active {
  transform: scale(0.94);
}

.mm-pf-tabs .product-carousel__arrow.is-disabled,
.mm-pf .product-carousel__arrow.is-disabled {
  opacity: 0.35;
  pointer-events: none;
}

.mm-pf-tabs .product-carousel__arrow svg,
.mm-pf .product-carousel__arrow svg {
  display: block;
  width: 17px;
  height: 17px;
}

/* ===== Carrossel ===== */
.mm-pf .product-carousel {
  position: relative;
}

.mm-pf .product-carousel__viewport {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.mm-pf .product-carousel__viewport::-webkit-scrollbar {
  display: none;
}

.mm-pf .product-carousel__track {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 4px 2px 10px;
}

.mm-pf__empty {
  margin: 0;
  padding: 24px 0;
  font-size: 15px;
  color: var(--mm-text-secondary);
}

/* ===== Card de produto ===== */
.mm-pf .product-card {
  flex: 0 0 auto;
  width: calc((100% - 3 * 20px) / 4);
  margin: 0;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  background-color: var(--mm-surface);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--mm-shadow-soft);
  transition: transform var(--mm-base), box-shadow var(--mm-base);
}

.mm-pf .product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--mm-shadow-medium);
}

.mm-pf .product-card__image-wrap {
  display: block;
  aspect-ratio: 4 / 3;
  background-color: var(--mm-surface-alt);
  overflow: hidden;
}

.mm-pf .product-card__image {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.mm-pf .product-card:hover .product-card__image {
  transform: scale(1.05);
}

.mm-pf .product-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px 16px;
}

.mm-pf .product-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mm-pf .product-card__tag {
  padding: 3px 10px;
  border: 1px solid var(--mm-border);
  border-radius: 999px;
  background-color: var(--mm-surface-alt);
  color: var(--mm-text-secondary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.mm-pf .product-card__name {
  display: block;
  min-height: 2.7em;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--mm-text-strong);
  text-decoration: none;
}

.mm-pf .product-card__name:hover {
  color: var(--mm-text-strong);
  text-decoration: none;
}

/* ===== Macros (kcal / proteína / carboidrato) =====
   3 cardzinhos vermelhos lado a lado (igual ao design). */
.mm-pf .product-card__macros {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mm-pf .product-card__macro {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 6px 4px;
  border-radius: 10px;
  background-color: var(--mm-accent);
}

.mm-pf .product-card__macro-value {
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
  color: #ffffff;
}

.mm-pf .product-card__macro-label {
  font-size: 10px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* ===== Porção (ex.: "8 unidades") — à direita do preço ===== */
.mm-pf .product-card__portion {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--mm-text-secondary);
  white-space: nowrap;
}

/* ===== Preço (markup padrão do Magento dentro do bloco do design) ===== */
.mm-pf .product-card__price-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}

.mm-pf .product-card__price-block .price-box {
  display: flex;
  flex-direction: column-reverse;
  margin: 0;
}

.mm-pf .product-card__price-block .price-box .price-label {
  display: none;
}

.mm-pf .product-card__price-block .price-box .price {
  font-family: 'Manrope', sans-serif;
  font-size: 17px;
  font-weight: 800;
  color: var(--mm-text-strong);
}

.mm-pf .product-card__price-block .price-box .old-price {
  margin: 0;
}

.mm-pf .product-card__price-block .price-box .old-price .price {
  font-size: 12px;
  font-weight: 600;
  color: var(--mm-text-secondary);
  text-decoration: line-through;
}

.mm-pf .product-card__price-block .price-box .special-price {
  margin: 0;
}

/* ===== Controle de adicionar (design: product-finder.css .product-add) =====
   O botão cheio ENCOLHE até virar, ele mesmo, o quadrado de "+" ancorado na
   borda direita — só depois o "−" e a quantidade aparecem, como 3 fichas
   soltas. Ao voltar a zero, o processo reverte. Estado: .is-active
   (Magento_Theme/js/product-add). */
.mm-pf {
  --add-chip-size: 42px;
}

.mm-pf .product-add {
  position: relative;
  height: 42px;
}

.mm-pf .product-add form {
  position: absolute;
  inset: 0;
  margin: 0;
  pointer-events: none;
}

.mm-pf .product-add__button {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  left: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  white-space: nowrap;
  border: none;
  border-radius: 999px;
  background-color: var(--mm-accent);
  color: #ffffff;
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  box-shadow: none;
  pointer-events: auto;
  transition: width 260ms cubic-bezier(0.65, 0, 0.35, 1), opacity 140ms ease,
    background-color var(--mm-fast);
}

.mm-pf .product-add__button:hover,
.mm-pf .product-add__button:focus {
  border: none;
  background-color: var(--mm-accent-dark);
  color: #ffffff;
}

.mm-pf .product-add__button svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.mm-pf .product-add__button span {
  transition: opacity 100ms ease;
}

/* A largura final bate com o flex-basis do .product-add__btn (mesma
   variável) — o botão encolhido "encaixa" exatamente onde o + aparece. */
.mm-pf .product-add.is-active .product-add__button {
  width: var(--add-chip-size);
  opacity: 0;
  pointer-events: none;
  transition: width 260ms cubic-bezier(0.65, 0, 0.35, 1), opacity 120ms ease 200ms,
    background-color var(--mm-fast);
}

.mm-pf .product-add.is-active .product-add__button span {
  opacity: 0;
  transition-duration: 80ms;
}

.mm-pf .product-add__stepper {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.mm-pf .product-add.is-active .product-add__stepper {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 180ms ease 140ms;
}

.mm-pf .product-add__btn {
  display: flex;
  flex: 0 0 var(--add-chip-size);
  height: 100%;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  border-radius: 999px;
  background-color: var(--mm-accent);
  color: #ffffff;
  cursor: pointer;
  box-shadow: none;
  opacity: 0;
  transform: scale(0.4);
  transition: background-color var(--mm-fast), opacity 160ms ease,
    transform 260ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mm-pf .product-add.is-active .product-add__btn {
  opacity: 1;
  transform: scale(1);
  transition-delay: 160ms;
}

.mm-pf .product-add__btn:hover,
.mm-pf .product-add__btn:focus {
  border: none;
  background-color: var(--mm-accent-dark);
  color: #ffffff;
}

.mm-pf .product-add__btn:active {
  transform: scale(0.92);
}

.mm-pf .product-add__btn svg {
  width: 14px;
  height: 14px;
}

.mm-pf .product-add__qty {
  flex: 1;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  color: var(--mm-text-strong);
  opacity: 0;
  transition: opacity 180ms ease;
}

.mm-pf .product-add.is-active .product-add__qty {
  opacity: 1;
  transition-delay: 220ms;
}

.mm-pf .product-add__button--unavailable {
  background-color: var(--mm-surface-alt);
  color: var(--mm-text-secondary);
  cursor: default;
}

.mm-pf .product-add__button--unavailable:hover {
  background-color: var(--mm-surface-alt);
  color: var(--mm-text-secondary);
}

/* Kit (bundle): "Ver e escolher opções" leva à página do produto ("Monte seu Kit") */
.mm-pf a.product-add__button--options,
.mm-pf a.product-add__button--options:visited {
  color: #ffffff;
  text-decoration: none;
}

.mm-pf a.product-add__button--options:hover,
.mm-pf a.product-add__button--options:focus {
  background-color: var(--mm-accent-dark);
  color: #ffffff;
  text-decoration: none;
}

/* Kit: preço "a partir de" (sem o "até" da faixa do bundle) */
.mm-pf .product-card__price-block .price-box .price-to {
  display: none;
}

.mm-pf .product-card__price-block .price-box .price-from {
  margin: 0;
}

.mm-pf .product-card__price-block .price-box .price-label {
  display: none;
}

/* ===== "Ver mais" ===== */
.mm-pf .product-carousel__see-more {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.mm-pf .product-carousel__see-more-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  min-width: 142px;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid currentColor;
  border-radius: 999px;
  background-color: var(--mm-surface);
  color: var(--mm-accent-dark);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color var(--mm-fast), border-color var(--mm-fast),
    color var(--mm-fast), transform var(--mm-fast);
}

.mm-pf .product-carousel__see-more-button:hover {
  border-color: var(--mm-accent);
  background-color: var(--mm-accent);
  color: #ffffff;
  text-decoration: none;
}

.mm-pf .product-carousel__see-more-button:active {
  transform: scale(0.97);
}

.mm-pf .product-carousel__see-more-button svg {
  width: 15px;
  height: 15px;
}

/* ===== Título das linhas de categoria ("Linha Fitness", "Linha Caseira") =====
   Aparece quando o campo "Title" do widget está preenchido — setas na mesma
   linha, à direita (design: .product-finder__title-row). */
.mm-pf .product-finder__title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.mm-pf .carousel-header__title-group {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 18px;
  min-width: 0;
}

.mm-pf .product-finder__title {
  margin: 0;
  padding: 0 0 0 14px;
  border-left: 4px solid var(--mm-accent);
  font-family: 'Manrope', sans-serif;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--mm-text-strong);
  text-transform: none;
}

/* ===== Fundo das linhas — classe CSS do Row no PageBuilder =====
   Row com aparência "Full Width" (fundo de ponta a ponta, conteúdo alinhado
   ao resto da página) + em Avançado > Classes CSS:
     mm-line mm-line--fitness   → foto dos azulejos vermelhos (Linha Fitness)
     mm-line mm-line--caseiras  → vermelho escuro + marca-d'água da logo
     mm-line mm-line--combos    → fundo branco (título escuro, igual ao design)
   !important no fundo/padding porque o PageBuilder grava o estilo do Row com
   seletor de id (#html-body [data-pb-style=...]). */
[data-content-type='row'].mm-line {
  position: relative;
  padding-top: 48px !important;
  padding-bottom: 64px !important;
  background-color: #ed3237 !important;
}

[data-content-type='row'].mm-line--fitness {
  background-image: url('../images/backgrounds/fitness-red-tile.jpg') !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

[data-content-type='row'].mm-line--caseiras {
  background-color: #be282c !important;
  overflow: hidden;
}

[data-content-type='row'].mm-line--combos {
  background-color: #ffffff !important;
  background-image: none !important;
}

/* Marca-d'água num ::before separado, pequena e bem transparente, atrás do
   conteúdo (direto no fundo brigava com o texto por cima). */
[data-content-type='row'].mm-line--caseiras::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/backgrounds/logo-watermark.png');
  background-repeat: repeat;
  background-size: 46px 46px;
  opacity: 0.12;
  pointer-events: none;
}

[data-content-type='row'].mm-line--caseiras > * {
  position: relative;
  z-index: 1;
}

/* Texto claro só nas linhas de fundo vermelho */
.mm-line--fitness .mm-pf .product-finder__title,
.mm-line--caseiras .mm-pf .product-finder__title {
  color: #ffffff;
  border-left-color: #ffffff;
}

.mm-line--fitness .mm-pf .carousel-counter,
.mm-line--caseiras .mm-pf .carousel-counter,
.mm-line--fitness .mm-pf .mm-pf__empty,
.mm-line--caseiras .mm-pf .mm-pf__empty {
  color: rgba(255, 255, 255, 0.85);
}

.mm-line--fitness .mm-pf .product-carousel__see-more-button,
.mm-line--caseiras .mm-pf .product-carousel__see-more-button {
  border-color: #ffffff;
  background-color: #ffffff;
  color: var(--mm-accent-dark);
}

.mm-line--fitness .mm-pf .product-carousel__see-more-button:hover,
.mm-line--caseiras .mm-pf .product-carousel__see-more-button:hover {
  border-color: #000000;
  background-color: #000000;
  color: #ffffff;
}

/* ===== Responsivo ===== */
@media (max-width: 1024px) {
  .mm-pf .product-carousel__track {
    gap: 16px;
  }

  .mm-pf .product-card {
    width: calc((100% - 2 * 16px) / 2.3);
  }
}

@media (max-width: 768px) {
  .pull-title {
    margin-bottom: 36px;
  }

  .pull-title__inner {
    padding: 16px calc(var(--mm-pt-right, 15px) + 44px) 16px var(--mm-pt-left, 15px);
  }

  .pull-title__tab {
    width: 44px;
  }

  @keyframes pull-title-swipe {
    0% {
      right: 0;
    }
    85% {
      right: calc(100% - 44px);
    }
    87% {
      right: 0;
    }
    100% {
      right: 0;
    }
  }

  .pull-title .pull-title__text {
    font-size: 22.4px;
  }

  /* Abas rolam de lado; setas descem para a própria linha, à direita. */
  .mm-pf-tabs .mm-pf__nav-row {
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
  }

  .mm-pf-tabs .mm-pf__nav-row .title-tabs__navigation,
  .mm-pf-tabs .mm-pf__nav-row > .tabs-navigation {
    width: 100%;
  }

  .mm-pf__arrows-slot {
    margin-left: auto;
  }

  div[data-content-type='tabs'].mm-pf-tabs .tabs-navigation {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 2px;
  }

  div[data-content-type='tabs'].mm-pf-tabs .tabs-navigation::-webkit-scrollbar {
    display: none;
  }

  div[data-content-type='tabs'].mm-pf-tabs .tabs-navigation li.tab-header {
    flex-shrink: 0;
    scroll-snap-align: start;
  }

  .mm-pf .product-card {
    width: calc((100% - 16px) / 2);
  }

  .mm-pf .product-carousel__see-more {
    margin-top: 20px;
  }
}

@media (max-width: 480px) {
  .pull-title .pull-title__text {
    font-size: 18.4px;
  }

  div[data-content-type='tabs'].mm-pf-tabs .tabs-navigation {
    gap: 8px;
  }

  div[data-content-type='tabs'].mm-pf-tabs .tabs-navigation li.tab-header a.tab-title {
    width: 80px;
    gap: 6px;
    padding: 8px 6px 10px;
    font-size: 11px;
  }

  div[data-content-type='tabs'].mm-pf-tabs .tabs-navigation .category-pill__thumb,
  div[data-content-type='tabs'].mm-pf-tabs .tabs-navigation .tab-image {
    height: 92px;
  }

  .mm-pf-tabs .product-carousel__arrow,
  .mm-pf .product-carousel__arrow {
    width: 32px;
    height: 32px;
  }

  .mm-pf .product-carousel__track {
    gap: 12px;
  }

  .mm-pf .product-card {
    width: calc((100% - 12px) / 2);
  }
}

/* Linhas de categoria no mobile (design: .product-finder__title 1.5rem) */
@media (max-width: 768px) {
  .mm-pf .product-finder__title {
    font-size: 24px;
  }

  .mm-pf .product-finder__title-row {
    gap: 10px;
    margin-bottom: 18px;
  }
}

/* ===== "O que você procura?" no mobile: setas embaixo dos cards =====
   Mesma linha do botão "Ver mais…" (botão à esquerda, setas à direita),
   como no design (.product-finder__grid no mobile). O JS
   (product-finder.js, placeArrows) move as setas pra cá abaixo de 768px. */
@media (max-width: 768px) {
  .mm-pf .product-carousel__see-more.has-arrows {
    justify-content: space-between;
    align-items: center;
    gap: 12px;
  }

  .mm-pf .product-carousel__see-more.has-arrows .product-carousel__see-more-button {
    min-width: 0;
  }
}
