/**
 * Pandora Website Builder — shared responsive tokens.
 * Themes may alias (--elegant-*, etc.) but should prefer these for new work.
 * Does not change business rules — layout/typography only.
 */

:root {
  --wb-pad-x: clamp(1rem, 4vw, 3rem);
  --wb-h1: clamp(1.75rem, 1.15rem + 2.6vw, 3.2rem);
  --wb-h2: clamp(1.45rem, 1.05rem + 1.9vw, 2.5rem);
  --wb-h3: clamp(1.2rem, 1rem + 1vw, 1.75rem);
  --wb-body: clamp(0.95rem, 0.9rem + 0.3vw, 1.05rem);
  --wb-fab-space: 5.5rem;
  --wb-hero-pad-y: clamp(5.5rem, 12vw, 10rem);
}

.wb-fluid-h1 {
  font-size: var(--wb-h1) !important;
  line-height: 1.15;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.wb-fluid-h2 {
  font-size: var(--wb-h2) !important;
  line-height: 1.2;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.wb-fluid-h3 {
  font-size: var(--wb-h3) !important;
  line-height: 1.25;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.wb-fluid-body {
  font-size: var(--wb-body);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.wb-safe-bottom {
  padding-bottom: max(1.5rem, var(--wb-fab-space));
}

.wb-cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.wb-cart-badge {
  position: absolute;
  top: 0;
  right: 0;
  transform: translate(35%, -35%);
  min-width: 1rem;
  height: 1rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: #198754;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  line-height: 1rem;
  text-align: center;
  pointer-events: none;
}

.wb-cart-badge--danger {
  background: #dc3545;
}

/* Soft overflow protection for public sites */
.wb-overflow-guard {
  overflow-x: hidden;
  overflow-x: clip;
}

.wb-overflow-guard h1,
.wb-overflow-guard h2,
.wb-overflow-guard h3,
.wb-overflow-guard p,
.wb-overflow-guard li {
  overflow-wrap: anywhere;
}

@media (max-width: 767.98px) {
  .wb-cta-row .btn,
  .wb-cta-actions .btn {
    width: 100%;
  }

  .wb-cta-row [class*="col-"].text-lg-end,
  .wb-cta-row .text-lg-end {
    text-align: center !important;
    margin-top: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wb-cart-badge {
    transition: none;
  }
}
