/* Complexion MD offer modules (nfg3 / nfg4), from the offer-pages-creative mockups.
   Look follows the live page: Outfit body, Playfair Display headings, orange CTA. */
:root,:host{
  --orange:#F36427; --orange-d:#d9541c; --blue:#2D86FF; --navy:#313856; --ink:#1c2033;
  --sky:#EAF2FB; --sky-d:#d6e6f7; --line:#dfe5ee; --green:#1f9d55; --red:#d6453d; --cream:#FFF8F2;
  --muted:#5d6478; --radius:14px;
}
/* New modules live in shadow DOM on the live page, so nothing here reaches the live modules. */
:host{display:block;font-family:Outfit,-apple-system,"Segoe UI",Arial,sans-serif;color:var(--ink);font-size:17px;line-height:1.5;text-align:left;font-weight:400}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Outfit,-apple-system,"Segoe UI",Arial,sans-serif;color:var(--ink);background:#fff;font-size:17px;line-height:1.5;padding-bottom:84px}
img{max-width:100%;display:block}
h1,h2,h3,p{margin:0}
a{color:inherit}
.wrap{max-width:1160px;margin:0 auto;padding:0 20px}
.narrow{max-width:820px}
section{padding:56px 0}
section.tint{background:var(--sky)}
section.cream{background:var(--cream)}
h2{font-family:"Playfair Display",serif;font-weight:400;font-size:38px;line-height:1.15;color:var(--orange);text-align:center;margin-bottom:10px}
h2 em{color:var(--navy);font-style:italic}
.sub{text-align:center;color:var(--muted);max-width:680px;margin:0 auto 32px}
h3{font-size:20px;font-weight:700}

/* mock switcher (not part of the page design) */

/* buttons */
.btn{display:block;width:100%;background:var(--orange);color:#fff;text-align:center;text-decoration:none;font-weight:700;font-size:20px;padding:17px 20px;border-radius:999px;border:0;cursor:pointer;box-shadow:0 6px 16px rgba(243,100,39,.28)}
.btn:hover{background:var(--orange-d)}
.btn small{display:block;font-weight:500;font-size:13px;opacity:.95;margin-top:2px}
.terms{font-size:13.5px;color:var(--muted);text-align:center;margin-top:10px;line-height:1.45}
.terms b{color:var(--ink)}
.hero .heroflex .trustrow{margin-top:22px;font-size:14.5px}
.trustrow{display:flex;justify-content:center;gap:18px;flex-wrap:wrap;font-size:13px;color:var(--navy);font-weight:600;margin-top:14px}
.trustrow span:not(.elle)::before{content:"✓";color:var(--green);margin-right:5px}

/* stars */
.stars{color:#f5a623;letter-spacing:1px}
.rating{font-size:14px;color:var(--muted);display:flex;gap:8px;align-items:center}
.rating b{color:var(--ink)}

/* hero shared */
.hero{padding:34px 0 46px;background:linear-gradient(180deg,#f4f8fd 0,#fff 100%)}
.hero h1{font-weight:800;font-size:46px;line-height:1.05;margin:8px 0 6px}
.hero h1 em{font-family:"Playfair Display",serif;font-weight:400;color:var(--blue)}
.hero .over40{font-size:21px;margin-bottom:14px}
.hero .over40 em{font-family:"Playfair Display",serif}
.bullets{list-style:none;padding:0;margin:0 0 18px;font-weight:600}
.bullets li{padding-left:26px;position:relative;margin-bottom:5px}
.bullets li::before{content:"✓";position:absolute;left:0;color:var(--green);font-weight:800}
.elle{display:inline-flex;align-items:center;gap:8px;font-size:11px;letter-spacing:1.5px;color:var(--muted);text-transform:uppercase}
.elle img{height:30px}

/* hero v1: gallery + buy box */
.pdp{display:grid;grid-template-columns:1.05fr 1fr;gap:44px;align-items:start}
.gallery .main{border-radius:var(--radius);overflow:hidden;background:var(--sky);aspect-ratio:1/1}
.gallery .main img{width:100%;height:100%;object-fit:cover}
.thumbs{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin-top:10px}
.thumbs button{padding:0;border:2px solid transparent;border-radius:10px;overflow:hidden;background:none;cursor:pointer;aspect-ratio:1/1}
.thumbs button.on{border-color:var(--orange)}
.thumbs img{width:100%;height:100%;object-fit:cover}
.pdp .gallery{position:sticky;top:18px;align-self:start}
.pdp .rating{font-size:16.5px}
.pdp .rating .stars{font-size:19px}
.pdp .info h1{font-size:38px}
.pdp .bullets{font-size:16px;margin-bottom:14px}

.pdp>*,.heroflex>*,.grid2>*,.charts>*,.twin>*{min-width:0}
/* nfg3 hero: as wide as the page header's Bootstrap container (1140 / 1320px, 12px gutters), so the
   gallery's left edge lines up with the logo and the main image reaches 680px on wide screens. */
@media (min-width:1200px){.wrap.pdp{max-width:1140px;padding:0 12px;grid-template-columns:minmax(0,1.15fr) 1fr}}
@media (min-width:1400px){.wrap.pdp{max-width:1320px;grid-template-columns:680px 1fr}}
/* hero v2/v3: offer hero */
/* text column and image sit close together as one centred group (Mars Men spacing) */
.heroflex{display:grid;grid-template-columns:minmax(0,560px) minmax(0,520px);justify-content:center;gap:48px;align-items:center}
.heroflex .pic{border-radius:var(--radius);overflow:hidden;width:100%}
.heroflex h1{font-size:60px;margin:12px 0 8px}
.heroflex .over40{font-size:25px;margin-bottom:18px}
.heroflex .rating{font-size:18px}
.heroflex .rating .stars{font-size:24px}
.heroflex .bullets{font-size:20px;margin-bottom:24px}
.heroflex .bullets li{margin-bottom:8px}
.heroflex .btn{max-width:460px;font-size:22px;padding:19px 20px}
/* Guarantee and "Featured in ELLE" share one row, centred under the button. */
.heroflex .trustrow{justify-content:center;align-items:center;gap:10px 28px;max-width:460px}
/* nfg4 hero: same container as the nfg3 hero above, so the text lines up with the logo and the
   picture reaches 680px on wide screens. */
@media (min-width:1200px){.wrap.heroflex{max-width:1140px;padding:0 12px;justify-content:normal;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr)}}
@media (min-width:1400px){.wrap.heroflex{max-width:1320px;grid-template-columns:minmax(0,1fr) 680px}}
.offerline{background:#fff;border:2px solid var(--orange);border-radius:var(--radius);padding:14px 16px;margin:6px 0 14px}
.offerline .big{font-size:22px;font-weight:800;line-height:1.2}
.offerline .big s{color:var(--muted);font-weight:500;font-size:17px}
.offerline .big span{color:var(--orange)}
.offerline .small{font-size:14px;color:var(--muted);margin-top:3px}

/* buy box: stacked radio (Gruns style) */
.buybox{max-width:520px}
.opt{display:block;border:2px solid var(--line);border-radius:var(--radius);background:#fff;margin-bottom:12px;cursor:pointer;overflow:hidden}
.opt input{position:absolute;opacity:0}
.opt .flag{background:var(--navy);color:#fff;font-size:13px;font-weight:700;letter-spacing:.6px;text-align:center;padding:7px 10px;text-transform:uppercase}
.opt .flag span{color:#f5a623} /* same gold as the rating stars */
.opt .body{padding:14px 16px}
.opt .row{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.opt .name{font-size:20px;font-weight:700;display:flex;gap:10px;align-items:center}
.opt .name::before{content:"";width:20px;height:20px;border-radius:50%;border:2px solid #9aa3b5;flex:none;background:#fff}
.opt .desc{font-size:14px;color:var(--muted);margin-left:34px} /* 20px radio + 2x2px border (pseudo-elements are content-box) + 10px gap */
.opt .price{text-align:right;font-size:22px;font-weight:800;white-space:nowrap}
.opt .price s{font-size:15px;color:var(--muted);font-weight:500;margin-left:4px}
.opt .price small{display:block;font-size:13px;color:var(--muted);font-weight:500}
.opt .ticks{list-style:none;margin:12px 0 0 30px;padding:0;font-size:15px}
.opt .ticks li{margin-bottom:4px}
.opt .ticks li::before{content:"✓";color:var(--green);font-weight:800;margin-right:7px}
.opt .ticks.no li::before{content:"✕";color:var(--red)}
.opt .ticks.no{color:var(--muted)}
.opt.sel{border-color:var(--orange);background:#fffaf6}
.opt.sel .name::before{border-color:var(--orange);background:radial-gradient(var(--orange) 0 45%,#fff 50%)}
.giftstrip{border:1px solid var(--sky-d);border-radius:12px;margin-top:14px;overflow:hidden;background:#fff}
.giftstrip .head{background:var(--sky);font-size:14px;font-weight:700;color:var(--navy);padding:8px 12px;display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap}
.giftstrip .head em{font-style:normal;background:#ffd08a;color:#5c3b00;border-radius:999px;padding:1px 10px;font-size:12px}
.giftstrip .tiles{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;padding:12px}
.gtile{text-align:center;font-size:12.5px;font-weight:600;line-height:1.25;position:relative}
.gtile .im{aspect-ratio:1/1;border-radius:10px;overflow:hidden;border:1px solid var(--line);background:var(--sky);margin-bottom:5px;display:grid;place-items:center;font-size:30px}
.gtile .im img{width:100%;height:100%;object-fit:cover}
.gtile .free{position:absolute;top:-7px;left:50%;transform:translateX(-50%);background:var(--navy);color:#fff;font-size:10px;letter-spacing:1px;border-radius:999px;padding:1px 8px;z-index:2}
.gtile s{color:var(--muted);font-weight:500}

/* buy box: twin cards (Primal Queen style) */
.twin{display:grid;grid-template-columns:1fr 1fr;gap:22px;max-width:940px;margin:0 auto}
.card{border:2px solid var(--line);border-radius:var(--radius);background:#fff;overflow:hidden;display:flex;flex-direction:column}
.card.best{border-color:var(--orange);box-shadow:0 10px 30px rgba(49,56,86,.12)}
.card .flag{background:var(--navy);color:#fff;text-align:center;font-weight:700;font-size:13px;letter-spacing:.6px;padding:8px;text-transform:uppercase}
.card .flag.grey{background:#8a91a3}
.card .pic{aspect-ratio:4/3;overflow:hidden;background:var(--sky)}
.card .pic img{width:100%;height:100%;object-fit:cover}
.card .in{padding:18px;display:flex;flex-direction:column;flex:1}
.card h3{font-size:22px;margin-bottom:10px}
.lines{list-style:none;margin:0 0 14px;padding:0;font-size:15.5px}
.lines li{display:flex;justify-content:space-between;gap:10px;padding:7px 0;border-bottom:1px dashed var(--line)}
.lines li span:first-child::before{content:"✓";color:var(--green);font-weight:800;margin-right:7px}
.lines li.no span:first-child::before{content:"✕";color:var(--red)}
.lines li.no{color:var(--muted)}
.lines .v{white-space:nowrap;font-weight:700}
.lines .v s{color:var(--muted);font-weight:500;margin-right:5px}
.lines .v i{font-style:normal;color:var(--red)}
.lines .v small{font-weight:500;color:var(--muted);font-size:12.5px}
.card .total{font-size:30px;font-weight:800;margin:auto 0 12px}
.card .total s{font-size:18px;color:var(--muted);font-weight:500}
.card .total small{font-size:14px;color:var(--orange);font-weight:700;margin-left:6px}
.btn.ghost{background:#fff;color:var(--navy);border:2px solid var(--navy);box-shadow:none}

/* stock strip */
.stock{max-width:420px;margin:18px auto 0;text-align:center;font-weight:700;color:var(--navy);font-size:15px}
.stock .barwrap{height:10px;background:#e7ebf2;border-radius:99px;overflow:hidden;margin-top:6px}
.stock .barfill{height:100%;width:22%;background:linear-gradient(90deg,#d6453d,#F36427);animation:blink 1.2s infinite alternate}
@keyframes blink{from{opacity:1}to{opacity:.45}}

/* grids */
.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.grid4{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:34px;align-items:center}
.tile{background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}
.tile .im{aspect-ratio:4/3;overflow:hidden;background:var(--sky)}
.tile .im img{width:100%;height:100%;object-fit:cover}
.tile .tx{padding:16px}
.tile p{font-size:15.5px;color:var(--muted);margin-top:6px}

.rounded{border-radius:var(--radius);overflow:hidden}
/* image column stays locked while the offer column scrolls (A hero and the lower buy box) */
.lock{position:sticky;top:18px;align-self:start}

/* sticky bar */
.sticky{position:fixed;left:0;right:0;bottom:0;background:#fff;border-top:1px solid var(--line);box-shadow:0 -6px 20px rgba(0,0,0,.08);z-index:50;transform:translateY(110%);transition:transform .25s}
.sticky.show{transform:none}
.sticky .wrap{display:flex;align-items:center;gap:14px;padding-top:10px;padding-bottom:10px}
.sticky img{width:52px;height:52px;border-radius:8px;object-fit:cover}
.sticky .t{flex:1;line-height:1.25}
.sticky .t b{display:block;font-size:17px}
.sticky .t span{font-size:12.5px;color:var(--muted)}
.sticky .btn{width:auto;padding:13px 26px;font-size:17px;white-space:nowrap}

@media (max-width:820px){
  body{font-size:16px}
  section{padding:40px 0}
  h2{font-size:29px}
  .pdp,.heroflex,.grid2,.charts,.twin,.revs{grid-template-columns:1fr;gap:20px}
  .hero{padding:16px 0 30px}
  .hero h1,.heroflex h1{font-size:34px;margin:6px 0 4px}
  .pdp .gallery,.lock{position:static}
  .heroflex .rating{font-size:15px}.heroflex .rating .stars{font-size:19px}
  .heroflex .bullets{font-size:16.5px;margin-bottom:14px}.heroflex .bullets li{margin-bottom:4px}
  .heroflex .btn{max-width:none;font-size:19px;padding:16px}
  .hero .heroflex .trustrow{max-width:none;gap:8px 14px;font-size:13px}
  .heroflex .over40{font-size:18px;margin-bottom:10px}
  .heroflex .pic{max-width:none}
  .pdp .info h1{font-size:28px}
  .hero .over40{font-size:17px;margin-bottom:8px}
  .heroflex{gap:12px}
  /* Phone hero picture: square, edge to edge, like the nfg3 gallery (cancels the .wrap's 20px padding). */
  .heroflex .pic{order:-1;width:auto;margin:0 -20px;border-radius:0}
  .heroflex .pic img{width:100%;aspect-ratio:1/1;height:auto;object-fit:cover}
  .hero .rating{font-size:13px}
  .offerline{padding:10px 12px;margin:4px 0 10px}
  .pdp .bullets{grid-template-columns:1fr}
  .bullets{font-size:15px;margin-bottom:12px}
  /* Phone gallery: square like desktop, edge to edge (cancels the .wrap's 20px side padding). */
  .gallery .main{margin:0 -20px;border-radius:0}
  .grid3,.grid4{grid-template-columns:1fr 1fr;gap:12px}
  .giftstrip .tiles{gap:6px;padding:10px 8px}
  .gtile{font-size:11.5px}
  .opt .name{font-size:18px}
  .opt .price{font-size:20px}
  .sticky img{display:none}
  .sticky .btn{padding:12px 18px;font-size:16px}
  .sticky .t b{font-size:15px}
  .offerline .big{font-size:19px}
  .btn{font-size:18px;padding:15px 16px}
}
/* Small phones: the button already says the offer, so the bar is just the button, full width. */
@media (max-width:480px){
  .sticky .t{display:none}
  .sticky .btn{flex:1;text-align:center}
}
