/* ── Grizz Custom Designer – Frontend – Gothic Chainmail ──────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Montserrat:wght@300;400;500;600&display=swap');

/* ── Design Tokens ─────────────────────────────────────────────────────────── */
#gcd-designer, #gcd-lightbox, #gcd-auth-modal {
  /* Core Palette */
  --bg:           #0a0709;
  --bg-surface:   #181013;
  --bg-elevated:  #261a1d;
  --bg-card:      #1e1215;
  --bg-input:     #221618;

  /* Crimson — #5a1118 deep fill · #c0293c accent · #e03550 hover */
  --gold:          #c0293c;
  --gold-bright:   #e03550;
  --gold-dim:      #5a1118;
  --gold-glow:     rgba(192, 41, 60, 0.25);
  --gold-border:   rgba(192, 41, 60, 0.45);
  --gold-border-h: rgba(192, 41, 60, 0.75);

  /* Text */
  --text:         #ede6d8;
  --text-sub:     #b0a08e;
  --text-muted:   #7d6a5a;
  --text-on-gold: #f5ede8;

  /* Borders */
  --border:       rgba(255,255,255,0.10);
  --border-h:     rgba(255,255,255,0.22);

  /* Status */
  --success:      #4a7c59;
  --error:        #8b2020;
  --error-bg:     rgba(139,32,32,0.15);

  /* Shape */
  --r-sm:  6px;
  --r-md:  10px;
  --r-lg:  16px;
  --r-xl:  22px;

  /* Motion */
  --ease:  cubic-bezier(0.16, 1, 0.3, 1);
  --dur:   220ms;
}

/* ── Full-page dark immersion when designer is present ────────────────────── */
html:has(#gcd-designer),
body:has(#gcd-designer) {
  background: #0a0709 !important;
}

/* Flatsome + generic theme selectors */
body:has(#gcd-designer) #page,
body:has(#gcd-designer) #page-wrapper,
body:has(#gcd-designer) .page-wrapper,
body:has(#gcd-designer) .site,
body:has(#gcd-designer) #wrapper,
body:has(#gcd-designer) .wrapper,
body:has(#gcd-designer) #content,
body:has(#gcd-designer) .content-wrapper,
body:has(#gcd-designer) main,
body:has(#gcd-designer) #main,
body:has(#gcd-designer) .site-main,
body:has(#gcd-designer) article,
body:has(#gcd-designer) .post,
body:has(#gcd-designer) .hentry,
body:has(#gcd-designer) .entry-content,
body:has(#gcd-designer) .post-content,
body:has(#gcd-designer) .section,
body:has(#gcd-designer) .row,
body:has(#gcd-designer) .col,
body:has(#gcd-designer) [class*="col-"],
body:has(#gcd-designer) .container,
body:has(#gcd-designer) .large-12,
body:has(#gcd-designer) .medium-12,
body:has(#gcd-designer) .cell,
body:has(#gcd-designer) .grid-container {
  background: #0a0709 !important;
  background-color: #0a0709 !important;
}

/* Spacing so designer is centered with breathing room */
body:has(#gcd-designer) .entry-content,
body:has(#gcd-designer) .post-content {
  padding-top: 48px !important;
  padding-bottom: 64px !important;
}

/* ── Root Container ────────────────────────────────────────────────────────── */
#gcd-designer {
  max-width: 960px;
  margin: 0 auto;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(192,41,60,0.10);
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  /* Chainmail ring texture */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Ccircle cx='10' cy='10' r='7' fill='none' stroke='rgba(192,41,60,0.05)' stroke-width='1'/%3E%3Ccircle cx='30' cy='10' r='7' fill='none' stroke='rgba(192,41,60,0.05)' stroke-width='1'/%3E%3Ccircle cx='10' cy='30' r='7' fill='none' stroke='rgba(192,41,60,0.05)' stroke-width='1'/%3E%3Ccircle cx='30' cy='30' r='7' fill='none' stroke='rgba(192,41,60,0.05)' stroke-width='1'/%3E%3Ccircle cx='20' cy='20' r='7' fill='none' stroke='rgba(192,41,60,0.03)' stroke-width='1'/%3E%3C/svg%3E");
}

/* ── Ornamental Header ─────────────────────────────────────────────────────── */
.gcd-header {
  background: linear-gradient(160deg, #14111a 0%, #0d0b12 100%);
  border-bottom: 1px solid var(--border);
  padding: 28px 36px 24px;
  position: relative;
  overflow: hidden;
}
.gcd-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 100% at 50% 0%, rgba(192,41,60,0.10) 0%, transparent 70%);
  pointer-events: none;
}
.gcd-header__eyebrow {
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: .9;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.gcd-header__eyebrow::before,
.gcd-header__eyebrow::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
}
.gcd-header__title {
  font-family: 'Cinzel', serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--text);
  line-height: 1.25;
  margin: 0;
}
.gcd-header__title span { color: var(--gold); }
.gcd-header__sub {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  color: var(--text-sub);
  font-style: italic;
  margin-top: 4px;
  margin-bottom: 0;
}

/* ── Progress ──────────────────────────────────────────────────────────────── */
.gcd-progress-wrap {
  padding: 24px 36px 0;
  background: var(--bg-surface);
}

.gcd-progress--desktop { display: block; }
.gcd-progress--mobile  { display: none; }

.gcd-progress__track {
  display: flex;
  align-items: flex-start;
  position: relative;
}
.gcd-progress__track::before {
  content: '';
  position: absolute;
  top: 17px;
  left: calc(100% / 14);
  right: calc(100% / 14);
  height: 1px;
  background: var(--border-h);
  z-index: 0;
}
.gcd-progress__step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 1;
}
.gcd-progress__dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid rgba(255,255,255,0.28);
  color: #9a8878;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cinzel', serif;
  font-size: 11px;
  font-weight: 600;
  transition: all var(--dur) var(--ease);
}
.gcd-progress__step.active .gcd-progress__dot {
  background: var(--bg-card);
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 0 0 4px var(--gold-glow), 0 0 16px var(--gold-glow);
}
.gcd-progress__step.completed .gcd-progress__dot {
  background: var(--gold-dim);
  border-color: var(--gold-dim);
  color: var(--gold-bright);
}
.gcd-progress__label {
  font-size: 10px;
  letter-spacing: .06em;
  color: var(--text-sub);
  text-align: center;
  font-weight: 500;
  white-space: nowrap;
  text-transform: uppercase;
}
.gcd-progress__step.active .gcd-progress__label { color: var(--gold); }
.gcd-progress__step.completed .gcd-progress__label { color: var(--text-sub); }

.gcd-progress__bar {
  height: 2px;
  background: var(--border);
  margin: 12px 0 0;
  overflow: hidden;
  border-radius: 2px;
}
.gcd-progress__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold));
  transition: width .5s var(--ease);
  box-shadow: 0 0 8px rgba(192,41,60,.5);
  border-radius: 2px;
}

/* Mobile pills */
.gcd-progress-mobile__track {
  display: flex;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 4px 4px 8px;
}
.gcd-progress-mobile__track::-webkit-scrollbar { display: none; }
.gcd-progress-mobile__pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  white-space: nowrap;
  flex-shrink: 0;
  transition: all var(--dur) var(--ease);
}
.gcd-progress-mobile__pill.active {
  background: var(--bg-card);
  border-color: var(--gold-border);
  box-shadow: 0 0 12px var(--gold-glow);
}
.gcd-progress-mobile__pill.completed {
  background: var(--bg-elevated);
  border-color: var(--gold-dim);
  opacity: .7;
}
.gcd-progress-mobile__num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--text-muted);
  font-size: 10px;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--dur);
}
.gcd-progress-mobile__pill.active .gcd-progress-mobile__num {
  background: var(--gold);
  color: var(--text-on-gold);
}
.gcd-progress-mobile__pill.completed .gcd-progress-mobile__num {
  background: var(--gold-dim);
  color: var(--gold-bright);
}
.gcd-progress-mobile__name {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--dur);
}
.gcd-progress-mobile__pill.active .gcd-progress-mobile__name  { color: var(--gold); font-weight: 600; }
.gcd-progress-mobile__pill.completed .gcd-progress-mobile__name { color: var(--text-sub); }
.gcd-progress-mobile__arrow {
  color: var(--text-muted);
  font-size: 14px;
  padding: 0 2px;
  flex-shrink: 0;
  opacity: .5;
}

/* ── Step ──────────────────────────────────────────────────────────────────── */
.gcd-step { display: none; }

.gcd-body { padding: 36px 36px 0; }

.gcd-step__eyebrow {
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: .9;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.gcd-step__eyebrow::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-dim), transparent);
}
.gcd-step__title {
  font-family: 'Cinzel', serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--text);
  margin: 0 0 8px;
  line-height: 1.3;
}
.gcd-step__desc {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  color: var(--text-sub);
  margin: 0 0 28px;
  line-height: 1.7;
}
.gcd-step__hint {
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 18px;
}
.gcd-step__skip {
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 20px;
  font-style: italic;
  text-align: center;
}

/* ── Upload Zone ───────────────────────────────────────────────────────────── */
.gcd-upload-zone {
  border: 1px dashed var(--gold-border);
  border-radius: var(--r-lg);
  padding: 44px 24px;
  text-align: center;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  background: var(--bg-card);
  position: relative;
  overflow: hidden;
}
.gcd-upload-zone::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 100%, rgba(192,41,60,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.gcd-upload-zone:hover,
.gcd-upload-zone--drag {
  border-color: var(--gold);
  background: var(--bg-elevated);
  box-shadow: 0 0 0 1px var(--gold-border), inset 0 0 40px rgba(192,41,60,0.08);
}
.gcd-upload-zone__icon {
  width: 52px;
  height: 52px;
  border: 1px solid var(--gold-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--gold);
  background: var(--bg-elevated);
}
.gcd-upload-zone__text {
  font-size: 14px;
  color: var(--text-sub);
  margin-bottom: 6px;
}
.gcd-upload-zone__hint {
  font-size: 12px;
  color: var(--text-muted);
}
.gcd-link {
  color: var(--gold);
  cursor: pointer;
  text-decoration: none;
  border-bottom: 1px solid var(--gold-dim);
  padding-bottom: 1px;
  transition: border-color var(--dur);
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  font: inherit;
}
.gcd-link:hover { border-color: var(--gold); }

.gcd-upload-previews {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  justify-content: center;
}
.gcd-preview-item {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 1px solid var(--border-h);
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.gcd-preview-item img { width:100%;height:100%;object-fit:cover; }
.gcd-preview-remove {
  position: absolute;
  top: 4px; right: 4px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(0,0,0,.75);
  color: var(--text);
  border: 1px solid var(--border-h);
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background var(--dur);
}
.gcd-preview-remove:hover { background: var(--error); }
.gcd-preview-name {
  font-size: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 90px;
  padding: 2px;
  color: var(--text-muted);
}
.gcd-pdf-icon { font-size: 28px; }

/* ── Canvas ────────────────────────────────────────────────────────────────── */
.gcd-canvas-section { margin-top: 32px; }
.gcd-canvas-section__title {
  font-family: 'Cinzel', serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .08em;
  color: var(--text-sub);
  text-transform: uppercase;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.gcd-canvas-section__title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.gcd-canvas-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: var(--r-md) var(--r-md) 0 0;
}
.gcd-tool-btn {
  padding: 6px 10px;
  border: 1px solid var(--border-h);
  border-radius: var(--r-sm);
  background: var(--bg-card);
  color: var(--text-sub);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  transition: all var(--dur) var(--ease);
}
.gcd-tool-btn:hover,
.gcd-tool-btn--active,
.gcd-tool-btn.active {
  border-color: var(--gold-border);
  color: var(--gold);
  background: var(--bg-elevated);
}
.gcd-color-picker {
  width: 30px; height: 30px;
  padding: 2px;
  border: 1px solid var(--border-h);
  border-radius: var(--r-sm);
  cursor: pointer;
  background: var(--bg-card);
}
.gcd-canvas-label { font-size: 11px; color: var(--text-muted); }
.gcd-brush-slider { width: 80px; accent-color: var(--gold); }
#gcd-brush-size-display,
#gcd-size-display {
  font-size: 11px;
  color: var(--text-muted);
  min-width: 28px;
}
.gcd-canvas {
  display: block;
  width: 100%;
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--r-md) var(--r-md);
  cursor: crosshair;
  touch-action: none;
  background: #0c0b0f;
}
.gcd-canvas-saved {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ── Sub-section dividers (merged Components step) ────────────────────────── */
.gcd-sub-section {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.gcd-sub-section:first-of-type {
  margin-top: 4px;
  padding-top: 0;
  border-top: none;
}
.gcd-sub-section__title {
  font-family: 'Cinzel', serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-sub);
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.gcd-sub-section__title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border-h), transparent);
}
/* Heading above the merged review summary (Step 3) */
.gcd-review-heading {
  margin-top: 40px;
}

/* ── Component search & theme chips (Step 2) ─────────────── */
.gcd-search {
  margin: 0 0 18px;
}
.gcd-search__box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-h, #3a2a2a);
  border-radius: 4px;
  padding: 9px 14px;
  max-width: 420px;
  transition: border-color .25s ease;
}
.gcd-search__box:focus-within {
  border-color: var(--gold, #b8960c);
}
.gcd-search__icon {
  color: var(--text-muted, #8a8078);
  flex-shrink: 0;
}
.gcd-search__input {
  flex: 1;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  color: var(--text-main, #e8e0d0);
}
.gcd-search__input::placeholder {
  color: var(--text-muted, #8a8078);
  opacity: .8;
}
.gcd-search__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.gcd-chip {
  font-family: 'Cinzel', serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-sub, #c8c0b0);
  background: transparent;
  border: 1px solid var(--border-h, #3a2a2a);
  border-radius: 999px;
  padding: 5px 14px;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.gcd-chip:hover {
  color: var(--gold, #b8960c);
  border-color: var(--gold, #b8960c);
}
.gcd-chip--active {
  color: #0d0a0b;
  background: var(--gold, #b8960c);
  border-color: var(--gold, #b8960c);
}
.gcd-search-empty {
  grid-column: 1 / -1;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 15px;
  color: var(--text-muted, #8a8078);
  padding: 18px 4px;
  margin: 0;
}

/* ── Registration form (auth modal) ──────────────────────── */
.gcd-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 420px) {
  .gcd-field-row { grid-template-columns: 1fr; gap: 0; }
}

/* Password field with show/hide toggle */
.gcd-pw-wrap {
  position: relative;
}
.gcd-pw-wrap .gcd-auth-input {
  padding-right: 42px !important;
  width: 100%;
}
.gcd-pw-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: var(--text-muted, #8a8078);
  line-height: 0;
  transition: color .2s ease;
}
.gcd-pw-toggle:hover,
.gcd-pw-toggle--on { color: var(--gold, #b8960c); }

/* Strength meter */
.gcd-pw-strength {
  display: none;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
.gcd-pw-strength.is-visible { display: flex; }
.gcd-pw-strength__bar {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}
.gcd-pw-strength__bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 2px;
  transition: width .25s ease, background .25s ease;
}
.gcd-pw-strength__label {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  min-width: 58px;
  text-align: right;
}

/* Consent checkbox */
.gcd-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 14px 0 16px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-sub, #c8c0b0);
  cursor: pointer;
}
.gcd-consent input[type="checkbox"] {
  margin-top: 2px;
  accent-color: var(--gold, #b8960c);
  flex-shrink: 0;
}
.gcd-consent a { color: var(--gold, #b8960c); }

/* Honeypot — visually removed, still in DOM for bots */
.gcd-hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* ── Thank-you recommendations ───────────────────────────── */
.gcd-recos {
  margin-top: 44px;
  padding-top: 32px;
  border-top: 1px solid var(--border-h, #2e1a1a);
  text-align: center;
}
.gcd-recos__title {
  font-family: 'Cinzel', serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold, #b8960c);
  margin: 0 0 6px;
}
.gcd-recos__sub {
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px;
  font-style: italic;
  color: var(--text-muted, #8a8078);
  margin: 0 0 24px;
}
.gcd-recos__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}
@media (max-width: 780px) { .gcd-recos__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .gcd-recos__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

.gcd-reco-card {
  display: block;
  text-decoration: none !important;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-h, #2e1a1a);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color .3s ease, transform .3s ease, box-shadow .3s ease;
}
.gcd-reco-card:hover {
  border-color: rgba(201,168,76,0.55);
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.45);
}
.gcd-reco-card__img {
  aspect-ratio: 1 / 1;
  background: #0a0708;
  overflow: hidden;
}
.gcd-reco-card__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s cubic-bezier(.25,.46,.45,.94);
}
.gcd-reco-card:hover .gcd-reco-card__img img { transform: scale(1.06); }
.gcd-reco-card__body { padding: 12px 12px 14px; }
.gcd-reco-card__name {
  font-family: 'Cinzel', serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-main, #e8e0d0);
  margin: 0 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.gcd-reco-card__price {
  font-family: 'Cinzel', serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}
/* Force clear, high-contrast prices — override theme's dark amount colours */
.gcd-reco-card__price,
.gcd-reco-card__price ins,
.gcd-reco-card__price .woocommerce-Price-amount,
.gcd-reco-card__price bdi {
  color: #d4af37 !important;   /* bright gold — the payable price */
  text-decoration: none;
}
.gcd-reco-card__price ins { text-decoration: none; }
/* Original (struck-through) price on sale items — muted but readable */
.gcd-reco-card__price del,
.gcd-reco-card__price del .woocommerce-Price-amount,
.gcd-reco-card__price del bdi {
  color: #9a8f80 !important;
  opacity: 1;
  text-decoration: line-through;
  font-weight: 400;
  margin-right: 6px;
}
/* Hide any residual VAT/tax suffix that slips through */
.gcd-reco-card__price .woocommerce-price-suffix { display: none !important; }
.gcd-recos__all {
  display: inline-block;
  margin-top: 26px;
  font-family: 'Cinzel', serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold, #b8960c);
  text-decoration: none;
  border-bottom: 1px solid rgba(201,168,76,0.4);
  padding-bottom: 3px;
  transition: color .2s ease, border-color .2s ease;
}
.gcd-recos__all:hover { color: #e2d5c5; border-color: #e2d5c5; }
.gcd-sub-section__optional {
  font-family: 'Cormorant Garamond', serif;
  font-size: 12px;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-muted);
}

/* ── Product Grids ─────────────────────────────────────────────────────────── */
.gcd-product-grid {
  display: grid;
  gap: 14px;
}
.gcd-product-grid--base {
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
}
.gcd-product-grid--components {
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
}
.gcd-product-grid--charms {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

/* Base Option Tiles */
.gcd-base-option {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px 12px 18px;
  text-align: center;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  background: var(--bg-card);
  position: relative;
  overflow: hidden;
}
.gcd-base-option::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 80% at 50% 100%, rgba(192,41,60,0.10) 0%, transparent 70%);
  opacity: 0;
  transition: opacity var(--dur);
}
.gcd-base-option:hover::before,
.gcd-base-option--selected::before { opacity: 1; }
.gcd-base-option:hover {
  border-color: var(--gold-border);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.4), 0 0 0 1px var(--gold-border);
}
.gcd-base-option--selected {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold), 0 0 24px var(--gold-glow);
}
.gcd-base-option__icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  color: var(--gold);
  transition: transform var(--dur) var(--ease);
  font-size: 32px;
}
.gcd-base-option:hover .gcd-base-option__icon,
.gcd-base-option--selected .gcd-base-option__icon { transform: scale(1.1); }
.gcd-base-option__label {
  font-family: 'Cinzel', serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--text-sub);
  text-transform: uppercase;
  transition: color var(--dur);
}
.gcd-base-option--selected .gcd-base-option__label { color: var(--gold); }

/* Product Cards */
.gcd-product-card {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  background: var(--bg-card);
  position: relative;
}
.gcd-product-card:hover {
  border-color: var(--gold-border);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,.5), 0 0 0 1px var(--gold-border);
}
.gcd-product-card--selected {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold), 0 0 20px var(--gold-glow);
}
.gcd-product-card__img {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-elevated);
}
.gcd-product-card__img img {
  width:100%; height:100%; object-fit:cover;
  transition: transform .4s var(--ease);
}
.gcd-product-card:hover .gcd-product-card__img img { transform: scale(1.05); }
.gcd-product-card__body { padding: 10px; }
.gcd-product-card__name {
  font-family: 'Cinzel', serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--text);
  margin: 0 0 4px;
}
.gcd-product-card__desc {
  font-size: 11px;
  color: var(--text-muted);
  margin: 0 0 6px;
  line-height: 1.5;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.gcd-product-card__price {
  font-family: 'Cinzel', serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  margin: 0;
}
.gcd-product-card__check {
  position: absolute;
  top: 8px; right: 8px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--text-on-gold);
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  opacity: 0;
  transform: scale(0.6);
  transition: all var(--dur) var(--ease);
}
.gcd-product-card--selected .gcd-product-card__check {
  opacity: 1;
  transform: scale(1);
}

/* Charm Qty Controls */
.gcd-charm-qty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px;
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
}
.gcd-qty-btn {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border-h);
  background: var(--bg-card);
  color: var(--text-sub);
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--dur) var(--ease);
  font-weight: 700;
  line-height: 1;
}
.gcd-qty-btn:hover {
  background: var(--gold);
  color: var(--text-on-gold);
  border-color: var(--gold);
}
.gcd-qty-val {
  font-family: 'Cinzel', serif;
  font-size: 14px;
  font-weight: 700;
  min-width: 20px;
  text-align: center;
  color: var(--text);
}

/* ── Running Total ─────────────────────────────────────────────────────────── */
.gcd-running-total {
  margin-top: 22px;
  padding: 14px 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--gold-border);
  border-radius: var(--r-md);
  font-size: 14px;
  color: var(--text-sub);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 0 20px rgba(0,0,0,.3), inset 0 0 20px rgba(192,41,60,0.04);
}
.gcd-running-total strong {
  font-family: 'Cinzel', serif;
  color: var(--gold);
  font-size: 18px;
  font-weight: 700;
}

/* ── Fields ────────────────────────────────────────────────────────────────── */
.gcd-field { margin-bottom: 22px; }
.gcd-label {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-sub);
  margin-bottom: 8px;
}
.gcd-textarea {
  width: 100%;
  border: 1px solid var(--border-h);
  border-radius: var(--r-md);
  padding: 12px 14px;
  font-size: 14px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  resize: vertical;
  background: var(--bg-input);
  color: var(--text);
  transition: all var(--dur) var(--ease);
  line-height: 1.6;
  box-sizing: border-box;
}
.gcd-textarea::placeholder { color: var(--text-muted); }
.gcd-textarea:focus {
  outline: none;
  border-color: var(--gold-border);
  box-shadow: 0 0 0 3px var(--gold-glow);
  background: var(--bg-elevated);
}

/* Budget Grid */
.gcd-budget-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
}
.gcd-budget-option {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px 16px;
  text-align: center;
  cursor: pointer;
  font-family: 'Cinzel', serif;
  font-size: 12px;
  letter-spacing: .04em;
  transition: all var(--dur) var(--ease);
  background: var(--bg-card);
  color: var(--text-sub);
}
.gcd-budget-option:hover {
  border-color: var(--gold-border);
  color: var(--text);
}
.gcd-budget-option--selected {
  border-color: var(--gold);
  background: var(--bg-elevated);
  color: var(--gold);
  box-shadow: 0 0 12px var(--gold-glow);
}

/* ── Review ────────────────────────────────────────────────────────────────── */
.gcd-review-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.gcd-review-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px 18px;
}
.gcd-review-section--full { grid-column: 1 / -1; }
.gcd-review-section--visual {
  background: transparent;
  border: none;
  padding: 0;
}
.gcd-review-section h4 {
  font-family: 'Cinzel', serif;
  font-size: 10px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: .7;
  margin: 0 0 8px;
}
.gcd-review-section p {
  margin: 0;
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
}
.gcd-review-cost {
  font-family: 'Cinzel', serif;
  font-size: 22px !important;
  font-weight: 700;
  color: var(--gold) !important;
}
.gcd-review-visual-row {
  display: flex;
  gap: 12px;
}
.gcd-review-visual-col {
  flex: 1;
  background: var(--bg-elevated);
  border-radius: var(--r-md);
  padding: 16px;
  min-width: 0;
}
.gcd-review-visual-col h4 {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 12px;
}
.gcd-review-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
.gcd-review-thumb {
  width: 80px; height: 80px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity .15s, transform .15s;
  display: block;
}
.gcd-review-thumb:hover {
  opacity: .85;
  transform: scale(1.04);
}
.gcd-review-products {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.gcd-review-product {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  max-width: 90px;
  text-align: center;
}
.gcd-review-product__name {
  font-size: 11px;
  color: var(--text-sub);
  line-height: 1.3;
  word-break: break-word;
}
.gcd-none {
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
}

/* ── Navigation ────────────────────────────────────────────────────────────── */
.gcd-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 36px 28px;
  margin-top: 32px;
  border-top: 1px solid var(--border);
  background: var(--bg-surface);
}
.gcd-nav__step-info {
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--text-muted);
}
.gcd-btn {
  padding: 13px 28px;
  border-radius: var(--r-md);
  border: none;
  cursor: pointer;
  font-family: 'Cinzel', serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: all var(--dur) var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}
.gcd-btn--secondary {
  background: transparent;
  color: var(--text-sub);
  border: 1px solid var(--border-h);
}
.gcd-btn--secondary:hover {
  border-color: var(--gold-border);
  color: var(--gold);
  background: var(--bg-elevated);
}
.gcd-btn--primary {
  background: var(--bg-elevated);
  color: var(--gold);
  border: 1px solid var(--gold-border);
}
.gcd-btn--primary:hover {
  background: var(--bg-card);
  border-color: var(--gold);
  box-shadow: 0 0 20px var(--gold-glow);
  transform: translateY(-1px);
}
.gcd-btn--submit {
  background: linear-gradient(135deg, var(--gold-dim) 0%, var(--gold) 60%, var(--gold-bright) 100%);
  color: var(--text-on-gold);
  border: 1px solid var(--gold-border-h);
  box-shadow: 0 4px 20px rgba(192,41,60,0.28);
}
.gcd-btn--submit:hover {
  box-shadow: 0 6px 28px rgba(192,41,60,0.45);
  transform: translateY(-2px);
  filter: brightness(1.08);
}
.gcd-btn__loading { display: none; }

/* ── Success Screen ────────────────────────────────────────────────────────── */
.gcd-success {
  text-align: center;
  padding: 64px 24px;
}
.gcd-success__icon {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--gold-border);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
  box-shadow: 0 0 30px var(--gold-glow);
}
.gcd-success h2 {
  font-family: 'Cinzel', serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--text);
  margin-bottom: 14px;
}
.gcd-success p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  color: var(--text-sub);
  font-style: italic;
  max-width: 500px;
  margin: 0 auto 12px;
  line-height: 1.8;
}
.gcd-success__ornament {
  color: var(--gold);
  font-family: 'Cinzel', serif;
  letter-spacing: .3em;
  font-size: 13px;
  opacity: .5;
  margin-top: 28px;
}

/* ── Utilities ─────────────────────────────────────────────────────────────── */
.gcd-error {
  color: #e57373;
  background: var(--error-bg);
  border: 1px solid rgba(139,32,32,.4);
  border-radius: var(--r-sm);
  padding: 10px 14px;
  font-size: 13px;
  margin-top: 10px;
}
.gcd-notice {
  padding: 14px 18px;
  border-radius: var(--r-md);
  font-size: 14px;
}
.gcd-notice--info {
  background: rgba(30,30,60,.4);
  border: 1px solid rgba(100,100,200,.3);
  color: var(--text-sub);
}
.gcd-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
.gcd-badge--success {
  background: rgba(74,124,89,.2);
  color: #6dba86;
  border: 1px solid rgba(74,124,89,.4);
}
.gcd-loading {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  color: var(--text-muted);
  font-style: italic;
  padding: 24px 0;
}
.gcd-empty-notice {
  font-family: 'Cormorant Garamond', serif;
  color: var(--text-muted);
  font-style: italic;
  grid-column: 1 / -1;
}
.gcd-spinner {
  display: inline-block;
  width: 20px; height: 20px;
  border: 2px solid var(--border-h);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: gcd-spin .7s linear infinite;
  margin-bottom: 6px;
}
@keyframes gcd-spin { to { transform: rotate(360deg); } }

.gcd-draft-notice {
  font-size: 12px;
  color: var(--gold);
  text-align: center;
  margin-top: 8px;
  opacity: .7;
}

/* ── Verify Pending ────────────────────────────────────────────────────────── */
.gcd-verify-pending {
  text-align: center;
  padding: 24px 16px;
}
.gcd-verify-pending__icon {
  font-size: 48px;
  margin-bottom: 12px;
  line-height: 1;
}
.gcd-verify-pending h3 {
  font-family: 'Cinzel', serif;
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--gold);
}
.gcd-verify-pending p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px;
  color: var(--text-sub);
  margin-bottom: 8px;
  line-height: 1.6;
}
.gcd-verify-pending__note {
  font-size: 13px;
  margin-top: 16px;
  color: var(--text-muted);
}

/* ── Lightbox ──────────────────────────────────────────────────────────────── */
#gcd-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.95);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
#gcd-lightbox-img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: var(--r-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,.8), 0 0 0 1px var(--gold-border);
  cursor: default;
}
#gcd-lightbox-close {
  position: absolute;
  top: 20px; right: 24px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: color var(--dur);
}
#gcd-lightbox-close:hover { color: var(--text); }

/* ── Auth Modal ────────────────────────────────────────────────────────────── */
.gcd-auth-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.gcd-auth-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.8);
  backdrop-filter: blur(4px);
  cursor: pointer;
  animation: gcdFadeIn .15s ease;
}
@keyframes gcdFadeIn { from { opacity: 0; } to { opacity: 1; } }
.gcd-auth-modal__box {
  position: relative;
  z-index: 1;
  background: var(--bg-surface);
  border: 1px solid var(--gold-border);
  border-radius: var(--r-xl);
  box-shadow: 0 32px 80px rgba(0,0,0,.8), 0 0 40px rgba(192,41,60,0.14);
  width: 100%;
  max-width: 420px;
  padding: 36px 32px 28px;
  animation: gcdSlideUp .25s var(--ease);
}
@keyframes gcdSlideUp {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.gcd-auth-modal__close {
  position: absolute;
  top: 14px; right: 16px;
  background: none;
  border: none;
  font-size: 18px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: var(--r-sm);
  transition: all var(--dur);
  line-height: 1;
}
.gcd-auth-modal__close:hover { color: var(--text); background: var(--bg-elevated); }
.gcd-auth-modal__header { text-align: center; margin-bottom: 20px; }
.gcd-auth-modal__icon   { font-size: 28px; margin-bottom: 8px; }
.gcd-auth-modal__title  {
  font-family: 'Cinzel', serif;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--text);
  margin: 0 0 6px;
}
.gcd-auth-modal__sub    { font-family: 'Cormorant Garamond', serif; font-size: 15px; color: var(--text-sub); margin: 0; line-height: 1.6; }
.gcd-auth-modal__footer { text-align: center; margin: 14px 0 0; font-size: 12px; color: var(--text-muted); }
.gcd-auth-modal__footer a { color: var(--gold); text-decoration: none; border-bottom: 1px solid var(--gold-dim); }
.gcd-auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 22px;
}
.gcd-auth-tab {
  flex: 1;
  background: none;
  border: none;
  padding: 8px 0 10px;
  font-family: 'Cinzel', serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  transition: color var(--dur);
}
.gcd-auth-tab::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold));
  transform: scaleX(0);
  transition: transform var(--dur) var(--ease);
}
.gcd-auth-tab--active { color: var(--gold); }
.gcd-auth-tab--active::after { transform: scaleX(1); }
.gcd-auth-input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--border-h);
  border-radius: var(--r-md);
  padding: 11px 14px;
  font-size: 14px;
  font-family: 'Montserrat', sans-serif;
  background: var(--bg-input);
  color: var(--text);
  margin-top: 4px;
  transition: all var(--dur) var(--ease);
}
.gcd-auth-input::placeholder { color: var(--text-muted); }
.gcd-auth-input:focus {
  outline: none;
  border-color: var(--gold-border);
  box-shadow: 0 0 0 3px var(--gold-glow);
  background: var(--bg-elevated);
}
.gcd-auth-success {
  background: rgba(74,124,89,.2);
  border: 1px solid rgba(74,124,89,.4);
  color: #6dba86;
  border-radius: var(--r-sm);
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 12px;
}

/* ── Responsive ────────────────────────────────────────────────────────────── */
.gcd-progress--desktop { display: block; }
.gcd-progress--mobile  { display: none; }

@media (max-width: 600px) {
  .gcd-header { padding: 22px 20px 18px; }
  .gcd-header__title { font-size: 20px; }
  .gcd-progress-wrap { padding: 18px 20px 0; }
  .gcd-progress--desktop { display: none; }
  .gcd-progress--mobile  { display: block; }
  .gcd-body { padding: 24px 20px 0; }
  .gcd-nav { padding: 18px 20px 22px; flex-wrap: wrap; gap: 10px; }
  .gcd-nav__step-info { order: -1; width: 100%; text-align: center; }
  .gcd-btn { padding: 12px 20px; font-size: 11px; }
  .gcd-product-grid--base { grid-template-columns: repeat(3, 1fr); }
  .gcd-review-grid { grid-template-columns: 1fr; }
  .gcd-review-section--full { grid-column: 1; }
  .gcd-review-visual-row { flex-direction: column; }
  .gcd-canvas-tools { flex-wrap: wrap; }
  .gcd-auth-modal__box { padding: 28px 20px 22px; }
}
