:root {
  --bg: #f9f5f5;
  --berry: #8b1245;
  --magenta: #9d0044;
  --hotpink: #d81b60;
  --orange: #ff8c00;
  --peach: #fae8d0;
  --shadow-glass: 0 8px 32px rgba(216, 27, 96, 0.1), 0 2px 8px rgba(255, 140, 0, 0.06);
  --shadow-lift: 0 20px 50px rgba(216, 27, 96, 0.12);
  --r2xl: 20px;
  --r3xl: 24px;
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "DM Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --font-accent: "Outfit", var(--font-body);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: #1a0a10;
  background: linear-gradient(165deg, var(--bg) 0%, #fcf7f7 45%, #fff7fc 100%);
}

a { color: inherit; text-decoration: none; }

.sfHeader {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(90deg, #e4175c 0%, #ea4870 41%, #ee6f26 77%, #f5911c 100%);
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.sfInner {
  max-width: 1200px;
  margin: 0 auto;
  height: 90px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.iconBtn {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.iconBtn:hover { background: rgba(0,0,0,.18); }
.iconBtn--hamburger { position: relative; }
.iconBtn--hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: rgba(255,255,255,.95);
  border-radius: 2px;
  margin: 2px 0;
}

.logoImgText {
  height: 54px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,.35));
}

.nav {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 8px;
  overflow: auto;
  padding: 6px 0;
}
.navLink {
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  color: rgba(255,255,255,.95);
  white-space: nowrap;
}
.navLink:hover, .navLinkActive { background: rgba(0,0,0,.2); color: #fff; }

.headerActions { display: flex; gap: 10px; align-items: center; }
.iconBtn--circle .iconCircle { font-size: 16px; line-height: 1; }
.btnPrimary {
  font-family: var(--font-accent);
  font-weight: 800;
  font-size: 13px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(0,0,0,.26);
  border: 1px solid rgba(255,255,255,.55);
  color: rgba(255,255,255,.98);
  cursor: pointer;
}
.btnPrimary:hover { background: #f9f5f5; color: #1a0a10; border-color: #e4175c; transform: translateY(-1px); }

.page { padding: 18px 0 60px; }
.wrap { max-width: 1400px; margin: 0 auto; padding: 0 18px; }
.heroText { margin: 10px 0 16px; }
.eyebrow { font-family: var(--font-accent); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; margin: 0; opacity: .8; }
.title { font-family: var(--font-display); font-size: 28px; margin: 6px 0 0; }
.sub { font-family: var(--font-accent); font-size: 13px; opacity: .8; max-width: 720px; margin: 8px 0 0; }

.studioGrid {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(260px, 340px) 1fr minmax(280px, 360px);
  align-items: start;
}

.glass {
  border-radius: var(--r3xl);
  border: 1px solid rgba(255,255,255,.8);
  background: rgba(255,255,255,.90);
  box-shadow: var(--shadow-glass);
  backdrop-filter: blur(10px);
}
.panel { padding: 16px; }
.previewPanel { padding: 0; overflow: hidden; }
.previewHeader {
  font-family: var(--font-accent);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-align: center;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(157,0,68,.10);
}
.previewStage { padding: 18px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.previewSelectedLabel {
  margin: 0;
  font-family: var(--font-accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--magenta);
  text-align: center;
}
.previewFrame {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 4 / 5;
  border-radius: 28px;
  border: 1px solid rgba(157,0,68,.10);
  background: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  position: relative;
}
.previewFrame--empty {
  background:
    radial-gradient(180px 180px at 30% 20%, rgba(216,27,96,.08), transparent 60%),
    radial-gradient(220px 220px at 70% 70%, rgba(255,140,0,.10), transparent 60%),
    #fff;
}
.previewJarBg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.22;
  z-index: 0;
  pointer-events: none;
  filter: saturate(0.85);
}

/* Flat design art over optional settings jar — both read clearly */
.previewFrame.previewFrame--layered .previewJarBg {
  opacity: 0.5;
  filter: saturate(0.95);
}
.previewImg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  position: relative;
  z-index: 1;
}
.previewFrame:not(.previewFrame--empty) .previewImg {
  background: transparent;
}

.row { display: flex; align-items: center; gap: 10px; }
.between { justify-content: space-between; }

.panelTitle { font-family: var(--font-display); font-size: 16px; margin: 0; }
.panelTitleSm { font-family: var(--font-display); font-size: 14px; margin: 0; }

.catalogNote {
  font-family: var(--font-accent);
  font-size: 11px;
  line-height: 1.35;
  border-radius: 12px;
  padding: 10px 10px;
  margin-bottom: 10px;
  background: rgba(16,185,129,.10);
  border: 1px solid rgba(16,185,129,.22);
  color: #064e3b;
}

.designsPanel { padding: 16px; }
.tabRow { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0 12px; }
.tab {
  font-family: var(--font-accent);
  font-weight: 900;
  font-size: 12px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(157,0,68,.25);
  background: #fff;
  color: rgba(0,0,0,.55);
  cursor: pointer;
  transition: .18s ease;
}
.tab:hover { border-color: var(--hotpink); color: #111; }
.tabActive { background: var(--hotpink); border-color: var(--hotpink); color: #fff; }

.productPick { margin-bottom: 12px; }
.productPick__label {
  display: block;
  font-family: var(--font-accent);
  font-weight: 800;
  font-size: 12px;
  margin-bottom: 6px;
  color: rgba(0,0,0,.65);
}
.productPick__select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(157,0,68,.22);
  background: #fff;
}
.productPick__hint {
  font-size: 11px;
  margin: 6px 0 0;
  opacity: .65;
}
.productMeta {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 10px 0 12px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(157,0,68,.12);
}
.productMeta__img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;
}
.productMeta__title { font-family: var(--font-display); font-size: 15px; margin: 0 0 4px; }
.productMeta__desc { font-size: 12px; margin: 0; line-height: 1.4; opacity: .8; }
.productMeta__price { font-family: var(--font-accent); font-weight: 900; font-size: 14px; margin: 6px 0 0; color: var(--berry); }
.designsStatus { font-size: 12px; min-height: 1.2em; margin: 8px 0; color: rgba(0,0,0,.6); }
.designsHeading { margin-top: 8px !important; }

.designCollection { margin-bottom: 14px; }
.designCollection__title {
  font-family: var(--font-accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin: 0 0 8px;
  opacity: .65;
}
.designCollection__row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 10px;
}

.designGrid {
  display: block;
  gap: 12px;
  max-height: min(70vh, 560px);
  overflow: auto;
  padding-right: 4px;
}
.designCard {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid transparent;
  background: rgba(255,255,255,.8);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
  transition: .18s ease;
  padding: 10px;
}
.designCard:hover { border-color: rgba(216,27,96,.35); transform: translateY(-1px); }
.designCardActive { border-color: var(--hotpink); box-shadow: 0 0 0 3px rgba(255,140,0,.25); }
.designThumb {
  border-radius: 12px;
  border: 1px solid rgba(157,0,68,.15);
  background: #fff;
  aspect-ratio: 1 / 1;
  position: relative;
  overflow: hidden;
}
.designThumb__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.designThumb__ph {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(10px 10px at 20% 30%, rgba(255,140,0,.55), transparent 55%),
    radial-gradient(12px 12px at 60% 35%, rgba(255,140,0,.55), transparent 55%),
    radial-gradient(11px 11px at 40% 65%, rgba(255,140,0,.55), transparent 55%),
    radial-gradient(12px 12px at 75% 75%, rgba(255,140,0,.45), transparent 55%);
  opacity: .55;
}

.rightPanel { display: grid; gap: 12px; }
.dropZone--compact { padding: 22px 14px; }
.divider {
  height: 1px;
  background: rgba(157,0,68,.10);
  margin: 6px 0;
}

.dropZone {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  border-radius: 18px;
  border: 2px dashed #d8b4bc;
  padding: 28px 14px;
  background: #fff;
  cursor: pointer;
  transition: .15s ease;
  text-align: center;
}
.dropZone.drag { border-color: var(--hotpink); background: rgba(216,27,96,.03); }
.dropTitle { font-weight: 900; font-family: var(--font-accent); }
.dropSub { margin-top: 6px; font-size: 12px; opacity: .7; }

.artworkPreview {
  margin-top: 12px;
  border-radius: 18px;
  border: 1px solid rgba(157,0,68,.15);
  background: rgba(255,255,255,.9);
  padding: 10px;
  display: grid;
  gap: 10px;
}
.artworkPreview img {
  width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid rgba(157,0,68,.12);
  background: #fff;
}
.artworkMeta {
  font-family: var(--font-accent);
  font-weight: 800;
  font-size: 12px;
  opacity: .8;
  word-break: break-word;
}

.linkBtn {
  font-family: var(--font-accent);
  font-size: 12px;
  font-weight: 800;
  background: transparent;
  border: 0;
  padding: 6px 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Notes field (smaller like screenshot) */
.noteBox--sm { padding: 12px; }

.actionRow { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tinyMsg {
  margin: 0;
  font-family: var(--font-accent);
  font-size: 12px;
  opacity: .8;
  min-height: 18px;
}

.noteBox {
  width: 100%;
  resize: none;
  border-radius: 14px;
  border: 1px solid rgba(157,0,68,.15);
  background: rgba(255,255,255,.9);
  padding: 10px 12px;
  outline: none;
  font-family: var(--font-accent);
}
.noteBox:focus { box-shadow: 0 0 0 3px rgba(216,27,96,.15); border-color: rgba(216,27,96,.35); }

.btnRow { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.btnOutline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.2;
  font-family: var(--font-accent);
  font-weight: 900;
  border-radius: 999px;
  padding: 12px 14px;
  cursor: pointer;
  border: 2px solid var(--hotpink);
  transition: .15s ease;
  box-sizing: border-box;
}
.actionRow .btnOutline,
.actionRow .btn {
  width: 100%;
}
a.btnOutline {
  text-decoration: none;
}
.btnOutline { background: #fff; color: var(--hotpink); }
.btnOutline:hover { transform: translateY(-1px); }
.btnOutline:disabled { opacity: .45; cursor: not-allowed; transform: none; }

.hint { font-family: var(--font-accent); font-size: 12px; opacity: .75; margin: 10px 0 0; }
.msg { font-family: var(--font-accent); font-size: 12px; margin: 10px 0 0; }

.errorBox {
  margin-top: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,140,0,.35);
  background: rgba(250,232,208,.55);
  color: #7a3b00;
  padding: 10px 12px;
  font-family: var(--font-accent);
  font-weight: 800;
  font-size: 13px;
}

@media (max-width: 1100px) {
  .studioGrid { grid-template-columns: 1fr; }
  .sfInner { height: auto; padding: 12px 16px; flex-wrap: wrap; }
  .nav { justify-content: flex-start; width: 100%; }
}

