/* ==========================================================================
   SecMall — Product Specifications table (shared across all storefront themes)
   Self-contained styles; picks up each theme's primary color via a
   fallback chain so the icons/accents stay on-brand without per-theme overrides.
   ========================================================================== */

:root {
  --ps-accent: var(--clr-primary, var(--primary, var(--ap-primary, var(--bl-primary, var(--bu-primary, var(--ch-primary, var(--cf-primary, var(--di-primary, var(--fa-primary, var(--kd-primary, var(--tk-primary, #6366f1)))))))))));
}

.specs-wrap { padding: 1.5rem 0; }

.specs-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 12px;
  overflow: hidden;
}
.specs-table tr:not(:last-child) td { border-bottom: 1px solid rgba(0, 0, 0, .08); }
.specs-table td { padding: .85rem 1.2rem; vertical-align: middle; font-size: 14px; line-height: 1.5; }

.specs-table td:first-child {
  width: 210px;
  color: #6b7280;
  font-weight: 500;
  background: rgba(0, 0, 0, .015);
  background: color-mix(in srgb, var(--ps-accent) 4%, rgba(0, 0, 0, .015));
  white-space: nowrap;
}
.specs-table td:last-child { background: transparent; }

.specs-table td:first-child i {
  margin-right: 7px;
  font-size: 15px;
  vertical-align: -1px;
  color: var(--ps-accent);
  opacity: .75;
}

.specs-table tr:first-child td:first-child { border-radius: 12px 0 0 0; }
.specs-table tr:first-child td:last-child { border-radius: 0 12px 0 0; }
.specs-table tr:last-child td:first-child { border-radius: 0 0 0 12px; }
.specs-table tr:last-child td:last-child { border-radius: 0 0 12px 0; }

.spec-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.spec-tag {
  display: inline-block;
  background: rgba(0, 0, 0, .03);
  background: color-mix(in srgb, var(--ps-accent) 6%, rgba(0, 0, 0, .03));
  border: 1px solid rgba(0, 0, 0, .08);
  border-color: color-mix(in srgb, var(--ps-accent) 18%, rgba(0, 0, 0, .08));
  border-radius: 6px;
  padding: 4px 11px;
  font-size: 13px;
  color: #1f2937;
}

@media (max-width: 576px) {
  .specs-table td:first-child { width: 150px; }
  .specs-table td { padding: .7rem .9rem; font-size: 13px; }
}
