/* Store-style choice cards use the seller's actual brand and catalogue. */
.style-preset-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.style-preset-grid button {
  min-width: 0;
  min-height: 300px;
  padding: 12px;
  gap: 10px;
  border-radius: 2px;
  background: #0a0a0d;
}
.style-preset-grid button:hover,
.style-preset-grid button.active {
  background: #121019;
}
.style-preset-grid button:focus-visible {
  outline: 2px solid #a99aff !important;
  outline-offset: 3px !important;
}
.style-preset-grid button strong { font-size: 14px; }
.style-preset-grid button small { color: #a6a2af; font-size: 11px; }
.style-preset-grid .style-preset-scene {
  position: relative;
  display: flex;
  width: 100%;
  height: 205px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.13);
  background: #08080b;
  color: #f3f1f7;
  text-align: left;
}
.preset-mini-bar {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 30px;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  background: rgba(0,0,0,.44);
}
.preset-mini-logo {
  display: grid;
  width: 19px;
  height: 19px;
  flex: none;
  place-items: center;
  overflow: hidden;
  border-radius: 2px;
  color: var(--preset-ink, #fff);
  background: var(--preset-accent);
  font-size: 8px;
  font-weight: 700;
}
.preset-mini-logo img { width: 100%; height: 100%; object-fit: cover; }
.preset-mini-logo b { font-size: 8px; }
.preset-mini-bar > b {
  min-width: 0;
  overflow: hidden;
  color: rgba(255,255,255,.9);
  font-size: 10px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.preset-mini-nav {
  width: 34px;
  height: 9px;
  margin-left: auto;
  border: 1px solid rgba(255,255,255,.35);
}
.preset-mini-hero {
  display: grid;
  gap: 4px;
  padding: 13px 16px 8px;
}
.preset-mini-hero small {
  color: var(--preset-accent);
  font-size: 8px;
  letter-spacing: .13em;
}
.preset-mini-hero strong {
  overflow: hidden;
  font-size: 20px;
  font-weight: 620;
  letter-spacing: -.035em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.preset-mini-hero em {
  display: -webkit-box;
  overflow: hidden;
  color: rgba(255,255,255,.62);
  font-size: 9px;
  font-style: normal;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.preset-mini-products {
  display: grid;
  min-height: 0;
  flex: 1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-content: start;
  gap: 8px;
  padding: 4px 12px 12px;
}
.preset-mini-product { display: grid; min-width: 0; align-content: start; gap: 4px; }
.preset-mini-art {
  display: grid;
  width: 100%;
  aspect-ratio: 1.45;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  color: var(--preset-accent);
  background: color-mix(in srgb, var(--preset-accent) 16%, #17171b);
}
.preset-mini-art img { width: 100%; height: 100%; object-fit: cover; }
.preset-mini-art b { font-size: 16px; font-weight: 600; }
.preset-mini-product > b,
.preset-mini-product > small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.preset-mini-product > b { color: rgba(255,255,255,.9); font-size: 9px; font-weight: 600; }
.preset-mini-product > small { color: rgba(255,255,255,.64); font-size: 8px; }
.preset-empty {
  grid-column: 1 / -1;
  align-self: center;
  padding: 13px;
  border: 1px dashed rgba(255,255,255,.2);
  color: rgba(255,255,255,.65);
  font-size: 10px;
}
.style-preset-scene[data-catalog="compact"] .preset-mini-products { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 6px; }
.style-preset-scene[data-catalog="compact"] .preset-mini-art { aspect-ratio: 1.5; }
.style-preset-scene[data-catalog="editorial"] .preset-mini-hero { justify-items: center; text-align: center; }
.style-preset-scene[data-catalog="editorial"] .preset-mini-products { grid-template-columns: repeat(2, minmax(0,1fr)); }
.style-preset-scene[data-catalog="editorial"] .preset-mini-art { aspect-ratio: 1.8; }
.style-preset-scene[data-product-count="1"] .preset-mini-products { grid-template-columns: minmax(0,1fr); }
.style-preset-scene[data-product-count="1"] .preset-mini-product { grid-template-columns: minmax(0,.9fr) minmax(0,1fr); align-items: center; column-gap: 10px; }
.style-preset-scene[data-product-count="1"] .preset-mini-art { grid-row: 1 / 3; aspect-ratio: 1.8; }
.style-preset-scene[data-product-count="2"] .preset-mini-products { grid-template-columns: repeat(2, minmax(0,1fr)); }
.style-preset-scene[data-header="centered"] .preset-mini-bar { justify-content: center; }
.style-preset-scene[data-header="centered"] .preset-mini-nav { display: none; }
.style-preset-scene[data-header="glass"] .preset-mini-bar { margin: 5px 8px 0; border: 1px solid rgba(255,255,255,.18); }
.style-preset-scene[data-font="serif"] .preset-mini-hero strong { font-family: Georgia, serif; font-weight: 500; }
.style-preset-scene[data-font="display"] .preset-mini-hero strong { font-family: Impact, sans-serif; letter-spacing: 0; }
.style-preset-grid button.active .style-preset-scene { border-color: var(--preset-accent); }
.style-preset-grid button.active .style-preset-scene::after { position: absolute; inset: 0; border: 1px solid color-mix(in srgb, var(--preset-accent) 66%, transparent); content: ""; pointer-events: none; }
.style-preset-grid button:focus-visible .style-preset-scene { outline: 0; }
@media (max-width: 1100px) {
  .style-preset-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .style-preset-grid { grid-template-columns: 1fr; }
  .style-preset-grid button { min-height: 270px; }
  .style-preset-grid .style-preset-scene { height: 180px; }
}

/* Match the public storefront's live header, content order and product cards. */
.style-preset-grid button { min-height: 360px; }
.style-preset-grid .style-preset-scene {
  height: 262px;
  border-radius: 2px;
  background: var(--preset-background, #070708);
}
.preset-store-page {
  min-height: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
  overflow: hidden;
  color: #f5f5f6;
  font-family: Inter, system-ui, sans-serif;
}
.style-preset-scene[data-font="serif"] .preset-store-page { font-family: Georgia, serif; }
.style-preset-scene[data-font="mono"] .preset-store-page { font-family: ui-monospace, monospace; }
.style-preset-scene[data-font="display"] .preset-store-page { font-family: Impact, Haettenschweiler, sans-serif; }
.preset-mini-announcement {
  min-height: 16px;
  padding: 4px 8px;
  overflow: hidden;
  color: #fff;
  background: var(--preset-accent);
  font: 600 7px/1.2 Inter, system-ui, sans-serif;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.preset-mini-bar {
  min-height: 34px;
  gap: 12px;
  border-bottom-color: rgba(255,255,255,.12);
  background: var(--preset-surface, #121216);
}
.preset-mini-brand { min-width: 0; display: flex; align-items: center; gap: 6px; }
.preset-mini-logo, .preset-mini-initial {
  width: 17px;
  height: 17px;
  flex: none;
  border-radius: 50%;
}
.preset-mini-logo { background: transparent; }
.preset-mini-initial { display: grid; place-items: center; color: rgba(255,255,255,.72); background: rgba(255,255,255,.1); font-size: 8px; }
.preset-mini-brand > b { max-width: 100px; }
.preset-mini-links { display: flex; align-items: center; gap: 9px; margin-left: auto; color: rgba(255,255,255,.62); font: 7px Inter, system-ui, sans-serif; }
.preset-mini-links i, .preset-mini-categories i, .preset-mini-actions i, .preset-mini-catalog-head > i { font-style: normal; }
.preset-mini-actions { display: flex; align-items: center; gap: 5px; }
.preset-mini-search, .preset-mini-bag { position: relative; width: 13px; height: 13px; border: 1px solid rgba(255,255,255,.38); border-radius: 50%; }
.preset-mini-search::after { position: absolute; right: -3px; bottom: -2px; width: 4px; border-top: 1px solid rgba(255,255,255,.55); content: ""; transform: rotate(45deg); }
.preset-mini-bag { width: 11px; height: 9px; margin-top: 3px; border-radius: 1px; }
.preset-mini-bag::before { position: absolute; left: 3px; top: -4px; width: 3px; height: 4px; border: 1px solid rgba(255,255,255,.38); border-bottom: 0; border-radius: 3px 3px 0 0; content: ""; }
.preset-mini-hero { min-height: 74px; gap: 3px; padding: 11px 13px 7px; }
.preset-mini-hero small { font: 600 6px/1.3 Inter, system-ui, sans-serif; letter-spacing: .11em; }
.preset-mini-hero strong { font-size: 17px; line-height: 1.08; }
.preset-mini-hero em { max-width: 88%; font-size: 7px; line-height: 1.35; -webkit-line-clamp: 1; }
.preset-mini-cta { align-self: start; margin-top: 2px; padding-bottom: 2px; border-bottom: 1px solid var(--preset-accent); color: #f1efff; font: 600 7px Inter, system-ui, sans-serif; }
.preset-mini-cta::after { display: inline-block; width: 4px; height: 4px; margin-left: 3px; border-top: 1px solid var(--preset-accent); border-right: 1px solid var(--preset-accent); content: ""; transform: translateY(-1px); }
.preset-mini-categories { display: flex; gap: 4px; padding: 3px 12px 5px; overflow: hidden; }
.preset-mini-categories i { padding: 3px 6px; overflow: hidden; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; color: rgba(255,255,255,.68); font: 6px Inter, system-ui, sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.preset-mini-catalog-head { display: flex; align-items: end; justify-content: space-between; gap: 8px; margin: 0 12px; padding: 7px 0 5px; border-bottom: 1px solid rgba(255,255,255,.12); }
.preset-mini-catalog-head > span { display: grid; gap: 2px; }
.preset-mini-catalog-head small { color: var(--preset-accent); font: 600 6px Inter, system-ui, sans-serif; }
.preset-mini-catalog-head b { font-size: 11px; font-weight: 600; }
.preset-mini-catalog-head > i { color: rgba(255,255,255,.55); font: 6px Inter, system-ui, sans-serif; }
.preset-mini-products { grid-template-columns: repeat(var(--preset-columns, 3), minmax(0,1fr)); gap: 6px; padding: 6px 12px 9px; }
.preset-mini-product { gap: 3px; }
.preset-mini-art { position: relative; aspect-ratio: 1; border-radius: var(--preset-radius, 12px); background: linear-gradient(145deg, #19191e, #0f0f12); }
.preset-mini-art img { object-fit: cover; }
.preset-mini-art > b { color: #44444e; font-size: 15px; }
.preset-mini-art > i { position: absolute; right: 4px; bottom: 4px; padding: 3px 4px; border: 1px solid rgba(255,255,255,.13); border-radius: 99px; color: #fff; background: rgba(8,8,10,.78); font: normal 5px Inter, system-ui, sans-serif; }
.preset-mini-product > b { font-size: 7px; }
.preset-mini-product > small { display: flex; justify-content: space-between; gap: 3px; font-size: 6px; }
.preset-mini-product > small i { overflow: hidden; color: rgba(255,255,255,.58); font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.preset-mini-product > small strong { color: rgba(255,255,255,.86); font-weight: 600; white-space: nowrap; }
.preset-mini-products .preset-empty { padding: 8px; border: 0; font-size: 8px; }
.style-preset-scene[data-catalog="compact"] .preset-mini-products { gap: 4px; }
.style-preset-scene[data-catalog="compact"] .preset-mini-art { aspect-ratio: 1.25; }
.style-preset-scene[data-catalog="editorial"] .preset-mini-hero { justify-items: center; text-align: center; }
.style-preset-scene[data-catalog="editorial"] .preset-mini-hero em { margin-inline: auto; }
.style-preset-scene[data-catalog="editorial"] .preset-mini-cta { justify-self: center; }
.style-preset-scene[data-catalog="editorial"] .preset-mini-products { grid-template-columns: repeat(2,minmax(0,1fr)); }
.style-preset-scene[data-catalog="editorial"] .preset-mini-art { aspect-ratio: 1.15; }
.style-preset-scene[data-catalog="editorial"] .preset-mini-catalog-head > span { align-items: center; }
.style-preset-scene[data-catalog="editorial"] .preset-mini-catalog-head { align-items: center; }
.style-preset-scene[data-header="centered"] .preset-mini-bar { justify-content: center; }
.style-preset-scene[data-header="centered"] .preset-mini-brand { position: absolute; left: 50%; transform: translateX(-50%); }
.style-preset-scene[data-header="centered"] .preset-mini-links { margin-left: 0; margin-right: auto; }
.style-preset-scene[data-header="centered"] .preset-mini-hero { text-align: center; }
.style-preset-scene[data-header="glass"] .preset-mini-bar { margin: 5px 8px 0; border: 1px solid rgba(255,255,255,.18); border-radius: var(--preset-radius, 8px); background: color-mix(in srgb,var(--preset-surface) 76%,transparent); }
.style-preset-scene[data-font="serif"] .preset-mini-hero strong { font-family: Georgia, serif; font-weight: 500; }
.style-preset-scene[data-font="display"] .preset-mini-hero strong { font-family: Impact, Haettenschweiler, sans-serif; letter-spacing: 0; }
.style-preset-scene[data-preset="boutique"] .preset-mini-art { border-radius: var(--preset-radius,20px); }
@media (max-width: 760px) {
  .style-preset-grid button { min-height: 335px; }
  .style-preset-grid .style-preset-scene { height: 230px; }
}

/* A one-product catalogue still follows the selected storefront columns. */
.style-preset-scene[data-product-count="1"] .preset-mini-products { grid-template-columns: repeat(var(--preset-columns,4),minmax(0,1fr)); }
.style-preset-scene[data-product-count="1"] .preset-mini-product { grid-template-columns: minmax(0,1fr); align-items: start; column-gap: 0; }
.style-preset-scene[data-product-count="1"] .preset-mini-art { grid-row: auto; aspect-ratio: 1; }

/* The legacy style-card skeleton targets every <i>; neutralize it inside the real preview. */
.style-preset-scene i { width: auto; height: auto; border: 0; border-radius: 0; background: none; opacity: 1; }
.style-preset-grid button { min-height: 400px; }
.style-preset-grid .style-preset-scene { height: 300px; }
.style-preset-scene .preset-mini-search { width: 13px; height: 13px; border: 1px solid rgba(255,255,255,.38); border-radius: 50%; }
.style-preset-scene .preset-mini-bag { width: 11px; height: 9px; border: 1px solid rgba(255,255,255,.38); border-radius: 1px; }
@media (max-width: 760px) {
  .style-preset-grid button { min-height: 370px; }
  .style-preset-grid .style-preset-scene { height: 270px; }
}
.style-preset-grid button { min-height: 420px; }
.style-preset-grid .style-preset-scene { height: 320px; }
@media (max-width: 760px) {
  .style-preset-grid button { min-height: 390px; }
  .style-preset-grid .style-preset-scene { height: 290px; }
}

/* Wide, quiet style choices: one preview surface, with fewer nested outlines. */
.style-preset-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.style-preset-grid button {
  min-height: 224px;
  padding: 12px;
  display: grid;
  grid-template-columns: minmax(0,1.08fr) minmax(0,.92fr);
  grid-template-rows: 1fr auto;
  align-items: end;
  gap: 5px 16px;
  border-radius: 2px;
}
.style-preset-grid .style-preset-scene {
  grid-column: 1;
  grid-row: 1 / 3;
  width: 100%;
  height: auto;
  min-height: 0;
  align-self: stretch;
  aspect-ratio: 1.55;
  border: 0;
}
.style-preset-grid button > strong,
.style-preset-grid button > small { grid-column: 2; }
.style-preset-grid button > strong { align-self: end; font-size: 16px; }
.style-preset-grid button > small { align-self: start; }
.preset-store-page { border: 0; }
.preset-mini-bar { border-bottom-color: rgba(255,255,255,.08); }
.preset-mini-art { border: 0; }
.preset-mini-catalog-head { border-bottom-color: rgba(255,255,255,.1); }
.preset-mini-hero { min-height: 0; padding: 10px 13px 7px; }
.preset-mini-hero em { -webkit-line-clamp: 2; }
.preset-mini-cta { display: none; }
@media (max-width: 760px) {
  .style-preset-grid { grid-template-columns: 1fr; }
  .style-preset-grid button { min-height: 202px; }
  .style-preset-grid .style-preset-scene { aspect-ratio: 1.45; }
}

/* Keep the entire miniature storefront legible inside each landscape choice. */
.style-preset-grid button { min-height: 206px; grid-template-rows: 1fr auto; }
.style-preset-grid button > strong { align-self: center; }
.style-preset-grid button > small { display: none; }
.style-preset-grid .style-preset-scene { min-height: 0; aspect-ratio: 1.62; }
.preset-mini-bar { min-height: 25px; gap: 6px; padding-inline: 7px; }
.preset-mini-logo, .preset-mini-initial { width: 14px; height: 14px; }
.preset-mini-brand > b { max-width: 78px; font-size: 8px; }
.preset-mini-links { gap: 6px; font-size: 6px; }
.preset-mini-actions { gap: 4px; }
.preset-mini-search { width: 10px; height: 10px; }
.preset-mini-bag { width: 9px; height: 7px; }
.preset-mini-hero { padding: 6px 9px 4px; gap: 2px; }
.preset-mini-hero strong { font-size: 14px; }
.preset-mini-hero em { font-size: 6px; -webkit-line-clamp: 1; }
.preset-mini-catalog-head { margin-inline: 9px; padding: 4px 0 3px; }
.preset-mini-catalog-head small { font-size: 5px; }
.preset-mini-catalog-head b { font-size: 9px; }
.preset-mini-catalog-head > i { font-size: 5px; }
.preset-mini-products { gap: 4px; padding: 4px 9px 6px; }
.preset-mini-art { max-height: 52px; aspect-ratio: 1.25; }
.preset-mini-art > i { right: 3px; bottom: 3px; padding: 2px 3px; font-size: 4px; }
.preset-mini-product > b { font-size: 6px; }
.preset-mini-product > small { font-size: 5px; }
.style-preset-scene[data-catalog="editorial"] .preset-mini-art { aspect-ratio: 1.45; }
@media (max-width: 760px) {
  .style-preset-grid button { min-height: 190px; }
  .style-preset-grid .style-preset-scene { aspect-ratio: 1.5; }
}

/* Let each style name preview the same type family as its storefront. */
.style-preset-grid button[data-store-preset="minimal"] > strong,
.style-preset-grid button[data-store-preset="catalogue"] > strong,
.style-preset-grid button[data-store-preset="services"] > strong {
  font-family: Inter, system-ui, sans-serif;
}
.style-preset-grid button[data-store-preset="editorial"] > strong,
.style-preset-grid button[data-store-preset="boutique"] > strong {
  font-family: Georgia, serif;
}
.style-preset-grid button[data-store-preset="drop"] > strong {
  font-family: Impact, Haettenschweiler, sans-serif;
  letter-spacing: 0;
}

/* Store logos are square marks without a tile or frame. */
.store-brand-logo,
.brand-logo-preview,
.designer-logo,
.preset-mini-logo,
.preset-mini-initial {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}
.store-brand-logo img,
.brand-logo-preview img,
.designer-logo img,
.preset-mini-logo img { object-fit: contain; }
.brand-logo-preview { width: 54px; height: 54px; }
.designer-logo { width: 32px; height: 32px; }
.preset-mini-store-banner {
  display: block;
  width: 100%;
  height: 36px;
  flex: none;
  overflow: hidden;
}
.preset-mini-store-banner img { display: block; width: 100%; height: 100%; object-fit: cover; }
.store-banner-row { grid-template-columns: minmax(0, 1fr); }
.store-banner-row > label { grid-column: 1 / -1; }
.store-banner-drop {
  position: relative;
  min-height: 150px;
  display: block;
  overflow: hidden;
  border: 1px dashed var(--pro-line-strong, #45434e);
  border-radius: 8px;
  background: #09090b;
  transition: border-color .15s ease, background .15s ease;
}
.store-banner-drop.is-dragging,
.store-banner-drop:focus-within { border-color: #a99aff; background: #111019; }
.store-banner-drop > input[type="file"] {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.store-banner-drop > span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 7px;
  color: #b8b4cb;
  font-size: 12px;
  pointer-events: none;
}
.store-banner-drop > span small { color: #85828d; font-size: 10px; }
.store-banner-drop > span img { width: 100%; height: 100%; object-fit: cover; }
.store-banner-row > label > button { justify-self: start; }
