/* Commerce is additive. Studio geometry and preview styling remain in their own modules. */
#commerce-editor-account {
  display: contents;
}
.commerce-table-wrap {
  overflow-x: auto;
}
.commerce-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.commerce-table-wrap th,
.commerce-table-wrap td {
  text-align: left;
  padding: 10px;
  border-bottom: 1px solid #363e2c;
}
.commerce-size-row {
  padding: 12px 0;
  border-bottom: 1px solid #363e2c;
}
.commerce-order-line {
  border-top: 1px solid #363e2c;
  margin-top: 12px;
  padding-top: 8px;
}
.commerce-embroidery-comparison figure {
  margin: 0;
}
.commerce-embroidery-comparison figcaption {
  margin-bottom: 8px;
  font-weight: 700;
}
.commerce-embroidery-comparison img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: #ebe9e1;
  border-radius: 8px;
}
.commerce-page {
  --commerce-paper: #edece4;
  --commerce-soft: #b5b8ab;
}
.commerce-mode {
  padding: 9px 22px;
  text-align: center;
  background: #c0f56a;
  color: #20241a;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.commerce-header {
  max-width: 1600px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 34px;
  min-height: 94px;
  padding: 18px 4vw;
  border-bottom: 1px solid var(--line);
}
.commerce-header .wordmark {
  font-size: 34px;
  white-space: nowrap;
}
.commerce-header nav {
  display: flex;
  gap: 24px;
  flex: 1;
  flex-wrap: wrap;
}
.commerce-header nav a {
  font-size: 13px;
  color: var(--muted);
}
.commerce-header nav a[aria-current='page'] {
  color: var(--lime);
}
.commerce-account {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 12px;
}
.commerce-account select,
.commerce-language {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px;
}
.commerce-account option {
  background: var(--panel);
}
.commerce-main {
  max-width: 1360px;
  min-height: 65vh;
  margin: auto;
  padding: 54px 4vw 80px;
}
.commerce-main h1 {
  font-size: clamp(36px, 5.3vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.055em;
  margin: 14px 0 25px;
}
.commerce-main h2 {
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin: 0 0 18px;
}
.commerce-main h3 {
  font-size: 20px;
  letter-spacing: -0.02em;
  margin: 0 0 9px;
}
.commerce-main p {
  max-width: 690px;
}
.commerce-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--lime);
}
.commerce-lead {
  color: #b9bdaf;
  line-height: 1.75;
  font-size: 16px;
}
.commerce-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 58px;
  padding-bottom: 58px;
}
.commerce-hero h1 em {
  font-family: Georgia, serif;
  font-weight: 400;
  color: var(--lime);
}
.commerce-hero-photo {
  background: #e2e0d9;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
}
.commerce-hero-photo img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}
.commerce-caption {
  font-size: 11px;
  line-height: 1.5;
  color: #65675c;
  padding: 12px 16px;
  margin: 0;
  background: #edede6;
}
.commerce-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 22px;
}
.commerce-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 18px;
  border-radius: 8px;
  background: var(--lime);
  color: #1b2314;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  min-height: 42px;
}
.commerce-btn.secondary {
  background: transparent;
  color: var(--ink);
  border-color: #4c5141;
}
.commerce-btn.small {
  padding: 7px 12px;
  min-height: 34px;
  font-size: 12px;
}
.commerce-btn.danger {
  background: #492d2b;
  color: #f9cfca;
}
.commerce-btn:disabled {
  opacity: 0.46;
}
.commerce-link {
  color: var(--lime);
  text-decoration: underline;
  text-underline-offset: 4px;
  font-size: 13px;
  padding: 5px 0;
}
.commerce-note {
  padding: 17px 20px;
  border: 1px solid #484d3c;
  border-radius: 10px;
  color: #c9cdbd;
  background: #22271e;
  font-size: 13px;
  line-height: 1.65;
  margin: 22px 0;
}
.commerce-note strong {
  color: var(--ink);
}
.commerce-note.warning {
  border-color: #736347;
  background: #2c281e;
  color: #ead8b4;
}
.commerce-section {
  padding-top: 38px;
  border-top: 1px solid var(--line);
  margin-top: 20px;
}
.commerce-section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-end;
  margin-bottom: 25px;
}
.commerce-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.commerce-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 13px;
  overflow: hidden;
  background: var(--panel);
}
.commerce-card-media {
  width: 100%;
  aspect-ratio: 1;
  background: #e2e2dc;
  overflow: hidden;
}
.commerce-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.commerce-card:hover .commerce-card-media img {
  transform: scale(1.025);
}
.commerce-card-content {
  padding: 21px;
}
.commerce-card-content p {
  color: var(--muted);
  font-size: 13px;
  margin: 8px 0 12px;
}
.commerce-card-content .commerce-actions {
  margin-top: 15px;
}
.commerce-pill {
  display: inline-block;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 700;
  border: 1px solid #4a503d;
  border-radius: 50px;
  color: #c0caaf;
}
.commerce-price {
  font-size: 20px;
  font-weight: 700;
}
.commerce-muted {
  color: var(--muted);
  font-size: 13px;
}
.commerce-product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 50px;
}
.commerce-product-photo {
  border-radius: 15px;
  width: 100%;
  background: #e3e3dd;
}
.commerce-form {
  display: grid;
  gap: 18px;
}
.commerce-form label {
  display: grid;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #d5d8cd;
}
.commerce-form input,
.commerce-form select,
.commerce-form textarea {
  min-width: 0;
  width: 100%;
  background: #151813;
  border: 1px solid #454b3b;
  border-radius: 7px;
  padding: 11px;
  color: var(--ink);
}
.commerce-form textarea {
  min-height: 120px;
}
.commerce-checkout-consent {
  margin-top: 22px;
  display: grid;
  gap: 12px;
}
.commerce-checkout-consent label {
  display: flex;
  gap: 10px;
  align-items: start;
  font-size: 13px;
}
.commerce-checkout-consent input {
  margin-top: 4px;
  flex-shrink: 0;
  accent-color: var(--lime);
}
.commerce-form input[type='checkbox'] {
  width: 20px;
  height: 20px;
  accent-color: var(--lime);
}
.commerce-form fieldset {
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  gap: 12px;
  min-width: 0;
}
.commerce-form option {
  background: #151813;
}
.commerce-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.commerce-specs {
  margin: 28px 0;
  border-top: 1px solid var(--line);
}
.commerce-specs details {
  border-bottom: 1px solid var(--line);
  padding: 15px 0;
}
.commerce-specs summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}
.commerce-specs p {
  font-size: 13px;
  color: var(--muted);
  white-space: pre-line;
}
.commerce-empty {
  padding: 42px;
  border: 1px dashed #555b47;
  border-radius: 13px;
  background: #1b1e17;
}
.commerce-design-icon {
  display: grid;
  place-items: center;
  aspect-ratio: 1.55;
  background: #e9e7db;
  color: #7b896a;
  font-size: 55px;
}
.commerce-list {
  display: grid;
  gap: 14px;
}
.commerce-row {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 21px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  min-width: 0;
}
.commerce-row > div {
  min-width: 0;
}
.commerce-row h3,
.commerce-row p {
  overflow-wrap: anywhere;
}
.commerce-row p {
  margin: 6px 0;
}
.commerce-status-grid {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 13px 0;
}
.commerce-footer {
  border-top: 1px solid var(--line);
  padding: 30px 4vw;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  color: var(--muted);
  font-size: 12px;
}
.commerce-footer nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.commerce-toast {
  position: fixed;
  z-index: 2000;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  max-width: min(600px, calc(100vw - 30px));
  border: 1px solid #657850;
  border-radius: 10px;
  background: #233119;
  color: #e9f4df;
  padding: 16px 22px;
  box-shadow: 0 8px 50px #0006;
  font-size: 13px;
}
.commerce-toast.error {
  border-color: #a4645b;
  background: #432b27;
}
.commerce-dialog {
  max-width: min(610px, calc(100vw - 30px));
  width: 100%;
  border: 1px solid #505943;
  border-radius: 13px;
  background: #1d2119;
  color: var(--ink);
  padding: 28px;
  max-height: 85vh;
}
.commerce-dialog::backdrop {
  background: #070a07bb;
  backdrop-filter: blur(5px);
}
.commerce-account-sheet-host {
  position: fixed;
  width: 1px;
  height: 1px;
  top: 0;
  right: 0;
  z-index: 2100;
  pointer-events: none;
}
.commerce-account-sheet-host shopify-account {
  --shopify-account-color-background: #17191d;
  --shopify-account-color-text: #f4f3ed;
  --shopify-account-color-text-subdued: #b9babf;
  --shopify-account-color-background-subdued: #21242a;
  --shopify-account-color-accent: #ced7be;
  --shopify-account-color-accent-hover: #e1e7d8;
  --shopify-account-color-accent-text: #17191d;
  --shopify-account-color-border: #41464f;
  --shopify-account-color-card-background: #21242a;
  --shopify-account-color-card-text: #f4f3ed;
  --shopify-account-color-control-background: #21242a;
  --shopify-account-color-control-text: #f4f3ed;
  --shopify-account-font-body: 'Inter', Arial, sans-serif;
  --shopify-account-font-heading: 'Inter', Arial, sans-serif;
  --shopify-account-radius-base: 10px;
  --shopify-account-dialog-position-top: 72px;
  pointer-events: auto;
}
.commerce-account-sheet-host shopify-account::part(signed-out-avatar) {
  visibility: hidden;
  pointer-events: none;
}
.commerce-dialog h2 {
  margin: 0 0 20px;
  font-size: 26px;
  letter-spacing: -0.035em;
}
.commerce-dialog p {
  line-height: 1.65;
}
.commerce-dialog pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 11px;
  max-height: 330px;
  overflow: auto;
}
.commerce-loading {
  color: var(--muted);
  padding: 35px 0;
}
.commerce-status-pending .v-preview-footer > :first-child,
.commerce-status-pending #add-cart,
.commerce-status-pending #open-cart {
  display: none !important;
}
.commerce-editor-bar {
  border: 1px solid #535c40;
  background: #20271a;
  padding: 15px 18px;
  border-radius: 10px;
  display: flex;
  gap: 13px;
  align-items: center;
  flex-wrap: wrap;
  margin: 0 0 18px;
}
.commerce-editor-bar label {
  font-size: 11px;
  color: #c7d0ba;
  display: grid;
  gap: 3px;
}
.commerce-editor-bar input {
  background: #151813;
  color: var(--ink);
  border: 1px solid #535d44;
  border-radius: 6px;
  padding: 7px 9px;
  width: 210px;
  max-width: 100%;
}
.commerce-editor-bar .commerce-save-state {
  flex: 1;
  min-width: 170px;
  font-size: 12px;
  color: #c7d0ba;
}
.commerce-editor-bar .commerce-actions {
  margin: 0;
}
.commerce-conflict {
  flex-basis: 100%;
  color: #f0d7a8;
  padding: 12px;
  border: 1px solid #756445;
  border-radius: 7px;
  font-size: 13px;
}
.commerce-customer #save-project,
.commerce-customer #save-project-mobile,
.commerce-customer #export-png,
.commerce-customer #export-svg,
.commerce-customer #export-dpi,
.commerce-customer #open-cart,
.commerce-customer #add-to-cart,
.commerce-customer #draft-banner {
  display: none !important;
}
.commerce-customer .v-export-row {
  display: none;
}
.commerce-customer .v-preview-footer,
.commerce-customer .faq-section,
.commerce-customer #how,
.commerce-customer .v-below,
.commerce-customer .v-production p:last-child {
  display: none;
}
.commerce-customer.commerce-preview .v-preview-footer {
  display: flex;
  justify-content: flex-end;
}
.commerce-editor-note {
  margin: 0;
  font-size: 11px;
  color: #b5bea7;
  flex-basis: 100%;
}
@media (max-width: 1050px) {
  .commerce-header {
    gap: 20px;
    flex-wrap: wrap;
  }
  .commerce-header nav {
    order: 3;
    flex-basis: 100%;
  }
  .commerce-account {
    margin-left: auto;
  }
  .commerce-hero {
    gap: 30px;
  }
  .commerce-product {
    gap: 28px;
  }
}
@media (max-width: 650px) {
  .commerce-mode {
    font-size: 10px;
    padding: 9px 12px;
  }
  .commerce-header {
    padding: 16px 20px;
    gap: 16px;
  }
  .commerce-header .wordmark {
    font-size: 29px;
  }
  .commerce-header nav {
    gap: 18px;
  }
  .commerce-account {
    gap: 7px;
  }
  .commerce-account .commerce-customer-name {
    display: none;
  }
  .commerce-main {
    padding: 33px 20px 52px;
  }
  .commerce-hero,
  .commerce-product {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .commerce-hero {
    padding-bottom: 30px;
  }
  .commerce-hero-photo {
    max-width: 420px;
  }
  .commerce-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .commerce-grid .commerce-card-media {
    aspect-ratio: 1.2;
  }
  .commerce-row {
    flex-direction: column;
    gap: 10px;
    padding: 18px;
  }
  .commerce-empty {
    padding: 26px;
  }
  .commerce-form-grid {
    grid-template-columns: 1fr;
  }
  .commerce-section-head {
    display: block;
  }
  .commerce-footer {
    padding: 26px 20px;
  }
  .commerce-editor-bar {
    padding: 12px;
  }
  .commerce-editor-bar > label {
    flex: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .commerce-card-media img {
    transition: none;
  }
}
.biw-product-profile {
  padding: 16px 22px;
  border-top: 1px solid var(--line, #303030);
  border-bottom: 1px solid var(--line, #303030);
  background: var(--panel2, #181818);
  color: var(--ink, #f5f5f2);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 1fr);
  gap: 10px 24px;
  scroll-margin-top: 20px;
}
.biw-product-profile p {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.5;
}
.biw-profile-selectors {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.biw-profile-selectors label {
  display: grid;
  gap: 5px;
  flex: 1;
  font-size: 12px;
}
.biw-profile-selectors select {
  width: 100%;
  min-width: 80px;
  padding: 9px;
  border: 1px solid var(--bi-border, #656565);
  border-radius: 7px;
  background: var(--bi-control, #191919);
  color: var(--ink, #f5f5f2);
}
.biw-profile-note {
  grid-column: 1 / -1;
}
.biw-product-information {
  min-width: 0;
  border-top: 1px solid var(--line, #303030);
  padding: 16px 22px;
  color: var(--ink, #f5f5f2);
  font-size: 12px;
}
.biw-product-information[hidden] {
  display: none;
}
.biw-product-information summary {
  cursor: pointer;
  padding: 5px 0;
  font-weight: 650;
}
.biw-product-information h3 {
  font-size: 13px;
  margin: 18px 0 6px;
}
.biw-info-unit {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}
.biw-info-unit select {
  background: var(--bi-control, #191919);
  color: inherit;
  border: 1px solid var(--bi-border, #656565);
  border-radius: 6px;
  padding: 8px;
}
.biw-product-information table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-variant-numeric: tabular-nums;
}
.biw-product-information caption {
  text-align: left;
  font-weight: 650;
  padding-bottom: 8px;
}
.biw-product-information th,
.biw-product-information td {
  padding: 9px 5px;
  border-bottom: 1px solid var(--line, #303030);
  text-align: right;
}
.biw-product-information th:first-child {
  text-align: left;
}
.biw-product-information tr.is-selected {
  background: #33332a;
}
.biw-info-model {
  font-weight: 650;
}
.biw-info-selected {
  font-weight: 400;
  font-size: 10px;
}
.biw-info-source a {
  color: inherit;
  text-underline-offset: 3px;
}
.biw-profile-transfer {
  display: flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
  padding: 16px 22px;
  border-top: 1px solid var(--line, #303030);
  color: var(--ink, #f5f5f2);
}
.biw-profile-transfer label {
  display: grid;
  gap: 5px;
  font-size: 12px;
}
.biw-profile-transfer select {
  padding: 8px;
  border: 1px solid var(--bi-border, #656565);
  border-radius: 7px;
  background: var(--bi-control, #191919);
  color: var(--ink, #f5f5f2);
}
.biw-profile-transfer span {
  font-size: 11px;
  color: var(--muted, #ababab);
  flex: 1;
  min-width: 180px;
}
.biw-profile-note.is-warning {
  color: #ffc079;
  font-weight: 600;
}
.biw-profile-selectors[hidden],
.biw-profile-selectors label[hidden] {
  display: none;
}
@media (max-width: 700px) {
  .biw-product-profile,
  .biw-profile-transfer,
  .biw-product-information {
    grid-template-columns: 1fr;
    padding: 14px;
  }
}
