/* Homepage section + slider widgets — ensure styles load even if main sheet partial */
.pb-home-section {
  max-width: var(--header-max-width, 1280px);
  margin: 0 auto;
  padding: 40px 20px 8px;
}
.pb-home-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.pb-home-section-head h2 {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
  color: #222;
}
.pb-home-section-head .lead {
  margin: 0;
  font-size: 14px;
  color: #6a6a6a;
}
.pb-home-section-head a {
  font-size: 14px;
  font-weight: 600;
  color: #222;
  text-decoration: none;
  white-space: nowrap;
}
.pb-home-section-head a:hover { color: #ff385c; }

.pb-home-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 600px) {
  .pb-home-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .pb-home-grid { grid-template-columns: repeat(4, 1fr); }
}

.pb-home-card {
  background: #fff;
  border: 1px solid #ebebeb;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.15s;
}
.pb-home-card:hover {
  box-shadow: 0 10px 28px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.pb-home-card-media {
  position: relative;
  aspect-ratio: 4/3;
  background: #f2f2f2;
  overflow: hidden;
}
.pb-home-card-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.pb-home-card-badge {
  position: absolute; top: 12px; left: 12px;
  background: rgba(255,255,255,0.95);
  font-size: 11px; font-weight: 700;
  padding: 4px 10px; border-radius: 9999px;
}
.pb-home-card-body { padding: 14px 16px 16px; }
.pb-home-card-body h3 {
  font-size: 15px; font-weight: 700; margin: 0 0 4px; color: #222;
}
.pb-home-card-body p {
  margin: 0 0 4px; font-size: 13px; color: #6a6a6a;
}
.pb-home-card-price {
  margin-top: 8px; font-size: 16px; font-weight: 800; color: #222;
}

/* Sliders */
.pb-slider-wrap { position: relative; }
.pb-slider {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 2px 16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.pb-slider::-webkit-scrollbar { height: 6px; }
.pb-slider::-webkit-scrollbar-thumb { background: #ddd; border-radius: 3px; }
.pb-slider-item {
  flex: 0 0 min(260px, 78vw);
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid #ebebeb;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none !important;
  color: inherit !important;
  transition: box-shadow 0.2s;
}
.pb-slider-item:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.pb-slider-item img {
  width: 100%; height: 150px; object-fit: cover; display: block; background: #f2f2f2;
}
.pb-slider-avatar {
  width: 100%; height: 150px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, #f7f7f7, #ebebeb);
  font-size: 36px; color: #929292;
}
.pb-slider-item .body { padding: 12px 14px 16px; }
.pb-slider-item h3 {
  font-size: 15px; font-weight: 700; margin: 0 0 4px; color: #222;
}
.pb-slider-item p {
  font-size: 13px; color: #6a6a6a; margin: 0; line-height: 1.35;
}

@media (max-width: 600px) {
  .pb-home-section { padding: 28px 16px 4px; }
  .pb-home-hero { padding-left: 16px !important; padding-right: 16px !important; }
}
