/* ============================================================
   P Cosmetics — Brand hubs & product pages
   Shares the site's design tokens: dark stage, Montserrat,
   letterspaced labels, warm accent. Per-brand accent colors
   are set via body[data-brand] custom properties.
   ============================================================ */

:root {
  --bg: #0a0a0a;
  --surface: #111111;
  --surface-2: #161616;
  --text: #f0ede6;
  --muted: #8a8780;
  --accent: #c9b99a;
  --border: rgba(240, 237, 230, .08);
  /* brand red — used for non-text accents (focus ring, dividers). Pure red as
     TEXT on the near-black bg is only 3.76:1, so the readable CTA red below is
     lightened to clear WCAG 4.5:1 (measures 4.8:1). */
  --brand-red: #d6132f;
  --brand-red-cta: #e63950;
  --chip-bg: #f5f2ef;               /* soft off-white logo chip, not pure white */
  --card-border: rgba(255, 255, 255, .06);
  --font-display: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --brand: var(--accent);
  --brand-soft: rgba(201, 185, 154, .14);
  --radius: 18px;          /* card corners      */
  --radius-lg: 24px;       /* hero frame        */
  --btn-radius: 999px;     /* buttons           */
  --title-tt: none;        /* title case        */
  --title-ls: .01em;       /* title tracking    */
}

/* -------- per-brand personalities (colour + shape + type + atmosphere) --------
   care-more  soft & fruity   round corners, blush glow
   glysolid   heritage & bold squared corners, strong red band
   kamill     natural & calm  round corners, botanical stripes
   man-zone   sharp & dark    hard corners, uppercase, steel lines
   shave-code technical       blueprint grid, mono tracking
   trio-pro   playful         pill shapes, candy stripes
   vebix      clean & family  smooth arc, tidy radius            */
body[data-brand="care-more"]   { --brand: #d98bb6; --brand-deep: #5c2547; --brand-soft: rgba(217,139,182,.14);
  --radius: 26px; --radius-lg: 36px; }
body[data-brand="glysolid"]    { --brand: #e04338; --brand-deep: #8a0f08; --brand-soft: rgba(224,67,56,.14);
  --radius: 8px; --radius-lg: 12px; --btn-radius: 8px; }
body[data-brand="kamill"]      { --brand: #9fc98e; --brand-deep: #2e5223; --brand-soft: rgba(159,201,142,.14);
  --radius: 22px; --radius-lg: 30px; }
body[data-brand="man-zone"]    { --brand: #8fb7d9; --brand-deep: #1d3a52; --brand-soft: rgba(143,183,217,.14);
  --radius: 4px; --radius-lg: 6px; --btn-radius: 4px; --title-tt: uppercase; --title-ls: .08em; }
body[data-brand="shave-code"]  { --brand: #7fd2c8; --brand-deep: #123a36; --brand-soft: rgba(127,210,200,.14);
  --radius: 10px; --radius-lg: 12px; --btn-radius: 10px; --title-ls: .05em; }
body[data-brand="trio-pro"]    { --brand: #f0a86e; --brand-deep: #6b3a12; --brand-soft: rgba(240,168,110,.14);
  --radius: 28px; --radius-lg: 38px; }
body[data-brand="vebix"]       { --brand: #7ea6e0; --brand-deep: #1c3a66; --brand-soft: rgba(126,166,224,.14);
  --radius: 14px; --radius-lg: 20px; }

/* brand atmospheres — distinct hero backdrops on hub + product pages */
body[data-brand="care-more"] .bhero, body[data-brand="care-more"] .phero {
  background:
    radial-gradient(46% 40% at 18% 22%, rgba(217,139,182,.16), transparent 70%),
    radial-gradient(50% 44% at 84% 74%, rgba(217,139,182,.12), transparent 72%);
}
body[data-brand="glysolid"] .bhero, body[data-brand="glysolid"] .phero {
  background: linear-gradient(135deg, rgba(224,67,56,.20), transparent 46%);
  border-top: 3px solid #e04338;
}
body[data-brand="kamill"] .bhero, body[data-brand="kamill"] .phero {
  background:
    repeating-linear-gradient(90deg, rgba(159,201,142,.045) 0 2px, transparent 2px 110px),
    radial-gradient(60% 50% at 50% 0%, rgba(159,201,142,.13), transparent 70%);
}
/* hub hero only (not product pages): chamomile flat-lay behind the centred copy.
   cover fills the hero edge-to-edge; the crop is pushed to 64% so the daisy
   clusters (which sit at the image's lower left/right) frame the sides while
   the emptier centre carries the text. A soft centre pool keeps the text crisp.
   NOTE: path is relative to assets/brands.css -> assets/brands/kamill/... */
body[data-brand="kamill"] .bhero {
  background:
    radial-gradient(44% 32% at 50% 44%, rgba(248,251,244,.5), rgba(248,251,244,0) 72%),
    url("brands/kamill/hero-bg.jpg?v=2") center 64%/cover no-repeat;
}
/* logo sits straight on the chamomile — no white card (the mark is a
   transparent PNG). Beats body.pdp-light .bhero__logo--pad (0,2,1). */
body[data-brand="kamill"] .bhero .bhero__logo--pad {
  background: none; box-shadow: none; padding: 0; border-radius: 0;
  filter: drop-shadow(0 2px 7px rgba(60,80,40,.22));
}
body[data-brand="man-zone"] .bhero, body[data-brand="man-zone"] .phero {
  background:
    repeating-linear-gradient(180deg, rgba(255,255,255,.025) 0 1px, transparent 1px 84px),
    linear-gradient(160deg, #10151b 0%, #0a0a0a 62%);
}
/* hub hero only: the barber-shot lifestyle photo behind the centred copy. The
   subject sits in the right 55% of the frame (face ~78% across), so the scrims
   below darken the centre-left where the logo and title sit and let him read
   out of the right side. Crop band already holds face + tin, so `cover` is safe
   across viewport ratios. Path is relative to assets/brands.css. */
body[data-brand="man-zone"] .bhero {
  background:
    linear-gradient(90deg, rgba(6,9,14,.94) 0%, rgba(6,9,14,.80) 34%, rgba(6,9,14,.30) 62%, rgba(6,9,14,.10) 100%),
    radial-gradient(46% 40% at 42% 46%, rgba(4,7,11,.82), rgba(4,7,11,0) 74%),
    linear-gradient(180deg, rgba(6,9,14,.75) 0%, rgba(6,9,14,0) 26%, rgba(6,9,14,0) 62%, rgba(6,9,14,.88) 100%),
    url("brands/man-zone/hero-bg.jpg?v=1") center 42%/cover no-repeat #0a0d12;
}
/* make the mark pop off the photograph: bigger, warmer card, real elevation */
body[data-brand="man-zone"] .bhero .bhero__logo--pad {
  height: 116px; padding: 18px 34px; border-radius: 18px;
  background: linear-gradient(160deg, #fffdf8, #efe9dc);
  box-shadow:
    0 2px 0 rgba(255,255,255,.9) inset,
    0 18px 44px rgba(0,0,0,.62),
    0 0 0 1px rgba(255,255,255,.10),
    0 0 46px rgba(143,183,217,.30);
}
body[data-brand="man-zone"] .bhero .bhero__title {
  text-shadow: 0 4px 26px rgba(0,0,0,.85), 0 1px 3px rgba(0,0,0,.6);
}
body[data-brand="man-zone"] .bhero .bhero__tag,
body[data-brand="man-zone"] .bhero .bhero__meta { text-shadow: 0 2px 14px rgba(0,0,0,.8); }
/* The subject owns the right half, so anchor the copy in the dark negative
   space on the left instead of centring it over his face. Mobile keeps the
   centred layout (its background is repositioned separately). */
@media (min-width: 761px) {
  body[data-brand="man-zone"] .bhero {
    align-items: flex-start; text-align: left;
    padding-left: clamp(2rem, 7vw, 6.5rem); padding-right: 42%;
  }
  body[data-brand="man-zone"] .bhero .bhero__tag { max-width: 26ch; }
  body[data-brand="man-zone"] .bhero .bhero__meta div { text-align: left; }
  body[data-brand="man-zone"] .bhero .bhero__scroll {
    left: clamp(2rem, 7vw, 6.5rem); transform: none;
  }
  body[data-brand="man-zone"] .bhero .bhero__scroll { animation-name: bob-left; }
  @keyframes bob-left { 50% { transform: translateY(8px); } }
}
@media (max-width: 760px) {
  /* on a phone the frame is much taller than the crop, so cover pushes the
     subject off-frame — pull the focal point right and lift the scrim */
  body[data-brand="man-zone"] .bhero {
    background:
      linear-gradient(180deg, rgba(6,9,14,.80) 0%, rgba(6,9,14,.42) 40%, rgba(6,9,14,.92) 100%),
      url("brands/man-zone/hero-bg.jpg?v=1") 72% 40%/cover no-repeat #0a0d12;
  }
  body[data-brand="man-zone"] .bhero .bhero__logo--pad { height: 84px; padding: 13px 24px; }
}
body[data-brand="shave-code"] .bhero, body[data-brand="shave-code"] .phero {
  background:
    repeating-linear-gradient(0deg,  rgba(127,210,200,.05) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(90deg, rgba(127,210,200,.05) 0 1px, transparent 1px 64px),
    radial-gradient(55% 55% at 50% 40%, rgba(127,210,200,.10), transparent 75%);
}
body[data-brand="trio-pro"] .bhero, body[data-brand="trio-pro"] .phero {
  /* soft peach glows — the old 18px diagonal stripes read as a rendering
     artifact at full-viewport size */
  background:
    radial-gradient(50% 45% at 70% 30%, rgba(240,168,110,.16), transparent 72%),
    radial-gradient(44% 40% at 14% 80%, rgba(240,168,110,.10), transparent 75%);
}
body[data-brand="vebix"] .bhero, body[data-brand="vebix"] .phero {
  background: radial-gradient(90% 60% at 50% 108%, rgba(126,166,224,.20), transparent 68%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.label {
  font-size: .72rem;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------------- nav ---------------- */
.bnav {
  position: absolute; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem 2.2rem;
  background: linear-gradient(rgba(10,10,10,.85), rgba(10,10,10,0));
}
.bnav__side { flex: 1; display: flex; gap: 1.8rem; font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; }
.bnav__side--r { justify-content: flex-end; }
.bnav__side a { opacity: .75; transition: opacity .25s; }
.bnav__side a:hover { opacity: 1; }
/* Logo slot sized to the brief's 180-220 x 45-55 box. The mark is 1.74:1, so it
   fits by HEIGHT (50px -> ~87px wide) and is centred in the slot; forcing it to
   200px wide would make it 115px tall and blow out the nav. */
.bnav__logo { display: inline-flex; align-items: center; justify-content: center; }
.bnav__logo img { width: 200px; height: auto; object-fit: contain;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,.55)); transition: opacity .25s; }
.bnav__logo:hover img { opacity: .85; }

/* ---------------- breadcrumbs ---------------- */
.crumbs { display: flex; gap: .6rem; align-items: center; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.crumbs a:hover { color: var(--text); }
.crumbs span.sep { opacity: .4; }
.crumbs .here { color: var(--brand); }

/* ---------------- brand hub hero ---------------- */
.bhero {
  min-height: 92vh;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; position: relative; overflow: hidden;
  padding: 7rem 1.5rem 4rem;
}
.bhero__glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 50% 10%, var(--brand-soft), transparent 70%),
    radial-gradient(45% 40% at 80% 90%, var(--brand-soft), transparent 70%);
  pointer-events: none;
}
.bhero__logo { height: 92px; width: auto; margin-bottom: 2.6rem; filter: drop-shadow(0 8px 30px rgba(0,0,0,.5)); }
.bhero__logo--pad { background: #f6f3ec; padding: 14px 26px; border-radius: 14px; }
.bhero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  line-height: 1.05;
  letter-spacing: var(--title-ls);
  text-transform: var(--title-tt);
}
.bhero__title em { font-style: normal; color: var(--brand); }
.bhero__tag { margin-top: 1.4rem; max-width: 560px; color: var(--muted); font-size: 1.02rem; line-height: 1.7; }
.bhero__meta { margin-top: 2.6rem; display: flex; gap: 2.8rem; }
.bhero__meta div { text-align: center; }
.bhero__meta b { display: block; font-size: 1.5rem; font-weight: 400; color: var(--brand); }
.bhero__meta span { font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.bhero__scroll { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); font-size: .65rem; letter-spacing: .4em; text-transform: uppercase; color: var(--muted); animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translate(-50%, 8px); } }

/* ---------------- split hero: copy left, full-bleed portrait right ----------------
   Opt-in per brand via HERO_SPLIT in build_brand_pages.py. The portrait bleeds
   off the top and right edges and dissolves leftward into the page ground, so
   there is no visible frame or seam anywhere. */
.bhero--split {
  --hero-ground: #0d0908;
  min-height: 100vh; height: 100vh;
  display: grid; grid-template-columns: 55% 45%;
  align-items: center; text-align: left;
  padding: 0; background: var(--hero-ground);
}
.bhero--split .bhero__glow { z-index: 1; }
.bhero--split .bhero__copy {
  position: relative; z-index: 3;
  padding-left: clamp(2rem, 8vw, 9rem); padding-right: 2rem;
  max-width: 42rem;
}
.bhero--split .bhero__logo {
  /* no card: the mark is a transparent PNG of red letterforms, so it sits
     straight on the dark ground. width-driven (height:auto) because the source
     is 180x100 and box-sizing is border-box globally — a fixed width AND
     height would stretch it. */
  width: 110px; height: auto;
  background: none; padding: 0; border-radius: 0; box-shadow: none;
  margin-bottom: 28px;
  /* lift it off the ground with its own halo instead of a white pill */
  filter: brightness(1.14) saturate(1.1)
          drop-shadow(0 3px 14px rgba(0,0,0,.6))
          drop-shadow(0 0 34px rgba(214,19,47,.32));
}
.bhero--split .bhero__title { font-size: clamp(2.8rem, 6vw, 5rem); }
.bhero--split .bhero__tag { margin-top: 1.3rem; max-width: 30rem; }
.bhero--split .bhero__meta { margin-top: 2.4rem; justify-content: flex-start; }
.bhero--split .bhero__meta div { text-align: left; }

/* the figure column — bleeds off top and right, zero radius */
.bhero--split .bhero__figure {
  position: absolute; inset: 0 0 0 55%; z-index: 2; overflow: hidden;
}
.bhero--split .bhero__portrait {
  position: absolute; inset: 0; display: block;
  background-image: var(--hero-portrait);
  background-size: cover; background-position: center;
  /* sit it in the brand palette: pull saturation, push warm oxblood */
  filter: saturate(.72) contrast(1.04) sepia(.16) hue-rotate(-14deg) brightness(.94);
  transform-origin: 60% 45%;
  animation: heroDrift 20s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes heroDrift { from { transform: scale(1); } to { transform: scale(1.05); } }
/* dissolve the left edge into the page — opaque at the seam, clear by ~35% */
.bhero--split .bhero__scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, var(--hero-ground) 0%, rgba(13,9,8,.72) 18%, rgba(13,9,8,0) 35%),
    linear-gradient(180deg, rgba(13,9,8,.55), rgba(13,9,8,0) 22%),
    linear-gradient(0deg, rgba(13,9,8,.55), rgba(13,9,8,0) 20%);
}

/* --- light variant: white ground + dark copy (Glysolid is red-on-white) --- */
.bhero--light { --hero-ground: #ffffff; }
/* beat the per-brand atmosphere rule `body[data-brand=glysolid] .bhero`
   (specificity 0,2,1) which otherwise paints its maroon gradient here */
body[data-brand] .bhero--light { background: #ffffff; border-top: 0; }
.bhero--light .bhero__title { color: #1a1512; }
.bhero--light .bhero__tag { color: #5a534c; }
.bhero--light .bhero__meta b { color: #d6132f; }        /* the brand red reads on white */
.bhero--light .bhero__meta span { color: #6b645c; }
.bhero--light .bhero__scroll { color: #8a8178; }
.bhero--light .bhero__logo {
  /* on white the dark-ground glow washes it out; a soft shadow is enough */
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.14));
}
.bhero--light .bhero__glow { display: none; }            /* pastel bloom only reads on dark */
/* dissolve the portrait's left edge (and top/bottom) into WHITE, not the dark band */
.bhero--light .bhero__scrim {
  background:
    linear-gradient(90deg, #fff 0%, rgba(255,255,255,.62) 15%, rgba(255,255,255,0) 40%),
    linear-gradient(180deg, rgba(255,255,255,.5), rgba(255,255,255,0) 16%),
    linear-gradient(0deg, rgba(255,255,255,.5), rgba(255,255,255,0) 16%);
}
.bhero--light .bhero__portrait { filter: contrast(1.02) brightness(1.0); }
/* the tex-overlay wash is tuned for dark; hide it on the light ground */
.bhero--light.bhero--tex-overlay .bhero__copy::before { display: none; }

/* staggered entrance */
.bhero--split .bhero__logo,
.bhero--split .bhero__title,
.bhero--split .bhero__tag,
.bhero--split .bhero__meta { animation: heroRise .9s cubic-bezier(.2,.7,.2,1) both; }
.bhero--split .bhero__logo  { animation-delay: .10s; }
.bhero--split .bhero__title { animation-delay: .22s; }
.bhero--split .bhero__tag   { animation-delay: .34s; }
.bhero--split .bhero__meta  { animation-delay: .46s; }
@keyframes heroRise { from { opacity: 0; transform: translateY(18px); } }

/* --- variant A: second image as a faint texture across the copy side --- */
.bhero--tex-overlay .bhero__copy::before {
  content: ''; position: absolute; inset: -20% -10% -20% -20%; z-index: -1;
  background-image: var(--hero-texture);
  background-size: cover; background-position: 30% center;
  opacity: .10; filter: saturate(.35) contrast(1.1);
  mask-image: radial-gradient(70% 60% at 40% 50%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 60% at 40% 50%, #000 20%, transparent 75%);
  pointer-events: none;
}

@media (max-width: 900px) {
  /* portrait becomes the full-bleed ground behind the copy — never stacked below */
  .bhero--split { grid-template-columns: 1fr; height: 100vh; min-height: 100vh; }
  .bhero--split .bhero__figure { inset: 0; }
  .bhero--split .bhero__scrim {
    background: linear-gradient(180deg, rgba(13,9,8,.72), rgba(13,9,8,.62) 45%, rgba(13,9,8,.86)),
                rgba(13,9,8,.65);
  }
  .bhero--split .bhero__copy {
    padding: 0 1.6rem; max-width: none; text-align: left;
  }
  .bhero--split .bhero__logo { width: 96px; height: auto; margin-bottom: 22px; }
  .bhero--tex-overlay .bhero__copy::before { display: none; }
  /* --- variant B: the second image is the mobile ground instead --- */
  .bhero--tex-mobile .bhero__portrait { background-image: var(--hero-texture); }
  /* light variant on mobile: the dark portrait is the full-bleed ground, so a
     strong white veil keeps the dark copy readable over it */
  .bhero--light .bhero__scrim {
    background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.8) 45%, rgba(255,255,255,.92)),
                rgba(255,255,255,.85);
  }
}

@media (prefers-reduced-motion: reduce) {
  .bhero--split .bhero__portrait { animation: none; }
  .bhero--split .bhero__logo,
  .bhero--split .bhero__title,
  .bhero--split .bhero__tag,
  .bhero--split .bhero__meta { animation: none; }
}

/* ---------------- intro strip ---------------- */
.bintro { padding: 6rem 2rem; border-top: 1px solid var(--border); }
.bintro__inner { max-width: 900px; margin: 0 auto; text-align: center; }
.bintro__inner p {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.6vw, 2rem);
  line-height: 1.55;
  color: var(--text);
}
.bintro__inner p em { font-style: normal; color: var(--brand); }

/* ---------------- product grid ---------------- */
.bgrid { padding: 4rem 2.2rem 7rem; max-width: 1400px; margin: 0 auto; }
.bgrid__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 2.8rem; border-bottom: 1px solid var(--border); padding-bottom: 1.2rem; }
.bgrid__head h2 { font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; letter-spacing: .04em; }
.bgrid__cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.4rem; }

/* category pages: cards are grouped under one small header per brand, so each
   brand's photography sits with its own instead of clashing across brands. */
.bgroup { margin-top: 2.6rem; }
.bgroup:first-of-type { margin-top: .4rem; }
.bgroup[hidden] { display: none; }
.bgroup__head {
  display: flex; align-items: center; gap: .8rem;
  margin: 0 0 1.1rem; padding-bottom: .7rem;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-body); font-weight: 400;
}
.bgroup__chip {
  flex: none; width: 54px; height: 32px; display: grid; place-items: center;
  border-radius: 7px; background: var(--chip-bg, #f3eee6); padding: 4px 7px;
}
.bgroup__logo { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; }
.bgroup__name { font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--text); }
.bgroup__count { margin-left: auto; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

.pcard {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .45s cubic-bezier(.2,.7,.2,1), border-color .45s;
  display: flex; flex-direction: column;
}
.pcard:hover { transform: translateY(-6px); border-color: var(--brand); }
/* position matters, same as .phero__frame: the toner card's .pcomposite is
   absolute inset:0 and must anchor HERE, not escape over the page */
.pcard__img { position: relative; aspect-ratio: 4/5; overflow: hidden; background: #f6f3ec; }
.pcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.pcard:hover .pcard__img img { transform: scale(1.05); }
.pcard__body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.pcard__name { font-family: var(--font-display); font-size: 1rem; line-height: 1.4; letter-spacing: .02em; }
.pcard__price { margin-top: auto; font-size: .82rem; color: var(--brand); letter-spacing: .12em; }
/* size-variant cards: one tile per product, priced from its cheapest size */
.pcard__from { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-right: .1rem; }
.pcard__sizes {
  margin-left: .55rem; padding: .12rem .5rem; border-radius: 999px;
  border: 1px solid var(--border); color: var(--muted);
  font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
}

/* ---------------- product page ---------------- */
.phero {
  min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  gap: 3rem; padding: 7.5rem 4vw 4rem; position: relative; overflow: hidden;
}
.phero__glow { position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(52% 58% at 72% 42%, var(--brand-soft), transparent 72%),
    radial-gradient(46% 50% at 12% 88%, var(--brand-soft), transparent 74%); }
.phero__copy { position: relative; z-index: 2; }
.phero__brandline { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.6rem; }
.phero__brandline img { height: 34px; width: auto; padding: 5px 10px; border-radius: 8px;
  background: var(--brand-plate, #f6f3ec); }
.phero__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 4.6vw, 3.6rem); line-height: 1.12; letter-spacing: var(--title-ls); text-transform: var(--title-tt); }
.phero__sub { margin-top: 1.3rem; color: var(--muted); font-size: 1.02rem; line-height: 1.75; max-width: 480px; }
.phero__pricewrap { margin-top: 2.4rem; display: flex; align-items: baseline; gap: 1.2rem; }
.phero__price { font-family: var(--font-display); font-size: 1.9rem; color: var(--brand); }
.phero__currency { font-size: .78rem; letter-spacing: .25em; text-transform: uppercase; color: var(--muted); }
.phero__cta {
  margin-top: 2.2rem; display: inline-flex; align-items: center; gap: .8rem;
  border: 1px solid var(--brand); color: var(--text);
  padding: .95rem 2.1rem; border-radius: var(--btn-radius);
  font-size: .78rem; letter-spacing: .28em; text-transform: uppercase;
  transition: background .35s, color .35s;
}
.phero__cta:hover { background: var(--brand); color: #0a0a0a; }
.phero__visual { position: relative; z-index: 2; display: flex; justify-content: center; }
.phero__frame {
  /* position matters: absolutely-positioned media inside (see .pcomposite)
     anchors here rather than escaping to .phero__visual */
  position: relative;
  width: min(440px, 88%); aspect-ratio: 4/5; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--stage, #f6f3ec); box-shadow: 0 40px 90px rgba(0,0,0,.55);
}
.phero__frame img { width: 100%; height: 100%; object-fit: cover; }

/* Products shot as full editorial scenes on a dark ground (auto-flagged by a
   dark --stage). Show the WHOLE photo with no crop and no letterbox: drop the
   fixed frame ratio so the frame shrink-wraps the image at its own proportions. */
body.pdp-photo .phero__frame {
  aspect-ratio: auto; height: auto;
  box-shadow: 0 46px 100px rgba(0,0,0,.6);
}
body.pdp-photo .phero__frame img {
  height: auto; object-fit: contain; display: block;
}

.psection { padding: 5.5rem 2rem; border-top: 1px solid var(--border); position: relative; }
.psection::before { content:''; position:absolute; top:-1px; left:0; width:90px; height:2px; background:var(--brand); opacity:.85; }
.psection__inner { max-width: 1050px; margin: 0 auto; }
.psection__label { margin-bottom: 2rem; color: var(--brand); }
.psection__lead { font-family: var(--font-display); font-size: clamp(1.25rem, 2.4vw, 1.8rem); line-height: 1.6; }
.psection__body { margin-top: 1.8rem; color: var(--muted); line-height: 1.9; font-size: 1rem; columns: 2; column-gap: 3rem; }
@media (max-width: 800px) { .psection__body { columns: 1; } }

/* related */
.related { padding: 4.5rem 2.2rem 7rem; max-width: 1400px; margin: 0 auto; }
.related h2 { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; margin-bottom: 2.2rem; }
.related .bgrid__cards { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

/* ---------------- brands index ---------------- */
/* top padding must clear the fixed .bnav, whose height grew with the 200px
   logo (~165px desktop, ~210px stacked mobile) */
.bindex { padding: 13rem 2.2rem 6rem; max-width: 1200px; margin: 0 auto; }
.bindex__title { font-family: var(--font-display); font-weight: 400; text-align: center; font-size: clamp(2.4rem, 6vw, 4.6rem); margin-bottom: 1.1rem; }
/* subtitle: was --muted at label size (dim + tiny). Lifted to 15px and a
   lighter warm grey (#c2beb5 ≈ 10:1 on the bg — clears 4.5). */
.bindex__sub {
  text-align: center; color: #c2beb5; margin-bottom: 4rem;
  font-size: 15px; letter-spacing: .28em; text-transform: uppercase;
}

/* ---- Our Brands: cream editorial grid (Sep 2026) ----
   The page runs on the light theme (body.pdp-light) so the seven lockups sit
   bare in their own colours - no plate, no knock-out. Every tile shows a white
   studio packshot multiplied onto a soft pool of the brand's plate colour, so
   the baked white ground dissolves and the seven read as one set. */
body.page-brands { --bg: #f6f2ea; }
body.page-brands .bindex { max-width: 1240px; }
body.page-brands .bindex__sub { color: var(--muted); }
body.page-brands .catchips--band { border-color: var(--border); }
/* the footer lockup is the dark-on-light file - it needs no white plate here */
body.page-brands .bfooter img { background: transparent; }

.bhouses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
@media (max-width: 960px) { .bhouses { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .bhouses { grid-template-columns: 1fr; } }

.bhouse {
  position: relative; display: flex; flex-direction: column;
  text-decoration: none; color: var(--text);
  background: #fff; border: 1px solid rgba(29,26,22,.08); border-radius: 26px;
  overflow: hidden;
  transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease, border-color .3s ease;
}
.bhouse:hover, .bhouse:focus-visible {
  transform: translateY(-5px);
  box-shadow: 0 34px 60px -24px rgba(60,45,30,.28), 0 10px 22px -12px rgba(60,45,30,.10);
  border-color: color-mix(in srgb, var(--brand-accent, #d98bb6) 50%, transparent);
}
.bhouse:focus-visible { outline: 2px solid var(--brand-red-cta); outline-offset: 3px; }

/* stage: soft pool of the brand plate, packshot multiplied onto it */
.bhouse__stage {
  position: relative; margin: .8rem .8rem 0; border-radius: 20px; overflow: hidden;
  aspect-ratio: 5 / 4;
  background:
    radial-gradient(90% 70% at 50% 100%, var(--brand-plate, #f0ece6) 0%, transparent 72%),
    linear-gradient(180deg, color-mix(in srgb, var(--brand-plate, #f0ece6) 34%, #fff), color-mix(in srgb, var(--brand-plate, #f0ece6) 80%, #fff));
}
.bhouse__photo {
  position: absolute; inset: 7% 12% 5%; width: 76%; height: 88%;
  object-fit: contain; object-position: center bottom;
  mix-blend-mode: multiply;
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.bhouse:hover .bhouse__photo { transform: translateY(-2%) scale(1.04); }
/* transparent cut-outs need no blend - give them a floor shadow instead */
.bhouse[data-photo="cutout"] .bhouse__photo {
  mix-blend-mode: normal; filter: drop-shadow(0 22px 20px rgba(30,20,10,.22));
}
/* lifestyle photography (Kamill's chamomile flat-lay) fills the stage edge to
   edge as a photograph - its pale studio ground would show as a panel if blended */
.bhouse[data-photo="cover"] .bhouse__photo {
  inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, center 40%);
  mix-blend-mode: normal;
}
.bhouse[data-photo="cover"] .bhouse__no { color: rgba(29,26,22,.55); }
.bhouse[data-tone="dark"] .bhouse__no { color: rgba(255,255,255,.72); }
/* a full-bleed photograph in the flagship wants more height than a packshot */
.bhouse--hero[data-photo="cover"] { min-height: 500px; }
.bhouse__no {
  position: absolute; top: 1rem; left: 1.1rem; z-index: 2;
  font-size: .64rem; letter-spacing: .3em; text-transform: uppercase;
  color: color-mix(in srgb, var(--pch-brand-deep, #5c2547) 70%, transparent);
}

.bhouse__body { padding: 1.4rem 1.6rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.bhouse__logo {
  display: block; height: 44px; width: auto; max-width: 150px; object-fit: contain; object-position: left center;
  margin-bottom: 1rem; transform-origin: left center; transform: scale(var(--logo-scale, 1));
}
.bhouse__name { font-family: var(--font-display); font-weight: 400; font-size: 1.45rem; line-height: 1.15; }
.bhouse__lead { margin-top: .45rem; color: var(--muted); font-size: .92rem; line-height: 1.5; max-width: 30ch; }
.bhouse__foot {
  margin-top: auto; padding-top: 1.3rem; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  font-size: .68rem; letter-spacing: .24em; text-transform: uppercase;
}
.bhouse__count { color: var(--muted); }
.bhouse__cta { color: var(--pch-brand-deep, var(--brand-red-cta)); white-space: nowrap; }
.bhouse__cta .arr { display: inline-block; margin-left: .35em; transition: transform .25s ease; }
.bhouse:hover .bhouse__cta .arr { transform: translateX(.3em); }

/* flagship: full row, copy left, stage right */
.bhouse--hero { grid-column: 1 / -1; flex-direction: row; min-height: 380px; }
.bhouse--hero .bhouse__stage { order: 2; flex: 0 0 46%; aspect-ratio: auto; margin: .8rem .8rem .8rem 0; }
.bhouse--hero .bhouse__photo { inset: 8% 14%; width: 72%; height: 84%; object-position: center; }
.bhouse--hero .bhouse__body { order: 1; flex: 1; justify-content: center; padding: 2.6rem 3rem; }
.bhouse--hero .bhouse__logo { height: 64px; max-width: 220px; margin-bottom: 1.6rem; }
.bhouse--hero .bhouse__name { font-size: clamp(1.9rem, 3vw, 2.5rem); }
.bhouse--hero .bhouse__lead { font-size: 1.02rem; max-width: 42ch; margin-top: .7rem; }
.bhouse--hero .bhouse__foot { margin-top: 2rem; justify-content: flex-start; gap: 2.2rem; }
@media (max-width: 700px) {
  .bhouse--hero { flex-direction: column; min-height: 0; }
  .bhouse--hero .bhouse__stage { order: 1; flex: none; aspect-ratio: 5 / 4; margin: .8rem .8rem 0; }
  .bhouse--hero .bhouse__body { order: 2; padding: 1.6rem 1.6rem 1.6rem; }
  .bhouse--hero .bhouse__logo { height: 50px; }
  /* the near-square hero photograph keeps its full frame when stacked */
  .bhouse--hero[data-photo="cover"] .bhouse__stage { aspect-ratio: 1 / 1; }
}

@media (prefers-reduced-motion: reduce) {
  .bhouse, .bhouse__photo, .bhouse__cta .arr { transition: none; }
  .bhouse:hover { transform: none; }
  .bhouse:hover .bhouse__photo { transform: none; }
}

/* header lockup: baked-in "PYRAMIDS COSMETICS BY MPG" is illegible at 54px.
   Scaled up — scoped to the brands page so no other page's nav changes. */
body.page-brands .bnav__logo img { width: 200px; height: auto; }
@media (max-width: 900px) { body.page-brands .bnav__logo img { width: 180px; height: auto; } }

/* ---------------- footer ---------------- */
.bfooter { border-top: 1px solid var(--border); padding: 3.5rem 2.2rem; text-align: center; }
.bfooter img { height: 50px; width: auto; margin: 0 auto 1.2rem; opacity: .92; }
.bfooter p { font-size: .72rem; letter-spacing: .25em; text-transform: uppercase; color: var(--muted); }

/* Back to the P Cosmetics homepage. Styled on the shared tokens, so it inverts
   correctly on the dark brand pages and on body.pdp-light without a second rule. */
.bfoot-home {
  display: inline-flex; align-items: center; gap: .55rem;
  margin-top: 1.6rem; padding: .8rem 1.7rem; min-height: 44px;   /* tap target */
  border: 1px solid var(--border); border-radius: 999px;
  font-size: .7rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--text); text-decoration: none;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.bfoot-home:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.bfoot-home:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.bfoot-home .arr { transition: translate .18s ease; }
.bfoot-home:hover .arr { translate: -4px 0; }
[dir="rtl"] .bfoot-home .arr { rotate: 180deg; }
[dir="rtl"] .bfoot-home:hover .arr { translate: 4px 0; }
@media (prefers-reduced-motion: reduce) { .bfoot-home, .bfoot-home .arr { transition: none; } }

/* ---------------- reveal animation ---------------- */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.rv.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .phero { grid-template-columns: 1fr; min-height: auto; padding-top: 8.5rem; text-align: center; }
  .phero__sub, .phero__brandline, .phero__pricewrap { margin-left: auto; margin-right: auto; justify-content: center; }
  .phero__visual { order: -1; margin-top: 1rem; }
  /* compact stacked nav: logo on top, links beneath — nothing hidden */
  .bindex { padding-top: 16rem; }
  .bnav { flex-direction: column; gap: .55rem; padding: .8rem 1rem .7rem;
          background: linear-gradient(rgba(10,10,10,.92), rgba(10,10,10,.55) 75%, rgba(10,10,10,0)); }
  .bnav__logo { order: -1; }
  .bnav__logo img { width: 180px; height: auto; }
  .bnav__side { flex: none; gap: 1.1rem; font-size: .68rem; letter-spacing: .16em; }
  .bhero { padding-top: 9rem; }
}


/* ============================================================
   Care & More — light, appetising product experience
   (median 75 EGP everyday range: bright packshots belong on a
   warm cream stage, not a luxury-dark one)
   ============================================================ */
body.pdp-light {
  --bg: #faf7f1;
  --surface: #ffffff;
  --surface-2: #f3eee6;
  --text: #1d1a16;
  --muted: #71695f;
  --border: rgba(29, 26, 22, .10);
}
body.pdp-light .bnav {
  background: linear-gradient(rgba(250,247,241,.95), rgba(250,247,241,.65) 70%, rgba(250,247,241,0));
}
body.pdp-light .bnav__logo img { filter: none; }
body.pdp-light .phero__frame { border: 1px solid var(--border); box-shadow: 0 30px 70px rgba(60,45,30,.16); }
body.pdp-light .phero__cta--wa { color: #fff !important; }
body.pdp-light .pcard { box-shadow: 0 6px 18px rgba(60,45,30,.05); }
body.pdp-light .pcard:hover { box-shadow: 0 18px 42px rgba(60,45,30,.14); }
body.pdp-light .bhero__logo--pad, body.pdp-light .bfooter img { background: #ffffff; }
body.pdp-light .bfilter { box-shadow: inset 0 1px 3px rgba(60,45,30,.05); }
@media (max-width: 900px) {
  body.pdp-light .bnav {
    background: linear-gradient(rgba(250,247,241,.97), rgba(250,247,241,.8) 75%, rgba(250,247,241,0));
  }
}

/* ---------- option rows: size + scent ---------- */
.opt-row { margin-top: 1.7rem; }
.opt-row .label { display: block; margin-bottom: .7rem; }
.opt-pills { display: flex; flex-wrap: wrap; gap: .6rem; }
.opt-pill {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .62rem 1.15rem; border: 1px solid var(--border); border-radius: 999px;
  font-size: .82rem; letter-spacing: .07em; color: var(--muted);
  transition: border-color .25s, color .25s, transform .25s, background .25s;
}
.opt-pill:hover { border-color: var(--brand); color: var(--text); transform: translateY(-1px); }
.opt-pill.is-active { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.opt-pill i { width: 13px; height: 13px; border-radius: 50%; display: inline-block; border: 1px solid rgba(0,0,0,.14); flex: none; }
.opt-pill .opt-price { font-size: .72rem; opacity: .8; }

/* ---------- trust row ---------- */
.trust-row { margin-top: 1.8rem; display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; }
.trust-row span {
  font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.trust-row b { color: var(--brand); font-weight: 400; margin-right: .35rem; }


/* per-brand tints for the light treatment */
body[data-brand="kamill"].pdp-light   { --bg: #f6faf1; }   /* chamomile daylight */
body[data-brand="trio-pro"].pdp-light { --bg: #fdf6ef; }   /* warm peach */
body[data-brand="vebix"].pdp-light    { --bg: #f3f7fc; }   /* clean sky */
body[data-brand="glysolid"].pdp-light { --bg: #ffffff; }   /* clean white, red-on-white */
body[data-brand="glysolid"].pdp-light .bnav { background: linear-gradient(rgba(255,255,255,.95), rgba(255,255,255,.6) 70%, rgba(255,255,255,0)); }
body[data-brand="kamill"].pdp-light .bnav   { background: linear-gradient(rgba(246,250,241,.95), rgba(246,250,241,.6) 70%, rgba(246,250,241,0)); }
body[data-brand="trio-pro"].pdp-light .bnav { background: linear-gradient(rgba(253,246,239,.95), rgba(253,246,239,.6) 70%, rgba(253,246,239,0)); }
body[data-brand="vebix"].pdp-light .bnav    { background: linear-gradient(rgba(243,247,252,.95), rgba(243,247,252,.6) 70%, rgba(243,247,252,0)); }


/* ---------- product media: seamless load, no packshot flash ---------- */
/* The frame shows the product's own stage tint while the video decodes,
   then the video fades in — no swap between two different images. */
video.pmedia { opacity: 0; transition: opacity .45s ease; }
video.pmedia.is-ready { opacity: 1; }
/* 22-23 Nov 2026: a video with a poster (the product photo) shows at once — otherwise a phone that
   blocks autoplay (low-power / data saver) never fires loadeddata and the product stays invisible */
video.pmedia[poster] { opacity: 1; }

/* coconut-video.mp4 ships with ~17 black columns baked into its right edge
   (generator artifact). A small scale from the left pushes them out of frame. */
video.pmedia--coconut-video { transform: scale(1.05); transform-origin: 30% center; }


/* ---------- composite media: video plate + brand / product mark ----------
   Used where a product has no video of its own but the brand has a mood
   plate worth showing (see COMPOSITES in build_brand_pages.py). The plate
   drifts slowly, a warm vignette gives the flat footage some depth, and the
   mark settles in once rather than sitting there from the first frame. */
.pcomposite { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; }

.pcomposite__plate {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
  transform: scale(1.03);
  transform-origin: 50% 62%;   /* the roses gather low — push into them, not the sky */
  will-change: transform;
}
/* .is-ready is what fades .pmedia up, so the drift starts with the reveal */
video.pmedia.pcomposite__plate.is-ready {
  animation: pc-drift 34s ease-in-out infinite alternate;
}
@keyframes pc-drift {
  from { transform: scale(1.03) translate3d(0, 0, 0); }
  to   { transform: scale(1.12) translate3d(-1.4%, -1.8%, 0); }
}

/* Multiply keeps the plate's own colour rather than greying it out. */
.pcomposite__veil {
  position: absolute; inset: 0; pointer-events: none; z-index: 2;
  mix-blend-mode: multiply;
  background:
    radial-gradient(118% 88% at 50% 44%, transparent 46%, rgba(74,38,50,.16) 100%),
    linear-gradient(to top, rgba(74,38,50,.15), transparent 40%);
}

.pcomposite__mark {
  position: absolute; left: 50%; top: var(--mark-top, 50%);
  height: var(--mark-size, 20%);
  transform: translate(-50%, -50%);
  z-index: 3; pointer-events: none;
  animation: pc-mark-in 1.6s cubic-bezier(.22, .61, .36, 1) .4s both;
}
.pcomposite__mark img {
  height: 100%; width: auto; display: block; object-fit: contain;
  filter: drop-shadow(0 10px 24px rgba(120, 80, 90, .24));
}
@keyframes pc-mark-in {
  from { opacity: 0; transform: translate(-50%, calc(-50% + 16px)) scale(.955); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* Deeper lift + a hairline rim, so the card reads as a lit object. */
.phero__frame--cine { box-shadow: 0 46px 100px rgba(60,45,30,.30), 0 10px 28px rgba(60,45,30,.14); }
.phero__frame--cine::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  pointer-events: none; z-index: 4;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.42), inset 0 0 70px rgba(74,38,50,.10);
}
body.pdp-light .phero__frame--cine { box-shadow: 0 40px 88px rgba(60,45,30,.22), 0 8px 22px rgba(60,45,30,.10); }

@media (prefers-reduced-motion: reduce) {
  video.pmedia.pcomposite__plate.is-ready { animation: none; }
  .pcomposite__mark { animation: none; }
}


/* ---------- product page CTAs ---------- */
.pcta-row { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 2.2rem; }
.pcta {
  flex: 1 1 190px; min-height: 56px; padding: 1rem 1.8rem;
  border-radius: var(--btn-radius); cursor: pointer;
  font-family: var(--font-body); font-size: .78rem;
  letter-spacing: .22em; text-transform: uppercase;
  transition: transform .2s ease, box-shadow .3s ease, background .3s ease, color .3s ease;
}
.pcta:active { transform: scale(.98); }
/* primary: solid brand colour */
.pcta--add { border: 1px solid var(--brand); background: var(--brand); color: #fff; }
.pcta--add:hover { box-shadow: 0 10px 28px var(--brand-soft); transform: translateY(-1px); }
/* secondary: outlined, fills on hover */
.pcta--buy { border: 1px solid var(--brand); background: transparent; color: var(--brand); }
.pcta--buy:hover { background: var(--brand); color: #fff; transform: translateY(-1px); }
/* light pages need dark text on the pale brand tints */
body.pdp-light .pcta--add, body.pdp-light .pcta--buy:hover { color: #fff; }
.pcta-link {
  display: inline-block; margin-top: 1.1rem;
  font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
  transition: color .25s;
}
.pcta-link:hover { color: var(--brand); }
@media (max-width: 900px) {
  .pcta-row { justify-content: center; }
  .pcta { flex: 1 1 100%; }
}

/* ------------------------------------------------------------------ shop by
   category — liquid-glass treatment. Chips, /shop/ tiles and the product-page
   pill carry a per-category accent as an inline --a custom property (set by
   the generator's CAT_ACCENT). Frosted layers + a blurred colour orb inside
   each tile give the "liquid glass" read on both dark and light themes. */
.phero__cat {
  margin-left: .9rem; padding: .38rem .85rem;
  border: 1px solid var(--border); border-radius: 999px;
  background: rgba(255,255,255,.06);
  -webkit-backdrop-filter: blur(10px) saturate(1.4); backdrop-filter: blur(10px) saturate(1.4);
  font-size: .64rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); white-space: nowrap;
  transition: color .3s, border-color .3s, box-shadow .3s;
}
.phero__cat:hover {
  color: var(--text);
  border-color: color-mix(in srgb, var(--a, var(--brand)) 65%, transparent);
  box-shadow: 0 6px 16px color-mix(in srgb, var(--a, var(--brand)) 25%, transparent);
}
body.pdp-light .phero__cat { background: rgba(255,255,255,.5); }

.catchips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.6rem; }
.catchip {
  position: relative; padding: .55rem 1.05rem; border-radius: 999px;
  background: linear-gradient(135deg, rgba(255,255,255,.10), rgba(255,255,255,.03));
  -webkit-backdrop-filter: blur(12px) saturate(1.5); backdrop-filter: blur(12px) saturate(1.5);
  border: 1px solid rgba(255,255,255,.14);
  color: var(--muted); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase;
  transition: color .3s, border-color .3s, background .3s, transform .3s, box-shadow .3s;
}
.catchip:hover {
  color: var(--text); transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--a, #fff) 60%, transparent);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--a, #000) 25%, transparent);
}
.catchip.is-active {
  color: #101014; background: var(--a, var(--text)); border-color: transparent;
  box-shadow: 0 8px 24px color-mix(in srgb, var(--a, #000) 40%, transparent);
}
body.pdp-light .catchip {
  background: linear-gradient(135deg, rgba(255,255,255,.7), rgba(255,255,255,.4));
  border-color: rgba(43,36,26,.14);
}
/* The active chip paints the category accent as its background. On light pages
   `body.pdp-light .catchip` (specificity 0-2-1) outranked `.catchip.is-active`
   (0-2-0), so the accent never applied and white text sat on a near-white
   gradient at 1:1 — invisible. Dark ink measures 4.58-8.70 across the ten
   category accents; white measures 2.18-4.15 and fails on every one. */
body.pdp-light .catchip.is-active {
  color: #101014;
  background: var(--a, var(--text));
  border-color: transparent;
}
/* The ALL chip carries no accent, so its active background falls back to
   --text — dark ink on the light theme — and the dark label vanished on it
   (Kamill hub, Nov 2026). Give that one chip light text instead. */
body.pdp-light .catchip--all.is-active { color: #fff; }

.cattiles { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); }
.cattile {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 1.15rem;
  padding: 1.15rem 1.4rem 1.15rem 1.15rem; border-radius: 20px;
  background: linear-gradient(150deg, rgba(255,255,255,.085), rgba(255,255,255,.025));
  -webkit-backdrop-filter: blur(14px) saturate(1.35); backdrop-filter: blur(14px) saturate(1.35);
  border: 1px solid rgba(255,255,255,.11);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10), 0 8px 24px rgba(0,0,0,.28);
  transition: transform .4s cubic-bezier(.2,.7,.2,1), border-color .35s, box-shadow .4s, background .35s;
}
/* a restrained accent wash behind the thumbnail — replaces the old full-tile
   blurred orb, which read as a smudge with nothing to anchor it */
.cattile::before {
  content: ""; position: absolute; left: -10px; top: 50%; width: 190px; height: 190px;
  transform: translateY(-50%); border-radius: 50%; z-index: 0; pointer-events: none;
  background: radial-gradient(circle, var(--a, #e63950), transparent 68%);
  filter: blur(34px); opacity: .30; transition: opacity .4s;
}
.cattile:hover::before { opacity: .48; }
.cattile > * { position: relative; z-index: 1; }
.cattile__thumb {
  flex: none; width: 96px; height: 96px; border-radius: 16px; overflow: hidden;
  background: #cfc7bc;   /* stone ground, in case a tile still falls back to a cut-out */
  box-shadow: 0 6px 16px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.14) inset;
  transition: transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .4s;
}
/* Nov 2026: tiles show the stone-studio packshots as real photos (cover, no
   cream chip, no multiply) — the same set the category pages use */
.cattile__thumb img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 56%; display: block;
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.cattile:hover .cattile__thumb img { transform: scale(1.07); }
.cattile:hover .cattile__thumb {
  transform: scale(1.04);
  box-shadow: 0 12px 26px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.2) inset,
              0 0 30px color-mix(in srgb, var(--a, #fff) 40%, transparent);
}
.cattile__body { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.cattile:hover {
  transform: translateY(-4px);
  background: linear-gradient(150deg, rgba(255,255,255,.12), rgba(255,255,255,.04));
  border-color: color-mix(in srgb, var(--a, #e63950) 50%, transparent);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 18px 40px color-mix(in srgb, var(--a, #000) 28%, transparent);
}
.cattile__name { font-family: var(--font-display, inherit); font-size: 1.2rem; color: var(--text); line-height: 1.25; }
.cattile__blurb { color: var(--muted); font-size: .8rem; line-height: 1.45; }
.cattile__n {
  align-self: flex-start; margin-top: .35rem;
  padding: .26rem .66rem; border-radius: 999px;
  font-size: .59rem; letter-spacing: .16em; text-transform: uppercase;
  color: color-mix(in srgb, var(--a, #fff) 62%, #fff);
  background: color-mix(in srgb, var(--a, #fff) 13%, transparent);
  border: 1px solid color-mix(in srgb, var(--a, #fff) 28%, transparent);
}
@media (max-width: 420px) {
  .cattiles { grid-template-columns: 1fr; }
  .cattile__thumb { width: 72px; height: 72px; }
  .cattile__name { font-size: 1.05rem; }
}
.bhero--cat { min-height: 46vh; }
.bgrid__empty { color: var(--muted); text-align: center; padding: 2.5rem 0; }
.bgrid__empty a { color: var(--brand); text-decoration: underline; }
@media (prefers-reduced-motion: reduce) {
  .cattile::before { animation: none; }
  .cattile::after { display: none; }
  .catchip, .cattile { transition: none; }
}
@media (max-width: 600px) {
  .phero__cat { margin-left: 0; margin-top: .6rem; }
  .phero__brandline { flex-wrap: wrap; }
}

/* category chip row used as a band on brand hubs / Brands index / Search */
.catchips--band {
  align-items: center; gap: .45rem;
  padding: 1rem 0 1.2rem; margin: 0 0 1.8rem;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.catchips__label {
  margin-right: .5rem; font-size: .64rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--muted); white-space: nowrap;
}
.catchip--all { border-style: dashed; }
@media (max-width: 700px) {
  .catchips--band {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .catchips--band::-webkit-scrollbar { display: none; }
  .catchips__label { position: sticky; left: 0; }
}

/* .bgrid__head is a nowrap flex row (h2 + crumbs); on a narrow phone the two
   together exceed the viewport and push the whole page into horizontal scroll.
   Pre-existing on the brand hubs; the category hubs use the same head. */
@media (max-width: 700px) {
  .bgrid__head { flex-wrap: wrap; gap: .5rem; align-items: flex-start; }
  .bgrid__head .crumbs { flex: 1 1 100%; }
}

/* ------------------------------------------------------------- utility bar
   FAQ / About Us / What's New + socials, above the main nav on every
   generated page. Transparent (seamless, like the homepage bar); colours come
   from --muted/--text so it inverts automatically on body.pdp-light pages. */
.pctop {
  position: absolute; top: 0; left: 0; right: 0; height: 38px; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(1rem, 3vw, 2.2rem);
  pointer-events: none; font-family: var(--font-body);
}
.pctop > * { pointer-events: auto; }
.pctop__links { display: flex; gap: clamp(1rem, 2.5vw, 1.9rem); }
.pctop__links a {
  font-size: .64rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--muted); opacity: .9; transition: color .25s, opacity .25s;
}
.pctop__links a:hover { color: var(--text); opacity: 1; }
.pctop__social { display: flex; gap: 1.05rem; align-items: center; }
.pctop__social a { color: var(--muted); display: flex; opacity: .9;
  transition: color .25s, opacity .25s, transform .25s; }
.pctop__social a:hover { color: var(--brand); opacity: 1; transform: translateY(-1px); }
.pctop__social svg { width: 15px; height: 15px; fill: currentColor; }
/* the main nav drops below the bar */
.bnav { top: 38px !important; }
@media (max-width: 640px) {
  .pctop { height: 34px; padding: 0 .9rem; }
  .pctop__links a { font-size: .55rem; letter-spacing: .13em; }
  .pctop__social { gap: .8rem; }
  .pctop__social svg { width: 14px; height: 14px; }
  .bnav { top: 34px !important; }
}
/* The consolidated .pch header is position:sticky, so it occupies flow and
   pushes content down by itself. The old .pctop/.bnav/.mega stack was fixed and
   needed --headh reserved here; keeping that reservation now leaves a ~243px
   dead gap under the header. */
.bindex { padding-top: 3.5rem; }
.bhero, .phero { padding-top: 2rem; }

/* ------------------------------------------------------- mega category menu
   Sephora-style: a category bar under the logo nav, each item opening a
   full-width dropdown. Opens on hover AND on keyboard focus (:focus-within),
   so it is reachable without a mouse. Collapses to a horizontal scroller on
   phones, where the panels are suppressed (the bar itself still links out). */
.mega {
  position: absolute; left: 0; right: 0; z-index: 55;
  top: var(--navh, 200px);   /* set from the measured .bnav by the footer script */
  background: rgba(10,10,10,.96);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,.07);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
body.pdp-light .mega { background: rgba(29,26,22,.96); }
.mega__bar {
  display: flex; justify-content: center; flex-wrap: nowrap;
  gap: clamp(.3rem, 1.1vw, 1.2rem);
  margin: 0 auto; padding: 0 1rem; list-style: none; max-width: 1400px;
}
.mega__item { position: static; }
.mega__top {
  display: block; padding: .78rem .35rem;
  font-size: .7rem; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(240,237,230,.82); white-space: nowrap;
  border-bottom: 2px solid transparent; transition: color .25s, border-color .25s;
}
.mega__item:hover .mega__top,
.mega__item:focus-within .mega__top { color: #fff; border-bottom-color: var(--brand-red-cta, #e63950); }
.mega__panel {
  position: absolute; left: 0; right: 0; top: 100%;
  background: #fbf8f2; color: #1d1a16;
  box-shadow: 0 22px 50px rgba(0,0,0,.4);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
}
.mega__item:hover .mega__panel,
.mega__item:focus-within .mega__panel { opacity: 1; visibility: visible; transform: none; }
.mega__panel-in {
  max-width: 1400px; margin: 0 auto; padding: 2rem clamp(1rem,4vw,3rem) 2.2rem;
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 2.4rem;
}
.mega__col { display: flex; flex-direction: column; gap: .55rem; min-width: 0; }
.mega__h {
  font-size: .64rem; letter-spacing: .22em; text-transform: uppercase;
  color: #8a7f6b; margin-bottom: .35rem;
}
.mega__col a { color: #3a342b; font-size: .9rem; line-height: 1.5; transition: color .2s; }
.mega__col a:hover { color: var(--brand-red-cta, #e63950); }
.mega__all {
  margin-top: .5rem; font-size: .66rem !important; letter-spacing: .18em;
  text-transform: uppercase; color: #8a6d3b !important;
}
.mega__blurb { color: #6f6553; font-size: .88rem; line-height: 1.6; margin: 0; }
.mega__col--note { border-left: 1px solid rgba(60,45,30,.12); padding-left: 2rem; }
/* Below ~1100px the 10 labels can't fit one row, so the bar becomes a
   horizontal scroller. Panels are suppressed there — an overflow container
   would clip them anyway, and tapping the category itself is the right
   behaviour on touch. */
@media (max-width: 1100px) {
  .mega__bar { justify-content: flex-start; overflow-x: auto;
    scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .mega__bar::-webkit-scrollbar { display: none; }
  .mega__top { font-size: .62rem; letter-spacing: .1em; padding: .7rem .32rem; }
  .mega__panel { display: none; }
}
@media (prefers-reduced-motion: reduce) { .mega__panel { transition: none; } }

/* brand pages fill the first screen under their own header (see header.css) */
body[data-brand] .bhero { min-height: calc(100svh - var(--pch-stack, 0px)); }
/* the split hero sets an explicit height, which min-height alone cannot override */
body[data-brand] .bhero--split { height: calc(100svh - var(--pch-stack, 0px)); min-height: calc(100svh - var(--pch-stack, 0px)); }

/* ============================================================
   Category hero with a product fan (Nov 2026): copy left, five
   stone packshots from the category fanned on the right, drifting
   gently; each card links to its product. --a = category accent.
   ============================================================ */
.chero { position: relative; overflow: hidden; min-height: 84vh; display: flex; align-items: center;
  background: radial-gradient(60% 70% at 78% 50%, color-mix(in srgb, var(--a, #e63950) 22%, transparent), transparent 70%), #0e0d0c; }
.chero__glow { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(40% 50% at 15% 85%, color-mix(in srgb, var(--a, #e63950) 12%, transparent), transparent 70%); }
.chero__in { position: relative; width: 100%; max-width: 1400px; margin: 0 auto; padding: 9rem 2.2rem 5rem;
  display: grid; grid-template-columns: minmax(300px, 46%) 1fr; align-items: center; gap: 2rem; }
.chero__copy { display: flex; flex-direction: column; gap: 1.1rem; align-items: flex-start; }
.chero__eye { font-size: .66rem; letter-spacing: .4em; text-transform: uppercase; color: var(--a, #e63950); margin: 0; }
.chero__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.8rem, 6.5vw, 5.4rem); line-height: 1; letter-spacing: -.02em; margin: 0; color: #fff; }
.chero__tag { color: rgba(255,255,255,.72); font-size: 1.05rem; line-height: 1.6; max-width: 44ch; margin: 0; }
.chero__meta { display: flex; gap: 2.2rem; margin-top: .4rem; }
.chero__meta b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 2rem; line-height: 1; color: #fff; }
.chero__meta span { display: block; font-size: .62rem; letter-spacing: .26em; text-transform: uppercase; color: var(--a, #e63950); margin-top: .4rem; }
.chero__brands { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .4rem; }
.chero__brand { display: inline-flex; align-items: center; height: 40px; padding: 0 .9rem; border-radius: 999px; background: rgba(255,255,255,.92);
  transition: transform .25s, box-shadow .25s; }
.chero__brand:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(0,0,0,.4); }
.chero__brand img { height: 18px; width: auto; max-width: 78px; object-fit: contain; display: block; }
.chero__cta { margin-top: .6rem; font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: #fff; text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.35); padding-bottom: .25rem; }
.chero__cta:hover { border-color: #fff; }
/* the photograph: full-bleed, anchored to the right, fading into the dark copy side */
.chero__media { position: absolute; inset: 0; left: 28%; overflow: hidden; }
.chero__media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); display: block;
  animation: chero-kb 22s ease-in-out infinite alternate; transform-origin: 60% 50%; }
.chero__media::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, #0e0d0c 0%, rgba(14,13,12,.92) 18%, rgba(14,13,12,.45) 48%, rgba(14,13,12,.05) 75%),
              linear-gradient(0deg, #0e0d0c 0%, rgba(14,13,12,0) 28%); }
@keyframes chero-kb { from { transform: scale(1); } to { transform: scale(1.08); } }
.chero__in { grid-template-columns: minmax(300px, 52%) 1fr; }
.chero__row { display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap; margin-top: .6rem; }
.chero__cta { margin-top: 0; }
.chero__picks { display: flex; }
.chero__pick { width: 52px; height: 52px; border-radius: 50%; overflow: hidden; border: 2px solid #0e0d0c; margin-left: -12px; background: #cfc7bc;
  box-shadow: 0 8px 18px rgba(0,0,0,.5); transition: transform .3s, border-color .3s; }
.chero__pick:first-child { margin-left: 0; }
.chero__pick img { width: 100%; height: 100%; object-fit: cover; display: block; }
.chero__pick:hover { transform: translateY(-4px) scale(1.08); border-color: var(--a, #e63950); z-index: 1; position: relative; }
@media (max-width: 1000px) { .chero__in { grid-template-columns: 1fr; padding: 7rem 1.4rem 3.5rem; } .chero { min-height: 70vh; }
  .chero__media { left: 0; } .chero__media::after { background: linear-gradient(0deg, #0e0d0c 0%, rgba(14,13,12,.85) 45%, rgba(14,13,12,.25) 100%); }
  .chero__copy { justify-content: flex-end; } }
@media (max-width: 560px) { .chero__title { font-size: 2.6rem; } .chero__meta { gap: 1.6rem; } }
@media (prefers-reduced-motion: reduce) { .chero__media img { animation: none; } .chero__pick, .chero__brand { transition: none; } }

/* Content-sheet copy (3 Nov 2026): English and Arabic versions sit side by side;
   the Arabic switch (i18n.js sets <html lang="ar">) picks one. */
html:not([lang="ar"]) .pc-ar{display:none!important}
html[lang="ar"] .pc-en{display:none!important}
.pc-ar{font-family:'Tajawal','Cairo',sans-serif;line-height:1.9;text-align:right}
.pcard__name .pc-ar,.phero__title .pc-ar{display:block;letter-spacing:0;line-height:1.45;text-transform:none}
html[lang="ar"] .pcard__name .pc-ar{display:block}
.psection__body.psheet{columns:1;max-width:64ch}   /* sheet copy never flows into columns */
.psheet__p{margin:0}
.psheet__list{margin:0;padding:0 0 0 1.1rem;display:grid;gap:.45rem}
.psheet__list[dir="rtl"]{padding:0 1.1rem 0 0}
.psheet__list li{line-height:1.6}
.phero__was{margin-left:.6rem;opacity:.55;font-size:.6em;text-decoration:line-through}

/* ---- Best sellers row on brand hubs (Nov 2026, from pcosmetics.net popularity) */
.bbest{padding:4.5rem 2rem 1rem}
.bbest__in{max-width:1340px;margin:0 auto}
.bbest__head{display:flex;align-items:flex-end;justify-content:space-between;gap:2rem;flex-wrap:wrap;margin-bottom:1.8rem}
.bbest__eyebrow{font-size:.68rem;letter-spacing:.38em;text-transform:uppercase;color:var(--brand-accent,#8a6d3b);margin:0 0 .6rem}
.bbest__title{font-family:var(--font-display);font-weight:400;font-size:clamp(1.8rem,3.4vw,2.8rem);line-height:1.1;margin:0}
.bbest__link{font-size:.72rem;letter-spacing:.2em;text-transform:uppercase;color:inherit;text-decoration:none;border-bottom:1px solid currentColor;padding-bottom:.2rem;opacity:.75}
.bbest__link:hover{opacity:1}
@media(max-width:640px){.bbest{padding:3rem 1rem .5rem}}

/* ---- customer review clips at the bottom of a brand hub (generic; vebix.css restyles its own) */
.vx-reviews{background:#141214;color:#fff;padding:5rem clamp(1.4rem,6vw,5rem) 5.5rem}
.vx-reviews__in{max-width:1200px;margin:0 auto}
.vx-reviews__eyebrow{font-size:.72rem;letter-spacing:.28em;text-transform:uppercase;color:var(--brand-accent,#c9a66b);margin:0 0 .8rem}
.vx-reviews__title{font-family:var(--font-display);font-weight:400;font-size:clamp(2rem,4.5vw,3.4rem);line-height:1.05;margin:0 0 2.4rem}
.vx-reviews__grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.4rem}
.vx-reviews__grid:has(.vx-review:nth-child(2):last-child){grid-template-columns:repeat(2,1fr);max-width:800px}
.vx-review{position:relative;margin:0;aspect-ratio:9/16;background:#000;overflow:hidden;border-radius:18px;cursor:pointer}
.vx-review video{width:100%;height:100%;object-fit:cover;display:block}
.vx-review__sound{position:absolute;left:.8rem;bottom:.8rem;z-index:2;display:inline-flex;align-items:center;gap:.45rem;padding:.5rem .85rem;border:0;border-radius:999px;
  background:rgba(20,18,20,.78);color:#fff;cursor:pointer;font-weight:700;font-size:.68rem;letter-spacing:.14em;text-transform:uppercase;backdrop-filter:blur(6px)}
.vx-review__sound svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.vx-review__sound svg .spk{fill:currentColor;stroke:none}
.vx-review__sound svg .on{display:none}
.vx-review.is-sound .vx-review__sound{background:var(--brand-accent,#c9a66b);color:#141214}
.vx-review.is-sound .vx-review__sound svg .on{display:block}
.vx-review.is-sound .vx-review__sound svg .off{display:none}
@media(max-width:820px){.vx-reviews__grid,.vx-reviews__grid:has(.vx-review:nth-child(2):last-child){grid-template-columns:1fr;max-width:420px}}
.vx-reviews__grid:has(.vx-review:nth-child(4)){grid-template-columns:repeat(4,1fr);gap:1.1rem}
@media(max-width:1000px){.vx-reviews__grid:has(.vx-review:nth-child(4)){grid-template-columns:repeat(2,1fr);max-width:800px}}
@media(max-width:820px){.vx-reviews__grid:has(.vx-review:nth-child(4)){grid-template-columns:1fr;max-width:420px}}

/* offer cards: struck-through old price before the offer price */
.pcard__was{text-decoration:line-through;opacity:.55;font-weight:400;margin-inline-end:.35rem}
.pcard__price--offer{color:#e63950}
.pcard__promo{display:inline-block;margin-top:.35rem;padding:.2rem .55rem;border-radius:999px;background:#e63950;color:#fff;font-size:.6rem;letter-spacing:.14em;text-transform:uppercase;font-weight:700}
.phero__promo{display:inline-block;margin-inline-start:.7rem;padding:.3rem .7rem;border-radius:999px;background:#e63950;color:#fff;font-size:.68rem;letter-spacing:.14em;text-transform:uppercase;font-weight:700;vertical-align:middle}

/* ---- product card: quick add, offer ribbon, brand, rating, stock (20 Nov 2026) ---- */
.pcard { position: relative; }
.pcard__add {
  position: absolute; top: .7rem; right: .7rem; z-index: 3;
  width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 0;
  display: grid; place-items: center; cursor: pointer;
  background: #fff; color: #1a1a1a; font: 300 1.7rem/1 system-ui, sans-serif;
  box-shadow: 0 4px 14px rgba(0,0,0,.18); transition: transform .25s, background .25s, color .25s;
}
.pcard__add:hover, .pcard__add:focus-visible { transform: scale(1.08); background: var(--brand); color: #fff; }
.pcard__brand { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pcard__off {
  align-self: flex-start; margin-left: -1.2rem; padding: .38rem 1.1rem .38rem 1.2rem;
  background: #c3274d; color: #fff; font-size: .78rem; font-weight: 600; letter-spacing: .04em;
  clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 50%, 100% 100%, 0 100%);
}
.pcard__rating, .phero__rating { display: flex; align-items: center; gap: .4rem; font-size: .78rem; color: var(--muted); }
.pcard__rating[hidden], .phero__rating[hidden], .pcard__stock[hidden] { display: none; }
.pc-stars { position: relative; display: inline-block; font-size: .95rem; line-height: 1; letter-spacing: .08em; color: #d9d3c7; }
.pc-stars::before { content: "\2605\2605\2605\2605\2605"; }
.pc-stars > i { position: absolute; inset: 0 auto 0 0; overflow: hidden; white-space: nowrap; color: #f2b01e; font-style: normal; }
.pc-stars > i::before { content: "\2605\2605\2605\2605\2605"; }
.phero__rating { margin-top: .9rem; color: var(--text); text-decoration: none; }
.phero__rating .pc-stars { font-size: 1.1rem; }
.pcard__price--offer .pcard__was { color: var(--muted); margin-right: .35rem; }
.pcard__stock { font-size: .76rem; color: #16884a; letter-spacing: .04em; }
.pcard__stock::before { content: "\25CF"; margin-right: .4rem; font-size: .6rem; vertical-align: middle; }
.pcard__stock.is-out { color: #b3261e; }

/* ---- product page: customer reviews ---- */
.previews { padding: 3.5rem 4vw; }
.previews[hidden] { display: none; }
.previews__inner { max-width: 880px; margin: 0 auto; }
.previews__summary { display: flex; align-items: center; gap: .8rem; margin: 1rem 0 1.6rem; font-size: .95rem; }
.previews__summary .pc-stars { font-size: 1.35rem; }
.previews__summary b { font-family: var(--font-display); font-size: 1.8rem; font-weight: 400; }
.previews__list { display: grid; gap: 1rem; margin-bottom: 2.2rem; }
.previews__item { padding: 1.1rem 1.3rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.previews__item header { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .8rem; margin-bottom: .5rem; font-size: .85rem; }
.previews__item header b { font-weight: 600; }
.previews__item header small { color: var(--muted); }
.previews__item p { line-height: 1.65; font-size: .95rem; }
.previews__badge { font-size: .7rem; color: #16884a; border: 1px solid currentColor; border-radius: 999px; padding: .05rem .5rem; }
.previews__empty { color: var(--muted); font-size: .92rem; }
.previews__form { display: grid; gap: .8rem; max-width: 560px; }
.previews__form h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.3rem; }
.previews__form input, .previews__form textarea {
  width: 100%; padding: .8rem 1rem; border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface); color: var(--text); font: inherit; font-size: .95rem;
}
.previews__form .pcta { justify-self: start; }
.previews__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.previews__stars { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: .15rem; }
.previews__stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.previews__stars label { cursor: pointer; font-size: 1.9rem; line-height: 1; color: #d9d3c7; transition: color .15s; }
.previews__stars label:hover, .previews__stars label:hover ~ label,
.previews__stars input:checked + span, .previews__stars label:has(input:checked) ~ label { color: #f2b01e; }
.previews__stars label:has(input:checked) { color: #f2b01e; }
.previews__stars label:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.previews__msg { font-size: .9rem; min-height: 1.2em; }
.previews__msg.is-ok { color: #16884a; } .previews__msg.is-err { color: #b3261e; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- bigger, easier-to-read card text on every brand page (Mo, 20 Nov 2026) ---- */
.pcard__body { padding: 1.2rem 1.3rem 1.4rem; gap: .55rem; }
.pcard__brand { font-size: .82rem; letter-spacing: .1em; }
.pcard__name { font-size: 1.2rem; line-height: 1.4; }
.pcard__name .pc-ar { font-size: 1.22rem; line-height: 1.5; }
.pcard__price { font-size: 1.12rem; font-weight: 600; letter-spacing: .04em; }
.pcard__price .pcard__was { font-size: .95rem; font-weight: 400; }
.pcard__from { font-size: .8rem; letter-spacing: .08em; }
.pcard__sizes { font-size: .74rem; letter-spacing: .06em; }
.pcard__off { font-size: .95rem; padding: .42rem 1.15rem .42rem 1.3rem; margin-left: -1.3rem; }
.pcard__off .pc-ar { line-height: 1.3; text-align: inherit; }
.pcard__stock { font-size: .9rem; }
.pcard__rating { font-size: .88rem; }
.pcard__promo { font-size: .85rem; }
/* RTL: ribbon hangs off the right edge and points left */
html[lang="ar"] .pcard__off, [dir="rtl"] .pcard__off {
  margin-left: 0; margin-right: -1.3rem; padding: .42rem 1.3rem .42rem 1.15rem;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 8px 50%);
}
@media (max-width: 600px) {
  .pcard__body { padding: .95rem 1rem 1.1rem; }
  .pcard__name { font-size: 1.05rem; }
  .pcard__name .pc-ar { font-size: 1.08rem; }
  .pcard__price { font-size: 1rem; }
  .pcard__off { margin-left: -1rem; font-size: .85rem; }
  html[lang="ar"] .pcard__off { margin-left: 0; margin-right: -1rem; }
}
/* the same bigger sizes on the brands with their own card styling */
html body[data-brand="care-more"] .pcard__name, html body[data-brand="vebix"] .pcard__name { font-size: 1.2rem; }
html body[data-brand="care-more"] .pcard__price, html body[data-brand="vebix"] .pcard__price { font-size: 1.15rem; }
@media (max-width: 600px) {
  html body[data-brand="care-more"] .pcard__name, html body[data-brand="vebix"] .pcard__name { font-size: 1.05rem; }
  html body[data-brand="care-more"] .pcard__price, html body[data-brand="vebix"] .pcard__price { font-size: 1rem; }
}
/* prices much bigger (Mo, 20 Nov 2026: "the font is really small of the prices") */
html body .pcard__price, html body[data-brand] .pcard__price { font-size: 1.55rem; font-weight: 700; letter-spacing: .01em; line-height: 1.25; }
html body .pcard__price .pcard__was { font-size: 1.05rem; font-weight: 500; }
html body .pcard__from { font-size: .9rem; font-weight: 500; }
html body .pcard__sizes { font-size: .8rem; vertical-align: middle; }
@media (max-width: 600px) {
  html body .pcard__price, html body[data-brand] .pcard__price { font-size: 1.3rem; }
  html body .pcard__price .pcard__was { font-size: .92rem; }
}
/* "Coming soon" products (Trio Pro deo creams, 23 Nov 2026) */
.pcard__soon{position:absolute;top:.7rem;right:.7rem;z-index:3;padding:.4rem .85rem;border-radius:999px;background:#1f1a17;color:#fff;font-size:.8rem;font-weight:600;letter-spacing:.04em}
html[lang="ar"] .pcard__soon{right:auto;left:.7rem}
.pcta--soon{opacity:.75;cursor:not-allowed;background:#1f1a17!important;color:#fff!important;border-color:#1f1a17!important}
/* Trio Pro team copy (29 Nov 2026): bilingual spans keep the line height and alignment of their block */
.tph__title .pc-ar,.tph__pos .pc-ar,.tph__sub .pc-ar,.tph__proof .pc-ar,.tpsel .pc-ar,.tpcat__txt .pc-ar,.tpwhy .pc-ar,.catchip .pc-ar,.tpstory .pc-ar,.bfoot-home .pc-ar,.pch__nav .pc-ar,.bintro .pc-ar{line-height:inherit;text-align:inherit}
.tph__title .pc-ar{line-height:1.25}
