/** Shopify CDN: Minification failed

Line 286:14 Expected "*/" to terminate multi-line comment

**/
/* =============================================================================
   custom-product-grid.css
   Estilos exclusivos da seção main-product-custom.liquid.
   Carregado apenas dentro dessa seção — não afeta nenhuma outra página.
   ============================================================================= */

/* ---------------------------------------------------------------------------
   1. BADGES / SELOS  (.cpc-badges)
   --------------------------------------------------------------------------- */
.cpc-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.cpc-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.6;
  text-transform: uppercase;
  color: #fff;
}

/* ---------------------------------------------------------------------------
   2. TÍTULO
   --------------------------------------------------------------------------- */
.cpc-title {
  margin-bottom: 10px;
}

/* ---------------------------------------------------------------------------
   3. BLOCO DE PREÇO
   --------------------------------------------------------------------------- */
.cpc-price-row {
  margin-bottom: 6px;
}

/*
  Preço atual em destaque (~30px).
  .price-item--sale  → preço de venda (em promoção)
  .price__regular .price-item--regular → preço normal (sem promoção)
  Em Dawn, 1rem = 16px (base do browser sem reset).
*/
.cpc-price-row .price-item--sale,
.cpc-price-row .price__regular .price-item--regular {
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1.15;
}

/*
  Compare_at_price riscado: menor e mais discreto.
  Escopo .price__sale evita sobrescrever o preço regular acima.
*/
.cpc-price-row .price__sale .price-item--regular {
  font-size: 1.4rem;
  font-weight: 400;
  color: rgba(var(--color-foreground), 0.45);
}

/* ---------------------------------------------------------------------------
   4. PARCELAMENTO
   --------------------------------------------------------------------------- */
.cpc-installments {
  margin-bottom: 16px;
  font-size: 1.2rem;
}

/* Shopify injeta um <p> dentro do form — garantir que não quebre layout */
.cpc-installments .shopify-payment-terms__container {
  display: block;
}

/* ---------------------------------------------------------------------------
   5. INDICADOR DE ESTOQUE
   Reutiliza o elemento original .product__inventory que o JS do tema
   já atualiza dinamicamente. A bolinha é criada por CSS usando o
   currentColor do .svg-wrapper (cujo inline style carrega a cor).
   --------------------------------------------------------------------------- */
.cpc-section .product__inventory {
  display: flex !important;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 1.3rem;
}

/* Esconde o SVG original */
.cpc-section .product__inventory .svg-wrapper svg {
  display: none;
}

/* Substitui o SVG por uma bolinha CSS que herda a cor inline do wrapper */
.cpc-section .product__inventory .svg-wrapper {
  position: relative;
  display: inline-flex;
  width: 10px;
  height: 10px;
  flex-shrink: 0;
}

.cpc-section .product__inventory .svg-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: currentColor; /* herda color: rgb(...) do style inline */
}

/* ---------------------------------------------------------------------------
   6. DESCRIÇÃO CURTA
   --------------------------------------------------------------------------- */
.cpc-description {
  font-size: 1.4rem;
  line-height: 1.65;
  margin-bottom: 20px;
}

.cpc-description p:last-child {
  margin-bottom: 0;
}

/* ---------------------------------------------------------------------------
   7. SELETOR DE COR — swatches redondos
   O swatch_shape "circle" já está definido no schema (default).
   Apenas reforçamos o espaçamento da fieldset de cor.
   --------------------------------------------------------------------------- */
.cpc-variants-wrapper .product-form__input--swatch {
  margin-bottom: 18px;
}

/* ---------------------------------------------------------------------------
   8. SELETOR DE TAMANHO — grid de botões
   A fieldset .product-form__input--pill recebe layout flex-wrap;
   Dawn já estiliza os labels como pills. Aqui só alteramos o container
   para exibir em grid de múltiplas colunas.
   --------------------------------------------------------------------------- */
.cpc-variants-wrapper .product-form__input--pill {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

/* Remove a margem individual dos labels (a gap do flex já cuida do espaço) */
.cpc-variants-wrapper .product-form__input--pill input[type='radio'] + label {
  margin: 0;
  /* Garante largura mínima uniforme para aparência de grid */
  min-width: 52px;
  justify-content: center;
  text-align: center;
}

/* ---------------------------------------------------------------------------
   9. QUANTIDADE + BOTÃO DE COMPRA — mesma linha (flex row)
   --------------------------------------------------------------------------- */
.cpc-buy-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 22px;
  flex-wrap: nowrap;
}

/* Quantity selector: largura compacta fixa */
.cpc-buy-row > .product-form__quantity {
  flex: 0 0 auto;
  margin: 0;
}

/*
  O snippet buy-buttons.liquid gera esta hierarquia dentro de .cpc-buy-row:
    <div>                           ← filho direto, sem classe (block.shopify_attributes)
      <product-form class="product-form">
        <form class="form">
          <div class="product-form__buttons">
            <button class="button button--full-width">

  O seletor correto para o filho direto é div:not(.product-form__quantity),
  pois a div de quantidade tem essa classe e o wrapper de buy-buttons não tem nenhuma.
*/

/* Wrapper anônimo do buy-buttons: ocupa todo o espaço restante */
.cpc-buy-row > div:not(.product-form__quantity) {
  flex: 1 1 auto;
  min-width: 0;
}

/* Toda a cadeia interna deve ter largura 100% */
.cpc-buy-row > div:not(.product-form__quantity) product-form,
.cpc-buy-row > div:not(.product-form__quantity) .form,
.cpc-buy-row > div:not(.product-form__quantity) .product-form__buttons {
  width: 100%;
  /* Anula max-width: 44rem definido em section-main-product.css */
  max-width: none;
}

/* Garante botão full-width sem limit externo */
.cpc-buy-row .product-form__submit {
  width: 100%;
  max-width: none;
}

/* No mobile estreito, empilha verticalmente */
@media screen and (max-width: 480px) {
  .cpc-buy-row {
    flex-wrap: wrap;
  }

  .cpc-buy-row > .product-form__quantity {
    flex: 0 0 100%;
  }

  .cpc-buy-row > div:not(.product-form__quantity) {
    flex: 0 0 100%;
  }
}

/* ---------------------------------------------------------------------------
   10. GALERIA MOBILE — miniaturas sobrepostas na imagem principal
   Aplica apenas dentro de .cpc-section e apenas em viewport <= 749px.
   --------------------------------------------------------------------------- */
@media screen and (max-width: 749px) {
  /* Contexto de posicionamento para a galeria */
  .cpc-section .product__media-wrapper {
    position: relative;
  }

  /*
    Seleciona o container de thumbnails gerado pelo snippet product-media-gallery.
    Dawn usa as classes abaixo dependendo do gallery_layout escolhido.
    Todas ficam absolutas na parte inferior da imagem principal.
  */
  .cpc-section .media-gallery__thumbs,
  .cpc-section .thumbnail-slider__wrapper,
  .cpc-section [class*='thumbnail'] {
    position: absolute !important;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    /* Scroll horizontal com fundo translúcido */
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 6px;
    /* Fundo blur */
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 8px;
    padding: 6px 8px;
    max-width: calc(100% - 24px);
    width: auto;
    z-index: 10;
  }

  .cpc-section .media-gallery__thumbs::-webkit-scrollbar,
  .cpc-section .thumbnail-slider__wrapper::-webkit-scrollbar {
    display: none;
  }

  /* Cada miniatura: tamanho compacto e fixo */
  .cpc-section .media-gallery__thumbs .thumbnail,
  .cpc-section .thumbnail-slider__wrapper .thumbnail,
  .cpc-section [class*='thumbnail'] .media {
    flex: 0 0 auto;
    width: 48px !important;
    height: 48px !important;
    margin: 0 !important;
  }

  /*
    Adiciona p