/* ============================================================
   NDP Customer Tools — design system port of flatsome-child/style.css
   Scope prefix: nt- (ndp tools). No store links, no commerce UI.
   ============================================================ */
:root {
  /* pastels */
  --pink:          #f9c5d5;
  --pink-deep:     #f3a8c0;
  --lavender:      #d4c5e8;
  --lavender-deep: #b9a4d8;
  --peach:         #fadcc5;
  --peach-deep:    #f5c4a2;
  --mint:          #c5e8dc;
  --mint-deep:     #a4d6c2;
  --sky:           #c5d8e8;
  --sky-deep:      #a4c2dc;
  --butter:        #faecc5;
  --butter-deep:   #f3dca0;

  /* neutrals */
  --cream:         #fdfcfa;
  --cream-2:       #faf6f0;
  --ink:           #1a1a1a;
  --ink-soft:      #4a4a4a;

  /* accent */
  --rose:          #e588a6;
  --rose-deep:     #d56b8c;

  /* shadows */
  --shadow-sm:     0 2px 0 var(--ink);
  --shadow-md:     0 4px 0 var(--ink);
  --shadow-lg:     0 6px 0 var(--ink);
  --shadow-soft:   0 18px 40px -18px rgba(26,26,26,0.18);
}

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: "Nunito", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4 { font-family: "Fredoka", sans-serif; font-weight: 600; margin: 0 0 10px; }
p { margin: 0 0 12px; }
a { color: inherit; }
img { max-width: 100%; }

.nt-wrap { width: min(1080px, calc(100% - 32px)); margin: 0 auto; }
.nt-main { flex: 1; padding: 28px 0 60px; }

/* ---------- header / footer ---------- */
.nt-header { border-bottom: 2px solid var(--ink); background: var(--cream); }
.nt-header-inner { display: flex; align-items: baseline; gap: 12px; padding: 14px 0; }
.nt-wordmark {
  font-family: "Caveat Brush", cursive;
  font-size: 30px;
  text-decoration: none;
  color: var(--ink);
}
.nt-header-tag {
  font-family: "Fredoka", sans-serif;
  font-size: 13px;
  background: var(--butter);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 2px 12px;
  box-shadow: var(--shadow-sm);
}
.nt-footer {
  border-top: 2px solid var(--ink);
  background: var(--cream-2);
  padding: 18px 0;
  font-size: 14px;
  color: var(--ink-soft);
  text-align: center;
}
.nt-footer p { margin: 0; }

/* ---------- buttons / inputs / chips ---------- */
.nt-btn {
  display: inline-block;
  font-family: "Fredoka", sans-serif;
  font-size: 16px;
  padding: 12px 26px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease;
}
.nt-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.nt-btn:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 0 0 var(--ink); }
.nt-btn:disabled { opacity: .45; cursor: not-allowed; }
.nt-btn-primary { background: var(--rose); }
.nt-btn-ghost { background: transparent; box-shadow: none; border-style: dashed; }
.nt-btn-sm { padding: 7px 16px; font-size: 14px; }

.nt-input {
  font-family: "Nunito", sans-serif;
  font-size: 17px;
  padding: 12px 16px;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  width: 100%;
}
.nt-input:focus { outline: 3px solid var(--pink); outline-offset: 1px; }

.nt-chip {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 2px 12px;
  background: var(--cream);
}

/* ---------- icon chips (match newdesignprints.com trust bar) ---------- */
.nt-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  background: var(--cream);
  color: var(--ink);
}
.nt-icon-sm { width: 34px; height: 34px; }
.nt-icon-pink   { background: var(--pink); }
.nt-icon-mint   { background: var(--mint); }
.nt-icon-sky    { background: var(--sky); }
.nt-icon-butter { background: var(--butter); }
.nt-icon-peach  { background: var(--peach); }
.nt-icon-lav    { background: var(--lavender); }
.nt-hero .nt-icon { margin-bottom: 10px; }
.nt-inline-ic { vertical-align: -3px; margin-right: 4px; }

/* ---------- landing ---------- */
.nt-hero { text-align: center; padding: 26px 0 8px; }
.nt-hero h1 { font-size: clamp(34px, 6vw, 52px); }
.nt-lede { color: var(--ink-soft); font-size: 18px; }

.nt-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  margin: 26px 0;
}
.nt-card {
  display: block;
  border: 2px solid var(--ink);
  border-radius: 22px;
  padding: 28px 26px;
  text-decoration: none;
  box-shadow: var(--shadow-md);
  transition: transform .12s ease, box-shadow .12s ease;
}
.nt-card:hover { transform: translateY(-4px); box-shadow: 0 8px 0 var(--ink); }
.nt-card-pink { background: var(--pink); }
.nt-card-mint { background: var(--mint); }
.nt-card-emoji { font-size: 44px; line-height: 1; margin-bottom: 12px; }
.nt-card h2 { font-size: 26px; }
.nt-card p { color: var(--ink-soft); }
.nt-card-cta { font-family: "Fredoka", sans-serif; font-weight: 600; }

.nt-note {
  border: 1.5px dashed var(--ink);
  border-radius: 16px;
  background: var(--cream-2);
  padding: 14px 18px;
  font-size: 14px;
  color: var(--ink-soft);
  text-align: center;
}
.nt-note p { margin: 0; }

/* ---------- shared panels / steps ---------- */
.nt-panel {
  border: 2px solid var(--ink);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-md);
  padding: 24px;
  margin-bottom: 20px;
}
.nt-panel-title { font-size: 22px; display: flex; align-items: center; gap: 10px; }
.nt-error {
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: var(--pink);
  padding: 10px 16px;
  font-weight: 700;
  margin: 12px 0 0;
  display: none;
}
.nt-error.show { display: block; }
.nt-muted { color: var(--ink-soft); font-size: 14px; }
.nt-hidden { display: none !important; }

.nt-spinner {
  display: inline-block;
  width: 18px; height: 18px;
  border: 3px solid var(--ink);
  border-top-color: transparent;
  border-radius: 50%;
  animation: nt-spin .7s linear infinite;
  vertical-align: -3px;
}
@keyframes nt-spin { to { transform: rotate(360deg); } }

/* ---------- mockup maker ---------- */
.nt-mk-form { display: flex; gap: 12px; margin-top: 6px; }
.nt-mk-form .nt-input { max-width: 260px; }

.nt-hero-compact { padding: 14px 0 4px; }
.nt-hero-compact h1 { font-size: clamp(30px, 5vw, 42px); }

.nt-mk-app { max-width: 1040px; margin: 0 auto; }

/* search bar + dropdown results */
.nt-mk-search { position: relative; margin-bottom: 18px; }
.nt-mk-searchrow { display: flex; gap: 10px; }
.nt-mk-searchrow .nt-input { flex: 1; }
.nt-mk-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  z-index: 40;
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 18px;
  box-shadow: var(--shadow-md), var(--shadow-soft);
  padding: 12px 14px 14px;
  max-height: min(430px, 60vh);
  overflow-y: auto;
}
.nt-mk-results-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px;
}
.nt-mk-results-close {
  width: 30px; height: 30px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--pink);
  font-size: 18px; font-weight: 800; line-height: 1;
  cursor: pointer;
}
.nt-mk-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}
.nt-mk-result {
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: #fff;
  padding: 6px;
  cursor: pointer;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-family: "Nunito", sans-serif;
  transition: transform .1s ease, box-shadow .1s ease;
}
.nt-mk-result:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.nt-mk-result img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  border: 1.5px solid var(--ink);
  background: #fff;
}
.nt-mk-result-title {
  font-size: 11.5px; font-weight: 800; line-height: 1.2;
  max-height: 2.4em; overflow: hidden;
}
.nt-mk-result-num { font-size: 10.5px; color: var(--ink-soft); }

/* stage: canvas + controls */
.nt-mk-stage {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 22px;
  align-items: start;
}
.nt-mk-canvas-col { position: sticky; top: 12px; }
.nt-mk-canvas {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  background: #f2ede8;
  border: 2px solid var(--ink);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 10px;
}
.nt-mk-shirt-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  z-index: 1;
  transition: opacity 0.15s ease;
}
.nt-mk-design-wrap {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  /* top / left / width / height are set by JS from printZone data */
}
.nt-mk-design-img {
  display: none; /* shown by JS after load */
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  filter: drop-shadow(0 1px 2px rgba(26, 26, 26, 0.18));
}
.nt-mk-spinner {
  position: absolute;
  top: 50%; left: 50%;
  margin: -12px 0 0 -12px;
  width: 24px; height: 24px;
  display: none;
}

.nt-mk-color-name {
  font-family: "Fredoka", "Nunito", sans-serif;
  font-weight: 600;
  font-size: 15px;
  text-align: center;
  min-height: 1.3em;
}

/* controls column */
.nt-mk-controls {
  border: 2px solid var(--ink);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.nt-mk-designrow {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; flex-wrap: wrap;
}
.nt-mk-etsy { background: var(--butter); }
.nt-mk-label {
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 14px;
  margin-top: 4px;
}
.nt-mk-colors {
  display: flex; flex-wrap: wrap; gap: 5px;
  max-height: 132px;
  overflow-y: auto;
  padding: 2px;
}
.nt-mk-swatch {
  width: 36px;
  height: 22px;
  border-radius: 5px;
  border: 2px solid var(--ink);
  background-color: #ddd;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  padding: 0;
  transition: transform .1s ease, box-shadow .1s ease;
}
.nt-mk-swatch:hover { transform: scale(1.12); }
.nt-mk-swatch.active { transform: scale(1.12); box-shadow: 0 0 0 3px var(--rose); }
.nt-mk-swatch:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; }

.nt-mk-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.nt-mk-links { margin: 4px 0 0; }
.nt-mk-disclaimer { font-size: 12.5px; margin: 0; }

/* modals */
.nt-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(26, 26, 26, .45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.nt-modal-panel {
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  width: min(520px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  padding: 20px;
}
.nt-modal-head {
  display: flex; justify-content: space-between; align-items: center;
  gap: 10px; margin-bottom: 10px;
}
.nt-mk-modalform { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }

/* AI scene bits */
.nt-mk-ai-row { display: flex; gap: 10px; margin: 10px 0; }
.nt-mk-ai-row .nt-input { flex: 1; }
.nt-mk-ai-result { text-align: center; }
.nt-mk-ai-result img {
  width: 100%;
  border: 2px solid var(--ink);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  margin-bottom: 10px;
}
.nt-mk-ai-resultrow { display: flex; gap: 10px; justify-content: center; }
.nt-mk-ai-code { max-width: 150px; display: inline-block; padding: 6px 10px; font-size: 14px; }

/* mobile: single column, compact */
@media (max-width: 760px) {
  .nt-mk-stage { grid-template-columns: 1fr; gap: 14px; }
  .nt-mk-canvas-col { position: static; }
  .nt-mk-canvas { aspect-ratio: 1; }
  .nt-mk-results { max-height: 55vh; }
  .nt-mk-results-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
  .nt-mk-searchrow { flex-direction: row; }
  .nt-mk-searchrow .nt-btn { padding: 12px 18px; }
  .nt-mk-ai-row { flex-direction: column; }
  .nt-mk-colors { max-height: 110px; }
}

@media (max-width: 520px) {
  .nt-mk-form { flex-direction: column; }
  .nt-mk-form .nt-input { max-width: none; }
  .nt-mk-canvas { aspect-ratio: 3 / 4; }
}

/* ---------- bundle builder ---------- */
.nt-bd-choice { display: block; margin: 8px 0; }

.nt-bd-tier-info {
  border: 1.5px dashed var(--ink);
  border-radius: 12px;
  background: var(--butter);
  padding: 8px 14px;
  font-size: 14px;
  margin-bottom: 10px;
}

#nt-bd-search { margin: 10px 0 16px; }

.nt-bd-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}
.nt-bd-card {
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: var(--cream);
  box-shadow: var(--shadow-sm);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.nt-bd-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 9px;
  border: 1.5px solid var(--ink);
  background: #fff;
}
.nt-bd-card-title {
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.25;
  min-height: 2.5em;
  overflow: hidden;
}
.nt-bd-card-num { font-size: 11px; color: var(--ink-soft); }
.nt-bd-add { align-self: stretch; text-align: center; }

.nt-bd-loadmore { text-align: center; margin-top: 16px; }

/* sticky tray */
.nt-bd-tray {
  position: sticky;
  bottom: 0;
  z-index: 30;
  background: var(--cream-2);
  border-top: 2px solid var(--ink);
  box-shadow: 0 -6px 18px -12px rgba(26,26,26,.4);
  padding: 10px 0 12px;
  max-height: 42vh;
  overflow-y: auto;
}
.nt-bd-tray-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.nt-bd-tray-slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 8px;
}
.nt-bd-slot {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  background: #fff;
  padding: 5px 8px;
  font-size: 13px;
}
.nt-bd-slot.empty {
  border-style: dashed;
  color: var(--ink-soft);
  background: transparent;
  justify-content: center;
}
.nt-bd-slot img {
  width: 34px;
  height: 34px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--ink);
  flex: none;
}
.nt-bd-slot-label { font-weight: 800; flex: none; }
.nt-bd-slot-size {
  flex: 1;
  min-width: 0;
  font-family: "Nunito", sans-serif;
  font-size: 13px;
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  padding: 3px 6px;
  background: #fff;
}
.nt-bd-slot-remove {
  flex: none;
  width: 24px;
  height: 24px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: var(--pink);
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.nt-bd-review-row {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1.5px dashed var(--ink);
  padding: 8px 0;
  font-weight: 700;
}
.nt-bd-review-row img {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 8px;
  border: 1.5px solid var(--ink);
}
.nt-bd-review-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}
