/* ===== VARIANT PICKER (css/variants.css) =====
   Floating preview tool, clearly marked as such — not part of the customer site. */

.variant-picker {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 150;
  font-family: var(--font-sans);
}

.vp-toggle {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: #0B1A2B;
  color: #F2F6F8;
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .06em;
  box-shadow: 0 8px 24px rgba(11,26,43,.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s, box-shadow .2s;
}
.vp-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(11,26,43,.4);
}

.vp-panel {
  display: none;
  position: absolute;
  right: 0;
  bottom: calc(100% + .75rem);
  width: 310px;
  max-width: calc(100vw - 2rem);
  background: #fff;
  color: var(--text-body);
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(11,26,43,.22);
  padding: 1.25rem;
  text-align: left;
}
.vp-panel.open { display: block; }

.vp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.vp-head h2 {
  font-size: 1rem;
  font-family: var(--font-sans);
  color: var(--ink);
}
.vp-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--sand);
  color: var(--ink);
  font-size: 1.2rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vp-group { border: 0; margin: 0 0 1rem; padding: 0; }
.vp-group legend {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: .5rem;
}

.vp-swatches { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; }
.vp-variant {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .65rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-body);
  text-align: left;
  transition: border-color .15s, background .15s;
}
.vp-variant:hover { border-color: var(--teal); }
.vp-variant[aria-pressed="true"] {
  border-color: var(--teal);
  background: rgba(30,143,168,.08);
  box-shadow: 0 0 0 1px var(--teal);
}
.vp-swatch {
  position: relative;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  flex-shrink: 0;
  border: 1px solid rgba(11,26,43,.15);
}
.vp-swatch-dot {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 1px solid #fff;
  box-shadow: 0 0 0 1px rgba(11,26,43,.3);
}
.vp-tag {
  margin-left: auto;
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  background: rgba(11,26,43,.08);
  color: var(--text-muted);
  padding: .12rem .35rem;
  border-radius: 3px;
}

.vp-layouts { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; }
.vp-layout {
  padding: .55rem .65rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-body);
  text-align: center;
}
.vp-layout:hover { border-color: var(--teal); }
.vp-layout[aria-pressed="true"] {
  border-color: var(--teal);
  background: rgba(30,143,168,.08);
  box-shadow: 0 0 0 1px var(--teal);
}

.vp-note {
  font-size: .72rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: .25rem;
}

/* Keep back-to-top clear of the picker */
.back-to-top { bottom: 8.5rem; }

/* Mobile nav overlay sits above the picker while open */
.mobile-nav { z-index: 160; }

@media (max-width: 768px) {
  .variant-picker {
    right: 0;
    left: 0;
    bottom: 0;
    border-top: 1px solid var(--border);
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: .5rem;
  }
  .vp-toggle {
    width: 100%;
    height: 44px;
    border-radius: 8px;
  }
  .vp-panel {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 56px;
    width: auto;
    max-width: none;
    border-radius: 14px 14px 0 0;
  }
  .back-to-top { bottom: 5rem; }
}

@media print {
  .variant-picker { display: none !important; }
}
