/*
Theme Name: ToolersHub
Theme URI: https://toolershub.com
Author: ToolersHub Team
Description: Premium multi-tool platform theme for ToolersHub — 220+ free online tools.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.1
License: GPL-2.0-or-later
Text Domain: toolershub
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* Brand */
  --tf-primary:       #6366F1;
  --tf-primary-dark:  #4F46E5;
  --tf-primary-light: #818CF8;
  --tf-accent:        #F59E0B;

  /* Neutrals */
  --tf-bg:            #0F172A;
  --tf-bg-card:       #1E293B;
  --tf-bg-input:      #0F172A;
  --tf-border:        rgba(255,255,255,.08);
  --tf-text:          #F1F5F9;
  --tf-text-muted:    #94A3B8;
  --tf-text-dim:      #64748B;

  /* Semantics */
  --tf-success:  #10B981;
  --tf-error:    #EF4444;
  --tf-warning:  #F59E0B;
  --tf-info:     #3B82F6;

  /* Radius */
  --r-sm:   6px;
  --r-md:   12px;
  --r-lg:   20px;
  --r-xl:   28px;
  --r-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,.4);
  --shadow-md:  0 4px 16px rgba(0,0,0,.5);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.6);
  --shadow-glow:0 0 40px rgba(99,102,241,.25);

  /* Animation */
  --ease-out:  cubic-bezier(.16,1,.3,1);
  --ease-in:   cubic-bezier(.7,0,.84,0);
  --t-fast:    150ms;
  --t-base:    250ms;
  --t-slow:    400ms;

  /* Layout */
  --max-w:    1280px;
  --nav-h:    64px;
  --sidebar-w:280px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--tf-bg);
  color: var(--tf-text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: var(--tf-primary-light); text-decoration: none; }
a:hover { color: var(--tf-text); }

img, video { max-width: 100%; height: auto; display: block; }

:focus-visible {
  outline: 2px solid var(--tf-primary);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--tf-primary); color: #fff; }

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--tf-bg-card); }
::-webkit-scrollbar-thumb { background: #334155; border-radius: var(--r-full); }
::-webkit-scrollbar-thumb:hover { background: #475569; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1,h2,h3,h4,h5,h6 {
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--tf-text);
}
h1 { font-size: clamp(1.75rem, 4vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }
p  { color: var(--tf-text-muted); line-height: 1.7; }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 48px);
}

.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px,100%), 1fr));
  gap: 20px;
}

.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col    { display: flex; flex-direction: column; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; } .gap-6 { gap: 24px; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.tf-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(15,23,42,.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--tf-border);
}

.tf-nav__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 100%;
}

.tf-nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--tf-text) !important;
  white-space: nowrap;
  flex-shrink: 0;
}

.tf-nav__logo-icon {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--tf-primary), var(--tf-primary-dark));
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}

.tf-nav__search {
  flex: 1;
  max-width: 540px;
  position: relative;
}

.tf-nav__search-input {
  width: 100%;
  height: 40px;
  padding: 0 40px 0 44px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--tf-border);
  border-radius: var(--r-full);
  color: var(--tf-text);
  font-size: .9rem;
  transition: border-color var(--t-base) var(--ease-out),
              background var(--t-base) var(--ease-out);
}

.tf-nav__search-input::placeholder { color: var(--tf-text-dim); }
.tf-nav__search-input:focus {
  outline: none;
  border-color: var(--tf-primary);
  background: rgba(99,102,241,.08);
}

.tf-nav__search-icon {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--tf-text-dim);
  font-size: 16px;
  pointer-events: none;
}

.tf-nav__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

/* Search dropdown */
.tf-search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  background: var(--tf-bg-card);
  border: 1px solid var(--tf-border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: none;
  z-index: 200;
}
.tf-search-dropdown.is-open { display: block; }
.tf-search-result {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  cursor: pointer;
  transition: background var(--t-fast);
}
.tf-search-result:hover { background: rgba(255,255,255,.05); }
.tf-search-result__icon {
  width: 32px; height: 32px;
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.tf-search-result__name { font-size: .9rem; font-weight: 500; color: var(--tf-text); }
.tf-search-result__cat  { font-size: .75rem; color: var(--tf-text-muted); }

/* ============================================================
   HERO (HOME)
   ============================================================ */
.tf-hero {
  padding: clamp(64px, 10vw, 120px) 0 clamp(48px, 8vw, 96px);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.tf-hero::before {
  content: '';
  position: absolute;
  inset: -200px -100px;
  background: radial-gradient(ellipse 80% 60% at 50% 20%,
    rgba(99,102,241,.22) 0%, transparent 70%);
  pointer-events: none;
}

.tf-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: var(--r-full);
  border: 1px solid rgba(99,102,241,.4);
  background: rgba(99,102,241,.12);
  color: var(--tf-primary-light);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.tf-hero__title {
  background: linear-gradient(135deg, #fff 40%, var(--tf-primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
}

.tf-hero__sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--tf-text-muted);
  max-width: 600px;
  margin: 0 auto 40px;
}

.tf-hero__search {
  max-width: 620px;
  margin: 0 auto;
  position: relative;
}

.tf-hero__search-input {
  width: 100%;
  height: 56px;
  padding: 0 56px 0 56px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-full);
  color: var(--tf-text);
  font-size: 1rem;
  transition: all var(--t-base) var(--ease-out);
}
.tf-hero__search-input:focus {
  outline: none;
  border-color: var(--tf-primary);
  background: rgba(99,102,241,.08);
  box-shadow: var(--shadow-glow);
}

/* ============================================================
   CARDS
   ============================================================ */
.tf-card {
  background: var(--tf-bg-card);
  border: 1px solid var(--tf-border);
  border-radius: var(--r-lg);
  padding: 24px;
  transition: transform var(--t-base) var(--ease-out),
              border-color var(--t-base),
              box-shadow var(--t-base);
  position: relative;
  overflow: hidden;
}

.tf-card:hover {
  transform: translateY(-3px);
  border-color: rgba(99,102,241,.4);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(99,102,241,.15);
}

.tf-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(99,102,241,.05) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--t-base);
}
.tf-card:hover::before { opacity: 1; }

/* Tool card */
.tf-tool-card { text-decoration: none; display: block; }
.tf-tool-card__icon {
  width: 48px; height: 48px;
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.tf-tool-card__name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--tf-text);
  margin-bottom: 6px;
  position: relative; z-index: 1;
}
.tf-tool-card__desc {
  font-size: .85rem;
  color: var(--tf-text-muted);
  line-height: 1.5;
  position: relative; z-index: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tf-tool-card__badge {
  position: absolute;
  top: 12px; right: 12px;
  padding: 2px 8px;
  border-radius: var(--r-full);
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.tf-tool-card__badge--featured {
  background: rgba(245,158,11,.15);
  color: var(--tf-accent);
  border: 1px solid rgba(245,158,11,.3);
}
.tf-tool-card__badge--client {
  background: rgba(99,102,241,.12);
  color: var(--tf-primary-light);
  border: 1px solid rgba(99,102,241,.2);
}

/* Category card */
.tf-cat-card {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 16px;
}
.tf-cat-card__icon {
  width: 52px; height: 52px;
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.tf-cat-card__name { font-size: 1rem; font-weight: 600; color: var(--tf-text); }
.tf-cat-card__count { font-size: .8rem; color: var(--tf-text-muted); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 20px;
  border-radius: var(--r-full);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--t-base) var(--ease-out);
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--tf-primary), var(--tf-primary-dark));
  color: #fff;
  box-shadow: 0 2px 12px rgba(99,102,241,.4);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--tf-primary-light), var(--tf-primary));
  box-shadow: 0 4px 20px rgba(99,102,241,.5);
  transform: translateY(-1px);
  color: #fff;
}

.btn-secondary {
  background: rgba(255,255,255,.06);
  color: var(--tf-text);
  border: 1px solid var(--tf-border);
}
.btn-secondary:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.2);
  color: var(--tf-text);
}

.btn-lg { height: 52px; padding: 0 32px; font-size: 1rem; border-radius: var(--r-full); }
.btn-sm { height: 32px; padding: 0 14px; font-size: .8rem; }

/* ============================================================
   WORKSPACE (TOOL PAGE)
   ============================================================ */
.tf-workspace {
  min-height: calc(100vh - var(--nav-h));
  padding: 40px 0 80px;
}

.tf-workspace__header {
  margin-bottom: 40px;
}

.tf-workspace__breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  color: var(--tf-text-dim);
  margin-bottom: 16px;
}
.tf-workspace__breadcrumb a { color: var(--tf-text-muted); }
.tf-workspace__breadcrumb a:hover { color: var(--tf-primary-light); }

.tf-workspace__title { margin-bottom: 8px; }
.tf-workspace__desc  { color: var(--tf-text-muted); max-width: 680px; }

/* Upload zone */
.tf-upload-zone {
  border: 2px dashed var(--tf-border);
  border-radius: var(--r-xl);
  padding: clamp(40px, 8vw, 80px) 40px;
  text-align: center;
  cursor: pointer;
  transition: all var(--t-base) var(--ease-out);
  position: relative;
}
.tf-upload-zone:hover,
.tf-upload-zone.is-dragover {
  border-color: var(--tf-primary);
  background: rgba(99,102,241,.05);
  box-shadow: var(--shadow-glow);
}
.tf-upload-zone__icon {
  font-size: 48px;
  margin-bottom: 16px;
  display: block;
}
.tf-upload-zone__title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.tf-upload-zone__sub {
  font-size: .85rem;
  color: var(--tf-text-muted);
}
.tf-upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%; height: 100%;
}

/* File list */
.tf-file-list { margin-top: 20px; display: flex; flex-direction: column; gap: 8px; }
.tf-file-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--tf-bg-card);
  border: 1px solid var(--tf-border);
  border-radius: var(--r-md);
  padding: 10px 14px;
}
.tf-file-item__name { flex: 1; font-size: .9rem; font-weight: 500; }
.tf-file-item__size { font-size: .8rem; color: var(--tf-text-muted); }
.tf-file-item__remove {
  background: none;
  border: none;
  color: var(--tf-text-dim);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 2px;
  transition: color var(--t-fast);
}
.tf-file-item__remove:hover { color: var(--tf-error); }

/* Progress */
.tf-progress {
  background: var(--tf-bg-card);
  border: 1px solid var(--tf-border);
  border-radius: var(--r-xl);
  padding: 32px;
  text-align: center;
  display: none;
}
.tf-progress.is-active { display: block; }
.tf-progress__bar-wrap {
  background: rgba(255,255,255,.06);
  border-radius: var(--r-full);
  height: 8px;
  overflow: hidden;
  margin: 20px 0 12px;
}
.tf-progress__bar {
  height: 100%;
  background: linear-gradient(90deg, var(--tf-primary), var(--tf-primary-light));
  border-radius: var(--r-full);
  transition: width var(--t-slow) var(--ease-out);
  width: 0%;
}
.tf-progress__label { font-size: .85rem; color: var(--tf-text-muted); }

/* Result */
.tf-result {
  background: var(--tf-bg-card);
  border: 1px solid var(--tf-border);
  border-radius: var(--r-xl);
  padding: 40px;
  text-align: center;
  display: none;
}
.tf-result.is-active { display: block; }
.tf-result--success { border-color: rgba(16,185,129,.3); }
.tf-result--error   { border-color: rgba(239,68,68,.3); }

.tf-result__icon { font-size: 56px; margin-bottom: 16px; }
.tf-result__title { margin-bottom: 8px; }
.tf-result__desc  { color: var(--tf-text-muted); margin-bottom: 28px; }

/* Options panel */
.tf-options {
  background: var(--tf-bg-card);
  border: 1px solid var(--tf-border);
  border-radius: var(--r-lg);
  padding: 24px;
  margin-bottom: 24px;
}
.tf-options__title {
  font-size: .85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--tf-text-muted);
  margin-bottom: 20px;
}
.tf-options__row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

/* Form controls */
.tf-label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--tf-text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.tf-input, .tf-select {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--tf-border);
  border-radius: var(--r-sm);
  color: var(--tf-text);
  font-size: .9rem;
  transition: border-color var(--t-fast);
}
.tf-input:focus, .tf-select:focus {
  outline: none;
  border-color: var(--tf-primary);
}
.tf-select option { background: #1E293B; }
.tf-range { width: 100%; accent-color: var(--tf-primary); }

/* ============================================================
   SECTIONS
   ============================================================ */
.tf-section { padding: clamp(48px, 8vw, 96px) 0; }
.tf-section--tight { padding: clamp(32px, 5vw, 60px) 0; }

.tf-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: clamp(28px, 4vw, 48px);
  gap: 16px;
}
.tf-section-title { margin: 0; }
.tf-section-link  { font-size: .9rem; color: var(--tf-primary-light); white-space: nowrap; }

/* ============================================================
   BADGES & TAGS
   ============================================================ */
.tf-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--r-full);
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.tf-badge--pdf      { background: rgba(220,38,38,.15);  color: #FCA5A5; border: 1px solid rgba(220,38,38,.3); }
.tf-badge--image    { background: rgba(37,99,235,.15);  color: #93C5FD; border: 1px solid rgba(37,99,235,.3); }
.tf-badge--audio    { background: rgba(5,150,105,.15);  color: #6EE7B7; border: 1px solid rgba(5,150,105,.3); }
.tf-badge--video    { background: rgba(217,119,6,.15);  color: #FCD34D; border: 1px solid rgba(217,119,6,.3); }
.tf-badge--dev      { background: rgba(79,70,229,.15);  color: #A5B4FC; border: 1px solid rgba(79,70,229,.3); }

/* ============================================================
   FOOTER
   ============================================================ */
.tf-footer {
  border-top: 1px solid var(--tf-border);
  padding: 48px 0 32px;
  background: rgba(0,0,0,.2);
}
.tf-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 48px;
}
.tf-footer__logo { font-size: 1.1rem; font-weight: 800; color: var(--tf-text); margin-bottom: 12px; }
.tf-footer__desc { font-size: .85rem; color: var(--tf-text-muted); }
.tf-footer__heading { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--tf-text-dim); margin-bottom: 14px; }
.tf-footer__list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.tf-footer__list a { font-size: .88rem; color: var(--tf-text-muted); transition: color var(--t-fast); }
.tf-footer__list a:hover { color: var(--tf-text); }
.tf-footer__bottom {
  border-top: 1px solid var(--tf-border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .8rem;
  color: var(--tf-text-dim);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .tf-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .tf-nav__search { display: none; }
  .tf-footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .tf-footer__bottom { flex-direction: column; gap: 8px; text-align: center; }
  .tf-workspace__header .tf-section-header { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-ring {
  0%   { transform: scale(1);    opacity: .6; }
  50%  { transform: scale(1.05); opacity: .3; }
  100% { transform: scale(1);    opacity: .6; }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.animate-fade-up  { animation: fadeUp var(--t-slow) var(--ease-out) both; }
.animate-spinner  { animation: spin 1s linear infinite; }
.animate-pulse    { animation: pulse-ring 2s ease-in-out infinite; }

/* Stagger fade-up for card grids */
.grid-auto > *:nth-child(1)  { animation-delay: 0ms; }
.grid-auto > *:nth-child(2)  { animation-delay: 60ms; }
.grid-auto > *:nth-child(3)  { animation-delay: 120ms; }
.grid-auto > *:nth-child(4)  { animation-delay: 180ms; }
.grid-auto > *:nth-child(5)  { animation-delay: 240ms; }
.grid-auto > *:nth-child(6)  { animation-delay: 300ms; }

/* ============================================================
   CLIENT TOOL PANELS (Developer / Text / Calculator etc.)
   ============================================================ */
.tf-client-panel {
  background: var(--tf-bg-card);
  border: 1px solid var(--tf-border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.tf-client-panel__header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--tf-border);
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--tf-text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.tf-client-panel__body { padding: 20px; }
.tf-client-panel textarea {
  width: 100%;
  min-height: 200px;
  background: var(--tf-bg-input);
  border: 1px solid var(--tf-border);
  border-radius: var(--r-sm);
  color: var(--tf-text);
  font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  font-size: .88rem;
  padding: 12px;
  resize: vertical;
  transition: border-color var(--t-fast);
}
.tf-client-panel textarea:focus {
  outline: none;
  border-color: var(--tf-primary);
}

/* QR / Color tools */
.tf-qr-canvas {
  border-radius: var(--r-md);
  background: #fff;
  padding: 12px;
  display: inline-block;
}

.tf-color-swatch {
  width: 100%;
  height: 120px;
  border-radius: var(--r-md);
  border: 1px solid var(--tf-border);
  cursor: pointer;
  transition: transform var(--t-fast);
}
.tf-color-swatch:hover { transform: scale(1.02); }