/* Previne scrollbar horizontal causada pelo breakout */
body:has(.pps-slider-wrapper) {
  overflow-x: hidden;
}

/* Full-bleed: fundo ocupa toda a largura do viewport */
.pps-slider-wrapper {
  width: 100vw;
  padding: 48px 0 56px;
  background: #f5f5f5;
  overflow: hidden;
}

/* Conteúdo boxed e centrado */
.pps-slider-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ── Section header ─────────────────────────── */
.pps-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.pps-section-title {
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #111;
  margin: 0;
  line-height: 1.2;
}

.pps-see-all {
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #555;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
}

.pps-see-all:hover { color: #111; }

/* ── Swiper ──────────────────────────────────── */
.pps-swiper {
  width: 100%;
  padding-bottom: 48px !important;
}

/* ── Grupo de 3 produtos por slide ───────────── */
/*
  Layout:
  +-----------------------+------------+
  |                       |  PEQUENO 1 |
  |   DESTAQUE (grande)   +------------+
  |                       |  PEQUENO 2 |
  +-----------------------+------------+
*/
.pps-slide-group {
  display: grid;
  grid-template-columns: 3fr 2fr;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
  height: 416px;
}

/* Card destaque ocupa as 2 linhas */
.pps-card--featured {
  grid-row: 1 / span 2;
}

/* Com apenas 1 produto: ocupa a coluna toda */
.pps-slide-group--1 {
  grid-template-columns: 1fr;
}

/* Com 2 produtos: o pequeno ocupa as 2 linhas */
.pps-slide-group--2 .pps-card--small {
  grid-row: 1 / span 2;
}

/* ── Card base ───────────────────────────────── */
.pps-card {
  background: #fdf6ee;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  border-left: 5px solid var(--pps-color, #38BAD1);
  display: flex;
  flex-direction: row;
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pps-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.12);
}

/* ── Imagem ──────────────────────────────────── */
.pps-card-image {
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
  background: #ede4d8;
}

.pps-card--featured .pps-card-image { width: 52%; }
.pps-card--small    .pps-card-image { width: 42%; }

/* Tamanho da imagem — override por produto (admin) */
.pps-card.pps-imgsize-s .pps-card-image { width: 34%; }
.pps-card.pps-imgsize-m .pps-card-image { width: 50%; }
.pps-card.pps-imgsize-l .pps-card-image { width: 64%; }

.pps-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(var(--pps-zoom, 1));
  transition: transform 0.4s ease;
}

.pps-card:hover .pps-card-image img { transform: scale(calc(var(--pps-zoom, 1) * 1.06)); }

/* Etiqueta / badge */
.pps-card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  background: var(--pps-color, #111);
  color: #fff;
  font: 700 11px/1 'Manrope', system-ui, sans-serif;
  letter-spacing: .3px;
  padding: 5px 9px;
  border-radius: 99px;
}

/* Descrição no card */
.pps-card-desc {
  font: 400 12px/1.35 'Manrope', system-ui, sans-serif;
  color: #555;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pps-card--featured .pps-card-desc { font-size: 13px; -webkit-line-clamp: 3; }

/* ── Corpo ───────────────────────────────────── */
.pps-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.pps-card--featured .pps-card-body { padding: 24px 24px; gap: 10px; }
.pps-card--small    .pps-card-body { padding: 16px 16px; gap: 6px;  }

/* Título */
.pps-card-title {
  font-family: 'Manrope', system-ui, sans-serif;
  font-weight: 700;
  color: #111;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pps-card--featured .pps-card-title { font-size: 16px; -webkit-line-clamp: 3; }
.pps-card--small    .pps-card-title { font-size: 12px; -webkit-line-clamp: 2; }

/* Preço */
.pps-card-price {
  font-family: 'Manrope', system-ui, sans-serif;
  line-height: 1.1;
}

.pps-card-price del {
  display: block;
  color: #aaa;
  font-weight: 400;
  text-decoration: line-through;
  margin-bottom: 2px;
}

.pps-card--featured .pps-card-price del { font-size: 13px; }
.pps-card--small    .pps-card-price del { font-size: 11px; }

/* preço (sem desconto) */
.pps-card-price > .woocommerce-Price-amount {
  font-weight: 800;
  color: var(--pps-color, #38BAD1);
  display: block;
}

/* preço com desconto */
.pps-card-price ins { text-decoration: none; }

.pps-card-price ins .woocommerce-Price-amount {
  font-weight: 800;
  color: var(--pps-color, #38BAD1);
  display: block;
}

.pps-card--featured .pps-card-price > .woocommerce-Price-amount,
.pps-card--featured .pps-card-price ins .woocommerce-Price-amount { font-size: 34px; }

.pps-card--small    .pps-card-price > .woocommerce-Price-amount,
.pps-card--small    .pps-card-price ins .woocommerce-Price-amount { font-size: 24px; }

/* Botão */
.pps-card-btn {
  display: block;
  background-color: var(--pps-color, #38BAD1);
  color: #fff !important;
  text-decoration: none !important;
  border-radius: 6px;
  font-family: 'Manrope', system-ui, sans-serif;
  font-weight: 600;
  text-align: center;
  transition: opacity 0.2s;
}

.pps-card--featured .pps-card-btn { padding: 11px 18px; font-size: 14px; margin-top: 4px; }
.pps-card--small    .pps-card-btn { padding: 8px 14px;  font-size: 12px; margin-top: 2px; }

.pps-card-btn:hover { opacity: 0.85; }

/* ── Controlos swiper ────────────────────────── */
.pps-swiper .swiper-pagination-bullet-active { background: #111; }

.pps-swiper .swiper-button-prev,
.pps-swiper .swiper-button-next { color: #111; }

/* ── Responsivo ──────────────────────────────── */
@media (max-width: 768px) {
  .pps-slide-group {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    height: auto;
    gap: 12px;
  }
  .pps-card--featured,
  .pps-slide-group--2 .pps-card--small {
    grid-row: auto;
  }
  .pps-card {
    height: 160px;
  }
  .pps-card--featured .pps-card-image,
  .pps-card--small    .pps-card-image { width: 42%; }
}

.pps-empty {
  text-align: center;
  color: #888;
  padding: 40px 0;
}
