/* ==========================================================================
   TT Shop Seller Center — dashboard shell, wallet, VIP, timeline, charts
   ========================================================================== */

/* ---------- Navbar: "Sell on TT Shop" CTA (desktop) ---------- */
.navbar-sell-cta {
  background: var(--secondary) !important;
  color: #fff !important;
  margin-left: 4px;
}
.navbar-sell-cta:hover { background: #000 !important; }

/* ---------- Status Badge (generic, tone-based) ---------- */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
}
.status-badge.tone-success { background: var(--success-light); color: var(--success); }
.status-badge.tone-warning { background: #fff2d9; color: #a15400; }
.status-badge.tone-danger { background: var(--primary-light); color: var(--danger); }
.status-badge.tone-info { background: #e3ecff; color: #2545c9; }
.status-badge.tone-accent { background: var(--accent-light); color: var(--accent); }
.status-badge.tone-primary { background: var(--primary-light); color: var(--primary); }
.status-badge.tone-neutral { background: var(--background); color: var(--text-faint); }

/* ---------- Seller Shell Layout ---------- */
.seller-shell { display: block; background: var(--background); min-height: 100vh; }
.seller-main { display: flex; flex-direction: column; min-height: 100vh; min-width: 0; }
.seller-content { flex: 1; min-width: 0; padding: 16px 16px calc(24px + var(--bottom-nav-h)); }
/* .seller-content already provides the page gutter — components authored for
   edge-to-edge sections (home.php style) must not add their own on top of it. */
.seller-content .section-header,
.seller-content .listing-toolbar,
.seller-content .listing-count { padding-inline: 0; }
.seller-content .checkout-section,
.seller-content .wallet-balance-card,
.seller-content .transaction-list { margin-inline: 0; }

.seller-topbar {
  position: sticky;
  top: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  padding-top: calc(14px + env(safe-area-inset-top, 0px));
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.seller-topbar-title { font-size: 1.05rem; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seller-topbar-actions { display: flex; align-items: center; gap: 6px; }
.seller-wallet-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: var(--secondary);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}
.seller-wallet-chip i { color: #ffd166; }
.seller-topbar-avatar img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; display: block; }
.seller-drawer-toggle { display: inline-flex; }

/* ---------- Seller Sidebar (mobile: off-canvas drawer) ---------- */
.seller-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 15, 18, 0.45);
  z-index: 199;
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease);
}
.seller-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 280px;
  background: var(--surface);
  z-index: 200;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform var(--dur-base) var(--ease);
  box-shadow: var(--shadow-lg);
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.seller-sidebar.open { transform: translateX(0); }
.seller-drawer-close { display: inline-flex; }
.seller-sidebar-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px;
  border-bottom: 1px solid var(--border);
}
.seller-sidebar-profile img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.seller-sidebar-profile .name { font-weight: 600; font-size: 0.9rem; margin-bottom: 4px; }
.seller-sidebar-profile > div { flex: 1; min-width: 0; }
.seller-sidebar-nav { flex: 1; overflow-y: auto; padding: 12px 10px; }
.seller-sidebar-group-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-faint);
  font-weight: 700;
  padding: 14px 10px 6px;
}
.seller-sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
}
.seller-sidebar-link i { width: 20px; text-align: center; font-size: 1rem; }
.seller-sidebar-link:hover { background: var(--background); color: var(--text); }
.seller-sidebar-link.active { background: var(--primary-light); color: var(--primary); font-weight: 600; }
.seller-sidebar-link.danger { color: var(--danger); }
.seller-sidebar-footer { border-top: 1px solid var(--border); padding: 10px; }

/* ---------- Seller "More" bottom sheet (mobile) ---------- */
.seller-more-sheet .leftbar-header { position: relative; }
.seller-more-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 16px;
  overflow-y: auto;
}
.seller-more-item { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.seller-more-item span {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--primary-light); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.seller-more-item p { font-size: 0.72rem; font-weight: 500; }

/* ---------- Stat Card ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.stat-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  min-width: 0;
  box-shadow: var(--shadow-sm);
}
.stat-card-icon {
  width: 42px; height: 42px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem; flex-shrink: 0;
}
.stat-card-icon.tone-primary { background: var(--primary-light); color: var(--primary); }
.stat-card-icon.tone-success { background: var(--success-light); color: var(--success); }
.stat-card-icon.tone-accent { background: var(--accent-light); color: var(--accent); }
.stat-card-icon.tone-info { background: #e3ecff; color: #2545c9; }
.stat-card-body { min-width: 0; }
.stat-card-label { font-size: 0.76rem; color: var(--text-muted); margin-bottom: 4px; }
.stat-card-value { font-size: 1.1rem; font-weight: 700; overflow-wrap: break-word; line-height: 1.25; }
.stat-card-trend { display: inline-flex; align-items: center; gap: 4px; font-size: 0.72rem; font-weight: 600; margin-top: 4px; }
.stat-card-trend.up { color: var(--success); }
.stat-card-trend.down { color: var(--danger); }

/* ---------- Dashboard sections ---------- */
.dashboard-hero {
  background: linear-gradient(135deg, var(--secondary), #33353b);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 16px;
}
.dashboard-hero p.eyebrow { font-size: 0.8rem; opacity: 0.8; margin-bottom: 4px; }
.dashboard-hero h2 { font-size: 1.2rem; margin-bottom: 6px; }
.dashboard-hero .store-status-row { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; opacity: 0.9; }

.quick-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 16px 0; }
.quick-action-btn {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: var(--surface); border-radius: var(--radius-md);
  padding: 14px 8px; box-shadow: var(--shadow-sm); text-align: center;
  transition: transform var(--dur-fast) var(--ease);
}
.quick-action-btn:hover { transform: translateY(-2px); }
.quick-action-btn span {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--primary-light); color: var(--primary);
  display: flex; align-items: center; justify-content: center; font-size: 1.05rem;
}
.quick-action-btn p { font-size: 0.72rem; font-weight: 500; line-height: 1.3; }

.onboarding-card { background: var(--surface); border-radius: var(--radius-md); padding: 18px; box-shadow: var(--shadow-sm); margin-bottom: 16px; }
.onboarding-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.onboarding-card-header h3 { font-size: 0.98rem; }
.onboarding-percent { font-weight: 700; color: var(--primary); font-size: 0.9rem; }
.progress-track { height: 8px; border-radius: var(--radius-pill); background: var(--background); overflow: hidden; margin: 8px 0 14px; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: var(--radius-pill); transition: width var(--dur-base) var(--ease); }
.onboarding-steps { display: flex; flex-direction: column; gap: 10px; }
.onboarding-step { display: flex; align-items: center; gap: 10px; font-size: 0.86rem; }
.onboarding-step .dot {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 0.7rem;
  border: 2px solid var(--border-strong); color: transparent;
}
.onboarding-step.done .dot { background: var(--success); border-color: var(--success); color: #fff; }
.onboarding-step.done span.label { color: var(--text-faint); text-decoration: line-through; }

/* ---------- Seller Order Card ---------- */
.seller-order-card { background: var(--surface); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); margin-bottom: 12px; overflow: hidden; }
.seller-order-card-header { display: flex; align-items: flex-start; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.seller-order-id { font-weight: 600; font-size: 0.85rem; }
.seller-order-date { font-size: 0.72rem; color: var(--text-faint); margin-top: 2px; }
.seller-order-customer { display: flex; align-items: center; gap: 8px; padding: 10px 14px; font-size: 0.82rem; border-bottom: 1px solid var(--border); }
.seller-order-customer img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.seller-order-customer span:nth-child(2) { flex: 1; font-weight: 500; }
.seller-order-product { display: flex; gap: 10px; padding: 12px 14px; }
.seller-order-product img { width: 50px; height: 50px; border-radius: var(--radius-sm); object-fit: cover; flex-shrink: 0; }
.seller-order-product .name { font-size: 0.84rem; }
.seller-order-product .name span { color: var(--text-faint); }
.seller-order-product .more { font-size: 0.74rem; color: var(--text-faint); margin-top: 2px; }
.seller-order-figures {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 8px; padding: 0 14px 14px; text-align: center;
}
.seller-order-figures span { display: block; font-size: 0.68rem; color: var(--text-faint); margin-bottom: 2px; }
.seller-order-figures strong { font-size: 0.86rem; }
.seller-order-figures .profit strong { color: var(--success); }
.seller-order-actions { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--border); }
.seller-order-actions .btn { flex: 1; }

/* ---------- Order status filter tabs (reuse .tabs) ---------- */
.seller-status-tabs { position: sticky; top: calc(var(--header-h) - 8px); z-index: 20; background: var(--background); margin: 0 -16px 12px; padding: 0 16px; }

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 4px; }
.timeline-item { position: relative; padding-left: 32px; padding-bottom: 26px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 22px;
  bottom: -4px;
  width: 2px;
  background: var(--border);
}
.timeline-item:last-child::before { display: none; }
.timeline-item.state-done::before { background: var(--success); }
.timeline-dot {
  position: absolute;
  left: 0;
  top: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--background);
  border: 2px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem; color: #fff;
}
.timeline-item.state-done .timeline-dot { background: var(--success); border-color: var(--success); }
.timeline-item.state-active .timeline-dot { background: var(--primary); border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-light); animation: pulseDot 1.6s ease infinite; }
.timeline-item.state-terminal .timeline-dot { background: var(--danger); border-color: var(--danger); }
@keyframes pulseDot { 0%,100% { box-shadow: 0 0 0 4px var(--primary-light); } 50% { box-shadow: 0 0 0 8px transparent; } }
.timeline-label { font-size: 0.86rem; font-weight: 500; padding-top: 2px; }
.timeline-item.state-pending .timeline-label { color: var(--text-faint); }
.timeline-item.state-done .timeline-label,
.timeline-item.state-active .timeline-label { color: var(--text); }

/* ---------- VIP Card ---------- */
.vip-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.vip-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 20px;
  color: #fff;
  background: var(--vip-gradient, linear-gradient(135deg,#9a9ea3,#6b7075));
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.vip-card.is-current { outline: 3px solid rgba(255,255,255,0.6); outline-offset: -3px; }
.vip-card-current-tag {
  position: absolute; top: 14px; right: 14px;
  background: rgba(255,255,255,0.25); padding: 3px 10px; border-radius: var(--radius-pill);
  font-size: 0.68rem; font-weight: 700;
}
.vip-card-icon { font-size: 1.6rem; margin-bottom: 8px; opacity: 0.95; }
.vip-card-name { font-size: 1.2rem; margin-bottom: 4px; }
.vip-card-min { font-size: 0.78rem; opacity: 0.9; margin-bottom: 10px; }
.vip-card-discount { font-size: 1.5rem; font-weight: 700; margin-bottom: 12px; }
.vip-card-benefits { display: flex; flex-direction: column; gap: 6px; margin-bottom: 6px; }
.vip-card-benefits li { font-size: 0.8rem; display: flex; gap: 8px; align-items: flex-start; opacity: 0.95; }
.vip-card-progress { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,0.3); }
.vip-card-progress p { font-size: 0.78rem; margin-bottom: 8px; }
.vip-card-progress .progress-track { background: rgba(255,255,255,0.25); }
.vip-card-progress .progress-fill { background: #fff; }
.vip-card-progress-max { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,0.3); font-size: 0.82rem; font-weight: 600; }

/* Compact VIP pricing table (product_detail) */
.vip-price-table { display: flex; flex-direction: column; gap: 8px; }
.vip-price-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px; border-radius: var(--radius-sm); border: 1.5px solid var(--border);
}
.vip-price-row.is-current { border-color: var(--primary); background: var(--primary-light); }
.vip-price-row .tier { display: flex; align-items: center; gap: 8px; font-size: 0.84rem; font-weight: 600; }
.vip-price-row .tier i { color: var(--warning); }
.vip-price-row .price { font-weight: 700; }
.vip-price-row .price small { display: block; font-weight: 400; font-size: 0.68rem; color: var(--text-faint); }

/* ---------- Store Card ---------- */
.store-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.store-hscroll .store-card { flex: 0 0 150px; }
.store-card { background: var(--surface); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform var(--dur-base) var(--ease); }
.store-card:hover { transform: translateY(-3px); }
.store-card-cover { aspect-ratio: 16/7; background-size: cover; background-position: center; }
.store-card-body { padding: 12px; text-align: center; position: relative; }
.store-card-logo { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 3px solid var(--surface); margin-top: -36px; margin-inline: auto; display: block; box-shadow: var(--shadow-sm); }
.store-card-name { font-weight: 600; font-size: 0.86rem; margin-top: 8px; }
.store-card-meta { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 0.74rem; color: var(--text-muted); margin-top: 4px; }
.store-card-meta .stars { color: var(--warning); }
.store-card-followers { font-size: 0.7rem; color: var(--text-faint); margin-top: 2px; }

/* ---------- Wallet ---------- */
.wallet-balance-card {
  background: linear-gradient(135deg, var(--secondary), #33353b);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
  margin-bottom: 16px;
}
.wallet-balance-card p.label { font-size: 0.82rem; opacity: 0.85; margin-bottom: 6px; }
.wallet-balance-card .amount { font-size: 2.2rem; font-weight: 700; margin-bottom: 18px; }
.wallet-balance-actions { display: flex; gap: 10px; }
.wallet-balance-actions .btn { flex: 1; background: rgba(255,255,255,0.14); color: #fff; }
.wallet-balance-actions .btn.btn-primary { background: var(--primary); }
.transaction-list { background: var(--surface); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); overflow: hidden; }
.transaction-item { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-bottom: 1px solid var(--border); }
.transaction-item:last-child { border-bottom: none; }
.transaction-icon { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; flex-shrink: 0; }
.transaction-icon.tone-success { background: var(--success-light); color: var(--success); }
.transaction-icon.tone-danger { background: var(--primary-light); color: var(--danger); }
.transaction-icon.tone-warning { background: #fff2d9; color: #a15400; }
.transaction-icon.tone-info { background: #e3ecff; color: #2545c9; }
.transaction-icon.tone-primary { background: var(--primary-light); color: var(--primary); }
.transaction-icon.tone-accent { background: var(--accent-light); color: var(--accent); }
.transaction-item.is-unread { background: var(--primary-light); }
.transaction-item.is-unread .transaction-title { font-weight: 600; }
.transaction-item .unread-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); flex-shrink: 0; }
.transaction-info { flex: 1; min-width: 0; }
.transaction-title { font-size: 0.84rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.transaction-date { font-size: 0.72rem; color: var(--text-faint); margin-top: 2px; }
.transaction-amount { font-weight: 700; font-size: 0.88rem; white-space: nowrap; }
.transaction-amount.tone-success { color: var(--success); }
.transaction-amount.tone-danger { color: var(--danger); }
.transaction-amount.tone-warning { color: #a15400; }

/* ---------- Top-up amount picker ---------- */
.amount-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.amount-chip {
  padding: 14px 8px; text-align: center; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border); font-weight: 600; font-size: 0.92rem;
}
.amount-chip.active { border-color: var(--primary); background: var(--primary-light); color: var(--primary); }
.payment-method-grid { display: flex; flex-direction: column; gap: 10px; }

/* ---------- Insufficient wallet modal ---------- */
.wallet-check-row { display: flex; justify-content: space-between; padding: 10px 0; font-size: 0.88rem; border-bottom: 1px dashed var(--border); }
.wallet-check-row:last-of-type { border-bottom: none; }
.wallet-check-row.shortfall { color: var(--danger); font-weight: 700; }

/* ---------- Success profit state ---------- */
.profit-success-card { text-align: center; padding: 8px 0; }
.profit-success-icon { width: 72px; height: 72px; border-radius: 50%; background: var(--success-light); color: var(--success); display: flex; align-items: center; justify-content: center; font-size: 1.8rem; margin: 0 auto 14px; }
.profit-success-amount { font-size: 1.8rem; font-weight: 700; color: var(--success); margin: 10px 0; }

/* ---------- Chart (pure SVG, no library) ---------- */
.chart-card { background: var(--surface); border-radius: var(--radius-md); padding: 16px; box-shadow: var(--shadow-sm); margin-bottom: 16px; }
.chart-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.chart-card-header h3 { font-size: 0.94rem; }
.chart-svg-wrap { width: 100%; overflow: hidden; }
.chart-svg-wrap svg { width: 100%; height: auto; display: block; }
.chart-legend { display: flex; gap: 16px; margin-top: 10px; font-size: 0.76rem; color: var(--text-muted); }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

/* ---------- Report table -> card on mobile ---------- */
.report-table-wrap { overflow-x: auto; }
.report-table { width: 100%; border-collapse: collapse; font-size: 0.84rem; min-width: 480px; }
.report-table th { text-align: left; font-size: 0.72rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.04em; padding: 8px 10px; border-bottom: 1px solid var(--border); }
.report-table td { padding: 10px; border-bottom: 1px solid var(--border); }

/* ---------- Customer card ---------- */
.customer-card { display: flex; align-items: center; gap: 12px; background: var(--surface); border-radius: var(--radius-md); padding: 14px; box-shadow: var(--shadow-sm); margin-bottom: 10px; }
.customer-card img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.customer-card-info { flex: 1; min-width: 0; }
.customer-card-name { font-weight: 600; font-size: 0.88rem; display: flex; align-items: center; gap: 6px; }
.customer-card-meta { display: flex; gap: 12px; font-size: 0.74rem; color: var(--text-muted); margin-top: 4px; }
.customer-card-spend { text-align: right; }
.customer-card-spend strong { display: block; font-size: 0.9rem; color: var(--primary); }
.customer-card-spend span { font-size: 0.68rem; color: var(--text-faint); }

/* ---------- Catalog / seller product card (cost/profit visible) ---------- */
.catalog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.catalog-card { background: var(--surface); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.catalog-card-media { aspect-ratio: 1/1; overflow: hidden; background: var(--background); }
.catalog-card-media img { width: 100%; height: 100%; object-fit: cover; }
.catalog-card-body { padding: 12px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.catalog-card-name { font-size: 0.82rem; font-weight: 500; line-height: 1.35; min-height: 2.2em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.catalog-card-figures { display: flex; flex-direction: column; gap: 4px; font-size: 0.76rem; }
.catalog-card-figures .row { display: flex; justify-content: space-between; }
.catalog-card-figures .row span:first-child { color: var(--text-faint); }
.catalog-card-figures .row.profit span:last-child { color: var(--success); font-weight: 700; }
.catalog-card-figures .row.cost span:last-child { text-decoration: line-through; color: var(--text-faint); }
.catalog-card .btn { margin-top: auto; }
.catalog-card.in-store { outline: 2px solid var(--success); }
.catalog-card { position: relative; }
.catalog-card-select {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 26px;
  height: 26px;
  z-index: 2;
  accent-color: var(--primary);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 6px;
  box-shadow: var(--shadow-sm);
}
.catalog-card.is-selected { outline: 2px solid var(--primary); }

/* ---------- Bulk-add sticky bar + modal ---------- */
.catalog-bulk-bar {
  position: sticky;
  bottom: 0;
  z-index: 60;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  margin-top: 16px;
  box-shadow: var(--shadow-sm);
}
.catalog-bulk-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.catalog-bulk-row:last-child { border-bottom: none; }
.catalog-bulk-row img { width: 44px; height: 44px; border-radius: var(--radius-sm); object-fit: cover; flex-shrink: 0; }
.catalog-bulk-row .info { flex: 1; min-width: 0; }
.catalog-bulk-row .name { font-size: 0.8rem; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.catalog-bulk-row .cost { font-size: 0.72rem; color: var(--text-faint); }
.catalog-bulk-row input[type="number"] { width: 90px; height: 36px; font-size: 0.82rem; }
[data-add-to-store].is-added { background: var(--success-light) !important; color: var(--success) !important; opacity: 1; }
.catalog-card-added-tag { background: var(--success-light); color: var(--success); font-size: 0.7rem; font-weight: 700; padding: 4px 8px; border-radius: var(--radius-sm); text-align: center; }

/* ---------- Price / profit calculator (add_product) ---------- */
.price-calc-card { background: var(--surface); border-radius: var(--radius-md); padding: 18px; box-shadow: var(--shadow-sm); margin-bottom: 16px; }
.price-calc-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; font-size: 0.88rem; border-bottom: 1px dashed var(--border); }
.price-calc-row:last-child { border-bottom: none; }
.price-calc-row .label { color: var(--text-muted); }
.price-calc-row.highlight { font-weight: 700; }
.price-calc-row.highlight .value { color: var(--success); font-size: 1.05rem; }
.price-calc-slider-wrap { padding: 16px 0 4px; }
.price-calc-slider-wrap input[type="range"] { width: 100%; accent-color: var(--primary); }
.price-input-large { font-size: 1.4rem; font-weight: 700; border: none; background: transparent; width: 100%; text-align: right; color: var(--primary); }

/* ---------- Store public page (customer view) ---------- */
.store-hero { position: relative; }
.store-hero-cover { aspect-ratio: 3/1; background-size: cover; background-position: center; }
.store-hero-info { background: var(--surface); padding: 0 16px 16px; margin-top: -34px; position: relative; }
.store-hero-logo { width: 68px; height: 68px; border-radius: 50%; border: 4px solid var(--surface); object-fit: cover; box-shadow: var(--shadow-sm); }
.store-hero-name { font-size: 1.1rem; margin: 8px 0 4px; }
.store-hero-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 12px; }
.store-hero-meta .stars { color: var(--warning); }
.store-hero-actions { display: flex; gap: 10px; }
.store-hero-actions .btn { flex: 1; }
