/* ═══════════════════════════════════════════════════════════════
   GSV Store — channel-letters.css
   Channel Letter Configurator — Dark Theme
   ═══════════════════════════════════════════════════════════════ */

/* ── Reset & Base ─────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:          #0a0a0a;
  --card:        #111111;
  --accent:      #6A88B0;
  --accent-h:    #7fa0cc;
  --accent-dim:  rgba(106, 136, 176, 0.15);
  --text:        #ffffff;
  --text-muted:  rgba(255,255,255,0.6);
  --text-faint:  rgba(255,255,255,0.35);
  --border:      rgba(255,255,255,0.08);
  --border-h:    rgba(255,255,255,0.18);
  --nav-h:       60px;
  --transition:  0.22s ease;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Open Sans', sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--accent-h); }

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  outline: none;
}

input, textarea, select {
  font-family: inherit;
  background: transparent;
  color: var(--text);
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ── Navigation ───────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 900;
  height: var(--nav-h);
  background: #0a0a0a;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}

.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-decoration: none;
}

.nav-logo-main {
  font-family: 'Oswald', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.05em;
}

.nav-logo-sub {
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.nav-back {
  color: rgba(255,255,255,0.5);
  font-size: 13px;
  text-decoration: none;
  transition: color var(--transition);
}
.nav-back:hover { color: #fff; }

/* ── Hero ─────────────────────────────────────────────────────── */
.hero {
  padding: 60px 24px 48px;
  max-width: 1100px;
  margin: 0 auto;
}

.hero-card {
  border-left: 4px solid var(--accent);
  padding: 32px 36px;
  background: var(--card);
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.hero-eyebrow {
  font-family: 'Oswald', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.hero-headline {
  font-family: 'Oswald', sans-serif;
  font-size: 48px;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: 0.04em;
  line-height: 1;
  margin-bottom: 14px;
}

.hero-sub {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

.hero-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.badge {
  font-family: 'Oswald', sans-serif;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(106,136,176,0.35);
  padding: 4px 12px;
  background: rgba(106,136,176,0.07);
}

/* ── Main Layout ──────────────────────────────────────────────── */
.configurator-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.configurator-grid {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 24px;
  align-items: start;
}

/* ── Preview Panel ────────────────────────────────────────────── */
.preview-panel {
  position: sticky;
  top: calc(var(--nav-h) + 16px);
}

.preview-panel-inner {
  background: var(--card);
  border: 1px solid var(--border);
}

.preview-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.preview-title {
  font-family: 'Oswald', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.preview-live-dot {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--accent);
  font-family: 'Oswald', sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4caf50;
  animation: pulse-dot 1.8s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.preview-canvas-wrap {
  position: relative;
  background: #0d0d0d;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

#previewCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.preview-info {
  padding: 12px 18px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.preview-stat {
  font-size: 11px;
  color: var(--text-faint);
}

.preview-stat span {
  color: var(--text-muted);
  font-weight: 600;
}

/* Pricing panel below preview */
.pricing-panel {
  margin-top: 20px;
  background: var(--card);
  border-left: 4px solid var(--accent);
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.pricing-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}

.pricing-title {
  font-family: 'Oswald', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.pricing-lines {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pricing-line {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  font-family: 'Oswald', sans-serif;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.pricing-line .label { color: var(--text-faint); }
.pricing-line .val   { color: var(--text-muted); }

.pricing-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 8px 0;
}

.pricing-subtotal {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  font-family: 'Oswald', sans-serif;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.pricing-total-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: 'Oswald', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-top: 4px;
}

.pricing-disclaimer {
  padding: 12px 18px;
  border-top: 1px solid var(--border);
  font-size: 10px;
  color: var(--text-faint);
  line-height: 1.6;
}

/* Add to Cart Button */
.add-to-cart-wrap {
  margin-top: 16px;
}

.btn-cart {
  display: block;
  width: 100%;
  background: var(--accent);
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 18px 24px;
  border: none;
  cursor: pointer;
  transition: background var(--transition);
  text-align: center;
}

.btn-cart:hover { background: var(--accent-h); }

.btn-cart.added {
  background: #2a6e3f;
}

/* ── Config Panel ─────────────────────────────────────────────── */
.config-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.config-section {
  background: var(--card);
  border: 1px solid var(--border);
}

.config-section-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.config-section-title {
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #fff;
}

.config-section-body {
  padding: 18px;
}

/* ── Letter Type Cards ────────────────────────────────────────── */
.type-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.type-card {
  border: 1px solid var(--border);
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  display: flex;
  align-items: flex-start;
  gap: 14px;
  position: relative;
}

.type-card:hover {
  border-color: var(--border-h);
  background: rgba(255,255,255,0.02);
}

.type-card.selected {
  border-left: 4px solid var(--accent);
  border-top: 1px solid rgba(106,136,176,0.3);
  border-right: 1px solid rgba(106,136,176,0.3);
  border-bottom: 1px solid rgba(106,136,176,0.3);
  background: var(--accent-dim);
  padding-left: 13px; /* compensate for wider border */
}

.type-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.type-icon {
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.type-icon-svg {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  margin-top: 1px;
  overflow: visible;
}

.type-icon-svg svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.type-info { flex: 1; }

.type-name {
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.04em;
}

.type-desc {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.6;
}

.type-price {
  font-family: 'Oswald', sans-serif;
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.06em;
  flex-shrink: 0;
  align-self: center;
}

/* ── Form Fields ──────────────────────────────────────────────── */
.form-group {
  margin-bottom: 16px;
}
.form-group:last-child { margin-bottom: 0; }

.form-label {
  display: block;
  font-size: 11px;
  font-family: 'Oswald', sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  background: #0a0a0a;
  border: 1px solid var(--border);
  color: #fff;
  padding: 10px 14px;
  font-size: 15px;
  font-family: 'Open Sans', sans-serif;
  transition: border-color var(--transition);
  outline: none;
}

.form-input:focus {
  border-color: var(--accent);
}

.form-input::placeholder {
  color: var(--text-faint);
}

.form-select {
  width: 100%;
  background: #0a0a0a;
  border: 1px solid var(--border);
  color: #fff;
  padding: 10px 14px;
  font-size: 13px;
  font-family: 'Open Sans', sans-serif;
  transition: border-color var(--transition);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(255,255,255,0.4)' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

.form-select:focus {
  border-color: var(--accent);
}

/* Number input */
.input-number-wrap {
  display: flex;
  align-items: stretch;
}

.input-number-wrap .form-input {
  text-align: center;
  flex: 1;
  padding: 10px 8px;
  -moz-appearance: textfield;
}

.input-number-wrap .form-input::-webkit-outer-spin-button,
.input-number-wrap .form-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

.num-btn {
  width: 38px;
  background: #161616;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.num-btn:hover { background: #222; color: #fff; }
.num-btn:first-child { border-right: none; }
.num-btn:last-child  { border-left: none; }

/* Slider */
.form-slider {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 3px;
  background: var(--border);
  outline: none;
  cursor: pointer;
  accent-color: var(--accent);
}

.form-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
}

.slider-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.slider-val {
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  color: var(--accent);
  min-width: 30px;
  text-align: right;
}

/* Radio group */
.radio-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.radio-pill {
  position: relative;
  flex: 1;
  min-width: 60px;
}

.radio-pill input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-pill label {
  display: block;
  text-align: center;
  padding: 8px 12px;
  border: 1px solid var(--border);
  font-size: 12px;
  font-family: 'Oswald', sans-serif;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
}

.radio-pill input:checked + label {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

.radio-pill label:hover {
  border-color: var(--border-h);
  color: #fff;
}

/* Toggle for quantity auto */
.toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.toggle-label {
  font-size: 11px;
  color: var(--text-muted);
  flex: 1;
}

.toggle-switch {
  position: relative;
  width: 36px;
  height: 20px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  background: #333;
  border-radius: 20px;
  cursor: pointer;
  transition: background var(--transition);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform var(--transition);
}

.toggle-switch input:checked + .toggle-slider { background: var(--accent); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(16px); }

/* ── Color Swatches ───────────────────────────────────────────── */
.swatch-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  border: 2px solid transparent;
  transition: transform var(--transition), border-color var(--transition);
  flex-shrink: 0;
}

.swatch:hover { transform: scale(1.1); }

.swatch.selected {
  border-color: #fff;
  transform: scale(1.1);
}

.swatch-custom {
  background: conic-gradient(red, orange, yellow, green, blue, violet, red);
  position: relative;
  overflow: hidden;
}

.swatch-custom input[type="color"] {
  position: absolute;
  inset: -4px;
  opacity: 0;
  cursor: pointer;
  width: 40px;
  height: 40px;
}

.swatch-label-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.swatch-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.swatch-row-label {
  font-size: 11px;
  color: var(--text-faint);
  min-width: 70px;
}

/* ── Checkboxes ───────────────────────────────────────────────── */
.checkbox-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checkbox-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  padding: 10px 12px;
  border: 1px solid var(--border);
  transition: border-color var(--transition), background var(--transition);
}

.checkbox-item:hover {
  border-color: var(--border-h);
  background: rgba(255,255,255,0.02);
}

.checkbox-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
}

.checkbox-info { flex: 1; }

.checkbox-name {
  font-size: 13px;
  color: #fff;
  display: block;
}

.checkbox-desc {
  font-size: 11px;
  color: var(--text-muted);
  display: block;
  margin-top: 1px;
}

.checkbox-price {
  font-family: 'Oswald', sans-serif;
  font-size: 12px;
  color: var(--accent);
  flex-shrink: 0;
  align-self: center;
}

/* Trim cap conditional */
.trimcap-section {
  transition: opacity 0.3s, max-height 0.3s;
  overflow: hidden;
  max-height: 80px;
}

.trimcap-section.hidden {
  opacity: 0;
  max-height: 0;
  pointer-events: none;
}

/* ── Tabs (Info Tabs) ─────────────────────────────────────────── */
.tabs-wrap {
  margin-top: 40px;
}

.tabs-nav {
  display: flex;
  border-bottom: 1px solid var(--border);
}

.tab-btn {
  padding: 12px 20px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-family: 'Oswald', sans-serif;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
  margin-bottom: -1px;
}

.tab-btn:hover { color: #fff; }

.tab-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.tab-content {
  display: none;
  padding: 28px 0;
}

.tab-content.active { display: block; }

.tab-content p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 14px;
}

.tab-content ul {
  padding-left: 20px;
  margin-bottom: 14px;
}

.tab-content ul li {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.8;
}

/* Accordion (FAQ) */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.faq-item { background: var(--card); }

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: transparent;
  border: 1px solid var(--border);
  color: #fff;
  font-family: 'Open Sans', sans-serif;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  transition: background var(--transition);
}

.faq-q:hover { background: rgba(255,255,255,0.03); }

.faq-q.open { border-bottom-color: transparent; }

.faq-chevron {
  font-size: 14px;
  color: var(--accent);
  transition: transform 0.25s;
  flex-shrink: 0;
}

.faq-q.open .faq-chevron { transform: rotate(180deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  border: 1px solid var(--border);
  border-top: none;
}

.faq-a.open {
  max-height: 300px;
  padding: 14px 18px;
}

.faq-a p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

/* Info cards in description tab */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
}

@media (max-width: 900px) {
  .info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.info-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  padding: 16px;
}

.info-card-title {
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.info-card p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

/* Turnaround table */
.turnaround-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}

.turnaround-table th,
.turnaround-table td {
  padding: 10px 14px;
  text-align: left;
  font-size: 12px;
  border: 1px solid var(--border);
}

.turnaround-table th {
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(106,136,176,0.07);
}

.turnaround-table td {
  color: var(--text-muted);
}

/* ── Toast ────────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  background: #1a2e1a;
  border: 1px solid #2a6e3f;
  border-left: 4px solid #4caf50;
  color: #fff;
  padding: 14px 20px;
  font-size: 13px;
  font-family: 'Open Sans', sans-serif;
  z-index: 9999;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
  max-width: 300px;
}

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

/* ── Qty auto badge ───────────────────────────────────────────── */
.qty-auto-note {
  font-size: 11px;
  color: var(--text-faint);
  margin-top: 6px;
}

/* ── Section subhead ──────────────────────────────────────────── */
.subsection-label {
  font-size: 11px;
  font-family: 'Oswald', sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 8px;
  margin-top: 16px;
}
.subsection-label:first-child { margin-top: 0; }

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

  .preview-panel {
    position: static;
    order: -1;
  }

  .hero-headline {
    font-size: 32px;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .hero {
    padding: 32px 16px 24px;
  }

  .hero-card {
    padding: 22px 20px;
  }

  .configurator-wrap {
    padding: 0 16px 60px;
  }

  .tabs-nav {
    overflow-x: auto;
  }
}

/* ── Premium Upgrades ──────────────────────────────────────── */
.section-note {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0 0 12px;
  line-height: 1.5;
}

.swatch-label-note {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 400;
  opacity: 0.7;
}

.swatch-group-large {
  gap: 7px;
  flex-wrap: wrap;
}

.swatch-group-large .swatch {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  flex-shrink: 0;
}

.premium-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.premium-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid transparent;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s;
  user-select: none;
}

.premium-card:hover {
  border-color: rgba(106,136,176,0.4);
  border-left-color: rgba(106,136,176,0.5);
  background: #161616;
}

.premium-card.selected {
  border-left-color: var(--accent);
  background: rgba(106,136,176,0.07);
}

.premium-check {
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 1.5px solid rgba(255,255,255,0.2);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--accent);
  font-weight: 700;
  margin-top: 1px;
  transition: border-color 0.15s, background 0.15s;
}

.premium-card.selected .premium-check {
  border-color: var(--accent);
  background: rgba(106,136,176,0.2);
}

.premium-body {
  flex: 1;
}

.premium-name {
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #e8e8e8;
  letter-spacing: 0.03em;
  margin-bottom: 3px;
}

.premium-desc {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.55;
}

.premium-price {
  font-family: 'Oswald', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
  padding-top: 1px;
}

.premium-unit {
  font-size: 10px;
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 1px;
}

/* ═══════════════════════════════════════════════════════════════
   TWO-PHASE LAYOUT — Type Selection + Design Studio
   ═══════════════════════════════════════════════════════════════ */

/* ── Phase visibility ─────────────────────────────────────────── */
.phase {
  display: none;
}
.phase-active {
  display: block;
}

/* ── Phase 1 background photo ─────────────────────────────────── */
#phase-select {
  background-image:
    linear-gradient(to bottom,
      rgba(10,10,10,0.72) 0%,
      rgba(10,10,10,0.55) 40%,
      rgba(10,10,10,0.82) 78%,
      rgba(10,10,10,1.00) 100%
    ),
    url('https://grandstrandvisuals.com/p-rooftop.jpg');
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* ═══════════════════════════════════════════════════════════════
   PHASE 1 — TYPE SELECTION SCREEN
   ═══════════════════════════════════════════════════════════════ */

.select-hero {
  padding: 52px 40px 36px;
  text-align: center;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

.select-eyebrow {
  font-family: 'Oswald', sans-serif;
  font-size: 58px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.select-headline {
  font-family: 'Oswald', sans-serif;
  font-size: 39px;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: 0.04em;
  line-height: 1;
  white-space: nowrap;
  margin-bottom: 16px;
}

.select-sub {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 660px;
  margin: 0 auto;
}

/* ── Type selection grid ──────────────────────────────────────── */
.type-select-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.07);
  border-left: 1px solid rgba(255,255,255,0.07);
}

.type-select-card {
  background: rgba(10,10,10,0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-right: 1px solid rgba(255,255,255,0.07);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: background var(--transition);
  position: relative;
  outline: none;
}

.type-select-card:hover,
.type-select-card:focus-visible {
  background: rgba(18,18,18,0.88);
}

.type-select-card:hover .tsc-btn,
.type-select-card:focus-visible .tsc-btn {
  background: var(--accent);
  color: #fff;
}

/* Canvas preview area */
.tsc-canvas-wrap {
  background: #0d0d0d;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid var(--border);
}

.tsc-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Card body */
.tsc-body {
  padding: 16px 16px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.tsc-badge {
  display: inline-block;
  font-family: 'Oswald', sans-serif;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 3px 8px;
  margin-bottom: 10px;
  background: rgba(106,136,176,0.15);
  color: var(--accent);
  border: 1px solid rgba(106,136,176,0.3);
  width: fit-content;
}

.tsc-badge-premium {
  background: rgba(200,160,50,0.12);
  color: #D4AF37;
  border-color: rgba(200,160,50,0.3);
}

.tsc-badge-base {
  background: rgba(80,180,100,0.10);
  color: #4CAF50;
  border-color: rgba(80,180,100,0.28);
}

.tsc-badge-quote {
  background: rgba(150,100,220,0.12);
  color: #a06ee0;
  border-color: rgba(150,100,220,0.3);
}

.tsc-name {
  font-family: 'Oswald', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
  line-height: 1.2;
}

.tsc-desc {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 12px;
  flex: 1;
}

.tsc-features {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tsc-features li {
  font-size: 10.5px;
  color: var(--text-faint);
  padding-left: 12px;
  position: relative;
  line-height: 1.5;
}

.tsc-features li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 9px;
}

.tsc-price-range {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.tsc-price-range strong {
  color: var(--accent);
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  font-weight: 600;
}

.tsc-btn {
  display: block;
  width: 100%;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: 'Oswald', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 10px 12px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  text-align: center;
  margin-top: auto;
}

.tsc-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.tsc-btn-ghost {
  border-color: rgba(160,110,224,0.4);
  color: #a06ee0;
}

.tsc-btn-ghost:hover {
  background: rgba(150,100,220,0.2);
  color: #c090f8;
  border-color: rgba(150,100,220,0.6);
}

/* Footer badges */
.select-footer-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 28px 24px 48px;
}

/* ═══════════════════════════════════════════════════════════════
   PHASE 2 — DESIGN STUDIO
   ═══════════════════════════════════════════════════════════════ */

/* Studio top bar */
.studio-topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
  height: 52px;
  background: #0e0e0e;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: var(--nav-h);
  z-index: 800;
}

.studio-back-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: 'Oswald', sans-serif;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 14px;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
  flex-shrink: 0;
}

.studio-back-btn:hover {
  color: #fff;
  border-color: var(--border-h);
}

.studio-type-label {
  font-family: 'Oswald', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  flex: 1;
}

.studio-topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Studio body — full-width with large canvas */
.studio-body {
  display: grid;
  grid-template-columns: 1fr 400px;
  grid-template-rows: 1fr;
  min-height: calc(100vh - var(--nav-h) - 52px);
}

/* LEFT — canvas dominates */
.studio-left {
  display: flex;
  flex-direction: column;
  background: #080808;
  position: sticky;
  top: calc(var(--nav-h) + 52px);
  height: calc(100vh - var(--nav-h) - 52px);
  overflow: hidden;
}

.preview-panel-inner {
  display: flex;
  flex-direction: column;
  flex: 1;
  background: transparent;
  border: none;
}

.preview-header {
  padding: 12px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}

/* Canvas fills remaining height */
.preview-canvas-wrap {
  flex: 1;
  position: relative;
  background: #0a0a0a;
  overflow: hidden;
  min-height: 0;
  aspect-ratio: unset;
}

#previewCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Preview info + pricing + cart stacked at bottom */
.preview-info {
  padding: 10px 20px;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: #0e0e0e;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.pricing-panel {
  margin-top: 0;
  background: #0e0e0e;
  border: none;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-left: none;
  flex-shrink: 0;
}

.add-to-cart-wrap {
  margin-top: 0;
  flex-shrink: 0;
}

.btn-cart {
  border-radius: 0;
}

/* RIGHT — scrollable controls panel */
.studio-right {
  border-left: 1px solid var(--border);
  background: var(--card);
  overflow-y: auto;
  height: calc(100vh - var(--nav-h) - 52px);
  position: sticky;
  top: calc(var(--nav-h) + 52px);
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-bottom: 40px;
}

.studio-right .config-section {
  border: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
}

.studio-right .config-section-header {
  border-bottom: 1px solid var(--border);
  background: #0e0e0e;
}

/* Info tabs section — below the studio body */
.tabs-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 32px 80px;
}

/* ── Vinyl options ─────────────────────────────────────────────── */
.vinyl-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.vinyl-option {
  display: block;
  padding: 9px 14px;
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), color var(--transition);
  font-family: 'Open Sans', sans-serif;
}

.vinyl-option:hover {
  border-color: var(--border-h);
  color: #fff;
}

.vinyl-option.selected {
  border-left: 3px solid var(--accent);
  background: var(--accent-dim);
  color: #fff;
}

/* ── Custom illum options ──────────────────────────────────────── */
.custom-illum-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  margin-bottom: 6px;
}

.custom-illum-option:hover {
  border-color: var(--border-h);
  background: rgba(255,255,255,0.02);
}

.custom-illum-option.selected {
  border-left: 3px solid var(--accent);
  background: var(--accent-dim);
}

.cio-label {
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.04em;
  flex: 1;
}

.cio-desc {
  font-size: 11px;
  color: var(--text-faint);
}

/* ── Artwork note ──────────────────────────────────────────────── */
.artwork-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(106,136,176,0.07);
  border: 1px solid rgba(106,136,176,0.2);
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .type-select-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .type-select-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .select-headline {
    font-size: 32px;
  }

  .studio-body {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    min-height: unset;
  }

  .studio-left {
    position: static;
    height: auto;
    min-height: 300px;
  }

  .preview-canvas-wrap {
    aspect-ratio: 16 / 7;
    flex: unset;
  }

  .studio-right {
    position: static;
    height: auto;
    overflow-y: visible;
    border-left: none;
    border-top: 1px solid var(--border);
  }
}

@media (max-width: 600px) {
  .type-select-grid {
    grid-template-columns: 1fr;
  }

  .select-hero {
    padding: 32px 20px 24px;
  }

  .select-headline {
    font-size: 26px;
  }

  .studio-topbar {
    padding: 0 16px;
  }

  .studio-type-label {
    font-size: 13px;
  }
}

/* ── Shipping Section ─────────────────────────────────────────── */
.shipping-zip-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.shipping-calc-btn {
  background: var(--accent);
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0 18px;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--transition);
  white-space: nowrap;
}

.shipping-calc-btn:hover {
  background: var(--accent-h);
}

.shipping-result {
  margin-top: 12px;
}

.shipping-loading {
  font-size: 12px;
  color: var(--text-faint);
  font-family: 'Oswald', sans-serif;
  letter-spacing: 0.08em;
}

.shipping-error {
  font-size: 12px;
  color: rgba(255, 100, 100, 0.8);
}

.shipping-rate-box {
  background: rgba(106,136,176,0.07);
  border: 1px solid rgba(106,136,176,0.2);
  border-left: 3px solid var(--accent);
  padding: 12px 14px;
}

.shipping-service-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.shipping-service {
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.shipping-zone {
  font-family: 'Oswald', sans-serif;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(106,136,176,0.12);
  padding: 2px 8px;
  border: 1px solid rgba(106,136,176,0.25);
}

.shipping-rate-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}

.shipping-label {
  font-size: 12px;
  color: var(--text-muted);
  font-family: 'Oswald', sans-serif;
  letter-spacing: 0.04em;
}

.shipping-amount {
  font-family: 'Oswald', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
}

.shipping-weight-line {
  font-size: 10px;
  color: var(--text-faint);
  margin-bottom: 6px;
}

.shipping-facility {
  font-size: 11px;
  color: var(--accent);
  margin-bottom: 6px;
  opacity: 0.85;
}

.shipping-disclaimer {
  font-size: 10px;
  color: var(--text-faint);
  line-height: 1.5;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 6px;
  margin-top: 4px;
}

.shipping-freight {
  background: rgba(200,160,50,0.07);
  border: 1px solid rgba(200,160,50,0.25);
  border-left: 3px solid #D4AF37;
  padding: 12px 14px;
}

.shipping-freight .shipping-service {
  color: #D4AF37;
  margin-bottom: 6px;
}

.shipping-freight .shipping-desc {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Quote Request Form ───────────────────────────────────────── */
.quote-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.quote-input {
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 0;
  color: #fff;
  font-family: 'Open Sans', sans-serif;
  font-size: 13px;
  padding: 10px 14px;
  width: 100%;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.2s;
}

.quote-input:focus {
  border-color: var(--accent);
}

.quote-input::placeholder {
  color: rgba(255,255,255,0.3);
}

.quote-textarea {
  resize: vertical;
  min-height: 72px;
}

.quote-status {
  font-size: 12px;
  text-align: center;
  min-height: 18px;
  color: var(--accent);
}

.quote-status.error {
  color: #e07070;
}
