/* ======================================================
   CUSTOMER HUB STYLES
   File: shop/customer-hub.css
   Pass: PASS 9 — PS-4010 — Customer Runtime
====================================================== */

/* ── HUB SHELL ──────────────────────────────────────── */
.psch-hub {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 60vh;
  font-family: inherit;
}

/* ── TAB BAR ─────────────────────────────────────────── */
.psch-tabs {
  display: flex;
  border-bottom: 1px solid rgba(0, 0, 0, 0.09);
  overflow-x: auto;
  scrollbar-width: none;
  gap: 0;
  flex-shrink: 0;
}
.psch-tabs::-webkit-scrollbar { display: none; }

.psch-tab {
  flex: 1;
  min-width: 72px;
  padding: 10px 10px 9px;
  border: none;
  border-bottom: 2px solid transparent;
  background: none;
  font-size: 11.5px;
  font-weight: 500;
  color: #999;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
  text-align: center;
  line-height: 1.3;
}
.psch-tab.active {
  color: var(--ps-primary, #6c47ff);
  border-bottom-color: var(--ps-primary, #6c47ff);
  font-weight: 600;
}
.psch-tab:hover:not(.active) { color: #555; }

/* ── CONTENT AREA ────────────────────────────────────── */
.psch-content {
  padding: 16px;
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* ── STATES ──────────────────────────────────────────── */
.psch-loading {
  text-align: center;
  color: #aaa;
  padding: 48px 0;
  font-size: 14px;
}
.psch-empty {
  text-align: center;
  color: #aaa;
  padding: 48px 0;
  font-size: 14px;
  line-height: 1.7;
}
.psch-empty-icon {
  font-size: 32px;
  margin-bottom: 8px;
  display: block;
}
.psch-empty-hint {
  font-size: 12px;
  margin-top: 4px;
  opacity: 0.75;
}

/* ── PROFILE ─────────────────────────────────────────── */
.psch-profile {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.psch-avatar-wrap {
  display: flex;
  justify-content: center;
  padding: 8px 0;
}
.psch-avatar-img {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(0, 0, 0, 0.07);
}
.psch-avatar-placeholder {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--ps-primary, #6c47ff);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.psch-profile-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.psch-label {
  font-size: 11.5px;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 4px;
}
.psch-opt {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: #bbb;
}
.psch-input {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  background: rgba(0, 0, 0, 0.02);
  box-sizing: border-box;
  transition: border-color 0.18s, box-shadow 0.18s;
  -webkit-appearance: none;
}
.psch-input:focus {
  border-color: var(--ps-primary, #6c47ff);
  box-shadow: 0 0 0 3px rgba(108, 71, 255, 0.1);
}
.psch-phone-display {
  padding: 11px 13px;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 10px;
  font-size: 15px;
  color: #666;
  border: 1px solid rgba(0, 0, 0, 0.06);
}
.psch-btn {
  width: 100%;
  padding: 13px 20px;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.18s, transform 0.1s;
  margin-top: 4px;
  text-align: center;
}
.psch-btn:hover   { opacity: 0.88; }
.psch-btn:active  { transform: scale(0.98); }
.psch-btn.primary { background: var(--ps-primary, #6c47ff); color: #fff; }
.psch-btn.danger  { background: rgba(220, 53, 69, 0.08); color: #c82333; }

/* ── SECTION HEADERS ─────────────────────────────────── */
.psch-section-header {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #bbb;
  padding: 14px 0 6px;
}
.psch-section-header:first-child { padding-top: 4px; }

/* ── CARD LIST ───────────────────────────────────────── */
.psch-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.psch-card {
  background: rgba(0, 0, 0, 0.015);
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 12px;
  padding: 12px 14px;
}
.psch-card-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}
.psch-card-title {
  font-size: 14px;
  font-weight: 600;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.psch-card-meta {
  font-size: 12px;
  color: #999;
  margin-top: 4px;
}
.psch-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.psch-action-btn {
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.11);
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s;
  color: #333;
}
.psch-action-btn:hover  { background: rgba(0, 0, 0, 0.04); }
.psch-action-btn.danger {
  color: #c82333;
  border-color: rgba(220, 53, 69, 0.2);
}
.psch-action-btn.danger:hover { background: rgba(220, 53, 69, 0.06); }

/* ── STATUS CHIPS ────────────────────────────────────── */
.psch-status-chip {
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}
.status-active    { background: rgba(52,  199,  89, 0.12); color: #1a7f39; }
.status-done      { background: rgba(108,  71, 255, 0.10); color: #5b36d4; }
.status-cancelled { background: rgba(220,  53,  69, 0.10); color: #c82333; }
.status-pending   { background: rgba(255, 149,   0, 0.12); color: #b55e00; }

/* ── FAVORITES ───────────────────────────────────────── */
.psch-fav-card {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: background 0.15s;
}
.psch-fav-card:hover { background: rgba(0, 0, 0, 0.03); }

.psch-fav-logo {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(0, 0, 0, 0.07);
}
.psch-fav-logo-ph {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--ps-primary, #6c47ff);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}
.psch-fav-info {
  flex: 1;
  min-width: 0;
}
.psch-fav-remove {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.06);
  color: #aaa;
  cursor: pointer;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}
.psch-fav-remove:hover {
  background: rgba(220, 53, 69, 0.10);
  color: #c82333;
}

/* ── DOCK FAV BUTTON ─────────────────────────────────── */
.psch-dock-fav {
  cursor: pointer;
  user-select: none;
}

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (min-width: 480px) {
  .psch-tab   { font-size: 13px; padding: 11px 16px 10px; }
  .psch-content { padding: 20px; }
}
@media (min-width: 768px) {
  .psch-hub { min-height: 70vh; }
}


/* PS-9341 — profile notification center */
.psch-notify-card{margin-top:7px;padding:13px;border:1px solid color-mix(in srgb,var(--ps-primary,#6c47ff) 18%,rgba(0,0,0,.08));border-radius:14px;background:color-mix(in srgb,var(--ps-primary,#6c47ff) 5%,transparent);display:grid;gap:10px}.psch-notify-card small{display:block;font-size:9px;letter-spacing:.11em;color:var(--ps-primary,#6c47ff);font-weight:850}.psch-notify-card b{display:block;margin-top:3px;font-size:14px}.psch-notify-card span{display:block;margin-top:3px;font-size:11px;line-height:1.45;color:#777}.psch-btn.psch-notify-manage{margin:0;padding:10px 12px;background:rgba(0,0,0,.045);color:inherit;border:1px solid rgba(0,0,0,.09);font-size:12px}


/* PS-9472 — Standard storefront customer feed: compact by default, tap to expand.
   Template packages may restyle the progress marker/track via the data-ps-progress-* hooks
   without replacing order/appointment state authority. */
.psch-list{gap:6px}
.psch-feed-card{padding:9px 11px;border-radius:13px;cursor:pointer;transition:border-color .16s ease,background .16s ease,box-shadow .16s ease;outline:none}
.psch-feed-card:focus-visible{box-shadow:0 0 0 2px color-mix(in srgb,var(--ps-primary,#6c47ff) 34%,transparent)}
.psch-feed-card.is-expanded{border-color:color-mix(in srgb,var(--ps-primary,#6c47ff) 28%,rgba(0,0,0,.08));background:color-mix(in srgb,var(--ps-primary,#6c47ff) 3%,rgba(0,0,0,.015))}
.psch-card-summary{align-items:center}.psch-card-title{font-size:13px}.psch-card-meta--compact{margin-top:2px;font-size:10.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.psch-status-chip{font-size:9px;padding:2px 6px;border-radius:999px}
.psch-card-expanded{display:grid;grid-template-rows:0fr;opacity:0;overflow:hidden;transition:grid-template-rows .18s ease,opacity .15s ease}.psch-card-expanded>*{min-height:0}.psch-feed-card.is-expanded .psch-card-expanded{grid-template-rows:1fr;opacity:1;overflow:visible}
.psch-progress{margin-top:9px;padding-top:9px;border-top:1px solid color-mix(in srgb,currentColor 8%,transparent);position:relative}
.psch-progress-track{position:relative;display:grid;grid-template-columns:repeat(var(--psch-progress-total),minmax(0,1fr));gap:4px;padding-top:4px}
.psch-progress-segment{display:grid;gap:4px;min-width:0}.psch-progress-segment i{display:block;height:4px;border-radius:999px;background:color-mix(in srgb,currentColor 12%,transparent)}
.psch-progress-segment.is-done i,.psch-progress-segment.is-current i{background:var(--ps-primary,#6c47ff);box-shadow:0 0 9px color-mix(in srgb,var(--ps-primary,#6c47ff) 24%,transparent)}
.psch-progress-segment b{font-size:7px;line-height:1.05;color:#999;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.psch-progress-segment.is-current b{color:inherit}
.psch-progress-marker{position:absolute;z-index:3;top:0;left:clamp(0px,var(--psch-progress-ratio),calc(100% - 10px));width:10px;height:10px;border-radius:50%;background:var(--ps-primary,#6c47ff);border:2px solid var(--ps-surface,#fff);box-shadow:0 3px 10px color-mix(in srgb,var(--ps-primary,#6c47ff) 35%,transparent);transform:translateX(-1px);transition:left .2s ease}
.psch-progress-current{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-top:8px;font-size:10px}.psch-progress-current span{color:#999}.psch-progress-current b{font-size:10.5px}
.psch-expanded-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-top:8px}.psch-expanded-details>span{display:grid;gap:2px;padding:7px 8px;border-radius:9px;background:color-mix(in srgb,currentColor 4%,transparent);font-size:10px;min-width:0;overflow:hidden;text-overflow:ellipsis}.psch-expanded-details b{font-size:7px;letter-spacing:.08em;text-transform:uppercase;color:#999}
.psch-card-actions{margin-top:8px;gap:6px}.psch-action-btn{padding:6px 10px;font-size:10px;border-radius:8px;flex:1}
@media(max-width:430px){.psch-feed-card{padding:8px 9px}.psch-progress-segment b{font-size:6px}.psch-expanded-details{grid-template-columns:1fr}.psch-progress-current{margin-top:6px}}
