/* ==========================================================
   PerfectFit v14 — Hero carousel
   ========================================================== */

.pf-hero-carousel{
  position:relative;
  width:100%;
  margin:0 0 18px;
  border-radius:14px;
  overflow:hidden;
  background:#1A1614;
  aspect-ratio:16/9;
}
@media (max-width:759px){
  .pf-hero-carousel{aspect-ratio:4/5}
}

.pf-hc-track{
  position:absolute;inset:0;
  display:flex;
  transition:transform 1.5s cubic-bezier(.4,0,.2,1);
  will-change:transform;
}
.pf-hc-slide{
  flex:0 0 100%;
  width:100%;
  height:100%;
  position:relative;
  overflow:hidden;
}
.pf-hc-slide img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center 30%;
}

/* Optional caption overlay */
.pf-hc-caption{
  position:absolute;left:24px;bottom:20px;right:24px;z-index:2;
  color:#fff;
  font-family:'Cormorant Garamond',serif;
  font-size:1.4rem;font-weight:500;letter-spacing:-.2px;
  text-shadow:0 2px 12px rgba(0,0,0,.4);
  max-width:480px;line-height:1.2;
  pointer-events:none;
  opacity:0;transition:opacity .6s ease;
}
.pf-hc-slide.active .pf-hc-caption{opacity:1}
@media (min-width:760px){
  .pf-hc-caption{left:36px;bottom:32px;font-size:1.8rem}
}

/* Dot indicators */
.pf-hc-dots{
  position:absolute;left:50%;transform:translateX(-50%);
  bottom:14px;z-index:3;
  display:flex;gap:6px;
  padding:6px 10px;
  background:rgba(0,0,0,.28);
  border-radius:20px;
  backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);
}
.pf-hc-dot{
  width:6px;height:6px;border-radius:50%;
  background:rgba(255,255,255,.4);
  border:none;cursor:pointer;padding:0;
  transition:width .25s ease,background .25s;
}
.pf-hc-dot.active{
  width:18px;border-radius:3px;
  background:rgba(255,255,255,.95);
}
.pf-hc-dot:hover{background:rgba(255,255,255,.7)}

/* Prev/Next arrows (desktop only) */
.pf-hc-nav{
  position:absolute;top:50%;transform:translateY(-50%);z-index:3;
  width:40px;height:40px;border-radius:50%;
  background:rgba(0,0,0,.32);
  color:#fff;border:none;cursor:pointer;
  display:none;align-items:center;justify-content:center;
  backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);
  opacity:0;transition:opacity .25s,background .15s;
}
.pf-hc-nav:hover{background:rgba(0,0,0,.55)}
.pf-hc-nav svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.pf-hc-nav.prev{left:14px}
.pf-hc-nav.next{right:14px}
.pf-hero-carousel:hover .pf-hc-nav{opacity:1}
@media (min-width:760px){
  .pf-hc-nav{display:flex}
}

/* Subtle bottom gradient so caption is readable */
.pf-hc-slide::after{
  content:'';position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(180deg,transparent 60%,rgba(0,0,0,.35) 100%);
}

/* In dark theme the carousel container blends with bg */
body[data-pf-theme="dark"] .pf-hero-carousel{background:#0F0B0A}

/* Override the old "with_photo" stripe placeholder when carousel is rendered */
.pf-hero-photo:has(.pf-hero-carousel){background:transparent;height:auto;border:none}
.pf-hero-photo:has(.pf-hero-carousel) .pf-photo-placeholder{display:none}

/* ==========================================================
   Top Picks block — sits between the cup card and the
   conversion bridge cards on the result screen.
   ========================================================== */
#pfTopPicks{margin-top:14px}
.pf-picks-wrap{
  background:linear-gradient(135deg,#FFF8F5,#FBEDE7);
  border:1px solid #F0DCD2;
  border-radius:16px;
  padding:16px 14px 14px;
}
.pf-picks-head{margin-bottom:10px}
.pf-picks-eyebrow{
  display:inline-flex;align-items:center;gap:6px;
  font-size:.78rem;font-weight:700;letter-spacing:.5px;
  color:#D4907E;text-transform:uppercase;
}
.pf-picks-eyebrow .pf-ic{display:inline-flex;width:14px;height:14px;color:#D4907E}
.pf-picks-eyebrow .pf-ic svg{width:14px;height:14px}
.pf-picks-sub{
  font-size:.82rem;color:#6B5B5B;margin-top:3px;line-height:1.4;
}
.pf-pick-chips{
  display:flex;gap:6px;overflow-x:auto;
  margin:8px -4px 12px;padding:2px 4px 6px;
  scrollbar-width:none;
}
.pf-pick-chips::-webkit-scrollbar{display:none}
.pf-pick-chip{
  flex-shrink:0;
  background:#fff;
  border:1px solid #F0DCD2;
  color:#6B5B5B;
  font-size:.78rem;font-weight:600;
  padding:7px 12px;border-radius:999px;
  cursor:pointer;transition:all .15s;
  font-family:inherit;
}
.pf-pick-chip:hover{border-color:#D4907E;color:#4A3636}
.pf-pick-chip.active{
  background:#D4907E;border-color:#D4907E;color:#fff;
}
.pf-pick-list{display:flex;flex-direction:column;gap:8px}
.pf-pick-card{
  display:flex;align-items:stretch;gap:10px;
  background:#fff;
  border:1px solid #F0E0D8;
  border-radius:12px;
  padding:12px;
  text-decoration:none;color:inherit;
  transition:transform .12s,box-shadow .12s,border-color .12s;
}
.pf-pick-card:hover{
  transform:translateY(-1px);
  border-color:#D4907E;
  box-shadow:0 6px 18px -8px rgba(212,144,126,.4);
}
.pf-pick-rank{
  flex-shrink:0;width:28px;height:28px;border-radius:50%;
  background:linear-gradient(135deg,#D4907E,#C77B68);
  color:#fff;font-weight:700;font-size:.85rem;
  display:flex;align-items:center;justify-content:center;
  margin-top:2px;
}
.pf-pick-body{flex:1;min-width:0}
.pf-pick-name{
  font-size:.92rem;font-weight:700;color:#4A3636;
  line-height:1.25;
  display:flex;flex-wrap:wrap;gap:6px;align-items:center;
}
.pf-pick-tag{
  display:inline-block;
  font-size:.65rem;font-weight:600;letter-spacing:.3px;
  text-transform:uppercase;
  color:#A0735F;background:rgba(212,144,126,.14);
  padding:2px 7px;border-radius:999px;
}
.pf-pick-size{
  font-size:.78rem;color:#6B5B5B;margin-top:4px;
}
.pf-pick-size strong{color:#4A3636}
.pf-pick-blurb{
  font-size:.78rem;color:#7A6A6A;line-height:1.45;margin-top:4px;
}
.pf-pick-actions{
  flex-shrink:0;display:flex;flex-direction:column;align-items:flex-end;
  justify-content:space-between;gap:8px;
}
.pf-pick-heart{
  background:none;border:none;cursor:pointer;
  font-size:1.25rem;line-height:1;padding:2px 4px;
  color:#D4B4A8;transition:color .15s,transform .12s;
  font-family:inherit;
}
.pf-pick-heart:hover{color:#D4907E;transform:scale(1.1)}
.pf-pick-heart.on{color:#D4907E}
.pf-pick-cta{
  flex-shrink:0;
  font-size:.78rem;font-weight:700;color:#D4907E;
  white-space:nowrap;text-decoration:none;
}
.pf-pick-cta:hover{text-decoration:underline}

/* ==========================================================
   Saved Picks block — appears below top-picks once the user
   hearts at least one brand. Pure localStorage, no sync.
   ========================================================== */
#pfSavedPicks{margin-top:14px}
.pf-saved-wrap{
  background:#FFFCFB;
  border:1px solid #F0E0D8;
  border-radius:16px;
  padding:14px;
}
.pf-saved-head{margin-bottom:10px}
.pf-saved-eyebrow{
  display:inline-flex;align-items:center;gap:6px;
  font-size:.78rem;font-weight:700;letter-spacing:.5px;
  color:#A87A6A;text-transform:uppercase;
}
.pf-saved-eyebrow .pf-ic{display:inline-flex;width:14px;height:14px;color:#A87A6A}
.pf-saved-eyebrow .pf-ic svg{width:14px;height:14px}
.pf-saved-sub{
  font-size:.74rem;color:#9B8B8B;margin-top:3px;font-style:italic;
}
.pf-saved-list{display:flex;flex-direction:column;gap:10px}
.pf-saved-row{
  background:#fff;border:1px solid #F0E0D8;border-radius:12px;padding:10px 12px;
}
.pf-saved-main{display:flex;justify-content:space-between;align-items:baseline;gap:8px}
.pf-saved-name{font-weight:700;color:#4A3636;font-size:.9rem}
.pf-saved-meta{font-size:.72rem;color:#9B8B8B}
.pf-saved-fit{
  display:flex;align-items:center;gap:6px;margin-top:8px;flex-wrap:wrap;
}
.pf-saved-fit-label{
  font-size:.74rem;color:#7A6A6A;margin-right:4px;
}
.pf-fit-btn{
  display:inline-flex;align-items:center;justify-content:center;
  width:32px;height:32px;
  background:#FFF6F2;border:1px solid #F0DCD2;
  border-radius:50%;
  cursor:pointer;color:#8B7B7B;
  font-family:inherit;transition:all .15s;
}
.pf-fit-btn svg{width:16px;height:16px;display:block;stroke:currentColor;fill:none}
.pf-fit-btn:hover{border-color:#D4907E;color:#D4907E}
.pf-fit-btn.on{background:#D4907E;border-color:#D4907E;color:#fff}
.pf-saved-remove{
  margin-left:auto;
  display:inline-flex;align-items:center;justify-content:center;
  width:26px;height:26px;
  background:none;border:none;cursor:pointer;
  color:#C4A89E;
  border-radius:50%;font-family:inherit;
}
.pf-saved-remove svg{width:14px;height:14px;display:block}
.pf-saved-remove:hover{background:#FBEDE7;color:#8B5A4A}
.pf-saved-note{
  display:block;width:100%;
  margin-top:8px;padding:7px 10px;
  background:#FFF8F5;border:1px solid #F0DCD2;border-radius:8px;
  font-size:.78rem;color:#4A3636;
  font-family:inherit;
  transition:border-color .15s;
}
.pf-saved-note:focus{outline:none;border-color:#D4907E;background:#fff}
.pf-saved-note::placeholder{color:#B9A89E;font-style:italic}

body[data-pf-theme="dark"] .pf-saved-wrap{background:#16100E;border-color:#3A2620}
body[data-pf-theme="dark"] .pf-saved-row{background:#1F1715;border-color:#3A2620}
body[data-pf-theme="dark"] .pf-saved-name{color:#F2E2D8}
body[data-pf-theme="dark"] .pf-saved-meta{color:#9B8B8B}
body[data-pf-theme="dark"] .pf-saved-fit-label{color:#B9A89E}
body[data-pf-theme="dark"] .pf-fit-btn{background:#221715;border-color:#3A2620}
body[data-pf-theme="dark"] .pf-saved-note{background:#221715;border-color:#3A2620;color:#E6D6CC}
body[data-pf-theme="dark"] .pf-saved-note:focus{background:#1A1413}
.pf-pick-empty{
  text-align:center;padding:14px;color:#6B5B5B;font-size:.82rem;
}
.pf-pick-empty a{color:#D4907E;font-weight:600;text-decoration:none}
.pf-picks-more{
  display:block;width:100%;
  margin-top:10px;padding:9px 12px;
  background:transparent;border:1px dashed #E8CFC2;
  color:#A87A6A;font-size:.78rem;font-weight:600;
  border-radius:10px;cursor:pointer;font-family:inherit;
  transition:background .15s,border-color .15s;
}
.pf-picks-more:hover{background:#FFF1EB;border-color:#D4907E;color:#D4907E}

body[data-pf-theme="dark"] .pf-picks-wrap{
  background:linear-gradient(135deg,#1A1413,#221715);
  border-color:#3A2620;
}
body[data-pf-theme="dark"] .pf-picks-sub{color:#B9A89E}
body[data-pf-theme="dark"] .pf-pick-card{
  background:#1F1715;border-color:#3A2620;color:#E6D6CC;
}
body[data-pf-theme="dark"] .pf-pick-name{color:#F2E2D8}
body[data-pf-theme="dark"] .pf-pick-size{color:#B9A89E}
body[data-pf-theme="dark"] .pf-pick-size strong{color:#F2E2D8}
body[data-pf-theme="dark"] .pf-pick-blurb{color:#A89B92}
body[data-pf-theme="dark"] .pf-pick-chip{
  background:#1F1715;border-color:#3A2620;color:#B9A89E;
}
body[data-pf-theme="dark"] .pf-pick-chip.active{background:#D4907E;border-color:#D4907E;color:#1A1413}

/* ==========================================================
   Refinement wizard — collapsible inline panel above picks.
   ========================================================== */
#pfRefine{margin-top:14px}
.pf-refine-wrap{
  background:linear-gradient(135deg,#FFF8F5,#FFF1EB);
  border:1px solid #F0DCD2;border-radius:16px;
  padding:14px;
}
.pf-refine-eyebrow{
  display:inline-flex;align-items:center;gap:6px;
  font-size:.78rem;font-weight:700;letter-spacing:.5px;color:#A87A6A;text-transform:uppercase;
}
.pf-refine-eyebrow .pf-ic{display:inline-flex;width:14px;height:14px;color:#A87A6A}
.pf-refine-eyebrow .pf-ic svg{width:14px;height:14px}
.pf-refine-title{
  font-family:'Cormorant Garamond',serif;font-size:1.25rem;color:#4A3636;margin-top:2px;line-height:1.2;
}
.pf-refine-body{
  font-size:.85rem;color:#6B5B5B;margin-top:6px;line-height:1.5;
}
.pf-refine-start{
  margin-top:12px;background:linear-gradient(135deg,#D4907E,#C77B68);color:#fff;
  border:none;border-radius:999px;padding:10px 18px;
  font-weight:700;font-size:.88rem;cursor:pointer;font-family:inherit;
  transition:transform .12s,box-shadow .15s;
}
.pf-refine-start:hover{transform:translateY(-1px);box-shadow:0 8px 20px -8px rgba(212,144,126,.5)}

/* Active wizard */
.pf-refine-active{padding:12px 14px 14px}
.pf-refine-progress{
  display:flex;align-items:center;gap:6px;margin-bottom:10px;
}
.pf-refine-prog-dot{
  width:24px;height:4px;border-radius:2px;background:#F0DCD2;
}
.pf-refine-prog-dot.on{background:#D4907E}
.pf-refine-prog-label{
  margin-left:8px;font-size:.74rem;color:#A87A6A;font-weight:600;letter-spacing:.3px;
}
.pf-refine-x{
  margin-left:auto;
  display:inline-flex;align-items:center;justify-content:center;
  width:28px;height:28px;
  background:none;border:none;color:#B9A89E;
  cursor:pointer;font-family:inherit;border-radius:50%;
}
.pf-refine-x svg{width:14px;height:14px;display:block}
.pf-refine-x:hover{background:#FBEDE7;color:#8B5A4A}
.pf-refine-step{}
.pf-refine-q{
  font-family:'Cormorant Garamond',serif;font-size:1.15rem;color:#4A3636;line-height:1.25;
}
.pf-refine-help{
  font-size:.78rem;color:#7A6A6A;margin-top:4px;line-height:1.5;
}
.pf-refine-help a{color:#D4907E;font-weight:600;text-decoration:none}
.pf-refine-grid{
  display:flex;flex-wrap:wrap;gap:6px;margin-top:10px;
}
.pf-refine-chip{
  position:relative;
  background:#fff;border:1.5px solid #F0DCD2;color:#6B5B5B;
  font-size:.82rem;font-weight:600;font-family:inherit;
  padding:8px 14px;border-radius:999px;cursor:pointer;
  transition:all .15s;display:inline-flex;align-items:center;gap:6px;
}
.pf-refine-chip:hover{border-color:#D4907E;color:#4A3636;background:#FFF8F5}
.pf-refine-chip.on{
  background:linear-gradient(135deg,#D4907E,#C77B68);
  border-color:#C77B68;color:#fff;
  font-weight:700;
  box-shadow:0 4px 12px -4px rgba(212,144,126,.55);
  transform:translateY(-1px);
}
.pf-chip-check{
  display:inline-flex;align-items:center;justify-content:center;
  width:14px;height:14px;color:#fff;
}
.pf-chip-check svg{width:14px;height:14px;display:block;stroke-width:2.5}

/* Status caption — explicit feedback about the user's current selection */
.pf-refine-status{
  display:flex;align-items:center;gap:6px;
  margin-top:12px;padding:8px 12px;
  background:#FFFBF8;border:1px dashed #F0DCD2;
  border-radius:10px;
  font-size:.78rem;color:#7A6A6A;
}
.pf-refine-status.on{
  background:#FFF1EB;border-style:solid;border-color:#D4907E;
  color:#A0735F;
}
.pf-refine-status strong{color:#4A3636}
.pf-refine-status .pf-ic{display:inline-flex;width:14px;height:14px;color:#D4907E}
.pf-refine-status .pf-ic svg{width:14px;height:14px}
.pf-refine-more{
  margin-top:10px;border-top:1px dashed #F0DCD2;padding-top:8px;
}
.pf-refine-more > summary{
  font-size:.78rem;color:#A87A6A;font-weight:600;cursor:pointer;list-style:none;
}
.pf-refine-more > summary::-webkit-details-marker{display:none}
.pf-refine-more > summary:before{content:'+ ';color:#D4907E}
.pf-refine-more[open] > summary:before{content:'– '}
.pf-refine-actions{
  display:flex;gap:8px;margin-top:14px;
}
.pf-refine-skip{
  background:transparent;border:1px solid #F0DCD2;color:#7A6A6A;
  padding:9px 14px;border-radius:999px;font-weight:600;font-size:.82rem;
  cursor:pointer;font-family:inherit;flex:0 0 auto;
}
.pf-refine-skip:hover{background:#FFF1EB;color:#4A3636}
.pf-refine-next{
  flex:1;background:linear-gradient(135deg,#D4907E,#C77B68);color:#fff;
  border:none;border-radius:999px;padding:10px 14px;font-weight:700;font-size:.85rem;
  cursor:pointer;font-family:inherit;
}
.pf-refine-next:hover{box-shadow:0 6px 16px -8px rgba(212,144,126,.5)}

/* Collapsed summary state */
.pf-refine-summary{padding:12px 14px}
.pf-rs-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
.pf-rs-eyebrow{font-size:.74rem;font-weight:700;letter-spacing:.5px;color:#A87A6A;text-transform:uppercase}
.pf-rs-edit{
  background:transparent;border:none;color:#D4907E;font-weight:700;font-size:.78rem;
  cursor:pointer;font-family:inherit;
}
.pf-rs-edit:hover{text-decoration:underline}
.pf-rs-chips{display:flex;flex-wrap:wrap;gap:6px}
.pf-rs-chip{
  background:#fff;border:1px solid #F0DCD2;color:#4A3636;
  font-size:.78rem;font-weight:600;padding:5px 9px;border-radius:999px;
  display:inline-flex;align-items:center;gap:6px;cursor:pointer;
  transition:border-color .15s,background .15s;
}
.pf-rs-chip:hover{border-color:#D4907E;background:#FFF8F5}
.pf-rs-x{
  display:inline-flex;align-items:center;justify-content:center;
  width:14px;height:14px;color:#B9A89E;margin-left:2px;
}
.pf-rs-x svg{width:12px;height:12px;display:block}
.pf-rs-chip:hover .pf-rs-x{color:#8B5A4A}

/* Dark theme */
body[data-pf-theme="dark"] .pf-refine-wrap{background:linear-gradient(135deg,#1A1413,#221715);border-color:#3A2620}
body[data-pf-theme="dark"] .pf-refine-title{color:#F2E2D8}
body[data-pf-theme="dark"] .pf-refine-body{color:#B9A89E}
body[data-pf-theme="dark"] .pf-refine-q{color:#F2E2D8}
body[data-pf-theme="dark"] .pf-refine-help{color:#B9A89E}
body[data-pf-theme="dark"] .pf-refine-chip{background:#1F1715;border-color:#3A2620;color:#B9A89E}
body[data-pf-theme="dark"] .pf-refine-chip.on{background:#D4907E;border-color:#D4907E;color:#1A1413}
body[data-pf-theme="dark"] .pf-refine-skip{border-color:#3A2620;color:#B9A89E;background:transparent}
body[data-pf-theme="dark"] .pf-rs-chip{background:#1F1715;border-color:#3A2620;color:#E6D6CC}
body[data-pf-theme="dark"] .pf-refine-prog-dot{background:#3A2620}
body[data-pf-theme="dark"] .pf-refine-prog-dot.on{background:#D4907E}

/* ==========================================================
   RESULT PANEL REDESIGN — conversion-first layout.
   Hero is compact, refinement+picks come right after, and
   the size-conversions / brand-fit-guide / where-to-buy
   sections are tap-to-expand <details> accordions below.
   ========================================================== */

/* Result hero — the moment users came for. More visual weight than other
   panels: serif size in deep ink, soft rose-gradient backdrop, a thin
   accent rule, and a gentle shadow so it lifts off the card. Same
   palette throughout. */
#cs3 .result-hero{
  padding:26px 20px 22px;
  background:linear-gradient(180deg,#FFF8F5 0%,#FFEDE3 60%,#FFE1CF 100%);
  border:1px solid #F0DCD2;
  border-radius:18px;
  text-align:center;
  margin:4px 0 6px;
  position:relative;
  box-shadow:0 8px 26px -12px rgba(212,144,126,.42);
}
#cs3 .result-size-label{
  display:block;
  font-size:.72rem;font-weight:700;letter-spacing:1.4px;
  color:#A87A6A;text-transform:uppercase;
}
#cs3 .result-size{
  display:block;
  font-family:'Cormorant Garamond',serif;
  font-size:2.9rem;font-weight:600;line-height:1;
  color:#3A2C26;letter-spacing:-1.2px;
  margin-top:8px;
}
#cs3 .result-size::after{
  content:'';
  display:block;
  width:52px;height:2px;
  margin:14px auto 0;
  background:linear-gradient(90deg,transparent,#D4907E,transparent);
  border-radius:1px;
}
#cs3 .result-standard{
  display:block;
  font-size:.82rem;font-weight:600;letter-spacing:.4px;
  color:#8B7B7B;margin-top:10px;
}
@media (max-width:380px){
  #cs3 .result-size{font-size:2.5rem}
  #cs3 .result-hero{padding:22px 16px 18px}
}
body[data-pf-theme="dark"] #cs3 .result-hero{
  background:linear-gradient(180deg,#1F1715 0%,#2A1A14 60%,#3A2218 100%);
  border-color:#3A2620;
  box-shadow:0 10px 30px -12px rgba(212,144,126,.55);
}
body[data-pf-theme="dark"] #cs3 .result-size{color:#F2E2D8}
body[data-pf-theme="dark"] #cs3 .result-size-label{color:#D4907E}
body[data-pf-theme="dark"] #cs3 .result-standard{color:#B9A89E}
#cs3 .card .card-title{display:none}

/* Expandable section accordions */
.pf-section{
  margin-top:10px;
  background:#fff;
  border:1px solid #F0E0D8;border-radius:14px;
  overflow:hidden;
  transition:border-color .15s;
}
.pf-section[open]{border-color:#D4907E}
.pf-section-head{
  display:flex;align-items:center;gap:12px;
  padding:14px;cursor:pointer;list-style:none;
  user-select:none;
}
.pf-section-head::-webkit-details-marker{display:none}
.pf-section-ic{
  flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;
  width:34px;height:34px;border-radius:10px;
  background:linear-gradient(135deg,#FFEEE5,#F5E0D4);
  color:#B5685A;
}
.pf-section-ic svg{width:18px;height:18px;display:block}
.pf-section-meta{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.pf-section-title{
  font-weight:700;color:#4A3636;font-size:.95rem;line-height:1.25;
}
.pf-section-sub{
  font-size:.78rem;color:#7A6A6A;line-height:1.4;
}
.pf-section-chev{
  flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;
  width:24px;height:24px;
  color:#B9A89E;
  transition:transform .25s ease;
  margin-left:4px;
}
.pf-section-chev svg{width:18px;height:18px;display:block}
.pf-section[open] .pf-section-chev{transform:rotate(180deg);color:#D4907E}
.pf-section-head:hover{background:#FFFBF8}
.pf-section-head:hover .pf-section-title{color:#D4907E}
.pf-section-body{
  padding:0 14px 14px;
  border-top:1px solid #F5E8E0;
  margin-top:2px;padding-top:14px;
}

/* Dark theme */
body[data-pf-theme="dark"] .pf-section{background:#1A1413;border-color:#3A2620}
body[data-pf-theme="dark"] .pf-section[open]{border-color:#D4907E}
body[data-pf-theme="dark"] .pf-section-title{color:#F2E2D8}
body[data-pf-theme="dark"] .pf-section-sub{color:#B9A89E}
body[data-pf-theme="dark"] .pf-section-head:hover{background:#221715}
body[data-pf-theme="dark"] .pf-section-body{border-top-color:#3A2620}

/* ==========================================================
   HOME — sticky trust strip (compact replacement for the
   old full "Why PerfectFit" grid). Stays visible while the
   user scrolls so the trust message is never lost.
   ========================================================== */
.pf-trust-sticky{
  /* Sticks just below the topnav (also sticky/fixed at top:0). On mobile the
     topnav height is safe-area-inset-top + ~48px; on desktop it's ~60px. */
  position:sticky;
  top:calc(env(safe-area-inset-top, 0px) + 48px);
  z-index:50;
  display:flex;flex-wrap:nowrap;gap:6px;justify-content:center;align-items:center;
  margin:0 -16px 14px;padding:8px 10px;
  background:rgba(255,251,248,.96);
  backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);
  border-bottom:1px solid #F5E8E0;
  overflow-x:auto;
  scrollbar-width:none;
  -webkit-overflow-scrolling:touch;
}
.pf-trust-sticky::-webkit-scrollbar{display:none}
.pf-trust-pill{
  flex-shrink:0;
  display:inline-flex;align-items:center;gap:5px;
  padding:5px 10px;border-radius:999px;
  background:rgba(255,255,255,.85);
  border:1px solid #F0E0D8;
  font-size:.7rem;font-weight:600;color:#6B5B5B;
  letter-spacing:.1px;white-space:nowrap;
}
.pf-trust-ic{
  display:inline-flex;align-items:center;justify-content:center;
  width:14px;height:14px;color:#B5685A;
}
.pf-trust-ic svg{width:14px;height:14px;display:block}
@media (min-width:760px){
  .pf-trust-sticky{top:60px}
  .pf-trust-pill{font-size:.75rem;padding:6px 12px}
  .pf-trust-ic{width:15px;height:15px}
  .pf-trust-ic svg{width:15px;height:15px}
}
@media (max-width:380px){
  .pf-trust-pill{font-size:.66rem;padding:4px 8px;gap:4px}
}

body[data-pf-theme="dark"] .pf-trust-sticky{
  background:rgba(20,16,15,.92);border-bottom-color:#2A1F1B;
}
body[data-pf-theme="dark"] .pf-trust-pill{
  background:rgba(31,23,21,.85);border-color:#3A2620;color:#B9A89E;
}

/* ==========================================================
   HOME — personalized brand wall enhancements.
   Each brand card carries a small size pill when the user
   has measured. A teaser banner offers personalization to
   unmeasured visitors.
   ========================================================== */
/* Personalized brand card: stack the brand name above a small size pill.
   Stacking is essential on mobile 3-col grid — inline layout overflows. */
.pf-brand-mark-sized{
  display:flex !important;
  flex-direction:column;
  align-items:center;justify-content:center;
  gap:6px;
  padding:12px 8px !important;
  min-height:78px;
}
.pf-brand-mark-name{
  font-weight:500;line-height:1.15;
  text-wrap:balance;
  max-width:100%;
}
.pf-brand-mark-sz{
  display:inline-block;
  padding:2px 8px;border-radius:999px;
  background:linear-gradient(135deg,#D4907E,#C77B68);
  color:#fff;font-size:.65rem;font-weight:700;letter-spacing:.3px;
  font-family:'DM Sans',sans-serif;
}
@media (min-width:520px){
  .pf-brand-mark-sized{min-height:88px;gap:8px}
}

.pf-brands-teaser{
  display:flex;align-items:center;gap:10px;
  margin:10px 0 12px;padding:12px 14px;
  background:linear-gradient(135deg,#FFF8F5,#FFF0EB);
  border:1px solid #F0DCD2;border-radius:12px;
}
.pf-bt-text{flex:1;font-size:.82rem;color:#4A3636;line-height:1.4}
.pf-bt-text strong{color:#A0735F}
.pf-bt-cta{
  flex-shrink:0;
  background:linear-gradient(135deg,#D4907E,#C77B68);color:#fff;
  border:none;border-radius:999px;padding:8px 14px;
  font-weight:700;font-size:.78rem;cursor:pointer;font-family:inherit;
  white-space:nowrap;
  transition:box-shadow .15s,transform .12s;
}
.pf-bt-cta:hover{transform:translateY(-1px);box-shadow:0 6px 16px -8px rgba(212,144,126,.5)}

body[data-pf-theme="dark"] .pf-brands-teaser{
  background:linear-gradient(135deg,#1A1413,#221715);border-color:#3A2620;
}
body[data-pf-theme="dark"] .pf-bt-text{color:#E6D6CC}

/* ==========================================================
   Home profile-tag SVG sparkle — replaces the old emoji.
   ========================================================== */
#homeProfile .pf-profile-tag .pf-ic{
  display:inline-flex;align-items:center;justify-content:center;
  width:12px;height:12px;color:currentColor;
}
#homeProfile .pf-profile-tag .pf-ic svg{width:12px;height:12px;display:block}

/* ==========================================================
   Shape page — selection status banner. Sits above the
   shape list, gives explicit "saved + applied" feedback when
   the user picks a shape so they know the choice took effect.
   ========================================================== */
#shapeStatus{margin:0 0 14px}
.pf-shape-status{
  display:flex;align-items:center;gap:10px;
  padding:12px 14px;border-radius:14px;
  background:#FFFBF8;border:1px dashed #F0DCD2;
  color:#7A6A6A;font-size:.85rem;line-height:1.4;
}
.pf-shape-status.on{
  background:linear-gradient(135deg,#FFF1EB,#FFE6DA);
  border:1px solid #D4907E;border-style:solid;
  color:#5A4338;
  box-shadow:0 4px 14px -8px rgba(212,144,126,.45);
}
.pf-shape-status-ic{
  flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;
  width:28px;height:28px;border-radius:50%;
  background:#D4907E;color:#fff;
}
.pf-shape-status-ic svg{width:14px;height:14px;display:block;stroke-width:2.5}
.pf-shape-status-text{flex:1;min-width:0}
.pf-shape-status-text strong{color:#3A302C;font-weight:700}
.pf-shape-status-clear{
  flex-shrink:0;
  display:inline-flex;align-items:center;justify-content:center;
  width:26px;height:26px;border-radius:50%;
  background:rgba(255,255,255,.6);border:1px solid rgba(0,0,0,.06);
  color:#A0735F;cursor:pointer;font-family:inherit;
}
.pf-shape-status-clear svg{width:12px;height:12px;display:block}
.pf-shape-status-clear:hover{background:#fff;color:#8B5A4A}

/* Inline "applied" tag inside the active shape's name */
.pf-shape-applied{
  display:inline-flex;align-items:center;gap:3px;
  margin-left:8px;padding:2px 8px;border-radius:999px;
  background:#D4907E;color:#fff;
  font-size:.62rem;font-weight:700;letter-spacing:.4px;
  text-transform:uppercase;font-family:'DM Sans',sans-serif;
  vertical-align:middle;
}
.pf-shape-applied svg{width:10px;height:10px;display:block;stroke-width:2.8}

/* Selected shape card gets a subtle outer ring so it stands out in the list */
.shape-item.selected{
  outline:2px solid rgba(212,144,126,.35);
  outline-offset:-2px;
  border-radius:12px;
}

body[data-pf-theme="dark"] .pf-shape-status{background:#1A1413;border-color:#3A2620;color:#B9A89E}
body[data-pf-theme="dark"] .pf-shape-status.on{background:linear-gradient(135deg,#2A1A14,#3A2218);border-color:#D4907E;color:#E6D6CC}
body[data-pf-theme="dark"] .pf-shape-status-text strong{color:#F2E2D8}
body[data-pf-theme="dark"] .pf-shape-status-clear{background:rgba(31,23,21,.6);border-color:#3A2620}

/* ==========================================================
   THINKING CHOREOGRAPHY — sequenced reveal between Calculate
   and Result. Reinforces perceived attentiveness for the
   psychology of "someone is paying attention to my fit."
   Total runtime ~3.6s, math is already computed synchronously.
   ========================================================== */
#csThinking{padding:8px 0}
.pf-thinking-card{
  text-align:center;
  background:linear-gradient(180deg,#FFFBF8,#FFF1EB);
  border:1px solid #F0DCD2;
  padding:38px 24px 32px;
}
.pf-thinking-orb{
  width:88px;height:88px;
  margin:0 auto 20px;
  border-radius:50%;
  background:linear-gradient(135deg,#D4907E,#C77B68);
  color:#fff;
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 14px 38px -10px rgba(212,144,126,.55);
  animation:pf-th-breathe 2.4s ease-in-out infinite;
}
.pf-thinking-orb svg{
  width:38px;height:38px;
  animation:pf-th-rotate 6s linear infinite;
}
@keyframes pf-th-breathe{
  0%,100%{transform:scale(1)}
  50%{transform:scale(1.06);box-shadow:0 18px 48px -10px rgba(212,144,126,.75)}
}
@keyframes pf-th-rotate{to{transform:rotate(360deg)}}
.pf-thinking-title{
  font-family:'Cormorant Garamond',serif;
  font-size:1.65rem;font-weight:600;color:#4A3636;
  letter-spacing:-.2px;line-height:1.2;
  margin-bottom:6px;
}
.pf-thinking-sub{
  font-size:.85rem;color:#8B7B7B;
  margin-bottom:24px;font-style:italic;
}
/* Sub message under the title — single-line, gentle fade-in so re-renders
   feel intentional. */
#pfThinkingMsg{animation:pf-th-fade .5s ease-out}
@keyframes pf-th-fade{from{opacity:0;transform:translateY(3px)}to{opacity:1;transform:translateY(0)}}

/* ==========================================================
   In-wizard mini "thinking" moment — appears inside #pfRefine
   when the user advances or skips a refinement step. Smaller
   visual footprint than the full size-calc thinking, so it
   feels like an acknowledgment rather than a screen takeover.
   ========================================================== */
.pf-refine-thinking{
  text-align:center;padding:24px 16px;
}
.pf-think-mini{
  display:flex;flex-direction:column;align-items:center;gap:14px;
}
.pf-thinking-orb-mini{
  width:54px;height:54px;
  margin:0;
  box-shadow:0 10px 26px -8px rgba(212,144,126,.55);
}
.pf-thinking-orb-mini svg{width:24px;height:24px}
.pf-think-mini-text{
  font-size:.92rem;font-weight:600;color:#4A3636;line-height:1.4;
  animation:pf-th-fade .5s ease-out;
  max-width:280px;
}

/* Respect reduced-motion: drop the orb breathe animation, keep the message
   reveal (which is information, not decoration). */
@media (prefers-reduced-motion: reduce){
  .pf-thinking-orb,
  .pf-thinking-orb svg{animation:none !important}
}

body[data-pf-theme="dark"] .pf-think-mini-text{color:#F2E2D8}

body[data-pf-theme="dark"] .pf-thinking-card{
  background:linear-gradient(180deg,#1A1413,#221715);
  border-color:#3A2620;
}
body[data-pf-theme="dark"] .pf-thinking-title{color:#F2E2D8}
body[data-pf-theme="dark"] .pf-thinking-sub{color:#B9A89E}
body[data-pf-theme="dark"] .pf-thinking-step{color:#8B7B7B}
body[data-pf-theme="dark"] .pf-thinking-step.active{color:#F2E2D8}
body[data-pf-theme="dark"] .pf-thinking-step.done{color:#B9A89E}
body[data-pf-theme="dark"] .pf-thinking-bullet{background:#3A2620}
