/* ============================================================
   BUILDER RENDER — Estilos dos componentes renderizados
   Usado por home_builder.html (página pública via page_json)
   ============================================================ */

/* Sections */
.pb-section { position: relative; }
.pb-section-hero {
  background: linear-gradient(135deg, var(--site-surface) 0%, var(--site-bg) 100%);
  border-radius: var(--site-radius, 12px);
  padding: 48px 32px;
  margin-bottom: 28px;
}
.pb-section-hero .pb-text:first-child {
  margin-bottom: 12px;
}

/* Text */
.pb-text { margin: 0 0 8px 0; line-height: 1.6; }

/* Image */
.pb-image-wrap { margin-bottom: 12px; }
.pb-img-crop { overflow: hidden; position: relative; max-width: 100%; }
.pb-img-crop img { width: 100%; max-width: 100%; display: block; transform-origin: center center; }
.pb-image { width: 100%; display: block; }

/* Button */
.pb-btn-wrap { margin: 16px 0; }
.pb-btn {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-weight: 600;
  transition: transform .2s, box-shadow .2s;
  cursor: pointer;
}
.pb-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.pb-btn-primary {
  background: var(--site-primary);
  color: #fff;
}
.pb-btn-secondary {
  background: var(--site-surface);
  color: var(--site-text);
  border: 1px solid var(--site-border);
}
.pb-btn-outline {
  background: transparent;
  color: var(--site-primary);
  border: 2px solid var(--site-primary);
}
.pb-btn-ghost {
  background: transparent;
  color: var(--site-text);
}

/* Banner */
.pb-banners-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}
.pb-banner {
  flex: 0 0 auto;
  border-radius: var(--site-radius, 12px);
  overflow: hidden;
}
.pb-banner img { display: block; }

/* Layouts separados Desktop / Mobile — mobile-first */
.page-layout-desktop { display: none; }
.page-layout-mobile { display: block; }

@media (min-width: 768px) {
  .page-layout-desktop { display: block; }
  .page-layout-mobile { display: none; }
}

/* Columns */
.pb-columns {
  display: grid;
  align-items: start;
}

/* Divider */
.pb-divider {
  border: none;
  display: block;
}

/* Responsive */
@media (max-width: 768px) {
  .pb-section-hero { padding: 28px 16px; }
  .pb-section-hero .pb-text:first-child { font-size: 28px !important; }
  .pb-columns { grid-template-columns: 1fr !important; }
  .pb-banners-wrap { flex-direction: column; }
  .pb-banner { max-width: 100% !important; }
  .prod-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
