/* L'Grem Cosmetics — stylesheet for the v2 page markup.
   Black / white / gold. Responsive by construction: fluid type (clamp),
   images always capped at container width, grids collapse on phones,
   overflow-x guard as a safety net only. */

*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;overflow-x:hidden;overflow-x:clip}
body{margin:0;overflow-x:hidden;overflow-x:clip;font-family:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:#111;background:#fff;-webkit-font-smoothing:antialiased}
img{max-width:100%;height:auto}
a{color:inherit}
h1,h2,h3{font-family:"Playfair Display",Georgia,serif;font-weight:500}
.eyebrow{letter-spacing:.18em;text-transform:uppercase;color:#a07d12;font-weight:800;font-size:.72rem;margin:0}

/* ---------- Top bar ---------- */
.topbar{position:sticky;top:0;z-index:20;background:rgba(255,255,255,.95);backdrop-filter:blur(16px);border-bottom:1px solid #e8e8e8;display:flex;align-items:center;flex-wrap:wrap;gap:.6rem 1.2rem;padding:0 clamp(1rem,4vw,3rem) .7rem}
.topbar .brand{display:flex;align-items:center;justify-content:center;text-decoration:none;flex:1 1 100%;background:#18171c;margin:0 calc(-1 * clamp(1rem,4vw,3rem));padding:.45rem 1rem}
.topbar .brand img{height:66px;width:auto;max-width:94vw;display:block}
.topbar nav{display:flex;flex-wrap:wrap;gap:.35rem 1rem;min-width:0}
.topbar nav a{text-decoration:none;font-size:.86rem;font-weight:700;white-space:nowrap;padding:.3rem 0}
.topbar nav a:hover{color:#a07d12}
.shop-link{margin-left:auto;border:1px solid #111;padding:.5rem .85rem;font-weight:700;font-size:.86rem;text-decoration:none;white-space:nowrap}
.shop-link:hover{background:#111;color:#fff}

/* ---------- Hero ---------- */
.hero{background:#050505;color:#fff;display:grid;grid-template-columns:1.05fr .95fr;gap:clamp(1.5rem,4vw,4rem);align-items:center;width:100%;padding:clamp(2.5rem,7vw,6rem) clamp(1.25rem,5vw,4rem);overflow:hidden}
.hero-copy{min-width:0}
.hero h1{font-size:clamp(2.3rem,6vw,4.6rem);line-height:1.02;margin:.7rem 0 1rem}
.lede{color:#d7d7d7;font-size:clamp(1rem,1.6vw,1.2rem);line-height:1.55;max-width:560px;margin:0 0 2rem}
.hero-actions{display:flex;gap:.8rem;flex-wrap:wrap}
.button{display:inline-block;text-decoration:none;padding:.9rem 1.35rem;font-weight:800;letter-spacing:.04em;font-size:.95rem}
.button.gold{background:#d4af37;color:#111}
.button.outline{border:1px solid #777;color:#fff}
.button.dark{background:#111;color:#fff}
.stats{display:flex;gap:clamp(1rem,3vw,2.2rem);flex-wrap:wrap;margin-top:2.6rem;color:#bbb;font-size:.85rem}
.stats strong{display:block;color:#fff;font-size:1.3rem;margin-bottom:.15rem}
.stats a.stat-link{color:inherit;text-decoration:none;display:block}
.stats a.stat-link strong{text-decoration:underline;text-decoration-color:rgba(212,175,55,.45);text-underline-offset:5px}
.stats a.stat-link:hover strong{color:#fff;text-decoration-color:#d4af37}
.hero-media{min-width:0;text-align:center}
.hero-media img{width:min(520px,100%);margin:0 auto;display:block}
.hero-card{border:1px solid #333;background:#111;padding:1rem 1.2rem;margin:1rem auto 0;max-width:520px;text-align:left}
.hero-card span{display:block;color:#d8bc57;letter-spacing:.16em;text-transform:uppercase;font-size:.68rem;font-weight:800;margin-bottom:.3rem}
.hero-card strong{font-size:1.02rem}

/* ---------- Trust strip ---------- */
.strip{display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem;padding:2rem clamp(1.25rem,5vw,4rem);border-bottom:1px solid #eee;max-width:1360px;margin:0 auto}
.strip strong{display:block;margin-bottom:.3rem}
.strip span{color:#666;font-size:.92rem;line-height:1.45}

/* ---------- Sections ---------- */
.section{padding:clamp(3rem,6vw,4.5rem) clamp(1.25rem,5vw,4rem)}
.section>*{max-width:1240px;margin-left:auto;margin-right:auto}
.section.alt{background:#f8f6f1}
.section-head{margin-bottom:1.8rem}
.section-head h2{font-size:clamp(1.9rem,4.5vw,3.3rem);line-height:1.05;margin:.45rem 0 .6rem}
.section-head p{color:#666;max-width:640px;line-height:1.55;margin:0}

/* ---------- Collections ---------- */
.collection-grid{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
.collection{padding:2rem;color:#fff;min-height:320px;display:flex;flex-direction:column;align-items:flex-start}
.collection.rose{background:linear-gradient(145deg,#201015,#070707 65%)}
.collection.goldc{background:linear-gradient(145deg,#2b2103,#050505 65%)}
.collection h3{font-size:clamp(1.7rem,3vw,2.3rem);margin:.35rem 0 .5rem}
.collection p{color:#ddd;line-height:1.55;max-width:520px}
.collection .eyebrow{color:#f0d47a}
.thumbs{display:flex;gap:.6rem;flex-wrap:wrap;margin:1.2rem 0 1.4rem}
.thumbs img{width:76px;height:76px;object-fit:cover;background:#fff;display:block}
.collection .button{margin-top:auto}

/* ---------- Price tiers ---------- */
.tier-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem}
.tier{border:1px solid #e5e5e5;background:#fff;padding:1.6rem;display:flex;flex-direction:column;align-items:flex-start}
.tier h3{font-size:1.45rem;margin:.2rem 0 .4rem}
.tier .range{font-weight:800;color:#a07d12;font-size:1.08rem;margin:0 0 .6rem}
.tier p{color:#666;line-height:1.55}
.tier.live{border-color:#d4af37;background:#fbf7ea}
.tier .button{margin-top:auto}

/* ---------- Product grid & cards ---------- */
.grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1rem}
.card{border:1px solid #e5e5e5;background:#fff;display:flex;flex-direction:column;min-width:0;position:relative;overflow:hidden}
.card>img{width:100%;aspect-ratio:1/1;object-fit:cover;display:block;background:#f6f6f6}
.badge{position:absolute;top:.6rem;left:.6rem;z-index:2;background:#111;color:#f0d47a;font-size:.62rem;font-weight:800;letter-spacing:.1em;text-transform:uppercase;padding:.32rem .55rem}
.card-body{padding:1rem;display:flex;flex-direction:column;gap:.55rem;flex:1;min-width:0}
.card h3{font-family:"Inter",sans-serif;font-weight:700;font-size:1rem;line-height:1.25;margin:0}
.card p{color:#666;font-size:.9rem;line-height:1.45;margin:0}
.notes{display:grid;gap:.25rem;border-top:1px solid #eee;border-bottom:1px solid #eee;padding:.55rem 0;font-size:.76rem;color:#6b5510}
.notes span{font-weight:800;text-transform:uppercase;letter-spacing:.08em;color:#a07d12;margin-right:.45rem}
.buy-row{margin-top:auto;display:flex;align-items:center;justify-content:space-between;gap:.6rem;padding-top:.5rem}
.price{font-size:1.15rem;font-weight:800;white-space:nowrap}
.buy{background:#111;color:#fff;text-decoration:none;padding:.65rem 1.05rem;font-weight:800;white-space:nowrap}
.buy:hover{background:#a07d12}

/* ---------- Beauty capitals strip ---------- */
.capitals{background:#050505;text-align:center;padding:3.2rem 1.5rem 3.4rem;margin-top:4rem}
.capitals-globe{width:118px;margin:0 auto 1.3rem}
.capitals-globe svg{display:block;width:100%;height:auto}
.capitals-eyebrow{color:#d4af37;text-transform:uppercase;letter-spacing:.35em;font-size:.72rem;margin:0 0 1.1rem}
.capitals-line{color:#f5efe0;text-transform:uppercase;letter-spacing:.28em;font-size:clamp(1rem,3.4vw,1.7rem);font-weight:600;margin:0;line-height:2}
.capitals-line span{color:#d4af37;padding:0 .35em}

/* ---------- Contact & footer ---------- */
.contact{background:#050505;color:#fff;text-align:center;padding:clamp(3rem,6vw,4.5rem) 1.25rem;display:flex;flex-direction:column;align-items:center;gap:1.4rem}
.contact h2{font-size:clamp(1.9rem,4.5vw,2.8rem);margin:.4rem 0}
.contact p{color:#ccc;line-height:1.6;max-width:640px;margin:0}
.contact a{color:#f0d47a}
footer{padding:2.5rem 1.25rem 3rem;text-align:center;color:#555;font-size:.92rem}
footer img{width:min(300px,70vw);margin:0 auto 1.2rem;display:block}
footer a{color:#a07d12}
footer .fine{color:#888;font-size:.8rem;line-height:1.55;max-width:640px;margin:.8rem auto 0}

/* ---------- Tablets ---------- */
@media (max-width:1100px){
  .grid{grid-template-columns:repeat(3,1fr)}
}
@media (max-width:900px){
  .grid{grid-template-columns:repeat(2,1fr)}
  .hero{grid-template-columns:1fr}
  .hero-media img{width:min(420px,86vw)}
  .strip{grid-template-columns:1fr;gap:1.1rem}
  .collection-grid{grid-template-columns:1fr}
  .tier-grid{grid-template-columns:1fr}
  .topbar nav{order:3;flex-basis:100%}
}

/* ---------- Phones ---------- */
@media (max-width:520px){
  .topbar{padding:0 .85rem .6rem;gap:.5rem .8rem}
  .topbar .brand{margin:0 -.85rem}
  .topbar .brand img{height:54px}
  .topbar nav{gap:.3rem .6rem}
  .topbar nav a{font-size:.82rem}
  /* Two tight nav rows on phones: Nails line directly under the first line, cart at its right end under Bath & Body — owner request 2026-12-02, v3 */
  .shop-link{padding:.45rem .7rem;font-size:.82rem}
  .hero{padding-top:2.2rem}
  .stats{gap:.9rem 1.2rem}
  .grid{gap:.7rem}
  .card-body{padding:.8rem}
  .card h3{font-size:.95rem}
  .card p{font-size:.85rem}
  .buy{padding:.6rem .9rem}
  .buy-row{flex-direction:column;align-items:stretch;gap:.45rem}
  .buy-row .buy{width:100%;text-align:center}
  .thumbs img{width:62px;height:62px}
  .collection{padding:1.4rem;min-height:0}
  .tier{padding:1.3rem}
}
@media (max-width:340px){
  .grid{grid-template-columns:1fr}
}

/* ---------- Scroll reveal (Apple-style fade, modeled on renovatemyapartment.com) ---------- */
/* Hidden start state applies ONLY when JS is active: html.js is set by an inline
   script in <head> before render. Elements reveal ONLY as they scroll into view
   (IntersectionObserver); a 9s last-resort timer reveals just what is near the
   current scroll position, never the whole page. Reduced-motion and print
   force everything visible. */
.js [data-reveal]{opacity:0;transform:translateY(22px);filter:blur(1.5px);transition:opacity 1.05s cubic-bezier(.17,0,.55,1),transform 1.05s cubic-bezier(.17,0,.55,1),filter 1.05s cubic-bezier(.17,0,.55,1)}
.js [data-reveal].in{opacity:1;transform:none;filter:none}
.js.scrub [data-reveal]{transition:none}
@media (prefers-reduced-motion: reduce){
  .js [data-reveal]{opacity:1;transform:none;filter:none;transition:none}
}
@media print{
  .js [data-reveal]{opacity:1;transform:none;filter:none}
}

/* ---------- Cart button (topbar) ---------- */
.cart-btn{margin-left:auto;border:1px solid #111;background:#fff;color:#111;padding:.5rem .85rem;font-weight:700;font-size:.86rem;white-space:nowrap;cursor:pointer;font-family:inherit;display:inline-flex;align-items:center;gap:.45rem}
.cart-btn:hover{background:#111;color:#fff}
.cart-count{background:#d4af37;color:#111;border-radius:999px;min-width:1.35rem;height:1.35rem;display:inline-flex;align-items:center;justify-content:center;font-size:.76rem;font-weight:800;padding:0 .3rem}

/* ---------- Card links & add buttons ---------- */
.card a.card-img{display:block;position:relative}
.card a.card-img::after{content:"L'Grem";position:absolute;top:.55rem;left:.55rem;background:rgba(10,10,12,.88);color:#d4af37;border:1px solid rgba(212,175,55,.55);font-family:"Playfair Display",Georgia,serif;font-style:italic;font-weight:700;font-size:.82rem;letter-spacing:.03em;padding:.24rem .6rem;pointer-events:none}
.card a.card-img img{width:100%;aspect-ratio:1/1;object-fit:cover;display:block;background:#f6f6f6}
.card h3 a{text-decoration:none}
.card h3 a:hover{color:#a07d12}
button.buy{border:0;cursor:pointer;font-family:inherit;font-size:.92rem}
button.buy:hover{background:#a07d12}

/* ---------- Product page ---------- */
.pdp-section{padding-top:2rem}
.back-row{max-width:1240px;margin:0 auto 1.2rem}
.back-link{text-decoration:none;font-weight:700;font-size:.9rem}
.back-link:hover{color:#a07d12}
.pdp{display:grid;grid-template-columns:1fr 1fr;gap:clamp(1.5rem,4vw,3.5rem);max-width:1240px;margin:0 auto;align-items:start}
.pdp-media{position:relative}
.pdp-media::after{content:"L'Grem";position:absolute;top:.7rem;left:.7rem;background:rgba(10,10,12,.88);color:#d4af37;border:1px solid rgba(212,175,55,.55);font-family:"Playfair Display",Georgia,serif;font-style:italic;font-weight:700;font-size:.95rem;letter-spacing:.03em;padding:.3rem .7rem;pointer-events:none}
.pdp-media img{width:100%;aspect-ratio:1/1;object-fit:cover;display:block;border:1px solid #e5e5e5;background:#f6f6f6}
.pdp-info{min-width:0}
.pdp-info h1{font-size:clamp(1.9rem,4vw,2.9rem);line-height:1.08;margin:.5rem 0 .6rem}
.pdp-price{font-size:1.5rem;font-weight:800;margin:0 0 1rem}
.pdp-about{color:#444;line-height:1.6;font-size:1.02rem;margin:0 0 1.2rem}
.pdp-notes{margin:0 0 1.2rem}
.pdp-notes h2{font-size:1.15rem;margin:0 0 .5rem}
.pdp-details{list-style:none;margin:0 0 1.4rem;padding:0;border-top:1px solid #eee}
.pdp-details li{display:flex;gap:1rem;padding:.6rem 0;border-bottom:1px solid #eee;font-size:.94rem;line-height:1.45}
.pdp-details span{flex:0 0 6.5rem;font-weight:800;text-transform:uppercase;letter-spacing:.07em;font-size:.72rem;color:#a07d12;padding-top:.15rem}
.pdp-buy{display:flex;gap:.7rem;align-items:stretch;flex-wrap:wrap}
.qty{display:inline-flex;align-items:stretch;border:1px solid #111}
.qty-btn{background:#fff;border:0;width:2.4rem;font-size:1.1rem;font-weight:700;cursor:pointer;font-family:inherit}
.qty-btn:hover{background:#111;color:#fff}
.qty-input{width:3rem;border:0;border-left:1px solid #ddd;border-right:1px solid #ddd;text-align:center;font-family:inherit;font-size:1rem;font-weight:700}
.qty-val{min-width:2.2rem;display:inline-flex;align-items:center;justify-content:center;font-weight:700}
.pdp-add{background:#111;color:#fff;padding:.8rem 1.6rem;font-size:1rem}
.pdp-note{color:#777;font-size:.86rem;margin:.8rem 0 0}

/* ---------- Cart drawer ---------- */
.cart-overlay{position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:60}
.cart-drawer{position:fixed;top:0;right:0;height:100dvh;width:min(430px,94vw);background:#fff;z-index:61;display:flex;flex-direction:column;box-shadow:-12px 0 32px rgba(0,0,0,.18)}
.cart-overlay[hidden],.cart-drawer[hidden]{display:none}
.cart-head{display:flex;align-items:center;justify-content:space-between;padding:1rem 1.2rem;border-bottom:1px solid #e8e8e8}
.cart-head h2{margin:0;font-size:1.4rem}
.cart-close{background:none;border:0;font-size:1.8rem;line-height:1;cursor:pointer;padding:.2rem .4rem}
.cart-items{flex:1;overflow-y:auto;padding:1rem 1.2rem;display:flex;flex-direction:column;gap:1rem}
.cart-empty{color:#666;line-height:1.55;text-align:center;margin:2rem 0}
.cart-item{display:flex;gap:.8rem;align-items:flex-start}
.cart-item img{width:64px;height:64px;object-fit:cover;border:1px solid #eee;background:#f6f6f6;flex:0 0 auto}
.cart-item-main{flex:1;min-width:0}
.cart-item-name{margin:0 0 .15rem;font-weight:700;font-size:.92rem;line-height:1.3}
.cart-item-price{margin:0 0 .45rem;color:#666;font-size:.85rem}
.cart-item .qty{border-color:#ccc}
.cart-item .qty-btn{width:1.9rem;font-size:1rem}
.cart-remove{background:none;border:0;color:#a07d12;font-weight:700;font-size:.8rem;cursor:pointer;margin-left:.6rem;padding:0;font-family:inherit;text-decoration:underline}
.cart-item-line{font-weight:800;white-space:nowrap}
.cart-foot{border-top:1px solid #e8e8e8;padding:1rem 1.2rem 1.2rem}
.cart-totals>div{display:flex;justify-content:space-between;margin-bottom:.35rem;font-size:.95rem}
.cart-ship-note{color:#777;font-size:.82rem;margin:.3rem 0 0}
.pay-box{border-top:2px solid #111;margin-top:.9rem;padding-top:.9rem}
.pay-box h3{font-family:"Inter",sans-serif;font-size:1.05rem;margin:0 0 .35rem}
.pay-box p{color:#666;font-size:.88rem;line-height:1.5;margin:0 0 .8rem}
.pay-btn{display:block;text-align:center}
.pay-links{margin-top:.9rem}
.pay-links p{font-weight:700;color:#111;margin:0 0 .5rem}
.pay-link-row{display:flex;justify-content:space-between;gap:.8rem;padding:.45rem 0;border-top:1px solid #eee;font-size:.88rem}
.pay-link-row span{min-width:0}
.pay-link-row a{color:#a07d12;font-weight:700;white-space:nowrap}

/* ---------- Toast ---------- */
.cart-toast{position:fixed;left:50%;bottom:1.2rem;transform:translate(-50%,1rem);background:#111;color:#fff;padding:.8rem 1.2rem;font-size:.9rem;font-weight:600;z-index:62;opacity:0;pointer-events:none;transition:opacity .25s,transform .25s;max-width:92vw;text-align:center;cursor:pointer}
.cart-toast.show{opacity:1;transform:translate(-50%,0);pointer-events:auto}

@media (max-width:900px){
  .pdp{grid-template-columns:1fr}
  .cart-btn{padding:.42rem .62rem;font-size:.8rem}
}

/* ---------- Ghosted beauty art + L'G monogram (owner's choice, Dec 1) ---------- */
body::before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;
  background:url("assets/beauty-line-art.jpg") center 18%/cover no-repeat;opacity:.13}
body::after{content:"";position:fixed;inset:0;z-index:-2;pointer-events:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='150' viewBox='0 0 200 150'%3E%3Ctext x='10' y='58' font-family='Playfair Display,Georgia,serif' font-size='30' fill='%23d4af37' fill-opacity='0.55'%3EL%27Grem%3C/text%3E%3Ctext x='105' y='128' font-family='Playfair Display,Georgia,serif' font-size='30' fill='%23d4af37' fill-opacity='0.55'%3EL%27Grem%3C/text%3E%3C/svg%3E");
  background-size:200px 150px;opacity:.12}

/* Top strip — Contact / Our Story (added 2026-12-02) */
.topstrip{background:#111;padding:.45rem clamp(1rem,4vw,3rem);position:relative;z-index:21}
.topstrip summary{cursor:pointer;list-style:none;font-size:.72rem;letter-spacing:.22em;text-transform:uppercase;color:#d4af37;font-weight:700;padding:.2rem 0}
.topstrip summary::-webkit-details-marker{display:none}
.topstrip .strip-panel{padding:.3rem 0 .55rem;font-size:.92rem;line-height:1.55;color:#eee;max-width:640px;margin:0}
.topstrip .strip-panel a{color:#e8c877}

/* Site search (added 2026-12-02) */
.searchbar{background:#18171c;padding:1rem clamp(1rem,4vw,3rem) 1.05rem;display:flex;flex-direction:column;align-items:center;gap:.55rem}
.searchbar form{display:flex;gap:.5rem;width:100%;max-width:680px;margin:0}
.searchbar input[type="search"]{flex:1;min-width:0;min-height:50px;padding:.7rem 1.1rem;border:1px solid #d4af37;border-radius:999px;background:#fff;color:#18171c;font:inherit;font-size:1rem;-webkit-appearance:none;appearance:none}
.searchbar input[type="search"]:focus{outline:2px solid #d4af37;outline-offset:2px}
.searchbar button{flex:0 0 auto;min-height:50px;padding:.7rem 1.4rem;border:1px solid #d4af37;border-radius:999px;background:#d4af37;color:#18171c;font:inherit;font-weight:700;font-size:.95rem;cursor:pointer}
.searchbar button:hover{background:#c39d21}
.search-status{margin:0;color:#d4af37;font-size:.9rem;min-height:1.1em;text-align:center}
.search-status:empty{min-height:0}
.search-empty{padding:3.2rem 1.5rem 3.6rem;text-align:center;background:#fff}
.search-empty h3{font-family:"Playfair Display",Georgia,serif;font-size:1.7rem;margin:0 0 .6rem;color:#18171c}
.search-empty p{margin:0 auto 1.2rem;max-width:34rem;color:#555;line-height:1.55}
.search-empty button{padding:.7rem 1.5rem;border:1px solid #18171c;border-radius:999px;background:#18171c;color:#fff;font:inherit;font-weight:700;cursor:pointer}
@media (max-width:520px){.searchbar{padding:.85rem .85rem 1rem}.searchbar button{padding:.7rem 1.05rem}}

/* Hero masthead — logo + capitals line stacked on top, copy below (2026-12-02) */
.hero{grid-template-columns:1fr;justify-items:center;text-align:center}
.hero-masthead{text-align:center;max-width:820px}
.hero-logo{height:clamp(110px,20vw,170px);width:auto;max-width:80vw;display:block;margin:0 auto 1.15rem}
.hero-copy{max-width:820px}
.hero .lede{margin-left:auto;margin-right:auto}
.hero-actions{justify-content:center}
.hero .stats{justify-content:center;text-align:center}
