/**
 * marmitissima.css
 * Seção "Depoimentos" do design system (marmitissima-design,
 * assets/css/testimonials.css) — template "Marmitíssima" do widget de depoimentos do Bluesky.
 * No PageBuilder: Linha "Full Width" com a classe mm-testimonials (fundo
 * vermelho) + o widget (Template = Marmitíssima) dentro.
 * Valores em px (o design usa rem com raiz 16px; no Magento a raiz é 10px).
 */
[data-content-type='row'].mm-testimonials {
  padding-top: 40px !important;
  padding-bottom: 64px !important;
  background-color: #be282c !important;
}

.testimonials {
  --mm-t-accent: #ed3237;
  --mm-t-accent-dark: #be282c;
  --mm-t-accent-soft: #fde6e7;
  --mm-t-text: #201e1e;
  --mm-t-text-secondary: #6e6c6c;
  --mm-t-border: #e4e4e4;
  --mm-t-border-strong: #cecdcd;
  font-family: 'Manrope', sans-serif;
}

/* ===== Título + setas na mesma linha ===== */
.testimonials .carousel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.testimonials .testimonials__title-row {
  margin-bottom: 6px;
}

.testimonials .testimonials__title {
  margin: 0;
  padding-left: 14px;
  border-left: 4px solid #ffffff;
  font-family: 'Manrope', sans-serif;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: #ffffff;
  text-transform: none;
}

.testimonials .testimonials__subtitle {
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
}

.testimonials .carousel-arrows {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 8px;
}

.testimonials .carousel-counter {
  min-width: 32px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.85);
}

.testimonials .product-carousel__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--mm-t-border);
  border-radius: 50%;
  background-color: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  color: var(--mm-t-text);
  cursor: pointer;
  transition: background-color 160ms ease, box-shadow 160ms ease, opacity 160ms ease, transform 160ms ease;
}

.testimonials .product-carousel__arrow:hover {
  background-color: #f4f4f4;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.testimonials .product-carousel__arrow:active {
  transform: scale(0.94);
}

.testimonials .product-carousel__arrow.is-disabled {
  opacity: 0.35;
  pointer-events: none;
}

.testimonials .product-carousel__arrow svg {
  display: block;
  width: 17px;
  height: 17px;
}

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

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

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

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

/* ===== Card de depoimento ===== */
.testimonials .testimonial-card {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  box-sizing: border-box;
  width: calc((100% - 2 * 20px) / 3);
  margin: 0;
  padding: 24px 22px 22px;
  border-radius: 14px;
  background-color: #ffffff;
  scroll-snap-align: start;
  transition: transform 240ms ease, box-shadow 240ms ease;
}

.testimonials .testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.testimonials .testimonial-card__quote-icon {
  display: flex;
  width: 34px;
  margin-bottom: 10px;
  color: var(--mm-t-accent-soft);
}

.testimonials .testimonial-card__quote-icon svg {
  display: block;
  width: 100%;
  height: auto;
}

.testimonials .testimonial-card__stars {
  display: flex;
  gap: 3px;
  margin-bottom: 14px;
}

.testimonials .testimonial-card__star {
  display: flex;
  width: 16px;
  height: 16px;
  color: var(--mm-t-border-strong);
}

.testimonials .testimonial-card__star svg {
  display: block;
  width: 100%;
  height: 100%;
}

.testimonials .testimonial-card__star.is-filled {
  color: var(--mm-t-accent);
}

.testimonials .testimonial-card__quote {
  flex: 1;
  margin: 0 0 20px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--mm-t-text);
}

.testimonials .testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}

.testimonials .testimonial-card__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--mm-t-accent-soft);
  color: var(--mm-t-accent-dark);
  font-size: 12px;
  font-weight: 800;
}

.testimonials .testimonial-card__info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.testimonials .testimonial-card__name {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--mm-t-text);
}

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

  .testimonials .testimonial-card {
    width: calc((100% - 16px) / 2.3);
  }
}

@media (max-width: 768px) {
  [data-content-type='row'].mm-testimonials {
    padding-top: 32px !important;
    padding-bottom: 48px !important;
  }

  .testimonials .testimonials__title {
    font-size: 24px;
  }

  .testimonials .testimonial-card {
    width: calc((100% - 16px) / 2);
    padding: 20px 18px 18px;
  }
}

@media (max-width: 480px) {
  .testimonials .product-carousel__track {
    gap: 12px;
  }

  .testimonials .testimonial-card {
    width: calc((100% - 12px) / 2);
  }
}
