/* ─── Shop Workspace Styles ─── */

/* ─── Workspace Container ──────────────────────────────────────────────── */

.shop-workspace {
  padding: var(--space-4);
  overflow-y: auto;
  height: 100%;
}

/* ─── Sidebar Nav ──────────────────────────────────────────────────────── */

.shop-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: var(--space-3);
}

.shop-nav-card {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: background 0.15s ease, color 0.15s ease;
  user-select: none;
}

.shop-nav-card:hover {
  background: var(--bg-muted);
  color: var(--text-main);
}

.shop-nav-card.active {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
}

/* ─── Sidebar Search & Filters ─────────────────────────────────────────── */

.shop-sidebar-search {
  padding: var(--space-2) 0;
}

.shop-sidebar-filters {
  display: flex;
  gap: var(--space-2);
  padding: var(--space-1) 0 var(--space-2);
}

.shop-sidebar-filters .form-select {
  font-size: 0.8rem;
  flex: 1;
}

/* ─── Result Count ─────────────────────────────────────────────────────── */

.shop-result-count {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-faint);
  padding: var(--space-1) var(--space-1);
  letter-spacing: 0.01em;
}

/* ─── Product List (Sidebar) ───────────────────────────────────────────── */

.shop-product-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.shop-product-card {
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.shop-product-card:hover {
  background: var(--bg-muted);
}

.shop-product-card.active {
  background: var(--primary-light);
  border-color: var(--primary-border);
}

.shop-product-card-name {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shop-product-card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  margin-top: 3px;
  font-size: 0.7rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

/* ─── Stock Indicators ────────────────────────────────────────────────── */

.shop-stock-indicator {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.shop-stock--out {
  color: var(--danger-text, #dc2626);
}

.shop-stock--backorder {
  color: var(--warning-text, #b45309);
}

/* ─── Order List (Sidebar) ─────────────────────────────────────────────── */

.shop-order-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.shop-order-status-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  padding: var(--space-2) 0;
}

.shop-order-tab {
  padding: var(--space-1) var(--space-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  background: transparent;
  font-size: 0.7rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.15s ease;
}

.shop-order-tab:hover {
  background: var(--bg-muted);
  color: var(--text-main);
}

.shop-order-tab.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.shop-order-row {
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s ease;
}

.shop-order-row:hover {
  background: var(--bg-muted);
}

.shop-order-row.active {
  background: var(--primary-light);
  border-color: var(--primary-border);
}

.shop-order-row-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
}

.shop-order-row-meta {
  font-size: 0.7rem;
  color: var(--text-faint);
  margin-top: 2px;
}

/* ─── Status Badges ────────────────────────────────────────────────────── */

.shop-status-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: capitalize;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.shop-status-badge--publish,
.shop-status-badge--completed {
  background: var(--success-bg);
  color: var(--success-text);
}

.shop-status-badge--draft {
  background: var(--bg-muted);
  color: var(--text-muted);
}

.shop-status-badge--pending {
  background: var(--warning-bg);
  color: var(--warning-text);
}

.shop-status-badge--processing {
  background: var(--info-bg);
  color: var(--info-text);
}

.shop-status-badge--on-hold {
  background: var(--warning-bg);
  color: var(--warning-text);
}

.shop-status-badge--cancelled,
.shop-status-badge--failed,
.shop-status-badge--trash {
  background: var(--danger-bg);
  color: var(--danger-text);
}

.shop-status-badge--private {
  background: #f3e8ff;
  color: #6b21a8;
}

.shop-status-badge--refunded {
  background: var(--bg-muted);
  color: var(--text-muted);
}

.shop-type-badge {
  display: inline-block;
  padding: 2px 6px;
  border-radius: var(--radius-pill);
  font-size: 0.65rem;
  font-weight: 500;
  background: var(--bg-muted);
  color: var(--text-muted);
  text-transform: capitalize;
}

.shop-sku-badge {
  font-size: 0.65rem;
  color: var(--text-faint);
  font-family: var(--font-mono);
}

.shop-readonly-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: 0.65rem;
  font-weight: 500;
  background: var(--bg-muted);
  color: var(--text-faint);
  border: 1px solid var(--border-subtle);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ─── Price Display ────────────────────────────────────────────────────── */

.shop-price-display {
  font-weight: 500;
}

.shop-price-display del {
  color: var(--text-faint);
  font-weight: 400;
  margin-right: 4px;
}

.shop-mono {
  font-family: var(--font-mono);
  font-size: 0.8em;
}

/* ─── Back Button ──────────────────────────────────────────────────────── */

.shop-back-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) 0;
  margin-bottom: var(--space-3);
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  cursor: pointer;
  transition: color 0.15s ease;
}

.shop-back-btn:hover {
  color: var(--primary);
}

/* ─── Main Panel Header ───────────────────────────────────────────────── */

.shop-main-header {
  margin-bottom: var(--space-3);
}

/* ─── Overview ─────────────────────────────────────────────────────────── */

.shop-overview {
  max-width: 960px;
}

.shop-overview-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}

.shop-overview-header .shop-section-title {
  margin-bottom: 0;
}

.shop-overview-updated {
  font-size: 0.75rem;
  color: var(--text-faint);
}

/* ─── Stat Cards ───────────────────────────────────────────────────────── */

.shop-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.shop-stat-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  transition: border-color 0.15s ease;
}

.shop-stat-card--accent {
  border-left: 3px solid var(--primary);
}

.shop-stat-label {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.shop-stat-value {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

/* ─── Quick Navigation ─────────────────────────────────────────────────── */

.shop-overview-quicknav {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.shop-quicknav-card {
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.shop-quicknav-card:hover {
  border-color: var(--primary-border);
  background: var(--primary-light);
}

.shop-quicknav-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 2px;
}

.shop-quicknav-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ─── Overview Section Headers ─────────────────────────────────────────── */

.shop-overview-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-3);
}

.shop-overview-section-header h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  margin: 0;
}

.shop-link-btn {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  transition: opacity 0.15s ease;
}

.shop-link-btn:hover {
  opacity: 0.7;
}

.shop-overview-recent {
  margin-top: var(--space-4);
}

/* ─── Section Titles ───────────────────────────────────────────────────── */

.shop-section-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: var(--space-3);
}

.shop-hint {
  font-size: 0.8rem;
  color: var(--text-faint);
  margin-top: var(--space-3);
}

/* ─── Product Table (Main Panel) ───────────────────────────────────────── */

.shop-product-table {
  max-width: 960px;
}

.shop-product-table-name {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.shop-product-thumb {
  width: 32px;
  height: 32px;
  object-fit: cover;
  border-radius: var(--radius-xs);
  flex-shrink: 0;
}

.shop-product-thumb-empty {
  display: inline-block;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-xs);
  background: var(--bg-muted);
  flex-shrink: 0;
}

.shop-table-row--active {
  background: var(--primary-light) !important;
}

/* ─── Product Editor ───────────────────────────────────────────────────── */

.shop-product-editor {
  max-width: 720px;
}

.shop-editor-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border-subtle);
}

.shop-editor-name-input {
  flex: 1;
  min-width: 200px;
  font-size: 1.125rem;
  font-weight: 600;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--bg-panel);
  color: var(--text-main);
  transition: border-color 0.15s ease;
}

.shop-editor-name-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: var(--focus-ring);
}

.shop-editor-badges {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

/* ─── Save Button States ───────────────────────────────────────────────── */

.shop-save-btn {
  margin-left: auto;
  font-size: 0.8rem;
  font-weight: 600;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  border: 1px solid;
  cursor: pointer;
  transition: all 0.15s ease;
}

.shop-save-btn--dirty {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.shop-save-btn--dirty:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}

.shop-save-btn--clean {
  background: var(--bg-muted);
  color: var(--text-faint);
  border-color: var(--border-subtle);
  cursor: default;
}

.shop-save-btn:disabled {
  opacity: 0.7;
}

/* ─── Variable Product Notice ──────────────────────────────────────────── */

.shop-variable-notice {
  padding: var(--space-2) var(--space-3);
  margin-bottom: var(--space-3);
  background: var(--info-bg);
  color: var(--info-text);
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--info-text, #0284c7);
  border-color: color-mix(in srgb, var(--info-text, #0284c7) 20%, transparent);
}

/* ─── Editor Sections ──────────────────────────────────────────────────── */

.shop-editor-section {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  margin-bottom: var(--space-3);
}

.shop-editor-section h5 {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--border-subtle);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.shop-collapsible-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}

.shop-collapsible-header h5 {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.shop-collapse-icon {
  font-size: 0.65rem;
  color: var(--text-faint);
  transition: transform 0.2s ease;
}

.shop-editor-section--collapsed .shop-collapse-icon {
  transform: rotate(-90deg);
}

.shop-collapsible-body {
  margin-top: var(--space-3);
  padding-top: var(--space-2);
  border-top: 1px solid var(--border-subtle);
}

/* ─── Field Rows ───────────────────────────────────────────────────────── */

.shop-field-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  margin-bottom: var(--space-3);
  position: relative;
}

.shop-field-row:last-child {
  margin-bottom: 0;
}

.shop-field-row > label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.shop-field-row--checkbox > label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.8rem;
  color: var(--text-main);
  cursor: pointer;
  text-transform: none;
  letter-spacing: normal;
}

.shop-field-row--checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}

.shop-readonly-value {
  font-size: 0.8rem;
  color: var(--text-faint);
}

.shop-dims-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-2);
}

.shop-detail-rows {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.shop-detail-row {
  font-size: 0.8rem;
  color: var(--text-main);
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
}

.shop-detail-label {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  min-width: 60px;
  flex-shrink: 0;
}

.shop-detail-row--total {
  padding-top: var(--space-1);
  border-top: 1px solid var(--border-subtle);
  margin-top: var(--space-1);
}

/* ─── Order Date Row ───────────────────────────────────────────────────── */

.shop-order-date-row {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}

/* ─── Order Detail Grid ────────────────────────────────────────────────── */

.shop-order-detail {
  max-width: 720px;
}

.shop-order-detail .shop-editor-header {
  margin-bottom: var(--space-2);
}

.shop-order-detail .shop-editor-header h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0;
}

.shop-order-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

@media (max-width: 600px) {
  .shop-order-detail-grid {
    grid-template-columns: 1fr;
  }
}

/* ─── Tables ───────────────────────────────────────────────────────────── */

.shop-order-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.shop-order-table th {
  text-align: left;
  font-weight: 600;
  color: var(--text-faint);
  padding: var(--space-2) var(--space-3);
  border-bottom: 2px solid var(--border-subtle);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.shop-order-table td {
  padding: var(--space-2) var(--space-3);
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-main);
}

.shop-order-table tbody tr:hover {
  background: var(--bg-subtle);
}

.shop-order-row-clickable {
  cursor: pointer;
}

/* ─── Attributes Table ─────────────────────────────────────────────────── */

.shop-attr-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.shop-attr-table th {
  text-align: left;
  font-weight: 600;
  color: var(--text-faint);
  padding: var(--space-2) var(--space-3);
  border-bottom: 2px solid var(--border-subtle);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.shop-attr-table td {
  padding: var(--space-2) var(--space-3);
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-main);
  vertical-align: top;
}

.shop-attr-values {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.shop-attr-value-pill {
  display: inline-block;
  padding: 1px 6px;
  background: var(--bg-muted);
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.shop-attr-yes {
  color: var(--success-text);
  font-weight: 500;
  font-size: 0.8rem;
}

.shop-attr-no {
  color: var(--text-faint);
  font-size: 0.8rem;
}

/* ─── Variation Table ──────────────────────────────────────────────────── */

.shop-variation-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.shop-variation-table th {
  text-align: left;
  font-weight: 600;
  color: var(--text-faint);
  padding: var(--space-2) var(--space-3);
  border-bottom: 2px solid var(--border-subtle);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.shop-variation-table td {
  padding: var(--space-2) var(--space-3);
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-main);
}

.shop-variation-count {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: var(--space-2);
}

/* ─── Images ───────────────────────────────────────────────────────────── */

.shop-image-preview {
  width: 120px;
  height: 120px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-subtle);
  margin-bottom: var(--space-2);
}

.shop-image-preview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.shop-image-placeholder {
  font-size: 0.75rem;
  color: var(--text-faint);
}

.shop-gallery-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.shop-gallery-thumb {
  width: 72px;
  height: 72px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-subtle);
}

.shop-gallery-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
}

.shop-gallery-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--danger);
  color: #fff;
  border: none;
  font-size: 0.7rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.shop-gallery-thumb:hover .shop-gallery-remove {
  opacity: 1;
}

.shop-gallery-add {
  border-style: dashed;
  cursor: pointer;
  font-size: 1.25rem;
  color: var(--text-faint);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.shop-gallery-add:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ─── Chip Selector ────────────────────────────────────────────────────── */

.shop-chip-container {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  align-items: center;
}

.shop-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid var(--primary-border);
}

.shop-chip-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--primary);
  font-size: 0.85rem;
  line-height: 1;
  padding: 0 2px;
  opacity: 0.5;
  transition: opacity 0.15s ease;
}

.shop-chip-remove:hover {
  opacity: 1;
}

.shop-chip-add {
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  background: transparent;
  border: 1px dashed var(--border-subtle);
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.shop-chip-add:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.shop-chip-dropdown {
  position: absolute;
  z-index: 100;
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  max-height: 200px;
  overflow-y: auto;
  min-width: 180px;
  margin-top: var(--space-1);
}

.shop-chip-dropdown-item {
  padding: var(--space-2) var(--space-3);
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.1s ease;
}

.shop-chip-dropdown-item:hover {
  background: var(--bg-muted);
}

.shop-chip-dropdown-empty {
  padding: var(--space-2) var(--space-3);
  font-size: 0.8rem;
  color: var(--text-faint);
}

/* ─── Period Toggle Bar ────────────────────────────────────────────────── */

.shop-period-bar {
  display: inline-flex;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: var(--space-4);
}

.shop-period-btn {
  padding: var(--space-2) var(--space-3);
  background: var(--bg-panel);
  border: none;
  border-right: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.shop-period-btn:last-child {
  border-right: none;
}

.shop-period-btn:hover {
  background: var(--bg-muted);
}

.shop-period-btn.active {
  background: var(--primary);
  color: #fff;
}

/* ─── Pagination ───────────────────────────────────────────────────────── */

.shop-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-3) 0;
}

.shop-pagination-info {
  font-size: 0.75rem;
  color: var(--text-faint);
}

/* ─── Loading & Empty States ───────────────────────────────────────────── */

.shop-loading {
  padding: var(--space-5);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.shop-loading::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid var(--border-subtle);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: shop-spin 0.6s linear infinite;
  margin-right: var(--space-2);
  vertical-align: middle;
}

@keyframes shop-spin {
  to { transform: rotate(360deg); }
}

.shop-empty {
  padding: var(--space-5) var(--space-4);
  text-align: center;
}

.shop-empty-message {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.shop-empty-sub {
  font-size: 0.75rem;
  color: var(--text-faint);
  margin-top: var(--space-1);
}

/* ─── Redirect Banner ──────────────────────────────────────────────────── */

.shop-redirect-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-5) var(--space-4);
  margin: var(--space-5) auto;
  max-width: 420px;
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.shop-redirect-banner-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-3);
}

.shop-redirect-banner h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: var(--space-2);
}

.shop-redirect-product-name {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}

/* ─── Large Dataset Warning ────────────────────────────────────────────── */

.shop-large-dataset-warning {
  padding: var(--space-2) var(--space-3);
  margin-top: var(--space-2);
  background: var(--warning-bg);
  color: var(--warning-text);
  font-size: 0.7rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  text-align: center;
}
