/* Purple Beautician — Packages page ([pbb_packages] shortcode) */

.pbb-pk-page {
  --pk-purple: #600060;
  --pk-purple-dark: #4a0050;
  --pk-purple-light: #f5eef5;
  --pk-purple-pale: #fdf2fc;
  --pk-green: #2e7d32;
  --pk-green-bg: #e8f5e9;
  --pk-ink: #2b2030;
  --pk-muted: #8a7f8e;
  --pk-border: #e8e0ea;
  --pk-radius: 16px;
  --pk-radius-sm: 10px;
  font-family: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  color: var(--pk-ink);
  max-width: 980px;
  margin: 0 auto;
  padding: 8px 0 48px;
  line-height: 1.5;
}

/* ── Loading / empty / error ── */
.pbb-pk-loading,
.pbb-pk-empty,
.pbb-pk-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 56px 24px;
  background: #fff;
  border: 1px dashed var(--pk-border);
  border-radius: var(--pk-radius);
}

.pbb-pk-loading p,
.pbb-pk-empty p,
.pbb-pk-error p {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--pk-ink);
}

.pbb-pk-empty span,
.pbb-pk-error span {
  font-size: 13px;
  color: var(--pk-muted);
  max-width: 360px;
}

.pbb-pk-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid var(--pk-purple-light);
  border-top-color: var(--pk-purple);
  border-radius: 50%;
  animation: pbb-pk-spin 0.7s linear infinite;
}

@keyframes pbb-pk-spin {
  to { transform: rotate(360deg); }
}

.pbb-pk-empty .pbb-pk-empty-icon {
  font-size: 34px;
  line-height: 1;
  opacity: 0.7;
}

/* ── Grid of package cards — always side-by-side row ── */
.pbb-pk-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 560px) {
  .pbb-pk-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }
  .pbb-pk-card--hero {
    grid-column: auto;
  }
}

/* ── Package card (Option A: overlay hero + accordion) ── */
.pbb-pk-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--pk-border);
  border-radius: var(--pk-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.pbb-pk-card--hero {
  box-shadow: 0 8px 28px rgba(96, 0, 96, 0.12);
}

.pbb-pk-card--scheduled {
  border-color: #bbdefb;
}

/* Short cropped hero — compact height, not full poster */
.pbb-pk-hero {
  position: relative;
  height: 140px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--pk-purple) 0%, #8e248e 60%, #b04bb0 100%);
  flex-shrink: 0;
}

.pbb-pk-flyer {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.pbb-pk-hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 30%, rgba(25, 0, 30, 0.88));
  pointer-events: none;
}

.pbb-pk-hero-copy {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  z-index: 1;
  color: #fff;
}

.pbb-pk-hero-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 2px;
}

.pbb-pk-hero-title {
  font-family: Georgia, 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.15;
  margin: 0;
  color: #fff;
}

.pbb-pk-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: #e3f2fd;
  color: #1565c0;
  border: 1px solid #bbdefb;
  padding: 4px 9px;
  border-radius: 999px;
}

.pbb-pk-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.pbb-pk-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.pbb-pk-tags:empty {
  display: none;
}

.pbb-pk-notice {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--pk-purple-pale);
  color: var(--pk-purple);
  border: 1px dashed #f0a6e7;
  padding: 4px 9px;
  border-radius: 999px;
}

.pbb-pk-pill {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
}

.pbb-pk-pill--sched {
  background: #e3f2fd;
  color: #1565c0;
  border: 1px solid #bbdefb;
}

.pbb-pk-desc {
  font-size: 13px;
  color: #5c5162;
  margin: 0;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pbb-pk-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.pbb-pk-price {
  display: inline-block;
  font-weight: 800;
  font-size: 20px;
  color: var(--pk-purple);
  line-height: 1.2;
}

.pbb-pk-price small {
  font-size: 12px;
  font-weight: 600;
  color: var(--pk-muted);
}

.pbb-pk-compare {
  font-size: 12px;
  font-weight: 600;
  color: var(--pk-muted);
  text-decoration: line-through;
}

.pbb-pk-window {
  font-size: 12px;
  font-weight: 600;
  color: var(--pk-muted);
}

.pbb-pk-window strong {
  color: var(--pk-ink);
}

/* ── Accordion includes (collapsed until open) ── */
.pbb-pk-acc {
  border: 1px solid var(--pk-border);
  border-radius: var(--pk-radius-sm);
  overflow: hidden;
  background: #fff;
}

.pbb-pk-acc summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pk-purple);
  background: var(--pk-purple-pale);
  user-select: none;
}

.pbb-pk-acc summary::-webkit-details-marker {
  display: none;
}

.pbb-pk-acc-count {
  background: var(--pk-purple);
  color: #fff;
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 999px;
  margin-left: auto;
}

.pbb-pk-acc summary::after {
  content: '+';
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  color: var(--pk-purple);
}

.pbb-pk-acc[open] summary::after {
  content: '−';
}

.pbb-pk-acc-body {
  padding: 2px 0;
  max-height: 160px;
  overflow-y: auto;
}

.pbb-pk-svc {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--pk-ink);
  border-bottom: 1px solid #f3eef5;
}

.pbb-pk-svc:last-child {
  border-bottom: 0;
}

.pbb-pk-svc:nth-child(even) {
  background: #fcfafc;
}

.pbb-pk-svc .pbb-pk-sub-price {
  color: var(--pk-purple);
  font-weight: 700;
  font-size: 12px;
  white-space: nowrap;
}

/* ── Terms / conditions ── */
.pbb-pk-fine {
  font-size: 12px;
  color: var(--pk-muted);
  line-height: 1.5;
  margin: 0;
}

.pbb-pk-fine strong {
  color: var(--pk-ink);
  font-size: 11px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 4px;
}

.pbb-pk-fine + .pbb-pk-fine {
  margin-top: 6px;
}

/* ── CTA ── */
.pbb-pk-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: auto;
  padding: 12px 16px;
  background: var(--pk-purple);
  color: #fff;
  border: none;
  border-radius: var(--pk-radius-sm);
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  width: 100%;
}

.pbb-pk-cta:hover,
.pbb-pk-cta:focus-visible {
  background: var(--pk-purple-dark);
  color: #fff;
}

.pbb-pk-cta:active {
  transform: scale(0.99);
}

.pbb-pk-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 8px;
}

.pbb-pk-gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--pk-border);
  display: block;
}
