/* ===== Available Services Shop ===== */
.as-page { padding: 12px 6px; }
.as-topbar {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; padding: 14px 14px; margin-bottom: 14px;
  background: #fff; border: 1px solid #e6e6e6; border-radius: 14px;
}
.as-title { font-size: 20px; font-weight: 700; line-height: 1.2; }
.as-subtitle { margin-top: 4px; color: #6b7280; }
.as-topbar-actions { display: flex; align-items: center; gap: 12px; }
.as-mini-summary { padding: 10px 12px; border: 1px solid #eee; border-radius: 12px; background: #fafafa; min-width: 200px; }
.as-mini-line { display: flex; justify-content: space-between; gap: 10px; }
.as-mini-label { color: #6b7280; }
.as-mini-value { font-weight: 700; }
.as-btn-shadow { box-shadow: 0 8px 18px rgba(0,0,0,0.10); border-radius: 10px; }

.as-grid { margin-top: 6px; }
.as-card {
  background: #fff; border: 1px solid #e8e8e8; border-radius: 16px;
  overflow: hidden; margin-bottom: 16px;
  transition: transform .12s ease, box-shadow .12s ease;
}
.as-card:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(0,0,0,0.10); }

.as-card-media { position: relative; }
.as-card-img { width: 100%; height: 170px; object-fit: cover; display: block; background: #f3f4f6; }
.as-price-badge {
  position: absolute; right: 10px; bottom: 10px;
  background: rgba(17,24,39,0.92); color: #fff;
  padding: 6px 10px; border-radius: 999px; font-weight: 700;
}

.as-card-body { padding: 12px 12px 6px; display: flex; justify-content: space-between;
    align-items: baseline; cursor: pointer;}
.as-card-title { font-weight: 800; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.as-card-info { color: #6b7280;  }

.as-card-footer { padding: 12px; border-top: 1px solid #f0f0f0; }

.as-qty-wrap { width: 100%; padding: 6px 0 2px; }
.as-qty-label { font-weight: 700; margin-bottom: 6px; }
.as-qty-group { border-radius: 12px; overflow: hidden; }
.as-qty-input { text-align: center; font-weight: 800; }
.as-qty-icon { display: inline-block; width: 18px; text-align: center; font-weight: 900; font-size: 16px; }
.as-qty-hint { margin-top: 6px; color: #6b7280; font-size: 12px; }

.as-cart {
  margin-top: 16px; padding: 14px;
  background: #fff; border: 1px solid #e6e6e6; border-radius: 16px;
}
.as-cart-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 10px; margin-bottom: 10px;
}
.as-pill { border-radius: 999px; padding: 6px 10px; }

.as-table thead th { white-space: nowrap; }
.as-thumb { width: 54px; height: 54px; object-fit: cover; border-radius: 10px; border: 1px solid #eee; background: #f3f4f6; }
.as-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }
.as-muted { color: #6b7280; }
.as-foot-label { color: #6b7280; font-weight: 700; }
.as-foot-value { font-weight: 900; }
.as-foot-grand { font-size: 16px; }
.as-cart-actions { display: flex; justify-content: flex-end; margin-top: 10px; }

/* ===== Purchased Services Table ===== */
.ps-page { padding: 12px 6px; }
.ps-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; padding: 14px 14px; margin-bottom: 12px;
  background: #fff; border: 1px solid #e6e6e6; border-radius: 14px;
}
.ps-title { font-size: 20px; font-weight: 800; }
.ps-subtitle { margin-top: 4px; color: #6b7280; }
.ps-pill { border-radius: 999px; padding: 6px 10px; align-self: center; }
.ps-table { background: #fff; border: 1px solid #e6e6e6; border-radius: 14px; overflow: hidden; }
.ps-row { cursor: pointer; }
.ps-thumb { width: 56px; height: 56px; object-fit: cover; border-radius: 12px; border: 1px solid #eee; background: #f3f4f6; }
.ps-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }
.ps-muted { color: #6b7280; }
.ps-badges { margin-top: 6px; display: flex; gap: 6px; flex-wrap: wrap; }
.ps-empty { color: #6b7280; text-align: center; padding: 18px; }

/* ===== Purchased Details Modal ===== */
.psd-header { border-bottom: 1px solid #eee; }
.psd-body { padding-top: 12px; }
.psd-top {  }
.psd-img {     height: 296px;
    object-fit: cover;
    background: #f3f4f6;
    margin: 0 auto;
    display: block; }
.psd-info { flex: 1; }
.psd-name { font-size: 18px; font-weight: 900; }
.psd-desc { margin-top: 6px; color: #6b7280; }
.psd-badges { margin-top: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.psd-sep { margin: 14px 0; }
.psd-kv { margin-bottom: 10px; }
.psd-key { color: #6b7280; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.psd-value { font-weight: 900; font-size: 14px; }
.psd-total {
  margin-top: 14px; padding: 12px; border: 1px solid #eee; background: #fafafa; border-radius: 14px;
  display: flex; justify-content: space-between; align-items: center;
}
.psd-total-label { color: #6b7280; font-weight: 800; }
.psd-total-value { font-weight: 900; font-size: 18px; }

