/* ─── Royal Pop Widget ─────────────────────────────────────── */

.rp-widget {
  transition: background-color 0.7s ease;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

/* ── Buttons ──────────────────────────────────────────────── */
.rp-btn-primary {
  display: inline-block;
  background: #fff;
  border-radius: 9999px;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  white-space: nowrap;
}
.rp-btn-primary:hover { transform: scale(1.03); }

.rp-btn-secondary {
  display: inline-block;
  background: transparent;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 9999px;
  padding: 16px 32px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s;
}
.rp-btn-secondary:hover { background: rgba(255,255,255,.1); }

/* ── Hero section ─────────────────────────────────────────── */
.rp-hero {
  padding: 16px 24px 96px;
}
.rp-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  gap: 32px;
}

/* ── Image card ───────────────────────────────────────────── */
.rp-image-frame {
  position: relative;
  overflow: hidden;
  border-radius: 40px;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
}
.rp-image-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
}
.rp-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .25s;
}
.rp-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(0,0,0,.3);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 9999px;
  backdrop-filter: blur(6px);
  pointer-events: none;
  transition: opacity .2s;
}

/* ── Info column ──────────────────────────────────────────── */
.rp-info { color: #fff; }

.rp-brand-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  margin: 0 0 16px;
}
.rp-product-name {
  font-size: 48px;
  font-weight: 700;
  line-height: .95;
  letter-spacing: -.025em;
  color: #fff;
  margin: 0 0 24px;
}
.rp-description {
  font-size: 16px;
  line-height: 1.65;
  color: rgba(255,255,255,.85);
  max-width: 448px;
  margin: 0 0 32px;
}
.rp-price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 40px;
}
.rp-price,
.rp-price ins .woocommerce-Price-amount,
.rp-price .woocommerce-Price-amount,
.rp-price .woocommerce-Price-currencySymbol {
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  text-decoration: none !important;
}
.rp-price .woocommerce-Price-amount { display: inline; }

/* WooCommerce sale: crossed-out regular price */
.rp-price del {
  font-size: 20px;
  font-weight: 400;
  opacity: .55;
  margin-right: 6px;
}
.rp-price del .woocommerce-Price-amount { font-size: 20px; }
.rp-price ins { text-decoration: none; }

/* Sale badge */
.rp-sale-badge {
  display: inline-block;
  background: #fff;
  color: #e94b5a;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  padding: 3px 10px;
  border-radius: 9999px;
  margin-right: 10px;
  vertical-align: middle;
  flex-shrink: 0;
}
.rp-price-suffix {
  font-size: 14px;
  color: rgba(255,255,255,.7);
}

/* ── Case selector ────────────────────────────────────────── */
.rp-cases-desktop { display: none; margin-bottom: 32px; }
.rp-cases-mobile  { margin-top: 20px; }

.rp-selector {}
.rp-selector-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.rp-selector-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: rgba(255,255,255,.8);
}
.rp-selector-hint {
  font-size: 12px;
  color: rgba(255,255,255,.6);
}
.rp-selector-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.rp-case-btn {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  background: rgba(255,255,255,.95);
  padding: 4px;
  cursor: pointer;
  border: none;
  outline: none;
  transition: transform .3s, box-shadow .3s;
}
.rp-case-btn:hover  { transform: scale(1.05); }
.rp-case-btn.active { transform: scale(1.07); box-shadow: 0 0 0 4px #fff; }
.rp-case-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 12px;
}

/* ── Actions ──────────────────────────────────────────────── */
.rp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
}
.rp-add-to-cart {
  padding: 16px 32px;
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
}

/* ── Specs ────────────────────────────────────────────────── */
.rp-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  border-top: 1px solid rgba(255,255,255,.2);
  padding-top: 24px;
  margin: 0;
}
.rp-spec-item dt {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.6);
  margin-bottom: 4px;
}
.rp-spec-item dd {
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  margin: 0;
}

/* ── Coming Soon ──────────────────────────────────────────── */
.rp-btn-disabled {
  pointer-events: none !important;
  user-select: none !important;
}
.rp-coming-soon-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.35);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  padding: 10px 22px;
  border-radius: 9999px;
  backdrop-filter: blur(6px);
  white-space: nowrap;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (min-width: 768px) {
  .rp-hero { padding: 40px 48px 96px; }
  .rp-product-name { font-size: 60px; }
}

@media (min-width: 1024px) {
  .rp-grid {
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 48px;
  }
  .rp-cases-desktop { display: block; }
  .rp-cases-mobile  { display: none; }
  .rp-product-name  { font-size: 72px; }
  .rp-case-btn      { width: 96px; height: 96px; }
}
