/* Shared pieces for every page: menu, buttons, buy box, shop grid, product pages, footer.
   Each product page sets its own --bg / --accent from its tube colour (lilac, citrus, neem green). */
:root { --accent: var(--plum); --tint: #F6F1F9; --paper: #FFFFFF; }
body.p-vitc { --bg: #FAF3EA; --accent: #D9681A; --plum: #D9681A; --plum-d: #8E3F0B; --tint: #FDEBD8; --line: #EEDCC6; --muted: #7A6656; --ink: #33210F; }
body.p-acne { --bg: #F0F5EB; --accent: #3F7D34; --plum: #3F7D34; --plum-d: #23501C; --tint: #E0ECD5; --line: #D4E2C8; --muted: #5C6B56; --ink: #1D2B18; }
body.p-shop { --bg: #F6F2F8; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h3 { margin: 0; font-family: var(--f-display); }
.wrap { max-width: 1320px; margin-inline: auto; padding-inline: var(--gutter); }
.page { padding-top: calc(var(--hdr) + clamp(20px, 4vmin, 56px)); }

/* menu */
.menu { position: fixed; inset: 0; z-index: 140; pointer-events: none; }
.menu::before { content: ""; position: absolute; inset: 0; background: rgba(30, 10, 40, .38); opacity: 0; transition: opacity .5s; }
.menu__panel { position: absolute; left: 0; top: 0; bottom: 0; width: min(500px, 100%); background: var(--mist); transform: translateX(-102%); transition: transform .7s var(--ease); display: grid; grid-template-rows: auto 1fr auto; padding: calc(env(safe-area-inset-top, 0px) + 12px) var(--gutter) calc(env(safe-area-inset-bottom, 0px) + 24px); }
.menu.open { pointer-events: auto; } .menu.open::before { opacity: 1; } .menu.open .menu__panel { transform: none; }
.menu__top { display: flex; justify-content: space-between; align-items: center; height: 64px; }
.menu__top img { height: 30px; width: auto; }
.menu__links { display: grid; align-content: center; gap: 2px; }
.menu__links a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; text-decoration: none; padding: 14px 0; border-bottom: 1px solid var(--line); font-family: var(--f-display); font-weight: 300; font-size: clamp(1.6rem, 4.4vmin, 2.6rem); line-height: 1.1; }
.menu__links a:hover { color: var(--plum); }
.menu__links i { font-style: normal; font-family: var(--f-body); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.menu__foot { font-size: .8rem; color: var(--muted); }

/* buttons */
.btn { --b: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: clamp(50px, 5.2vmin, 62px); padding: 0 clamp(20px, 2.4vmin, 32px); border-radius: 999px; border: 1px solid var(--b); background: var(--b); color: #fff; font-weight: 500; font-size: clamp(.9rem, 1.2vmin, 1.05rem); text-decoration: none; cursor: pointer; transition: transform .25s, background .3s, color .3s; }
.btn:hover { background: var(--plum-d); border-color: var(--plum-d); }
.btn:active { transform: scale(.98); }
.btn--plum { --b: var(--plum); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { color: #fff; }
.btn .arr { width: 18px; height: 10px; }
:focus-visible { outline: 2px solid var(--plum); outline-offset: 3px; border-radius: 8px; }

/* buy box (film page and product pages) */
.buy { padding: clamp(70px, 10vmin, 150px) 0 clamp(60px, 8vmin, 120px); background: linear-gradient(180deg, var(--bg), var(--mist)); }
.buy__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 110px); align-items: center; }
.buy__media { position: relative; aspect-ratio: 4 / 5; border-radius: clamp(22px, 3vmin, 36px); overflow: hidden; background: var(--tint); box-shadow: 0 50px 90px -60px rgba(40, 20, 50, .55); max-width: 100%; }
.buy__media img, .buy__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.buy__media video { opacity: 0; transition: opacity .6s; } .buy__media video.on { opacity: 1; }
.buy__info { display: grid; gap: clamp(14px, 2vmin, 24px); min-width: 0; max-width: 620px; }
.buy__info h1, .buy__info h2 { font-weight: 300; font-size: clamp(2.1rem, 5vmin, 4.4rem); line-height: 1.02; }
.buy__info h1 b, .buy__info h2 b { font-weight: 700; color: var(--plum); display: block; }
.lede { color: var(--muted); max-width: 48ch; }
.packs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; border: 0; padding: 0; margin: 0; min-width: 0; }
.packs legend { font-size: .66rem; letter-spacing: .24em; text-transform: uppercase; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.pack { position: relative; cursor: pointer; display: block; }
.pack input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pack > span { display: grid; grid-template-columns: 38px 1fr; align-items: end; gap: 12px; padding: 14px; border-radius: 18px; background: #fff; border: 1px solid var(--line); transition: border-color .3s, box-shadow .3s, transform .3s; min-height: 92px; }
.pack img { height: 66px; width: auto; justify-self: center; }
.pack--50 img { height: 48px; }
.pack b { display: block; font-family: var(--f-display); font-weight: 600; font-size: 1.02rem; }
.pack small { display: block; color: var(--muted); font-size: .75rem; line-height: 1.3; }
.pack em { position: absolute; top: -9px; right: 12px; font-style: normal; font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; background: var(--plum); color: #fff; padding: 3px 9px; border-radius: 999px; z-index: 1; }
.pack input:checked + span { border-color: var(--plum); box-shadow: 0 0 0 1px var(--plum), 0 18px 34px -20px rgba(40, 20, 50, .5); transform: translateY(-2px); }
.pack input:focus-visible + span { outline: 2px solid var(--plum); outline-offset: 3px; }
.pricerow { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.pricerow .p { font-family: var(--f-display); font-weight: 700; font-size: clamp(2rem, 3.8vmin, 3.2rem); line-height: 1; font-variant-numeric: tabular-nums; }
.pricerow small { color: var(--muted); font-size: .8rem; }
.ctl { display: grid; grid-template-columns: auto 1fr; gap: 10px; }
.stepper { display: inline-flex; align-items: center; min-height: clamp(50px, 5.2vmin, 62px); border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.stepper button { width: 44px; height: 100%; min-height: 48px; border: 0; background: none; font-size: 1.15rem; cursor: pointer; }
.stepper input { width: 30px; border: 0; text-align: center; font: inherit; font-size: 16px; background: none; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.ctl .btn--ghost { grid-column: 1 / -1; }
.trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding-top: 16px; border-top: 1px solid var(--line); }
.trust div { display: grid; justify-items: center; gap: 6px; text-align: center; font-size: .74rem; color: var(--muted); line-height: 1.3; }
.trust svg { width: 30px; height: 30px; fill: none; stroke: var(--plum); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.ritual { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ritual li { display: grid; justify-items: center; text-align: center; gap: 2px; font-size: .74rem; color: var(--muted); line-height: 1.3; }
.ritual img { width: clamp(58px, 7vmin, 84px); aspect-ratio: 1; border-radius: 50%; object-fit: cover; margin-bottom: 6px; border: 3px solid #fff; box-shadow: 0 10px 24px -16px rgba(40, 20, 50, .6); }
.ritual b { font-family: var(--f-display); font-weight: 600; color: var(--ink); font-size: .9rem; }
@media (max-width: 900px) { .buy__grid { grid-template-columns: 1fr; } .buy__media { aspect-ratio: 4 / 5; width: min(100%, 62svh); justify-self: center; } .buy { padding-top: 40px; } }

/* section heads */
.shead { display: grid; gap: 10px; margin-bottom: clamp(24px, 4vmin, 48px); }
.shead h2 { font-weight: 300; font-size: clamp(1.9rem, 4.4vmin, 3.4rem); line-height: 1.05; }
.shead h2 b { font-weight: 700; color: var(--plum); }
.shead p { color: var(--muted); max-width: 56ch; }

/* product cards (shop + "more from") */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: clamp(14px, 2vw, 28px); }
.pcard { --pc: var(--plum); --pt: #EFE6F5; display: grid; grid-template-rows: auto 1fr; border-radius: 28px; background: #fff; overflow: hidden; border: 1px solid var(--line); text-decoration: none; transition: transform .4s var(--ease), box-shadow .4s; min-width: 0; }
.pcard:hover { transform: translateY(-4px); box-shadow: 0 40px 70px -50px rgba(40, 20, 50, .6); }
.pcard--glow { --pc: #6E2C8A; --pt: #EDE6F2; } .pcard--vitc { --pc: #D9681A; --pt: #FCEBD9; } .pcard--acne { --pc: #3F7D34; --pt: #E3EED8; }
.pcard__img { position: relative; aspect-ratio: 1 / 1; background: radial-gradient(70% 60% at 50% 55%, #fff 0%, var(--pt) 70%); display: grid; place-items: center; }
.pcard__img img { position: absolute; top: 8%; left: 50%; translate: -50% 0; height: 84%; width: auto; max-width: none; filter: drop-shadow(0 26px 22px rgba(40, 20, 50, .2)); transition: transform .5s var(--ease); }
.pcard:hover .pcard__img img { transform: translateY(-6px) rotate(-3deg); }
.pcard__body { padding: 20px 22px 24px; display: grid; gap: 8px; align-content: start; }
.pcard__body small { font-size: .64rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 600; color: var(--pc); }
.pcard__body h3 { font-weight: 500; font-size: 1.4rem; line-height: 1.15; }
.pcard__body p { margin: 0; color: var(--muted); font-size: .88rem; }
.pcard__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.pcard__row b { font-family: var(--f-display); font-size: 1.15rem; }
.pcard__row span { font-size: .82rem; font-weight: 500; color: var(--pc); }
.more { padding: clamp(60px, 9vmin, 120px) 0; background: var(--mist); }

/* product page */
.pp-hero { padding-bottom: clamp(40px, 7vmin, 100px); }
.ing { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: clamp(12px, 1.6vw, 22px); }
.ing article { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 22px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.ing img { width: 86px; height: 86px; border-radius: 50%; }
.ing small { font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 600; color: var(--plum); }
.ing h3 { font-weight: 600; font-size: 1.15rem; }
.ing p { margin: 0; color: var(--muted); font-size: .9rem; }
.together { margin-top: clamp(20px, 3vmin, 36px); border-radius: 28px; padding: clamp(22px, 3.4vmin, 44px); background: var(--tint); display: grid; grid-template-columns: auto 1fr; gap: clamp(16px, 3vw, 44px); align-items: center; }
.together h3 { font-weight: 300; font-size: clamp(1.6rem, 3.6vmin, 2.8rem); line-height: 1.05; }
.together h3 b { font-weight: 700; color: var(--plum); display: block; }
.together p { margin: 0; color: var(--ink); max-width: 60ch; }
@media (max-width: 700px) { .together { grid-template-columns: 1fr; } }
.steps3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px); counter-reset: s; }
.steps3 div { border-top: 1px solid var(--line); padding-top: 16px; display: grid; gap: 6px; }
.steps3 div::before { counter-increment: s; content: "0" counter(s); font-family: var(--f-display); font-weight: 200; font-size: 2.2rem; color: var(--plum); line-height: 1; }
.steps3 b { font-family: var(--f-display); font-weight: 600; }
.steps3 span { color: var(--muted); font-size: .9rem; }
@media (max-width: 640px) { .steps3 { grid-template-columns: 1fr; } }
.sec { padding: clamp(50px, 8vmin, 110px) 0; }
.sec--tint { background: var(--mist); }

/* shop hero */
.shop-hero { padding-bottom: clamp(30px, 5vmin, 60px); display: grid; gap: 12px; }
.shop-hero h1 { font-weight: 200; font-size: clamp(2.8rem, 9vmin, 7rem); line-height: .95; }
.shop-hero h1 b { font-weight: 700; color: var(--plum); }
.shop-hero p { color: var(--muted); max-width: 52ch; }

/* footer, sticky bar, toast */
.foot { background: #2A1336; color: #E7DCEE; }
body.p-vitc .foot { background: #3A2210; } body.p-acne .foot { background: #1E2F19; }
.foot__bar { height: 6px; background: linear-gradient(90deg, #79B829 38%, #1D4C9B 38%); }
.foot .wrap { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding-block: 28px calc(env(safe-area-inset-bottom, 0px) + 90px); font-size: .8rem; }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.foot a { text-decoration: none; opacity: .85; } .foot a:hover { opacity: 1; }
.mbar { position: fixed; z-index: 70; left: 12px; right: 12px; bottom: calc(env(safe-area-inset-bottom, 0px) + 12px); display: none; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 8px 8px 18px; border-radius: 999px; background: rgba(30, 14, 38, .92); color: #fff; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); transform: translateY(160%); transition: transform .6s var(--ease); }
.mbar.show { transform: none; }
.mbar b { display: block; font-family: var(--f-display); font-weight: 700; font-size: 1.05rem; line-height: 1.1; }
.mbar small { font-size: .7rem; opacity: .75; }
.mbar .btn { min-height: 44px; padding: 0 18px; --b: #fff; color: var(--ink); background: #fff; }
@media (max-width: 760px) { .mbar { display: flex; } }
.toast { position: fixed; z-index: 160; left: 50%; top: calc(var(--hdr) + 8px); translate: -50% -220%; visibility: hidden; display: flex; align-items: center; gap: 12px; padding: 8px 18px 8px 8px; border-radius: 999px; background: #fff; box-shadow: 0 20px 40px -16px rgba(42, 19, 54, .45); font-size: .85rem; transition: translate .6s var(--ease); max-width: calc(100vw - 32px); }
.toast.show { translate: -50% 0; visibility: visible; }
.toast img { height: 40px; width: 40px; object-fit: contain; border-radius: 50%; background: var(--bg); padding: 3px; }
