/* =====================================================
   Corsell - Guitar Models Slider v3
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Jost:wght@300;400&display=swap');

.corsell-slider-section {
  width: 100%;
  /* background: #F5F0E8; */
  padding: 80px 40px 100px;
  overflow: hidden;
  position: relative;
  box-sizing: border-box;
}

.corsell-swiper {
  width: 100%;
  padding: 0 0 60px !important;
}

.corsell-swiper .swiper-wrapper {
  align-items: stretch;
}

/* --- Card ------------------------------------------------ */
.corsell-card {
  border-radius: 20px;
  border: 1px solid rgba(180,160,120,0.2);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  height: 480px;
  background-color: #EDE8DC;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-decoration: none;
  color: inherit;
}

.corsell-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(80,60,20,0.22);
}

/* Zoom sutil na foto ao hover via pseudo-elemento */
.corsell-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 0;
}

.corsell-card:hover .corsell-card-bg {
  transform: scale(1.04);
}

/* --- Cabecalho: numero + linha -------------------------------- */
.corsell-card-header {
  position: absolute;
  top: 22px;
  left: 22px;
  right: 22px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 2;
  overflow: hidden;
}

.corsell-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 15px;
  letter-spacing: 0.1em;
  color: #5A4A30;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.1s,
              transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.1s;
  flex-shrink: 0;
  line-height: 1;
}

/* Linha curta - 15% do espaco disponivel via max-width */
.corsell-line-svg {
  width: 15%;
  flex: none;
  height: 10px;
  overflow: visible;
}

.corsell-line-path {
  stroke: #8B7355;
  stroke-width: 1;
  fill: none;
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  transition: stroke-dashoffset 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.55s;
}

/* Estado ativado */
.corsell-card.is-visible .corsell-num {
  opacity: 1;
  transform: translateY(0);
}

.corsell-card.is-visible .corsell-line-path {
  stroke-dashoffset: 0;
}

/* --- Tag de status (Vendida) ----------------------------------- */
.corsell-card-status {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 3;
  background: #8B7355;
  color: #F5F0E8;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 12px;
  letter-spacing: 0.12em;
  padding: 6px 14px;
  border-radius: 4px;
  box-shadow: 0 6px 16px rgba(80,60,20,0.25);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.1s,
              transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.1s;
}

.corsell-card.is-visible .corsell-card-status {
  opacity: 1;
  transform: translateY(0);
}

/* --- Textos no rodape ----------------------------------------- */
.corsell-card-body {
  position: relative;
  z-index: 2;
  padding: 0 20px 24px;
  text-align: center;
}

.corsell-card-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 0.1em;
  color: #2C2416;
  margin: 0 0 10px;
  line-height: 1.1;
}

/* Divisor com imagem */
.corsell-card-sep {
  width: 40px;
  height: 14px;
  background-image: url('/wp-content/uploads/2026/05/div.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin: 0 auto 10px;
  opacity: 0.85;
}

.corsell-card-desc {
  font-family: 'Jost', sans-serif;
  font-size: 12.5px;
  font-weight: 300;
  line-height: 1.65;
  color: #5A4A30;
  margin: 0;
}

/* --- Caption do vendedor (abaixo do card) ---------------------- */
.corsell-card-caption {
  margin-top: 12px;
  padding: 0 8px;
  text-align: center;
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  line-height: 1.4;
}

.corsell-caption-label {
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #8B7355;
  font-weight: 400;
  margin-right: 4px;
}

.corsell-caption-nome {
  font-weight: 600;
  color: #2C2416;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, color 0.3s ease;
}

a.corsell-caption-nome:hover {
  color: #8B7355;
  border-bottom-color: #8B7355;
}

.corsell-caption-flag {
  margin-left: 5px;
  font-size: 12px;
  vertical-align: middle;
}

/* --- Navegacao (bullets Apple) -------------------------------- */
.corsell-slider-section .swiper-pagination {
  bottom: 20px !important;
}

.corsell-slider-section .swiper-pagination-bullet {
  width: 6px;
  height: 6px;
  background: #B8A882;
  opacity: 0.4;
  border-radius: 3px;
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.corsell-slider-section .swiper-pagination-bullet-active {
  width: 24px;
  opacity: 1;
  background: #8B7355;
  border-radius: 3px;
}

/* Setas */
.corsell-slider-section .swiper-button-prev,
.corsell-slider-section .swiper-button-next {
  width: 40px;
  height: 40px;
  background: rgba(237,232,220,0.88);
  border: 1px solid rgba(180,160,120,0.3);
  border-radius: 50%;
  backdrop-filter: blur(8px);
  top: 44%;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.corsell-slider-section .swiper-button-prev::after,
.corsell-slider-section .swiper-button-next::after {
  font-size: 12px;
  color: #8B7355;
  font-weight: 700;
}

.corsell-slider-section .swiper-button-prev:hover,
.corsell-slider-section .swiper-button-next:hover {
  background: rgba(200,169,110,0.95);
  border-color: #C8A96E;
  box-shadow: 0 8px 24px rgba(139,115,85,0.25);
}

.corsell-slider-section .swiper-button-prev:hover::after,
.corsell-slider-section .swiper-button-next:hover::after {
  color: #fff;
}

/* --- Responsivo ----------------------------------------------- */
@media (max-width: 768px) {
  /* Sangria so' do lado direito: mantem o alinhamento a esquerda com o
     resto da pagina (padding-left intacto), mas deixa a "espiada" do
     proximo card (slidesPerView: 1.2, de proposito no JS) ir ate a
     borda direita real da tela, em vez de parar cedo com um respiro
     extra que fazia parecer um corte acidental. */
  .corsell-slider-section {
    padding-top: 60px;
    padding-bottom: 80px;
    padding-left: 20px;
    padding-right: 0;
  }
  .corsell-card {
    height: 420px;
  }
  .corsell-slider-section .swiper-button-prev,
  .corsell-slider-section .swiper-button-next {
    display: none;
  }

  /* O Elementor as vezes envolve esse widget num Container "Boxed"
     (e-con-boxed), que por padrao tem um respiro proprio (10px) nos
     dois lados no mobile -- isso sobrava do lado direito e impedia a
     "espiada" do proximo card de chegar na borda real da tela. Zera so'
     esse respiro do lado direito quando o container envolve o slider em
     modo serie, sem mexer em nenhum outro Container Boxed do site. */
  .e-con-boxed:has(> * .corsell-slider-serie),
  .e-con-boxed:has(> .corsell-slider-serie) {
    padding-right: 0 !important;
  }
}
