﻿/* ============================================================================
   RESUME4PRO - PREMIUM TEMPLATE PRODUCT PAGE (v2, conversion-focused)
   ============================================================================
   Ported from resume4pro-premium-template-redesign-v2.html.

   Every class, id and CSS variable is namespaced (r4p- / r4p-rev-) and all
   element resets are zero-specificity (:where), so this sits next to Bootstrap
   or any existing stylesheet without collisions.

   This is the ONLY stylesheet the single product page needs (alongside
   reviews-section.css, which styles the .r4p-rev component). It is loaded from
   Modules/Ecommerce/Resources/views/frontend/single_product.blade.php via
   @push('style_section') and nothing else pulls it in.

   Two deliberate exceptions, both required by the backend:
   - .cart-add-btn is NEVER styled here. It is the hook the global add-to-cart
     handler in resources/views/frontend/script.blade.php binds to.
   - .cart-count is NEVER styled here. That is the real header cart badge.
   ========================================================================= */
/* ============================================================================
   BASE â€” scoped to .r4p-page. Resets use :where() so they have zero
   specificity and never override a component class.
   ============================================================================ */
.r4p-page, .r4p-page *, .r4p-page *::before, .r4p-page *::after { box-sizing: border-box; }
:where(.r4p-page) :where(h1, h2, h3, h4, p, ul, ol, li, figure, blockquote, figcaption, button, input, textarea, form, details, summary) { margin: 0; padding: 0; }
:where(.r4p-page) :where(ul, ol) { list-style: none; }
:where(.r4p-page) :where(button) { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
:where(.r4p-page) :where(input, textarea) { font: inherit; }
:where(.r4p-page) :where(img, svg) { display: block; max-width: 100%; }
/* Touch feel: no 300ms tap delay / double-tap zoom on controls, and our own pressed states replace the grey flash. */
:where(.r4p-page) :where(button, summary, a.r4p-btn) { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
html.r4p-scroll-lock, html.r4p-scroll-lock body { overflow: hidden; }
:where(.r4p-page) :where(a) { color: inherit; text-decoration: none; }
:where(.r4p-page) :where(h1, h2, h3, h4) { font-family: var(--r4p-font-display); color: var(--r4p-navy); line-height: 1.15; letter-spacing: -0.01em; }

.r4p-page {
  --r4p-navy: #0B1240;
  --r4p-navy-2: #161E5C;
  --r4p-blue: #2B4DFF;
  --r4p-sky: #007BFC;
  --r4p-white: #FFFFFF;
  --r4p-surface: #F3F5FB;
  --r4p-slate: #8A93B8;        /* brand slate: fine on navy, too light for small text on white */
  --r4p-slate-text: #56608A;   /* readable slate for body-size text on white / surface */
  --r4p-line: #E3E7F5;
  --r4p-ink: #1B2140;
  --r4p-gold: #F5A623;

  --r4p-font-display: 'Sora', system-ui, sans-serif;
  --r4p-font-body: 'Inter', system-ui, sans-serif;

  --r4p-r-sm: 10px;
  --r4p-r-md: 16px;
  --r4p-r-lg: 24px;
  --r4p-pill: 999px;

  --r4p-shadow-card: 0 1px 2px rgba(11,18,64,.04), 0 12px 32px -16px rgba(11,18,64,.16);
  --r4p-shadow-float: 0 28px 64px -24px rgba(11,18,64,.55);
  --r4p-shadow-btn: 0 10px 24px -8px rgba(43,77,255,.55);

  --r4p-section-pad: clamp(2.75rem, 7vw, 6rem);
  --r4p-gutter: clamp(1.25rem, 4vw, 2rem);

  font-family: var(--r4p-font-body);
  color: var(--r4p-ink);
  background: var(--r4p-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.r4p-page [id] { scroll-margin-top: 5rem; }
.r4p-wrap { max-width: 1200px; margin-inline: auto; padding-inline: var(--r4p-gutter); padding-left: max(var(--r4p-gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--r4p-gutter), env(safe-area-inset-right, 0px)); }
.r4p-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.r4p-page a:focus-visible, .r4p-page button:focus-visible, .r4p-page summary:focus-visible {
  outline: 2.5px solid var(--r4p-sky); outline-offset: 3px; border-radius: 6px;
}
.r4p-skip { position: absolute; left: 1rem; top: -60px; z-index: 500; background: var(--r4p-navy); color: var(--r4p-white); padding: .7rem 1.2rem; border-radius: var(--r4p-r-sm); }
.r4p-skip:focus { top: 1rem; }

/* section rhythm */
.r4p-section { padding-block: var(--r4p-section-pad); }
.r4p-section--surface { background: var(--r4p-surface); }
.r4p-head { max-width: 40rem; margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.r4p-h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.r4p-lede { color: var(--r4p-slate-text); font-size: 1.05rem; margin-top: .8rem; max-width: 46ch; }
.r4p-lede a { color: var(--r4p-blue); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ============================================================================
   BUTTONS
   ============================================================================ */
.r4p-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  font-family: var(--r4p-font-body); font-weight: 700; font-size: .95rem; line-height: 1.2;
  padding: .9rem 1.6rem; border-radius: var(--r4p-pill); white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}
.r4p-btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.r4p-btn--primary { background: linear-gradient(135deg, var(--r4p-blue), var(--r4p-sky)); color: var(--r4p-white); box-shadow: var(--r4p-shadow-btn); }
.r4p-btn--ghost { color: var(--r4p-navy); border: 1.5px solid var(--r4p-line); background: var(--r4p-white); }
.r4p-btn--lg { padding: 1.1rem 1.9rem; font-size: 1.05rem; }
.r4p-btn--sm { padding: .65rem 1.2rem; font-size: .88rem; }
.r4p-btn--block { width: 100%; }
.r4p-cta-price { padding-left: .75rem; margin-left: .15rem; border-left: 1px solid rgba(255,255,255,.4); font-family: var(--r4p-font-display); font-weight: 700; }
.r4p-cta.is-added .r4p-cta-price { display: none; }

/* ============================================================================
   HEADER
   ============================================================================ */
.r4p-header { position: sticky; top: 0; z-index: 200; background: var(--r4p-white); border-bottom: 1px solid var(--r4p-line); padding-top: env(safe-area-inset-top, 0px); transition: box-shadow .25s ease, transform .3s cubic-bezier(.2,.7,.2,1); }
@media (max-width: 1023px) { .r4p-header.is-hidden { transform: translateY(-101%); box-shadow: none; } }
.r4p-header.is-scrolled { box-shadow: 0 8px 30px -20px rgba(11,18,64,.4); }
.r4p-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: .9rem; }
.r4p-logo { display: flex; align-items: center; min-height: 44px; }
.r4p-logo img { height: 34px; width: auto; }
@media (max-width: 1023px) { .r4p-header-inner { padding-block: .5rem; gap: 1rem; } .r4p-logo img { height: 30px; } }
.r4p-nav { display: none; }
.r4p-nav ul { display: flex; align-items: center; gap: 1.9rem; }
.r4p-nav a { font-weight: 600; font-size: .93rem; color: var(--r4p-navy); padding-block: .3rem; border-bottom: 2px solid transparent; transition: border-color .2s ease, color .2s ease; }
.r4p-nav a[aria-current="page"] { color: var(--r4p-blue); border-bottom-color: var(--r4p-blue); }
.r4p-header-actions { display: flex; align-items: center; gap: .8rem; }
.r4p-icon-btn { position: relative; width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--r4p-pill); border: 1px solid var(--r4p-line); color: var(--r4p-navy); transition: border-color .18s ease, color .18s ease; }
.r4p-icon-btn svg { width: 20px; height: 20px; }
.r4p-cart-count { position: absolute; top: -6px; right: -6px; min-width: 19px; height: 19px; padding-inline: 3px; background: var(--r4p-blue); color: var(--r4p-white); font-size: .68rem; font-weight: 800; border-radius: 999px; display: grid; place-items: center; border: 2px solid var(--r4p-white); }
.r4p-cart-count.is-bumped { animation: r4p-bump .35s cubic-bezier(.34,1.56,.64,1); }
@keyframes r4p-bump { 40% { transform: scale(1.5); } }
.r4p-header-review, .r4p-header-buy { display: none; }
.r4p-nav-toggle { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r4p-r-sm); border: 1px solid var(--r4p-line); }
.r4p-nav-toggle svg { width: 22px; height: 22px; }
@media (min-width: 1024px) {
  .r4p-nav { display: block; }
  .r4p-nav-toggle { display: none; }
  .r4p-header-review { display: inline-flex; }
  .r4p-header.has-buy .r4p-header-review { display: none; }
  .r4p-header.has-buy .r4p-header-buy { display: inline-flex; }
}

.r4p-drawer { position: fixed; inset: 0; z-index: 250; background: rgba(11,18,64,.55); overscroll-behavior: contain; visibility: hidden; opacity: 0; pointer-events: none; transition: opacity .25s ease, visibility 0s linear .3s; }
.r4p-drawer.is-open { visibility: visible; opacity: 1; pointer-events: auto; transition-delay: 0s; }
.r4p-drawer-panel { position: absolute; top: 0; right: 0; height: 100%; width: min(340px, 86vw); background: var(--r4p-white); padding: 1.25rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 1.25rem; overflow-y: auto; overscroll-behavior: contain; transform: translateX(100%); transition: transform .32s cubic-bezier(.2,.8,.2,1); }
.r4p-drawer.is-open .r4p-drawer-panel { transform: none; }
.r4p-drawer-head { display: flex; justify-content: space-between; align-items: center; }
.r4p-drawer a.r4p-drawer-link { display: block; padding: .85rem .25rem; font-weight: 700; font-size: 1.05rem; border-bottom: 1px solid var(--r4p-line); color: var(--r4p-navy); }
.r4p-drawer a.r4p-drawer-link[aria-current="page"] { color: var(--r4p-blue); }

/* ============================================================================
   HERO â€” the product, the proof and the button, all above the fold
   ============================================================================ */
.r4p-hero {
  position: relative; overflow: hidden; color: var(--r4p-white);
  background: radial-gradient(120% 140% at 85% -10%, #1c2670 0%, var(--r4p-navy) 45%, #060a28 100%);
  padding-top: clamp(1.25rem, 3vw, 2rem); padding-bottom: clamp(3rem, 6vw, 5rem);
}
.r4p-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(600px 400px at 10% 35%, rgba(43,77,255,.28), transparent 60%), radial-gradient(500px 380px at 92% 85%, rgba(0,123,252,.2), transparent 60%); }
.r4p-crumbs { position: relative; display: none; align-items: center; gap: .5rem; flex-wrap: wrap; font-size: .82rem; color: rgba(255,255,255,.65); margin-bottom: clamp(1.25rem, 3vw, 2.25rem); }
@media (min-width: 640px) { .r4p-crumbs { display: flex; } }
.r4p-back { position: relative; display: inline-flex; align-items: center; gap: .25rem; min-height: 44px; margin-left: -.4rem; padding-right: .9rem; font-weight: 600; font-size: .92rem; color: rgba(255,255,255,.88); }
.r4p-back svg { width: 20px; height: 20px; }
@media (min-width: 640px) { .r4p-back { display: none; } }
.r4p-crumbs a { color: rgba(255,255,255,.8); }
.r4p-crumbs svg { width: 14px; height: 14px; }
.r4p-crumbs [aria-current] { color: var(--r4p-white); font-weight: 600; }

.r4p-hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem;     margin-top: 120px;}
@media (max-width: 639px) { .r4p-hero { padding-top: .1rem; padding-bottom: 2.25rem; } .r4p-hero-grid { gap: 1rem;         margin-top: 155px; } }
.r4p-hero-head { min-width: 0; }
.r4p-hero-visual { min-width: 0; }
.r4p-hero-buy { min-width: 0; }
@media (min-width: 1024px) {
  .r4p-hero-grid { grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); grid-template-areas: "visual head" "visual buy"; column-gap: clamp(2.5rem, 5vw, 4.5rem); row-gap: 0; }
  .r4p-hero-visual { grid-area: visual; align-self: center; }
  .r4p-hero-head { grid-area: head; align-self: end; }
  .r4p-hero-buy { grid-area: buy; align-self: start; }
}

.r4p-hero-title { color: var(--r4p-white); font-size: clamp(2.1rem, 4.2vw, 3rem); }
.r4p-rating-row { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1.4rem; margin-top: 1rem; }
.r4p-rating-link { display: inline-flex; align-items: center; gap: .6rem; font-size: .92rem; color: rgba(255,255,255,.85); padding-block: .65rem; margin-block: -.65rem; }
@media (max-width: 639px) {
  .r4p-hero-title { font-size: 1.85rem; }
  .r4p-rating-row { margin-top: .8rem; gap: .1rem 1rem; }
  .r4p-rating-link, .r4p-sold { font-size: .88rem; }
}
.r4p-rating-link strong { color: var(--r4p-white); font-family: var(--r4p-font-display); font-size: 1.05rem; }
.r4p-rating-link span.r4p-underline { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.4); }
.r4p-sold { display: inline-flex; align-items: center; gap: .45rem; font-size: .92rem; font-weight: 600; color: var(--r4p-white); }
.r4p-sold svg { width: 17px; height: 17px; color: #7dd6ff; }

/* five-star row with a partial fill driven by --r4p-fill */
.r4p-stars { --r4p-star: 16px; position: relative; display: inline-block; width: calc(var(--r4p-star) * 5 + 8px); height: var(--r4p-star); flex-shrink: 0; }
.r4p-stars-track, .r4p-stars-fill { display: flex; gap: 2px; }
.r4p-stars-track svg, .r4p-stars-fill svg { width: var(--r4p-star); height: var(--r4p-star); flex-shrink: 0; }
.r4p-stars-track svg { color: rgba(255,255,255,.28); }
.r4p-stars-fill { position: absolute; inset: 0 auto 0 0; width: var(--r4p-fill, 100%); overflow: hidden; }
.r4p-stars-fill svg { color: var(--r4p-gold); }
.r4p-stars--light .r4p-stars-track svg { color: var(--r4p-line); }

/* product visual + the one orchestrated moment: the ATS scan */
.r4p-hero-visual { position: relative; width: 100%; max-width: 460px; margin-inline: auto; }
@media (max-width: 1023px) { .r4p-hero-visual { max-width: none; } .r4p-hero-stage { max-width: 232px; margin-inline: auto; } }
@media (min-width: 480px) and (max-width: 1023px) { .r4p-hero-stage { max-width: 340px; } }
.r4p-hero-stage { position: relative; border-radius: var(--r4p-r-lg); padding: clamp(1.1rem, 3vw, 2rem); background: linear-gradient(160deg, rgba(255,255,255,.1), rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.14); box-shadow: var(--r4p-shadow-float); overflow: hidden; }
.r4p-zoom { position: relative; display: block; width: 100%; border-radius: var(--r4p-r-sm); cursor: zoom-in; }
@media (max-width: 479px) { .r4p-hero-stage { padding: .65rem; } }
/* Short phones (iPhone SE, browsers with big toolbars): trade a little image size to keep the buy button on screen. */
@media (max-width: 479px) and (max-height: 720px) { .r4p-hero-stage { max-width: 190px; } .r4p-hero-title { font-size: 1.7rem; } }
.r4p-zoom img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--r4p-r-sm); box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); }
.r4p-zoom-hint { position: absolute; left: .75rem; bottom: .75rem; display: inline-flex; align-items: center; gap: .4rem; font-size: .76rem; font-weight: 600; padding: .35rem .7rem; border-radius: var(--r4p-pill); background: rgba(11,18,64,.78); color: var(--r4p-white); }
.r4p-zoom-hint svg { width: 14px; height: 14px; }
/* Full-height overlay whose bottom edge is the scan line; sliding it with transform keeps the animation off the layout thread. */
.r4p-scan { position: absolute; inset: 0 7%; z-index: 2; pointer-events: none; opacity: 0; transform: translateY(-94%); animation: r4p-scan 2.4s cubic-bezier(.4,0,.2,1) .7s 1 both; }
.r4p-scan::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 3px; background: linear-gradient(90deg, transparent, #7dd6ff, #fff, #7dd6ff, transparent); box-shadow: 0 0 18px 3px rgba(0,123,252,.65); }
@keyframes r4p-scan { 0% { transform: translateY(-94%); opacity: 0; } 10% { opacity: 1; } 88% { opacity: 1; } 100% { transform: translateY(-8%); opacity: 0; } }

/* Phones and tablets: one quiet row of ticks under the image. Desktop: the floating card. */
.r4p-ats { margin: .85rem 0 0; }
.r4p-ats-title { display: none; }
.r4p-ats ul { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem .9rem; }
.r4p-ats li { display: inline-flex; align-items: center; gap: .4rem; font-size: .76rem; font-weight: 600; color: rgba(255,255,255,.92); white-space: nowrap; animation: r4p-tick .5s ease both; animation-delay: calc(1.2s + var(--i) * .55s); }
.r4p-ats li svg { width: 16px; height: 16px; padding: 2px; border-radius: 50%; background: #17a465; color: var(--r4p-white); flex-shrink: 0; }
.r4p-long { display: none; }
@media (min-width: 1024px) {
  .r4p-ats { position: absolute; right: -1.25rem; bottom: -1.5rem; z-index: 3; width: 214px; margin: 0; padding: 1rem 1.1rem; background: var(--r4p-white); color: var(--r4p-ink); border-radius: var(--r4p-r-md); box-shadow: var(--r4p-shadow-float); }
  .r4p-ats-title { display: block; font-family: var(--r4p-font-display); font-weight: 700; font-size: .88rem; color: var(--r4p-navy); margin-bottom: .6rem; }
  .r4p-ats ul { display: block; }
  .r4p-ats li { display: flex; gap: .5rem; padding-block: .2rem; font-size: .8rem; color: var(--r4p-navy); white-space: normal; }
  .r4p-long { display: inline; }
}
@keyframes r4p-tick { from { opacity: .25; transform: translateX(-6px); } to { opacity: 1; transform: none; } }

.r4p-hero-sub { color: rgba(255,255,255,.78); font-size: 1.08rem; max-width: 46ch; margin-top: 1.5rem; }
@media (min-width: 1024px) { .r4p-hero-sub { margin-top: 1.25rem; } }
.r4p-checks { display: grid; gap: .65rem; margin-top: 1.4rem; }
.r4p-checks li { display: flex; align-items: flex-start; gap: .6rem; font-weight: 600; font-size: .95rem; color: rgba(255,255,255,.95); }
.r4p-checks svg { width: 18px; height: 18px; margin-top: 2px; color: #7dd6ff; flex-shrink: 0; }

.r4p-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: .4rem .9rem; margin-top: 1.9rem; }
.r4p-price-now { font-family: var(--r4p-font-display); font-weight: 800; font-size: 2.5rem; line-height: 1; color: var(--r4p-white); }
@media (max-width: 639px) { .r4p-price-now { font-size: 2.15rem; } }
.r4p-price-was { font-size: 1.1rem; color: rgba(255,255,255,.5); text-decoration: line-through; }
.r4p-price-note { font-size: .88rem; color: rgba(255,255,255,.7); }
.r4p-hero .r4p-cta { margin-top: 1.1rem; width: 100%; max-width: 380px; }
/* Single-column layouts: the price and the button come first; explanation follows for anyone who wants it. */
@media (max-width: 1023px) {
  .r4p-hero-buy { display: flex; flex-direction: column; }
  .r4p-price { order: 1; margin-top: 0; }
  #r4pHeroCta { order: 2; margin-top: .85rem; max-width: none; }
  .r4p-hero-buy .r4p-assure { order: 3; margin-top: .9rem; }
  .r4p-hero-sub { order: 4; margin-top: 1.4rem; padding-top: 1.3rem; border-top: 1px solid rgba(255,255,255,.14); font-size: 1rem; }
  .r4p-checks { order: 5; margin-top: 1.1rem; }
  .r4p-help { order: 6; }
}
.r4p-assure { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-top: 1.1rem; }
.r4p-assure li { display: flex; align-items: center; gap: .5rem; font-size: .85rem; color: rgba(255,255,255,.78); }
.r4p-assure svg { width: 16px; height: 16px; color: #9fb0ff; }
.r4p-help { margin-top: 1.25rem; padding-top: 1.1rem; border-top: 1px solid rgba(255,255,255,.14); font-size: .88rem; color: rgba(255,255,255,.7); max-width: 46ch; }
.r4p-help a { color: var(--r4p-white); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.4); }

/* ============================================================================
   WHAT BUYERS SAY â€” real quotes, set as type rather than boxed cards
   ============================================================================ */
.r4p-quotes { display: flex; gap: .85rem; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; margin-inline: calc(var(--r4p-gutter) * -1); padding: .15rem var(--r4p-gutter) .4rem; scroll-padding-inline: var(--r4p-gutter); }
.r4p-quotes::-webkit-scrollbar { display: none; }
.r4p-quote { flex: 0 0 min(82%, 340px); scroll-snap-align: start; padding: 1.25rem; border: 1px solid var(--r4p-line); border-radius: var(--r4p-r-md); background: var(--r4p-surface); }
@media (min-width: 900px) {
  .r4p-quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; overflow: visible; margin-inline: 0; padding: 0; }
  .r4p-quote { padding: 0 2.25rem; border: 0; border-left: 1px solid var(--r4p-line); border-radius: 0; background: none; }
  .r4p-quote:first-child { padding-left: 0; border-left: 0; }
  .r4p-quote:last-child { padding-right: 0; }
}
.r4p-quote-text { font-family: var(--r4p-font-display); font-weight: 600; font-size: 1.15rem; line-height: 1.5; color: var(--r4p-navy); }
.r4p-quote-text::before { content: "\201C"; display: block; font-size: 3rem; line-height: .7; height: 1.3rem; color: var(--r4p-blue); margin-bottom: .5rem; }
.r4p-quote-by { display: flex; align-items: center; gap: .8rem; margin-top: 1.2rem; }
.r4p-quote-avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .78rem; color: var(--r4p-white); flex-shrink: 0; }
.r4p-quote-name { display: block; font-weight: 700; font-size: .9rem; color: var(--r4p-navy); line-height: 1.3; }
.r4p-quote-date { display: block; font-size: .78rem; color: var(--r4p-slate-text); }
.r4p-quote-meta { display: flex; align-items: center; gap: .6rem; margin-top: .2rem; }
.r4p-quote .r4p-stars { --r4p-star: 13px; }

/* ============================================================================
   PROBLEM â†’ FIX â€” a plain comparison, not a card grid
   ============================================================================ */
.r4p-fix-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.25rem; }
@media (min-width: 960px) { .r4p-fix-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: start; } .r4p-fix-copy { position: sticky; top: 6rem; } }
.r4p-fix { border-top: 1px solid var(--r4p-line); }
.r4p-fix-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: .5rem; padding-block: 1.35rem; border-bottom: 1px solid var(--r4p-line); }
@media (max-width: 719px) { .r4p-fix-row { padding-block: 1rem; } }
.r4p-fix-row--head { display: none; padding-block: .9rem; font-size: .78rem; font-weight: 700; color: var(--r4p-slate-text); }
@media (min-width: 720px) {
  .r4p-fix-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; }
  .r4p-fix-row--head { display: grid; }
}
.r4p-fix-tag { display: block; font-size: .78rem; font-weight: 700; color: var(--r4p-slate-text); margin-bottom: .15rem; }
/* From 720px the column headings say this already, so the per-row labels go. Must follow the base rule above. */
@media (min-width: 720px) { .r4p-fix-tag { display: none; } }
.r4p-fix-problem { color: var(--r4p-slate-text); }
.r4p-fix-gain { display: flex; gap: .7rem; font-weight: 600; color: var(--r4p-navy); }
.r4p-fix-gain > div { min-width: 0; }
.r4p-fix-gain svg { width: 20px; height: 20px; margin-top: 2px; color: var(--r4p-blue); flex-shrink: 0; }

/* ============================================================================
   WHAT'S INCLUDED
   ============================================================================ */
.r4p-inc-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; align-items: center; }
@media (min-width: 960px) { .r4p-inc-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2.5rem, 6vw, 5rem); } }
.r4p-inc-visual { max-width: 440px; width: 100%; margin-inline: auto; }
@media (max-width: 959px) { .r4p-inc-visual { display: none; } }
.r4p-inc-visual .r4p-zoom img { box-shadow: var(--r4p-shadow-float); }
.r4p-inc-list { display: grid; gap: 1rem; margin-top: 1.6rem; }
.r4p-inc-list li { display: flex; align-items: flex-start; gap: .9rem; }
.r4p-inc-icon { width: 38px; height: 38px; border-radius: 10px; background: var(--r4p-surface); color: var(--r4p-blue); display: grid; place-items: center; flex-shrink: 0; border: 1px solid var(--r4p-line); }
.r4p-inc-icon svg { width: 19px; height: 19px; }
.r4p-inc-list strong { display: block; color: var(--r4p-navy); font-size: .98rem; }
.r4p-inc-list span { color: var(--r4p-slate-text); font-size: .9rem; }
.r4p-details { margin-top: 1.75rem; padding-top: 1.4rem; border-top: 1px solid var(--r4p-line); display: grid; gap: .9rem; }
.r4p-details-row { display: flex; flex-wrap: wrap; gap: .5rem .9rem; align-items: baseline; font-size: .88rem; }
.r4p-details-row dt { font-weight: 700; color: var(--r4p-navy); min-width: 5.5rem; }
.r4p-details-row dd { display: flex; flex-wrap: wrap; gap: .4rem; color: var(--r4p-slate-text); }
.r4p-tag { display: inline-flex; font-size: .78rem; font-weight: 600; padding: .28rem .7rem; border-radius: var(--r4p-pill); background: var(--r4p-white); border: 1px solid var(--r4p-line); color: var(--r4p-navy); }
.r4p-inc-buy { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 1.5rem; margin-top: 1.9rem; }
.r4p-inc-price { display: flex; align-items: baseline; gap: .6rem; }
.r4p-inc-price b { font-family: var(--r4p-font-display); font-weight: 800; font-size: 1.9rem; color: var(--r4p-navy); }
.r4p-inc-price s { color: var(--r4p-slate-text); }
/* Category/tag pills are catalogue metadata: useful on desktop, just length on a phone. Must sit after the base .r4p-details rule. */
@media (max-width: 639px) { .r4p-details { display: none; } .r4p-inc-buy { margin-top: 1.4rem; } }

/* ============================================================================
   HOW IT WORKS â€” a real sequence, so it is numbered
   ============================================================================ */
.r4p-steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; counter-reset: r4p-step; }
@media (min-width: 900px) { .r4p-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; } }
.r4p-step { position: relative; }
.r4p-step-n { width: 46px; height: 46px; border-radius: 50%; background: var(--r4p-navy); color: var(--r4p-white); display: grid; place-items: center; font-family: var(--r4p-font-display); font-weight: 800; margin-bottom: 1.1rem; }
.r4p-step h3 { font-size: 1.1rem; margin-bottom: .45rem; }
.r4p-step p { color: var(--r4p-slate-text); font-size: .95rem; max-width: 34ch; }
@media (max-width: 899px) {
  .r4p-steps { gap: 0; }
  .r4p-step { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 1rem; padding-bottom: 1.6rem; }
  .r4p-step:last-child { padding-bottom: 0; }
  .r4p-step-n { grid-row: 1 / span 2; width: 44px; height: 44px; margin: 0; }
  .r4p-step:not(:last-child)::before { content: ""; position: absolute; left: 21px; top: 50px; bottom: 6px; border-left: 2px dashed var(--r4p-line); }
  .r4p-step h3 { align-self: end; font-size: 1.05rem; margin-bottom: .25rem; }
  .r4p-step p { max-width: none; font-size: .92rem; }
}
@media (min-width: 900px) { .r4p-step:not(:last-child)::after { content: ""; position: absolute; top: 23px; left: 62px; right: -1.25rem; border-top: 2px dashed var(--r4p-line); } }

/* ============================================================================
   TEMPLATE OR DONE-FOR-YOU
   ============================================================================ */
.r4p-compare { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
@media (min-width: 860px) { .r4p-compare { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; } }
.r4p-option { display: flex; flex-direction: column; padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: var(--r4p-r-lg); border: 1px solid var(--r4p-line); background: var(--r4p-white); }
.r4p-option--main { border: 2px solid var(--r4p-blue); box-shadow: 0 24px 48px -28px rgba(43,77,255,.45); }
.r4p-option h3 { font-size: 1.25rem; }
.r4p-option-price { font-family: var(--r4p-font-display); font-weight: 800; font-size: 1.6rem; color: var(--r4p-navy); margin-top: .5rem; }
.r4p-option-sub { color: var(--r4p-slate-text); font-size: .95rem; margin-top: .35rem; }
.r4p-option ul { display: grid; gap: .7rem; margin-block: 1.4rem 1.75rem; flex: 1; }
@media (max-width: 639px) { .r4p-option { padding: 1.25rem; } .r4p-option h3 { font-size: 1.15rem; } .r4p-option ul { gap: .55rem; margin-block: 1rem 1.25rem; } }
.r4p-option li { display: flex; gap: .65rem; align-items: flex-start; font-size: .95rem; }
.r4p-option li svg { width: 18px; height: 18px; margin-top: 3px; color: var(--r4p-blue); flex-shrink: 0; }

/* ============================================================================
   FAQ â€” plain <details>, no JavaScript needed
   ============================================================================ */
.r4p-faq { max-width: 780px; border-top: 1px solid var(--r4p-line); }.r4p-faq details { border-bottom: 1px solid var(--r4p-line); }
.r4p-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.2rem 0; font-weight: 700; color: var(--r4p-navy); cursor: pointer; list-style: none; }
.r4p-faq summary::-webkit-details-marker { display: none; }
.r4p-faq summary svg { width: 20px; height: 20px; color: var(--r4p-blue); flex-shrink: 0; transition: transform .2s ease; }
.r4p-faq details[open] summary svg { transform: rotate(180deg); }
.r4p-faq-a { padding: 0 0 1.4rem; color: var(--r4p-slate-text); max-width: 62ch; }
.r4p-faq-a a { color: var(--r4p-blue); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
/* The FAQ section is a single narrow column; center it and its heading so the
   accordion sits in the middle of the page rather than hard against the left. */
#r4pFaq .r4p-head { margin-inline: auto; }
#r4pFaq .r4p-faq { margin-inline: auto; }

/* ============================================================================
   FINAL CTA
   ============================================================================ */
.r4p-final { position: relative; overflow: hidden; color: var(--r4p-white); text-align: center; background: radial-gradient(120% 160% at 50% 0%, #24316f 0%, var(--r4p-navy) 55%, #060a28 100%); padding-block: var(--r4p-section-pad); }
.r4p-final h2 { color: var(--r4p-white); font-size: clamp(1.8rem, 3.6vw, 2.6rem); max-width: 20ch; margin-inline: auto; }
.r4p-final p.r4p-final-sub { color: rgba(255,255,255,.75); max-width: 52ch; margin: 1rem auto 0; font-size: 1.05rem; }
.r4p-final-price { display: flex; justify-content: center; align-items: baseline; gap: .8rem; margin-top: 1.75rem; }
.r4p-final-price b { font-family: var(--r4p-font-display); font-weight: 800; font-size: 2.4rem; line-height: 1; }
.r4p-final-price s { color: rgba(255,255,255,.5); }
.r4p-final .r4p-cta { margin-top: 1.25rem; min-width: min(100%, 340px); }
.r4p-final .r4p-assure { justify-content: center; }
.r4p-final-alt { margin-top: 2rem; font-size: .92rem; color: rgba(255,255,255,.7); }
.r4p-final-alt a { color: var(--r4p-white); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.4); }

/* ============================================================================
   FOOTER
   ============================================================================ */
.r4p-footer { background: var(--r4p-navy); color: rgba(255,255,255,.72); padding-top: clamp(3rem, 6vw, 4.5rem); }
.r4p-footer-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,.1); }
@media (min-width: 860px) { .r4p-footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
@media (max-width: 859px) {
  .r4p-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 1.25rem; padding-bottom: 1rem; }
  .r4p-footer-brand { grid-column: 1 / -1; }
  .r4p-footer-col:nth-child(2) { grid-row: 2 / span 2; }
  .r4p-footer-col:nth-child(3) { grid-column: 2; grid-row: 2; }
  .r4p-footer-col:nth-child(4) { grid-column: 2; grid-row: 3; }
  .r4p-footer-col ul { gap: 0; }
  .r4p-footer-col a { display: block; padding-block: .7rem; }
  .r4p-footer-bottom { padding-bottom: calc(5.75rem + env(safe-area-inset-bottom, 0px)); }
  .r4p-footer-bottom a { display: inline-block; padding-block: .8rem; margin-block: -.8rem; }
}
.r4p-footer-brand img { height: 30px; width: auto; margin-bottom: 1rem; }
.r4p-footer-brand p { font-size: .9rem; max-width: 40ch; line-height: 1.7; }
.r4p-footer-addr { display: flex; align-items: center; gap: .5rem; margin-top: 1.1rem; }
.r4p-footer-addr svg { width: 15px; height: 15px; flex-shrink: 0; }
.r4p-socials { display: flex; gap: .6rem; margin-top: 1.3rem; }
.r4p-socials a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); display: grid; place-items: center; transition: background .18s ease, border-color .18s ease; }
.r4p-socials svg { width: 16px; height: 16px; }
.r4p-footer-col h4 { color: var(--r4p-white); font-size: .92rem; margin-bottom: 1.1rem; }
.r4p-footer-col ul { display: grid; gap: .65rem; }
.r4p-footer-col a { font-size: .9rem; transition: color .15s ease; }
.r4p-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; padding-block: 1.5rem; font-size: .82rem; color: rgba(255,255,255,.55); }

/* ============================================================================
   STICKY BUY BAR (mobile / tablet), WHATSAPP, TOAST, LIGHTBOX
   ============================================================================ */
.r4p-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 150; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 1.1rem calc(.8rem + env(safe-area-inset-bottom, 0px)); background: var(--r4p-white); border-top: 1px solid var(--r4p-line); box-shadow: 0 -12px 30px -18px rgba(11,18,64,.4); transform: translateY(110%); transition: transform .28s ease; }
.r4p-bar.is-visible { transform: none; }
.r4p-bar.is-kbd { transform: translateY(110%); }
.r4p-bar .r4p-btn { flex: 1 1 auto; max-width: 240px; }
.r4p-bar-price { display: flex; flex-direction: column; line-height: 1.2; }
.r4p-bar-price b { font-family: var(--r4p-font-display); font-weight: 800; font-size: 1.2rem; color: var(--r4p-navy); }
.r4p-bar-price s { font-size: .78rem; color: var(--r4p-slate-text); }
@media (min-width: 1024px) { .r4p-bar { display: none; } }

.r4p-wa { position: fixed; right: 1.1rem; bottom: calc(1.1rem + env(safe-area-inset-bottom, 0px)); z-index: 140; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: #25D366; color: var(--r4p-white); box-shadow: 0 14px 28px -10px rgba(11,18,64,.45); transform: translateY(var(--r4p-wa-y, 0)); transition: transform .28s cubic-bezier(.2,.7,.2,1), opacity .22s ease; }
.r4p-wa svg { width: 26px; height: 26px; }
@media (max-width: 1023px) {
  .r4p-wa { width: 48px; height: 48px; opacity: 0; pointer-events: none; }
  .r4p-wa.is-shown { opacity: 1; pointer-events: auto; }
  .r4p-wa.is-lifted { --r4p-wa-y: -4.4rem; }
  .r4p-wa.is-shown.is-away { opacity: 0; pointer-events: none; }
}

.r4p-toast { position: fixed; left: 50%; bottom: 1.5rem; z-index: 400; transform: translate(-50%, 20px); display: flex; align-items: center; gap: .9rem; padding: .8rem .9rem .8rem 1.2rem; border-radius: var(--r4p-pill); background: var(--r4p-navy); color: var(--r4p-white); font-size: .9rem; font-weight: 600; box-shadow: 0 16px 34px -14px rgba(0,0,0,.6); opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease; width: max-content; max-width: calc(100vw - 2rem); }
.r4p-toast.is-visible { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.r4p-toast svg { width: 18px; height: 18px; color: #7dd6ff; flex-shrink: 0; }
.r4p-toast a { padding: .5rem 1rem; border-radius: var(--r4p-pill); background: var(--r4p-white); color: var(--r4p-navy); font-size: .82rem; font-weight: 700; white-space: nowrap; }
@media (max-width: 1023px) { .r4p-toast { bottom: calc(5.6rem + env(safe-area-inset-bottom, 0px)); } }

.r4p-lightbox { display: none; position: fixed; inset: 0; z-index: 500; background: rgba(6,10,40,.9); padding: 1.25rem; align-items: center; justify-content: center; overscroll-behavior: contain; touch-action: pan-x pan-y pinch-zoom; }
.r4p-lightbox.is-open { display: flex; }
.r4p-lightbox img { max-width: min(92vw, 900px); max-height: 88vh; max-height: 88dvh; width: auto; height: auto; border-radius: var(--r4p-r-sm); box-shadow: var(--r4p-shadow-float); background: var(--r4p-white); }
.r4p-lightbox-close { position: absolute; top: max(1rem, env(safe-area-inset-top, 0px)); right: 1rem; width: 46px; height: 46px; border-radius: 50%; background: var(--r4p-white); color: var(--r4p-navy); display: grid; place-items: center; }
.r4p-lightbox-close svg { width: 22px; height: 22px; }

@media (prefers-reduced-motion: reduce) {
  .r4p-page *, .r4p-page *::before, .r4p-page *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; }
}

/* ============================================================================
   INTERACTION STATES
   Hover only where a real pointer exists: on touch screens :hover sticks after a tap and
   leaves buttons looking half-pressed. Pressed (:active) feedback is instant everywhere.
   ============================================================================ */
@media (hover: hover) and (pointer: fine) {
  .r4p-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -10px rgba(43,77,255,.6); }
  .r4p-btn--ghost:hover { border-color: var(--r4p-blue); color: var(--r4p-blue); }
  .r4p-nav a:hover { border-bottom-color: var(--r4p-blue); }
  .r4p-icon-btn:hover { border-color: var(--r4p-blue); color: var(--r4p-blue); }
  .r4p-crumbs a:hover { color: var(--r4p-white); }
  .r4p-rating-link:hover span.r4p-underline { text-decoration-color: var(--r4p-white); }
  .r4p-help a:hover { text-decoration-color: var(--r4p-white); }
  .r4p-final-alt a:hover { text-decoration-color: var(--r4p-white); }
  .r4p-socials a:hover { background: var(--r4p-blue); border-color: var(--r4p-blue); }
  .r4p-footer-col a:hover { color: var(--r4p-white); }
  .r4p-wa:hover { transform: translateY(-3px); }
}
.r4p-btn:active { transform: scale(.97); transition-duration: .08s; }
.r4p-btn--primary:active { box-shadow: 0 6px 14px -8px rgba(43,77,255,.6); }
.r4p-btn--ghost:active { background: var(--r4p-surface); }
.r4p-icon-btn:active, .r4p-nav-toggle:active { background: var(--r4p-surface); transform: scale(.94); }
.r4p-drawer a.r4p-drawer-link:active, .r4p-faq summary:active { background: var(--r4p-surface); }
.r4p-wa:active { transform: translateY(var(--r4p-wa-y, 0)) scale(.94); }


.r4p-page .r4p-rev { background: var(--r4p-surface); padding-block: var(--r4p-section-pad); }

/* ============================================================================
   Floating controls above the sticky buy bar (mobile)
   The site's WhatsApp widget and .progress-wrap scroll-to-top sit bottom-right
   on every page. The sticky buy bar occupies roughly the bottom 71px, so restack
   both above it. The descendant selectors are not decoration: global/whatsapp.css
   is linked from the FOOTER and would win a specificity tie on .whatsapp-float.
   ========================================================================= */
@media (max-width: 1023.98px) {
  .wa-widget .whatsapp-float { margin-bottom: 0; bottom: 5.5rem; }
  .paginacontainer .progress-wrap { bottom: 10.5rem; }
}

/* ============================================================================
   HEADER CART BADGE BUMP
   The header cart badge lives in the global navbar. The page JS adds this class
   for one animation cycle after a successful add-to-cart. .cart-count itself is
   left entirely to the global stylesheet.
   ========================================================================= */
.r4p-bump { animation: r4pBump 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes r4pBump { 0% { transform: scale(1); } 40% { transform: scale(1.5); } 100% { transform: scale(1); } }
