/* CLICK PETIT V284 — carrossel horizontal da Home
   Escopo: Vitrine de Produtos, Serviços em destaque e Vitrine de Cursos.
   Mantém os cards, CTAs inferiores e design system existentes. */

.cp-home-carousel{
  position:relative;
  margin-top:12px;
  --cp-carousel-gap:16px;
  --cp-carousel-card-basis:calc((100% - (var(--cp-carousel-gap) * 3)) / 4.15);
}

.cp-home-carousel-track.listing-grid,
.cp-home-carousel-track.service-grid{
  display:flex;
  grid-template-columns:none;
  gap:var(--cp-carousel-gap);
  margin-top:0;
  overflow-x:auto;
  overflow-y:hidden;
  padding:3px 2px 18px;
  scroll-behavior:smooth;
  scroll-snap-type:x mandatory;
  scroll-padding-inline:2px;
  overscroll-behavior-x:contain;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
  touch-action:pan-x pan-y;
}

.cp-home-carousel-track::-webkit-scrollbar{display:none}

.cp-home-carousel-track>.product-card,
.cp-home-carousel-track>.service-card,
.cp-home-carousel-track>.cp-home-see-all-card{
  flex:0 0 var(--cp-carousel-card-basis);
  width:var(--cp-carousel-card-basis);
  min-width:220px;
  max-width:none;
  scroll-snap-align:start;
  scroll-snap-stop:normal;
}

.cp-home-carousel-track>.cp-carousel-overflow-card{display:none!important}

.cp-home-carousel-arrow{
  position:absolute;
  top:50%;
  z-index:8;
  width:46px;
  height:46px;
  margin:0;
  padding:0;
  border:1px solid rgba(17,17,20,.14);
  border-radius:999px;
  display:grid;
  place-items:center;
  color:#17151b;
  background:rgba(255,255,255,.96);
  box-shadow:0 12px 30px rgba(26,20,35,.16);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  transform:translateY(-50%);
  transition:opacity .2s ease,transform .2s ease,box-shadow .2s ease,border-color .2s ease;
  cursor:pointer;
}

.cp-home-carousel-arrow svg{width:20px;height:20px;display:block}
.cp-home-carousel-arrow--prev{left:-18px}
.cp-home-carousel-arrow--next{right:-18px}
.cp-home-carousel-arrow:hover:not(:disabled){
  transform:translateY(-50%) scale(1.05);
  border-color:rgba(111,53,255,.28);
  box-shadow:0 16px 34px rgba(77,42,128,.21);
}
.cp-home-carousel-arrow:active:not(:disabled){transform:translateY(-50%) scale(.96)}
.cp-home-carousel-arrow:disabled{
  opacity:0;
  pointer-events:none;
}

.cp-home-carousel:before,
.cp-home-carousel:after{
  content:"";
  position:absolute;
  top:0;
  bottom:18px;
  width:38px;
  z-index:5;
  pointer-events:none;
  opacity:0;
  transition:opacity .2s ease;
}
.cp-home-carousel:before{left:0;background:linear-gradient(90deg,#fff 0%,rgba(255,255,255,.86) 35%,rgba(255,255,255,0) 100%)}
.cp-home-carousel:after{right:0;background:linear-gradient(270deg,#fff 0%,rgba(255,255,255,.86) 35%,rgba(255,255,255,0) 100%)}
.cp-home-carousel.has-scrolled:before{opacity:1}
.cp-home-carousel.has-overflow:not(.is-at-end):after{opacity:1}

.cp-home-see-all-card{
  position:relative;
  min-height:100%;
  border:1px solid rgba(111,53,255,.15);
  border-radius:20px;
  overflow:hidden;
  display:flex;
  align-items:stretch;
  color:#fff;
  background:linear-gradient(145deg,#121016 0%,#24132f 54%,#3b174e 100%);
  box-shadow:var(--shadow-sm);
  text-decoration:none;
  transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease;
}
.cp-home-see-all-card:before{
  content:"";
  position:absolute;
  width:190px;
  height:190px;
  right:-74px;
  top:-84px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(255,63,164,.27),rgba(111,53,255,.08) 54%,transparent 72%);
}
.cp-home-see-all-card:after{
  content:"";
  position:absolute;
  inset:auto -35% -46% 20%;
  height:62%;
  transform:rotate(-12deg);
  background:linear-gradient(100deg,transparent,rgba(255,255,255,.07),transparent);
}
.cp-home-see-all-card:hover{
  transform:translateY(-3px);
  border-color:rgba(255,63,164,.28);
  box-shadow:0 22px 46px rgba(58,24,79,.22);
}
.cp-home-see-all-inner{
  position:relative;
  z-index:2;
  width:100%;
  min-height:100%;
  padding:22px;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  gap:10px;
}
.cp-home-see-all-icon{
  margin-bottom:auto;
  width:48px;
  height:48px;
  border-radius:16px;
  display:grid;
  place-items:center;
  color:#fff;
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.12);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08);
}
.cp-home-see-all-icon svg{width:22px;height:22px;display:block}
.cp-home-see-all-kicker{
  color:#d8cedd;
  font-size:12px;
  line-height:1.45;
}
.cp-home-see-all-label{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  font-family:Manrope,Inter,sans-serif;
  font-weight:800;
  font-size:18px;
  letter-spacing:-.02em;
}
.cp-home-see-all-label svg{width:19px;height:19px;flex:0 0 19px;transition:transform .2s ease}
.cp-home-see-all-card:hover .cp-home-see-all-label svg{transform:translateX(4px)}

.cp-home-carousel-hint{
  display:none;
  align-items:center;
  justify-content:center;
  gap:7px;
  width:max-content;
  max-width:100%;
  margin:3px auto 0;
  padding:7px 11px;
  border:1px solid #ebe5f1;
  border-radius:999px;
  color:#746c7c;
  background:#fbf9fd;
  font-size:10px;
  font-weight:800;
  letter-spacing:.01em;
  transition:opacity .25s ease,transform .25s ease;
}
.cp-home-carousel-hint.is-dismissed{opacity:0;transform:translateY(-3px);pointer-events:none}

.cp-home-carousel-track>.cp-home-empty,
.cp-home-carousel-track>.cp-home-service-empty{
  flex:1 0 100%;
  width:100%;
}

@media(max-width:1199px){
  .cp-home-carousel{
    --cp-carousel-gap:14px;
    --cp-carousel-card-basis:calc((100% - (var(--cp-carousel-gap) * 2)) / 3.15);
  }
}

@media(max-width:767px){
  .cp-home-carousel{
    --cp-carousel-gap:10px;
    --cp-carousel-card-basis:calc((100% - var(--cp-carousel-gap)) / 2);
    margin-inline:-2px;
  }
  .cp-home-carousel-track.listing-grid,
  .cp-home-carousel-track.service-grid{
    gap:var(--cp-carousel-gap);
    padding:3px 2px 12px;
    scroll-snap-type:x mandatory;
  }
  .cp-home-carousel-track>.product-card,
  .cp-home-carousel-track>.service-card,
  .cp-home-carousel-track>.cp-home-see-all-card{
    flex-basis:var(--cp-carousel-card-basis);
    width:var(--cp-carousel-card-basis);
    min-width:0;
  }
  .cp-home-carousel-arrow{display:none}
  .cp-home-carousel:before,
  .cp-home-carousel:after{bottom:12px;width:26px}
  .cp-home-carousel:before{left:0}
  .cp-home-carousel:after{right:0}
  .cp-home-carousel-hint{display:flex}
  .cp-home-see-all-inner{padding:18px}
  .cp-home-see-all-label{font-size:17px}
}

@media(prefers-reduced-motion:reduce){
  .cp-home-carousel-track.listing-grid,
  .cp-home-carousel-track.service-grid{scroll-behavior:auto}
  .cp-home-carousel-arrow,
  .cp-home-see-all-card,
  .cp-home-see-all-label svg,
  .cp-home-carousel-hint{transition:none}
}

/* CLICK PETIT V286 CANDIDATA — ETAPA 1
   Card editorial premium de descoberta; sem fotos/miniaturas. */
.cp-home-see-all-card{
  color:#17151b;
  border-color:rgba(111,53,255,.18);
  background:linear-gradient(150deg,#fff 0%,#fbf8ff 55%,#f7efff 100%);
  box-shadow:0 14px 34px rgba(73,42,111,.10);
}
.cp-home-see-all-card:before{
  width:210px;height:210px;right:-82px;top:-92px;
  background:radial-gradient(circle,rgba(255,63,164,.16),rgba(111,53,255,.08) 52%,transparent 73%);
}
.cp-home-see-all-card:after{
  inset:auto -42% -33% 12%;height:38%;transform:rotate(-11deg);
  background:linear-gradient(100deg,transparent,rgba(111,53,255,.05),rgba(255,63,164,.08),transparent);
}
.cp-home-see-all-card:hover{border-color:rgba(111,53,255,.30);box-shadow:0 20px 42px rgba(73,42,111,.15)}
.cp-home-see-all-inner{padding:16px;gap:7px;justify-content:flex-start}
.cp-home-see-all-visual{
  position:relative;display:grid;place-items:center;width:100%;min-height:138px;margin-bottom:4px;
  border:1px solid rgba(111,53,255,.14);border-radius:16px;
  background:linear-gradient(145deg,rgba(255,255,255,.88),rgba(252,247,255,.94));overflow:hidden;
}
.cp-home-see-all-icon{
  position:relative;z-index:3;margin:0;width:46px;height:46px;border-radius:999px;
  color:#7a38ff;background:rgba(255,255,255,.93);border:1px solid rgba(111,53,255,.20);
  box-shadow:0 8px 22px rgba(111,53,255,.08);
}
.cp-home-see-all-icon svg{width:22px;height:22px}
.cp-home-see-all-orbit{position:absolute;z-index:1;width:70px;height:42px;border:1px solid rgba(111,53,255,.16);border-radius:50%}
.cp-home-see-all-orbit--1{transform:rotate(18deg)}
.cp-home-see-all-orbit--2{transform:rotate(-18deg);border-color:rgba(255,63,164,.14)}
.cp-home-see-all-kicker{
  width:max-content;max-width:100%;padding:5px 8px;border-radius:999px;
  color:#6f35ff;background:#f1ebff;border:1px solid rgba(111,53,255,.10);
  font-size:8px;line-height:1;font-weight:900;letter-spacing:.08em;text-transform:uppercase;
}
.cp-home-see-all-title{display:block;color:#17151b;font:850 17px/1.08 Manrope,Inter,sans-serif;letter-spacing:-.035em}
.cp-home-see-all-copy{display:block;color:#77717d;font-size:10px;line-height:1.4;min-height:42px}
.cp-home-see-all-label{
  margin-top:auto;min-height:38px;padding:0 12px;border-radius:10px;color:#fff;
  background:linear-gradient(100deg,#6f35ff 0%,#a947ff 55%,#ff3fa4 100%);
  box-shadow:0 8px 18px rgba(111,53,255,.17);font-size:11px;
}
.cp-home-see-all-card--services{border-color:rgba(23,166,122,.19);background:linear-gradient(150deg,#fff 0%,#f6fffc 56%,#f0f7ff 100%)}
.cp-home-see-all-card--services .cp-home-see-all-visual{border-color:rgba(23,166,122,.15);background:linear-gradient(145deg,rgba(255,255,255,.9),rgba(244,255,251,.95))}
.cp-home-see-all-card--services .cp-home-see-all-icon{color:#139b74;border-color:rgba(23,166,122,.20)}
.cp-home-see-all-card--services .cp-home-see-all-orbit{border-color:rgba(23,166,122,.16)}
.cp-home-see-all-card--services .cp-home-see-all-orbit--2{border-color:rgba(111,53,255,.12)}
.cp-home-see-all-card--services .cp-home-see-all-kicker{color:#0a8b68;background:#e8faf4;border-color:rgba(23,166,122,.11)}
.cp-home-see-all-card--services .cp-home-see-all-label{background:linear-gradient(100deg,#0a9c72 0%,#21b69a 50%,#6f35ff 100%)}
.cp-home-see-all-card--courses{border-color:rgba(111,53,255,.18);background:linear-gradient(150deg,#fff 0%,#f9f6ff 52%,#f3edff 100%)}
.cp-home-see-all-card--courses .cp-home-see-all-icon{color:#6840ff}
.cp-home-see-all-card--courses .cp-home-see-all-kicker{color:#6840ff;background:#efebff}
.cp-home-see-all-card--courses .cp-home-see-all-label{background:linear-gradient(100deg,#6142ec 0%,#8937ff 100%)}
@media(max-width:767px){

  .cp-home-see-all-inner{
    padding:10px;
    gap:5px;
    height:100%;
  }

  .cp-home-see-all-visual.has-image{
    flex:1 1 auto;
    width:100%;
    height:auto;
    min-height:185px;
    margin-bottom:3px;
    border-radius:14px;
  }

  .cp-home-see-all-kicker{
    flex:0 0 auto;
  }

  .cp-home-see-all-title{
    flex:0 0 auto;
    font-size:14px;
    line-height:1.08;
  }

  .cp-home-see-all-copy{
    flex:0 0 auto;
    min-height:0;
    margin:0;
    font-size:9px;
    line-height:1.3;
  }

  .cp-home-see-all-label{
    flex:0 0 auto;
    margin-top:3px;
    min-height:34px;
  }
}

/* V299 — restaura a presença visual aprovada das fotos dos cards VER TUDO. */
@media(min-width:768px){
  .cp-home-see-all-visual.has-image{height:auto!important;min-height:0!important;aspect-ratio:1/1}
}


/* V286 — ajuste pós-homologação: imagem editorial aprovada no lugar da arte abstrata.
   Mantém dimensões, conteúdo, cores e CTA do card; apenas substitui o conteúdo visual. */
.cp-home-see-all-visual.has-image{
  height:138px;
  min-height:138px;
  display:block;
  background:#f4f1f6;
}
.cp-home-see-all-image{
  position:absolute;
  inset:0;
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:var(--cp-see-all-image-position,50% 50%);
}
.cp-home-see-all-visual.has-image:after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:linear-gradient(180deg,rgba(17,13,23,0) 62%,rgba(17,13,23,.08) 100%);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.16);
}
@media(max-width:767px){
  .cp-home-see-all-visual.has-image{height:auto;min-height:185px}
}

/* CLICK PETIT V286 CANDIDATA — ETAPA 2
   Vitrine de Produtos em 3 fileiras horizontais, até 12 produtos por fileira. */
.cp-home-product-rows{
  display:grid;
  gap:14px;
  margin-top:12px;
}
.cp-home-product-row{min-width:0}
.cp-home-product-row .cp-home-carousel{margin-top:0}
.cp-home-product-row .cp-home-carousel-track{margin-top:0}
.cp-home-product-row:not(:first-child) .cp-home-carousel-hint{display:none!important}
@media(max-width:767px){
  .cp-home-product-rows{gap:10px;margin-top:10px}
}


/* CLICK PETIT V286 — ETAPA 3: cards completos de Serviços na Home.
   Mantém o renderer e o carrossel; apenas garante leitura integral dos dados do anúncio. */
.cp-home-carousel[data-cp-carousel-kind="services"] .cp-home-service-card-complete .service-body{
  gap:7px;
  padding:14px;
}
.cp-home-carousel[data-cp-carousel-kind="services"] .cp-home-service-card-complete .service-title{
  min-height:2.5em;
  line-height:1.25;
  -webkit-line-clamp:2;
}
.cp-home-carousel[data-cp-carousel-kind="services"] .cp-home-service-card-complete .service-provider{
  display:block;
  margin-top:-2px;
  color:#7a7480;
  font-size:10px;
  line-height:1.3;
  font-weight:600;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.cp-home-carousel[data-cp-carousel-kind="services"] .cp-home-service-card-complete .service-price{
  font-size:15px;
  line-height:1.18;
  font-weight:800;
}
.cp-home-carousel[data-cp-carousel-kind="services"] .cp-home-service-card-complete .service-tags{
  gap:5px;
}
.cp-home-carousel[data-cp-carousel-kind="services"] .cp-home-service-card-complete .service-tag{
  min-height:0;
  padding:6px 8px;
  font-size:9px;
  line-height:1;
}
.cp-home-carousel[data-cp-carousel-kind="services"] .cp-home-service-card-complete .service-meta{
  margin-top:auto;
  padding-top:2px;
  display:flex;
  flex-direction:row;
  justify-content:space-between;
  align-items:flex-end;
  gap:8px;
  font-size:10px;
  line-height:1.3;
}
.cp-home-carousel[data-cp-carousel-kind="services"] .cp-home-service-card-complete .service-meta span{
  min-width:0;
}
.cp-home-carousel[data-cp-carousel-kind="services"] .cp-home-service-card-complete .service-meta-place{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.cp-home-carousel[data-cp-carousel-kind="services"] .cp-home-service-card-complete .service-meta-mode{
  flex:0 0 auto;
  font-weight:700;
}
@media(max-width:767px){
  .cp-home-carousel[data-cp-carousel-kind="services"] .cp-home-service-card-complete .service-body{padding:10px;gap:5px}
  .cp-home-carousel[data-cp-carousel-kind="services"] .cp-home-service-card-complete .service-title{font-size:11.5px;min-height:2.5em}
  .cp-home-carousel[data-cp-carousel-kind="services"] .cp-home-service-card-complete .service-provider{font-size:8.5px}
  .cp-home-carousel[data-cp-carousel-kind="services"] .cp-home-service-card-complete .service-price{font-size:13px}
  .cp-home-carousel[data-cp-carousel-kind="services"] .cp-home-service-card-complete .service-tag{font-size:8px;padding:5px 6px}
  .cp-home-carousel[data-cp-carousel-kind="services"] .cp-home-service-card-complete .service-meta{font-size:8px;gap:5px}
}

/* CLICK PETIT V286 — ETAPA 4: cards completos de Cursos na Home.
   Espelha a densidade informacional da busca: categoria, título, preço, tags, localização e modalidade. */
.cp-home-carousel[data-cp-carousel-kind="courses"] .cp-home-course-card-complete .product-body{
  display:flex;
  flex-direction:column;
  gap:7px;
  padding:14px;
}
.cp-home-carousel[data-cp-carousel-kind="courses"] .cp-home-course-card-complete .product-category{
  margin-bottom:0;
}
.cp-home-carousel[data-cp-carousel-kind="courses"] .cp-home-course-card-complete .product-title{
  margin-bottom:0;
  min-height:2.5em;
  line-height:1.25;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.cp-home-carousel[data-cp-carousel-kind="courses"] .cp-home-course-card-complete .product-price{
  font-size:15px;
  line-height:1.18;
  font-weight:800;
}
.cp-home-course-tags{
  display:flex;
  flex-wrap:wrap;
  gap:5px;
}
.cp-home-course-tag{
  display:inline-flex;
  align-items:center;
  min-height:0;
  padding:6px 8px;
  border-radius:999px;
  background:#f5f2f8;
  border:1px solid #eee8f2;
  color:#756d79;
  font-size:9px;
  line-height:1;
  font-weight:650;
  max-width:100%;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.cp-home-course-meta{
  margin-top:auto;
  padding-top:2px;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:8px;
  color:#7a7480;
  font-size:10px;
  line-height:1.3;
}
.cp-home-course-meta span{min-width:0}
.cp-home-course-place{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.cp-home-course-mode{
  flex:0 0 auto;
  font-weight:700;
}
@media(max-width:767px){
  .cp-home-carousel[data-cp-carousel-kind="courses"] .cp-home-course-card-complete .product-body{padding:10px;gap:5px}
  .cp-home-carousel[data-cp-carousel-kind="courses"] .cp-home-course-card-complete .product-title{font-size:11.5px;min-height:2.5em}
  .cp-home-carousel[data-cp-carousel-kind="courses"] .cp-home-course-card-complete .product-price{font-size:13px}
  .cp-home-course-tag{font-size:8px;padding:5px 6px}
  .cp-home-course-meta{font-size:8px;gap:5px}
}

/* V306 — card VER TUDO responsivo conforme referência aprovada.
   O card acompanha a altura definida pelos anúncios vizinhos; somente a foto
   absorve o espaço interno restante. Nenhuma regra alcança os cards comuns. */
.cp-home-carousel-track>.cp-home-see-all-card{
  min-height:0;
  align-self:stretch;
}
.cp-home-see-all-card .cp-home-see-all-inner{
  height:100%;
  min-height:0;
  overflow:hidden;
}
.cp-home-see-all-card .cp-home-see-all-visual.has-image{
  flex:1 1 0;
  width:100%;
  height:auto!important;
  min-height:0!important;
  aspect-ratio:auto!important;
  margin-bottom:3px;
}
.cp-home-see-all-card .cp-home-see-all-kicker,
.cp-home-see-all-card .cp-home-see-all-title,
.cp-home-see-all-card .cp-home-see-all-copy,
.cp-home-see-all-card .cp-home-see-all-label{
  flex:0 0 auto;
}
.cp-home-see-all-card .cp-home-see-all-copy{
  min-height:0;
  margin:0;
}
.cp-home-see-all-card .cp-home-see-all-label{
  margin-top:3px;
}
@media(min-width:768px){
  .cp-home-see-all-card .cp-home-see-all-inner{
    padding:10px;
    gap:7px;
  }
}
@media(max-width:767px){
  .cp-home-see-all-card .cp-home-see-all-visual.has-image{
    min-height:185px!important;
  }
}
