.create-product-page {
  padding-bottom: 48px;
  overflow-x: clip;
}

.create-product-hero {
  margin-bottom: 28px;
  padding: 20px 22px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 247, 250, 0.96));
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

body.dark .create-product-hero {
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.2), transparent 34%),
    linear-gradient(180deg, rgba(42, 43, 52, 0.98), rgba(32, 33, 35, 0.96));
  border-color: rgba(255, 255, 255, 0.08);
}

.create-product-kicker {
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.create-product-title {
  margin: 0;
  font-family: "Manrope", "Inter", sans-serif;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.create-product-subtitle {
  max-width: 760px;
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
}

.create-product-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 24px;
  align-items: start;
}

.create-product-main {
  min-width: 0;
}

.create-product-side {
  position: sticky;
  top: 96px;
}

.create-product-card {
  border-radius: 28px;
  min-width: 0;
}

.create-product-form {
  display: grid;
  gap: 20px;
}

.create-product-form-summary {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(180, 35, 24, 0.18);
  background: rgba(180, 35, 24, 0.06);
  color: #8f1d14;
  font-size: 13px;
  line-height: 1.6;
}

.create-product-form-summary.is-info {
  border-color: rgba(37, 99, 235, 0.16);
  background: rgba(37, 99, 235, 0.06);
  color: #1d4ed8;
}

.create-product-form-summary strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
}

.create-product-form-summary ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.create-product-form-summary li + li {
  margin-top: 4px;
}

.create-product-section {
  padding: 22px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
}

body.dark .create-product-section {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}

.create-product-section-title {
  margin: 0 0 6px;
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.create-product-section-copy {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}

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

.create-product-field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.create-product-field-suggested {
  position: relative;
}

.create-product-field-suggested .create-product-label::after {
  content: "smart";
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  margin-left: 8px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
}

body.dark .create-product-field-suggested .create-product-label::after {
  background: rgba(122, 167, 255, 0.13);
  color: #bfdbfe;
}

.create-filter-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.create-filter-chip {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 252, 0.88));
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
  white-space: normal;
  text-align: left;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    background 0.16s ease,
    color 0.16s ease;
}

.create-filter-chip:hover,
.create-filter-chip.is-active {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 235, 0.28);
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 255, 255, 0.85), transparent 28%),
    linear-gradient(135deg, rgba(37, 99, 235, 0.14), rgba(96, 165, 250, 0.08));
  color: var(--accent);
}

body.dark .create-filter-chip {
  border-color: rgba(244, 241, 232, 0.1);
  background: rgba(244, 241, 232, 0.06);
  color: rgba(244, 245, 247, 0.72);
  box-shadow: none;
}

body.dark .create-filter-chip:hover,
body.dark .create-filter-chip.is-active {
  border-color: rgba(122, 167, 255, 0.26);
  background: rgba(122, 167, 255, 0.13);
  color: #f4f5f7;
}

.create-product-field-wide {
  grid-column: 1 / -1;
}

.create-product-inline-dpd {
  display: grid;
  gap: 12px;
  margin-bottom: 8px;
  padding: 14px;
  border: 1px solid rgba(220, 38, 38, 0.12);
  border-radius: 20px;
  background:
    radial-gradient(circle at 0 0, rgba(220, 0, 50, 0.1), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 247, 237, 0.7));
}

.create-product-dpd-head {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.create-product-dpd-logo {
  flex: 0 0 auto;
  width: 72px;
  height: 32px;
  border-radius: 12px;
  background:
    url("/icons/dpd-logo-redgrad.png") center / 64px auto no-repeat,
    rgba(255, 255, 255, 0.9);
  color: transparent;
  overflow: hidden;
  box-shadow:
    inset 0 0 0 1px rgba(15, 23, 42, 0.08),
    0 12px 24px rgba(220, 0, 50, 0.12);
}

.create-product-dpd-native-select {
  width: 100%;
  min-height: 44px;
}

.create-product-dpd-native-select.create-product-dpd-native-select {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

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

.create-product-dpd-size-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.055);
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    background 0.16s ease;
}

.create-product-dpd-size-card:hover,
.create-product-dpd-size-card.is-selected {
  transform: translateY(-1px);
  border-color: rgba(220, 0, 50, 0.34);
  background:
    radial-gradient(circle at 0 0, rgba(220, 0, 50, 0.1), transparent 44%),
    rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 34px rgba(220, 0, 50, 0.1);
}

.create-product-dpd-box {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 13px;
  background: linear-gradient(135deg, #ef0038, #b8002d);
  color: #fff;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: -0.02em;
}

.create-product-dpd-size-main strong,
.create-product-dpd-size-main small,
.create-product-dpd-size-meta,
.create-product-dpd-size-foot {
  display: block;
  min-width: 0;
}

.create-product-dpd-size-main strong {
  font-size: 16px;
  font-weight: 900;
}

.create-product-dpd-size-main small,
.create-product-dpd-size-meta {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.create-product-dpd-size-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.create-product-dpd-size-foot b {
  font-size: 13px;
  font-weight: 900;
}

.create-product-dpd-size-foot em {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
}

.create-product-dpd-size-card.is-selected .create-product-dpd-size-foot em {
  background: rgba(220, 0, 50, 0.1);
  color: #b91c1c;
}

.create-product-parcel-price-row {
  display: grid;
  gap: 5px;
}

.create-product-parcel-price-chip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 6px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.055);
}

.create-product-parcel-price-chip b,
.create-product-parcel-price-chip em,
.create-product-parcel-price-chip strong,
.create-product-parcel-price-chip del {
  min-width: 0;
  font-size: 10px;
  line-height: 1.1;
}

.create-product-parcel-price-chip b {
  overflow: hidden;
  color: var(--text);
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.create-product-parcel-price-chip em {
  padding: 3px 5px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: var(--muted);
  font-style: normal;
  font-weight: 900;
}

.create-product-parcel-price-chip strong {
  color: #007782;
  font-weight: 950;
  white-space: nowrap;
}

.create-product-parcel-price-chip del {
  grid-column: 3;
  color: var(--muted);
  font-weight: 800;
  opacity: 0.76;
  text-decoration-thickness: 2px;
  white-space: nowrap;
}

.create-product-parcel-price-chip.is-dpd strong {
  color: #c0002f;
}

.create-product-parcel-price-chip.is-omniva strong {
  color: #ff5f00;
}

.create-product-parcel-price-chip.is-smartpost strong {
  color: #006fbd;
}

body.dark .create-product-inline-dpd {
  border-color: rgba(248, 113, 113, 0.18);
  background:
    radial-gradient(circle at 0 0, rgba(248, 113, 113, 0.14), transparent 34%),
    linear-gradient(135deg, rgba(127, 29, 29, 0.18), rgba(120, 53, 15, 0.12));
}

body.dark .create-product-dpd-logo,
body.dark .create-product-dpd-size-card {
  border-color: rgba(226, 232, 240, 0.1);
  background-color: rgba(15, 23, 42, 0.62);
}

body.dark .create-product-dpd-size-card:hover,
body.dark .create-product-dpd-size-card.is-selected {
  border-color: rgba(248, 113, 113, 0.32);
  background:
    radial-gradient(circle at 0 0, rgba(248, 113, 113, 0.13), transparent 42%),
    rgba(15, 23, 42, 0.78);
}

body.dark .create-product-dpd-size-foot em {
  background: rgba(226, 232, 240, 0.08);
  color: rgba(226, 232, 240, 0.72);
}

body.dark .create-product-parcel-price-chip {
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

body.dark .create-product-parcel-price-chip em {
  background: rgba(226, 232, 240, 0.08);
}

body.dark .create-product-dpd-size-card.is-selected .create-product-dpd-size-foot em {
  background: rgba(248, 113, 113, 0.16);
  color: #fecaca;
}

.create-product-delivery-panel {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 24px;
  background:
    radial-gradient(circle at 8% 0, rgba(0, 119, 130, 0.09), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(247, 250, 252, 0.76));
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.055);
}

.create-product-delivery-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.create-product-delivery-kicker {
  display: block;
  margin-bottom: 3px;
  color: #007782;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.create-product-delivery-head h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.1;
}

.create-product-delivery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.create-product-delivery-card {
  display: grid;
  grid-template-columns: minmax(106px, auto) minmax(0, 1fr) auto;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.045);
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    background 0.16s ease;
}

.create-product-delivery-card:hover,
.create-product-delivery-card.is-selected {
  transform: translateY(-1px);
  border-color: rgba(0, 119, 130, 0.28);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 34px rgba(0, 119, 130, 0.09);
}

.create-product-delivery-card.is-disabled {
  cursor: not-allowed;
  opacity: 0.74;
}

.create-product-provider-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 106px;
  height: 38px;
  padding: 0 8px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  white-space: nowrap;
}

.create-product-provider-logo.is-dpd {
  color: transparent;
  background:
    url("/icons/dpd-logo-redgrad.png") center / 64px auto no-repeat,
    rgba(255, 255, 255, 0.92);
}

.create-product-provider-logo.is-smartpost {
  gap: 0;
  font-size: 17px;
  font-weight: 950;
  letter-spacing: -0.09em;
  text-transform: lowercase;
}

.create-product-provider-logo.is-smartpost span:first-child {
  color: #006fbd;
}

.create-product-provider-logo.is-smartpost span:last-child {
  color: #ff8300;
}

.create-product-provider-logo.is-omniva {
  color: #ff5f00;
  background: rgba(255, 255, 255, 0.92);
  font-size: 24px;
  font-weight: 950;
  letter-spacing: -0.08em;
  text-transform: lowercase;
}

.create-product-provider-logo.is-omniva span {
  color: #ff5f00;
}

.create-product-delivery-card-main,
.create-product-delivery-card-side {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.create-product-delivery-card-main {
  align-content: center;
}

.create-product-delivery-check {
  grid-column: 3;
  grid-row: 1;
  align-self: center;
  justify-self: end;
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: transparent;
  font-size: 13px;
  font-weight: 950;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.create-product-delivery-card.is-selected .create-product-delivery-check {
  border-color: rgba(0, 119, 130, 0.32);
  background: linear-gradient(135deg, #007782, #00a7ad);
  color: #fff;
}

.create-product-delivery-card-main strong {
  font-size: 14px;
  line-height: 1.12;
}

.create-product-delivery-card-main small,
.create-product-delivery-card-side em {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
}

.create-product-delivery-card-side {
  grid-column: 1 / -1;
  grid-template-columns: 1fr auto;
  align-items: center;
}

.create-product-inline-dpd.is-hidden {
  display: none;
}

.create-product-delivery-card-side b {
  font-size: 13px;
  font-weight: 950;
}

.create-product-delivery-card-side em {
  justify-self: end;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.055);
  font-style: normal;
  font-weight: 850;
}

.create-product-delivery-card.is-selected .create-product-delivery-card-side em {
  background: rgba(0, 119, 130, 0.1);
  color: #007782;
}

.create-product-inline-dpd {
  margin: 0;
  padding: 12px;
  border-color: rgba(0, 119, 130, 0.12);
  border-radius: 20px;
  background:
    radial-gradient(circle at 0 0, rgba(0, 119, 130, 0.07), transparent 34%),
    rgba(255, 255, 255, 0.66);
}

.create-product-dpd-cards {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.create-product-dpd-size-card {
  gap: 9px;
  min-height: 0;
  padding: 10px;
  border-radius: 16px;
}

.create-product-dpd-size-row {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.create-product-dpd-size-card:hover,
.create-product-dpd-size-card.is-selected {
  border-color: rgba(0, 119, 130, 0.3);
  background:
    radial-gradient(circle at 0 0, rgba(0, 119, 130, 0.08), transparent 44%),
    rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 30px rgba(0, 119, 130, 0.085);
}

.create-product-dpd-box {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: linear-gradient(135deg, #007782, #00a7ad);
}

.create-product-dpd-size-main strong {
  font-size: 15px;
}

.create-product-dpd-size-main small {
  font-size: 11px;
}

.create-product-dpd-size-card.is-selected .create-product-dpd-size-foot em {
  background: rgba(0, 119, 130, 0.1);
  color: #007782;
}

body.dark .create-product-delivery-panel {
  border-color: rgba(226, 232, 240, 0.1);
  background:
    radial-gradient(circle at 8% 0, rgba(45, 212, 191, 0.1), transparent 34%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.58));
}

body.dark .create-product-delivery-card,
body.dark .create-product-inline-dpd {
  border-color: rgba(226, 232, 240, 0.1);
  background-color: rgba(15, 23, 42, 0.58);
}

body.dark .create-product-provider-logo {
  background-color: rgba(255, 255, 255, 0.9);
}

body.dark .create-product-delivery-card:hover,
body.dark .create-product-delivery-card.is-selected {
  border-color: rgba(45, 212, 191, 0.28);
  background: rgba(15, 23, 42, 0.78);
}

body.dark .create-product-delivery-card.is-selected .create-product-delivery-card-side em,
body.dark .create-product-dpd-size-card.is-selected .create-product-dpd-size-foot em {
  background: rgba(45, 212, 191, 0.14);
  color: #99f6e4;
}

.create-product-special-legal {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  min-width: 0;
  margin-top: 6px;
  padding: 13px 14px;
  border: 1px solid rgba(0, 119, 130, 0.16);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(0, 119, 130, 0.07), rgba(15, 23, 42, 0.025));
  box-shadow: none;
  overflow-wrap: normal;
  word-break: normal;
}

.create-product-special-legal-badge {
  width: max-content;
  max-width: 100%;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(0, 119, 130, 0.12);
  color: #007782;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.create-product-special-legal > span {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.create-product-special-legal strong {
  display: block;
  margin-bottom: 2px;
  overflow-wrap: break-word;
  word-break: normal;
}

.create-product-special-legal small {
  display: block;
  color: var(--muted);
  line-height: 1.5;
  overflow-wrap: break-word;
  word-break: normal;
}

.create-product-transaction-note {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
  min-width: 0;
  padding: 12px 13px;
  border: 1px solid rgba(217, 119, 6, 0.18);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.1), rgba(251, 191, 36, 0.06));
}

.create-product-transaction-pill {
  width: max-content;
  max-width: 100%;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(217, 119, 6, 0.14);
  color: #92400e;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

body.dark .create-product-special-legal {
  border-color: rgba(71, 196, 184, 0.18);
  background: linear-gradient(135deg, rgba(71, 196, 184, 0.08), rgba(244, 241, 232, 0.04));
}

body.dark .create-product-special-legal-badge {
  background: rgba(71, 196, 184, 0.12);
  color: #8ee3d8;
}

body.dark .create-product-transaction-note {
  border-color: rgba(251, 191, 36, 0.2);
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(244, 241, 232, 0.04));
}

body.dark .create-product-transaction-pill {
  background: rgba(251, 191, 36, 0.14);
  color: #facc15;
}

.create-product-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.create-product-field textarea {
  min-height: 152px;
}

.create-product-title,
.create-product-section-title,
.create-product-section-copy,
.create-product-subtitle,
.create-product-side-title,
.create-product-side-copy,
.create-product-checklist li,
.create-product-note,
.create-product-quality-note,
.create-product-quality-item,
.create-product-preview-title,
.create-product-preview-meta,
.create-product-hint {
  overflow-wrap: break-word;
  word-break: normal;
}

.create-product-hint {
  min-height: 18px;
  margin-top: -2px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

.create-product-hint.is-error {
  color: #b42318;
}

.create-product-hint.is-success {
  color: #12715b;
}

.create-product-readonly-value {
  min-height: 46px;
  display: flex;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.72));
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.create-product-readonly-value.is-empty,
.create-product-readonly-value.is-error {
  border-color: rgba(180, 35, 24, 0.28);
  background:
    linear-gradient(135deg, rgba(254, 242, 242, 0.92), rgba(255, 247, 237, 0.76));
  color: #b42318;
}

.create-product-inline-link {
  width: max-content;
  max-width: 100%;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.create-product-inline-link:hover {
  text-decoration: underline;
}

body.dark .create-product-readonly-value {
  border-color: rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.035));
}

body.dark .create-product-readonly-value.is-empty,
body.dark .create-product-readonly-value.is-error {
  border-color: rgba(248, 113, 113, 0.26);
  background:
    linear-gradient(135deg, rgba(127, 29, 29, 0.22), rgba(124, 45, 18, 0.14));
  color: #fca5a5;
}

.create-category-native-select {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  opacity: 0;
  pointer-events: none;
}

.create-category-picker {
  grid-column: 1 / -1;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 22px;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 34%),
    rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.create-category-picker-head,
.create-subcategory-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  min-width: 0;
}

.create-category-picker-head div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.create-category-picker-head span,
.create-subcategory-panel-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.create-category-picker-head strong {
  color: var(--text);
  font-size: 16px;
  letter-spacing: -0.02em;
}

.create-category-clear,
.create-subcategory-all {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: normal;
}

.create-category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.create-category-tile,
.create-subcategory-tile {
  display: grid;
  align-items: center;
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  text-align: left;
  min-width: 0;
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    background 0.16s ease;
}

.create-category-tile {
  grid-template-columns: 36px minmax(0, 1fr);
  min-height: 54px;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 18px;
  font-size: 13px;
  font-weight: 800;
}

.create-subcategory-tile {
  grid-template-columns: 30px minmax(0, 1fr);
  min-height: 44px;
  gap: 8px;
  padding: 7px 9px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 750;
}

.create-category-tile:hover,
.create-category-tile.is-active,
.create-subcategory-all:hover,
.create-subcategory-all.is-active,
.create-subcategory-tile:hover,
.create-subcategory-tile.is-active {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 235, 0.34);
  background: rgba(37, 99, 235, 0.08);
  color: #1d4ed8;
}

.create-category-icon,
.create-subcategory-icon {
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--accent);
}

.create-category-icon {
  width: 36px;
  height: 36px;
}

.create-subcategory-icon {
  width: 30px;
  height: 30px;
}

.create-category-icon svg {
  width: 19px;
  height: 19px;
}

.create-subcategory-icon svg {
  width: 16px;
  height: 16px;
}

.create-category-tile span:last-child,
.create-subcategory-tile span:last-child,
.create-subcategory-empty {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  overflow-wrap: break-word;
  word-break: normal;
}

.create-subcategory-panel {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.create-subcategory-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.create-subcategory-empty {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 13px;
}

body.dark .create-category-picker {
  border-color: rgba(244, 241, 232, 0.1);
  background:
    radial-gradient(circle at top left, rgba(122, 167, 255, 0.1), transparent 34%),
    rgba(244, 241, 232, 0.04);
}

body.dark .create-category-clear,
body.dark .create-subcategory-all,
body.dark .create-category-tile,
body.dark .create-subcategory-tile {
  background: rgba(244, 241, 232, 0.06);
  border-color: rgba(244, 241, 232, 0.1);
}

body.dark .create-category-tile:hover,
body.dark .create-category-tile.is-active,
body.dark .create-subcategory-all:hover,
body.dark .create-subcategory-all.is-active,
body.dark .create-subcategory-tile:hover,
body.dark .create-subcategory-tile.is-active {
  background: rgba(122, 167, 255, 0.08);
  border-color: rgba(122, 167, 255, 0.22);
  color: #f4f5f7;
}

body.dark .create-category-icon,
body.dark .create-subcategory-icon {
  background: rgba(122, 167, 255, 0.1);
  color: #7aa7ff;
}

.create-product-side-card {
  padding: 24px;
  min-width: 0;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.12), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 248, 251, 0.96));
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.07);
}

body.dark .create-product-side-card {
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.16), transparent 38%),
    linear-gradient(180deg, rgba(45, 46, 54, 0.98), rgba(35, 36, 43, 0.96));
  border-color: rgba(255, 255, 255, 0.08);
}

.create-product-side-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.create-product-side-title {
  margin: 16px 0 10px;
  font-size: 24px;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.create-product-side-copy {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.create-product-checklist {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.create-product-checklist li {
  position: relative;
  padding-left: 30px;
  font-size: 14px;
  line-height: 1.6;
}

.create-product-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.9), transparent 35%),
    linear-gradient(135deg, #2563eb, #1d4ed8);
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.2);
}

.create-product-checklist li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 10px;
  width: 6px;
  height: 3px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

.create-product-note {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.04);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

body.dark .create-product-note {
  background: rgba(255, 255, 255, 0.05);
}

.create-product-quality {
  margin-top: 18px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(37, 99, 235, 0.12);
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.98) 0%, rgba(255, 255, 255, 0.94) 100%);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.create-product-quality-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.create-product-quality-title {
  margin-top: 4px;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: break-word;
  word-break: normal;
}

.create-product-quality-score {
  flex-shrink: 0;
  min-width: 62px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.create-product-quality-bar {
  position: relative;
  height: 8px;
  margin-top: 16px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.2);
}

.create-product-quality-bar-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #60a5fa 0%, #2563eb 100%);
  transition: width 180ms ease;
}

.create-product-quality-note {
  margin-top: 14px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.6;
}

.create-product-quality-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.create-product-quality-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.create-product-quality-item::before {
  content: "";
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.5);
}

.create-product-quality-item.is-done {
  color: var(--text);
}

.create-product-quality-item.is-done::before {
  background: linear-gradient(180deg, #60a5fa 0%, #2563eb 100%);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

body.dark .create-product-quality {
  border-color: rgba(96, 165, 250, 0.2);
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.86) 100%);
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.35);
}

body.dark .create-product-quality-score {
  background: rgba(96, 165, 250, 0.16);
  color: #bfdbfe;
}

body.dark .create-product-quality-bar {
  background: rgba(148, 163, 184, 0.22);
}

body.dark .create-product-quality-item {
  color: rgba(226, 232, 240, 0.75);
}

body.dark .create-product-quality-item.is-done {
  color: #e2e8f0;
}

.create-product-preview {
  margin-top: 18px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.96) 100%);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.06);
}

.create-product-preview-card {
  margin-top: 14px;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: #fff;
  box-shadow: 0 22px 44px rgba(15, 23, 42, 0.08);
}

.create-product-preview-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(219, 234, 254, 0.95) 0%, rgba(241, 245, 249, 0.95) 100%);
}

.create-product-preview-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.create-product-preview-badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.create-product-preview-body {
  padding: 16px;
  min-width: 0;
}

.create-product-preview-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.create-product-preview-price {
  color: var(--text);
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}

.create-product-preview-city {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  text-align: right;
}

.create-product-preview-title {
  margin-top: 12px;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
}

.create-product-preview-meta {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.create-product-preview-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.create-product-preview-chip {
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

body.dark .create-product-preview {
  border-color: rgba(148, 163, 184, 0.16);
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.86) 100%);
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.32);
}

body.dark .create-product-preview-card {
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.76);
  box-shadow: 0 22px 44px rgba(2, 6, 23, 0.32);
}

body.dark .create-product-preview-media {
  background:
    linear-gradient(135deg, rgba(30, 41, 59, 0.96) 0%, rgba(15, 23, 42, 0.96) 100%);
}

body.dark .create-product-preview-badge {
  background: rgba(15, 23, 42, 0.82);
  color: #e2e8f0;
}

body.dark .create-product-preview-chip {
  background: rgba(96, 165, 250, 0.14);
  color: #bfdbfe;
}

/* Dark theme finish for listing creation: fewer heavy blocks, clearer text. */
body.dark .create-product-page {
  color: var(--text);
}

body.dark .create-product-card,
body.dark .create-product-hero,
body.dark .create-product-section,
body.dark .create-product-side-card,
body.dark .create-product-preview,
body.dark .create-product-quality,
body.dark .create-product-category-picker,
body.dark .create-category-picker {
  border-color: rgba(226, 232, 240, 0.1);
  background:
    radial-gradient(circle at 100% 0%, rgba(96, 165, 250, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(17, 24, 34, 0.94), rgba(9, 13, 20, 0.96));
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.3);
}

body.dark .create-product-form-summary,
body.dark .create-product-note,
body.dark .create-product-special-legal,
body.dark .create-product-transaction-note,
body.dark .create-product-readonly-value,
body.dark .create-product-preview-card {
  border-color: rgba(226, 232, 240, 0.1);
  background: rgba(15, 23, 42, 0.5);
  color: rgba(226, 232, 240, 0.86);
}

body.dark .create-product-title,
body.dark .create-product-section-title,
body.dark .create-product-side-title,
body.dark .create-product-label,
body.dark .create-product-quality-title,
body.dark .create-product-preview-title,
body.dark .create-product-preview-price {
  color: #f8fafc;
}

body.dark .create-product-subtitle,
body.dark .create-product-section-copy,
body.dark .create-product-side-copy,
body.dark .create-product-hint,
body.dark .create-product-quality-note,
body.dark .create-product-quality-item,
body.dark .create-product-preview-meta,
body.dark .create-product-preview-city {
  color: rgba(203, 213, 225, 0.78);
}

body.dark .create-product-page :where(input, textarea, select) {
  background: rgba(15, 23, 42, 0.62);
  border-color: rgba(226, 232, 240, 0.12);
  color: #f8fafc;
}

body.dark .create-product-page :where(input, textarea, select):focus {
  background: rgba(15, 23, 42, 0.78);
  border-color: rgba(139, 183, 255, 0.46);
}

.create-product-submit {
  min-height: 52px;
  font-size: 15px;
  white-space: normal;
}

.create-product-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

@media (max-width: 1080px) {
  .create-product-shell {
    grid-template-columns: 1fr;
  }

  .create-product-side {
    position: static;
  }
}

@media (max-width: 760px) {
  .create-product-page {
    padding-bottom: 28px;
  }

  .create-product-hero {
    margin-bottom: 18px;
    padding: 18px;
    border-radius: 22px;
  }

  .create-product-title {
    font-size: clamp(25px, 9vw, 32px);
    line-height: 1.05;
    letter-spacing: -0.04em;
  }

  .create-product-subtitle {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.6;
  }

  .create-product-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .create-product-section {
    padding: 16px;
    border-radius: 20px;
  }

  .create-product-section-title {
    font-size: 18px;
  }

  .create-product-section-copy {
    margin-bottom: 14px;
    font-size: 13px;
    line-height: 1.58;
  }

  .create-category-picker {
    padding: 10px;
    border-radius: 18px;
  }

  .create-category-picker-head,
  .create-subcategory-panel-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .create-category-clear,
  .create-subcategory-all {
    width: 100%;
    justify-content: center;
  }

  .create-category-grid,
  .create-subcategory-grid {
    grid-template-columns: 1fr;
  }

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

  .create-product-delivery-grid {
    grid-template-columns: 1fr;
  }

  .create-category-tile,
  .create-subcategory-tile {
    min-height: 48px;
  }

  .create-product-side-card {
    padding: 16px;
    border-radius: 20px;
  }

  .create-product-side-title {
    font-size: 20px;
    line-height: 1.16;
  }

  .create-product-checklist li {
    padding-left: 26px;
    font-size: 13px;
    line-height: 1.55;
  }

  .create-product-quality,
  .create-product-preview {
    padding: 14px;
    border-radius: 18px;
  }

  .create-product-quality-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .create-product-quality-score {
    min-width: 0;
    width: max-content;
  }

  .create-product-preview-price-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .create-product-preview-city {
    text-align: left;
  }

  .create-product-submit {
    width: 100%;
    min-height: 54px;
  }
}

@media (max-width: 420px) {
  .create-product-card {
    border-radius: 20px;
  }

  .create-product-hero,
  .create-product-section,
  .create-product-side-card {
    margin-left: -2px;
    margin-right: -2px;
  }

  .create-filter-chip {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .create-product-dpd-head {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .create-product-delivery-panel {
    padding: 12px;
    border-radius: 20px;
  }

  .create-product-delivery-card {
    grid-template-columns: minmax(92px, 0.92fr) minmax(0, 1fr) auto;
    gap: 8px;
    padding: 10px;
  }

  .create-product-provider-logo {
    min-width: 92px;
    height: 34px;
    padding: 0 6px;
  }

  .create-product-provider-logo.is-smartpost {
    font-size: 15px;
  }

  .create-product-provider-logo.is-omniva {
    font-size: 20px;
    letter-spacing: -0.07em;
  }

  .create-product-preview-body {
    padding: 14px;
  }
}

@media (max-width: 360px) {
  .create-product-delivery-card {
    grid-template-columns: minmax(86px, 0.86fr) minmax(0, 1fr) auto;
  }

  .create-product-provider-logo {
    min-width: 86px;
  }

  .create-product-dpd-cards {
    grid-template-columns: 1fr;
  }
}

/* Final polish: keep translated text readable on narrow screens. */
.create-product-page :where(
  .create-product-title,
  .create-product-section-title,
  .create-product-section-copy,
  .create-product-subtitle,
  .create-product-side-title,
  .create-product-side-copy,
  .create-product-checklist li,
  .create-product-note,
  .create-product-quality-note,
  .create-product-quality-item,
  .create-product-preview-title,
  .create-product-preview-meta,
  .create-product-hint,
  .create-product-delivery-card,
  .create-product-delivery-card-main,
  .create-product-delivery-card-side,
  .create-product-special-legal strong,
  .create-product-special-legal small,
  .legal-consent-card,
  .legal-consent-card small,
  .create-category-tile,
  .create-subcategory-tile
) {
  min-width: 0;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
}

.create-product-page input,
.create-product-page textarea,
.create-product-page select,
.create-product-readonly-value {
  min-width: 0;
  max-width: 100%;
  word-break: normal;
}

.create-product-special-legal {
  align-items: flex-start;
  grid-template-columns: auto minmax(0, 1fr);
}

.create-product-special-legal > span,
.legal-consent-card > span {
  min-width: 0;
}

@media (max-width: 640px) {
  .create-product-page {
    padding-bottom: calc(var(--mobile-nav-height, 72px) + 22px);
  }

  .create-product-special-legal {
    gap: 12px;
    padding: 16px;
  }

  .legal-consent-card {
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
  }

  .create-product-side {
    gap: 14px;
  }
}
