/* ProductCarousel.css — Ramos de Atuação (carrossel mobile/tablet) */

.carouselContainer {
  width: 100%;
  position: relative;
  padding: 0 0 56px;
  overflow: visible;
}

.swiper.productCarousel {
  width: 100%;
  padding: 12px 8px 48px;       /* lateral 8px = quase encostado nas bordas */
  overflow: hidden;
}

.swiper-slide {
  display: flex;
  align-items: stretch;
  height: auto;
  box-sizing: border-box;
}

.cardWrapper {
  width: 100%;
  margin: 0;
  display: flex;
  align-items: stretch;
}

/* ─────────────────────────────────────────────────────────
   CARD RICO (badge + título + descrição + CTA)
   ───────────────────────────────────────────────────────── */
.pc-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: #ffffff;
  border: 1px solid #ececec;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(187, 6, 6, 0.18);
}

/* Imagem */
.pc-card-image {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, #f7f7f7, #efefef);
  overflow: hidden;
  flex-shrink: 0;
}
.pc-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.pc-card:hover .pc-card-image img { transform: scale(1.05); }

/* Body */
.pc-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px 22px;
  flex: 1;
}

.pc-card-badge {
  display: inline-block;
  align-self: flex-start;
  background: rgba(187, 6, 6, 0.08);
  color: #BB0606;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}

.pc-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #111;
  margin: 0;
  line-height: 1.25;
  letter-spacing: -0.2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pc-card-desc {
  font-size: 0.88rem;
  color: #666;
  line-height: 1.55;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.pc-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  padding: 10px 18px;
  background: #BB0606;
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 8px;
  align-self: flex-start;
  transition: background 0.2s ease, transform 0.2s ease, gap 0.2s ease, box-shadow 0.2s ease;
}
.pc-card-cta:hover {
  background: #9a0505;
  transform: translateY(-2px);
  gap: 12px;
  box-shadow: 0 8px 18px rgba(187, 6, 6, 0.32);
}
.pc-card-cta i { font-size: 0.75rem; }

/* ── Setas custom ── */
.customPrevButton,
.customNextButton {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  z-index: 10;
  width: 42px;
  height: 42px;
  font-size: 17px;
  background-color: #fff;
  border-radius: 50%;
  color: #BB0606;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid #ececec;
  user-select: none;
}
.customPrevButton { left: 4px; }
.customNextButton { right: 4px; }
.customPrevButton:hover,
.customNextButton:hover {
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 8px 22px rgba(187, 6, 6, 0.28);
}
.swiper-button-disabled { opacity: 0.35; cursor: not-allowed; }
.swiper-button-disabled:hover {
  transform: translateY(-50%) scale(1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16);
}

/* ── Paginação ── */
.swiper-pagination {
  position: absolute;
  bottom: 8px !important;
  text-align: center;
  width: 100%;
  z-index: 10;
}
.swiper-pagination-bullet {
  width: 9px !important;
  height: 9px !important;
  background: #d0d0d0 !important;
  opacity: 1 !important;
  margin: 0 5px !important;
  transition: width 0.28s ease, background 0.28s ease;
  border-radius: 999px !important;
}
.swiper-pagination-bullet-active {
  width: 28px !important;
  background: #BB0606 !important;
}

/* ── Tablet ≥600px ── */
@media (min-width: 600px) {
  .swiper.productCarousel { padding: 14px 12px 50px; }
  .pc-card-image { height: 240px; }
}

/* ── Desktop pequeno ≥900px ── */
@media (min-width: 900px) {
  .swiper.productCarousel { padding: 16px 16px 54px; }
}

/* ── Mobile pequeno ≤480px ── */
@media (max-width: 480px) {
  .swiper.productCarousel { padding: 10px 4px 44px; }
  .pc-card-image { height: 200px; }
  .pc-card-body { padding: 16px 16px 20px; gap: 6px; }
  .pc-card-title { font-size: 1.05rem; }
  .pc-card-desc { font-size: 0.85rem; -webkit-line-clamp: 2; }
  .pc-card-cta { padding: 9px 16px; font-size: 0.78rem; }
  .customPrevButton, .customNextButton { width: 38px; height: 38px; font-size: 15px; }
}
