/* ============================================================
   THIRD AXIS PRINT — Products Page & Cart Styles
   ============================================================ */

/* ── Active nav link ─────────────────────────────────────────── */
.nav__link--active {
  color: var(--color-primary) !important;
  font-weight: 700;
}

/* ── Page Hero ───────────────────────────────────────────────── */
.page-hero {
  padding: calc(var(--space-32) + 4rem) 0 var(--space-16);
  text-align: center;
  border-bottom: 1px solid var(--color-divider);
}

.page-hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

.page-hero__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--color-text);
  margin: 0;
  line-height: 1.1;
}

.page-hero__subtitle {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ── Badge variants ──────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 0.2em 0.65em;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.6;
  white-space: nowrap;
}

.badge--mono {
  background: var(--color-surface-offset);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}

.badge--sold-out {
  background: rgba(185, 28, 28, 0.12);
  color: var(--color-error);
  border: 1px solid rgba(185, 28, 28, 0.25);
}

.badge--source {
  background: var(--color-primary-highlight);
  color: var(--color-primary);
  border: 1px solid transparent;
  text-decoration: none;
  transition: background var(--transition-interactive), color var(--transition-interactive);
  cursor: pointer;
}

.badge--source:hover,
.badge--source:focus-visible {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  outline: none;
}

/* ── Products Page Layout ────────────────────────────────────── */
.products-page {
  padding: var(--space-16) 0 var(--space-32);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-8);
}

/* ── Product Card ────────────────────────────────────────────── */
.product-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition-slow), transform var(--transition-slow), border-color var(--transition-slow);
}

.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  border-color: var(--color-primary);
}

.product-card[data-status="sold-out"] {
  opacity: 0.85;
}

/* ── Product Image ───────────────────────────────────────────── */
.product-card__image-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-surface-offset);
}

.product-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .product-card__image {
  transform: scale(1.04);
}

.product-card__image-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  font-family: var(--font-mono);
}

.product-card__badges {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  z-index: 2;
}

/* ── Product Body ────────────────────────────────────────────── */
.product-card__body {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  flex: 1;
}

.product-card__name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--color-text);
  margin: 0;
  line-height: 1.2;
}

.product-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
  margin: 0;
}

.product-card__meta {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
}

.product-card__price {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-text);
  line-height: 1;
}

.product-card__unit {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
}

/* ── Color Options ───────────────────────────────────────────── */
.product-card__options {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.color-option-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.color-option-group__label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.color-option-group__selected {
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: 0;
  text-transform: none;
  font-family: var(--font-body);
}

.color-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.swatch {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: var(--swatch-color, #ccc);
  border: 2px solid transparent;
  outline: none;
  cursor: pointer;
  transition:
    transform var(--transition-interactive),
    box-shadow var(--transition-interactive),
    border-color var(--transition-interactive);
  position: relative;
  flex-shrink: 0;
}

.swatch:hover {
  transform: scale(1.15);
  box-shadow: 0 0 0 3px var(--color-surface), 0 0 0 5px var(--color-text-muted);
}

.swatch--selected,
.swatch:focus-visible {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px var(--color-surface), 0 0 0 4px var(--color-primary);
  transform: scale(1.1);
}

/* White swatch gets a border so it's visible on white backgrounds */
.swatch[data-label="White"] {
  box-shadow: inset 0 0 0 1px var(--color-border);
}

.swatch[data-label="White"].swatch--selected,
.swatch[data-label="White"]:focus-visible {
  box-shadow: inset 0 0 0 1px var(--color-border), 0 0 0 2px var(--color-surface), 0 0 0 4px var(--color-primary);
}

/* ── Add to Cart Button ──────────────────────────────────────── */
.product-card__add-btn {
  width: 100%;
  margin-top: auto;
  justify-content: center;
  transition: background var(--transition-interactive), transform var(--transition-interactive);
}

.product-card__add-btn:disabled,
.product-card__add-btn[aria-disabled="true"] {
  background: var(--color-surface-offset);
  color: var(--color-text-faint);
  border-color: var(--color-border);
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.product-card__add-btn.btn--added {
  background: var(--color-success);
}

/* ── Cart Button (nav) ───────────────────────────────────────── */
.cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  cursor: pointer;
  transition: background var(--transition-interactive), border-color var(--transition-interactive);
  flex-shrink: 0;
}

.cart-btn:hover {
  background: var(--color-surface-offset);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.cart-btn__count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--color-bg);
}

/* ── Cart Overlay ────────────────────────────────────────────── */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 13, 31, 0.55);
  backdrop-filter: blur(2px);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-slow);
}

.cart-overlay.is-visible {
  opacity: 1;
  pointer-events: all;
}

/* ── Cart Drawer ─────────────────────────────────────────────── */
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 100vw);
  background: var(--color-surface);
  border-left: 1px solid var(--color-border);
  z-index: 201;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--transition-slow);
  box-shadow: var(--shadow-xl);
}

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

.cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-6);
  border-bottom: 1px solid var(--color-divider);
  flex-shrink: 0;
}

.cart-drawer__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--color-text);
  margin: 0;
}

.cart-drawer__close {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--color-surface-offset);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-interactive), color var(--transition-interactive);
}

.cart-drawer__close:hover {
  background: var(--color-error);
  color: #fff;
  border-color: transparent;
}

.cart-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.cart-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  text-align: center;
  padding: var(--space-12) 0;
}

.cart-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* ── Cart Item ───────────────────────────────────────────────── */
.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: var(--space-3);
  align-items: start;
  padding: var(--space-4);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.cart-item__image {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--radius-md);
  background: var(--color-surface-offset);
  flex-shrink: 0;
}

.cart-item__details {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  min-width: 0;
}

.cart-item__name {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--color-text);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item__colors {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.4;
}

.cart-item__row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-2);
  flex-wrap: wrap;
}

.cart-item__qty-ctrl {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-surface-offset);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 2px 4px;
}

.qty-btn {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  border: none;
  background: transparent;
  color: var(--color-text);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-interactive);
}

.qty-btn:hover {
  background: var(--color-surface-dynamic);
}

.qty-val {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text);
  min-width: 18px;
  text-align: center;
}

.cart-item__price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--color-text);
}

.cart-item__remove {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-md);
  border: none;
  background: transparent;
  color: var(--color-text-faint);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-interactive), color var(--transition-interactive);
  margin-top: 2px;
  flex-shrink: 0;
}

.cart-item__remove:hover {
  background: rgba(185, 28, 28, 0.1);
  color: var(--color-error);
}

/* ── Cart Footer ─────────────────────────────────────────────── */
.cart-drawer__footer {
  padding: var(--space-6);
  border-top: 1px solid var(--color-divider);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex-shrink: 0;
}

.cart-subtotal {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.cart-subtotal span:first-child {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cart-subtotal__value {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--color-text);
}

.cart-note {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-text-faint);
  margin: 0;
  letter-spacing: 0.03em;
}

.cart-checkout-btn {
  width: 100%;
  justify-content: center;
}

.cart-payment-note {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-text-faint);
  margin: 0;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 640px) {
  .products-grid {
    grid-template-columns: 1fr;
  }

  .page-hero {
    padding-top: calc(var(--space-24) + 2rem);
  }

  .cart-item {
    grid-template-columns: 56px 1fr auto;
  }

  .cart-item__image {
    width: 56px;
    height: 56px;
  }
}

/* ── Disclaimer ──────────────────────────────────────────────── */
.products-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-top: var(--space-12);
  padding: var(--space-5) var(--space-6);
  background: var(--color-surface-offset);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.65;
}

.products-disclaimer svg {
  flex-shrink: 0;
  margin-top: 2px;
  opacity: 0.6;
}

.products-disclaimer p {
  margin: 0;
}

.products-disclaimer strong {
  color: var(--color-text);
}

/* ── Model Finder Section ────────────────────────────────────── */
.model-finder {
  padding: var(--space-20) 0 var(--space-24);
  border-top: 1px solid var(--color-divider);
  background: var(--color-surface);
}

.model-finder__inner {
  max-width: 860px;
  margin: 0 auto;
}

.model-finder__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--color-text);
  margin: var(--space-4) 0 var(--space-4);
  line-height: 1.15;
}

.model-finder__desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin: 0 0 var(--space-8);
  max-width: 640px;
}

.model-finder__link {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.model-finder__link:hover {
  color: var(--color-primary-hover);
}

.model-finder__sites {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-5);
  margin-bottom: var(--space-8);
}

/* ── Model Site Card ─────────────────────────────────────────── */
.model-site-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-6);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  text-decoration: none;
  color: inherit;
  transition: box-shadow var(--transition-slow), transform var(--transition-slow), border-color var(--transition-slow);
}

.model-site-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  border-color: var(--color-primary);
}

.model-site-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.model-site-card__name {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 800;
  color: var(--color-text);
}

.model-site-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
  margin: 0;
  flex: 1;
}

.model-site-card__url {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-primary);
  letter-spacing: 0.03em;
  margin-top: auto;
}

/* Free / Mixed badges */
.badge--free {
  background: rgba(39, 174, 96, 0.12);
  color: #27AE60;
  border: 1px solid rgba(39, 174, 96, 0.25);
}

[data-theme="dark"] .badge--free {
  background: rgba(39, 174, 96, 0.15);
  color: #5dbb7e;
}

.badge--mixed {
  background: rgba(230, 126, 34, 0.12);
  color: #E67E22;
  border: 1px solid rgba(230, 126, 34, 0.25);
}

[data-theme="dark"] .badge--mixed {
  background: rgba(230, 126, 34, 0.15);
  color: #f0a05a;
}

.model-finder__cta-text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin: 0;
}

@media (max-width: 640px) {
  .model-finder__sites {
    grid-template-columns: 1fr;
  }
}


/* ═══════════════════════════════════════════════════════════════════════════
   FILTER & SORT BAR
   ═══════════════════════════════════════════════════════════════════════════ */

.filter-bar {
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

/* ── Category Tab Row ──────────────────────────────────────────────────── */
.filter-bar__tabs-wrap {
  position: relative;
}
/* Fade-out scroll hint on the right edge */
.filter-bar__tabs-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 3rem;
  height: 100%;
  background: linear-gradient(to right, transparent, var(--color-bg, #070D1F));
  pointer-events: none;
  border-radius: 0 9999px 9999px 0;
  /* Only show when content overflows (approximated by always showing on mobile) */
}
[data-theme="light"] .filter-bar__tabs-wrap::after {
  background: linear-gradient(to right, transparent, var(--color-bg, #EFF3FB));
}

.filter-bar__tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;           /* Firefox */
  padding-bottom: 2px;             /* room for focus ring */
}
.filter-bar__tabs::-webkit-scrollbar { display: none; }

.filter-tab {
  flex-shrink: 0;
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  font-family: var(--font-body, 'Satoshi', sans-serif);
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s;

  /* Default (inactive) */
  background: transparent;
  color: var(--color-muted, #7A8BAA);
  border: 1.5px solid var(--color-border, rgba(255,255,255,0.08));
}

.filter-tab:hover {
  color: var(--color-text, #F0F4FF);
  border-color: var(--color-accent, #00C8E0);
}

.filter-tab.active {
  background: var(--color-accent, #00C8E0);
  color: var(--color-bg, #070D1F);
  border-color: var(--color-accent, #00C8E0);
  font-weight: 700;
}

/* Light-mode overrides */
[data-theme="light"] .filter-tab {
  color: var(--color-muted, #5a6a85);
  border-color: rgba(0, 0, 0, 0.12);
}
[data-theme="light"] .filter-tab:hover {
  color: var(--color-text, #0D1630);
  border-color: var(--color-accent, #007A8A);
}
[data-theme="light"] .filter-tab.active {
  background: var(--color-accent, #007A8A);
  color: #fff;
  border-color: var(--color-accent, #007A8A);
}

/* ── Controls Row ──────────────────────────────────────────────────────── */
.filter-bar__controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* In Stock toggle */
.filter-instock {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.875rem;
  border-radius: 9999px;
  font-family: var(--font-body, 'Satoshi', sans-serif);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
  background: transparent;
  color: var(--color-muted, #7A8BAA);
  border: 1.5px solid var(--color-border, rgba(255,255,255,0.08));
  white-space: nowrap;
}

.filter-instock__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-muted, #7A8BAA);
  transition: background 0.18s;
  flex-shrink: 0;
}

.filter-instock:hover {
  color: var(--color-text, #F0F4FF);
  border-color: #22c55e;
}
.filter-instock:hover .filter-instock__dot {
  background: #22c55e;
}

.filter-instock.active {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border-color: #22c55e;
}
.filter-instock.active .filter-instock__dot {
  background: #22c55e;
}

[data-theme="light"] .filter-instock {
  color: var(--color-muted, #5a6a85);
  border-color: rgba(0,0,0,0.12);
}
[data-theme="light"] .filter-instock:hover {
  color: #166534;
  border-color: #16a34a;
}
[data-theme="light"] .filter-instock.active {
  background: rgba(22, 163, 74, 0.12);
  color: #166534;
  border-color: #16a34a;
}
[data-theme="light"] .filter-instock.active .filter-instock__dot,
[data-theme="light"] .filter-instock:hover .filter-instock__dot {
  background: #16a34a;
}

/* Sort select wrapper */
.filter-sort-wrap {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: auto;
}

.filter-sort__label {
  font-family: var(--font-body, 'Satoshi', sans-serif);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--color-muted, #7A8BAA);
  white-space: nowrap;
}

.filter-sort {
  appearance: none;
  -webkit-appearance: none;
  background-color: var(--color-surface, #0D1630);
  color: var(--color-text, #F0F4FF);
  border: 1.5px solid var(--color-border, rgba(255,255,255,0.08));
  border-radius: 0.5rem;
  padding: 0.35rem 2rem 0.35rem 0.75rem;
  font-family: var(--font-body, 'Satoshi', sans-serif);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%237A8BAA' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
  transition: border-color 0.18s;
}
.filter-sort:hover,
.filter-sort:focus {
  border-color: var(--color-accent, #00C8E0);
  outline: none;
}

[data-theme="light"] .filter-sort {
  background-color: #fff;
  color: #0D1630;
  border-color: rgba(0,0,0,0.15);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%235a6a85' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Empty state message */
.filter-empty {
  font-family: var(--font-body, 'Satoshi', sans-serif);
  font-size: 0.95rem;
  color: var(--color-muted, #7A8BAA);
  padding: 2rem 0;
  text-align: center;
  grid-column: 1 / -1;
}

/* ── Mobile layout ──────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .filter-sort-wrap {
    margin-left: 0;
  }
  .filter-bar__controls {
    flex-wrap: wrap;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   PRODUCT COLOR SWATCHES
   ═══════════════════════════════════════════════════════════════════════════ */

.product-card__colors {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 4px;
}

.product-card__color-wrap {
  position: relative;
  cursor: pointer;
  display: inline-block;
}

.product-card__color-radio {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.product-card__color-swatch {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.15);
  transition: border-color 0.15s, transform 0.15s;
  position: relative;
  overflow: hidden;
}

.product-card__color-wrap:hover .product-card__color-swatch {
  border-color: rgba(255,255,255,0.5);
  transform: scale(1.15);
}

/* Selected state */
.product-card__color-radio:checked + .product-card__color-swatch {
  border-color: var(--color-accent, #00C8E0);
  border-width: 2.5px;
  transform: scale(1.2);
  box-shadow: 0 0 0 2px rgba(0,200,224,0.3);
}

/* Unavailable / out of stock */
.product-card__color-wrap.is-unavailable {
  cursor: not-allowed;
}
.product-card__color-wrap.is-unavailable .product-card__color-swatch {
  opacity: 0.45;
  border-color: rgba(255,255,255,0.08);
}
.product-card__color-wrap.is-unavailable:hover .product-card__color-swatch {
  transform: none;
  border-color: rgba(255,255,255,0.08);
}

.color-x {
  width: 14px;
  height: 14px;
  position: absolute;
  filter: drop-shadow(0 0 1px rgba(0,0,0,0.5));
}

/* Material badge */
.product-card__material {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-muted, #7A8BAA);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 1px 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
  margin-left: 4px;
}
[data-theme="light"] .product-card__material {
  background: rgba(0,0,0,0.06);
}

[data-theme="light"] .product-card__color-swatch {
  border-color: rgba(0,0,0,0.15);
}
[data-theme="light"] .product-card__color-wrap:hover .product-card__color-swatch {
  border-color: rgba(0,0,0,0.4);
}
