/* Public seller profile — design tokens and layout.
   All layout uses logical CSS properties for automatic RTL support (dir="rtl"). */

/* ── Tokens ── */
:root {
  --bg: #FBFAF8;
  --card: #FFFFFF;
  --ink: #17181B;
  --muted: #73727A;
  --hair: rgba(60,60,67,.13);
  --hair2: rgba(60,60,67,.08);
  --shadow: 0 1px 2px rgba(20,30,55,.05), 0 10px 30px -18px rgba(20,30,55,.18);
  --shadow-sm: 0 1px 2px rgba(20,30,55,.05);
  /* accent set via inline style from accent_color; defaults here for safety */
  --accent: #C99A3A;
  --accent-strong: #9A7411;
  --accent-fill: #D4A53C;
}

[data-theme="dark"] {
  --bg: #0F1012;
  --card: #1A1B1F;
  --ink: #F3F3F4;
  --muted: #9A9AA2;
  --hair: rgba(255,255,255,.10);
  --hair2: rgba(255,255,255,.06);
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 14px 40px -20px rgba(0,0,0,.7);
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
}

*,::before,::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
h1,h2,h3,p,ul,li { margin: 0; padding: 0; }
button { font-family: inherit; }

.page {
  /* Accent tints are declared here (not on :root) so they resolve against the
     per-seller --accent set inline on #pp-root, not the :root fallback. */
  --accent-tint: color-mix(in srgb, var(--accent) 12%, transparent);
  --accent-tint-2: color-mix(in srgb, var(--accent) 7%, transparent);
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--wc-f-body, 'Heebo', -apple-system, 'SF Pro Text', system-ui, sans-serif);
  -webkit-font-smoothing: antialiased;
  letter-spacing: -.01em;
  line-height: 1.45;
}

/* Header/nav, language menu, modals and footer come from shared/web_chrome.css
   so the profile page chrome is identical to the landing page. */

/* ── Layout shell ── */
.wrap { max-width: 1280px; margin: 0 auto; padding: 16px 20px 0; }
.layout { display: flex; flex-direction: column; gap: 18px; }
.content { display: flex; flex-direction: column; gap: 18px; min-width: 0; }

/* ── Identity card ── */
.idcard {
  background: var(--card);
  border: .5px solid var(--hair);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.idcard__media {
  position: relative;
  aspect-ratio: 16/10;
  background: #cbcbcb;
}
.idcard__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
  filter: grayscale(.08);
}
.idcard__img--ph {
  background: repeating-linear-gradient(135deg, #d7d6d2, #d7d6d2 11px, #cfcec9 11px, #cfcec9 22px);
}
.idcard__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--card) 1%, color-mix(in srgb, var(--card) 35%, transparent) 22%, transparent 52%);
}
.idcard__id {
  position: absolute;
  inset-inline-start: 20px;
  bottom: 14px;
  inset-inline-end: 20px;
}
.idcard__name {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  opacity: .92;
  letter-spacing: -.01em;
}
.idcard__roleRow {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-top: 1px;
}
.idcard__role {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.05;
}
.idcard__body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Verified badge (Material Symbols "verified", filled) */
.vbadge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 0;
}
.vbadge svg { filter: drop-shadow(0 2px 5px color-mix(in srgb, var(--accent) 45%, transparent)); }

/* Action buttons */
.actions {
  display: flex;
  gap: 10px;
  justify-content: space-between;
}
.act {
  flex: 1;
  appearance: none;
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0;
}
.act__ic {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(165deg, var(--accent-fill), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px -3px color-mix(in srgb, var(--accent) 55%, transparent);
  transition: transform .14s;
}
.act:hover .act__ic { transform: translateY(-2px); }
.act:active .act__ic { transform: scale(.95); }
.act__lbl { font-size: 12px; font-weight: 600; color: var(--muted); }

/* Stat card */
.statcard {
  display: flex;
  align-items: center;
  background: var(--accent-tint-2);
  border: .5px solid var(--hair2);
  border-radius: 16px;
  padding: 14px 8px;
}
.stat { flex: 1; text-align: center; }
.stat__v { font-size: 21px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; unicode-bidi: isolate; }
.stat__v--accent { color: var(--accent-strong); }
.stat__l { font-size: 12px; color: var(--muted); margin-top: 2px; }
.stat__div { width: .5px; height: 30px; background: var(--hair); }

/* Location row */
.metaRow {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

/* Open-in-app button */
.openBtn {
  appearance: none;
  width: 100%;
  border: .5px solid color-mix(in srgb, var(--accent) 32%, transparent);
  cursor: pointer;
  border-radius: 13px;
  background: var(--accent-tint);
  color: var(--accent-strong);
  font-weight: 700;
  font-size: 15px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: background .15s, transform .12s;
}
.openBtn:hover {
  transform: translateY(-1px);
  background: color-mix(in srgb, var(--accent) 18%, transparent);
}

/* ── Sections ── */
.section {
  background: var(--card);
  border: .5px solid var(--hair);
  border-radius: 22px;
  padding: 20px 20px 22px;
  box-shadow: var(--shadow-sm);
}
.section__hd {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.section__t { font-size: 18px; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
.section__a {
  appearance: none;
  border: none;
  background: none;
  color: var(--accent-strong);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  padding: 0;
}
.bioText { font-size: 15px; color: var(--ink); opacity: .86; line-height: 1.6; text-wrap: pretty; white-space: pre-line; }
.emptyState { font-size: 14px; color: var(--muted); }

/* Service switcher */
.svc-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.svc-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: .5px solid var(--hair);
  background: var(--card);
  color: var(--muted);
  transition: background .12s, color .12s, border-color .12s;
}
.svc-pill.is-active,
.svc-pill:hover {
  background: var(--accent-tint);
  color: var(--accent-strong);
  border-color: color-mix(in srgb, var(--accent) 30%, transparent);
}

/* ── Bundles ── */
.bundles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.bundle {
  appearance: none;
  text-align: start;
  cursor: pointer;
  border-radius: 16px;
  padding: 15px 15px 14px;
  min-height: 128px;
  display: flex;
  flex-direction: column;
  border: .5px solid var(--hair);
  background: var(--card);
  color: var(--ink);
  transition: transform .14s, box-shadow .14s;
}
.bundle:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.bundle__name { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.bundle__note { font-size: 13px; color: var(--muted); margin-top: 5px; line-height: 1.4; flex: 1; }
.bundle__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}
.bundle__price { font-size: 18px; font-weight: 700; letter-spacing: -.02em; direction: ltr; unicode-bidi: isolate; }
.bundle--feat {
  background: linear-gradient(165deg, var(--accent-fill), var(--accent));
  border-color: transparent;
  color: #1c1606;
}
.bundle--feat .bundle__note { color: rgba(28,22,6,.7); }
.bundle--quote {
  border-style: dashed;
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  background: var(--accent-tint-2);
}
/* Quote-only sellers: the lone quote card spans the row instead of leaving a gap. */
.bundle--quote:only-child { grid-column: 1 / -1; min-height: auto; }
.bundle__foot--quote { margin-top: auto; }
.bundle__qlink {
  display: flex;
  align-items: center;
  gap: 3px;
  color: var(--accent-strong);
  font-weight: 700;
  font-size: 14px;
}

/* ── Information section ── */
.info { display: flex; flex-direction: column; gap: 16px; }
.infoList { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.infoList__row { display: flex; align-items: center; gap: 10px; font-size: 14px; padding-inline: 10px; }
.infoList__row svg { flex-shrink: 0; }
.infoList__lbl { color: var(--muted); flex-shrink: 0; }
.infoList__val { margin-inline-start: auto; font-weight: 600; text-align: end; color: var(--ink); }

/* Service hours */
.hours { border-top: .5px solid var(--hair); padding-top: 15px; }
.hours__hd {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
  margin-bottom: 8px;
  padding-inline: 10px;
}
.hours__list { list-style: none; display: flex; flex-direction: column; }
.hours__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 10px;
  /* Day name aligns under the "service hours" title text (past its icon + gap). */
  padding-inline-start: 37px;
  border-radius: 9px;
  font-size: 14px;
}
.hours__row.is-today { background: var(--accent-tint); font-weight: 700; }
.hours__day { color: var(--muted); }
.hours__row.is-today .hours__day { color: var(--accent-strong); }
.hours__val { direction: ltr; unicode-bidi: isolate; font-variant-numeric: tabular-nums; font-weight: 600; }
.hours__val.is-closed { color: var(--muted); font-weight: 500; }

/* ── Reviews ── */
.reviews { display: flex; flex-direction: column; gap: 16px; }
.revSummary { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.revSummary__big { text-align: center; min-width: 96px; }
.revSummary__num { font-size: 42px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.revSummary__cnt { font-size: 12px; color: var(--muted); margin-top: 5px; }
.dist { list-style: none; flex: 1; min-width: 170px; display: flex; flex-direction: column; gap: 5px; }
.dist__row { display: flex; align-items: center; gap: 9px; font-size: 12px; color: var(--muted); }
.dist__s { display: flex; align-items: center; gap: 2px; width: 22px; font-variant-numeric: tabular-nums; }
.dist__bar { flex: 1; height: 6px; border-radius: 999px; background: var(--hair); overflow: hidden; }
.dist__bar i { display: block; height: 100%; border-radius: 999px; background: var(--accent); }
.dist__n { width: 16px; text-align: end; font-variant-numeric: tabular-nums; }
.stars { display: inline-flex; gap: 1px; }
.revSummary__big .stars { justify-content: center; margin-top: 6px; }
.revList { display: flex; flex-direction: column; gap: 11px; }
.rev { border: .5px solid var(--hair); border-radius: 15px; padding: 14px; background: var(--card); }
.rev__top { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.rev__ava {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-tint);
  color: var(--accent-strong);
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.rev__ava img { width: 100%; height: 100%; object-fit: cover; }
.rev__name { font-size: 14px; font-weight: 700; }
.rev__text { font-size: 14px; color: var(--ink); opacity: .82; line-height: 1.5; text-wrap: pretty; }
.rev__when { font-size: 12px; color: var(--muted); margin-top: 9px; }
.linkRow {
  appearance: none;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--accent-strong);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 4px;
}

/* The download/QR banner and footer bar live in shared/web_chrome.css so they
   are identical to the landing page. */

/* ── Handoff sheet ── */
.sheetWrap {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(10,12,18,.42);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  display: none;
  align-items: flex-end;
  justify-content: center;
}
.sheetWrap.is-open { display: flex; animation: ppFade .2s ease; }
.sheet {
  position: relative;
  background: var(--card);
  color: var(--ink);
  width: 100%;
  max-width: 430px;
  border-radius: 24px 24px 0 0;
  padding: 30px 24px 26px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 -10px 40px rgba(0,0,0,.25);
  animation: ppSlideUp .26s cubic-bezier(.2,.8,.2,1);
}
.sheet__x {
  position: absolute;
  inset-inline-end: 14px;
  top: 14px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: var(--accent-tint-2);
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sheet__mark {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: linear-gradient(160deg, var(--accent-fill), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  box-shadow: 0 6px 18px -4px color-mix(in srgb, var(--accent) 55%, transparent);
}
.sheet__title { font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.sheet__sub { font-size: 14px; color: var(--muted); margin-top: 8px; line-height: 1.5; max-width: 330px; text-wrap: pretty; }
.sheet__open {
  appearance: none;
  border: none;
  cursor: pointer;
  margin-top: 20px;
  width: 100%;
  border-radius: 14px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 700;
  font-size: 16px;
  padding: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: transform .12s, opacity .15s;
}
.sheet__open:hover { transform: translateY(-1px); opacity: .93; }
.sheet__stores {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
  justify-content: center;
}
.sheet__store {
  appearance: none;
  border: none;
  background: none;
  color: var(--accent-strong);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  padding: 0;
}
.sheet__cancel {
  appearance: none;
  border: none;
  background: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  margin-top: 16px;
  padding: 4px;
}

/* ── Toast ── */
.pp-toast {
  position: fixed;
  bottom: 32px;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--bg);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 999px;
  z-index: 70;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
  white-space: nowrap;
}
.pp-toast.is-visible { opacity: 1; }

/* ── RTL icon flips ── */
[dir="rtl"] .openBtn svg,
[dir="rtl"] .linkRow svg,
[dir="rtl"] .bundle__qlink svg,
[dir="rtl"] .sheet__open svg,
[dir="rtl"] .langpill svg { transform: scaleX(-1); }

/* ── Keyframes ── */
@keyframes ppFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ppSlideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

/* ── Breakpoints ── */
@media (min-width: 560px) {
  .idcard__media { aspect-ratio: 16/9; }
  .sheetWrap { align-items: center; }
  .sheet { border-radius: 24px; max-width: 412px; animation: ppFade .22s ease; }
}

@media (min-width: 920px) {
  .wrap { padding: 28px 32px 0; }
  .layout { display: grid; grid-template-columns: 360px minmax(0,1fr); gap: 26px; align-items: start; }
  .idcard { position: sticky; top: 84px; }
  .idcard__media { aspect-ratio: 4/5; }
  .idcard__img { object-position: 50% 18%; }
  .idcard__role { font-size: 27px; }
  .revList { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .section__t { font-size: 19px; }
}

@media (min-width: 1180px) {
  .revList { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .sheetWrap.is-open,
  .sheet { animation: none; }
  .act:hover .act__ic,
  .openBtn:hover,
  .bundle:hover { transform: none; }
}
