/* =========================================
   SOGNAREYACHTS — CONFIGURATOR STYLES
   ========================================= */

/* ── PAGE SETUP ─────────────────────────── */
.config-page {
  background: var(--bg);
  min-height: 100vh;
}

/* ── HEADER ─────────────────────────────── */
.config-header {
  padding: calc(var(--nav-h) + 48px) var(--pad) 48px;
  max-width: 1600px;
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
}
.config-header .label {
  margin-bottom: 16px;
}
.config-header h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1;
  color: var(--navy);
  margin-bottom: 14px;
}
.config-header h1 em {
  color: var(--gold-warm);
  font-style: italic;
}
.config-header-sub {
  color: var(--text-mid);
  font-size: 0.95rem;
}

/* ── MAIN LAYOUT ────────────────────────── */
.config-main {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 0;
  max-width: 1600px;
  margin: 0 auto;
  min-height: calc(100vh - 200px);
}

/* ── PREVIEW PANEL ──────────────────────── */
.config-preview-wrap {
  position: sticky;
  top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  background: var(--bg-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  gap: 24px;
}

/* ── BOAT PHOTO ──────────────────────────── */
.config-photo-frame {
  width: 100%;
  max-width: 680px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(22,32,43,0.12);
}
.config-boat-photo {
  width: 100%;
  height: auto;
  display: block;
}

/* ── LIVE COLOUR PALETTE ─────────────────── */
.color-palette {
  width: 100%;
  max-width: 680px;
  display: flex;
  gap: 8px;
  height: 110px;
}
.cp-zone {
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px 16px;
  transition: background 0.4s ease, color 0.3s ease;
  position: relative;
  overflow: hidden;
}
.cp-zone::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.18) 0%, transparent 60%);
  pointer-events: none;
}
.cp-hull {
  flex: 3;
  background: #2D7D8A;
}
.cp-right {
  flex: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cp-interior {
  flex: 1;
  background: #F5F2ED;
}
.cp-cushion {
  flex: 1;
  background: #B5834A;
}
.cp-label {
  font-family: var(--serif);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.75;
  position: relative;
  z-index: 1;
  line-height: 1;
  margin-bottom: 3px;
}
.cp-name {
  font-size: 0.78rem;
  font-weight: 600;
  position: relative;
  z-index: 1;
  line-height: 1;
}

/* ── CONTROLS PANEL ─────────────────────── */
.config-controls {
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
}

/* ── SECTION ─────────────────────────────── */
.config-section {
  padding: 36px 32px;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s ease;
}
.config-section:hover {
  background: var(--bg-2);
}
.config-section-header {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 24px;
}
.config-step {
  font-family: var(--serif);
  font-size: 0.62rem;
  color: var(--gold);
  letter-spacing: 0.14em;
  padding-top: 4px;
  flex-shrink: 0;
}
.config-section h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}
.config-section-desc {
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ── SWATCH GRID ─────────────────────────── */
.swatch-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.swatch-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}
.swatch-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2.5px solid transparent;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}
.swatch-circle::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid transparent;
  transition: border-color 0.2s ease;
}
.swatch-btn:hover .swatch-circle {
  transform: scale(1.1);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.swatch-btn.selected .swatch-circle::after {
  border-color: var(--gold);
}
.swatch-btn.selected .swatch-circle {
  transform: scale(1.1);
  box-shadow: 0 4px 20px rgba(168, 131, 78, 0.3);
}
.swatch-name {
  font-size: 0.64rem;
  color: var(--text-dim);
  text-align: center;
  letter-spacing: 0.03em;
  max-width: 54px;
  line-height: 1.3;
}
.swatch-btn.selected .swatch-name {
  color: var(--gold);
  font-weight: 600;
}

/* ── SUMMARY + CTA ──────────────────────── */
.config-summary {
  padding: 32px;
  margin-top: auto;
  background: var(--white);
  border-top: 1px solid var(--border);
}
.config-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.config-summary-row > span {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mid);
}
.config-share-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 0.72rem;
  color: var(--text-mid);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.config-share-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.config-summary-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.config-summary-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text);
}
.config-summary-list li .summary-zone {
  color: var(--text-dim);
  font-size: 0.74rem;
}
.config-summary-list li .summary-val {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}
.summary-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1.5px solid rgba(0,0,0,0.1);
  flex-shrink: 0;
}
.config-cta {
  width: 100%;
  text-align: center;
  display: block;
  margin-bottom: 12px;
}
.config-cta-note {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-align: center;
  line-height: 1.5;
}

/* ── RESPONSIVE ─────────────────────────── */
@media (max-width: 1100px) {
  .config-main {
    grid-template-columns: 1fr 360px;
  }
}
@media (max-width: 860px) {
  .config-main {
    grid-template-columns: 1fr;
  }
  .config-preview-wrap {
    position: relative;
    height: auto;
    padding: 32px 24px 24px;
  }
  .config-controls {
    border-left: none;
    border-top: 1px solid var(--border);
  }
}
@media (max-width: 480px) {
  .config-header {
    padding-top: calc(var(--nav-h) + 32px);
  }
  .config-section {
    padding: 28px 20px;
  }
  .config-summary {
    padding: 24px 20px;
  }
}
