/* Car Services flow (app-services.jsx) — coupon marketplace. The discount is
   the hero, so the featured cards lead with a red % badge (red as a fill
   accent only, never on borders). Prefix: .svc-* */

/* ---- Home entry section ---- */
.svc-head { align-items: flex-end; }
.svc-eyebrow {
  font-size: 12px; font-weight: 600; color: var(--red);
  letter-spacing: 0.01em; margin-bottom: 3px;
}

/* Service categories — compact chips, horizontally scrollable */
.svc-cats {
  display: flex; gap: 10px; overflow-x: auto;
  scrollbar-width: none; -ms-overflow-style: none;
  margin: 0 -16px 16px; padding: 2px 16px;
}
.svc-cats::-webkit-scrollbar { display: none; }
.svc-cat {
  flex-shrink: 0; width: 78px;
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  padding: 14px 8px;
  background: var(--white); border: 1px solid var(--hairline); border-radius: 14px;
  cursor: pointer; transition: border-color 0.15s, transform 0.1s;
}
@media (hover: hover) { .svc-cat:hover { border-color: var(--text); } }
.svc-cat:active { transform: scale(0.97); }
.svc-cat-icon {
  width: 42px; height: 42px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px; background: var(--canvas-2); color: var(--text);
}
.svc-cat-icon svg { width: 23px; height: 23px; }
.svc-cat-label { font-size: 12.5px; font-weight: 600; color: var(--text); text-align: center; }

/* Featured offers — coupon cards, discount-led */
.svc-offers {
  display: flex; gap: 12px; overflow-x: auto;
  scrollbar-width: none; -ms-overflow-style: none;
  margin: 0 -16px; padding: 2px 16px 4px;
  scroll-snap-type: x mandatory;
}
.svc-offers::-webkit-scrollbar { display: none; }
.svc-offer {
  flex-shrink: 0; width: 218px; scroll-snap-align: start;
  display: flex; flex-direction: column; text-align: start;
  background: var(--white); border: 1px solid var(--hairline); border-radius: 16px;
  overflow: hidden; cursor: pointer;
  transition: border-color var(--card-hover-t), box-shadow var(--card-hover-t);
}
@media (hover: hover) { .svc-offer:hover { border-color: var(--text); } }
.svc-offer:active { box-shadow: var(--shadow-sm); }
.svc-offer-media {
  position: relative; height: 94px;
  display: flex; align-items: center; justify-content: center;
  background: var(--canvas-2); color: var(--text);
}
.svc-offer-media img { width: 100%; height: 100%; object-fit: cover; }
.svc-offer-glyph { opacity: 0.5; }
.svc-offer-glyph svg { width: 44px; height: 44px; }
.svc-offer-rating {
  position: absolute; top: 10px; inset-inline-end: 10px;
  display: inline-flex; align-items: center; gap: 3px;
  background: rgba(255, 255, 255, 0.92); color: var(--text);
  font-size: 11px; font-weight: 600; padding: 3px 7px; border-radius: 999px;
}
.svc-offer-rating svg { width: 11px; height: 11px; color: #F5A623; }
.svc-offer-body { padding: 12px 13px 14px; display: flex; flex-direction: column; gap: 5px; }
.svc-offer-vendor { font-size: 11.5px; color: var(--muted); }
.svc-offer-title {
  font-size: 13.5px; font-weight: 600; line-height: 1.45; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.svc-offer-desc {
  font-size: 12px; line-height: 1.5; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.svc-offer-foot { display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.svc-offer-price {
  font-size: 16px; font-weight: 700; color: var(--text);
  display: inline-flex; align-items: center; gap: 2px;
}
.svc-offer-price svg { width: 12px; height: 13px; }
.svc-offer-was { font-size: 12px; color: var(--muted); text-decoration: line-through; }
.svc-offer-off {
  background: var(--green); color: #fff;
  font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 999px;
}
.svc-offer-loc { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--muted); }
.svc-offer-loc svg { width: 12px; height: 12px; flex-shrink: 0; }

/* ---- Services discover (/services, /services/{cat}) ---- */
.svc-dsc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 16px; margin: 6px 0 10px; }
.svc-dsc-h1 { font-size: 24px; line-height: 1.3; font-weight: 700; margin: 0; }
/* Collapsed to one line; the whole row is tappable to expand the full text. */
.svc-dsc-desc {
  display: flex; align-items: flex-start; gap: 6px; width: 100%;
  padding: 0 16px; margin: 0 0 14px;
  background: none; border: 0; text-align: start; font: inherit; color: inherit; cursor: pointer;
}
.svc-dsc-desc-text {
  flex: 1; min-width: 0; margin: 0; max-width: 60ch;
  font-size: 13.5px; line-height: 1.7; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.svc-dsc-desc.is-open .svc-dsc-desc-text { -webkit-line-clamp: unset; overflow: visible; }
.svc-dsc-desc-btn {
  flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  padding: 2px; margin-top: 1px; border: 0; background: none; color: var(--muted); cursor: pointer;
}
.svc-dsc-desc-btn svg { width: 16px; height: 16px; transform: rotate(90deg); transition: transform 0.2s ease; }
.svc-dsc-desc.is-open .svc-dsc-desc-btn svg { transform: rotate(-90deg); }
/* The sticky chrome owns the gap below the cats/sort (padding-bottom), so the
   space between the chips and the content below is the same on both views. */
.svc-dsc-chrome { padding-bottom: 14px; }
.svc-dsc-chips {
  display: flex; gap: 8px; overflow-x: auto;
  scrollbar-width: none; -ms-overflow-style: none;
  padding: 4px 16px 0;
}
.svc-dsc-chips::-webkit-scrollbar { display: none; }
.svc-fchip {
  flex-shrink: 0; padding: 8px 15px; border-radius: 999px;
  border: 1px solid var(--hairline); background: var(--white);
  font: inherit; font-size: 13px; font-weight: 600; color: var(--muted);
  cursor: pointer; transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.svc-fchip.is-active { background: var(--text); color: #fff; border-color: var(--text); }
.svc-citybtn { font: inherit; }
.svc-citybtn > svg { width: 17px; height: 17px; }
/* City sheet — a vertical stacked list, one city per row. Cap at ~8 rows so the
   sheet stays compact; the rest scroll inside the list. */
.svc-city-list {
  display: flex; flex-direction: column;
  max-height: 384px; overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: none; -ms-overflow-style: none;
}
.svc-city-list::-webkit-scrollbar { display: none; }
.svc-city-item {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%;
  padding: 13px 2px; background: none; border: 0; border-bottom: 1px solid var(--hairline);
  font: inherit; font-size: 15px; color: var(--text); text-align: start; cursor: pointer;
}
.svc-city-item:last-child { border-bottom: 0; }
.svc-city-item:active { background: var(--canvas-2); }
.svc-city-item.is-active { font-weight: 700; }
.svc-city-item svg { width: 18px; height: 18px; color: var(--text); flex-shrink: 0; }
.svc-citybtn .svc-caret { display: inline-flex; color: var(--muted); }
.svc-citybtn .svc-caret svg { width: 13px; height: 13px; transform: rotate(90deg); }

/* Sort as inline chips — labeled and outline-active so they read as ordering,
   not as more category chips (whose active state is solid dark). */
/* Label stays pinned; only the chips track scrolls under it. The row fades +
   slides in when it mounts (i.e. when the user opens a category from the
   storefront, where sort isn't shown). */
.svc-sortchips {
  display: flex; align-items: center; gap: 8px; padding: 10px 16px 0;
  animation: svc-filter-in 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes svc-filter-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* A caption, not a control: muted + lighter + smaller than the chips, no
   button affordance, so it stops reading as the first tappable pill. */
.svc-sortchips-label {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 500; color: var(--muted); margin-inline-end: 4px;
}
.svc-sortchips-label svg { width: 14px; height: 14px; color: var(--muted); }
.svc-sortchips-track {
  display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0;
  overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none;
  /* Small start/vertical padding so the first chip's border isn't clipped at
     the scroll edge; negative start margin keeps the label→chip gap unchanged. */
  padding: 2px 3px; margin-inline-start: -3px;
}
.svc-sortchips-track::-webkit-scrollbar { display: none; }
/* Compact chips so more than three fit a phone width (the 4th peeks, cueing
   the row scrolls) instead of sitting fully off-screen. */
.svc-schip {
  flex-shrink: 0; padding: 6px 11px; border-radius: 999px;
  border: 1px solid var(--hairline); background: var(--white);
  font: inherit; font-size: 12px; font-weight: 500; color: var(--muted); cursor: pointer;
  transition: color 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.svc-schip.is-active {
  color: var(--text); font-weight: 600;
  border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text);
}

/* ---- Coupon PDP (/car-services/{offer}) ---- */
/* No bottom reserve for the sticky bar here: the site footer renders right
   below the PDP and is itself the clearance. An 84px reserve just left a dead
   gap between the related rail and the footer. */
.svc-pdp { padding-bottom: 0; }
.svc-pdp-media {
  position: relative; width: 100%; aspect-ratio: 2.6 / 1;
  display: flex; align-items: center; justify-content: center;
  background: var(--canvas-2); color: var(--text);
}
.svc-pdp-media img { width: 100%; height: 100%; object-fit: cover; }
.svc-pdp-glyph { opacity: 0.5; }
.svc-pdp-glyph svg { width: 64px; height: 64px; }
/* Gallery (multiple images) — swipeable, scroll-snap, with dots. */
.svc-pdp-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -ms-overflow-style: none;
}
.svc-pdp-track::-webkit-scrollbar { display: none; }
.svc-pdp-slide {
  flex: 0 0 100%; scroll-snap-align: center; aspect-ratio: 2.6 / 1;
  display: flex; align-items: center; justify-content: center; background: var(--canvas-2);
}
.svc-pdp-slide img { width: 100%; height: 100%; object-fit: cover; }
.svc-pdp-dots { display: flex; justify-content: center; gap: 6px; padding: 10px 0 2px; }
.svc-pdp-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--hairline); transition: background 0.2s, width 0.2s; }
.svc-pdp-dot.is-on { background: var(--text); width: 18px; border-radius: 999px; }

.svc-pdp-head { padding: 14px 16px 4px; }
.svc-pdp-headtop { display: flex; align-items: flex-start; gap: 12px; }
.svc-pdp-headtext { flex: 1; min-width: 0; }
.svc-pdp-vendor { font-size: 13px; color: var(--muted); }
.svc-pdp-title { font-size: 20px; line-height: 1.35; font-weight: 700; color: var(--text); margin: 4px 0 0; }
/* Save-for-later. Hairline circle (never a red border); the heart is a muted
   outline until saved, then fills red and pops. */
.svc-pdp-fav {
  flex: none;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}
.svc-pdp-fav svg { width: 20px; height: 20px; transition: fill 0.15s ease; }
.svc-pdp-fav:active { transform: scale(0.94); }
.svc-pdp-fav.is-faved { color: var(--text); }
.svc-pdp-fav.is-faved svg { fill: var(--text); animation: svcFavPop 0.28s ease; }
@keyframes svcFavPop {
  0% { transform: scale(1); }
  45% { transform: scale(1.28); }
  100% { transform: scale(1); }
}
.svc-pdp-desc { font-size: 14px; line-height: 1.6; color: var(--muted); margin-top: 6px; }
.svc-pdp-rate { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--text); margin-top: 8px; }
.svc-pdp-rate svg { width: 14px; height: 14px; color: #F5A623; }
.svc-pdp-rate-count { color: var(--muted); font-weight: 400; }
.svc-pdp-price { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.svc-pdp-now { font-size: 24px; font-weight: 700; color: var(--text); display: inline-flex; align-items: center; gap: 3px; }
.svc-pdp-now svg { width: 16px; height: 17px; }
.svc-pdp-old { font-size: 15px; color: var(--muted); text-decoration: line-through; }
.svc-pdp-off { background: var(--green); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }

/* Options selector (multi-variant offers). Selectable rows, each showing its
   own price so the buyer can compare; the pick drives the price block + buy.
   Selected state uses a dark ring (never a red border) + filled radio. */
.svc-opts { margin-top: 16px; }
.svc-opts-label { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.svc-opts-list { display: flex; flex-direction: column; gap: 8px; }
.svc-opt {
  display: flex; align-items: center; gap: 10px;
  width: 100%; text-align: start;
  padding: 12px 14px;
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.svc-opt:active { transform: scale(0.995); }
.svc-opt.is-sel { border-color: var(--text); }
.svc-opt-radio {
  flex: none; width: 18px; height: 18px; border-radius: 50%;
  border: 1.6px solid var(--hairline);
  position: relative; transition: border-color 0.15s ease;
}
.svc-opt.is-sel .svc-opt-radio { border-color: var(--text); }
.svc-opt.is-sel .svc-opt-radio::after {
  content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--text);
}
.svc-opt-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.svc-opt-label { font-size: 14px; font-weight: 600; color: var(--text); }
.svc-opt-sub { font-size: 12px; color: var(--muted); }
.svc-opt-price { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 1px; }
.svc-opt-now { font-size: 15px; font-weight: 700; color: var(--text); display: inline-flex; align-items: center; gap: 2px; }
.svc-opt-now svg { width: 12px; height: 13px; }
.svc-opt-sub-price { display: inline-flex; align-items: center; gap: 6px; }
.svc-opt-was { font-size: 11.5px; color: var(--muted); text-decoration: line-through; }
.svc-opt-off { font-size: 11px; font-weight: 700; color: var(--green); }

/* "starting from" cue on discover cards/rows/hero for multi-option offers. */
.svc-from { font-size: 11px; color: var(--muted); font-weight: 500; }

.svc-pdp-sec { padding: 18px 16px; border-top: 8px solid var(--canvas-2); }
.svc-pdp-h2 { font-size: 16px; font-weight: 700; color: var(--text); margin: 0 0 12px; }
.svc-pdp-text { font-size: 14px; line-height: 1.8; color: var(--text); margin: 0; }

.svc-pdp-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.svc-pdp-steps li { display: flex; gap: 12px; align-items: flex-start; }
.svc-pdp-step-n {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--text); color: #fff; font-size: 13px; font-weight: 700;
}
.svc-pdp-step-t { font-size: 14px; font-weight: 600; color: var(--text); }
.svc-pdp-step-s { font-size: 13px; line-height: 1.6; color: var(--muted); margin-top: 2px; }

.svc-pdp-terms { margin: 0; padding-inline-start: 18px; display: flex; flex-direction: column; gap: 9px; }
.svc-pdp-terms li { font-size: 13.5px; line-height: 1.7; color: var(--text); }
.svc-pdp-terms li::marker { color: var(--muted); }

/* Branch cards — tappable, open the location in Maps. Tinted pin square +
   two-line address + a circular map action, matching the category-icon look. */
.svc-pdp-branches { display: flex; flex-direction: column; gap: 10px; }
.svc-branch-card {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 13px 14px;
  background: var(--white); border: 1px solid var(--hairline); border-radius: 14px;
  color: var(--text); text-decoration: none; cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
@media (hover: hover) { .svc-branch-card:hover { border-color: var(--text); } }
.svc-branch-card:active { transform: scale(0.995); box-shadow: var(--shadow-sm); }
.svc-branch-ic {
  flex: none; width: 40px; height: 40px; border-radius: 11px;
  display: grid; place-items: center; background: var(--canvas-2); color: var(--text);
}
.svc-branch-ic svg { width: 20px; height: 20px; }
.svc-branch-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.svc-branch-area { font-size: 14px; font-weight: 600; color: var(--text); }
.svc-branch-city { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.svc-branch-hours { display: inline-flex; align-items: center; gap: 5px; margin-top: 2px; font-size: 12px; color: var(--muted); }
.svc-branch-hours svg { width: 13px; height: 13px; color: var(--muted); flex-shrink: 0; }
/* Google rating (attributed) — gold star, muted count + source. */
.svc-branch-rating { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--text); }
.svc-branch-rating svg { width: 13px; height: 13px; color: #F5A623; flex-shrink: 0; }
.svc-branch-rating-count { color: var(--muted); font-weight: 400; }
.svc-branch-source { color: var(--muted); font-weight: 400; }
.svc-branch-go {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; background: var(--canvas-2); color: var(--text);
}
.svc-branch-go svg { width: 16px; height: 16px; }
/* The show-all toggle for long lists (count lives in its label). */
.svc-branch-more {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 12px; padding: 8px 0;
  background: none; border: 0; cursor: pointer;
  font: inherit; font-size: 13.5px; font-weight: 600; color: var(--text);
}
.svc-branch-more svg { width: 16px; height: 16px; color: var(--muted); transform: rotate(90deg); }
/* Branches sheet — city filter chips + scrollable list of branch cards. */
.svc-branches-filter {
  display: flex; gap: 8px; overflow-x: auto;
  scrollbar-width: none; -ms-overflow-style: none;
  margin: 0 -16px 14px; padding: 2px 16px 2px;
}
.svc-branches-filter::-webkit-scrollbar { display: none; }
/* Fixed height + internal scroll so the sheet doesn't resize (dance) when a
   city filter changes the branch count; switching just scrolls inside. */
.svc-branches-sheet-list {
  display: flex; flex-direction: column; gap: 10px;
  height: 320px; overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: none; -ms-overflow-style: none;
  padding-bottom: 4px;
}
.svc-branches-sheet-list::-webkit-scrollbar { display: none; }

/* Inline CTA (in the page) — the primary buy button in flow. The sticky bar it
   promotes to is the SHARED .buybar (index.html), same as the parts PDP. */
.svc-pdp-inline { margin-top: 16px; }

/* Coupon list rows — full-width card with a horizontal banner on top (the real
   service images are wide banners, so a top banner fits them, not a square thumb). */
.svc-list { display: flex; flex-direction: column; gap: 14px; padding: 12px 16px 24px; }
/* When the list sits inside an already-padded section (the merchandised "كل
   العروض" block), drop its own inline padding so it doesn't double up. */
.svc-list-flush { padding-inline: 0; }

/* Loading skeletons — reuse the card shells + the app's sk-shimmer. Own media
   classes so the shimmer bg isn't overridden by the real media background. */
.svc-skel { pointer-events: none; }
.svc-skmedia-row { width: 100%; aspect-ratio: 2.6 / 1; }
.svc-skmedia-card { width: 100%; height: 94px; }
.svc-skmedia-hero { width: 100%; height: 150px; }
.svc-row {
  display: flex; flex-direction: column; width: 100%; text-align: start; padding: 0;
  background: var(--white); border: 1px solid var(--hairline); border-radius: 16px; overflow: hidden;
  cursor: pointer; transition: border-color var(--card-hover-t), box-shadow var(--card-hover-t);
}
@media (hover: hover) { .svc-row:hover { border-color: var(--text); } }
.svc-row:active { box-shadow: var(--shadow-sm); }
.svc-row-media {
  position: relative; width: 100%; aspect-ratio: 2.6 / 1;
  display: flex; align-items: center; justify-content: center;
  background: var(--canvas-2); color: var(--text);
}
/* Real horizontal banner drops in here (object-fit: cover). */
.svc-row-media img { width: 100%; height: 100%; object-fit: cover; }
.svc-row-glyph { opacity: 0.5; }
.svc-row-glyph svg { width: 54px; height: 54px; }
.svc-row-body { display: flex; flex-direction: column; gap: 5px; padding: 12px 14px 14px; }
.svc-row-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.svc-row-vendor { font-size: 12px; color: var(--muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.svc-row-rating { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 600; color: var(--text); flex-shrink: 0; }
.svc-row-rating svg { width: 12px; height: 12px; color: #F5A623; }
.svc-row-rcount { color: var(--muted); font-weight: 400; }
.svc-row-title {
  font-size: 14.5px; font-weight: 700; line-height: 1.4; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.svc-row-desc {
  font-size: 12.5px; line-height: 1.55; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.svc-row-foot { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; }
.svc-row-price { font-size: 16px; font-weight: 700; color: var(--text); display: inline-flex; align-items: center; gap: 2px; }
.svc-row-price svg { width: 12px; height: 13px; }
.svc-row-was { font-size: 12px; color: var(--muted); text-decoration: line-through; }
/* discount moved off the banner into the details, beside the price */
.svc-row-off {
  background: var(--green); color: #fff;
  font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px;
}

/* ---- Spotlight hero (services landing lead) — the best deal, full-width ---- */
.svc-hero {
  display: block; width: 100%; text-align: start; padding: 0;
  background: var(--white); border: 1px solid var(--hairline); border-radius: 18px;
  overflow: hidden; cursor: pointer;
  transition: border-color var(--card-hover-t), box-shadow var(--card-hover-t);
}
@media (hover: hover) { .svc-hero:hover { border-color: var(--text); } }
.svc-hero:active { box-shadow: var(--shadow-sm); }
.svc-hero-media {
  position: relative; height: 150px;
  display: flex; align-items: center; justify-content: center;
  background: var(--canvas-2); color: var(--text);
}
.svc-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.svc-hero-glyph { opacity: 0.5; }
.svc-hero-glyph svg { width: 66px; height: 66px; }
.svc-hero-badge {
  position: absolute; top: 12px; inset-inline-start: 12px;
  background: var(--green); color: #fff;
  font-size: 14px; font-weight: 700; padding: 6px 12px; border-radius: 999px;
}
.svc-hero-rating {
  position: absolute; top: 12px; inset-inline-end: 12px;
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(255, 255, 255, 0.92); color: var(--text);
  font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 999px;
}
.svc-hero-rating svg { width: 12px; height: 12px; color: #F5A623; }
.svc-hero-body { padding: 14px 16px 16px; }
.svc-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 700; color: var(--red); margin-bottom: 8px;
}
.svc-hero-eyebrow svg { width: 14px; height: 14px; }
.svc-hero-vendor { font-size: 12.5px; color: var(--muted); margin-bottom: 4px; }
.svc-hero-title { font-size: 16px; font-weight: 700; line-height: 1.4; color: var(--text); }
.svc-hero-desc { font-size: 13px; line-height: 1.6; color: var(--muted); margin-top: 5px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.svc-hero-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.svc-hero-prices { display: inline-flex; align-items: baseline; gap: 8px; }
.svc-hero-price { font-size: 19px; font-weight: 700; color: var(--text); display: inline-flex; align-items: center; gap: 2px; }
.svc-hero-price svg { width: 13px; height: 14px; }
.svc-hero-was { font-size: 13px; color: var(--muted); text-decoration: line-through; }
.svc-hero-cta {
  display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0;
  background: var(--red); color: #fff; border-radius: 12px;
  font-size: 14px; font-weight: 700; padding: 11px 16px;
}
.svc-hero-cta svg { width: 15px; height: 15px; transform: scaleX(-1); }

/* ---- Entry: the vertical toggle (under the search) ---- */
/* The vertical toggle, underline-tabs look (locked from #/services-toggle-demo
   variant 2): two text+icon tabs on a hairline rule, with an underline that
   slides between them. The underline is brand red (a strip, an allowed red
   fill accent, not a border) to give the active tab a clear selected pop. */
.svc-vtabs {
  position: relative; display: flex;
  margin: -6px 16px 16px; border-bottom: 1px solid var(--hairline);
}
.svc-vtabs-bar {
  position: absolute; bottom: -1px; inset-inline-start: 0; width: 50%; height: 2.5px;
  background: var(--red); transition: inset-inline-start 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.svc-vtabs.is-b .svc-vtabs-bar { inset-inline-start: 50%; }
.svc-vtabs button {
  flex: 1; padding: 12px 8px; border: 0; background: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  font: inherit; font-size: 14px; font-weight: 600; color: var(--muted);
  cursor: pointer; transition: color 0.2s ease;
}
.svc-vtabs button.is-active { color: var(--text); }
.svc-vtabs button svg { width: 17px; height: 17px; }
/* Pinned: search padding tightens, so ease the pull + compact below. */
.stick-anchor.stuck .svc-vtabs { margin-top: -2px; margin-bottom: 10px; }

/* Stacked scroll-spy entry (#/services-stacked-demo): both sections on one
   page; scroll-margin clears the pinned chrome when a tab tap scrolls to one. */
.svc-stack-sec { scroll-margin-top: 170px; }
.svc-stack-sep { display: flex; align-items: center; gap: 12px; padding: 0 16px; margin: 30px 0 18px; }
.svc-stack-sep span { font-size: 18px; font-weight: 700; color: var(--text); flex: none; }
.svc-stack-sep::after { content: ""; flex: 1; height: 1px; background: var(--hairline); }

/* ===== Toggle look exploration (#/services-toggle-demo) ===== */
.tgd { padding: 20px 16px 40px; }
.tgd-title { font-size: 18px; font-weight: 700; color: var(--text); }
.tgd-note { font-size: 13px; color: var(--muted); margin: 4px 0 18px; line-height: 1.6; }
.tgd-search {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 13px 15px; margin-bottom: 22px;
  background: var(--white); border: 1px solid var(--hairline); border-radius: 12px;
  font: inherit; font-size: 14px; color: var(--muted); text-align: start; cursor: pointer;
}
.tgd-search svg { width: 18px; height: 18px; color: var(--muted); }
.tgd-block { margin-bottom: 26px; }
.tgd-label { font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 10px; }

/* 1 — sliding segmented */
.tg-seg { position: relative; display: flex; padding: 5px; background: var(--canvas-2); border-radius: 14px; }
.tg-seg-thumb {
  position: absolute; top: 5px; bottom: 5px; inset-inline-start: 5px; width: calc(50% - 5px);
  background: var(--white); border-radius: 10px; box-shadow: var(--shadow-sm);
  transition: inset-inline-start 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.tg-seg.is-b .tg-seg-thumb { inset-inline-start: 50%; }
.tg-seg button {
  position: relative; z-index: 1; flex: 1; padding: 11px; border: 0; background: none; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  font: inherit; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer;
  transition: color 0.2s ease;
}
.tg-seg button.is-active { color: var(--text); }
.tg-seg button svg { width: 17px; height: 17px; }

/* 2 & 5 — underline tabs */
.tg-underline { position: relative; display: flex; border-bottom: 1px solid var(--hairline); }
.tg-underline-bar {
  position: absolute; bottom: -1px; inset-inline-start: 0; width: 50%; height: 2px; background: var(--text);
  transition: inset-inline-start 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.tg-underline.is-b .tg-underline-bar { inset-inline-start: 50%; }
.tg-underline button {
  flex: 1; padding: 12px 8px; border: 0; background: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  font: inherit; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer;
  transition: color 0.2s ease;
}
.tg-underline button.is-active { color: var(--text); }
.tg-underline button svg { width: 17px; height: 17px; }

/* 3 — split cards */
.tg-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tg-cards button {
  display: flex; align-items: center; gap: 10px; text-align: start;
  padding: 12px 13px; border: 1px solid var(--hairline); border-radius: 14px;
  background: var(--white); cursor: pointer; font: inherit;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.tg-cards button.is-active { border-color: var(--text); box-shadow: var(--shadow-sm); }
.tg-card-ic {
  flex: none; width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center; background: var(--canvas-2); color: var(--text);
}
.tg-card-ic svg { width: 20px; height: 20px; }
.tg-card-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tg-card-t { font-size: 13.5px; font-weight: 600; color: var(--text); }
.tg-cards button:not(.is-active) .tg-card-t { color: var(--muted); }
.tg-card-s { font-size: 11.5px; color: var(--muted); }

.tgd-divider { margin: 6px 0 22px; font-size: 12px; font-weight: 600; color: var(--text); border-top: 1px dashed var(--hairline); padding-top: 18px; }

/* 6 — filled sliding thumb: white track + hairline, active thumb is solid
   charcoal that slides. The clearest "this is a switch" affordance. */
.tg-fill {
  position: relative; display: flex; padding: 4px;
  background: var(--white); border: 1px solid var(--hairline); border-radius: 13px;
}
.tg-fill-thumb {
  position: absolute; top: 4px; bottom: 4px; inset-inline-start: 4px; width: calc(50% - 4px);
  background: var(--text); border-radius: 9px;
  transition: inset-inline-start 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.tg-fill.is-b .tg-fill-thumb { inset-inline-start: 50%; }
.tg-fill button {
  position: relative; z-index: 1; flex: 1; padding: 11px; border: 0; background: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  font: inherit; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer;
  transition: color 0.22s ease;
}
.tg-fill button.is-active { color: #fff; }
.tg-fill button svg { width: 17px; height: 17px; }

/* 7 — underline tabs inside a bordered control (the frame gives buttonness) */
.tg-ucon {
  position: relative; display: flex; overflow: hidden;
  background: var(--white); border: 1px solid var(--hairline); border-radius: 12px;
}
.tg-ucon-bar {
  position: absolute; bottom: 0; inset-inline-start: 0; width: 50%; height: 2.5px; background: var(--text);
  transition: inset-inline-start 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.tg-ucon.is-b .tg-ucon-bar { inset-inline-start: 50%; }
.tg-ucon button {
  flex: 1; padding: 12px 8px; border: 0; background: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  font: inherit; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}
.tg-ucon button.is-active { color: var(--text); }
.tg-ucon button svg { width: 17px; height: 17px; }

/* 4 — solid pill chips (matches discover category chips) */
.tg-chips { display: flex; gap: 8px; }
.tg-chips button {
  flex: 1; padding: 11px; border: 1px solid var(--hairline); border-radius: 999px;
  background: var(--white); color: var(--muted);
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.tg-chips button svg { width: 17px; height: 17px; }
.tg-chips button.is-active { background: var(--text); color: #fff; border-color: var(--text); }
