:root {
  --bg: #f5f8f8;
  --surface: #ffffff;
  --surface-soft: #ecf5f4;
  --ink: #101818;
  --muted: #61716f;
  --line: #d9e5e3;
  --primary: #0f766e;
  --primary-dark: #0a4f49;
  --accent: #c47a24;
  --accent-soft: #fff2df;
  --danger: #b42318;
  --good: #15803d;
  --shadow: 0 24px 60px rgba(16, 24, 24, 0.12);
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
}

body.drawer-open {
  overflow: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

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

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

input,
select {
  min-height: 46px;
  padding: 0 13px;
}

textarea {
  resize: vertical;
  padding: 12px 13px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.14);
}

label,
legend {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid rgba(217, 229, 227, 0.85);
  background: rgba(255, 255, 255, 0.92);
  padding: 14px clamp(16px, 4vw, 54px);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  min-width: 220px;
  gap: 11px;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  background: var(--primary-dark);
  color: #fff;
  font-weight: 950;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1.08rem;
  line-height: 1.05;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.main-nav,
.header-actions,
.hero-actions,
.trust-row,
.form-actions,
.summary-actions,
.drawer-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.main-nav {
  justify-content: center;
  flex: 1;
}

.main-nav a {
  border-radius: 8px;
  padding: 10px 11px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 850;
}

.main-nav a:hover {
  background: var(--surface-soft);
  color: var(--primary-dark);
}

.header-actions {
  justify-content: flex-end;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  width: min(300px, 24vw);
  color: var(--muted);
}

.search-box svg {
  position: absolute;
  left: 13px;
  width: 18px;
  height: 18px;
}

.search-box input {
  padding-left: 40px;
}

.primary-action,
.secondary-action,
.icon-button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 900;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
}

.primary-action {
  background: var(--primary);
  color: #fff;
}

.primary-action:hover {
  background: var(--primary-dark);
}

.secondary-action {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--primary-dark);
}

.secondary-action:hover {
  background: var(--surface-soft);
}

.large {
  min-height: 52px;
  padding: 0 20px;
}

.full {
  width: 100%;
}

.icon-button {
  position: relative;
  display: grid;
  width: 44px;
  min-width: 44px;
  place-items: center;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--primary-dark);
}

#cartCount {
  position: absolute;
  right: -5px;
  top: -7px;
  display: grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 950;
}

main {
  overflow: hidden;
}

.hero-section,
.catalog-section,
.builder-section,
.workflow-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-width: 0;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(420px, 0.9fr);
  align-items: start;
  gap: clamp(26px, 5vw, 72px);
  padding: clamp(46px, 7vw, 76px) 0 42px;
}

.hero-copy h1 {
  max-width: 690px;
  margin: 0;
  font-size: clamp(2.8rem, 5.7vw, 5rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.55;
}

.hero-actions {
  margin-top: 30px;
}

.trust-row {
  flex-wrap: wrap;
  margin-top: 26px;
}

.trust-row span {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px 12px;
  color: var(--primary-dark);
  font-size: 0.84rem;
  font-weight: 900;
}

.hero-studio,
.order-panel,
.summary-panel,
.workflow-grid article,
.drawer-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-studio {
  width: 100%;
  overflow: hidden;
}

.studio-toolbar,
.studio-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 0 18px;
}

.studio-toolbar {
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-weight: 900;
}

.studio-toolbar strong {
  color: var(--primary-dark);
  font-size: 1.25rem;
}

.mockup-stage {
  position: relative;
  height: 510px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.08), transparent 42%),
    linear-gradient(315deg, rgba(196, 122, 36, 0.13), transparent 38%),
    #f9fbfb;
}

.mock-card {
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: 8px;
  box-shadow: 0 26px 42px rgba(16, 24, 24, 0.18);
}

.business-card {
  left: 9%;
  top: 18%;
  width: 270px;
  height: 164px;
  transform: rotate(-8deg);
  background: linear-gradient(135deg, #062f2c, #0f766e);
  color: #fff;
  padding: 22px;
}

.business-card span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.78rem;
  font-weight: 950;
}

.business-card strong {
  margin-top: auto;
  font-size: 1.28rem;
}

.business-card small {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.76);
}

.qr-card {
  right: 9%;
  top: 28%;
  width: 178px;
  height: 204px;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: #fff;
  padding: 18px;
  text-align: center;
}

.qr-grid {
  width: 84px;
  height: 84px;
  background:
    linear-gradient(90deg, #111 10px, transparent 10px 18px, #111 18px 28px, transparent 28px),
    linear-gradient(#111 10px, transparent 10px 18px, #111 18px 28px, transparent 28px);
  background-size: 32px 32px;
  border: 8px solid #111;
}

.label-roll {
  position: absolute;
  left: 16%;
  bottom: 13%;
  width: 250px;
  height: 88px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 18px 36px rgba(16, 24, 24, 0.16);
}

.label-roll::before,
.label-roll::after {
  content: "";
  position: absolute;
  top: 50%;
  border-radius: 50%;
  transform: translateY(-50%);
}

.label-roll::before {
  left: 20px;
  width: 54px;
  height: 54px;
  background: var(--surface-soft);
}

.label-roll::after {
  right: 23px;
  width: 38px;
  height: 38px;
  background: var(--accent-soft);
}

.label-roll span {
  position: absolute;
  top: 24px;
  width: 28px;
  height: 40px;
  border-radius: 6px;
  background: #0f766e;
}

.label-roll span:nth-child(1) {
  left: 94px;
}

.label-roll span:nth-child(2) {
  left: 128px;
  background: var(--accent);
}

.label-roll span:nth-child(3) {
  left: 162px;
}

.mug-mock {
  position: absolute;
  right: 16%;
  bottom: 10%;
  display: grid;
  width: 116px;
  height: 122px;
  place-items: center;
  border-radius: 16px 16px 28px 28px;
  background: #fff;
  box-shadow: 0 22px 38px rgba(16, 24, 24, 0.16);
}

.mug-mock::after {
  content: "";
  position: absolute;
  right: -28px;
  top: 30px;
  width: 48px;
  height: 48px;
  border: 12px solid #fff;
  border-left: 0;
  border-radius: 0 999px 999px 0;
}

.mug-mock span,
.shirt-mock span {
  color: var(--primary-dark);
  font-weight: 950;
}

.shirt-mock {
  position: absolute;
  right: 31%;
  top: 9%;
  display: grid;
  width: 132px;
  height: 122px;
  place-items: center;
  clip-path: polygon(20% 0, 37% 0, 43% 10%, 57% 10%, 63% 0, 80% 0, 100% 26%, 84% 42%, 78% 100%, 22% 100%, 16% 42%, 0 26%);
  background: #e6f4f2;
  filter: drop-shadow(0 18px 28px rgba(16, 24, 24, 0.14));
}

.studio-status {
  justify-content: flex-start;
  gap: 9px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 850;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--good);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.section-heading h2,
.bulk-section h2,
.drawer-head h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.05;
}

.section-heading p,
.bulk-section p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.catalog-section,
.builder-section,
.workflow-section {
  padding: 36px 0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.product-card {
  display: grid;
  min-height: 220px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.product-card:hover,
.product-card.active {
  border-color: rgba(15, 118, 110, 0.45);
  box-shadow: 0 18px 38px rgba(16, 24, 24, 0.1);
  transform: translateY(-2px);
}

.product-visual {
  position: relative;
  min-height: 96px;
  border-radius: 8px;
  background: var(--surface-soft);
  overflow: hidden;
}

.product-visual::before,
.product-visual::after {
  content: "";
  position: absolute;
  border-radius: 8px;
  background: var(--primary);
  box-shadow: 0 12px 22px rgba(16, 24, 24, 0.14);
}

.visual-card::before {
  left: 26px;
  top: 28px;
  width: 92px;
  height: 54px;
  transform: rotate(-8deg);
}

.visual-card::after {
  right: 28px;
  top: 22px;
  width: 76px;
  height: 56px;
  background: #fff;
}

.visual-sticker::before {
  left: 30px;
  top: 20px;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--accent);
}

.visual-sticker::after {
  right: 34px;
  top: 27px;
  width: 74px;
  height: 48px;
  background: #fff;
}

.visual-apparel::before {
  left: 48px;
  top: 18px;
  width: 98px;
  height: 76px;
  clip-path: polygon(18% 0, 38% 0, 44% 10%, 56% 10%, 62% 0, 82% 0, 100% 28%, 84% 45%, 78% 100%, 22% 100%, 16% 45%, 0 28%);
}

.visual-apparel::after {
  right: 40px;
  top: 34px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
}

.visual-gift::before {
  left: 38px;
  top: 20px;
  width: 72px;
  height: 74px;
  border-radius: 10px 10px 20px 20px;
  background: #fff;
}

.visual-gift::after {
  right: 38px;
  top: 24px;
  width: 78px;
  height: 58px;
  background: var(--accent);
}

.product-card h3,
.workflow-grid h3 {
  margin: 16px 0 6px;
  font-size: 1.08rem;
}

.product-card p,
.workflow-grid p,
.summary-panel p,
.cart-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  color: var(--primary-dark);
  font-size: 0.9rem;
  font-weight: 950;
}

.builder-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.42fr);
  gap: 18px;
  align-items: start;
}

.order-panel,
.summary-panel {
  padding: 18px;
}

.order-panel {
  display: grid;
  gap: 16px;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.order-panel label {
  display: grid;
  gap: 8px;
}

.design-choice {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  border: 0;
  margin: 0;
  padding: 0;
}

.design-choice legend {
  grid-column: 1 / -1;
}

.design-choice label {
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 0 12px;
  color: var(--ink);
}

.design-choice input {
  width: auto;
  min-height: auto;
}

.upload-box {
  display: flex !important;
  min-height: 74px;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(15, 118, 110, 0.45);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--primary-dark);
  cursor: pointer;
  font-weight: 950;
}

.upload-box svg {
  width: 24px;
  height: 24px;
}

.summary-panel {
  position: sticky;
  top: 92px;
}

.summary-head {
  border-radius: 8px;
  background: var(--primary-dark);
  padding: 18px;
  color: #fff;
}

.summary-head span {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 850;
}

.summary-head strong {
  display: block;
  margin-top: 4px;
  font-size: 2.25rem;
}

.price-breakdown {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

.price-breakdown div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.price-breakdown dt {
  color: var(--muted);
  font-weight: 850;
}

.price-breakdown dd {
  margin: 0;
  text-align: right;
  font-weight: 950;
}

.summary-actions {
  flex-direction: column;
}

.summary-panel p {
  margin-top: 14px;
  font-size: 0.88rem;
}

.bulk-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1fr);
  gap: 24px;
  width: min(1180px, calc(100% - 32px));
  margin: 44px auto;
  border-radius: 8px;
  background: var(--primary-dark);
  padding: clamp(24px, 4vw, 42px);
  color: #fff;
}

.bulk-section p {
  color: rgba(255, 255, 255, 0.76);
}

.bulk-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.bulk-form button {
  grid-column: 1 / -1;
  background: var(--accent);
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.workflow-grid article {
  padding: 18px;
}

.workflow-grid strong {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  justify-content: flex-end;
  background: rgba(16, 24, 24, 0.32);
  padding: 16px;
}

.drawer-card {
  display: grid;
  width: min(420px, 100%);
  max-height: 100%;
  grid-template-rows: auto 1fr auto;
  padding: 18px;
}

.drawer-head {
  justify-content: space-between;
  padding-bottom: 14px;
}

.cart-items {
  display: grid;
  align-content: start;
  gap: 12px;
  overflow: auto;
  padding-right: 4px;
}

.cart-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.cart-item strong {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.empty-cart {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 18px;
  color: var(--muted);
  text-align: center;
}

.mobile-nav {
  display: none;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 70;
  max-width: min(420px, calc(100% - 36px));
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  padding: 13px 15px;
  font-weight: 850;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1120px) {
  .main-nav {
    display: none;
  }

  .hero-section {
    grid-template-columns: 1fr;
  }

  .mockup-stage {
    height: 420px;
  }

  .product-grid,
  .workflow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  body {
    padding-bottom: 72px;
  }

  .site-header {
    padding: 12px 14px;
  }

  .brand {
    min-width: 0;
  }

  .brand small,
  .search-box,
  .header-actions .primary-action {
    display: none;
  }

  .hero-section,
  .catalog-section,
  .builder-section,
  .workflow-section,
  .bulk-section {
    width: min(680px, calc(100vw - 24px));
    max-width: 300px;
    min-width: 0;
  }

  .hero-section {
    padding-top: 30px;
  }

  .hero-copy h1 {
    max-width: 100%;
    font-size: clamp(2.25rem, 9vw, 3.05rem);
    line-height: 1;
    overflow-wrap: anywhere;
  }

  .hero-copy p {
    max-width: 100%;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .large {
    width: 100%;
  }

  .trust-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trust-row span {
    min-width: 0;
    overflow-wrap: anywhere;
    text-align: center;
  }

  .hero-studio {
    min-width: 0;
  }

  .studio-toolbar,
  .studio-status {
    padding-inline: 14px;
  }

  .studio-status {
    align-items: flex-start;
  }

  .studio-status span:last-child {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .mockup-stage {
    height: 360px;
  }

  .business-card {
    left: 8%;
    width: 220px;
    height: 136px;
  }

  .qr-card {
    right: 7%;
    width: 140px;
    height: 170px;
  }

  .label-roll {
    left: 9%;
    width: 210px;
  }

  .mug-mock {
    right: 14%;
    width: 94px;
    height: 104px;
  }

  .shirt-mock {
    right: 28%;
    width: 105px;
    height: 98px;
  }

  .section-heading {
    display: grid;
  }

  .product-grid,
  .workflow-grid,
  .builder-layout,
  .bulk-section,
  .bulk-form,
  .two-col,
  .design-choice {
    grid-template-columns: 1fr;
  }

  .summary-panel {
    position: static;
  }

  .cart-drawer {
    padding: 10px;
  }

  .drawer-card {
    width: 100%;
  }

  .toast {
    bottom: 86px;
  }

  .mobile-nav {
    position: fixed;
    left: 0;
    bottom: 0;
    z-index: 25;
    display: grid;
    width: min(100vw, 390px);
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.94);
    padding: 8px 8px max(8px, env(safe-area-inset-bottom));
    backdrop-filter: blur(18px);
  }

  .mobile-nav a {
    min-width: 0;
    display: grid;
    place-items: center;
    gap: 4px;
    border-radius: 8px;
    padding: 8px 4px;
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 900;
    overflow: hidden;
  }

  .mobile-nav a:hover,
  .mobile-nav a:focus {
    background: var(--surface-soft);
    color: var(--primary-dark);
  }

  .mobile-nav svg {
    width: 20px;
    height: 20px;
  }
}

/* ID card designer text fit pass */
.product-id .vc-text {
  gap: 1px;
  width: min(58%, 390px);
}

.product-id .vc-text strong,
.product-id .vc-text span,
.product-id .vc-text small {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-id .vc-text strong {
  font-size: clamp(1.05rem, 1.8vw, 1.55rem);
  line-height: 1.02;
}

.product-id .vc-text span,
.product-id .vc-text small {
  font-size: clamp(0.68rem, 0.85vw, 0.82rem);
  line-height: 1.12;
}

.product-id.layout-center-seal .vc-text,
.product-id.layout-luxury-frame .vc-text,
.product-id.layout-minimal-grid .vc-text {
  inset: auto 64px 18px;
  width: auto;
}

.product-id.layout-top-band .vc-text,
.product-id.layout-editorial .vc-text,
.product-id.layout-contact-bar .vc-text {
  top: 54px;
  width: 62%;
}

.product-id.layout-qr-ledger .vc-text,
.product-id.layout-portrait-panel .vc-text {
  width: 50%;
}

/* Final QR sticker designer overrides */
.qr-template-card .qr-template-image-frame {
  aspect-ratio: 1;
}

.designer-card-face .product-qr.vc-preview {
  width: min(540px, 92%);
  aspect-ratio: 1;
  min-height: auto;
  border-radius: 30px;
}

.product-qr .vc-text {
  inset: auto 30px 28px !important;
  width: auto !important;
  text-align: center !important;
  gap: 2px;
}

.product-qr .vc-text strong,
.product-qr .vc-text span,
.product-qr .vc-text small {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-qr .vc-text strong {
  font-size: clamp(1rem, 2.1vw, 1.55rem);
}

.product-qr .vc-text span,
.product-qr .vc-text small {
  font-size: clamp(0.68rem, 1vw, 0.88rem);
}

.product-qr .vc-qr {
  left: 50% !important;
  top: 46% !important;
  right: auto !important;
  bottom: auto !important;
  width: clamp(108px, 23vw, 172px) !important;
  height: clamp(108px, 23vw, 172px) !important;
  box-sizing: content-box;
  overflow: hidden !important;
  opacity: 1 !important;
  border: 10px solid #ffffff !important;
  border-radius: 18px;
  transform: translate(-50%, -50%) !important;
  background: #ffffff !important;
  background-size: 22px 22px, 22px 22px;
  color: #111827 !important;
  box-shadow: 0 0 0 2px rgba(17, 24, 39, 0.14), 0 18px 34px rgba(17, 24, 39, 0.18);
}

.product-qr .vc-qr.qr-svg {
  display: block !important;
  box-sizing: content-box;
  overflow: hidden !important;
  opacity: 1 !important;
  background: #ffffff !important;
  border: 10px solid #ffffff !important;
  color: #111827 !important;
  box-shadow: 0 0 0 2px rgba(17, 24, 39, 0.14), 0 18px 34px rgba(17, 24, 39, 0.18);
}

.product-qr .vc-qr.qr-svg svg {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  shape-rendering: crispEdges;
}

.product-qr .vc-mark {
  left: 50% !important;
  top: 22px !important;
  transform: translateX(-50%) !important;
}

.product-qr .vc-accent-line {
  left: 50% !important;
  top: 92px !important;
  width: 118px !important;
  height: 8px !important;
  transform: translateX(-50%) !important;
}

/* Product label template and designer flow */
.labels-page .vc-template-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.label-template-card .label-template-image-frame,
.label-preview-image-frame {
  aspect-ratio: 1.52 / 1;
  background: #f8fafc;
}

.labels-page .vc-template-image,
.label-preview-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.designer-card-face .product-label.vc-preview {
  width: min(580px, 94%);
  aspect-ratio: 1.52 / 1;
  min-height: auto;
  border-radius: 28px;
}

.product-label .vc-text {
  inset: auto 36px 38px !important;
  width: min(68%, 430px) !important;
  text-align: left !important;
  gap: 3px;
}

.product-label .vc-text strong,
.product-label .vc-text span,
.product-label .vc-text small {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-label .vc-text strong {
  font-size: clamp(1.15rem, 2vw, 1.85rem);
}

.product-label .vc-text span {
  font-size: clamp(0.84rem, 1.15vw, 1.08rem);
}

.product-label .vc-text small {
  font-size: clamp(0.68rem, 0.95vw, 0.82rem);
}

.product-label .vc-mark {
  left: 36px !important;
  top: 30px !important;
  transform: none !important;
}

.product-label .vc-accent-line {
  left: 36px !important;
  top: 104px !important;
  width: 136px !important;
  height: 8px !important;
  transform: none !important;
}

.product-label .vc-qr.label-barcode {
  left: auto !important;
  right: 36px !important;
  top: auto !important;
  bottom: 40px !important;
  width: 132px !important;
  height: 42px !important;
  border: 0 !important;
  border-radius: 6px;
  opacity: 0.92 !important;
  transform: none !important;
  background:
    repeating-linear-gradient(
      90deg,
      currentColor 0 3px,
      transparent 3px 7px,
      currentColor 7px 9px,
      transparent 9px 15px,
      currentColor 15px 20px,
      transparent 20px 25px
    ) !important;
  box-shadow: none !important;
}

@media (max-width: 620px) {
  .product-label .vc-text {
    inset: auto 22px 28px !important;
    width: calc(100% - 44px) !important;
  }

  .product-label .vc-qr.label-barcode {
    right: 22px !important;
    bottom: 22px !important;
    width: 94px !important;
    height: 30px !important;
  }
}

/* Final imported ID designer: keep the selected template image as the real base. */
.designer-card-face .vc-art.has-template-bg.product-id {
  padding: 0 !important;
  background: #ffffff !important;
  overflow: hidden;
}

.designer-card-face .vc-art.has-template-bg.product-id::before,
.designer-card-face .vc-art.has-template-bg.product-id::after {
  display: none !important;
}

.designer-card-face .vc-art.has-template-bg.product-id .designer-template-bg {
  z-index: 2;
  object-fit: cover;
}

.designer-card-face .vc-art.has-template-bg.product-id.zip-template-bg .designer-template-bg {
  object-fit: contain;
}

.designer-card-face .vc-art.has-template-bg.product-id .vc-mark,
.designer-card-face .vc-art.has-template-bg.product-id .vc-text,
.designer-card-face .vc-art.has-template-bg.product-id .vc-qr,
.designer-card-face .vc-art.has-template-bg.product-id .vc-accent-line,
.designer-card-face .vc-art.has-template-bg.product-id em {
  display: none !important;
}

.designer-card-face .vc-art.has-template-bg.product-id em {
  z-index: 4;
  right: 12px;
  bottom: 10px;
  background: rgba(255, 255, 255, 0.76);
  color: #111827;
}

@media (max-width: 620px) {
  .accessories-page .accessory-template-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .accessories-page .accessory-template-card {
    min-width: 0;
    padding: 8px;
  }
}

/* Legacy record software module styles */
.pinned-page {
  --pin-bg: #f8f8ff;
  --pin-ink: #141526;
  --pin-muted: #60657a;
  --pin-line: rgba(124, 116, 214, 0.2);
  --pin-purple: #6754ec;
  --pin-purple-dark: #4d3cd1;
  --pin-soft: #f0eeff;
  --pin-danger: #d03a4d;
  min-height: 100vh;
  background:
    linear-gradient(180deg, #ffffff 0, #f8f8ff 34%, #f3f5ff 100%);
  color: var(--pin-ink);
}

.pinned-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(210px, 0.55fr) minmax(280px, 1fr) auto;
  align-items: center;
  gap: clamp(14px, 3vw, 30px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.74);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.16)),
    linear-gradient(135deg, rgba(104, 85, 239, 0.94), rgba(170, 149, 255, 0.92));
  padding: 16px clamp(16px, 4vw, 58px);
  box-shadow: 0 20px 48px rgba(90, 75, 213, 0.2);
  backdrop-filter: blur(12px);
}

.pinned-brand,
.pinned-header-actions,
.pinned-hero-panel,
.pinned-section-head,
.pinned-action-grid,
.pinned-row-actions,
.pinned-mobile-nav {
  display: flex;
  align-items: center;
}

.pinned-brand {
  gap: 12px;
  min-width: 0;
  color: #fff;
}

.pinned-brand-mark {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.64);
  font-weight: 950;
}

.pinned-brand strong,
.pinned-brand small {
  display: block;
}

.pinned-brand strong {
  font-size: 1.26rem;
  line-height: 1;
}

.pinned-brand small,
.pinned-header-copy p {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 850;
}

.pinned-header-copy h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.65rem, 4vw, 3.1rem);
  line-height: 0.98;
}

.pinned-header-copy p {
  margin: 5px 0 0;
  line-height: 1.35;
}

.pinned-header-actions {
  gap: 10px;
  justify-content: flex-end;
}

.pinned-primary-btn,
.pinned-ghost-btn,
.pinned-action-grid button,
.pinned-action-grid a,
.pinned-tabs button,
.pinned-row-actions button,
.pinned-mobile-nav button,
.pinned-mobile-nav a {
  min-height: 44px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 950;
  letter-spacing: 0;
}

.pinned-primary-btn {
  border: 0;
  background: linear-gradient(135deg, var(--pin-purple), #aa95ff);
  color: #fff;
  box-shadow: 0 14px 32px rgba(92, 76, 226, 0.26);
}

.pinned-ghost-btn {
  border: 1px solid rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.pinned-header-actions .pinned-primary-btn,
.pinned-header-actions .pinned-ghost-btn {
  padding: 0 18px;
}

.pinned-shell {
  display: grid;
  width: min(1440px, calc(100% - 36px));
  grid-template-columns: 88px minmax(0, 1fr) minmax(330px, 0.34fr);
  gap: 18px;
  margin: 22px auto 96px;
  overflow: visible;
}

.pinned-rail,
.pinned-main,
.pinned-side-panel,
.pinned-actions-card,
.pinned-records-panel,
.pinned-stats article {
  border: 1px solid var(--pin-line);
  background: rgba(255, 255, 255, 0.86);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 18px 46px rgba(78, 71, 145, 0.11);
}

.pinned-rail {
  position: sticky;
  top: 104px;
  display: grid;
  align-content: start;
  gap: 10px;
  height: calc(100vh - 130px);
  border-radius: 22px;
  padding: 12px;
}

.pinned-rail button,
.pinned-rail a {
  display: grid;
  min-height: 68px;
  place-items: center;
  gap: 4px;
  border: 1px solid transparent;
  border-radius: 16px;
  background: transparent;
  color: var(--pin-muted);
  text-align: center;
  cursor: pointer;
}

.pinned-rail button.active,
.pinned-rail button:hover,
.pinned-rail a:hover {
  border-color: rgba(103, 84, 236, 0.2);
  background: linear-gradient(135deg, rgba(103, 84, 236, 0.14), rgba(255, 255, 255, 0.74));
  color: var(--pin-purple-dark);
}

.pinned-rail span {
  display: grid;
  min-width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 10px;
  background: var(--pin-soft);
  color: var(--pin-purple-dark);
  font-size: 0.78rem;
  font-weight: 950;
}

.pinned-rail small {
  font-size: 0.72rem;
  font-weight: 950;
}

.pinned-main {
  display: grid;
  gap: 16px;
  min-width: 0;
  border-radius: 26px;
  padding: clamp(14px, 2vw, 20px);
}

.pinned-hero-panel {
  justify-content: space-between;
  gap: 18px;
  min-height: 178px;
  overflow: hidden;
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.2), transparent 38%),
    linear-gradient(135deg, #6653ef, #a997ff);
  padding: clamp(22px, 4vw, 38px);
  color: #fff;
}

.pinned-company {
  display: block;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.92rem;
  font-weight: 900;
  text-transform: uppercase;
}

.pinned-hero-panel h2 {
  margin: 7px 0 10px;
  font-size: clamp(2.2rem, 5.4vw, 5rem);
  line-height: 0.92;
}

.pinned-hero-panel p {
  max-width: 650px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.45;
}

.pinned-user-card {
  display: grid;
  min-width: 180px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.18);
  padding: 18px;
  text-align: right;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.pinned-user-card span {
  color: rgba(255, 255, 255, 0.84);
  font-weight: 850;
}

.pinned-user-card strong {
  font-size: 1.6rem;
}

.pinned-alert {
  display: flex;
  gap: 12px;
  align-items: center;
  border-left: 5px solid var(--pin-danger);
  border-radius: 16px;
  background: #fff0f4;
  padding: 15px 18px;
  color: #7c2434;
}

.pinned-alert strong {
  color: #b51f37;
}

.pinned-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.pinned-stats article {
  display: grid;
  min-height: 112px;
  place-items: center;
  border-radius: 22px;
  text-align: center;
}

.pinned-stats strong {
  color: var(--pin-purple);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
}

.pinned-stats span {
  color: var(--pin-muted);
  font-size: 0.84rem;
  font-weight: 950;
  text-transform: uppercase;
}

.pinned-actions-card,
.pinned-records-panel,
.pinned-side-panel {
  min-width: 0;
  border-radius: 24px;
  padding: clamp(16px, 2.4vw, 24px);
}

.pinned-section-head {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.pinned-section-head h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  line-height: 1;
}

.pinned-section-head p {
  margin: 6px 0 0;
  color: var(--pin-muted);
  line-height: 1.35;
}

.pinned-section-head > span,
.pinned-status,
.pinned-type {
  border: 1px solid rgba(103, 84, 236, 0.16);
  border-radius: 999px;
  background: var(--pin-soft);
  color: var(--pin-purple-dark);
  padding: 7px 10px;
  font-size: 0.78rem;
  font-weight: 950;
}

.pinned-action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.pinned-action-grid button,
.pinned-action-grid a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 62px;
  border: 1px solid rgba(124, 116, 214, 0.22);
  background: rgba(255, 255, 255, 0.88);
  color: var(--pin-ink);
  padding: 0 14px;
  text-align: center;
}

.pinned-action-grid .pinned-action-main {
  grid-column: 1 / -1;
  min-height: 72px;
  border: 0;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.24), transparent 42%),
    linear-gradient(135deg, #6552ef, #b3a4ff);
  color: #fff;
  box-shadow: 0 18px 36px rgba(92, 76, 226, 0.24);
}

.pinned-search {
  width: min(340px, 100%);
}

.pinned-search input {
  border-color: rgba(124, 116, 214, 0.24);
  background: #fff;
}

.pinned-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 14px;
}

.pinned-tabs button {
  border: 1px solid rgba(124, 116, 214, 0.2);
  background: #fff;
  color: var(--pin-muted);
  padding: 0 15px;
}

.pinned-tabs button.active {
  border-color: transparent;
  background: var(--pin-purple);
  color: #fff;
}

.pinned-table-wrap {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  border: 1px solid rgba(124, 116, 214, 0.16);
  border-radius: 18px;
}

.pinned-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: #fff;
}

.pinned-table th,
.pinned-table td {
  padding: 15px 14px;
  border-bottom: 1px solid rgba(124, 116, 214, 0.14);
  text-align: left;
  vertical-align: middle;
}

.pinned-table th {
  color: var(--pin-muted);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.pinned-table td {
  color: var(--pin-ink);
  font-weight: 800;
}

.pinned-table td strong,
.pinned-table td small {
  display: block;
}

.pinned-table td small {
  margin-top: 3px;
  color: var(--pin-muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.pinned-status.hot {
  background: #f2efff;
  color: var(--pin-purple-dark);
}

.pinned-row-actions {
  flex-wrap: wrap;
  gap: 7px;
}

.pinned-row-actions button {
  min-height: 34px;
  border: 1px solid rgba(124, 116, 214, 0.2);
  background: #fff;
  color: var(--pin-purple-dark);
  padding: 0 10px;
  font-size: 0.76rem;
}

.pinned-empty {
  margin: 14px 0 0;
  border: 1px dashed rgba(124, 116, 214, 0.25);
  border-radius: 16px;
  padding: 16px;
  color: var(--pin-muted);
  text-align: center;
}

.pinned-side-panel {
  position: sticky;
  top: 104px;
  align-self: start;
}

.pinned-form-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.28), transparent 42%),
    linear-gradient(135deg, #6552ef, #a995ff);
  padding: 18px;
  color: #fff;
}

.pinned-form-head span {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 900;
}

.pinned-form-head strong {
  font-size: 1.5rem;
}

.pinned-form {
  display: grid;
  gap: 13px;
}

.pinned-form label {
  display: grid;
  gap: 7px;
  color: var(--pin-muted);
  font-size: 0.82rem;
}

.pinned-form input,
.pinned-form select {
  border-color: rgba(124, 116, 214, 0.23);
  background: #fff;
}

.pinned-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 0.62fr);
  gap: 10px;
}

.pinned-check {
  display: flex !important;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 9px !important;
  border: 1px solid rgba(124, 116, 214, 0.18);
  border-radius: 14px;
  background: #fbfbff;
  padding: 10px 12px;
}

.pinned-check input {
  width: 18px;
  min-height: 18px;
}

.pinned-form .pinned-primary-btn,
.pinned-form .pinned-ghost-btn {
  width: 100%;
  color: #fff;
}

.pinned-form .pinned-ghost-btn {
  border-color: rgba(124, 116, 214, 0.22);
  background: #fff;
  color: var(--pin-purple-dark);
}

.pinned-mobile-nav {
  display: none;
}

@media (max-width: 1160px) {
  .pinned-header {
    grid-template-columns: 1fr auto;
  }

  .pinned-header-copy {
    grid-column: 1 / -1;
    order: 3;
  }

  .pinned-shell {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .pinned-side-panel {
    grid-column: 2;
    position: static;
  }
}

@media (max-width: 820px) {
  .pinned-page {
    padding-bottom: 74px;
  }

  .pinned-header {
    position: relative;
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .pinned-header-actions {
    justify-content: stretch;
  }

  .pinned-header-actions .pinned-primary-btn,
  .pinned-header-actions .pinned-ghost-btn {
    flex: 1;
  }

  .pinned-shell {
    width: min(100% - 24px, 560px);
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 14px;
  }

  .pinned-rail {
    display: none;
  }

  .pinned-main,
  .pinned-side-panel {
    grid-column: auto;
    width: 100%;
    border-radius: 22px;
  }

  .pinned-hero-panel {
    align-items: stretch;
    flex-direction: column;
    border-radius: 22px;
  }

  .pinned-user-card {
    min-width: 0;
    text-align: left;
  }

  .pinned-alert {
    align-items: flex-start;
    flex-direction: column;
  }

  .pinned-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 0;
  }

  .pinned-action-grid,
  .pinned-form-grid {
    grid-template-columns: 1fr;
  }

  .pinned-section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .pinned-search {
    width: 100%;
  }

  .pinned-mobile-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    border-top: 1px solid rgba(124, 116, 214, 0.18);
    background: rgba(255, 255, 255, 0.94);
    padding: 8px 8px max(8px, env(safe-area-inset-bottom));
    backdrop-filter: blur(14px);
  }

  .pinned-mobile-nav button,
  .pinned-mobile-nav a {
    display: grid;
    min-width: 0;
    min-height: 46px;
    place-items: center;
    border: 0;
    background: transparent;
    color: var(--pin-muted);
    font-size: 0.76rem;
    text-align: center;
  }

  .pinned-mobile-nav .active,
  .pinned-mobile-nav button:hover,
  .pinned-mobile-nav a:hover {
    background: var(--pin-soft);
    color: var(--pin-purple-dark);
  }
}

/* Final imported ID designer: keep the selected template image as the real base. */
.designer-card-face .vc-art.has-template-bg.product-id {
  padding: 0 !important;
  background: #ffffff !important;
  overflow: hidden;
}

.designer-card-face .vc-art.has-template-bg.product-id::before,
.designer-card-face .vc-art.has-template-bg.product-id::after {
  display: none !important;
}

.designer-card-face .vc-art.has-template-bg.product-id .designer-template-bg {
  z-index: 2;
  object-fit: cover;
}

.designer-card-face .vc-art.has-template-bg.product-id.zip-template-bg .designer-template-bg {
  object-fit: contain;
}

.designer-card-face .vc-art.has-template-bg.product-id .vc-mark,
.designer-card-face .vc-art.has-template-bg.product-id .vc-text,
.designer-card-face .vc-art.has-template-bg.product-id .vc-qr,
.designer-card-face .vc-art.has-template-bg.product-id .vc-accent-line {
  display: none !important;
}

.designer-card-face .vc-art.has-template-bg.product-id em {
  z-index: 4;
  right: 12px;
  bottom: 10px;
  background: rgba(255, 255, 255, 0.76);
  color: #111827;
}

/* Imported ID card pack previews */
.id-page .vc-template-card.imported-id-template {
  border-color: rgba(111, 93, 242, 0.32);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 246, 255, 0.96) 100%);
  box-shadow: 0 18px 44px rgba(80, 70, 160, 0.12);
}

.id-page .vc-template-card.imported-id-template b::after {
  content: "RAR";
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(111, 93, 242, 0.12);
  color: #5f52f2;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.id-page .vc-template-card.zip-id-template {
  border-color: rgba(37, 99, 235, 0.34);
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.id-page .vc-template-card.zip-id-template b::after {
  content: "ZIP";
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
}

.id-page .vc-template-card.zip-id-template .vc-template-image {
  object-fit: contain;
}

.id-page .vc-template-card.zip-id-template .vc-template-image-frame {
  background: #f8fafc;
}

.designer-card-face .vc-art.has-template-bg {
  background: #fff !important;
}

.designer-template-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.zip-template-bg .designer-template-bg {
  object-fit: contain;
  background: #ffffff;
}

.vc-art.has-template-bg .vc-mark,
.vc-art.has-template-bg .vc-text,
.vc-art.has-template-bg .vc-qr,
.vc-art.has-template-bg .vc-accent-line,
.vc-art.has-template-bg em {
  z-index: 4;
}

.vc-art.has-template-bg.product-id .vc-text {
  inset: auto 30px 28px 30px !important;
  width: auto !important;
  max-width: 66%;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 38px rgba(17, 24, 39, 0.14);
  color: #111827;
  backdrop-filter: blur(8px);
}

.vc-art.has-template-bg.product-id .vc-text strong,
.vc-art.has-template-bg.product-id .vc-text span,
.vc-art.has-template-bg.product-id .vc-text small {
  color: #111827;
}

.vc-art.has-template-bg.product-id .vc-mark {
  left: 28px !important;
  top: 26px !important;
  transform: none !important;
  background: rgba(255, 255, 255, 0.86);
  color: #111827;
  box-shadow: 0 14px 30px rgba(17, 24, 39, 0.16);
}

.vc-art.has-template-bg.product-id .vc-qr {
  right: 30px !important;
  bottom: 30px !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
  width: 78px !important;
  height: 78px !important;
  opacity: 0.96;
}

.vc-art.has-template-bg.product-id .vc-accent-line {
  display: none;
}

@media (max-width: 620px) {
  .vc-art.has-template-bg.product-id .vc-text {
    inset: auto 18px 18px 18px !important;
    max-width: calc(100% - 36px);
  }

  .vc-art.has-template-bg.product-id .vc-qr {
    display: none;
  }
}

/* Keep the live designer QR visible above all earlier card-pattern rules. */
.product-qr .vc-qr.qr-svg {
  display: block !important;
  box-sizing: content-box;
  overflow: hidden !important;
  opacity: 1 !important;
  background: #ffffff !important;
  border: 10px solid #ffffff !important;
  color: #111827 !important;
  box-shadow: 0 0 0 2px rgba(17, 24, 39, 0.14), 0 18px 34px rgba(17, 24, 39, 0.18);
}

.product-qr .vc-qr.qr-svg svg {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  shape-rendering: crispEdges;
}

/* Keep the live designer QR visible above all earlier card-pattern rules. */
.product-qr .vc-qr.qr-svg {
  display: block !important;
  box-sizing: content-box;
  overflow: hidden !important;
  opacity: 1 !important;
  background: #ffffff !important;
  border: 10px solid #ffffff !important;
  color: #111827 !important;
  box-shadow: 0 0 0 2px rgba(17, 24, 39, 0.14), 0 18px 34px rgba(17, 24, 39, 0.18);
}

.product-qr .vc-qr.qr-svg svg {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  shape-rendering: crispEdges;
}

.product-qr .vc-qr.qr-svg {
  display: block !important;
  box-sizing: content-box;
  overflow: hidden !important;
  opacity: 1 !important;
  background: #ffffff !important;
  border: 10px solid #ffffff !important;
  color: #111827 !important;
  box-shadow: 0 0 0 2px rgba(17, 24, 39, 0.14), 0 18px 34px rgba(17, 24, 39, 0.18);
}

.product-qr .vc-qr.qr-svg svg {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  shape-rendering: crispEdges;
}

/* Final real QR code rendering */
.product-qr .vc-qr {
  background: #ffffff !important;
  border: 10px solid #ffffff !important;
  box-shadow: 0 0 0 2px rgba(17, 24, 39, 0.14), 0 18px 34px rgba(17, 24, 39, 0.18);
}

.product-qr .vc-qr svg {
  display: block;
  width: 100%;
  height: 100%;
  shape-rendering: crispEdges;
}

/* QR page final square preview fit */
.qr-page .vc-template-grid {
  grid-template-columns: repeat(auto-fit, minmax(178px, 1fr));
}

.qr-page .vc-template-image-frame,
.qr-page .nfc-preview-image-frame {
  aspect-ratio: 1;
  background: #f8fafc;
}

.qr-page .vc-template-image,
.qr-page .nfc-preview-image {
  object-fit: contain;
  padding: 8px;
}

.qr-page .nfc-preview-card {
  justify-items: center;
}

.qr-page .nfc-preview-image-frame {
  max-width: min(360px, 100%);
  border-radius: 26px;
}

/* QR sticker designer fit overrides */
.qr-template-card .qr-template-image-frame {
  aspect-ratio: 1;
}

.designer-card-face .product-qr.vc-preview {
  width: min(540px, 92%);
  aspect-ratio: 1;
  min-height: auto;
  border-radius: 30px;
}

.product-qr .vc-text {
  inset: auto 30px 28px !important;
  width: auto !important;
  text-align: center !important;
  gap: 2px;
}

.product-qr .vc-text strong,
.product-qr .vc-text span,
.product-qr .vc-text small {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-qr .vc-text strong {
  font-size: clamp(1rem, 2.1vw, 1.55rem);
}

.product-qr .vc-text span,
.product-qr .vc-text small {
  font-size: clamp(0.68rem, 1vw, 0.88rem);
}

.product-qr .vc-qr {
  left: 50% !important;
  top: 46% !important;
  right: auto !important;
  bottom: auto !important;
  width: clamp(108px, 23vw, 172px);
  height: clamp(108px, 23vw, 172px);
  border-width: 8px;
  border-radius: 18px;
  transform: translate(-50%, -50%) !important;
  background-size: 22px 22px, 22px 22px;
}

.product-qr .vc-mark {
  left: 50% !important;
  top: 22px !important;
  transform: translateX(-50%);
}

.product-qr .vc-accent-line {
  left: 50% !important;
  top: 92px !important;
  width: 118px;
  height: 8px;
  transform: translateX(-50%) !important;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* VistaPrint-inspired liquid glass refresh */
body {
  background:
    linear-gradient(180deg, #ffffff 0, #f3f8f8 34%, #eef6f5 100%);
}

.site-header {
  display: block;
  padding: 0;
  border-bottom: 1px solid rgba(200, 216, 214, 0.72);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 42px rgba(15, 79, 73, 0.06);
  backdrop-filter: blur(28px) saturate(180%);
}

.header-main {
  display: grid;
  grid-template-columns: minmax(190px, 0.55fr) minmax(280px, 0.78fr) auto;
  align-items: center;
  gap: 18px;
  padding: 14px clamp(16px, 4vw, 54px);
}

.brand-mark,
.primary-action,
.secondary-action,
.glass-action,
.icon-button,
.search-box input,
.product-card,
.hero-studio,
.hero-order-card,
.order-panel,
.summary-panel,
.workflow-grid article {
  position: relative;
  overflow: hidden;
}

.brand-mark::after,
.primary-action::after,
.secondary-action::after,
.glass-action::after,
.icon-button::after,
.product-card::after,
.hero-studio::after,
.hero-order-card::after,
.order-panel::after,
.summary-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.42), transparent 42%);
  pointer-events: none;
}

.brand-mark {
  background: linear-gradient(145deg, #073f3b, #0f766e);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 12px 28px rgba(10, 79, 73, 0.22);
}

.search-box {
  width: 100%;
}

.search-box input {
  border-color: rgba(185, 207, 204, 0.78);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(18px);
}

.header-actions {
  gap: 12px;
}

.utility-link {
  color: #1d2b2a;
  font-size: 0.88rem;
  font-weight: 850;
  white-space: nowrap;
}

.utility-link:hover {
  color: var(--primary);
}

.category-nav {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  border-top: 1px solid rgba(217, 229, 227, 0.7);
  padding: 0 clamp(16px, 4vw, 54px);
}

.category-nav a {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  padding: 0 15px;
  color: #263836;
  font-size: 0.92rem;
  font-weight: 850;
  white-space: nowrap;
}

.category-nav a:hover {
  color: var(--primary);
}

.primary-action,
.secondary-action,
.glass-action,
.icon-button {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42), 0 14px 28px rgba(10, 79, 73, 0.1);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.primary-action:hover,
.secondary-action:hover,
.glass-action:hover,
.icon-button:hover {
  transform: translateY(-1px);
}

.primary-action {
  background: linear-gradient(135deg, #0f766e, #0b5f58);
}

.glass-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid rgba(180, 204, 201, 0.82);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--primary-dark);
  padding: 0 16px;
  font-weight: 900;
  backdrop-filter: blur(18px) saturate(160%);
}

.cart-action {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: linear-gradient(135deg, #f8b12f, #d6851f);
  color: #201402;
  font-weight: 950;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 18px 36px rgba(196, 122, 36, 0.24);
}

.hero-section {
  width: min(1280px, calc(100% - 32px));
  grid-template-columns: minmax(0, 0.82fr) minmax(480px, 0.72fr);
  align-items: center;
  padding-top: clamp(38px, 5vw, 64px);
}

.hero-copy h1 {
  font-size: clamp(3.2rem, 5vw, 5.35rem);
  line-height: 0.96;
}

.hero-copy p {
  max-width: 660px;
}

.trust-row span {
  background: rgba(255, 255, 255, 0.64);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(14px);
}

.hero-studio {
  border-color: rgba(182, 206, 203, 0.78);
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 34px 78px rgba(16, 24, 24, 0.14);
  backdrop-filter: blur(24px) saturate(170%);
}

.mockup-stage {
  height: 490px;
  background:
    radial-gradient(circle at 72% 68%, rgba(196, 122, 36, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(15, 118, 110, 0.08), rgba(255, 255, 255, 0.22) 48%),
    #f8fbfb;
}

.business-card {
  left: 7%;
  top: 22%;
  background: linear-gradient(135deg, #073f3b, #0f766e 76%, #1d9489);
}

.hero-order-card {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 3;
  display: grid;
  width: min(285px, calc(100% - 36px));
  gap: 10px;
  border: 1px solid rgba(198, 217, 215, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  padding: 14px;
  box-shadow: 0 20px 45px rgba(16, 24, 24, 0.16);
  backdrop-filter: blur(22px) saturate(180%);
}

.hero-order-head,
.hero-order-step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hero-order-head a {
  color: var(--primary);
  font-size: 0.84rem;
  font-weight: 950;
}

.hero-order-step {
  justify-content: flex-start;
  border: 1px solid rgba(217, 229, 227, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  padding: 10px;
}

.hero-order-step > span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--primary-dark);
  font-weight: 950;
}

.hero-order-step small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-weight: 800;
}

.product-card,
.order-panel,
.summary-panel,
.workflow-grid article {
  border-color: rgba(188, 211, 208, 0.85);
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(18px) saturate(150%);
}

.product-card {
  box-shadow: 0 14px 36px rgba(16, 24, 24, 0.07);
}

.product-card:hover,
.product-card.active {
  box-shadow: 0 24px 54px rgba(10, 79, 73, 0.15);
}

.summary-head {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), transparent 38%),
    linear-gradient(135deg, #063b37, #0f766e);
}

.bulk-section {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), transparent 42%),
    linear-gradient(135deg, #073f3b, #0f766e);
  box-shadow: 0 30px 70px rgba(10, 79, 73, 0.18);
}

@media (max-width: 1120px) {
  .header-main {
    grid-template-columns: minmax(180px, auto) 1fr auto;
  }

  .utility-link {
    display: none;
  }

  .hero-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .header-main {
    display: flex;
    padding: 12px 14px;
  }

  .category-nav,
  .header-actions .primary-action {
    display: none;
  }

  .hero-section {
    width: min(100% - 24px, 300px);
    max-width: 300px;
  }

  .hero-copy {
    display: grid;
    justify-items: center;
    text-align: center;
  }

  .hero-copy h1 {
    max-width: 315px;
    font-size: clamp(2.35rem, 10vw, 3.1rem);
  }

  .hero-copy p {
    max-width: 330px;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-order-card {
    display: none;
  }

  .mockup-stage {
    height: 330px;
  }

  .mobile-nav {
    width: min(100vw, 390px);
    left: 50%;
    transform: translateX(-50%);
  }
}

/* High-fidelity glass pass */
:root {
  --glass: rgba(255, 255, 255, 0.68);
  --glass-strong: rgba(255, 255, 255, 0.84);
  --glass-line: rgba(185, 211, 207, 0.68);
  --ink: #081312;
  --muted: #627471;
  --primary: #006d66;
  --primary-dark: #004c47;
  --accent: #f5a313;
  --shadow: 0 24px 80px rgba(13, 35, 33, 0.13);
}

body {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 249, 249, 0.92) 36%, #eef6f5),
    radial-gradient(circle at 62% 12%, rgba(0, 109, 102, 0.13), transparent 34%);
}

.service-strip {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--glass-line);
  padding: 0 clamp(16px, 4vw, 54px);
  color: #243836;
  font-size: 0.82rem;
  font-weight: 800;
}

.service-strip span {
  white-space: nowrap;
}

.site-header {
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(30px) saturate(190%);
}

.header-main {
  grid-template-columns: minmax(214px, 0.46fr) minmax(360px, 0.78fr) auto;
  padding-top: 18px;
  padding-bottom: 18px;
}

.brand-mark {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.24), transparent 35%),
    linear-gradient(135deg, #003f3b, #008179);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 18px 36px rgba(0, 77, 71, 0.24);
}

.brand strong {
  font-size: 1.48rem;
  letter-spacing: 0;
}

.brand small {
  color: #344a47;
  font-size: 0.83rem;
}

.search-box input {
  min-height: 54px;
  border-radius: 14px;
  border-color: rgba(167, 197, 192, 0.78);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.62));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 16px 44px rgba(13, 35, 33, 0.08);
  font-weight: 750;
}

.category-nav {
  min-height: 58px;
  align-items: center;
  background: rgba(255, 255, 255, 0.46);
}

.category-nav a {
  min-height: 40px;
  border-radius: 12px;
  padding: 0 18px;
}

.category-nav a:hover {
  background: rgba(255, 255, 255, 0.74);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 12px 30px rgba(13, 35, 33, 0.08);
}

.primary-action,
.secondary-action,
.glass-action,
.icon-button,
.cart-action {
  border-radius: 12px;
}

.primary-action {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.25), transparent 40%),
    linear-gradient(135deg, #008177, #005f59);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 18px 36px rgba(0, 109, 102, 0.24);
}

.secondary-action,
.glass-action,
.icon-button {
  border: 1px solid rgba(174, 203, 198, 0.82);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.54));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 18px 38px rgba(13, 35, 33, 0.08);
  backdrop-filter: blur(22px) saturate(180%);
}

.cart-action {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.32), transparent 42%),
    linear-gradient(135deg, #ffba2f, #ed8b00);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.46),
    0 20px 44px rgba(237, 139, 0, 0.28);
}

.hero-section {
  width: min(1440px, calc(100% - 48px));
  grid-template-columns: minmax(0, 0.78fr) minmax(560px, 0.82fr);
  gap: clamp(34px, 4vw, 76px);
  padding-top: clamp(44px, 5vw, 78px);
}

.hero-copy h1 {
  max-width: 720px;
  font-size: clamp(3.8rem, 5.25vw, 6rem);
  line-height: 0.94;
  font-weight: 950;
}

.hero-copy p {
  max-width: 650px;
  color: #536966;
  font-size: clamp(1.1rem, 1.42vw, 1.42rem);
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions .large {
  min-height: 58px;
  padding: 0 24px;
  font-size: 0.98rem;
}

.proof-panel {
  display: grid;
  max-width: 620px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 24px;
  overflow: hidden;
  border: 1px solid var(--glass-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.56);
  box-shadow: 0 22px 55px rgba(13, 35, 33, 0.09);
  backdrop-filter: blur(20px) saturate(170%);
}

.proof-panel span {
  display: grid;
  gap: 4px;
  min-height: 76px;
  align-content: center;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.42);
}

.proof-panel strong {
  color: var(--ink);
}

.proof-panel small {
  color: var(--muted);
  font-weight: 760;
}

.trust-row span {
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.66);
}

.hero-studio {
  border-radius: 18px;
  border-color: rgba(160, 190, 185, 0.72);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.48)),
    rgba(255, 255, 255, 0.68);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 38px 94px rgba(13, 35, 33, 0.17);
}

.studio-toolbar,
.studio-status {
  min-height: 64px;
  padding-inline: 22px;
}

.mockup-stage {
  display: grid;
  height: 520px;
  place-items: center;
  background:
    radial-gradient(circle at 72% 20%, rgba(0, 109, 102, 0.1), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(232, 244, 243, 0.82));
}

.mockup-stage img {
  width: min(94%, 720px);
  max-height: 96%;
  object-fit: contain;
  mix-blend-mode: normal;
  filter: drop-shadow(0 28px 40px rgba(13, 35, 33, 0.14));
}

.hero-order-card {
  right: 22px;
  bottom: 22px;
  width: min(332px, calc(100% - 44px));
  border-radius: 18px;
  border-color: rgba(185, 211, 207, 0.86);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.62)),
    rgba(255, 255, 255, 0.72);
  padding: 16px;
}

.hero-order-step {
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.74);
}

.product-grid {
  gap: 18px;
}

.product-card {
  min-height: 250px;
  border-radius: 18px;
  border-color: rgba(159, 191, 186, 0.8);
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.6)),
    rgba(255, 255, 255, 0.7);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 18px 48px rgba(13, 35, 33, 0.09);
}

.product-visual {
  min-height: 120px;
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.42), transparent 42%),
    linear-gradient(135deg, #e8f3f2, #ffffff);
}

.product-visual.image-thumb {
  display: block;
  min-height: 150px;
  border: 1px solid rgba(181, 207, 203, 0.7);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.66), transparent 42%),
    #edf6f5;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 16px 34px rgba(13, 35, 33, 0.08);
}

.product-visual.image-thumb::before,
.product-visual.image-thumb::after {
  display: none;
}

.product-visual.image-thumb img {
  width: 100%;
  height: 100%;
  min-height: 150px;
  object-fit: cover;
  filter: saturate(1.04) contrast(1.02);
  transform: scale(1.02);
}

.product-card h3 {
  font-size: 1.16rem;
}

.builder-section,
.workflow-section,
.catalog-section {
  width: min(1280px, calc(100% - 48px));
}

.order-panel,
.summary-panel,
.workflow-grid article,
.drawer-card {
  border-radius: 18px;
  border-color: rgba(159, 191, 186, 0.8);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.6)),
    rgba(255, 255, 255, 0.68);
  box-shadow: var(--shadow);
}

.upload-box {
  border-radius: 16px;
  border-color: rgba(0, 109, 102, 0.36);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(236, 246, 245, 0.74));
}

.design-choice label {
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
}

.bulk-section {
  border: 1px solid rgba(187, 216, 211, 0.8);
  border-radius: 22px;
}

.mobile-nav {
  border: 1px solid rgba(185, 211, 207, 0.78);
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 -18px 54px rgba(13, 35, 33, 0.1);
  backdrop-filter: blur(24px) saturate(180%);
}

@media (max-width: 1120px) {
  .hero-section {
    grid-template-columns: 1fr;
  }

  .hero-copy h1,
  .hero-copy p {
    max-width: 820px;
  }

  .hero-studio {
    max-width: 820px;
  }
}

@media (max-width: 820px) {
  .service-strip,
  .category-nav {
    display: none;
  }

  .header-main {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .hero-section,
  .catalog-section,
  .builder-section,
  .workflow-section,
  .bulk-section {
    width: min(100% - 24px, 300px);
    max-width: 300px;
  }

  .hero-copy h1 {
    max-width: 300px;
    font-size: clamp(2.45rem, 10vw, 3.15rem);
  }

  .hero-copy p,
  .hero-actions,
  .proof-panel,
  .trust-row,
  .hero-studio {
    width: 100%;
    max-width: 300px;
  }

  .hero-actions .large {
    width: 100%;
    padding-inline: 12px;
  }

  .proof-panel {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .proof-panel span {
    min-height: 58px;
  }

  .hero-studio {
    width: 100%;
  }

  .mockup-stage {
    height: 335px;
  }

  .mockup-stage img {
    width: 108%;
  }

  .studio-toolbar,
  .studio-status {
    padding-inline: 14px;
  }
}

/* Purple mirror glass theme from reference */
:root {
  --bg: #f7f8ff;
  --surface: #ffffff;
  --surface-soft: #f1efff;
  --ink: #171822;
  --muted: #687080;
  --line: #e1e4f2;
  --primary: #7563f4;
  --primary-dark: #5c48df;
  --accent: #8d7cff;
  --accent-soft: #f0edff;
  --good: #6d5df0;
  --shadow: 0 26px 80px rgba(76, 68, 145, 0.15);
  --glass: rgba(255, 255, 255, 0.64);
  --glass-strong: rgba(255, 255, 255, 0.86);
  --glass-line: rgba(177, 171, 226, 0.42);
}

body {
  background:
    radial-gradient(circle at 50% -8%, rgba(117, 99, 244, 0.18), transparent 34%),
    linear-gradient(180deg, #fbfbff 0, #f6f7ff 42%, #f1f2fb 100%);
}

.site-header {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.service-strip {
  margin: 0 auto;
  width: min(1440px, 100%);
  border: 0;
  background: linear-gradient(135deg, #7663f3, #9e8cff);
  color: rgba(255, 255, 255, 0.94);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.36), 0 20px 54px rgba(97, 82, 226, 0.22);
}

.header-main {
  margin: 0 auto;
  width: min(1440px, 100%);
  border-radius: 0 0 36px 36px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.22), transparent 44%),
    linear-gradient(135deg, #7563f4 0%, #927ff8 56%, #a695ff 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 26px 70px rgba(97, 82, 226, 0.28);
}

.brand strong,
.brand small,
.utility-link {
  color: #fff;
  text-shadow: 0 1px 10px rgba(55, 43, 130, 0.24);
}

.brand-mark {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.34), transparent 42%),
    rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.34);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.66),
    0 18px 42px rgba(62, 48, 165, 0.28);
  backdrop-filter: blur(20px) saturate(170%);
}

.search-box input,
.icon-button,
.secondary-action,
.glass-action,
.category-nav,
.proof-panel,
.trust-row span,
.hero-studio,
.hero-order-card,
.product-card,
.order-panel,
.summary-panel,
.workflow-grid article,
.drawer-card,
.upload-box,
.design-choice label,
.mobile-nav {
  border-color: rgba(179, 173, 231, 0.5);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.56)),
    rgba(255, 255, 255, 0.64);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 22px 58px rgba(81, 75, 140, 0.12);
  backdrop-filter: blur(24px) saturate(180%);
}

.search-box input {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.38);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.12)),
    rgba(255, 255, 255, 0.16);
}

.search-box input::placeholder {
  color: rgba(255, 255, 255, 0.84);
}

.search-box svg {
  color: rgba(255, 255, 255, 0.82);
}

.category-nav {
  margin: 16px auto 0;
  width: min(1360px, calc(100% - 40px));
  border: 1px solid rgba(179, 173, 231, 0.46);
  border-radius: 22px;
  padding: 8px;
}

.category-nav a {
  color: #2d2f44;
  border-radius: 16px;
}

.category-nav a:hover {
  color: var(--primary-dark);
  background: rgba(245, 243, 255, 0.9);
}

.primary-action {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.3), transparent 42%),
    linear-gradient(135deg, #725ff2, #9c88ff);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 20px 48px rgba(98, 81, 232, 0.3);
}

.primary-action:hover {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.32), transparent 42%),
    linear-gradient(135deg, #624de5, #8b76fa);
}

.secondary-action,
.glass-action,
.icon-button {
  color: #4b3fc8;
}

.cart-action {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.34), transparent 44%),
    linear-gradient(135deg, #7764f5, #a493ff);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.52),
    0 20px 48px rgba(98, 81, 232, 0.28);
}

#cartCount {
  background: #f3a83b;
  box-shadow: 0 8px 20px rgba(243, 168, 59, 0.26);
}

.hero-section {
  padding-top: clamp(34px, 5vw, 68px);
}

.hero-copy h1 {
  color: #11131f;
}

.hero-copy p,
.section-heading p,
.product-card p {
  color: #697181;
}

.proof-panel {
  overflow: hidden;
  border-radius: 22px;
}

.proof-panel span {
  background: rgba(255, 255, 255, 0.38);
}

.trust-row span {
  color: #4d43c9;
}

.studio-toolbar,
.studio-status {
  color: #767a8c;
}

.studio-toolbar strong,
.product-meta,
.price-breakdown dd {
  color: #5145d6;
}

.mockup-stage {
  background:
    radial-gradient(circle at 52% 42%, rgba(148, 132, 255, 0.18), transparent 40%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(242, 240, 255, 0.9));
}

.hero-order-step {
  background: rgba(255, 255, 255, 0.72);
}

.hero-order-step > span {
  background: #f0edff;
  color: #6c5cf0;
}

.product-card:hover,
.product-card.active {
  border-color: rgba(117, 99, 244, 0.48);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 28px 72px rgba(98, 81, 232, 0.2);
}

.product-visual.image-thumb {
  border-color: rgba(179, 173, 231, 0.44);
  background: #f7f6ff;
}

.summary-head,
.bulk-section {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.24), transparent 42%),
    linear-gradient(135deg, #725ff2, #9b88ff);
}

input:focus,
select:focus,
textarea:focus {
  border-color: #7563f4;
  box-shadow: 0 0 0 4px rgba(117, 99, 244, 0.16);
}

@media (max-width: 820px) {
  .header-main {
    border-radius: 0 0 34px 34px;
  }

  .brand small {
    display: none;
  }

  .hero-section,
  .catalog-section,
  .builder-section,
  .workflow-section,
  .bulk-section {
    width: min(100% - 24px, 322px);
    max-width: 322px;
  }

  .hero-copy p,
  .hero-actions,
  .proof-panel,
  .trust-row,
  .hero-studio {
    max-width: 322px;
  }

  .mobile-nav {
    width: min(100vw - 20px, 380px);
    bottom: 0;
    border-radius: 24px 24px 0 0;
  }
}

/* Final readability and polish pass */
:root {
  --ink: #11121c;
  --muted: #4f5668;
  --line: #d5d2f3;
  --primary: #6957ef;
  --primary-dark: #4f3fd1;
  --shadow: 0 22px 68px rgba(55, 48, 110, 0.16);
}

body {
  color: var(--ink);
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

.site-header,
.header-main,
.service-strip {
  backdrop-filter: blur(18px) saturate(170%);
}

.service-strip {
  color: #fff;
  font-weight: 950;
}

.header-main {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.3), transparent 40%),
    linear-gradient(135deg, #6c59ef 0%, #8270f6 52%, #a28fff 100%);
}

.brand strong,
.brand small,
.utility-link,
.service-strip span {
  text-shadow: 0 2px 14px rgba(45, 35, 120, 0.35);
}

.search-box input {
  color: #fff;
  font-weight: 900;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.18)),
    rgba(255, 255, 255, 0.2);
}

.search-box input::placeholder {
  color: rgba(255, 255, 255, 0.95);
}

.category-nav,
.proof-panel,
.trust-row span,
.hero-studio,
.hero-order-card,
.product-card,
.order-panel,
.summary-panel,
.workflow-grid article,
.drawer-card,
.upload-box,
.design-choice label,
.mobile-nav {
  border-color: rgba(151, 142, 225, 0.58);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.74)),
    rgba(255, 255, 255, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 22px 60px rgba(55, 48, 110, 0.13);
  backdrop-filter: blur(14px) saturate(150%);
}

.hero-copy h1,
.section-heading h2,
.bulk-section h2,
.drawer-head h2,
.product-card h3,
.workflow-grid h3 {
  color: #10111b;
  font-weight: 950;
}

.hero-copy p,
.section-heading p,
.product-card p,
.workflow-grid p,
.summary-panel p,
.cart-item p,
.proof-panel small,
.studio-toolbar,
.studio-status,
.hero-order-step small {
  color: var(--muted);
  font-weight: 720;
}

.category-nav a,
.proof-panel strong,
.trust-row span,
.product-meta,
.price-breakdown dt,
.price-breakdown dd,
.hero-order-head,
.hero-order-step strong,
label,
legend,
.mobile-nav a {
  color: #2a2b39;
  font-weight: 920;
}

.trust-row span,
.secondary-action,
.glass-action,
.icon-button,
.hero-order-head a,
.studio-toolbar strong,
.product-meta,
.price-breakdown dd {
  color: var(--primary-dark);
}

.primary-action,
.cart-action {
  color: #fff;
  text-shadow: 0 1px 12px rgba(42, 28, 120, 0.32);
}

.primary-action {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.34), transparent 40%),
    linear-gradient(135deg, #6b59f1, #917fff);
}

.cart-action {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.35), transparent 42%),
    linear-gradient(135deg, #6653ef, #9b88ff);
}

.secondary-action,
.glass-action,
.icon-button {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 248, 255, 0.9));
}

input,
select,
textarea {
  color: #171822;
  border-color: rgba(151, 142, 225, 0.56);
  background: rgba(255, 255, 255, 0.94);
  font-weight: 720;
}

input::placeholder,
textarea::placeholder {
  color: #7a8191;
}

.summary-head,
.bulk-section {
  color: #fff;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.28), transparent 42%),
    linear-gradient(135deg, #6653ef, #9784ff);
}

.summary-head span,
.bulk-section p {
  color: rgba(255, 255, 255, 0.88);
}

.product-visual.image-thumb {
  border-color: rgba(151, 142, 225, 0.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 18px 42px rgba(55, 48, 110, 0.12);
}

.product-visual.image-thumb img {
  filter: saturate(1.08) contrast(1.04) brightness(1.02);
}

.mobile-nav {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 247, 255, 0.9));
}

.mobile-nav a {
  color: #5d6373;
}

.mobile-nav a:hover,
.mobile-nav a:focus {
  color: var(--primary-dark);
  background: rgba(239, 236, 255, 0.95);
}

/* Final polish pass: higher visibility while keeping the soft glass look. */
:root {
  --ink: #10111f;
  --muted: #535b70;
  --line: #d8d6ee;
  --glass-line: rgba(140, 130, 215, 0.38);
}

body {
  color: var(--ink);
  background:
    radial-gradient(circle at 50% -8%, rgba(117, 99, 244, 0.14), transparent 32%),
    linear-gradient(180deg, #fcfcff 0, #f7f7ff 46%, #f2f3fb 100%);
}

.header-main {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.25), transparent 40%),
    linear-gradient(135deg, #6f5df2 0%, #8f7cf6 58%, #a492ff 100%);
}

.search-box input,
.icon-button,
.secondary-action,
.glass-action,
.category-nav,
.proof-panel,
.trust-row span,
.hero-studio,
.hero-order-card,
.product-card,
.order-panel,
.summary-panel,
.workflow-grid article,
.drawer-card,
.upload-box,
.design-choice label,
.mobile-nav {
  border-color: var(--glass-line);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.74)),
    rgba(255, 255, 255, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 18px 48px rgba(72, 64, 132, 0.13);
  backdrop-filter: blur(14px) saturate(145%);
}

.search-box input {
  color: #fff;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.17)),
    rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.52);
}

.search-box input::placeholder {
  color: rgba(255, 255, 255, 0.94);
}

.hero-copy h1,
.section-heading h2,
.product-card h3,
.drawer-head h2,
.bulk-section h2,
.workflow-grid h3 {
  color: #10111f;
}

.hero-copy p,
.section-heading p,
.product-card p,
.workflow-grid p,
.summary-panel p,
.cart-item p {
  color: #535b70;
}

.brand strong,
.brand small,
.utility-link,
.service-strip {
  color: #fff;
  text-shadow: 0 1px 8px rgba(39, 30, 115, 0.28);
}

.primary-action,
.cart-action {
  color: #fff;
  text-shadow: 0 1px 8px rgba(45, 32, 132, 0.28);
}

.secondary-action,
.glass-action,
.icon-button,
.category-nav a,
.trust-row span {
  color: #3427b9;
}

.proof-panel strong,
.product-meta,
.studio-toolbar strong,
.price-breakdown dd {
  color: #4130cf;
}

.proof-panel small,
.studio-toolbar,
.studio-status,
label,
legend {
  color: #596174;
}

.product-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.78)),
    rgba(255, 255, 255, 0.82);
}

.product-visual.image-thumb {
  background: #fbfbff;
  border-color: rgba(144, 132, 225, 0.36);
}

input,
select,
textarea {
  background: rgba(255, 255, 255, 0.94);
  color: #171822;
  border-color: var(--line);
}

.bulk-section,
.summary-head {
  color: #fff;
}

.bulk-section p,
.summary-head span {
  color: rgba(255, 255, 255, 0.9);
}

.mobile-nav a {
  color: #5b6275;
}

.mobile-nav a:hover,
.mobile-nav a:focus {
  color: #3427b9;
  background: #f2f0ff;
}

.template-studio {
  display: grid;
  gap: 18px;
  margin-top: 24px;
  border: 1px solid rgba(140, 130, 215, 0.38);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.72)),
    rgba(255, 255, 255, 0.8);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 22px 62px rgba(72, 64, 132, 0.14);
  padding: clamp(16px, 2.5vw, 26px);
  backdrop-filter: blur(14px) saturate(150%);
}

.template-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.template-intro span {
  color: #4f3fd1;
  font-size: 0.82rem;
  font-weight: 950;
  text-transform: uppercase;
}

.template-intro h3 {
  margin: 5px 0 8px;
  color: #10111f;
  font-size: clamp(1.55rem, 2.5vw, 2.35rem);
  line-height: 1;
}

.template-intro p {
  max-width: 680px;
  margin: 0;
  color: #535b70;
  font-weight: 750;
  line-height: 1.5;
}

.template-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.34fr);
  gap: 18px;
  align-items: start;
}

.template-grid {
  display: grid;
  max-height: none;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  overflow: visible;
  padding: 2px 4px 8px 2px;
}

.template-card {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(144, 132, 225, 0.34);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(250, 249, 255, 0.84));
  padding: 10px;
  color: #10111f;
  text-align: left;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.template-card:hover,
.template-card.active {
  border-color: rgba(105, 87, 239, 0.72);
  box-shadow: 0 16px 34px rgba(72, 64, 132, 0.18);
  transform: translateY(-2px);
}

.template-card strong {
  display: block;
  font-size: 0.9rem;
  line-height: 1.2;
}

.template-card small {
  display: block;
  margin-top: 3px;
  color: #596174;
  font-size: 0.76rem;
  font-weight: 800;
}

.template-mini {
  position: relative;
  display: grid;
  align-content: end;
  gap: 3px;
  aspect-ratio: 1.72 / 1;
  overflow: hidden;
  border-radius: 12px;
  padding: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.template-mini::before,
.template-mini::after,
.mini-card-preview::before,
.mini-card-preview::after {
  content: "";
  position: absolute;
  border-radius: inherit;
  pointer-events: none;
}

.template-mini::before,
.mini-card-preview::before {
  inset: 0;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.22), transparent 38%);
}

.template-mini::after {
  right: -18%;
  bottom: -35%;
  width: 58%;
  aspect-ratio: 1;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.template-brand,
.template-card-name,
.template-card-role,
.template-card-contact,
.template-card-email,
.template-accent {
  position: absolute;
  z-index: 1;
  display: block;
}

.template-brand {
  top: 12px;
  left: 12px;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 950;
}

.template-card-name,
.template-card-role,
.template-card-contact,
.template-card-email {
  left: 12px;
  right: 12px;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.template-card-name {
  bottom: 42px;
  font-size: clamp(0.74rem, 0.85vw, 0.95rem);
  font-weight: 950;
  letter-spacing: 0;
}

.template-card-role {
  bottom: 28px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(0.56rem, 0.68vw, 0.72rem);
  font-weight: 850;
}

.template-card-contact {
  bottom: 15px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(0.52rem, 0.62vw, 0.68rem);
  font-weight: 800;
}

.template-card-email {
  bottom: 4px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(0.5rem, 0.58vw, 0.64rem);
  font-weight: 800;
}

.template-accent {
  right: 12px;
  top: 12px;
  width: 24px;
  height: 24px;
  border: 2px solid rgba(255, 255, 255, 0.78);
  border-radius: 8px;
}

.template-editor {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 14px;
  border: 1px solid rgba(140, 130, 215, 0.38);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.97), rgba(255, 255, 255, 0.76)),
    rgba(255, 255, 255, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 18px 42px rgba(72, 64, 132, 0.13);
  padding: 14px;
}

.mini-card-preview {
  position: relative;
  display: grid;
  min-height: 205px;
  align-content: end;
  gap: 6px;
  overflow: hidden;
  border-radius: 18px;
  padding: 18px;
  color: #fff;
  box-shadow: 0 18px 40px rgba(45, 36, 112, 0.2);
}

.mini-card-preview strong {
  position: relative;
  z-index: 1;
  max-width: 92%;
  font-size: 1.55rem;
  line-height: 1.02;
}

.mini-card-preview span,
.mini-card-preview small,
.mini-card-preview em {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.9);
  font-style: normal;
  font-weight: 800;
}

.mini-card-preview .preview-number {
  position: absolute;
  top: 14px;
  left: 16px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.mini-card-preview em {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 0.72rem;
}

.editor-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.editor-fields label {
  display: grid;
  gap: 6px;
  color: #596174;
  font-size: 0.78rem;
  font-weight: 900;
}

.editor-fields label:nth-child(-n + 4) {
  grid-column: 1 / -1;
}

.template-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.template-editor small {
  color: #596174;
  font-weight: 750;
  line-height: 1.45;
}

button.cart-action {
  border: 0;
  cursor: pointer;
  font: inherit;
}

/* Final order drawer fit: keep added items and actions inside the glass panel. */
.cart-drawer {
  overflow: hidden;
}

.drawer-card {
  min-width: 0;
  max-width: min(420px, calc(100vw - 32px));
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  gap: 12px;
  overflow: hidden;
}

.drawer-head,
.cart-item,
.cart-item strong,
.cart-item p,
.summary-actions,
.form-actions {
  min-width: 0;
}

.cart-items {
  min-height: 0;
  max-width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

.cart-item {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.cart-item strong {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.cart-item strong span:first-child,
.cart-item p {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.cart-item strong span:last-child {
  white-space: nowrap;
}

.drawer-card .full,
.summary-actions .full,
.form-actions .primary-action,
.form-actions .secondary-action {
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  text-align: center;
}

@media (max-width: 520px) {
  .cart-drawer {
    padding: 10px;
    align-items: stretch;
  }

  .drawer-card {
    width: 100%;
    max-width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
    padding: 14px;
  }

  .form-actions,
  .summary-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

.template-purple {
  background: linear-gradient(135deg, #6653ef, #a492ff);
}

.template-midnight {
  background: linear-gradient(135deg, #121421, #cda65a);
}

.template-teal {
  background: linear-gradient(135deg, #075f62, #25b7a7);
}

.template-mono {
  background: linear-gradient(135deg, #f8f8fb, #2a2c37);
}

.template-mono .template-brand,
.template-mono.template-mini,
.template-mono .template-card-name,
.template-mono .template-card-role,
.template-mono .template-card-contact,
.template-mono .template-card-email {
  color: #171822;
}

.template-mono .template-card-role,
.template-mono .template-card-contact,
.template-mono .template-card-email {
  color: rgba(23, 24, 34, 0.78);
}

.template-ruby {
  background: linear-gradient(135deg, #7f1d3a, #f35d78);
}

.template-emerald {
  background: linear-gradient(135deg, #0f5d3b, #57d68d);
}

.template-sky {
  background: linear-gradient(135deg, #2d62d9, #9fd8ff);
}

.template-carbon {
  background: linear-gradient(135deg, #171822, #4f3fd1);
}

.template-warm {
  background: linear-gradient(135deg, #8d4b1f, #f2b86d);
}

.template-royal {
  background: linear-gradient(135deg, #143b96, #6f8cff);
}

.layout-2 .template-accent,
.layout-2.mini-card-preview::after {
  border-radius: 999px;
}

.layout-3 .template-card-name,
.layout-3 .template-card-role,
.layout-3 .template-card-contact,
.layout-3 .template-card-email {
  left: auto;
  right: 12px;
  text-align: right;
}

.layout-4 .template-accent {
  width: 42px;
  border-radius: 999px;
}

.layout-5 .template-brand {
  top: auto;
  bottom: 12px;
}

.layout-5 .template-card-name,
.layout-5 .template-card-role,
.layout-5 .template-card-contact,
.layout-5 .template-card-email {
  left: 42px;
}

.layout-5 .template-card-name {
  bottom: 38px;
}

.layout-5 .template-card-role {
  bottom: 25px;
}

.layout-5 .template-card-contact {
  bottom: 13px;
}

.layout-5 .template-card-email {
  bottom: 3px;
}

.mini-card-preview::after {
  right: -56px;
  top: -42px;
  width: 150px;
  height: 150px;
  background: rgba(255, 255, 255, 0.18);
}

@media (max-width: 1120px) {
  .template-layout {
    grid-template-columns: 1fr;
  }

  .template-editor {
    position: static;
  }

  .template-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .template-studio {
    width: min(100% - 24px, 322px);
    margin-inline: auto;
    border-radius: 20px;
    padding: 14px;
  }

  .template-intro {
    align-items: stretch;
    flex-direction: column;
  }

  .template-grid {
    max-height: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .editor-fields {
    grid-template-columns: 1fr;
  }
}

.vc-page {
  display: grid;
  gap: clamp(28px, 4vw, 52px);
  padding: 34px 0 80px;
}

.vc-product-hero,
.vc-workspace {
  width: min(1320px, calc(100% - 48px));
  margin: 0 auto;
}

.vc-product-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 0.62fr);
  gap: clamp(24px, 4vw, 58px);
  align-items: center;
  border: 1px solid rgba(140, 130, 215, 0.36);
  border-radius: 28px;
  background:
    radial-gradient(circle at 90% 15%, rgba(111, 93, 242, 0.18), transparent 28%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.7));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 24px 70px rgba(72, 64, 132, 0.14);
  padding: clamp(20px, 4vw, 44px);
}

.vc-product-copy > span,
.vc-section-head span {
  color: #4f3fd1;
  font-size: 0.82rem;
  font-weight: 950;
  text-transform: uppercase;
}

.vc-product-copy h1 {
  max-width: 780px;
  margin: 8px 0 14px;
  color: #10111f;
  font-size: clamp(2.5rem, 5vw, 5.5rem);
  line-height: 0.96;
}

.vc-product-copy p {
  max-width: 680px;
  color: #535b70;
  font-size: clamp(1rem, 1.5vw, 1.26rem);
  font-weight: 780;
  line-height: 1.5;
}

.vc-quick-stats {
  display: grid;
  max-width: 680px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.vc-quick-stats span {
  display: grid;
  gap: 3px;
  border: 1px solid rgba(140, 130, 215, 0.32);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  padding: 14px;
}

.vc-quick-stats strong {
  color: #4f3fd1;
  font-size: 1.35rem;
}

.vc-quick-stats small {
  color: #596174;
  font-weight: 850;
}

.vc-product-media {
  overflow: hidden;
  border: 1px solid rgba(144, 132, 225, 0.34);
  border-radius: 24px;
  background: #fbfbff;
  box-shadow: 0 18px 48px rgba(72, 64, 132, 0.12);
}

.vc-product-media img {
  display: block;
  width: 100%;
  aspect-ratio: 1.08 / 1;
  object-fit: cover;
}

.nfc-hero {
  border-color: rgba(49, 82, 132, 0.26);
  background:
    radial-gradient(circle at 90% 16%, rgba(33, 79, 122, 0.16), transparent 28%),
    radial-gradient(circle at 12% 86%, rgba(200, 164, 93, 0.14), transparent 24%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 252, 0.78));
}

.nfc-product-media {
  border-color: rgba(49, 82, 132, 0.22);
  background: #ffffff;
}

.vc-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.34fr);
  gap: 18px;
  align-items: start;
}

.vc-gallery-panel,
.vc-order-panel {
  border: 1px solid rgba(140, 130, 215, 0.36);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.97), rgba(255, 255, 255, 0.74)),
    rgba(255, 255, 255, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 22px 62px rgba(72, 64, 132, 0.13);
  padding: clamp(14px, 2vw, 22px);
}

.vc-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.vc-section-head h2 {
  margin: 5px 0 0;
  color: #10111f;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
}

.vc-section-head label {
  display: grid;
  min-width: 180px;
  gap: 6px;
  color: #596174;
  font-size: 0.78rem;
  font-weight: 900;
}

.vc-filter-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.vc-filter-row label {
  min-width: 154px;
}

.vc-template-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.vc-template-card {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%);
  padding: 11px;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(17, 24, 39, 0.03), 0 12px 26px rgba(17, 24, 39, 0.045);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.vc-template-card:hover,
.vc-template-card.active {
  border-color: rgba(17, 24, 39, 0.32);
  box-shadow: 0 20px 42px rgba(17, 24, 39, 0.13);
  transform: translateY(-2px);
}

.vc-template-card.canva-template,
.vc-template-card:has(.canva-pick-badge) {
  border-color: rgba(200, 164, 93, 0.36);
  background: linear-gradient(180deg, #fffdf8 0%, #ffffff 100%);
  box-shadow: 0 16px 38px rgba(122, 83, 23, 0.1);
}

.canva-pick-badge {
  display: inline-flex;
  width: max-content;
  align-items: center;
  border: 1px solid rgba(200, 164, 93, 0.36);
  border-radius: 999px;
  background: rgba(255, 248, 226, 0.78);
  color: #7a5317;
  font-size: 0.66rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  padding: 4px 8px;
  text-transform: uppercase;
}

.vc-template-card b {
  color: #10111f;
  font-size: 0.84rem;
  line-height: 1.12;
}

.vc-template-card i {
  color: #596174;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 850;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: capitalize;
  white-space: nowrap;
}

.vc-template-image-frame {
  display: block;
  overflow: hidden;
  aspect-ratio: 1.72 / 1;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 8px 20px rgba(17, 24, 39, 0.055);
}

.vc-template-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vc-template-card:hover .vc-template-image-frame,
.vc-template-card.active .vc-template-image-frame {
  border-color: rgba(17, 24, 39, 0.28);
}

/* Lanyards and ID card holders */
.accessory-tabs {
  display: grid;
  width: min(620px, calc(100% - 48px));
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0 auto -18px;
  border: 1px solid rgba(140, 130, 215, 0.3);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 16px 40px rgba(72, 64, 132, 0.1), inset 0 1px 0 #fff;
  padding: 7px;
}

.accessory-tabs button {
  min-height: 48px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #4f5669;
  font-weight: 900;
  cursor: pointer;
}

.accessory-tabs button.active {
  background: linear-gradient(135deg, #5e4fe8, #8c7cf5);
  color: #fff;
  box-shadow: 0 10px 24px rgba(94, 79, 232, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.accessory-product-media img {
  height: clamp(320px, 36vw, 520px);
  aspect-ratio: auto;
  object-fit: contain;
  background: #fff;
}

.accessory-template-art {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1.72 / 1;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 10px;
  background: linear-gradient(145deg, #fff, #eef1f7);
}

.lanyard-loop {
  position: absolute;
  top: 12%;
  left: 21%;
  width: 58%;
  height: 66%;
  border: 13px solid var(--a1);
  border-top-width: 10px;
  border-radius: 48% 48% 34% 34%;
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--a2) 72%, transparent), 0 8px 14px rgba(17, 24, 39, 0.14);
  transform: perspective(220px) rotateX(4deg);
}

.lanyard-loop::after {
  position: absolute;
  inset: -13px;
  border-radius: inherit;
  background: repeating-linear-gradient(135deg, transparent 0 16px, color-mix(in srgb, var(--a2) 74%, transparent) 16px 23px, transparent 23px 38px);
  content: "";
  opacity: 0.78;
}

.lanyard-loop span {
  position: absolute;
  z-index: 1;
  top: 45%;
  color: #fff;
  font-size: 0.42rem;
  font-weight: 950;
  white-space: nowrap;
}

.lanyard-loop span:first-child { left: -43px; transform: rotate(82deg); }
.lanyard-loop span:last-child { right: -43px; transform: rotate(-82deg); }

.lanyard-hook {
  position: absolute;
  bottom: 4%;
  left: calc(50% - 7px);
  width: 14px;
  height: 23px;
  border: 3px solid #a4a9b2;
  border-radius: 5px 5px 9px 9px;
  background: linear-gradient(90deg, #e9edf2, #9da3ad, #fff);
  box-shadow: 0 4px 7px rgba(17, 24, 39, 0.18);
}

.holder-art {
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 10%, color-mix(in srgb, var(--a2) 22%, #fff), #f4f6fa 66%);
}

.holder-shell {
  position: relative;
  z-index: 1;
  display: grid;
  width: 42%;
  height: 74%;
  place-items: center;
  border: 6px solid var(--a1);
  border-radius: 10px;
  background: color-mix(in srgb, var(--a1) 8%, rgba(255, 255, 255, 0.88));
  box-shadow: 0 12px 24px rgba(17, 24, 39, 0.18), inset 0 0 0 2px rgba(255, 255, 255, 0.7);
}

.holder-shell.horizontal {
  width: 65%;
  height: 50%;
}

.holder-slot {
  position: absolute;
  top: 4px;
  left: calc(50% - 11px);
  width: 22px;
  height: 5px;
  border-radius: 5px;
  background: #171a21;
}

.holder-insert {
  display: grid;
  width: calc(100% - 12px);
  height: calc(100% - 18px);
  align-content: center;
  justify-items: center;
  gap: 3px;
  margin-top: 10px;
  border-radius: 5px;
  background: linear-gradient(150deg, #fff 55%, var(--a2) 56%);
  color: #111827;
}

.holder-insert b { color: var(--a1); font-size: 0.82rem; }
.holder-insert i { font-size: 0.4rem; font-style: normal; font-weight: 900; }

.holder-clip {
  position: absolute;
  top: 2%;
  left: calc(50% - 5px);
  width: 10px;
  height: 20px;
  border-radius: 5px;
  background: linear-gradient(90deg, #8e949d, #f7f8fa, #898f99);
}

.accessory-preview {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.accessory-preview > .accessory-template-art {
  aspect-ratio: 1.42 / 1;
  border-radius: 18px;
  box-shadow: 0 18px 36px rgba(17, 24, 39, 0.12);
}

.accessory-preview .lanyard-loop { border-width: 18px; }
.accessory-preview .holder-shell { max-width: 150px; }

.accessory-preview-copy {
  display: grid;
  gap: 4px;
  color: #596174;
  font-size: 0.78rem;
  font-weight: 800;
}

.accessory-preview-copy strong {
  color: #10111f;
  font-size: 1rem;
}

@media (max-width: 720px) {
  .accessory-tabs { width: calc(100% - 28px); margin-bottom: -10px; }
  .accessory-template-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lanyard-loop { border-width: 10px; }
}

.nfc-preview-card {
  min-height: 0;
  align-content: start;
}

.nfc-preview-image-frame {
  display: block;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1.72 / 1;
  border: 1px solid rgba(17, 24, 39, 0.14);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 18px 36px rgba(17, 24, 39, 0.11);
}

.nfc-preview-duo {
  display: grid;
  gap: 10px;
}

.nfc-preview-duo .nfc-preview-image {
  aspect-ratio: 1.72 / 1;
  border: 1px solid rgba(17, 24, 39, 0.14);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 16px 32px rgba(17, 24, 39, 0.1);
}

.nfc-preview-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nfc-preview-meta {
  display: grid;
  gap: 5px;
  margin-top: 14px;
  color: #596174;
  font-size: 0.82rem;
  font-weight: 800;
}

.nfc-preview-meta strong {
  color: #10111f;
  font-size: 1rem;
  font-weight: 950;
}

.vc-art {
  --c1: #6251ee;
  --c2: #a391ff;
  --c3: #efeaff;
  --tc: #ffffff;
  --ghost: rgba(255, 255, 255, 0.18);
  --ghost-soft: rgba(255, 255, 255, 0.1);
  --ghost-lift: rgba(255, 255, 255, 0.2);
  --ghost-mid: rgba(255, 255, 255, 0.26);
  --ghost-bold: rgba(255, 255, 255, 0.36);
  --ghost-strong: rgba(255, 255, 255, 0.56);
  --ghost-stroke: rgba(255, 255, 255, 0.72);
  --grid-line: rgba(255, 255, 255, 0.14);
  --mark-border: rgba(255, 255, 255, 0.65);
  --mark-bg: transparent;
  --mark-outline-bg: rgba(255, 255, 255, 0.16);
  --monogram-bg: rgba(255, 255, 255, 0.22);
  position: relative;
  display: grid;
  align-content: end;
  overflow: hidden;
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.18), transparent 36%),
    linear-gradient(135deg, var(--c1), var(--c2));
  color: var(--tc);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.surface-plain-white,
.surface-minimal-line,
.surface-mono-outline,
.surface-clinic-clean,
.surface-editorial-paper,
.surface-kraft-tag,
.surface-silver-premium,
.surface-cyan-clinic,
.surface-ruby-salon,
.surface-lavender-glass,
.surface-peach-brand,
.surface-green-eco,
.surface-blue-qr {
  --ghost: rgba(20, 26, 38, 0.08);
  --ghost-soft: rgba(20, 26, 38, 0.045);
  --ghost-lift: rgba(20, 26, 38, 0.1);
  --ghost-mid: rgba(20, 26, 38, 0.13);
  --ghost-bold: rgba(20, 26, 38, 0.18);
  --ghost-strong: rgba(20, 26, 38, 0.32);
  --ghost-stroke: rgba(20, 26, 38, 0.42);
  --grid-line: rgba(20, 26, 38, 0.1);
  --mark-border: rgba(20, 26, 38, 0.24);
  --mark-bg: rgba(20, 26, 38, 0.035);
  --mark-outline-bg: rgba(20, 26, 38, 0.06);
  --monogram-bg: rgba(20, 26, 38, 0.08);
}

.surface-plain-white {
  background:
    linear-gradient(90deg, var(--c2) 0 8px, transparent 8px),
    linear-gradient(180deg, #ffffff, #ffffff);
}

.surface-plain-white::after {
  inset: 13px;
  border: 1px solid var(--c2);
  border-radius: 10px;
  opacity: 0.34;
}

.surface-minimal-line {
  background:
    linear-gradient(180deg, transparent 0 70%, var(--c3) 70% 100%),
    #ffffff;
}

.surface-minimal-line::after {
  inset: 20px 14px auto 14px;
  height: 2px;
  border-radius: 99px;
  background: var(--c2);
}

.surface-mono-outline {
  background:
    linear-gradient(135deg, rgba(20, 26, 38, 0.06), transparent 42%),
    #fdfdfc;
}

.surface-mono-outline::after {
  inset: 10px;
  border: 2px solid rgba(20, 26, 38, 0.18);
  border-radius: 12px;
}

.surface-clinic-clean {
  background:
    radial-gradient(circle at 90% 10%, var(--c3) 0 22%, transparent 23%),
    linear-gradient(180deg, #ffffff 0 58%, var(--c1) 58% 100%);
}

.surface-clinic-clean::after {
  right: 18px;
  bottom: 16px;
  width: 44px;
  height: 44px;
  border: 8px solid var(--c2);
  border-radius: 999px;
  opacity: 0.18;
}

.surface-editorial-paper {
  background:
    linear-gradient(90deg, rgba(20, 26, 38, 0.07) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(180deg, var(--c1), #fffaf3);
}

.surface-editorial-paper::after {
  left: 12px;
  top: 0;
  width: 42%;
  height: 100%;
  background: rgba(255, 255, 255, 0.48);
}

.surface-kraft-tag {
  background:
    radial-gradient(circle, rgba(71, 45, 21, 0.14) 1px, transparent 1.5px) 0 0 / 13px 13px,
    linear-gradient(135deg, var(--c1), #f5dfbf);
}

.surface-kraft-tag::after {
  left: -20px;
  bottom: -20px;
  width: 90px;
  height: 90px;
  border: 14px solid var(--c2);
  border-radius: 999px;
  opacity: 0.16;
}

.surface-silver-premium {
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.92), transparent 34%, rgba(255, 255, 255, 0.72) 62%, transparent 63%),
    linear-gradient(135deg, #eef1f5, #cdd4df);
}

.surface-silver-premium::after {
  inset: 0 0 auto;
  height: 7px;
  background: var(--c2);
}

.surface-black-foil {
  background:
    radial-gradient(circle at 82% 26%, var(--c3) 0 6px, transparent 7px),
    linear-gradient(135deg, #090b12, var(--c1) 55%, #16110b);
}

.surface-black-foil::after {
  inset: 12px;
  border: 1px solid var(--c2);
  border-radius: 12px;
  opacity: 0.42;
}

.surface-charcoal-split {
  background:
    linear-gradient(102deg, #f8f9fb 0 38%, transparent 38%),
    linear-gradient(135deg, var(--c1), #05060a);
}

.surface-charcoal-split::after {
  left: 38%;
  top: 0;
  width: 3px;
  height: 100%;
  background: var(--c2);
  opacity: 0.65;
}

.surface-navy-ledger {
  background:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
    linear-gradient(135deg, var(--c1), #071525);
  background-size: 18px 18px, 18px 18px, auto;
}

.surface-navy-ledger::after {
  right: 0;
  top: 0;
  width: 34%;
  height: 100%;
  background: linear-gradient(180deg, var(--c3), transparent);
  opacity: 0.24;
}

.surface-indigo-tech {
  background:
    radial-gradient(circle at 18% 20%, var(--c3) 0 5px, transparent 6px),
    radial-gradient(circle at 70% 70%, var(--c2) 0 3px, transparent 4px),
    linear-gradient(135deg, var(--c1), #120e32);
}

.surface-indigo-tech::after {
  inset: 12px auto 12px 12px;
  width: 34px;
  border: 1px solid var(--c3);
  border-radius: 10px;
  opacity: 0.42;
}

.surface-teal-block {
  background:
    linear-gradient(90deg, var(--c1) 0 46%, #ffffff 46% 100%);
}

.surface-teal-block::after {
  right: 16px;
  top: 16px;
  width: 62px;
  height: 62px;
  background: var(--c3);
  clip-path: polygon(0 0, 100% 30%, 70% 100%, 0 70%);
  opacity: 0.24;
}

.surface-emerald-natural {
  background:
    linear-gradient(108deg, #ffffff 0 52%, var(--c1) 52% 100%);
}

.surface-emerald-natural::after {
  right: 18px;
  top: 14px;
  width: 62px;
  height: 36px;
  border-radius: 60% 40% 60% 40%;
  background: var(--c3);
  opacity: 0.28;
  transform: rotate(-18deg);
}

.surface-cobalt-corporate {
  background:
    linear-gradient(180deg, #ffffff 0 46%, var(--c1) 46% 100%);
}

.surface-cobalt-corporate::after {
  right: -24px;
  top: -18px;
  width: 120px;
  height: 80px;
  border-radius: 999px;
  background: var(--c3);
  opacity: 0.22;
}

.surface-ruby-salon {
  background:
    radial-gradient(circle at 0 0, var(--c3) 0 26%, transparent 27%),
    linear-gradient(135deg, #fff7fa, var(--c1));
}

.surface-ruby-salon::after {
  right: 0;
  bottom: 0;
  width: 44%;
  height: 36%;
  border-radius: 44px 0 0 0;
  background: var(--c2);
  opacity: 0.12;
}

.surface-amber-restaurant {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.2) 0 50%, transparent 50%) 0 0 / 24px 100%,
    linear-gradient(135deg, var(--c1), var(--c2));
}

.surface-amber-restaurant::after {
  inset: auto 0 0;
  height: 34%;
  background: rgba(20, 26, 38, 0.2);
}

.surface-yellow-creative {
  background:
    linear-gradient(135deg, #fff9cf 0 45%, var(--c1) 45% 72%, var(--c2) 72% 100%);
}

.surface-yellow-creative::after {
  left: 16px;
  top: 16px;
  width: 38px;
  height: 38px;
  border: 6px solid rgba(20, 26, 38, 0.18);
  border-radius: 999px;
}

.surface-orange-bold {
  background:
    linear-gradient(116deg, var(--c1) 0 56%, var(--c3) 56% 74%, var(--c2) 74% 100%);
}

.surface-orange-bold::after {
  inset: 16px 18px auto auto;
  width: 54px;
  height: 10px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 18px 0 rgba(255, 255, 255, 0.3);
}

.surface-cyan-clinic {
  background:
    linear-gradient(135deg, #ffffff 0 60%, var(--c1) 60% 100%);
}

.surface-cyan-clinic::after {
  inset: 14px;
  border: 1px dashed var(--c2);
  border-radius: 13px;
  opacity: 0.34;
}

.surface-lavender-glass {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), transparent 32%),
    radial-gradient(circle at 86% 16%, var(--c3) 0 26%, transparent 27%),
    linear-gradient(135deg, var(--c1), #ffffff);
}

.surface-lavender-glass::after {
  left: 18px;
  bottom: 14px;
  width: 96px;
  height: 42px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(8px);
}

.surface-peach-brand {
  background:
    linear-gradient(90deg, var(--c2) 0 10px, transparent 10px),
    linear-gradient(135deg, var(--c1), #fff8f1);
}

.surface-peach-brand::after {
  right: 0;
  top: 0;
  width: 44%;
  height: 100%;
  background: rgba(255, 255, 255, 0.54);
}

.surface-red-stamp {
  background:
    linear-gradient(135deg, var(--c1), var(--c2));
}

.surface-red-stamp::after {
  right: 14px;
  top: 14px;
  width: 76px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.46);
  border-radius: 6px;
  transform: rotate(-8deg);
}

.surface-green-eco {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.9) 0 54%, transparent 54%),
    linear-gradient(135deg, var(--c1), var(--c3));
}

.surface-green-eco::after {
  left: 12px;
  top: 12px;
  width: 44px;
  height: 28px;
  border-radius: 100% 0 100% 0;
  background: var(--c2);
  opacity: 0.24;
}

.surface-blue-qr {
  background:
    linear-gradient(180deg, #ffffff 0 68%, var(--c3) 68% 100%);
}

.surface-blue-qr::after {
  right: 12px;
  top: 12px;
  width: 58px;
  height: 58px;
  background:
    linear-gradient(90deg, var(--c2) 50%, transparent 0) 0 0 / 12px 12px,
    linear-gradient(var(--c2) 50%, transparent 0) 0 0 / 12px 12px;
  opacity: 0.18;
}

.surface-graphite-photo {
  background:
    radial-gradient(circle at 76% 18%, rgba(255, 255, 255, 0.16) 0 12%, transparent 13%),
    linear-gradient(135deg, #11131a, var(--c1));
}

.surface-graphite-photo::after {
  left: -24px;
  bottom: -26px;
  width: 148px;
  height: 94px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--c2), transparent);
  opacity: 0.28;
}

.vc-thumb {
  aspect-ratio: 1.72 / 1;
  min-height: 118px;
  padding: 14px;
}

.vc-thumb em,
.vc-thumb .vc-qr {
  display: none;
}

.vc-thumb .vc-text {
  gap: 4px;
}

.vc-thumb .vc-text strong {
  max-width: 88%;
  font-size: clamp(0.92rem, 1.18vw, 1.16rem);
  line-height: 1.02;
}

.vc-thumb .vc-text span {
  max-width: 76%;
  font-size: clamp(0.58rem, 0.72vw, 0.74rem);
  letter-spacing: 0;
  opacity: 0.72;
}

.vc-thumb .vc-accent-line {
  opacity: 0.3;
}

.vc-preview-card {
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 18px 42px rgba(72, 64, 132, 0.2);
}

.vc-preview {
  aspect-ratio: 1.72 / 1;
  min-height: 220px;
  padding: 22px;
}

.vc-art::before,
.vc-art::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.vc-art .vc-mark,
.vc-art strong,
.vc-art span,
.vc-art small,
.vc-art em {
  position: relative;
  z-index: 1;
  max-width: 92%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vc-art .vc-mark {
  position: absolute;
  top: 12px;
  left: 12px;
  font-weight: 950;
}

.vc-art strong {
  font-size: clamp(0.82rem, 1vw, 1.05rem);
  line-height: 1.05;
}

.vc-preview strong {
  font-size: clamp(1.35rem, 2.2vw, 2rem);
}

.vc-art span,
.vc-art small {
  margin-top: 2px;
  color: var(--tc);
  opacity: 0.88;
  font-size: clamp(0.55rem, 0.68vw, 0.72rem);
  font-weight: 850;
}

.vc-preview span,
.vc-preview small {
  font-size: 0.88rem;
}

.vc-art em {
  position: absolute;
  top: 12px;
  right: 12px;
  color: var(--tc);
  opacity: 0.86;
  font-size: 0.64rem;
  font-style: normal;
  font-weight: 900;
}

.graphic-diagonal::before {
  inset: -30% -40% auto auto;
  width: 72%;
  height: 140%;
  background: var(--ghost);
  transform: rotate(28deg);
}

.graphic-wave::before {
  right: -22%;
  bottom: -54%;
  width: 84%;
  aspect-ratio: 1;
  border-radius: 44% 56% 48% 52%;
  background: var(--ghost-lift);
}

.graphic-circle::before {
  right: 10px;
  top: 14px;
  width: 38px;
  height: 38px;
  border: 3px solid var(--ghost-stroke);
  border-radius: 999px;
}

.graphic-grid::before {
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 18px 18px;
}

.graphic-corner::before {
  right: 0;
  top: 0;
  border-top: 58px solid var(--ghost-mid);
  border-left: 74px solid transparent;
}

.graphic-split::before {
  inset: 0 44% 0 0;
  background: var(--ghost-lift);
}

.graphic-stripe::before {
  inset: 16px auto auto 0;
  width: 100%;
  height: 12px;
  background: var(--ghost-bold);
  box-shadow: 0 20px 0 var(--ghost-lift);
}

.graphic-arc::before {
  right: -14px;
  top: 12px;
  width: 92px;
  height: 92px;
  border: 10px solid var(--ghost-lift);
  border-radius: 999px;
}

.graphic-frame::before {
  inset: 10px;
  border: 2px solid var(--ghost-bold);
  border-radius: 10px;
}

.graphic-badge::before {
  right: 12px;
  top: 12px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--ghost-mid);
}

.graphic-ribbon::before {
  right: -24px;
  top: 22px;
  width: 120px;
  height: 22px;
  background: var(--ghost-mid);
  transform: rotate(38deg);
}

.graphic-spot::before {
  left: -20px;
  top: -20px;
  width: 76px;
  height: 76px;
  border-radius: 999px;
  background: var(--ghost);
  box-shadow: 94px 40px 0 var(--ghost-soft);
}

.graphic-bars::before {
  left: 12px;
  top: 36px;
  width: 78px;
  height: 6px;
  border-radius: 99px;
  background: var(--ghost-strong);
  box-shadow: 0 13px 0 var(--ghost-bold), 0 26px 0 var(--ghost-mid);
}

.graphic-panel::before {
  right: 0;
  top: 0;
  width: 34%;
  height: 100%;
  background: var(--ghost);
}

.graphic-slash::before {
  left: 36%;
  top: -20%;
  width: 18%;
  height: 140%;
  background: var(--ghost-mid);
  transform: rotate(16deg);
}

.graphic-halo::before {
  right: -26px;
  bottom: -26px;
  width: 118px;
  height: 118px;
  border-radius: 999px;
  background: radial-gradient(circle, transparent 45%, var(--ghost-mid) 46%, var(--ghost-mid) 62%, transparent 63%);
}

.graphic-steps::before {
  right: 14px;
  top: 16px;
  width: 58px;
  height: 42px;
  background:
    linear-gradient(90deg, var(--ghost-bold) 45%, transparent 45%) 0 0 / 22px 14px;
}

.graphic-orbit::before {
  right: 18px;
  top: 16px;
  width: 58px;
  height: 58px;
  border: 2px solid var(--ghost-bold);
  border-radius: 999px;
  box-shadow: -28px 20px 0 -20px var(--ghost-strong);
}

.graphic-fold::before {
  right: 0;
  bottom: 0;
  border-bottom: 54px solid var(--ghost-mid);
  border-left: 72px solid transparent;
}

.graphic-minimal::before {
  right: 14px;
  top: 16px;
  width: 44px;
  height: 24px;
  border: 2px solid var(--ghost-stroke);
  border-radius: 999px;
}

.graphic-sunburst::before {
  right: -22px;
  top: -22px;
  width: 126px;
  height: 126px;
  border-radius: 999px;
  background:
    conic-gradient(from 18deg, var(--ghost-strong) 0 12deg, transparent 12deg 24deg),
    radial-gradient(circle, transparent 0 38%, var(--ghost-mid) 39% 48%, transparent 49%);
}

.graphic-contour::before {
  inset: 12px;
  border: 1px solid var(--ghost-bold);
  border-radius: 45% 55% 52% 48%;
  box-shadow: 10px 8px 0 -2px var(--ghost-lift), 20px 18px 0 -4px var(--ghost-soft);
  transform: rotate(-10deg);
}

.graphic-barcode::before {
  right: 16px;
  bottom: 16px;
  width: 76px;
  height: 34px;
  background:
    linear-gradient(90deg, currentColor 0 4px, transparent 4px 8px, currentColor 8px 10px, transparent 10px 15px, currentColor 15px 20px, transparent 20px 25px, currentColor 25px 28px, transparent 28px 36px, currentColor 36px 42px, transparent 42px 48px, currentColor 48px 50px, transparent 50px 58px, currentColor 58px 64px, transparent 64px);
  color: var(--tc);
  opacity: 0.34;
}

.graphic-mosaic::before {
  right: 14px;
  top: 14px;
  width: 72px;
  height: 72px;
  background:
    linear-gradient(90deg, var(--ghost-strong) 50%, transparent 0) 0 0 / 24px 24px,
    linear-gradient(var(--ghost-mid) 50%, transparent 0) 0 0 / 24px 24px;
  border-radius: 14px;
}

.graphic-chevron::before {
  inset: 0;
  background:
    linear-gradient(135deg, transparent 42%, var(--ghost-mid) 43% 49%, transparent 50%),
    linear-gradient(45deg, transparent 42%, var(--ghost-lift) 43% 49%, transparent 50%);
  background-size: 56px 56px;
}

.graphic-ticket::before {
  left: 12px;
  right: 12px;
  top: 14px;
  height: 32px;
  border: 1px dashed var(--ghost-stroke);
  border-radius: 12px;
}

.graphic-leaf::before {
  right: 18px;
  top: 18px;
  width: 76px;
  height: 46px;
  border-radius: 76px 0 76px 0;
  background: var(--ghost-mid);
  transform: rotate(-22deg);
}

.graphic-pixel::before {
  left: 16px;
  top: 16px;
  width: 12px;
  height: 12px;
  background: var(--ghost-strong);
  box-shadow:
    18px 0 0 var(--ghost-mid),
    36px 0 0 var(--ghost-soft),
    0 18px 0 var(--ghost-mid),
    18px 18px 0 var(--ghost-soft),
    36px 18px 0 var(--ghost-strong);
}

.graphic-topography::before {
  inset: 0;
  background:
    radial-gradient(ellipse at 72% 24%, transparent 0 20px, var(--ghost-mid) 21px 22px, transparent 23px 32px, var(--ghost-soft) 33px 34px, transparent 35px),
    radial-gradient(ellipse at 22% 72%, transparent 0 18px, var(--ghost-lift) 19px 20px, transparent 21px 30px, var(--ghost-soft) 31px 32px, transparent 33px);
}

.graphic-capsule::before {
  right: 14px;
  top: 16px;
  width: 82px;
  height: 30px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ghost-strong) 0 48%, transparent 48% 52%, var(--ghost-mid) 52%);
}

.graphic-split-dot::before {
  left: 0;
  top: 0;
  width: 54%;
  height: 100%;
  background:
    radial-gradient(circle, var(--ghost-bold) 1.6px, transparent 2px) 0 0 / 12px 12px,
    var(--ghost-soft);
}

.graphic-corner-grid::before {
  right: 0;
  top: 0;
  width: 46%;
  height: 58%;
  background:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 12px 12px;
}

.graphic-wave-lines::before {
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 20%, transparent 0 28px, var(--ghost-mid) 29px 31px, transparent 32px 42px, var(--ghost-soft) 43px 45px, transparent 46px),
    radial-gradient(ellipse at 80% 20%, transparent 0 62px, var(--ghost-lift) 63px 65px, transparent 66px);
}

.graphic-premium-seal::before {
  right: 16px;
  top: 16px;
  width: 48px;
  height: 48px;
  border: 2px solid var(--ghost-stroke);
  border-radius: 999px;
  background: radial-gradient(circle, var(--ghost-mid) 0 28%, transparent 29%);
  box-shadow: 0 0 0 7px var(--ghost-soft);
}

.graphic-offset-block::before {
  right: 18px;
  bottom: 18px;
  width: 86px;
  height: 48px;
  background: var(--ghost-mid);
  box-shadow: -16px -14px 0 var(--ghost-soft);
  transform: rotate(-6deg);
}

.vc-order-panel {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 14px;
}

.vc-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.vc-form-grid label {
  display: grid;
  gap: 6px;
  color: #596174;
  font-size: 0.78rem;
  font-weight: 900;
}

.vc-form-grid label:nth-child(-n + 4) {
  grid-column: 1 / -1;
}

.vc-estimate {
  display: grid;
  gap: 4px;
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.26), transparent 42%),
    linear-gradient(135deg, #6653ef, #9784ff);
  padding: 16px;
  color: #fff;
}

.vc-estimate span,
.vc-estimate small {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 850;
}

.vc-estimate strong {
  font-size: 2.25rem;
  line-height: 1;
}

.vc-order-panel > small {
  color: #596174;
  font-weight: 760;
  line-height: 1.45;
}

@media (max-width: 1120px) {
  .vc-product-hero,
  .vc-workspace {
    grid-template-columns: 1fr;
  }

  .vc-order-panel {
    position: static;
  }

  .vc-template-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .vc-page {
    padding-bottom: 96px;
  }

  .vc-product-hero,
  .vc-workspace {
    width: min(100% - 24px, 360px);
  }

  .vc-product-hero {
    grid-template-columns: 1fr;
    border-radius: 22px;
    padding: 16px;
  }

  .vc-product-copy h1 {
    font-size: clamp(2rem, 9vw, 2.9rem);
    text-align: left;
  }

  .vc-quick-stats {
    grid-template-columns: 1fr;
  }

  .vc-section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .vc-template-grid {
    grid-template-columns: 1fr;
  }

  .vc-thumb {
    min-height: 156px;
  }

  .vc-form-grid {
    grid-template-columns: 1fr;
  }
}

.designer-page {
  padding: 34px 0 90px;
}

.designer-shell {
  display: grid;
  width: min(1320px, calc(100% - 48px));
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.34fr);
  gap: 18px;
  margin: 0 auto;
  align-items: start;
}

.designer-canvas,
.designer-controls {
  border: 1px solid rgba(140, 130, 215, 0.36);
  border-radius: 26px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.97), rgba(255, 255, 255, 0.74)),
    rgba(255, 255, 255, 0.84);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 22px 62px rgba(72, 64, 132, 0.13);
  padding: clamp(16px, 2.5vw, 26px);
}

.designer-toolbar,
.designer-panel-head,
.designer-options-row,
.designer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.designer-toolbar span,
.designer-panel-head span {
  color: #4f3fd1;
  font-size: 0.82rem;
  font-weight: 950;
  text-transform: uppercase;
}

.designer-toolbar h1 {
  margin: 5px 0 0;
  color: #10111f;
  font-size: clamp(1.9rem, 4vw, 4rem);
  line-height: 0.98;
}

.designer-view-toggle {
  display: inline-flex;
  border: 1px solid rgba(140, 130, 215, 0.38);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.74);
  padding: 4px;
}

.designer-view-toggle button {
  min-height: 38px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #596174;
  cursor: pointer;
  font-weight: 950;
  padding: 0 14px;
}

.designer-view-toggle button.active {
  background: linear-gradient(135deg, #6653ef, #9b88ff);
  color: #fff;
}

.designer-preview-wrap {
  display: grid;
  gap: 14px;
  margin: 28px auto 0;
}

.designer-card-stack {
  position: relative;
  display: grid;
  min-height: clamp(280px, 42vw, 560px);
  place-items: center;
  border: 1px dashed rgba(140, 130, 215, 0.42);
  border-radius: 24px;
  background:
    linear-gradient(90deg, rgba(140, 130, 215, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(140, 130, 215, 0.08) 1px, transparent 1px),
    rgba(251, 251, 255, 0.82);
  background-size: 28px 28px;
  padding: clamp(16px, 4vw, 42px);
}

.designer-card-face {
  display: none;
  width: min(760px, 100%);
  filter: drop-shadow(0 28px 42px rgba(55, 48, 110, 0.2));
}

.designer-card-face.active {
  display: block;
}

.designer-card-face .vc-preview {
  min-height: auto;
  width: 100%;
  border-radius: 22px;
}

.designer-card-face .product-lanyard.vc-preview {
  width: min(760px, 100%);
  aspect-ratio: 4.2 / 1;
  min-height: 150px;
  align-content: center;
  border-block: 9px solid color-mix(in srgb, var(--c2) 60%, transparent);
  border-radius: 18px;
  margin: 0 auto;
  background:
    repeating-linear-gradient(135deg, transparent 0 44px, rgba(255, 255, 255, 0.14) 44px 64px, transparent 64px 104px),
    linear-gradient(135deg, var(--c1), var(--c2));
}

.product-lanyard .vc-text {
  width: 76%;
  margin: 0 auto;
  text-align: center;
}

.product-lanyard .vc-text strong { letter-spacing: 0; text-transform: uppercase; }
.product-lanyard .vc-text small { display: none; }
.product-lanyard .vc-mark { top: 50%; transform: translateY(-50%); }
.product-lanyard em { top: 50%; transform: translateY(-50%); }

.lanyard-designer-hook {
  position: absolute !important;
  right: 10px;
  bottom: 10px;
  width: 17px;
  height: 28px;
  border: 4px solid rgba(255, 255, 255, 0.78);
  border-radius: 6px 6px 11px 11px;
}

.designer-card-face .product-holder.vc-preview {
  width: min(390px, 78%);
  aspect-ratio: 0.66 / 1;
  min-height: 430px;
  margin: 0 auto;
  border: 22px solid var(--c1);
  border-radius: 26px;
  background: linear-gradient(160deg, #fff 0 64%, var(--c3) 64% 100%);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.72), 0 24px 48px rgba(17, 24, 39, 0.22);
}

.product-holder .vc-text { color: #111827; }
.product-holder .vc-text strong { color: var(--c1); }
.product-holder .vc-text span,
.product-holder .vc-text small,
.product-holder em { color: #334155; }
.product-holder .vc-mark { color: var(--c1); }

.holder-designer-slot {
  position: absolute !important;
  top: -13px;
  left: calc(50% - 29px);
  width: 58px;
  height: 10px;
  border-radius: 8px;
  background: #111827;
}

@media (max-width: 620px) {
  .designer-card-face .product-lanyard.vc-preview { min-height: 116px; padding: 14px; }
  .designer-card-face .product-holder.vc-preview { min-height: 360px; width: min(300px, 90%); border-width: 16px; }
}

.designer-bleed {
  position: absolute;
  inset: 18px;
  z-index: 2;
  border: 1px dashed rgba(255, 255, 255, 0.58);
  border-radius: 20px;
  pointer-events: none;
}

.designer-back-card {
  --c1: #6251ee;
  --c2: #a391ff;
  --tc: #ffffff;
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 1.72 / 1;
  align-content: center;
  justify-items: center;
  overflow: hidden;
  border-radius: 22px;
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.2), transparent 30%),
    linear-gradient(135deg, var(--c1), var(--c2));
  color: var(--tc);
}

.designer-back-card strong {
  position: relative;
  z-index: 1;
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 24px;
  font-size: 1.8rem;
}

.designer-back-card span,
.designer-back-card small {
  position: relative;
  z-index: 1;
  margin-top: 12px;
  font-weight: 950;
}

.designer-back-card i {
  position: relative;
  z-index: 1;
  width: 68px;
  height: 68px;
  margin-top: 16px;
  border: 8px solid currentColor;
  border-radius: 12px;
  opacity: 0.86;
}

.designer-guides {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.designer-guides span {
  border: 1px solid rgba(140, 130, 215, 0.34);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  color: #4f3fd1;
  padding: 9px 12px;
  font-weight: 900;
}

.designer-controls {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 14px;
}

.designer-panel-head {
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.26), transparent 42%),
    linear-gradient(135deg, #6653ef, #9784ff);
  padding: 16px;
  color: #fff;
}

.designer-panel-head span {
  color: rgba(255, 255, 255, 0.9);
}

.designer-panel-head strong {
  font-size: 2rem;
}

.designer-control-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.designer-control-grid label {
  display: grid;
  gap: 6px;
  color: #596174;
  font-size: 0.78rem;
  font-weight: 900;
}

.designer-control-grid label:nth-child(-n + 4) {
  grid-column: 1 / -1;
}

.designer-logo-upload {
  align-content: center;
  min-height: 46px;
  border: 1px dashed rgba(105, 87, 239, 0.42);
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(247, 245, 255, 0.88));
  padding: 9px 12px;
  cursor: pointer;
}

.designer-logo-upload span {
  color: #4f3fd1;
  font-size: 0.74rem;
  font-weight: 950;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.designer-actions {
  flex-direction: column;
}

.designer-actions button {
  width: 100%;
}

.designer-controls > small {
  color: #596174;
  font-weight: 760;
  line-height: 1.45;
}

@media (max-width: 1120px) {
  .designer-shell {
    grid-template-columns: 1fr;
  }

  .designer-controls {
    position: static;
  }
}

@media (max-width: 820px) {
  .designer-page {
    padding-bottom: 96px;
  }

  .designer-shell {
    width: min(100% - 24px, 360px);
  }

  .designer-toolbar,
  .designer-options-row {
    align-items: stretch;
    flex-direction: column;
  }

  .designer-view-toggle {
    width: 100%;
  }

  .designer-view-toggle button {
    flex: 1;
  }

  .designer-card-stack {
    min-height: 260px;
    padding: 12px;
  }

  .designer-control-grid {
    grid-template-columns: 1fr;
  }
}

/* Real-card anatomy: unique text placement, QR blocks, marks, and layout families. */
.vc-art .vc-text,
.vc-art .vc-qr,
.vc-art .vc-accent-line {
  position: absolute;
  z-index: 3;
  max-width: none;
  overflow: visible;
  white-space: normal;
}

.vc-art .vc-text {
  display: grid;
  gap: 2px;
  color: var(--tc);
}

.vc-art .vc-text strong {
  color: var(--tc);
  font-size: clamp(0.82rem, 1vw, 1.12rem);
  line-height: 1.06;
  white-space: normal;
}

.vc-preview .vc-text strong {
  font-size: clamp(1.5rem, 2.4vw, 2.15rem);
}

.vc-art .vc-text span,
.vc-art .vc-text small {
  color: var(--tc);
  font-size: clamp(0.55rem, 0.7vw, 0.76rem);
  font-weight: 850;
  line-height: 1.18;
  opacity: 0.82;
}

.vc-preview .vc-text span,
.vc-preview .vc-text small {
  font-size: clamp(0.76rem, 1.05vw, 0.9rem);
}

.vc-art .vc-qr {
  width: 34px;
  height: 34px;
  border: 3px solid currentColor;
  border-radius: 7px;
  color: var(--tc);
  opacity: 0.86;
  background:
    linear-gradient(90deg, currentColor 50%, transparent 0) 0 0 / 8px 8px,
    linear-gradient(currentColor 50%, transparent 0) 0 0 / 8px 8px,
    linear-gradient(135deg, transparent 38%, currentColor 39% 60%, transparent 61%);
}

.vc-preview .vc-qr {
  width: 58px;
  height: 58px;
  border-radius: 11px;
}

.vc-art .vc-accent-line {
  width: 74px;
  height: 6px;
  border-radius: 99px;
  background: var(--tc);
  opacity: 0.5;
}

.vc-art .vc-mark {
  display: grid;
  min-width: 28px;
  height: 28px;
  place-items: center;
  border: 2px solid var(--mark-border);
  border-radius: 8px;
  background: var(--mark-bg);
  padding: 0 7px;
}

.vc-art .vc-mark img,
.designer-back-card strong img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: inherit;
}

.vc-preview .vc-mark {
  min-width: 48px;
  height: 48px;
  padding: 7px;
}

.designer-back-card strong:has(img) {
  padding: 12px;
  background: rgba(255, 255, 255, 0.18);
}

.mark-circle .vc-mark {
  min-width: 30px;
  border-radius: 999px;
}

.mark-pill .vc-mark {
  min-width: 48px;
  border-radius: 999px;
}

.mark-outline .vc-mark {
  background: var(--mark-outline-bg);
}

.mark-monogram .vc-mark {
  border: 0;
  background: var(--monogram-bg);
  font-size: 1rem;
}

.texture-paper {
  box-shadow: inset 0 0 0 1px var(--ghost-mid), inset 0 32px 70px var(--ghost-soft);
}

.texture-mesh {
  box-shadow: inset 0 0 0 1px var(--grid-line), inset 0 0 32px var(--ghost-soft);
}

.texture-micro {
  box-shadow: inset 0 0 0 1px var(--ghost-soft), inset 18px 0 40px var(--ghost-soft);
}

.texture-dots {
  box-shadow: inset 0 0 0 1px var(--ghost-mid), inset -22px -18px 40px var(--ghost-soft);
}

.layout-classic-left .vc-text {
  left: 14px;
  bottom: 14px;
  width: 64%;
}

.layout-classic-left .vc-qr {
  right: 14px;
  bottom: 14px;
}

.layout-classic-left .vc-accent-line {
  left: 14px;
  top: 47px;
}

.layout-corner-logo .vc-mark {
  left: auto;
  right: 14px;
}

.layout-corner-logo .vc-text {
  left: 14px;
  bottom: 15px;
  width: 68%;
}

.layout-corner-logo .vc-qr {
  right: 14px;
  bottom: 15px;
}

.layout-split-right .vc-text {
  right: 14px;
  bottom: 14px;
  width: 58%;
  text-align: right;
}

.layout-split-right .vc-qr {
  left: 14px;
  bottom: 14px;
}

.layout-center-seal .vc-text {
  inset: auto 16px 14px;
  text-align: center;
}

.layout-center-seal .vc-mark {
  left: 50%;
  top: 18px;
  transform: translateX(-50%);
}

.layout-center-seal .vc-qr {
  right: 16px;
  top: 16px;
  width: 24px;
  height: 24px;
}

.layout-vertical-rail .vc-mark {
  top: auto;
  bottom: 14px;
}

.layout-vertical-rail .vc-text {
  left: 46px;
  bottom: 14px;
  width: 60%;
}

.layout-vertical-rail .vc-accent-line {
  left: 0;
  top: 0;
  width: 32px;
  height: 100%;
  border-radius: 0;
  opacity: 0.24;
}

.layout-vertical-rail .vc-qr {
  right: 14px;
  top: 14px;
}

.layout-top-band .vc-text {
  left: 14px;
  top: 44px;
  width: 70%;
}

.layout-top-band .vc-accent-line {
  inset: 0 0 auto;
  width: 100%;
  height: 32px;
  border-radius: 0;
  opacity: 0.22;
}

.layout-top-band .vc-qr {
  right: 14px;
  bottom: 14px;
}

.layout-bottom-strip .vc-text {
  left: 14px;
  bottom: 14px;
  width: 72%;
}

.layout-bottom-strip .vc-accent-line {
  inset: auto 0 0;
  width: 100%;
  height: 46px;
  border-radius: 0;
  opacity: 0.2;
}

.layout-bottom-strip .vc-qr {
  right: 14px;
  top: 14px;
}

.layout-qr-ledger .vc-text {
  left: 14px;
  bottom: 14px;
  width: 56%;
}

.layout-qr-ledger .vc-qr {
  right: 18px;
  top: 50%;
  width: 48px;
  height: 48px;
  transform: translateY(-50%);
}

.layout-editorial .vc-text {
  left: 14px;
  top: 42px;
  width: 72%;
}

.layout-editorial .vc-text strong {
  font-size: clamp(1rem, 1.3vw, 1.3rem);
}

.layout-editorial .vc-qr {
  right: 14px;
  bottom: 14px;
}

.layout-minimal-grid .vc-text {
  inset: auto 16px 18px;
  text-align: center;
}

.layout-minimal-grid .vc-qr {
  right: 14px;
  top: 14px;
}

.layout-bold-initial .vc-mark {
  top: 10px;
  left: 12px;
  min-width: 54px;
  height: 54px;
  border: 0;
  background: rgba(255, 255, 255, 0.18);
  font-size: 1.45rem;
}

.layout-bold-initial .vc-text {
  right: 14px;
  bottom: 14px;
  width: 62%;
  text-align: right;
}

.layout-bold-initial .vc-qr {
  left: 16px;
  bottom: 14px;
}

.layout-diagonal-flow .vc-text {
  left: 14px;
  bottom: 14px;
  width: 58%;
}

.layout-diagonal-flow .vc-accent-line {
  right: -16px;
  top: 18px;
  width: 116px;
  height: 22px;
  transform: rotate(38deg);
}

.layout-diagonal-flow .vc-qr {
  right: 14px;
  bottom: 14px;
}

.layout-luxury-frame .vc-text {
  inset: auto 18px 18px;
  text-align: center;
}

.layout-luxury-frame .vc-accent-line {
  inset: 12px;
  width: auto;
  height: auto;
  border: 2px solid var(--tc);
  background: transparent;
  border-radius: 12px;
  opacity: 0.34;
}

.layout-luxury-frame .vc-qr {
  right: 22px;
  top: 22px;
}

.layout-contact-bar .vc-text {
  left: 14px;
  top: 44px;
  width: 72%;
}

.layout-contact-bar .vc-qr {
  right: 14px;
  bottom: 14px;
}

.layout-contact-bar .vc-accent-line {
  left: 0;
  bottom: 0;
  width: 100%;
  height: 24px;
  border-radius: 0;
  opacity: 0.26;
}

.layout-portrait-panel .vc-text {
  right: 14px;
  bottom: 14px;
  width: 56%;
  text-align: right;
}

.layout-portrait-panel .vc-accent-line {
  left: 0;
  top: 0;
  width: 38%;
  height: 100%;
  border-radius: 0;
  opacity: 0.22;
}

.layout-portrait-panel .vc-qr {
  left: 16px;
  bottom: 16px;
}

/* Full-width header fit pass */
.site-header {
  left: 0;
  right: 0;
  width: 100%;
  max-width: none;
  overflow: hidden;
}

.service-strip,
.header-main,
.category-nav {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  border-radius: 0;
}

.service-strip {
  padding-left: clamp(18px, 4vw, 68px);
  padding-right: clamp(18px, 4vw, 68px);
}

.header-main {
  grid-template-columns: minmax(230px, 1fr) auto;
  gap: clamp(14px, 2vw, 26px);
  padding: 16px clamp(18px, 4vw, 68px);
}

.vc-header .header-main {
  grid-template-columns: minmax(230px, 1fr) auto;
}

.category-nav {
  padding-left: clamp(18px, 4vw, 68px);
  padding-right: clamp(18px, 4vw, 68px);
}

.brand-mark,
.search-box input,
.icon-button,
.primary-action,
.secondary-action,
.glass-action,
.cart-action {
  border-radius: 10px;
}

/* Official horizontal logo: object-fit trims the transparent top and bottom padding. */
.brand-logo {
  display: block;
  width: clamp(190px, 20vw, 250px);
  height: 58px;
  flex: 0 0 auto;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 820px) {
  .brand-logo {
    width: clamp(155px, 45vw, 190px);
    height: 48px;
  }
}

@media (max-width: 430px) {
  .brand-logo {
    width: 150px;
    height: 44px;
  }
}

@media print {
  .site-header,
  .designer-toolbar,
  .designer-editor,
  .mobile-nav,
  .toast {
    display: none !important;
  }

  body,
  .designer-page,
  .designer-shell,
  .designer-canvas {
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
  }

  .designer-canvas {
    display: grid !important;
    gap: 12mm !important;
  }

  .designer-card-stage {
    break-inside: avoid;
  }
}

.header-actions {
  min-width: 0;
  flex-wrap: nowrap;
}

.search-box {
  min-width: 280px;
}

@media (max-width: 1120px) {
  .header-main {
    grid-template-columns: minmax(210px, 1fr) auto;
  }

  .header-actions {
    gap: 8px;
  }
}

@media (max-width: 820px) {
  .service-strip {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .header-main,
  .vc-header .header-main {
    grid-template-columns: 1fr;
    padding: 14px 16px;
  }

  .search-box {
    min-width: 0;
    width: 100%;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
    overflow-x: auto;
  }
}

/* Final ID card text fit overrides */
.product-id .vc-text {
  gap: 1px;
  width: min(58%, 390px);
}

.product-id .vc-text strong,
.product-id .vc-text span,
.product-id .vc-text small {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-id .vc-text strong {
  font-size: clamp(1.05rem, 1.8vw, 1.55rem);
  line-height: 1.02;
}

.product-id .vc-text span,
.product-id .vc-text small {
  font-size: clamp(0.68rem, 0.85vw, 0.82rem);
  line-height: 1.12;
}

.product-id.layout-center-seal .vc-text,
.product-id.layout-luxury-frame .vc-text,
.product-id.layout-minimal-grid .vc-text {
  inset: auto 64px 18px;
  width: auto;
}

.product-id.layout-top-band .vc-text,
.product-id.layout-editorial .vc-text,
.product-id.layout-contact-bar .vc-text {
  top: 54px;
  width: 62%;
}

.product-id.layout-qr-ledger .vc-text,
.product-id.layout-portrait-panel .vc-text {
  width: 50%;
}

/* Final QR sticker designer overrides */
.qr-template-card .qr-template-image-frame {
  aspect-ratio: 1;
}

.designer-card-face .product-qr.vc-preview {
  width: min(540px, 92%);
  aspect-ratio: 1;
  min-height: auto;
  border-radius: 30px;
}

.product-qr .vc-text {
  inset: auto 30px 28px !important;
  width: auto !important;
  text-align: center !important;
  gap: 2px;
}

.product-qr .vc-text strong,
.product-qr .vc-text span,
.product-qr .vc-text small {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-qr .vc-text strong {
  font-size: clamp(1rem, 2.1vw, 1.55rem);
}

.product-qr .vc-text span,
.product-qr .vc-text small {
  font-size: clamp(0.68rem, 1vw, 0.88rem);
}

.product-qr .vc-qr {
  left: 50% !important;
  top: 46% !important;
  right: auto !important;
  bottom: auto !important;
  width: clamp(108px, 23vw, 172px) !important;
  height: clamp(108px, 23vw, 172px) !important;
  border-width: 8px !important;
  border-radius: 18px;
  transform: translate(-50%, -50%) !important;
  background-size: 22px 22px, 22px 22px;
}

.product-qr .vc-mark {
  left: 50% !important;
  top: 22px !important;
  transform: translateX(-50%) !important;
}

.product-qr .vc-accent-line {
  left: 50% !important;
  top: 92px !important;
  width: 118px !important;
  height: 8px !important;
  transform: translateX(-50%) !important;
}

/* Product label template and designer flow */
.labels-page .vc-template-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.label-template-card .label-template-image-frame,
.label-preview-image-frame {
  aspect-ratio: 1.52 / 1;
  background: #f8fafc;
}

.labels-page .vc-template-image,
.label-preview-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.designer-card-face .product-label.vc-preview {
  width: min(580px, 94%);
  aspect-ratio: 1.52 / 1;
  min-height: auto;
  border-radius: 28px;
}

.product-label .vc-text {
  inset: auto 36px 38px !important;
  width: min(68%, 430px) !important;
  text-align: left !important;
  gap: 3px;
}

.product-label .vc-text strong,
.product-label .vc-text span,
.product-label .vc-text small {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-label .vc-text strong {
  font-size: clamp(1.15rem, 2vw, 1.85rem);
}

.product-label .vc-text span {
  font-size: clamp(0.84rem, 1.15vw, 1.08rem);
}

.product-label .vc-text small {
  font-size: clamp(0.68rem, 0.95vw, 0.82rem);
}

.product-label .vc-mark {
  left: 36px !important;
  top: 30px !important;
  transform: none !important;
}

.product-label .vc-accent-line {
  left: 36px !important;
  top: 104px !important;
  width: 136px !important;
  height: 8px !important;
  transform: none !important;
}

.product-label .vc-qr.label-barcode {
  left: auto !important;
  right: 36px !important;
  top: auto !important;
  bottom: 40px !important;
  width: 132px !important;
  height: 42px !important;
  border: 0 !important;
  border-radius: 6px;
  opacity: 0.92 !important;
  transform: none !important;
  background:
    repeating-linear-gradient(
      90deg,
      currentColor 0 3px,
      transparent 3px 7px,
      currentColor 7px 9px,
      transparent 9px 15px,
      currentColor 15px 20px,
      transparent 20px 25px
    ) !important;
  box-shadow: none !important;
}

@media (max-width: 620px) {
  .product-label .vc-text {
    inset: auto 22px 28px !important;
    width: calc(100% - 44px) !important;
  }

  .product-label .vc-qr.label-barcode {
    right: 22px !important;
    bottom: 22px !important;
    width: 94px !important;
    height: 30px !important;
  }
}
/* Final imported ID designer: keep the selected template image as the real base. */
.designer-card-face .vc-art.has-template-bg.product-id {
  padding: 0 !important;
  background: #ffffff !important;
  overflow: hidden;
}

.designer-card-face .vc-art.has-template-bg.product-id::before,
.designer-card-face .vc-art.has-template-bg.product-id::after {
  display: none !important;
}

.designer-card-face .vc-art.has-template-bg.product-id .designer-template-bg {
  z-index: 2;
  object-fit: cover;
}

.designer-card-face .vc-art.has-template-bg.product-id.zip-template-bg .designer-template-bg {
  object-fit: contain;
}

.designer-card-face .vc-art.has-template-bg.product-id .vc-mark,
.designer-card-face .vc-art.has-template-bg.product-id .vc-text,
.designer-card-face .vc-art.has-template-bg.product-id .vc-qr,
.designer-card-face .vc-art.has-template-bg.product-id .vc-accent-line {
  display: none !important;
}

.designer-card-face .vc-art.has-template-bg.product-id em {
  z-index: 4;
  right: 12px;
  bottom: 10px;
  background: rgba(255, 255, 255, 0.76);
  color: #111827;
}
