.card-row {
  display: contents;
}

.craft-stat-row {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.ant-btn {
  font-weight: 600;
  box-shadow: none;
}

.ant-btn-primary {
  box-shadow: 0 10px 26px rgba(var(--accent-rgb), 0.24);
}

.ant-btn-primary:hover {
  box-shadow: 0 14px 32px rgba(var(--accent-rgb), 0.3);
}

.site-header .header-actions .ant-btn {
  height: 36px;
  padding-inline: 18px;
  border-radius: 999px;
}

.hero-cta .ant-btn {
  height: 58px;
  padding-inline: 32px;
  border-radius: 999px;
  font-size: 15px;
}

.hero-cta .ant-btn-default {
  background: transparent;
  border-color: var(--line-2);
  color: var(--ink);
}

.hero-cta .ant-btn-default:hover {
  background: var(--white);
  border-color: var(--ink);
  color: var(--ink);
}

.section-head .ant-btn-link {
  color: var(--ink);
  font-weight: 600;
  padding: 0;
  height: auto;
}

.section-head .ant-btn-link:hover {
  color: var(--accent);
}

.product-card.ant-card {
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--paper-2);
  overflow: hidden;
  min-height: 430px;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.3s;
}

.product-card.ant-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-m);
  border-color: var(--line-2);
}

.product-card.ant-card .ant-card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 430px;
}

.product-card-top .ant-tag {
  margin: 0;
  border-radius: 999px;
  padding: 1px 11px;
  font-size: 11px;
  line-height: 20px;
  background: var(--paper-2);
  border-color: var(--line);
  color: var(--ink-2);
}

.product-card-top .ant-tag.tag-accent {
  background: var(--accent-soft);
  border-color: rgba(var(--accent-rgb), 0.25);
  color: var(--accent-dark);
}

.product-card-top .card-arrow.ant-btn {
  width: 34px;
  height: 34px;
  padding: 0;
  color: var(--ink);
  border: 1px solid var(--line-2);
  background: transparent;
}

.product-card-top .card-arrow.ant-btn:hover {
  background: var(--ink) !important;
  color: var(--paper-2) !important;
  border-color: var(--ink) !important;
}

.template-card.ant-card {
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--paper-2);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.template-card.ant-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-m);
}

.template-card .ant-card-body {
  padding: 0;
}

.template-meta .template-tag.ant-tag {
  margin: 0;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  font-family: var(--font-mono);
  padding-inline: 8px;
}

.studio-band .ant-steps-item-title {
  color: var(--paper-2) !important;
  font-weight: 650;
  font-size: 13px;
  line-height: 20px;
}

.studio-band .ant-steps-item-description {
  color: rgba(255, 253, 248, 0.5) !important;
  font-size: 11.5px;
}

.studio-band .ant-steps-item-process .ant-steps-item-icon {
  background: transparent;
  border-color: var(--lime);
}

.studio-band .ant-steps-item-icon .ant-steps-icon {
  color: var(--lime);
  font-size: 11px;
}

.studio-band .ant-steps-item-tail::after {
  background-color: rgba(255, 253, 248, 0.16) !important;
}

.studio-band .ant-steps-vertical .ant-steps-item-tail::after {
  inset-inline-start: 15px;
  width: 1px;
}

.studio-band .ant-steps-item-container {
  display: block;
}

.studio-band .ant-steps-vertical .ant-steps-item-container {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.studio-band .ant-steps-vertical .ant-steps-item-content {
  min-height: 0;
  margin-inline-start: 0;
}

.studio-band .ant-steps-item {
  padding-bottom: 14px;
}

.studio-band .ant-steps-vertical .ant-steps-item-tail {
  inset-inline-start: 15px;
  top: 26px;
  bottom: 0;
  padding: 0;
}

.studio-band .btn-lime.ant-btn {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
}

.studio-band .btn-lime.ant-btn:hover {
  background: #e5f79a !important;
  border-color: #e5f79a !important;
  color: var(--ink) !important;
}

.craft-stat .ant-statistic-title {
  color: rgba(255, 253, 248, 0.42);
  font-size: 11px;
  margin-bottom: 2px;
}

.craft-stat .ant-statistic-content {
  color: var(--paper-2);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.craft-item.ant-card {
  background: var(--ink);
  border: 0;
  border-radius: 0;
  min-height: 210px;
  transition: background 0.3s;
}

.craft-item.ant-card .ant-card-body {
  padding: 32px;
}

.craft-item.ant-card:hover {
  background: #1f1b15;
}

.craft-item h3 {
  color: var(--paper-2);
}

.craft-item p {
  color: rgba(255, 253, 248, 0.45);
}

.process-wrap {
  border-top: 1px solid var(--line);
  padding-top: 34px;
}

.process-wrap .ant-steps-item-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink) !important;
  letter-spacing: -0.02em;
}

.process-wrap .ant-steps-item-description {
  color: var(--muted);
  font-size: 12.5px;
  max-width: 260px;
  line-height: 1.75;
}

.process-wrap .ant-steps-item-icon {
  background: var(--paper-2);
  border-color: var(--line);
  width: 30px;
  height: 30px;
  line-height: 28px;
  margin-inline-start: 0;
}

.process-wrap .ant-steps-icon {
  font-size: 11px;
  color: var(--accent);
  font-family: var(--font-mono);
}

.process-wrap .ant-steps-item-tail::after {
  background-color: var(--line) !important;
}

.process-wrap .ant-steps-item-finish .ant-steps-item-icon {
  border-color: var(--ink);
  background: var(--ink);
}

.process-wrap .ant-steps-item-finish .ant-steps-icon {
  color: var(--paper-2);
}

.cta-panel .ant-btn {
  height: 58px;
  padding-inline: 32px;
  border-radius: 999px;
  font-size: 15px;
}

.cta-panel .ant-btn-default {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.42);
  color: #fff;
}

.cta-panel .ant-btn-default:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: #fff !important;
  color: #fff !important;
}

.cta-panel .cta-main.ant-btn {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper-2);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.cta-panel .cta-main.ant-btn:hover {
  background: #2c271f !important;
  border-color: #2c271f !important;
  color: var(--paper-2) !important;
}

.footer-sub .field .ant-input {
  background: transparent;
  border: 0;
  color: var(--paper-2);
  height: 42px;
  padding: 0 6px;
  font-size: 12px;
}

.footer-sub .field .ant-input::placeholder {
  color: rgba(255, 253, 248, 0.3);
}

.footer-sub .field .ant-btn {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
}

.footer-sub .field .ant-btn:hover {
  background: #e5f79a !important;
  border-color: #e5f79a !important;
  color: var(--ink) !important;
}

.ant-message-notice-content {
  border-radius: 999px;
  font-size: 13px;
  box-shadow: var(--shadow-m);
}

/* ---------- studio: antd integration ---------- */

.s-panel h1 {
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -0.03em;
  margin-top: 6px;
}

.s-panel > p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
  line-height: 1.6;
}

.s-field {
  margin-top: 20px;
}

.s-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.s-label span {
  font-family: var(--font);
  letter-spacing: 0;
  text-transform: none;
  font-size: 9.5px;
  color: var(--muted-2);
}

.s-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.s-choice.ant-card {
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.s-choice.ant-card:hover {
  border-color: var(--line-2);
  transform: translateY(-2px);
}

.s-choice.ant-card.on {
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
}

.s-choice .ant-card-body {
  padding: 8px 5px 7px;
}

.s-choice-thumb {
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.s-choice-thumb svg {
  height: 56px;
  width: auto;
  max-width: 92%;
  filter: drop-shadow(0 4px 5px rgba(40, 28, 12, 0.14));
}

.s-choice-name {
  text-align: center;
  line-height: 1.25;
}

.s-choice-name b {
  display: block;
  font-size: 10px;
  font-weight: 600;
}

.s-choice-name em {
  font-style: normal;
  font-size: 8px;
  color: var(--muted);
}

.s-size-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
}

.s-size-group .ant-radio-wrapper {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: var(--white);
  transition: border-color 0.2s;
}

.s-size-group .ant-radio-wrapper:hover {
  border-color: var(--line-2);
}

.s-size-group .ant-radio-wrapper-checked {
  border-color: var(--ink);
  background: var(--paper-2);
}

.s-size-group .ant-radio {
  align-self: center;
}

.s-size-opt {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.s-size-opt b {
  font-size: 10.5px;
  font-weight: 600;
}

.s-size-opt em {
  font-style: normal;
  font-size: 9.5px;
  color: var(--muted);
}

.s-size-opt i {
  margin-left: auto;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--ink-2);
}

.s-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.s-two label {
  display: block;
  font-size: 9px;
  color: var(--muted);
  margin-bottom: 5px;
}

.s-two .ant-select {
  width: 100%;
}

.s-qty-group {
  display: flex;
  width: 100%;
}

.s-qty-group .ant-radio-button-wrapper {
  flex: 1;
  text-align: center;
  font-size: 11px;
  height: 32px;
  line-height: 30px;
}

.s-link {
  margin-top: 22px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--lime);
  font-size: 10.5px;
  color: var(--ink);
}

.s-link a {
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.s-current {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  background: var(--paper-2);
}

.s-current-thumb {
  width: 52px;
  height: 58px;
  display: flex;
  align-items: center;
}

.s-current-thumb svg {
  max-height: 58px;
  width: auto;
}

.s-current b {
  display: block;
  font-size: 12px;
}

.s-current em {
  font-style: normal;
  font-size: 8.5px;
  color: var(--muted);
}

.s-current span {
  display: block;
  font-size: 9.5px;
  color: var(--muted);
  margin-top: 2px;
}

.tpl-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.tpl-card.ant-card {
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.tpl-card.ant-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-s);
}

.tpl-card .ant-card-body {
  padding: 0;
}

.tpl-thumb {
  height: 104px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tpl-thumb svg {
  width: 72%;
  max-height: 98px;
  filter: drop-shadow(0 6px 8px rgba(40, 28, 12, 0.15));
}

.tpl-name {
  padding: 7px 8px;
  font-size: 10.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  border-top: 1px solid var(--line);
}

.tpl-tag.ant-tag {
  margin: 0;
  font-size: 8px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
}

.font-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.font-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 8px 9px;
  text-align: left;
  transition: border-color 0.2s, background 0.2s;
}

.font-item:hover {
  border-color: var(--ink);
  background: var(--paper-2);
}

.font-item span:first-child {
  display: block;
  font-size: 15px;
  color: var(--ink);
  line-height: 1.3;
}

.font-item span:last-child {
  display: block;
  font-size: 9px;
  color: var(--muted);
  margin-top: 2px;
}

.layer-list.ant-list {
  border: 0;
  font-size: 12px;
}

.layer-list .ant-list-item {
  padding: 0;
  border: 0;
}

.layer-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border: 1px solid transparent;
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.layer-row:hover {
  background: var(--paper);
}

.layer-row.on {
  background: var(--paper);
  border-color: var(--line-2);
}

.layer-icon {
  width: 26px;
  height: 26px;
  border-radius: 5px;
  background: var(--white);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  flex: none;
  color: var(--ink-2);
}

.layer-icon .icon {
  width: 13px;
  height: 13px;
}

.layer-name {
  flex: 1;
  min-width: 0;
  font-size: 10.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.layer-name small {
  display: block;
  font-size: 8.5px;
  color: var(--muted-2);
}

.layer-eye {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: var(--muted);
  border-radius: 4px;
  flex: none;
}

.layer-eye:hover {
  background: var(--paper-3);
  color: var(--ink);
}

.tool-panel .ant-empty {
  margin: 10px 0;
}

.tool-panel .ant-empty-description {
  color: var(--muted-2);
  font-size: 11px;
}

.tool-panel .ant-upload-wrapper .upload-zone {
  border: 0;
  padding: 16px 12px;
}

.tool-panel .ant-upload-drag {
  background: var(--paper-2);
  border: 1.5px dashed var(--line-2);
  border-radius: 12px;
}

.tool-panel .ant-upload-drag:hover {
  border-color: var(--accent);
  background: #fff8f3;
}

.tool-panel .ant-upload-btn {
  padding: 0 !important;
}

.uploaded-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-top: 10px;
}

.uploaded-item {
  position: relative;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--paper);
}

.uploaded-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.uploaded-item button {
  position: absolute;
  right: 3px;
  top: 3px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: rgba(23, 20, 15, 0.72);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 10px;
  opacity: 0;
  transition: opacity 0.2s;
}

.uploaded-item:hover button {
  opacity: 1;
}

.text-preset .t-label.big {
  font-weight: 800;
  font-size: 20px;
}

.text-preset .t-label.mid {
  font-weight: 600;
  font-size: 14px;
}

.text-preset .t-label.sm {
  font-size: 12px;
}

.text-preset .t-label.en {
  font-weight: 800;
  letter-spacing: 0.05em;
  font-size: 14px;
}

.shape-btn .shape-ico.rect {
  width: 22px;
  height: 16px;
  border: 1.5px solid var(--ink);
}

.shape-btn .shape-ico.circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
}

.shape-btn .shape-ico.line {
  width: 22px;
  height: 0;
  border-top: 1.5px solid var(--ink);
}

.shape-btn .shape-ico.badge {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px dashed var(--ink);
}

.props-panel .ant-input,
.props-panel .ant-input-number,
.props-panel .ant-select,
.props-panel .ant-picker {
  width: 100%;
}

.props-panel .ant-input-number,
.p-row .ant-input-number {
  width: 100%;
}

.props-panel .ant-color-picker-trigger {
  width: 100%;
  justify-content: flex-start;
  border-radius: 7px;
  border-color: var(--line);
  height: 32px;
  padding: 0 8px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  text-transform: uppercase;
}

.p-check-box {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 9px;
  background: var(--paper-2);
  height: 32px;
}

.order-card .ant-btn {
  width: 100%;
}

.settings-order .order-card {
  background: var(--paper-2);
}
