/* ==========================================================================
   FABRITOR SOURCING LIMITED
   Components Stylesheet
   Cards, Swatch Drawer, Quick View Modal, Category Tabs, Toasts
   ========================================================================== */

/* -------------------------------------------------------------
   1. Swatch Cart Slide-Over Drawer
   ------------------------------------------------------------- */
.swatch-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  pointer-events: none;
  visibility: hidden;
  transition: visibility 0.3s ease;
}

.swatch-drawer.is-open {
  pointer-events: all;
  visibility: visible;
}

.swatch-drawer-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.swatch-drawer.is-open .swatch-drawer-backdrop {
  opacity: 1;
}

.swatch-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 440px;
  height: 100%;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-strong);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s var(--ease-out-expo);
  box-shadow: var(--shadow-lg);
  padding: 2.2rem 1.8rem;
}

.swatch-drawer.is-open .swatch-drawer-panel {
  transform: translateX(0);
}

.swatch-drawer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.swatch-drawer-title {
  font-size: 1.45rem;
  color: var(--text-primary);
  margin-top: 0.35rem;
}

.drawer-close-btn {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 1.6rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
}

.drawer-close-btn:hover {
  color: var(--text-primary);
  border-color: var(--copper-dot);
}

.swatch-drawer-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.swatch-drawer-items {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding-right: 0.35rem;
}

.swatch-drawer-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.swatch-thumb {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.swatch-item-info {
  flex: 1;
}

.swatch-item-info h4 {
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
}

.swatch-item-code {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--copper-dot);
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.swatch-item-cat {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.swatch-remove-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 0.3rem;
  transition: color 0.2s ease;
}

.swatch-remove-btn:hover {
  color: #E53E3E;
}

.empty-swatch-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
  color: var(--text-muted);
  padding: 2rem 1rem;
}

.empty-swatch-icon {
  margin-bottom: 1rem;
  color: var(--copper-dot);
  opacity: 0.6;
}

.empty-swatch-state p {
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.empty-swatch-state small {
  font-size: 0.8rem;
  max-width: 250px;
}

.swatch-drawer-footer {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.swatch-limit-counter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.btn-clear-cart {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.75rem;
  cursor: pointer;
  text-decoration: underline;
}

/* -------------------------------------------------------------
   2. Toast Notifications
   ------------------------------------------------------------- */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 1.35rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.88rem;
  font-family: var(--font-heading);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.3s var(--ease-out-expo);
  pointer-events: all;
  min-width: 280px;
  max-width: 420px;
}

.toast-item.show {
  opacity: 1;
  transform: translateY(0);
}

.toast-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--copper-dot);
  flex-shrink: 0;
}

.toast-success .toast-indicator {
  background: #38A169;
}

/* -------------------------------------------------------------
   3. Quick View Modal
   ------------------------------------------------------------- */
.quick-view-modal {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.25s ease;
}

.quick-view-modal.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 900px;
  max-height: 88vh;
  overflow-y: auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 2;
  transform: scale(0.96);
  transition: transform 0.3s var(--ease-out-expo);
}

.quick-view-modal.is-active .modal-card {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  border-color: var(--copper-dot);
  color: var(--copper-dot);
}

.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
}

@media (max-width: 768px) {
  .modal-grid {
    grid-template-columns: 1fr;
  }
}

.modal-image-col {
  position: relative;
  background: #000;
  min-height: 320px;
}

.modal-image-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.modal-img-badge {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  background: rgba(18, 22, 30, 0.85);
  backdrop-filter: blur(6px);
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: #FFF;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.modal-body-col {
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
}

.modal-header-meta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  margin-bottom: 0.4rem;
}

.modal-header-meta .fabric-code {
  color: var(--copper-dot);
  font-weight: 600;
}

.modal-fabric-title {
  font-size: 2rem;
  margin-bottom: 0.3rem;
  color: var(--text-primary);
}

.modal-fabric-tagline {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.modal-fabric-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.modal-spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  background: var(--bg-surface-elevated);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  border: 1px solid var(--border-subtle);
}

.spec-cell .label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.spec-cell .val {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}

.modal-props-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.5rem;
}

.prop-chip {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

.modal-actions-row {
  display: flex;
  gap: 0.85rem;
  margin-top: auto;
  flex-wrap: wrap;
}

/* -------------------------------------------------------------
   4. Fabric Catalog Grid Cards
   ------------------------------------------------------------- */
.fabric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 2rem;
}

@media (max-width: 480px) {
  .fabric-grid {
    grid-template-columns: 1fr;
  }
}

.fabric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s var(--ease-out-expo);
  box-shadow: var(--shadow-sm);
}

.fabric-card:hover {
  transform: translateY(-5px);
  border-color: var(--copper-dot);
  box-shadow: var(--shadow-md);
}

.fabric-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #000;
}

.fabric-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out-expo);
}

.fabric-card:hover .fabric-card-media img {
  transform: scale(1.05);
}

.card-category-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(18, 22, 30, 0.85);
  backdrop-filter: blur(6px);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-family: var(--font-mono);
  font-weight: 600;
  color: #FFF;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.card-quick-view-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.fabric-card:hover .card-quick-view-overlay {
  opacity: 1;
}

.card-quick-btn {
  background: #FFFFFF;
  color: #12161E;
  border: none;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  font-family: var(--font-heading);
  cursor: pointer;
  transform: translateY(8px);
  transition: all 0.25s ease;
}

.fabric-card:hover .card-quick-btn {
  transform: translateY(0);
}

.card-quick-btn:hover {
  background: var(--copper-dot);
  color: #FFF;
}

.fabric-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-meta-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.card-meta-line .code {
  color: var(--copper-dot);
  font-weight: 600;
}

.fabric-card-title {
  font-size: 1.55rem;
  margin-bottom: 0.3rem;
  color: var(--text-primary);
}

.fabric-card-tagline {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.45;
  height: 2.9em;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-spec-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.card-spec-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.25rem 0.6rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
}

.fabric-card-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn-card-swatch {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  padding: 0.5rem 0.95rem;
  font-size: 0.78rem;
  font-family: var(--font-heading);
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-card-swatch:hover {
  background: var(--copper-dot);
  border-color: var(--copper-dot);
  color: #FFF;
}

.link-card-detail {
  font-size: 0.82rem;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.link-card-detail:hover {
  color: var(--copper-dot);
}

/* -------------------------------------------------------------
   5. Filter & Search Toolbar
   ------------------------------------------------------------- */
.catalog-toolbar {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.toolbar-search-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.search-input-wrap {
  flex: 1;
  min-width: 280px;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 0.8rem 1.25rem 0.8rem 2.85rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color 0.2s ease;
}

.search-input:focus {
  border-color: var(--copper-dot);
  outline: none;
}

.search-icon-svg {
  position: absolute;
  left: 1.15rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.toolbar-category-tabs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
}

.category-tab-btn {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-family: var(--font-heading);
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.category-tab-btn:hover, .category-tab-btn.active {
  background: var(--copper-dim);
  border-color: var(--copper-dot);
  color: var(--copper-dot);
}

.category-tab-btn.active {
  font-weight: 700;
}

/* -------------------------------------------------------------
   6. Fabric Comparison Feature (Side-by-Side Matrix & Dock)
   ------------------------------------------------------------- */
.btn-card-compare {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.5rem 0.85rem;
  font-size: 0.76rem;
  font-family: var(--font-heading);
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
}

.btn-card-compare:hover {
  border-color: var(--copper-dot);
  color: var(--copper-dot);
}

.btn-card-compare.is-selected {
  background: var(--copper-dot);
  border-color: var(--copper-dot);
  color: #FFFFFF;
  box-shadow: 0 4px 12px var(--copper-glow);
}

/* Floating Bottom Comparison Dock */
.compare-floating-dock {
  position: fixed;
  bottom: 1.8rem;
  left: 50%;
  transform: translateX(-50%) translateY(140px);
  z-index: 1200;
  background: rgba(14, 19, 28, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(226, 98, 20, 0.35);
  border-radius: var(--radius-full);
  padding: 0.6rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.45), 0 0 25px rgba(226, 98, 20, 0.18);
  transition: transform 0.4s var(--ease-out-expo), opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
  max-width: 95vw;
}

.compare-floating-dock.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: all;
}

.compare-dock-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #F4F2EC;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.compare-dock-slots {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.compare-dock-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.25rem 0.65rem 0.25rem 0.3rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  color: #FFF;
  font-family: var(--font-heading);
  animation: fadeInPop 0.25s ease;
}

.compare-dock-chip img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
}

.compare-dock-chip-remove {
  background: none;
  border: none;
  color: #A0AEC0;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0 0.2rem;
  transition: color 0.2s ease;
}

.compare-dock-chip-remove:hover {
  color: #FF5A5A;
}

.compare-dock-slot-empty {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px dashed rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
}

.compare-dock-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.btn-dock-compare {
  background: var(--copper-dot);
  color: #FFFFFF;
  border: none;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 4px 14px var(--copper-glow);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-dock-compare:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-dock-compare:not(:disabled):hover {
  background: var(--copper-light);
  transform: translateY(-1px);
}

.btn-dock-clear {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
  cursor: pointer;
  text-decoration: underline;
  padding: 0.3rem 0.5rem;
}

.btn-dock-clear:hover {
  color: #FFF;
}

/* Side-by-Side Comparison Matrix Modal */
.compare-modal {
  position: fixed;
  inset: 0;
  z-index: 2200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.3s ease;
}

.compare-modal.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.compare-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 7, 12, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.compare-modal-card {
  position: relative;
  width: 100%;
  max-width: 1180px;
  max-height: 92vh;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
  z-index: 2;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalScaleUp 0.3s var(--ease-out-expo);
}

@keyframes modalScaleUp {
  from { transform: scale(0.96) translateY(15px); }
  to { transform: scale(1) translateY(0); }
}

.compare-modal-header {
  padding: 1.5rem 2.2rem;
  background: var(--bg-surface-elevated);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.compare-modal-header h2 {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-top: 0.2rem;
}

.compare-modal-body {
  overflow-y: auto;
  padding: 2rem 2.2rem;
  flex: 1;
}

.compare-matrix-table {
  width: 100%;
  border-collapse: collapse;
}

.compare-matrix-table th, .compare-matrix-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: top;
}

.compare-row-header {
  width: 220px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  color: var(--copper-dot);
  font-weight: 700;
  letter-spacing: 0.06em;
  background: var(--bg-surface-elevated);
}

.compare-col-cell {
  text-align: left;
  min-width: 260px;
  font-size: 0.88rem;
  color: var(--text-primary);
}

.compare-hero-cell {
  padding-bottom: 1.5rem;
  text-align: left;
}

.compare-hero-thumb {
  width: 100%;
  height: 180px;
  border-radius: var(--radius-md);
  object-fit: cover;
  margin-bottom: 0.85rem;
  border: 1px solid var(--border-subtle);
  background: #000;
}

.compare-metric-bar-wrap {
  margin-top: 0.35rem;
  background: var(--bg-secondary);
  height: 6px;
  border-radius: var(--radius-full);
  overflow: hidden;
}

.compare-metric-bar {
  height: 100%;
  background: var(--copper-dot);
  border-radius: var(--radius-full);
}

.compare-trait-pill {
  display: inline-block;
  background: var(--copper-dim);
  border: 1px solid rgba(226, 98, 20, 0.25);
  color: var(--copper-dot);
  font-size: 0.72rem;
  font-family: var(--font-mono);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  margin: 0.15rem 0.25rem 0.15rem 0;
}

