/*
 * skybuds-product-landing.css
 * --------------------------------------------------------------------------
 * Styles for the product-page conversion enhancements that live inside the
 * main product section: the compact star-proof line and the "Batch 1" progress
 * bar under the scarcity text.
 *
 * The storytelling sections (trust bar, pillars, timeline, factory, etc.) each
 * carry their own scoped <style> block, so this file only covers the pieces
 * that live in sections/skybuds-product.liquid.
 */

/* ─── Compact star-proof line (near the price/CTA) ─── */
.skybuds-product__starproof {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 2px;
  font-size: 13px;
  color: #5A5147;
  font-family: 'Sora', sans-serif;
}
.skybuds-product__starproof-stars {
  color: #FFB400;
  font-size: 15px;
  letter-spacing: 1px;
  line-height: 1;
}
.skybuds-product__starproof strong {
  color: #1a1a1a;
  font-weight: 700;
}

/* ─── Batch 1 progress bar (under the scarcity text) ─── */
.skybuds-product__batches-scarcity [data-batch-claimed],
.skybuds-product__batches-scarcity [data-batch-remaining] {
  font-weight: 700;
  color: #1a1a1a;
}
.skybuds-product__batch-progress {
  margin-top: 10px;
  width: 100%;
  max-width: 320px;
  height: 8px;
  background: #E8E0D8;
  border-radius: 5px;
  overflow: hidden;
}
.skybuds-product__batch-fill {
  height: 100%;
  width: 0;
  background: var(--character-color, #FF6B4A);
  border-radius: 5px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
@media (prefers-reduced-motion: reduce) {
  .skybuds-product__batch-fill { transition: none; }
}

/* ─── Reserve / buy card (ported verbatim from /pages/quiz-result hero-reserve-card,
   re-scoped from .rp-page to .skybuds-product so it only loads on product pages) ─── */
.skybuds-product .hero-reserve-card {
  background: #FFFFFF;
  border-radius: 20px;
  padding: 28px 24px;
  margin-top: 18px;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.04),
    0 8px 24px rgba(0, 0, 0, 0.06);
}
.skybuds-product .hero-reserve-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.skybuds-product .hero-reserve-card__product-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #5A5147;
  text-transform: uppercase;
}
.skybuds-product .hero-reserve-card__batch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  color: var(--character-color, #FF6B4A);
}
.skybuds-product .hero-reserve-card__batch-dot {
  width: 8px;
  height: 8px;
  background: var(--character-color, #FF6B4A);
  border-radius: 50%;
  animation: sb-reserve-pulse 2s infinite;
}
@keyframes sb-reserve-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Price */
.skybuds-product .hero-reserve-card__price-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 18px;
}
.skybuds-product .hero-reserve-card__price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.skybuds-product .hero-reserve-card__price-original {
  font-size: 24px;
  font-weight: 600;
  color: #9A9590;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}
.skybuds-product .hero-reserve-card__price {
  font-size: 48px;
  font-weight: 800;
  color: #1a1a1a;
  letter-spacing: -0.02em;
  line-height: 1;
}

/* CTA */
.skybuds-product .skybuds-product__form { margin: 0; }
.skybuds-product .hero-reserve-card__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 18px 32px;
  background: var(--character-color, #FF6B4A);
  color: #fff;
  font-family: 'Sora', sans-serif;
  font-size: 18px;
  font-weight: 700;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  box-shadow: 0 6px 20px color-mix(in srgb, var(--character-color, #FF6B4A) 38%, transparent);
}
.skybuds-product .hero-reserve-card__cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.02);
  box-shadow: 0 8px 28px color-mix(in srgb, var(--character-color, #FF6B4A) 48%, transparent);
}
.skybuds-product .hero-reserve-card__cta:active { transform: translateY(0); }
.skybuds-product .hero-reserve-card__cta:disabled {
  background: #c9c2ba;
  box-shadow: none;
  cursor: not-allowed;
}
.skybuds-product .hero-reserve-card__cta-arrow {
  font-size: 20px;
  transition: transform 0.2s ease;
}
.skybuds-product .hero-reserve-card__cta:hover .hero-reserve-card__cta-arrow {
  transform: translateX(3px);
}

/* Reassurance microcopy under the CTA */
.skybuds-product .hero-reserve-card__reassure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.35;
  color: #5b6b5b;
  text-align: center;
}
.skybuds-product .hero-reserve-card__reassure svg { flex: 0 0 auto; }

/* Scarcity / stock */
.skybuds-product .hero-reserve-card__scarcity { margin-top: 20px; }
.skybuds-product .hero-reserve-card__scarcity-text {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 13px;
  color: #5A5147;
}
.skybuds-product .hero-reserve-card__scarcity-left strong {
  font-weight: 800;
  color: #1a1a1a;
}
.skybuds-product .hero-reserve-card__scarcity-pct {
  font-weight: 600;
  color: var(--character-color, #FF6B4A);
}
.skybuds-product .hero-reserve-card__progress-bar {
  width: 100%;
  height: 10px;
  background: #E8E0D8;
  border-radius: 5px;
  overflow: hidden;
}
.skybuds-product .hero-reserve-card__progress-fill {
  /* display:block is required — a theme reset hides empty divs (div:empty{display:none}),
     and this fill is an empty element. Higher specificity here wins over that rule. */
  display: block;
  height: 100%;
  width: 0;
  min-width: 6px;
  background: linear-gradient(90deg,
    var(--character-color, #FF6B4A),
    color-mix(in srgb, var(--character-color, #FF6B4A) 72%, #000));
  border-radius: 5px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Trust checklist */
.skybuds-product .hero-reserve-card__trust {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.skybuds-product .hero-reserve-card__trust li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #3D3530;
}
.skybuds-product .hero-reserve-card__check {
  flex-shrink: 0;
  color: var(--character-color, #FF6B4A);
}

/* Guarantee badge */
.skybuds-product .guarantee-badge {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 16px;
  padding: 14px 16px;
  background: #EDF7F0;
  border: 1px solid #CFE9D8;
  border-radius: 14px;
}
.skybuds-product .guarantee-badge__body {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.skybuds-product .guarantee-badge__title {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.3;
  font-family: 'Sora', sans-serif;
}
.skybuds-product .guarantee-badge__icon {
  flex-shrink: 0;
  margin-top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: #2E9B57;
  color: #fff;
  border-radius: 8px;
}
.skybuds-product .guarantee-badge__icon svg { width: 16px; height: 16px; }
.skybuds-product .guarantee-badge__text {
  font-size: 13px;
  font-weight: 500;
  color: #2D2D2D;
  line-height: 1.4;
}

@media (prefers-reduced-motion: reduce) {
  .skybuds-product .hero-reserve-card__batch-dot { animation: none; }
  .skybuds-product .hero-reserve-card__progress-fill { transition: none; }
  .skybuds-product .hero-reserve-card__cta { transition: none; }
}

@media (min-width: 768px) {
  .skybuds-product .hero-reserve-card { padding: 32px 28px; }
  .skybuds-product .hero-reserve-card__price { font-size: 54px; }
  .skybuds-product .hero-reserve-card__cta { font-size: 19px; padding: 20px 36px; }
}

/* ─── Character picker (top of the product hero, spans the hero grid) ─── */
.skybuds-charpicker {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: 'Sora', -apple-system, BlinkMacSystemFont, sans-serif;
}
.skybuds-charpicker__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8A7866;
}
.skybuds-charpicker__items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.skybuds-charpicker__item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 14px;
  border-radius: 16px;
  border: 2px solid #ECE3D7;
  background: #fff;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.skybuds-charpicker__item:hover {
  transform: translateY(-2px);
  border-color: var(--cp-color, #FF6B4A);
  box-shadow: 0 8px 20px rgba(45, 31, 21, 0.08);
}
.skybuds-charpicker__item.is-active {
  border-color: var(--cp-color, #FF6B4A);
  background: color-mix(in srgb, var(--cp-color, #FF6B4A) 10%, white);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--cp-color, #FF6B4A) 22%, transparent);
}
.skybuds-charpicker__avatar {
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 50%;
  overflow: hidden;
  background: color-mix(in srgb, var(--cp-color, #FF6B4A) 14%, white);
  display: flex;
  align-items: center;
  justify-content: center;
}
.skybuds-charpicker__avatar img { width: 100%; height: 100%; object-fit: cover; }
.skybuds-charpicker__text { display: flex; flex-direction: column; line-height: 1.12; min-width: 0; }
.skybuds-charpicker__name {
  font-size: 15px;
  font-weight: 700;
  color: #2D1F15;
}
.skybuds-charpicker__item.is-active .skybuds-charpicker__name { color: var(--cp-color, #FF6B4A); }
.skybuds-charpicker__species {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9A8C80;
  margin-top: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .skybuds-charpicker__item { transition: none; }
  .skybuds-charpicker__item:hover { transform: none; }
}
@media (max-width: 480px) {
  .skybuds-charpicker__item {
    flex-direction: column;
    text-align: center;
    gap: 6px;
    padding: 10px 6px;
  }
  .skybuds-charpicker__avatar { width: 44px; height: 44px; }
  .skybuds-charpicker__name { font-size: 13px; }
  .skybuds-charpicker__species { display: none; }
}

/* ─── Product cart drawer: re-theme the reused quiz drawer per character ─── */
#sb-pdp-drawer {
  --sb-cta: var(--character-color, #FF6B4A);
  --sb-cta-deep: var(--character-color, #FF6B4A);
  --sb-accent: var(--character-color, #FF6B4A);
  --sb-accent-deep: var(--character-color, #FF6B4A);
  --sb-shadow-cta: 0 10px 24px color-mix(in srgb, var(--character-color, #FF6B4A) 32%, transparent),
                   inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
#sb-pdp-drawer .sb-drawer__error {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #FDECEC;
  color: #B42318;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}
#sb-pdp-drawer .sb-drawer__error[hidden] { display: none; }

/* Under the guarantee card (2026-08-29) */
.skybuds-product .guarantee-note {
  margin: 10px 0 0; text-align: center;
  font-size: 12px; font-weight: 500; color: #7a716a; letter-spacing: .01em;
}
