/* Nasr Jewelers — Design Your Own builder. Shared styles: css/site.css */

.dyo { min-height: 100vh; display: flex; flex-direction: column; }
.dyo-header {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px clamp(20px, 4vw, 48px); border-bottom: 1px solid rgba(5,59,39,.08);
}
.dyo-logo { display: flex; flex-direction: column; align-items: flex-start; line-height: 1; }
.dyo-logo-word { font-family: "Cormorant Garamond", serif; font-size: 24px; font-weight: 600; letter-spacing: .34em; color: var(--green); }
.dyo-logo-sub { font-size: 7.5px; letter-spacing: .52em; margin-top: 3px; color: var(--bronze); font-weight: 500; }
.dyo-label { letter-spacing: .2em; }
.dyo-back { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; }
@media (max-width: 560px) { .dyo-label { display: none; } }

.dyo-grid { flex: 1; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); }

/* ── Preview ────────────────────────────────────────────────── */
.preview {
  position: sticky; top: 0; align-self: start; min-height: calc(100vh - 77px);
  background: radial-gradient(120% 90% at 50% 40%, #FFFFFF 0%, #F3EFE8 60%, #EAE3D7 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: safe center; gap: 20px; padding: 72px 24px 40px;
}
.preview-caption { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--bronze); font-weight: 500; }
.preview-stage { display: flex; justify-content: center; max-width: 100%; }
.views { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.view { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #6b6b6b; }
.view button {
  width: 76px; height: 76px; border-radius: 18px; border: 1.5px solid rgba(5,59,39,.12); background: #fff;
  overflow: hidden; cursor: pointer; padding: 0; display: flex; align-items: center; justify-content: center;
}
.view.is-on { color: var(--green); }
.view.is-on button { border-color: var(--green); }
.thumb { width: 300px; height: 300px; flex: none; transform: scale(.25); pointer-events: none; }
.preview-title { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.preview-name { font-family: "Cormorant Garamond", serif; font-size: 30px; font-weight: 500; color: var(--green); line-height: 1.2; }
.preview-sub { font-size: 14px; color: var(--muted-2); max-width: 40ch; }
.summary { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; max-width: 520px; }
.summary span { font-size: 12px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.8); border: 1px solid rgba(5,59,39,.12); color: var(--green); }

@media (max-width: 899px) {
  .preview { position: relative; min-height: 0; padding: 40px 16px 32px; }
}
@media (max-width: 360px) { .preview-stage { transform: scale(.88); margin: -18px 0; } }

/* ── Builder ────────────────────────────────────────────────── */
.builder { display: flex; flex-direction: column; gap: 28px; padding: 40px clamp(20px, 4vw, 56px) 48px; min-width: 0; }
.steps { display: flex; gap: 6px; flex-wrap: wrap; }
.step-tab {
  display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 6px; border-radius: 999px;
  border: 1px solid rgba(5,59,39,.15); background: #fff; color: var(--ink); cursor: pointer; font-size: 13px;
}
.step-tab b { width: 28px; height: 28px; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 400; background: #F1EEE8; color: var(--green); }
.step-tab.is-done b { background: #E9E1CF; }
.step-tab[aria-current="step"] { background: var(--green); border-color: var(--green); color: #fff; }
.step-tab[aria-current="step"] b { background: var(--gold); color: #fff; }

.step-head { display: flex; flex-direction: column; gap: 8px; }
.step-title { font-family: inherit; font-weight: 300; font-size: clamp(28px, 3vw, 40px); letter-spacing: -.02em; }
.step-hint { font-size: 15px; color: var(--muted-2); }

.groups { display: flex; flex-direction: column; gap: 28px; }
.group { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; border: 0; min-width: 0; }
.group-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; width: 100%; padding: 0; }
.group-label { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.group-value { font-size: 14px; color: var(--green); font-weight: 500; }
.group-note { font-size: 13px; line-height: 1.5; color: #6b6b6b; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt {
  display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1px solid rgba(5,59,39,.18); background: #fff; color: var(--ink); cursor: pointer; font-size: 14px;
}
.opt[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.swatch { width: 18px; height: 18px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.range { display: flex; flex-direction: column; gap: 6px; }
.range input { width: 100%; accent-color: var(--green); }
.range-ends { display: flex; justify-content: space-between; font-size: 12px; color: #6b6b6b; }
.text-in, .select-in {
  height: 48px; padding: 0 20px; border-radius: 999px; border: 1px solid rgba(5,59,39,.2); background: #fff;
  font-size: 15px; color: var(--ink); outline: none; width: 100%;
}
.select-in { padding: 0 18px; }
.text-in:focus-visible, .select-in:focus-visible { border-color: var(--green); outline: 2px solid var(--gold); outline-offset: 1px; }

.dyo-form, .dyo-fields { display: flex; flex-direction: column; gap: 18px; }
.dyo-form[hidden], .dyo-fields[hidden], .dyo-done[hidden] { display: none; }
.text-in--area { height: auto; padding: 14px 20px; border-radius: 24px; line-height: 1.5; resize: vertical; font-family: inherit; }
.captcha:empty { display: none; }
.dyo-note { font-size: 13px; color: #6b6b6b; min-height: 1em; }
.dyo-note.is-error { color: #a3341f; }
.dyo-done { display: flex; flex-direction: column; gap: 10px; padding: 20px 24px; border-radius: 28px; background: #fff; border: 1px solid rgba(5,59,39,.1); outline: none; }
.dyo-done-title { font-size: 20px; line-height: 1.35; color: var(--ink); }
.dyo-done p:last-child { font-size: 14px; color: #6b6b6b; }
.spec { display: flex; flex-direction: column; border-radius: 28px; background: #fff; border: 1px solid rgba(5,59,39,.1); padding: 8px 24px; }
.spec-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(5,59,39,.06); font-size: 14px; }
.spec-row:last-child { border-bottom: 0; }
.spec-row span:first-child { color: #6b6b6b; }
.spec-row span:last-child { font-weight: 500; text-align: right; }

.builder-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; padding-top: 24px; border-top: 1px solid rgba(5,59,39,.08); }
.builder-foot .pill { letter-spacing: .12em; }
.ghost-btn {
  height: 50px; padding: 0 24px; border-radius: 999px; border: 1px solid rgba(5,59,39,.25); background: transparent;
  color: var(--green); cursor: pointer; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500;
}
.ghost-btn.is-hidden { visibility: hidden; }
@media (max-width: 420px) { .builder-foot .pill { padding: 0 20px; } .ghost-btn { padding: 0 18px; } }
