/* ==========================================================================
   Illusion v2 components. New markup uses its own class names (pf-*), so these
   rules never fight the older layers. Loaded after overhaul.css.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Product buy box: durations as tiles in one radio group
   -------------------------------------------------------------------------- */
.pf-durations {
  display: grid;
  grid-template-columns: repeat(var(--pf-cols, 3), minmax(0, 1fr));
  gap: 8px;
  padding-top: 10px;
}
.pf-durations .pf-dur {
  position: relative;
  display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
  min-height: 88px;
  padding: 14px 12px 12px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 12px;
  background: rgba(255, 255, 255, .03);
  color: var(--ov-text);
  text-align: left;
  cursor: pointer;
  transition: border-color .15s, background-color .15s, transform .15s var(--ov-ease);
}
.pf-durations .pf-dur:hover:not([disabled]) { border-color: rgba(255, 111, 210, .45); }
.pf-durations .pf-dur:active:not([disabled]) { transform: scale(.98); }
.pf-durations .pf-dur:focus-visible { outline: 2px solid #ff8ad8; outline-offset: 2px; }
.pf-durations .pf-dur[aria-checked="true"] {
  border-color: transparent;
  background:
    linear-gradient(var(--ov-raised), var(--ov-raised)) padding-box,
    linear-gradient(120deg, #ff6fd2, #a374ff) border-box;
  box-shadow: 0 10px 30px -14px rgba(201, 52, 159, .6);
}
.pf-durations .pf-dur[disabled] { opacity: .55; cursor: not-allowed; }
.pf-dur-name { font-size: 13px; font-weight: 600; line-height: 1.3; color: var(--ov-body); }
.pf-dur[aria-checked="true"] .pf-dur-name { color: #fff; }
.pf-dur-price {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px;
  font-family: var(--ff-heading); font-size: 20px; font-weight: 800; line-height: 1.15; letter-spacing: -.02em;
  color: #fff;
}
.pf-dur-price s { font-family: var(--ff-body); font-size: 12px; font-weight: 500; letter-spacing: 0; color: var(--ov-muted); }
.pf-dur-sub { font-size: 12px; line-height: 1.35; color: var(--ov-muted); }
.pf-dur-sub.is-out { color: var(--ov-bad); }
.pf-dur-save {
  position: absolute; top: -9px; right: 8px;
  padding: 1px 7px;
  border: 1px solid rgba(61, 220, 132, .35);
  border-radius: 999px;
  background: #12301f;
  color: #9ff0c4;
  font-size: 11px; font-weight: 700; line-height: 16px; white-space: nowrap;
}
.pf-dur-save.is-best { border-color: transparent; background: var(--ov-ok); color: #06210f; }

/* Store rating under the product title */
.pf-rating {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 24px; margin-top: 8px;
  font-family: var(--ff-body); font-size: 13.5px; font-weight: 400; letter-spacing: 0; line-height: 1.4;
  color: var(--ov-body); text-decoration: none;
}
.pf-rating b { color: #fff; font-weight: 700; }
.pf-rating:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.pf-stars { color: var(--ov-warn); font-size: 12px; letter-spacing: 1px; }

/* Updating notice: two lines, links underneath */
.pf-notice {
  display: grid; grid-template-columns: auto 1fr; gap: 4px 10px;
  margin: 14px 0 4px;
  padding: 11px 13px;
  border: 1px solid rgba(245, 181, 68, .3);
  border-radius: 12px;
  background: rgba(245, 181, 68, .07);
  color: #f1dfbf;
  font-size: 13px; line-height: 1.45;
}
.pf-notice svg { width: 16px; height: 16px; margin-top: 2px; color: var(--ov-warn); }
.pf-notice strong { color: #fff3dc; font-weight: 650; }
.pf-notice-links { grid-column: 2; display: flex; flex-wrap: wrap; gap: 0 16px; }
.pf-notice-links a {
  display: inline-flex; align-items: center; min-height: 24px;
  color: var(--ov-warn); font-weight: 600; text-decoration: underline; text-underline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Cart: better-value switch and policy links
   -------------------------------------------------------------------------- */
.cart-switch {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px;
  margin-top: 12px; padding: 9px 12px;
  border: 1px dashed rgba(61, 220, 132, .4);
  border-radius: 10px;
  background: rgba(61, 220, 132, .06);
  color: var(--ov-text); font-size: 13.5px; text-align: left;
  transition: background-color .15s, border-color .15s;
}
.cart-switch:hover { border-style: solid; background: rgba(61, 220, 132, .1); }
.cart-switch:focus-visible { outline: 2px solid #9ff0c4; outline-offset: 2px; }
.cart-switch-main { font-weight: 650; }
.cart-switch-sub { color: #9ff0c4; font-size: 12.5px; }
.cart-policy { font-size: 12.5px; line-height: 1.5; color: var(--ov-muted); }
.cart-policy a { color: var(--ov-body); text-decoration: underline; text-underline-offset: 3px; }
.cart-policy a:hover { color: #fff; }

/* --------------------------------------------------------------------------
   Header: full-width bar (navbar variant "bar")
   -------------------------------------------------------------------------- */
.nb-bar {
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  background: rgba(17, 13, 18, .8);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
}
.nb-bar-inner {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px;
  height: 64px;
}
.nb-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
@media (min-width: 1024px) {
  .nb-bar-inner { grid-template-columns: 1fr auto 1fr; }
  .nb-links { align-items: center; gap: 2px; }
}
@media (prefers-reduced-transparency: reduce) {
  .nb-bar { background: #110d12; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
/* TEMPORARY until overhaul.css is layered: the old floating-pill rules (.sa-navbar > div > div,
   .sa-header gradient) also match the bar. Remove with them. */
html body .sa-navbar--bar > .nb-bar > .nb-bar-inner { border: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; }
html body .sa-header:has(.sa-navbar--bar) { background: none !important; }

/* --------------------------------------------------------------------------
   Product: compact total row (replaces the 44px .sa-product-total block)
   -------------------------------------------------------------------------- */
.pf-total {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin: 16px 0 14px; padding: 14px 0 0;
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.pf-total-meta { display: grid; gap: 3px; min-width: 0; }
.pf-total-label {
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ov-muted, #9a93a3);
}
.pf-total-note { font-size: 13px; line-height: 1.35; font-weight: 550; color: #8ee8b5; }
.pf-total-note.is-warn { color: #f5b544; }
.pf-total-note.is-out { color: #ff8a8a; }
html body .pf-total-value {
  flex: none;
  font-size: 28px !important; /* TEMPORARY !important: beats overhaul.css .sa-total-value until the layer refactor lands */
  line-height: 1; font-weight: 800; letter-spacing: -.02em !important;
  color: #fff; font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   Home: one section rhythm, and a short mobile "Why Illusion"
   -------------------------------------------------------------------------- */
.hm-why { padding: clamp(56px, 6.5vw, 88px) 0; }
.hm-faq { padding: clamp(56px, 6.5vw, 88px) 0 clamp(40px, 5vw, 64px); }
html body .sa-products.sa-products--grid { padding-bottom: clamp(40px, 5vw, 64px) !important; } /* TEMPORARY !important: py-section utility */

/* Phones: the six proof cards become one swipeable row (about 2,000px shorter).
   Each card peeks the next so the row reads as scrollable; every card stays a normal link in tab order. */
@media (max-width: 640px) {
  .hm-bento {
    display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 84%;
    gap: 12px; margin: 0 -20px; padding: 2px 20px 14px;
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: 20px;
    scrollbar-width: none;
  }
  .hm-bento::-webkit-scrollbar { display: none; }
  .hm-bento > .hm-card { scroll-snap-align: start; }
  .hm-bento .hm-art { min-height: 0; height: auto; }
  .hm-bento .hm-card-text { flex: 1; }
}