/* تجهيز صالونات — store styles (Cairo, plum + gold, white surfaces) */
:root {
  --ink: #1e1a21;
  --muted: #6e6672;
  --line: #e7e2e6;
  --bg: #ffffff;
  --soft: #f6f3f5;
  --primary: #4a2a4e;
  --primary-dk: #3a1f3d;
  --primary-lt: #f1e9f1;
  --accent: #b4884a;
  --wa: #1f7a4d;
  --wa-dk: #18633e;

  --font: "Cairo", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 12px;
  --shadow: 0 10px 30px -12px rgba(30, 26, 33, .18);
  --hdr: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr) + 16px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.8 var(--font); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.muted { color: var(--muted); }
.skip { position: absolute; top: -60px; inset-inline-start: 12px; z-index: 100; background: var(--bg); padding: 8px 14px; border-radius: 8px; box-shadow: var(--shadow); }
.skip:focus { top: 12px; }
.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

h1, h2, h3 { line-height: 1.35; margin: 0; }
.title-xl { font-size: clamp(30px, 4.4vw, 48px); font-weight: 800; }
.title-lg { font-size: clamp(24px, 2.8vw, 32px); font-weight: 700; }
.title-md { font-size: 19px; font-weight: 700; }
.lead { font-size: clamp(16px, 1.5vw, 18px); color: var(--muted); margin: 14px 0 0; max-width: 62ch; }
.kicker { display: inline-block; font-size: 14px; font-weight: 600; color: var(--accent); margin-bottom: 8px; }

.section { padding-block: clamp(48px, 7vw, 88px); }
.section--soft { background: var(--soft); }
.section__head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.section__head .lead { margin-top: 6px; }
.textlink { font-weight: 600; color: var(--primary); text-decoration: none; white-space: nowrap; }
.textlink:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 10px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap;
  transition: background .2s, border-color .2s, color .2s;
}
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-dk); }
.btn--outline { border-color: var(--line); background: var(--bg); color: var(--ink); }
.btn--outline:hover { border-color: var(--primary); color: var(--primary); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: var(--wa-dk); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn--block { flex: 1; }
.wa-ico { width: 18px; height: 18px; fill: currentColor; flex: none; }

/* ---------- header ---------- */
.notice { background: var(--primary); color: #fff; font-size: 13px; text-align: center; padding: 7px var(--gutter); }
.hdr { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
.hdr__in { display: flex; align-items: center; gap: 28px; height: var(--hdr); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo__img { width: 50px; height: auto; flex: none; }
.logo__name { font-weight: 800; font-size: 20px; line-height: 1.1; }
.logo__name small { display: block; font-size: 12px; font-weight: 500; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 8px;
  border: 0; background: none; text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink);
}
.nav__link:hover, .nav__link[aria-expanded="true"] { background: var(--soft); }
.nav__link.is-current { color: var(--primary); }
.nav__link .chev { width: 14px; height: 14px; transition: transform .2s; }
.nav__link[aria-expanded="true"] .chev { transform: rotate(180deg); }
.hdr__end { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); place-items: center; }

.mega {
  position: absolute; inset-inline: 0; top: 100%;
  background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
}
.mega__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding-block: 18px 22px; }
.mega__item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; text-decoration: none; }
.mega__item:hover { background: var(--soft); }
.mega__item .icon { color: var(--primary); }
.mega__item b { display: block; font-size: 15px; }
.mega__item small { display: block; font-size: 12px; color: var(--muted); }

.drawer { position: fixed; inset: 0; z-index: 60; }
.drawer__bg { position: absolute; inset: 0; background: rgba(30, 26, 33, .45); }
.drawer__panel {
  position: absolute; inset-block: 0; inset-inline-start: 0; width: min(86vw, 340px);
  background: var(--bg); padding: 18px; overflow-y: auto; box-shadow: var(--shadow);
}
.drawer__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.drawer__close { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); font-size: 22px; line-height: 1; }
.drawer h3 { font-size: 13px; color: var(--muted); font-weight: 600; margin: 18px 0 6px; }
.drawer a { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-radius: 8px; text-decoration: none; font-weight: 600; }
.drawer a:hover { background: var(--soft); }
.drawer a .icon { color: var(--primary); width: 22px; height: 22px; }

/* ---------- breadcrumb ---------- */
.crumbs { font-size: 14px; color: var(--muted); padding-top: 22px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.crumbs li + li::before { content: "‹"; margin-inline-end: 6px; color: #b5aeb8; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--primary); }

/* ---------- hero (home) ---------- */
.hero { background: linear-gradient(180deg, var(--soft), var(--bg)); border-bottom: 1px solid var(--line); }
.hero__in { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: center; padding-block: clamp(40px, 6vw, 80px); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__img { border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 3.4; background: var(--soft); box-shadow: var(--shadow); }
.hero__img img { width: 100%; height: 100%; object-fit: cover; }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); margin-top: -1px; }
.facts li { list-style: none; display: flex; gap: 12px; align-items: flex-start; padding: 18px 20px; }
.facts li + li { border-inline-start: 1px solid var(--line); }
.facts .icon { color: var(--accent); margin-top: 3px; }
.facts b { display: block; font-size: 15px; }
.facts span { font-size: 13px; color: var(--muted); line-height: 1.6; }
.facts-wrap { padding: 0; margin: -28px auto 0; position: relative; z-index: 2; }
.facts-wrap .facts { box-shadow: var(--shadow); }

/* ---------- category cards ---------- */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; list-style: none; margin: 0; padding: 0; }
.cat {
  display: flex; flex-direction: column; gap: 12px; height: 100%;
  padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg);
  text-decoration: none; transition: border-color .2s, box-shadow .2s, transform .2s;
}
.cat:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-2px); }
.cat__ico { width: 48px; height: 48px; border-radius: 12px; background: var(--primary-lt); color: var(--primary); display: grid; place-items: center; }
.cat__ico .icon { width: 26px; height: 26px; }
.cat h3 { font-size: 17px; font-weight: 700; }
.cat p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.7; flex: 1; }
.cat__meta { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.cat__count { font-weight: 700; color: var(--primary); }
/* homepage cards: cover photo bleeds to the card edges */
.cat--img { padding: 0 0 16px; overflow: hidden; gap: 10px; }
.cat--img > :not(.cat__img) { margin-inline: 18px; }
.cat__img { display: block; aspect-ratio: 4 / 3; background: var(--soft); overflow: hidden; }
.cat__img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.cat--img:hover .cat__img img { transform: scale(1.04); }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--soft); color: var(--muted); }
.badge--gold { background: #f6eedf; color: #8a6531; }

/* ---------- product cards ---------- */
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pcard { height: 100%; }
.pcard__btn {
  display: flex; flex-direction: column; width: 100%; height: 100%; padding: 0; text-align: start;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.pcard__btn:hover { border-color: #cfc5cd; box-shadow: var(--shadow); }
.pcard__img { position: relative; aspect-ratio: 1; background: var(--soft); }
.pcard__img img { width: 100%; height: 100%; object-fit: cover; }
.pcard__img .badge { position: absolute; top: 10px; inset-inline-start: 10px; background: rgba(255, 255, 255, .95); color: var(--primary); box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }
.pcard__body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1; }
.pcard__tier { font-size: 12px; color: var(--accent); font-weight: 600; }
.pcard__name { font-size: 15px; font-weight: 700; line-height: 1.55; }
.pcard__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 6px; }
.pcard__price { font-size: 13px; color: var(--muted); }
.pcard__price b { font-size: 19px; color: var(--ink); font-weight: 800; }
.dots { display: flex; align-items: center; gap: 3px; }
.dots i { width: 13px; height: 13px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.dots i.conic { background: conic-gradient(#e8b4bd, #dcb43f, #3e5f8a, #3f6b4e, #e8b4bd); }
.dots span { font-size: 12px; color: var(--muted); margin-inline-start: 3px; }

/* ---------- category page ---------- */
.cat-head { padding-block: 18px 30px; border-bottom: 1px solid var(--line); }
.cat-head__row { display: flex; gap: 18px; align-items: flex-start; }
.cat-head .cat__ico { width: 56px; height: 56px; flex: none; }
.tips { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 16px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
.tips li { display: flex; gap: 8px; }
.tips li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-top: 10px; flex: none; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; padding-block: 18px; }
.toolbar__group { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.toolbar__label { font-size: 13px; color: var(--muted); margin-inline-end: 4px; }
.chip { min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 7px; }
.chip:hover { border-color: var(--primary); }
.chip.is-on { background: var(--primary); border-color: var(--primary); color: #fff; }
.chip i { width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.toolbar__sort { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.toolbar__sort select { min-height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); padding: 0 12px; color: var(--ink); }
.count { font-size: 14px; color: var(--muted); margin: 0 0 16px; }

.empty { text-align: center; padding: clamp(40px, 7vw, 80px) 20px; border: 1px dashed #d8cfd6; border-radius: 16px; background: var(--soft); margin-block: 28px; }
.empty .cat__ico { margin: 0 auto 16px; width: 64px; height: 64px; }
.empty .cat__ico .icon { width: 32px; height: 32px; }
.empty p { max-width: 52ch; margin: 10px auto 22px; color: var(--muted); }
.empty__cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }

/* ---------- packages ---------- */
.pkgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pkg { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: var(--bg); display: flex; flex-direction: column; gap: 10px; }
.pkg ul { margin: 0; padding-inline-start: 18px; color: var(--muted); font-size: 14px; flex: 1; }
.pkg .btn { margin-top: 8px; }

/* ---------- steps / includes / why ---------- */
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.steps li { counter-increment: s; padding: 22px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 700; margin-bottom: 12px; }
.steps--3 { grid-template-columns: repeat(3, 1fr); }
.how__cta { margin-top: 20px; }
.steps h3 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.steps p { margin: 0; font-size: 14px; color: var(--muted); }
.includes { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; margin-top: 16px; }
.includes > div { border-radius: var(--radius); padding: 20px 22px; background: var(--bg); border: 1px solid var(--line); }
.includes h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.includes ul { margin: 0; padding-inline-start: 18px; color: var(--muted); font-size: 14px; }
.why { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; list-style: none; margin: 0; padding: 0; }
.why li { padding-top: 14px; border-top: 2px solid var(--accent); }
.why b { display: block; font-size: 16px; margin-bottom: 4px; }
.why span { font-size: 14px; color: var(--muted); }

/* ---------- faq ---------- */
.faq { display: grid; grid-template-columns: 1fr 2fr; gap: 32px; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--primary); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 8px 0 0; color: var(--muted); }

/* ---------- cta + footer ---------- */
.cta { background: var(--primary); color: #fff; border-radius: 18px; padding: clamp(28px, 4vw, 44px); display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.cta p { margin: 6px 0 0; color: rgba(255, 255, 255, .8); }
.foot { background: #1b1720; color: rgba(255, 255, 255, .78); font-size: 14px; margin-top: clamp(48px, 7vw, 88px); }
.foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; padding-block: 44px 28px; }
.foot h3 { color: #fff; font-size: 15px; margin-bottom: 10px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot a { text-decoration: none; }
.foot a:hover { color: #fff; }
.foot .logo__name { color: #fff; }
.foot__logo { width: 130px; height: auto; margin-bottom: 12px; }
.foot .logo__name small { color: rgba(255, 255, 255, .6); }
.foot__bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-block: 16px; font-size: 13px; color: rgba(255, 255, 255, .55); }

/* ---------- product sheet ---------- */
.sheet { width: min(1080px, 100% - 32px); max-height: min(92vh, 880px); padding: 0; border: 0; border-radius: 16px; background: var(--bg); color: var(--ink); box-shadow: 0 30px 90px -20px rgba(30, 26, 33, .4); }
.sheet::backdrop { background: rgba(30, 26, 33, .55); }
.sheet__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.sheet__in > * { min-width: 0; }
.sheet__bar { display: contents; }
.sheet__close { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 3; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); font-size: 22px; line-height: 1; }
/* Selected-option strip: phone layout only (see the 900px media query). */
.peek { display: none; }
.sheet__media { padding: 24px; background: var(--soft); position: sticky; top: 0; align-self: start; }
/* Most supplier photos are 800 px: keep the frame near that size so they stay sharp,
   and never stretch a smaller photo past its real size (scale-down). */
.sheet__img { aspect-ratio: 1; max-width: 460px; margin-inline: auto; border-radius: 12px; overflow: hidden; background: #fff; }
.sheet__img img { width: 100%; height: 100%; object-fit: scale-down; }
.thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 12px 2px 4px; }
.thumbs button { flex: none; width: 62px; height: 62px; padding: 0; border-radius: 8px; overflow: hidden; border: 2px solid transparent; background: #fff; }
.thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.thumbs button[aria-current="true"] { border-color: var(--primary); }
.sheet__info { padding: 26px 28px 28px; overflow-y: auto; max-height: min(92vh, 880px); }
.sheet__title { font-size: clamp(21px, 2.2vw, 26px); font-weight: 800; padding-inline-end: 44px; }
.sheet__en { margin: 2px 0 14px; color: var(--muted); font-size: 14px; text-align: right; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 14px 0; border-block: 1px solid var(--line); margin-bottom: 16px; }
.price__num { font-size: 32px; font-weight: 800; }
.price__note { font-size: 13px; color: var(--muted); }
.options { border: 0; padding: 0; margin: 0 0 16px; }
.options legend { font-weight: 700; margin-bottom: 8px; }
.options__search { width: 100%; min-height: 42px; border-radius: 10px; border: 1px solid var(--line); padding: 0 12px; margin-bottom: 8px; background: var(--soft); }
.options__list { display: grid; gap: 6px; max-height: 290px; overflow-y: auto; }
.opt { position: relative; display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 12px; padding: 6px 12px 6px 6px; border-radius: 10px; border: 1px solid var(--line); cursor: pointer; }
.opt:hover { border-color: #cfc5cd; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt:has(input:checked) { border-color: var(--primary); background: var(--primary-lt); }
.opt:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.opt__img { width: 46px; height: 46px; border-radius: 8px; overflow: hidden; background: var(--soft); }
.opt__img img { width: 100%; height: 100%; object-fit: cover; }
.opt__name { font-size: 14px; line-height: 1.55; }
.opt__price { font-weight: 700; white-space: nowrap; font-size: 15px; }
.order { display: flex; gap: 10px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; }
.qty button { width: 42px; height: 46px; border: 0; background: none; font-size: 20px; }
.qty output { min-width: 32px; text-align: center; font-weight: 700; }
.order__total { margin: 8px 0 18px; font-size: 14px; color: var(--muted); min-height: 1.5em; }
.sheet__desc p { margin: 0 0 8px; }
.sheet__desc ul { margin: 0 0 12px; padding-inline-start: 20px; }
.sheet__sub { margin: 4px 0 6px; font-size: 15px; font-weight: 700; }
.specs { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 0 0 16px; padding: 14px 16px; background: var(--soft); border-radius: 10px; font-size: 14px; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 600; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--primary); font-weight: 600; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .cats { grid-template-columns: repeat(3, 1fr); }
  .why { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .nav, .hdr__end .btn--wa { display: none; }
  .menu-btn { display: grid; }
  .hero__in { grid-template-columns: 1fr; }
  .hero__img { aspect-ratio: 16 / 10; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts li:nth-child(3) { border-inline-start: 0; }
  .facts li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps--3 { grid-template-columns: 1fr; }
  .pkgs, .faq, .includes { grid-template-columns: 1fr; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .sheet__in { grid-template-columns: minmax(0, 1fr); }
  .sheet__media { position: static; padding: 16px; }
  .sheet__img { max-width: 420px; }
  .sheet__info { max-height: none; padding: 20px; }
  .sheet { overflow-y: auto; }
  /* One column: the sheet itself scrolls, so pin the close button and the selected-option
     strip to its top edge. The bar takes no space; its children overlay the content. */
  .sheet__bar { display: block; position: sticky; top: 0; z-index: 4; height: 0; pointer-events: none; }
  .sheet__bar > * { pointer-events: auto; }
  /* The pinned preview mirrors the hero photo (same frame, same soft background) so the
     photo reads as having stuck to the top; a compact caption carries the option and price. */
  .peek {
    position: absolute; top: 0; inset-inline: 0; display: block; width: 100%;
    padding: 10px 16px 8px; text-align: start; border: 0; border-bottom: 1px solid var(--line);
    background: rgba(246, 243, 245, .97); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 18px 36px -22px rgba(30, 26, 33, .45); color: var(--ink); font: inherit; cursor: pointer;
    transform: translateY(-14px); opacity: 0; pointer-events: none;
    transition: transform .22s cubic-bezier(.2, .7, .2, 1), opacity .18s;
  }
  .peek.is-on { transform: none; opacity: 1; pointer-events: auto; }
  .peek__img { position: relative; display: block; width: min(100%, 38vh); aspect-ratio: 1; margin-inline: auto; border-radius: 12px; overflow: hidden; background: #fff; }
  .peek__img img { display: block; width: 100%; height: 100%; object-fit: scale-down; }
  .peek__hint {
    position: absolute; bottom: 10px; inset-inline-end: 10px; padding: 3px 10px; border-radius: 999px;
    background: rgba(255, 255, 255, .92); border: 1px solid var(--line); font-size: 12px; font-weight: 600; color: var(--primary);
  }
  .peek__txt { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 7px; min-width: 0; }
  .peek__name { font-size: 13px; line-height: 1.45; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .peek__price { font-size: 15px; font-weight: 800; white-space: nowrap; }
}
@media (max-width: 640px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cat { padding: 16px; }
  .cat--img { padding: 0 0 12px; gap: 8px; }
  .cat--img > :not(.cat__img) { margin-inline: 12px; }
  .cat--img h3 { font-size: 15px; }
  .facts li { flex-direction: column; gap: 6px; padding: 14px 16px; }
  .facts .icon { margin-top: 0; }
  .facts b { font-size: 14px; }
  .cat p { display: none; }
  .why { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .pcard__body { padding: 10px 12px 12px; }
  .pcard__name { font-size: 14px; }
  .pcard__price b { font-size: 17px; }
  .pcard__foot { flex-direction: column; align-items: flex-start; }
  .toolbar { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .toolbar::-webkit-scrollbar { display: none; }
  .toolbar__group { flex-wrap: nowrap; }
  .chip { white-space: nowrap; }
  .toolbar__label { display: none; }
  .logo__name small { display: none; }
  .foot__grid { grid-template-columns: 1fr; }
  .sheet { width: 100%; max-width: 100%; height: 100%; max-height: 100%; border-radius: 0; margin: 0; }
  /* Bigger option thumbnails on phones: the colour and base must be readable from the list. */
  .opt { grid-template-columns: 56px 1fr auto; gap: 10px; }
  .opt__img { width: 56px; height: 56px; }
}
/* ---------- product page: the product sheet laid out in the page (tools/build_pages.py) ---------- */
a.pcard__btn { text-decoration: none; color: inherit; }
.ppage { padding-block: 6px clamp(36px, 5vw, 64px); }
.sheet--page { display: block; width: auto; max-height: none; border: 1px solid var(--line); box-shadow: none; }
.sheet--page .sheet__media { top: calc(var(--hdr) + 16px); border-start-start-radius: 16px; border-end-start-radius: 16px; }
.sheet--page .sheet__info { max-height: none; overflow: visible; }
.sheet--page .sheet__title { padding-inline-end: 0; }
.ppage__more { margin-top: 18px; font-size: 15px; }
@media (max-width: 900px) {
  .sheet--page { overflow: visible; }
  .sheet--page .sheet__bar { top: var(--hdr); }
  .sheet--page .sheet__media { border-radius: 16px 16px 0 0; }
}
@media (max-width: 640px) {
  .sheet--page { width: auto; height: auto; max-height: none; border-radius: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
