:root {
  --bg: #fffdfc;
  --panel: #ffffff;
  --ink: #221f20;
  --muted: #78706f;
  --line: #eee5e4;
  --pink: #ee748e;
  --pink-dark: #d94f73;
  --mint: #a7d8ce;
  --sky: #a9c8e8;
  --cream: #fff7ee;
  --shadow: 0 14px 34px rgba(80, 45, 48, .12);
  --radius: 22px;
  --sheet-radius: 26px;
  --sheet-bg: linear-gradient(180deg, #fffdfb 0%, #ffffff 54%, #fff7ee 100%);
  --surface-soft: #fffaf5;
  --surface-border: rgba(231, 220, 210, .92);
  --overlay-bg: rgba(35, 25, 26, .34);
  --preview-paper-bg: #fff5f3;
  --preview-paper-frame: url("../assets/img/preview-paper-doodles.png");
  --preview-paper-frame-size: 80%;
  --interactive-ease: cubic-bezier(.22, 1, .36, 1);
  --header-h: 52px;
  --bottom-h: 62px;
  --dock-product-h: 40px;
  --dock-tabs-h: 52px;
  --dock-content-min: clamp(104px, 15svh, 140px);
  --dock-max-h: none;
  --mobile-dock-tabs-h: 40px;
  --mobile-dock-body-h: 112px;
  --mobile-dock-helper-h: 0px;
  --mobile-dock-price-h: 56px;
  --mobile-dock-h: calc(var(--mobile-dock-tabs-h) + var(--mobile-dock-body-h) + var(--mobile-dock-helper-h) + var(--mobile-dock-price-h));
  --mobile-preview-max: min(56dvh, 60svh);
  --mobile-checkout-min: calc(var(--mobile-dock-price-h) + env(safe-area-inset-bottom, 0px) + 4px);
  --control-tab-h: 42px;
  --control-tab-w: 54px;
  --control-tab-icon: 20px;
  --control-tab-label: 9px;
  --control-tab-radius: 13px;
  --control-tab-gap: 5px;
  --preview-product-scale: 0.8;
  --mobile-touch: 48px;
  --app-vh: 100dvh;
  --customizer-vh: calc(var(--app-vh, 100dvh) - var(--header-h) - env(safe-area-inset-top));
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: "Nunito", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
  touch-action: manipulation;
}
body.modal-open { overflow: hidden; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.skip-link { position: fixed; left: 8px; top: -80px; z-index: 50; background: var(--ink); color: #fff; padding: 10px; }
.skip-link:focus { top: 8px; }

.app-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 30;
  height: calc(var(--header-h) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 16px 0;
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  background: rgba(255, 253, 252, .92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(238, 229, 228, .72);
}
.pwa-standalone .app-header {
  background: rgba(255, 253, 252, .96);
}
.pwa-standalone .install-prompt {
  display: none !important;
}
.brand-wrap {
  justify-self: center;
  text-align: center;
  min-width: 0;
}
.brand {
  display: inline-block;
  color: var(--ink);
  text-decoration: none;
  font-size: 22px;
  line-height: 1.05;
  font-weight: 600;
}
.brand span { color: var(--pink); }
.header-step {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 52vw;
}
body.customizer-mode .header-step {
  display: none;
}
.desktop-nav { display: none; }
.icon-button, .cart-button, .floating-action, .close-button, .back-button {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--ink);
  display: grid;
  place-items: center;
}
.icon-button span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  margin: 2px 0;
  border-radius: 2px;
}
.cart-button { position: relative; justify-self: end; }
.cart-button svg { width: 27px; height: 27px; }
.cart-button strong, .bottom-nav strong {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  display: inline-grid;
  place-items: center;
  font-size: 11px;
}
.cart-button strong { position: absolute; right: 0; top: 5px; }

main { padding-top: calc(var(--header-h) + env(safe-area-inset-top)); padding-bottom: env(safe-area-inset-bottom); }
.app-section { display: none; }
.app-section.is-active { display: block; }

.customizer-screen {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  height: calc(var(--app-vh, 100svh) - var(--header-h) - env(safe-area-inset-top));
  min-height: 0;
  overflow: hidden;
}
.customizer-preview {
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 2px 8px 4px;
  overflow: hidden;
}
.preview-disclaimer,
.embroidery-disclaimer.preview-disclaimer {
  margin: 0;
  padding: 0;
  font-size: 10px;
  line-height: 1.35;
  color: #9a9193;
  text-align: center;
  background: transparent;
  border: 0;
}
.customizer-preview [data-preview-disclaimer],
.preview-carousel-shell [data-preview-disclaimer] {
  width: 100%;
  max-width: none;
  flex: none;
  padding: 4px 12px 10px;
}
.size-sheet-disclaimer {
  text-align: left;
  font-size: 11px;
  color: #8a8082;
  background: transparent;
  border: 0;
  padding: 0;
}
.embroidery-disclaimer strong {
  color: #8a8082;
  font-weight: 700;
}
.customizer-dock {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  grid-template-areas:
    "tools"
    "checkout";
  max-height: var(--dock-max-h);
  min-height: 0;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 247, 249, .98), #fff);
  border-top: 1px solid var(--line);
  box-shadow: 0 -12px 32px rgba(66, 42, 40, .08);
  border-radius: 20px 20px 0 0;
}
.tools-pane {
  grid-area: tools;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.checkout-pane {
  grid-area: checkout;
  flex-shrink: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.product-tabs {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 6px 8px 2px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.product-tabs::-webkit-scrollbar, .control-tabs::-webkit-scrollbar { display: none; }
.product-tab {
  flex: 0 0 calc((100% - 15px) / 4);
  min-width: 52px;
  border: 1px solid transparent;
  background: transparent;
  min-height: 40px;
  border-radius: 12px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 2px;
  color: #2a2526;
  touch-action: manipulation;
}
.product-tab svg { width: 20px; height: 20px; }
.product-tab span { font-size: 9px; font-weight: 900; white-space: nowrap; line-height: 1.1; }
.product-tab.is-active { border-color: #f2a3b2; background: #fff5f7; color: var(--pink-dark); }

.desktop-product-bar { display: none; }

.preview-carousel-shell {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  display: grid;
  place-items: center;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 18px 42px rgba(74, 47, 51, .08);
  overflow: hidden;
}
.preview-carousel-shell::before {
  content: none;
}
.preview-product-label {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  margin: 0;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 800;
  color: #8a7779;
  letter-spacing: 0.01em;
  background: rgba(255, 255, 255, .82);
  border: 1px solid rgba(238, 229, 228, .92);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  pointer-events: none;
  white-space: nowrap;
}
.preview-carousel {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  touch-action: pan-x;
}
.preview-carousel::-webkit-scrollbar { display: none; }
.preview-carousel-track {
  display: flex;
  height: 100%;
  min-height: 0;
}
.preview-carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  min-height: 0;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  display: grid;
  grid-template-rows: 1fr;
  place-items: stretch;
  padding: 0;
}
.preview-carousel-slide .product-stage {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
}
.preview-carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 8;
  display: grid;
  justify-items: center;
  gap: 4px;
  min-width: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: rgba(74, 47, 51, .55);
  touch-action: manipulation;
}
.preview-carousel-nav.is-disabled,
.preview-carousel-nav:disabled {
  opacity: .34;
  pointer-events: none;
}
.preview-carousel-nav-arrow {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(238, 116, 142, .35);
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 3px 10px rgba(55, 39, 35, .1);
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  color: var(--pink-dark);
}
.preview-carousel-nav-label {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  line-height: 1.15;
  max-width: 42px;
  text-align: center;
  color: rgba(74, 47, 51, .42);
  pointer-events: none;
}
.preview-carousel-nav--prev { left: 2px; }
.preview-carousel-nav--next { right: 2px; }
.preview-carousel-nav[hidden] { display: none !important; }
.preview-carousel-nav:hover .preview-carousel-nav-arrow {
  background: #fff5f7;
  border-color: var(--pink-dark);
}
.preview-carousel-nav:active .preview-carousel-nav-arrow {
  transform: scale(.96);
}
.preview-carousel-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  z-index: 3;
  padding: 0 12px;
  pointer-events: none;
}
body.customizer-mode:not([data-editing-cart]) .preview-product-label {
  display: none;
}
body.customizer-mode:not([data-editing-cart]) [data-preview-disclaimer] {
  display: none;
}
.preview-product-pill {
  pointer-events: auto;
  border: 1px solid rgba(238, 229, 228, .95);
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  color: #6f5f62;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.1;
  min-height: 28px;
  padding: 5px 12px;
  touch-action: manipulation;
  transition: background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}
.preview-product-pill.is-active {
  color: var(--pink-dark);
  border-color: rgba(238, 116, 142, .55);
  background: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(238, 116, 142, .34);
}
.preview-product-pill:active {
  transform: scale(.98);
}

.product-stage {
  position: relative;
  width: calc(100% - 16px);
  height: calc(100% - 16px);
  max-width: calc(100% - 16px);
  max-height: calc(100% - 16px);
  display: grid;
  place-items: center;
  margin: 8px;
  border-radius: 18px;
  background-color: var(--preview-paper-bg);
  background-image: var(--preview-paper-frame);
  background-repeat: no-repeat;
  background-position: center;
  background-size: var(--preview-paper-frame-size);
  box-shadow:
    inset 0 0 0 1px rgba(226, 216, 213, .95),
    inset 0 18px 34px rgba(255, 255, 255, .72),
    0 10px 28px rgba(80, 45, 48, .08);
  overflow: hidden;
}
.product-stage::before,
.product-stage::after {
  content: none;
}
.product-tab-art {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
}
.product-stage > .product-svg {
  position: relative;
  z-index: 1;
  width: calc(100% * var(--preview-product-scale));
  height: calc(100% * var(--preview-product-scale));
  max-width: calc(100% * var(--preview-product-scale));
  max-height: calc(100% * var(--preview-product-scale));
  display: block;
  overflow: hidden;
}
.product-svg {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  display: block;
  overflow: hidden;
}
.product-svg .product-art { pointer-events: none; }
.embroidery-box {
  fill: rgba(34, 31, 32, .035);
  stroke: rgba(120, 112, 111, .46);
  stroke-width: 1.2;
  stroke-dasharray: 5 4;
  vector-effect: non-scaling-stroke;
}
.preview-name { dominant-baseline: middle; }
.preview-name--placeholder { opacity: .38; }
.text-area.is-text-placeholder {
  color: #9a9193;
  font-style: italic;
}
.text-area[readonly] {
  cursor: text;
}
.preview-symbol { dominant-baseline: middle; }
.sparkle {
  position: absolute;
  color: #e6a1a7;
  font-size: 20px;
  animation: floaty 4.5s ease-in-out infinite;
}
.s1 { left: 8%; top: 28%; }
.s2 { right: 10%; top: 44%; animation-delay: .7s; }
.s3 { right: 11%; bottom: 15%; animation-delay: 1.2s; color: #dca39b; }
.thread {
  position: absolute;
  width: 74px;
  height: 28px;
  border: 2px dashed rgba(244,127,152,.45);
  border-left: 0;
  border-bottom: 0;
  border-radius: 100%;
  animation: stitch 2.8s ease-in-out infinite;
}
.thread-a { left: 4%; bottom: 17%; }
.thread-b { right: 6%; top: 28%; transform: scaleX(-1); animation-delay: .9s; }
.floating-action {
  position: absolute;
  top: 18%;
  z-index: 2;
  border-radius: 999px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 8px 20px rgba(55, 39, 35, .13);
  font-size: 24px;
}
.floating-action.left { left: 16px; }
.floating-action.right { right: 16px; }
@keyframes floaty { 50% { transform: translateY(-8px); opacity: .65; } }
@keyframes stitch { 50% { transform: translateX(8px); opacity: .35; } }

.price-card {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px max(8px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, .98);
}
.price-card-summary span { display: block; color: var(--muted); font-size: 11px; margin-bottom: 1px; font-weight: 800; }
.price-card-summary strong { font-size: 22px; line-height: 1; display: block; }
.price-trust {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  font-weight: 700;
  color: #5a8f6b;
  line-height: 1.3;
}
.price-card .primary-button {
  flex: 0 1 auto;
  min-width: 136px;
  max-width: 54%;
  min-height: 44px;
  padding-inline: 14px;
  font-size: 14px;
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(235, 95, 128, .2);
}
.primary-button, .secondary-button {
  min-height: 52px;
  border: 0;
  border-radius: 16px;
  padding: 0 18px;
  font-weight: 800;
}
.primary-button {
  background: linear-gradient(135deg, #ff9aac, #ea5578);
  color: #fff;
  box-shadow: 0 12px 24px rgba(235, 95, 128, .24);
  transition: transform .18s var(--interactive-ease), box-shadow .18s var(--interactive-ease), filter .18s ease;
}
.secondary-button {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  transition: transform .18s var(--interactive-ease), border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.primary-button.full, .secondary-button.full { width: 100%; }
.primary-button:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }
@media (prefers-reduced-motion: no-preference) {
  .primary-button:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(235, 95, 128, .32);
    filter: saturate(1.06);
  }
  .primary-button:not(:disabled):active { transform: translateY(0) scale(.98); }
  .secondary-button:hover {
    transform: translateY(-1px);
    border-color: rgba(238, 116, 142, .45);
    box-shadow: 0 8px 18px rgba(235, 95, 128, .1);
    background: #fffafb;
  }
  .secondary-button:active { transform: translateY(0) scale(.98); }
  .choice-pill,
  .symbol-choice,
  .thread-swatch,
  .garment-swatch,
  .swatch,
  .size-pill {
    transition: transform .16s var(--interactive-ease), border-color .16s ease, box-shadow .16s ease, background .16s ease;
  }
  .choice-pill:hover,
  .symbol-choice:hover,
  .thread-swatch:hover,
  .garment-swatch:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(235, 95, 128, .12);
  }
  .choice-pill:active,
  .symbol-choice:active,
  .thread-swatch:active,
  .garment-swatch:active { transform: translateY(0) scale(.97); }
  .control-tabs button:not(.is-active):hover {
    transform: translateY(-1px);
    border-color: rgba(238, 116, 142, .28);
    background: #fff;
  }
  .control-tabs button:active { transform: scale(.97); }
  .control-tabs .is-active { animation: tab-pop .32s var(--interactive-ease); }
}
@keyframes tab-pop {
  0% { transform: scale(.94); }
  70% { transform: scale(1.03); }
  100% { transform: scale(1); }
}

.control-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  overflow: visible;
}
.control-tabs {
  display: grid;
  grid-template-columns: repeat(var(--control-tab-count, 4), minmax(0, 1fr));
  gap: 8px;
  overflow: visible;
  padding: 10px 12px 10px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  background: linear-gradient(180deg, #fff7f9 0%, #fff 100%);
  border-bottom: 1px solid rgba(238, 229, 228, .85);
  flex-shrink: 0;
}
.control-toolbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0;
  padding: 4px 0;
  overflow: hidden;
  background: linear-gradient(180deg, #fff7f9 0%, #fff 100%);
  border-bottom: 1px solid rgba(238, 229, 228, .85);
  flex-shrink: 0;
}
.control-toolbar-track {
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.control-toolbar-track::-webkit-scrollbar { display: none; }
.control-toolbar-arrow {
  flex: 0 0 30px;
  width: 30px;
  height: var(--control-tab-h);
  margin: 0 4px;
  border: 1px solid rgba(238, 229, 228, .95);
  border-radius: 12px;
  background: rgba(255, 255, 255, .96);
  color: var(--pink-dark);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  touch-action: manipulation;
  transition: opacity .15s ease, visibility .15s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
  box-shadow: 0 2px 8px rgba(66, 42, 40, .05);
  z-index: 2;
}
.control-toolbar-arrow:hover:not(:disabled) {
  border-color: rgba(238, 116, 142, .5);
  background: #fff5f7;
}
.control-toolbar-arrow:active:not(:disabled) {
  transform: scale(.96);
}
.control-toolbar-arrow:disabled,
.control-toolbar-arrow[hidden] {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.control-toolbar .control-tabs {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  gap: var(--control-tab-gap);
  padding: 0 10px;
  margin: 0;
  background: none;
  border: 0;
  overflow: visible;
  min-width: min-content;
}
.control-tabs button,
.control-tabs .control-tab-action {
  border: 1px solid transparent;
  background: rgba(255, 255, 255, .72);
  border-radius: var(--control-tab-radius);
  min-height: var(--control-tab-h);
  flex: 0 0 auto;
  min-width: var(--control-tab-w);
  width: auto;
  color: #6f5f62;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 3px;
  touch-action: manipulation;
  padding: 4px 5px 5px;
  box-sizing: border-box;
  isolation: isolate;
  transition: background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}
.control-tabs .control-tab-action:active:not(:disabled) { transform: scale(.97); }
.control-tabs .control-tab-action:disabled {
  opacity: .34;
  cursor: default;
  pointer-events: none;
}
.control-tab-icon {
  width: var(--control-tab-icon);
  height: var(--control-tab-icon);
  display: block;
  flex-shrink: 0;
}
.control-tabs span {
  font-size: var(--control-tab-label);
  font-weight: 900;
  letter-spacing: .01em;
  line-height: 1.15;
  display: block;
  max-width: 100%;
  padding-bottom: 0;
}
.control-tabs .is-active {
  color: var(--pink-dark);
  background: #fff;
  border-color: rgba(238, 116, 142, .45);
  box-shadow: inset 0 0 0 1.5px rgba(238, 116, 142, .38);
}
.control-tabs .is-active .control-tab-icon { color: var(--pink-dark); }
.control-scroll-shell {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 0;
  align-items: stretch;
  overflow: hidden;
}
.control-content {
  min-height: 0;
  max-height: 116px;
  height: auto;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 10px 6px;
  position: relative;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.control-pane--wizard {
  display: grid;
  gap: 6px;
  align-content: start;
  min-width: min(100%, 100%);
}
.control-pane--wizard .field-label {
  margin: 0;
  font-size: 12px;
}
.wizard-back {
  justify-self: start;
  border: 0;
  background: transparent;
  color: var(--pink-dark);
  font-size: 13px;
  font-weight: 800;
  padding: 2px 0 4px;
  min-height: 32px;
}
.wizard-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.wizard-row--scroll {
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 2px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.wizard-row--scroll::-webkit-scrollbar { display: none; }
.wizard-row--segments {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: visible;
}
.wizard-row--segments .choice-pill { min-width: 0; width: 100%; }
.size-pill {
  flex: 0 0 auto;
  min-width: 84px;
  max-width: 120px;
  display: grid;
  gap: 2px;
  padding: 8px 10px;
  text-align: center;
  border-width: 2px;
}
.size-pill.is-selected {
  outline: none;
  border-color: var(--pink-dark);
  background: #fff5f7;
  box-shadow: 0 6px 14px rgba(235, 95, 128, .12);
}
.size-pill strong { font-size: 13px; line-height: 1.1; }
.size-pill small {
  font-size: 9px;
  font-weight: 700;
  color: var(--muted);
  line-height: 1.2;
  white-space: normal;
}
.size-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(76px, 1fr));
  gap: 8px;
  overflow: visible;
}
.size-choice-grid .size-pill {
  min-width: 0;
  max-width: none;
  width: 100%;
}
.cart-continue-button {
  margin-top: 0;
}
.control-content::-webkit-scrollbar { display: none; }
.field-label { display: block; font-size: 13px; font-weight: 800; margin: 8px 0; }
.text-input, .select-input, .number-input {
  width: 100%;
  min-height: 54px;
  border: 1px solid #e3d7d6;
  border-radius: 14px;
  padding: 0 14px;
  background: #fff;
  font-size: 16px;
}
.text-area {
  height: 42px;
  min-height: 42px;
  padding-top: 9px;
  line-height: 1.3;
  resize: none;
}
.control-pane { min-width: min(100%, 520px); }
.control-pane--text {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  align-content: start;
}
.control-pane--text .text-tools {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}
.draft-select-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 8px;
  align-items: end;
}
.draft-select-field {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.draft-select-field .field-label--mini {
  margin: 0;
  font-size: 11px;
  line-height: 1.2;
  color: #8a7779;
}
.select-input--compact {
  min-height: 44px;
  padding: 0 36px 0 12px;
  font-size: 14px;
  border-radius: 12px;
  appearance: none;
  background:
    #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238a7779' d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E") no-repeat right 12px center / 12px 8px;
}
.control-pane--product .product-meta-row {
  display: grid;
  grid-template-columns: 1fr 92px;
  gap: 8px;
  align-items: start;
}
.control-pane--product .product-options-scroll {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 84px;
  overflow-x: hidden;
  overflow-y: hidden;
  padding-bottom: 0;
}
.control-pane--product .product-choice-row {
  margin-bottom: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}
.control-pane--product .hint {
  margin: 0;
  font-size: 12px;
  white-space: nowrap;
}
.control-pane--product .field-label { margin: 0 0 4px; font-size: 12px; }
.control-pane--product .select-input,
.control-pane--product .number-input { min-height: 46px; }
.control-content:has(.text-area) .field-label { margin: 2px 0 4px; }
.control-content:has(.text-area) .hint { display: none; }
.control-content:has(.text-area) .text-tools .choice-pill {
  min-width: 72px;
  min-height: 40px;
  flex: 0 0 auto;
  font-size: 11px;
}
.hint { margin: 8px 0 0; color: #5a8f6b; font-size: 13px; }
.warning { color: #bd5b28; }
.swatches, .symbol-grid, .choice-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(48px, 1fr));
  gap: 10px;
}
.control-content .symbol-grid,
.control-content .choice-grid {
  display: grid;
  grid-auto-flow: row;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-columns: unset;
  width: 100%;
  min-width: 0;
  gap: 8px;
}
.control-content .swatches {
  display: grid;
  grid-auto-flow: row;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-auto-columns: unset;
  width: 100%;
  min-width: 0;
  gap: 8px;
}
.control-content .text-input,
.control-content .hint,
.control-content .field-label {
  width: min(540px, calc(100vw - 28px));
}
.swatches.compact { grid-template-columns: repeat(7, minmax(38px, 1fr)); }
.control-content .swatches.compact {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-auto-columns: unset;
}
.swatch, .symbol-choice, .choice-pill {
  min-height: 56px;
  min-width: 56px;
  border: 1px solid #e7dcdb;
  background: #fff;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 800;
  padding: 8px 10px;
  line-height: 1.2;
  touch-action: manipulation;
}
.symbol-choice {
  gap: 3px;
  align-content: center;
  justify-items: center;
}
.symbol-glyph {
  font-size: 22px;
  line-height: 1;
  display: grid;
  place-items: center;
}
.symbol-art {
  width: 30px;
  height: 30px;
  object-fit: contain;
  display: block;
}
.symbol-art--tinted,
.cart-symbol-mini--tinted {
  background: var(--symbol-preview-color, var(--symbol-color, var(--pink)));
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}
.symbol-choice small {
  font-size: 9px;
  font-weight: 800;
  color: #8a7779;
  line-height: 1.15;
  text-align: center;
}
.product-choice-row { margin-bottom: 8px; }
.color-pill { grid-template-columns: 18px auto; gap: 7px; }
.color-pill i {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.16);
}
.action-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.control-content .action-grid {
  grid-auto-columns: minmax(82px, 96px);
  min-width: auto;
}
.action-grid .choice-pill {
  min-height: 42px;
  font-size: 11px;
  white-space: nowrap;
  padding-inline: 4px;
}

.thread-swatches {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 6px 4px 10px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.thread-swatches::-webkit-scrollbar { display: none; }
.thread-swatch {
  flex: 0 0 auto;
  width: 78px;
  min-height: 118px;
  border: 2px solid #e7dcdb;
  border-radius: 18px;
  background: #fff;
  display: grid;
  gap: 4px;
  padding: 8px 8px 8px;
  scroll-snap-align: start;
  touch-action: manipulation;
}
.thread-swatch.is-selected {
  border-color: var(--pink-dark);
  background: #fff5f7;
  box-shadow: 0 0 0 1px rgba(242, 163, 178, .35);
}
.thread-swatch-img {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid color-mix(in srgb, var(--thread-color, #ccc) 55%, #fff);
  background:
    radial-gradient(circle at 50% 36%, color-mix(in srgb, var(--thread-color, #ccc) 36%, #fff) 0%, #fff 68%),
    var(--thread-color, #ddd);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .72),
    inset 0 -10px 16px rgba(0, 0, 0, .06);
  position: relative;
}
.thread-swatch-img::after {
  content: "";
  position: absolute;
  width: 42%;
  height: 42%;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .82);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, .12);
  opacity: .72;
  pointer-events: none;
}
.thread-swatch-img:has(img)::after {
  display: none;
}
.thread-swatch-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  position: relative;
  z-index: 1;
}
.thread-swatch-name {
  font-size: 10px;
  font-weight: 900;
  color: #3f3536;
  text-align: center;
  line-height: 1.25;
}
.thread-swatch small {
  font-size: 9px;
  font-weight: 800;
  color: #8a7779;
  text-align: center;
  line-height: 1.25;
}
.garment-swatches {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.garment-swatch {
  flex: 1 1 calc(50% - 8px);
  min-width: 120px;
  display: grid;
  gap: 6px;
  justify-items: center;
  padding: 10px 8px;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: #fff;
  touch-action: manipulation;
  box-sizing: border-box;
}
.garment-swatch.is-selected {
  outline: none;
  border-color: var(--pink-dark);
  background: #fff5f7;
  box-shadow: 0 8px 18px rgba(235, 95, 128, .12);
}
.garment-swatch-chip {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: var(--garment-color, #fff);
  border: 1px solid rgba(0, 0, 0, .12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35);
}
.garment-swatch-name {
  font-size: 12px;
  font-weight: 800;
  color: #4a3f41;
}
.control-pane--garment {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.control-pane--garment .hint {
  margin-top: 6px;
  font-size: 11px;
}
.control-pane--threads {
  width: max-content;
  min-width: 100%;
}
.control-pane--threads .field-label { margin-bottom: 6px; }
.field-label--inline { margin-top: 8px; margin-bottom: 6px; font-size: 12px; }
.font-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.font-row::-webkit-scrollbar { display: none; }
.font-row .choice-pill {
  flex: 0 0 auto;
  min-width: 92px;
  min-height: 44px;
}

.cart-thumb-preview svg,
.cart-thumb-preview .product-svg {
  width: 100%;
  height: 100%;
  max-height: 120px;
}
.cart-thread-mini {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  object-fit: cover;
  vertical-align: middle;
  border: 1px solid rgba(0, 0, 0, .12);
}
.cart-symbol-mini {
  width: 18px;
  height: 18px;
  display: inline-block;
  flex: 0 0 auto;
  vertical-align: middle;
}
.cart-production-data dd i {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  vertical-align: middle;
  margin-right: 4px;
  border: 1px solid rgba(0, 0, 0, .12);
}

@media (max-width: 420px) {
  .product-tab { min-width: 52px; min-height: 40px; }
  .stage-wrap,
  .preview-carousel-shell { width: min(94vw, 100%); }
  .price-card-summary strong { font-size: 20px; }
  .price-card .primary-button { min-width: 124px; min-height: 44px; }
  .install-prompt {
    grid-template-columns: 42px minmax(0, 1fr) auto;
  }
  .install-prompt .secondary-button { display: none; }
  .install-prompt-icon {
    width: 42px;
    height: 42px;
    border-radius: 13px;
  }
  .install-prompt small { display: none; }
  .install-prompt .primary-button { padding-inline: 10px; }
}

.dock-helper-bar {
  display: none;
}
.dock-chip {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  touch-action: manipulation;
  white-space: nowrap;
}
.dock-chip span[aria-hidden="true"] {
  font-size: 14px;
  line-height: 1;
  opacity: .85;
}
.dock-chip:active { transform: scale(.97); }

@media (max-height: 740px) and (max-width: 759px) {
  :root {
    --header-h: 50px;
    --mobile-preview-max: min(44dvh, 46svh);
    --mobile-dock-tabs-h: 38px;
    --mobile-dock-body-h: 108px;
    --mobile-dock-helper-h: 0px;
    --mobile-dock-price-h: 56px;
    --mobile-dock-h: calc(var(--mobile-dock-tabs-h) + var(--mobile-dock-body-h) + var(--mobile-dock-helper-h) + var(--mobile-dock-price-h));
  }
  .header-step { font-size: 10px; }
  .brand { font-size: 20px; }
  .floating-action { display: none; }
  body.customizer-mode .control-tabs button {
    min-height: 44px;
  }
}
.swatch span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: block;
  border: 1px solid rgba(0,0,0,.08);
}
.is-selected { outline: 2px solid var(--pink); outline-offset: 2px; }
.choice-pill.is-selected,
.symbol-choice.is-selected,
.swatch.is-selected {
  outline: none;
  border-color: var(--pink-dark);
  box-shadow: inset 0 0 0 1px rgba(217, 79, 115, .28);
}

.bottom-nav {
  display: grid;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(var(--bottom-h) + env(safe-area-inset-bottom));
  padding: 6px 8px env(safe-area-inset-bottom);
  z-index: 28;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(255,255,255,.96);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.menu-sheet[hidden] { display: none; }
.menu-sheet {
  position: fixed;
  inset: 0;
  z-index: 62;
}
.menu-panel {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: min(86vw, 360px);
  padding: calc(14px + env(safe-area-inset-top)) 14px 18px;
  background: var(--sheet-bg);
  border-right: 1px solid var(--surface-border);
  box-shadow: 18px 0 44px rgba(45,31,31,.18);
  overflow-y: auto;
}
.menu-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  margin-bottom: 8px;
}
.menu-panel header strong { font-size: 22px; }
.menu-panel nav { display: grid; gap: 8px; }
.menu-panel a {
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--surface-border);
  border-radius: 15px;
  background: var(--surface-soft);
  color: var(--ink);
  text-decoration: none;
  font-weight: 900;
  transition: transform .16s var(--interactive-ease), border-color .16s ease, background .16s ease, box-shadow .16s ease;
}
.menu-panel a.is-active {
  border-color: #f1a0b0;
  background: #fff3f6;
  color: var(--pink-dark);
  box-shadow: 0 8px 18px rgba(235, 95, 128, .12);
}
@media (prefers-reduced-motion: no-preference) {
  .menu-panel a:hover { transform: translateX(3px); border-color: rgba(238, 116, 142, .45); }
}
.bottom-nav button, .bottom-nav a {
  border: 0;
  background: transparent;
  color: #524a4b;
  font-size: 11px;
  font-weight: 900;
  border-radius: 12px;
  display: grid;
  place-items: center;
  text-decoration: none;
  min-height: 44px;
  padding: 4px;
}
.bottom-nav .is-active { color: var(--pink-dark); background: #fff6f7; }

.install-prompt[hidden] { display: none; }
.install-prompt {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(var(--bottom-h) + 10px + env(safe-area-inset-bottom));
  z-index: 58;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--surface-border);
  border-radius: 22px;
  background:
    radial-gradient(circle at 12% 20%, rgba(238, 116, 142, .16), transparent 34%),
    radial-gradient(circle at 92% 18%, rgba(167, 216, 206, .14), transparent 32%),
    var(--sheet-bg);
  box-shadow: 0 16px 38px rgba(74, 47, 51, .14);
  backdrop-filter: blur(14px);
}
.install-prompt::before {
  content: "♡";
  position: absolute;
  right: 14px;
  top: -13px;
  color: rgba(238, 116, 142, .28);
  font-size: 32px;
  transform: rotate(10deg);
  pointer-events: none;
}
.install-prompt-icon {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  box-shadow: 0 7px 18px rgba(238, 116, 142, .18);
}
.install-prompt-copy {
  min-width: 0;
}
.install-prompt strong,
.install-prompt span { display: block; }
.install-prompt strong { font-size: 14px; }
.install-prompt span { color: var(--muted); font-size: 12px; }
.install-prompt small {
  display: block;
  margin-top: 3px;
  color: var(--pink-dark);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.install-prompt .primary-button,
.install-prompt .secondary-button {
  min-height: 38px;
  padding-inline: 12px;
  border-radius: 13px;
  font-size: 12px;
}

@media (max-width: 759px), (max-height: 520px) {
  .desktop-nav { display: none !important; }
  .app-header .icon-button { display: grid !important; }
  .app-header {
    grid-template-columns: 48px 1fr 48px;
    gap: 0;
  }
  .brand-wrap {
    grid-column: 2;
    justify-self: center;
    text-align: center;
  }
  .cart-button {
    grid-column: 3;
    justify-self: end;
  }
  html.customizer-mode,
  body.customizer-mode {
    height: var(--app-vh, 100svh);
    max-height: var(--app-vh, 100svh);
    overflow: hidden;
    background: var(--bg);
  }
  body.customizer-mode main {
    position: fixed;
    left: 0;
    right: 0;
    top: calc(var(--header-h) + env(safe-area-inset-top));
    bottom: env(safe-area-inset-bottom, 0px);
    height: calc(var(--app-vh, 100dvh) - var(--header-h) - env(safe-area-inset-top) - env(safe-area-inset-bottom, 0px));
    padding: 0;
    margin: 0;
    width: 100%;
    max-width: none;
    overflow: hidden;
    z-index: 1;
  }
  body.customizer-mode .customizer-screen {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    height: 100%;
    min-height: 0;
    max-height: none;
    overflow: hidden;
  }
  html.mobile-portrait body.customizer-mode .customizer-screen {
    grid-template-rows: minmax(0, 1fr) auto;
  }
  body.customizer-mode .customizer-preview {
    min-height: 0;
    max-height: none;
    height: 100%;
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 0;
    background: var(--bg);
    overflow: hidden;
    position: relative;
  }
  body.customizer-mode .customizer-preview::before,
  body.customizer-mode .customizer-preview::after {
    content: none;
  }
  body.customizer-mode .preview-carousel-shell {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    grid-template-columns: 1fr;
    place-items: stretch;
  }
  body.customizer-mode .preview-carousel,
  body.customizer-mode .preview-carousel-nav {
    grid-row: 1;
    grid-column: 1;
  }
  body.customizer-mode .preview-carousel-dots {
    position: static;
    grid-row: 2;
    grid-column: 1;
    flex-shrink: 0;
    padding: 8px 12px 10px;
    pointer-events: auto;
    background: linear-gradient(180deg, rgba(255, 255, 255, .94), #fff);
    border-top: 1px solid rgba(238, 229, 228, .75);
  }
  body.customizer-mode .preview-product-label {
    display: none;
  }
  body.customizer-mode .preview-carousel-nav {
    display: grid;
  }
  body.customizer-mode .product-tabs {
    display: none;
  }
  body.customizer-mode .preview-carousel-nav-label {
    display: block;
  }
  body.customizer-mode .preview-carousel-slide {
    place-items: center;
  }
  body.customizer-mode .preview-carousel-slide .product-stage {
    width: min(98%, calc(100% - 8px));
    height: min(98%, calc(100% - 10px));
    max-width: min(98%, calc(100% - 8px));
    max-height: min(98%, calc(100% - 10px));
    margin: auto;
    padding-inline: 0;
  }
  body.customizer-mode .preview-carousel {
    padding-inline: 0;
  }
  body.customizer-mode .preview-carousel-slide {
    grid-template-rows: 1fr;
  }
  body.customizer-mode .floating-action {
    display: none;
  }
  body.customizer-mode .customizer-dock {
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    margin-top: 0;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -8px 28px rgba(66, 42, 40, .1);
    background: var(--sheet-bg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex-shrink: 0;
  }
  body.customizer-mode .tools-pane {
    flex: 0 0 auto;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  body.customizer-mode .checkout-pane {
    flex: 0 0 auto;
    flex-shrink: 0;
    min-height: var(--mobile-checkout-min);
    border-top: 1px solid rgba(238, 229, 228, .9);
    background: #fff;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  body.customizer-mode .control-panel {
    flex: 0 0 auto;
    min-height: 0;
    max-height: none;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    grid-template-rows: none;
  }
  body.customizer-mode .control-toolbar {
    padding: 3px 0;
  }
  body.customizer-mode .control-toolbar .control-tabs {
    gap: var(--control-tab-gap);
    padding: 0 10px;
  }
  body.customizer-mode .control-tabs button,
  body.customizer-mode .control-tabs .control-tab-action {
    min-height: var(--control-tab-h);
    min-width: var(--control-tab-w);
    padding: 4px 5px 5px;
    gap: 3px;
  }
  body.customizer-mode .control-tab-icon {
    width: var(--control-tab-icon);
    height: var(--control-tab-icon);
  }
  body.customizer-mode .control-tabs span {
    font-size: var(--control-tab-label);
    line-height: 1.15;
    white-space: nowrap;
  }
  body.customizer-mode .control-tabs .is-active {
    border-color: rgba(217, 79, 115, .62);
    box-shadow: inset 0 0 0 1.5px rgba(238, 116, 142, .42);
  }
  body.customizer-mode .control-scroll-shell {
    flex: 0 0 auto;
    min-height: 0;
    max-height: min(34svh, 240px);
    overflow-x: hidden;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: relative;
    -webkit-overflow-scrolling: touch;
  }
  body.customizer-mode .control-scroll-shell::after {
    display: none;
  }
  body.customizer-mode .control-content {
    flex: 0 0 auto;
    min-height: 0;
    max-height: none;
    height: auto;
    padding: 4px 10px 6px;
    overflow-x: hidden;
    overflow-y: visible;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  body.customizer-mode .control-content::-webkit-scrollbar { display: none; }
  body.customizer-mode .control-content .field-label {
    margin: 0 0 2px;
    font-size: 11px;
    line-height: 1.2;
  }
  body.customizer-mode .control-content .hint {
    display: none;
  }
  body.customizer-mode .control-content .control-pane {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
  }
  body.customizer-mode .control-pane--product .product-option-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: flex-start;
    height: auto;
    min-height: 0;
  }
  body.customizer-mode .product-option-row {
    display: grid;
    gap: 6px;
    min-height: 0;
  }
  body.customizer-mode .field-label--mini {
    margin: 0;
    font-size: 10px;
    line-height: 1.15;
    color: #8a7779;
  }
  body.customizer-mode .product-option-row .garment-swatches--compact {
    max-height: none;
    align-items: stretch;
    padding-bottom: 2px;
  }
  body.customizer-mode .garment-swatch--compact {
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    padding: 4px 12px;
    gap: 8px;
    grid-template-columns: 24px auto;
    display: grid;
    align-items: center;
    justify-items: start;
    min-height: 36px;
    max-height: none;
    border-radius: 999px;
    border: 2px solid var(--line);
    box-sizing: border-box;
  }
  body.customizer-mode .garment-swatch--compact.is-selected {
    outline: none;
    border-color: var(--pink-dark);
    background: #fff5f7;
    box-shadow: 0 4px 14px rgba(235, 95, 128, .12);
  }
  body.customizer-mode .garment-swatch--compact .garment-swatch-chip {
    width: 24px;
    height: 24px;
  }
  body.customizer-mode .garment-swatch--compact .garment-swatch-name {
    font-size: 11px;
    line-height: 1.1;
    white-space: nowrap;
  }
  body.customizer-mode .control-pane--text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-content: flex-start;
    padding-bottom: 4px;
  }
  body.customizer-mode .control-pane--text .text-area {
    position: relative;
    z-index: 2;
    pointer-events: auto;
    min-height: 40px;
    height: 40px;
    max-height: 40px;
    flex-shrink: 0;
    padding-top: 8px;
    font-size: 15px;
  }
  body.customizer-mode .control-pane--text .draft-select-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    align-items: end;
    flex-shrink: 0;
  }
  body.customizer-mode .control-pane--text .draft-select-row:has(.draft-select-field:only-child) {
    grid-template-columns: 1fr;
  }
  body.customizer-mode .control-pane--text .select-input--compact {
    min-height: 44px;
    font-size: 15px;
    color: var(--ink);
    background-color: #fff;
    border: 1px solid #e3d7d6;
    width: 100%;
  }
  body.customizer-mode .control-pane--text .field-label--inline {
    display: none;
  }
  body.customizer-mode .control-pane:not(.control-pane--text) {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 4px;
    align-content: stretch;
  }
  body.customizer-mode .font-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    width: 100%;
    min-width: 0;
    min-height: 40px;
    max-height: none;
    overflow-x: auto;
    overflow-y: visible;
    padding: 0 2px 2px;
    scrollbar-width: none;
    align-items: center;
  }
  body.customizer-mode .font-row::-webkit-scrollbar { display: none; }
  body.customizer-mode .font-row .choice-pill {
    flex: 0 0 auto;
    min-width: 80px;
    min-height: 40px;
    max-height: none;
    padding: 6px 10px;
    line-height: 1.2;
    font-size: 11px;
  }
  body.customizer-mode .control-pane--text .text-tools {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    width: max-content;
    min-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 2px;
    scrollbar-width: none;
  }
  body.customizer-mode .control-pane--text .text-tools::-webkit-scrollbar { display: none; }
  body.customizer-mode .control-pane--text .text-tools .choice-pill {
    flex: 0 0 auto;
    min-width: 76px;
    min-height: var(--mobile-touch);
    padding: 10px 12px;
    font-size: 12px;
    line-height: 1.2;
  }
  body.customizer-mode .control-content .symbol-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    width: 100%;
    min-width: 0;
    max-height: 58px;
    overflow-x: auto;
    overflow-y: hidden;
    align-items: stretch;
    padding: 0 2px 2px;
    scrollbar-width: none;
  }
  body.customizer-mode .control-content .symbol-grid::-webkit-scrollbar { display: none; }
  body.customizer-mode .control-content .symbol-choice {
    flex: 0 0 auto;
    min-height: 52px;
    max-height: 56px;
    min-width: 48px;
    width: auto;
    padding: 5px 8px 6px;
    line-height: 1.2;
    font-size: 11px;
    gap: 3px;
    align-content: center;
    justify-items: center;
  }
  body.customizer-mode .symbol-art {
    width: 24px;
    height: 24px;
  }
  body.customizer-mode .control-content .symbol-choice small {
    font-size: 8px;
    line-height: 1.1;
  }
  body.customizer-mode .control-content .choice-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    width: 100%;
    min-width: 0;
    min-height: 48px;
    max-height: none;
    overflow-x: auto;
    overflow-y: visible;
    align-items: center;
    padding: 2px 4px 4px;
    scrollbar-width: none;
  }
  body.customizer-mode .control-content .choice-grid::-webkit-scrollbar { display: none; }
  body.customizer-mode .control-content .choice-pill {
    flex: 0 0 auto;
    min-height: 44px;
    max-height: none;
    min-width: 44px;
    width: auto;
    padding: 8px 12px;
    line-height: 1.2;
    font-size: 12px;
  }
  body.customizer-mode .thread-swatches {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    width: 100%;
    min-width: 0;
    max-height: 72px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 4px 4px;
    align-items: stretch;
    scrollbar-width: none;
  }
  body.customizer-mode .thread-swatches::-webkit-scrollbar { display: none; }
  body.customizer-mode .thread-swatch {
    flex: 0 0 auto;
    width: 56px;
    min-height: 0;
    height: auto;
    max-height: 72px;
    padding: 6px 6px 5px;
    gap: 3px;
  }
  body.customizer-mode .thread-swatch-img {
    max-height: 34px;
  }
  body.customizer-mode .thread-swatch-name {
    font-size: 8px;
    line-height: 1.1;
  }
  body.customizer-mode .thread-swatch small {
    display: none;
  }
  body.customizer-mode .wizard-row--segments {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    scrollbar-width: none;
  }
  body.customizer-mode .wizard-row--segments::-webkit-scrollbar { display: none; }
  body.customizer-mode .wizard-row--segments .choice-pill {
    flex: 0 0 auto;
  }
  body.customizer-mode .action-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    scrollbar-width: none;
  }
  body.customizer-mode .action-grid::-webkit-scrollbar { display: none; }
  body.customizer-mode .action-grid .choice-pill {
    flex: 0 0 auto;
    min-width: 64px;
    min-height: var(--mobile-touch);
  }
  body.customizer-mode .price-card {
    flex: 0 0 auto;
    min-height: 0;
    max-height: none;
    padding: 4px 12px 4px;
    background: #fff;
    box-shadow: 0 -1px 0 var(--line);
  }
  body.customizer-mode .price-card .price-trust {
    display: none;
  }
  body.customizer-mode .garment-swatches--compact {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  body.customizer-mode .garment-swatches--compact::-webkit-scrollbar { display: none; }
  body.customizer-mode .control-pane--garment {
    margin-bottom: 8px;
    padding-bottom: 8px;
  }
  body.customizer-mode .control-pane--segments-only .wizard-row--segments .choice-pill {
    min-height: var(--mobile-touch);
    font-size: 15px;
    border-radius: 16px;
    min-width: 72px;
  }
  body.customizer-mode .price-card .primary-button {
    min-height: 40px;
    min-width: 132px;
    font-size: 13px;
  }
  body.customizer-mode .sparkle,
  body.customizer-mode .thread {
    display: none;
  }
  body.customizer-mode .install-prompt {
    bottom: auto;
    top: calc(var(--header-h) + env(safe-area-inset-top) + 8px);
    left: 10px;
    right: 10px;
    z-index: 40;
  }

  /* Mobil na šírku: polovica náhľad, polovica ovládanie (header hore ostáva) */
  @media (orientation: landscape) {
    html.mobile-landscape body.customizer-mode .customizer-screen {
      grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.95fr);
      grid-template-rows: 1fr;
      column-gap: 0;
    }
    html.mobile-landscape body.customizer-mode .customizer-preview {
      grid-column: 1;
      grid-row: 1;
      min-height: 0;
      height: 100%;
      max-height: none;
      padding: 2px 4px 2px 2px;
    }
    html.mobile-landscape body.customizer-mode .customizer-dock {
      grid-column: 2;
      grid-row: 1;
    }
    html.mobile-landscape body.customizer-mode .customizer-preview::before,
    html.mobile-landscape body.customizer-mode .customizer-preview::after {
      display: none;
    }
    html.mobile-landscape body.customizer-mode .preview-carousel-shell {
      height: 100%;
    }
    html.mobile-landscape body.customizer-mode .preview-carousel-slide .product-stage {
      width: 100%;
      height: 100%;
      max-width: 100%;
      max-height: 100%;
      margin: auto;
    }
    html.mobile-landscape body.customizer-mode .preview-carousel-slide .product-stage.is-embroidery-focus .product-svg {
      width: 100%;
      height: 100%;
      max-width: 100%;
      max-height: 100%;
    }
    html.mobile-landscape body.customizer-mode .preview-carousel-slide .product-stage:not(.is-embroidery-focus) .product-svg {
      width: calc(100% * var(--preview-product-scale));
      height: calc(100% * var(--preview-product-scale));
      max-width: calc(100% * var(--preview-product-scale));
      max-height: calc(100% * var(--preview-product-scale));
    }
    html.mobile-landscape body.customizer-mode .preview-product-label {
      top: 4px;
      font-size: 10px;
      padding: 2px 8px;
    }
    html.mobile-landscape body.customizer-mode .product-stage.is-embroidery-focus + [data-preview-disclaimer],
    html.mobile-landscape body.customizer-mode .preview-carousel-shell:has(.is-embroidery-focus) [data-preview-disclaimer] {
      font-size: 9px;
    }
    html.mobile-landscape body.customizer-mode .preview-carousel-nav-label {
      display: none;
    }
    html.mobile-landscape body.customizer-mode .preview-carousel-dots {
      bottom: 4px;
    }
    html.mobile-landscape body.customizer-mode .customizer-dock {
      height: 100%;
      max-height: 100%;
      display: flex;
      flex-direction: column;
      overflow: hidden;
      border-radius: 16px 0 0 0;
      border-left: 1px solid var(--line);
      box-shadow: -6px 0 24px rgba(66, 42, 40, .08);
    }
    html.mobile-landscape body.customizer-mode .tools-pane {
      flex: 1 1 auto;
      min-height: 0;
    }
    html.mobile-landscape body.customizer-mode .checkout-pane {
      flex: 0 0 auto;
      min-height: 0;
      padding-bottom: env(safe-area-inset-bottom, 0px);
    }
    html.mobile-landscape body.customizer-mode .control-panel {
      flex: 1 1 auto;
      min-height: 0;
    }
    html.mobile-landscape body.customizer-mode .control-scroll-shell {
      flex: 0 0 auto;
      max-height: min(40svh, 220px);
      min-height: 0;
    }
    html.mobile-landscape body.customizer-mode .control-toolbar {
      padding: 4px 8px;
    }
    html.mobile-landscape body.customizer-mode .control-toolbar .control-tabs button,
    html.mobile-landscape body.customizer-mode .control-toolbar .control-tabs .control-tab-action {
      min-height: 36px;
      min-width: 50px;
      flex: 0 0 auto;
      padding: 3px 5px 4px;
    }
    html.mobile-landscape body.customizer-mode .price-card {
      padding: 4px 10px max(4px, env(safe-area-inset-bottom));
    }
    html.mobile-landscape body.customizer-mode .price-card .primary-button {
      min-height: 40px;
      min-width: 120px;
      font-size: 13px;
    }
    html.mobile-landscape body.customizer-mode .control-content .symbol-grid {
      max-height: 58px;
    }
    html.mobile-landscape body.customizer-mode .control-content .symbol-choice {
      min-height: 54px;
      max-height: 58px;
    }
  }

  @media (max-width: 420px) {
    body.customizer-mode .control-tabs span {
      font-size: 9px;
    }
    body.customizer-mode .thread-swatch {
      width: 48px;
    }
    body.customizer-mode .font-row .choice-pill {
      font-size: 11px;
      min-width: 80px;
      padding: 8px 10px;
    }
  }

  @media (max-height: 740px) {
    :root {
      --mobile-preview-max: min(44dvh, 46svh);
      --mobile-dock-tabs-h: 38px;
      --mobile-dock-helper-h: 0px;
      --mobile-dock-price-h: 56px;
    }
    body.customizer-mode .control-tabs button {
      min-height: 46px;
    }
  }

  @media (max-height: 620px) {
    :root {
      --mobile-preview-max: min(34dvh, 36svh);
      --header-h: 50px;
      --mobile-dock-tabs-h: 44px;
      --mobile-dock-helper-h: 0px;
      --mobile-dock-price-h: 58px;
    }
    body.customizer-mode .control-tabs button {
      min-height: 42px;
    }
    body.customizer-mode .control-tab-icon {
      width: 20px;
      height: 20px;
    }
    body.customizer-mode .price-card .primary-button {
      min-height: 42px;
      min-width: 132px;
    }
  }
  body:has(.cart-sheet:not([hidden])),
  body:has(.checkout-sheet:not([hidden])),
  body:has(.size-sheet:not([hidden])),
  body:has(.menu-sheet:not([hidden])) {
    overflow: hidden;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sparkle, .thread { animation: none; }
  .control-tabs .is-active { animation: none; }
  html { scroll-behavior: auto; }
}

.page-shell {
  padding: 24px 16px 96px;
  max-width: 1120px;
  margin: 0 auto;
}
.page-hero {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}
.page-hero h1 {
  margin: 0;
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1.05;
}
.page-hero p {
  margin: 0;
  color: #5d5556;
  line-height: 1.6;
  max-width: 720px;
}
.page-card-grid {
  display: grid;
  gap: 14px;
}
.page-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}
.page-card h2, .page-card h3 { margin: 0 0 10px; }
.page-card p, .page-card li { color: #5d5556; line-height: 1.58; }
.page-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.page-actions a {
  min-height: 50px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  padding: 0 18px;
  text-decoration: none;
  font-weight: 800;
}
.page-actions .primary-link { background: linear-gradient(135deg, #f58aa0, #eb5f80); color: #fff; }
.page-actions .secondary-link { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.process-list { counter-reset: steps; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.process-list li {
  counter-increment: steps;
  padding: 14px 14px 14px 58px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  position: relative;
}
.process-list li::before {
  content: counter(steps);
  position: absolute;
  left: 14px;
  top: 14px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff1f4;
  color: var(--pink-dark);
  display: grid;
  place-items: center;
  font-weight: 900;
}
.legal-page p { color: #5d5556; line-height: 1.65; }

.content-section {
  padding: 18px 16px 96px;
  max-width: 1120px;
  margin: 0 auto;
}
.content-section h1 { font-size: 28px; margin: 6px 0 18px; }
.product-grid, .info-grid-section, .gallery-grid {
  display: grid;
  gap: 14px;
}
.product-card, .info-grid-section article, .gallery-grid article, .thanks-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.product-card { padding: 16px; display: grid; grid-template-columns: 82px 1fr; gap: 14px; align-items: center; }
.mini-product { width: 82px; height: 94px; display: grid; place-items: center; background: #fff8f8; border-radius: 15px; }
.product-card h2 { margin: 0 0 5px; font-size: 18px; }
.product-card p { margin: 0 0 8px; color: var(--muted); font-size: 14px; }
.gallery-grid article { min-height: 126px; padding: 18px; display: grid; align-content: end; background: linear-gradient(145deg, #fff, #fff3f5); }
.gallery-grid span { font-size: 26px; font-weight: 800; color: var(--pink-dark); font-family: Georgia, serif; }
.gallery-grid small { color: var(--muted); }
.info-grid-section article { padding: 18px; }
.info-grid-section h2 { margin: 0 0 14px; font-size: 20px; }
.info-grid-section p, .info-grid-section li, .legal p { color: #5d5556; line-height: 1.55; }
.about-photo { height: 164px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, #fdf7f2, #e6f2ef); font-size: 34px; letter-spacing: 2px; }
.contact-form { display: grid; gap: 10px; }
.contact-form input, .contact-form textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
}
.doc-links { display: grid; gap: 10px; }
.doc-links button {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff8f9;
  color: var(--ink);
  font-weight: 800;
  text-align: left;
  padding: 0 12px;
}

.cart-sheet[hidden], .checkout-sheet[hidden], .menu-sheet[hidden], .size-sheet[hidden] { display: none; }
.cart-sheet, .checkout-sheet, .menu-sheet, .size-sheet {
  position: fixed;
  inset: 0;
  z-index: 60;
}
.sheet-backdrop { position: absolute; inset: 0; background: var(--overlay-bg); backdrop-filter: blur(2px); }
.sheet-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 92vh;
  overflow-y: auto;
  border-radius: var(--sheet-radius) var(--sheet-radius) 0 0;
  background: var(--sheet-bg);
  padding: 10px 14px calc(18px + env(safe-area-inset-bottom));
  box-shadow: 0 -18px 44px rgba(45, 31, 31, .22);
  border-top: 1px solid var(--surface-border);
  transition: transform .18s var(--interactive-ease);
}
.sheet-panel::before {
  content: "";
  display: block;
  width: 44px;
  height: 4px;
  margin: 2px auto 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pink), #ffb3c6);
}
.checkout-sheet .sheet-panel {
  max-height: 94vh;
}
.cart-sheet .sheet-panel {
  display: flex;
  flex-direction: column;
  max-height: min(92dvh, 760px);
  overflow: hidden;
}
.cart-sheet .cart-items {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-right: 2px;
}
.cart-sheet .cart-totals,
.cart-sheet .cart-sheet-actions {
  flex: 0 0 auto;
}
.cart-sheet-actions {
  display: grid;
  gap: 10px;
  padding-top: 4px;
}
.cart-sheet-actions[hidden] {
  display: none !important;
}
.size-panel { width: min(520px, 100vw); margin-inline: auto; }
.size-sheet-body { display: grid; gap: 12px; padding: 4px 2px 12px; }
.size-sheet-intro { margin: 0; font-size: 13px; line-height: 1.45; color: #5d5556; }
.size-sheet-summary {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 16px;
  background: var(--surface-soft);
  border: 1px solid var(--surface-border);
}
.size-sheet-summary strong { font-size: 18px; }
.size-sheet-summary span { font-size: 13px; color: #6d6365; }
.size-sheet-actions {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: center;
}
.size-sheet-actions .primary-button { grid-column: 1 / -1; }
.size-sheet-actions:has([data-size-sheet-back]:not([hidden])) .primary-button { grid-column: 2; }
.size-sheet-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.size-sheet-body .wizard-row--scroll { flex-wrap: wrap; overflow: visible; gap: 8px; }
.size-sheet-grid--products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}
.size-sheet-body .size-sheet-grid--products {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: visible !important;
}
.size-product-pill {
  gap: 6px;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 62px;
  padding: 10px 8px;
}
.size-product-pill .product-tab-art {
  display: none;
}
.size-product-pill small {
  color: var(--pink-dark);
  font-size: 11px;
  font-weight: 900;
}

.size-guide-hints {
  margin: 0;
  padding: 10px 12px;
  list-style: none;
  display: grid;
  gap: 6px;
  font-size: 12px;
  line-height: 1.45;
  color: #5d5556;
  background: #faf6f7;
  border: 1px solid #efe6e8;
  border-radius: 12px;
}
.size-guide-hints li { margin: 0; }
.size-guide-hints strong { color: #3d3537; font-weight: 800; }

.size-guide,
.size-guide-page .size-guide-card details.size-guide { margin-top: 4px; }
.size-guide summary,
.size-guide-page summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  color: #c94d6a;
  list-style: none;
  padding: 8px 0;
}
.size-guide summary::-webkit-details-marker,
.size-guide-page summary::-webkit-details-marker { display: none; }
.size-guide summary::before,
.size-guide-page summary::before {
  content: "▸ ";
  display: inline-block;
  transition: transform 0.15s ease;
}
.size-guide[open] summary::before,
details.size-guide[open] summary::before { transform: rotate(90deg); }
.size-guide-body { display: grid; gap: 10px; padding-bottom: 4px; }
.size-guide-summary,
.size-guide-page-intro {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: #5d5556;
}
.size-guide-footnote {
  margin: 0;
  font-size: 11px;
  line-height: 1.45;
  color: #8a8082;
}
.size-guide-plain {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #5d5556;
}
.size-guide-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  line-height: 1.35;
}
.size-guide-table th,
.size-guide-table td {
  padding: 7px 8px;
  text-align: left;
  border-bottom: 1px solid #efe6e8;
  vertical-align: top;
}
.size-guide-table thead th {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #8a8082;
  background: #faf6f7;
}
.size-guide-table tbody th {
  font-weight: 800;
  color: #3d3537;
  white-space: nowrap;
}
.size-guide-section td {
  padding-top: 10px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #c94d6a;
  background: #fff;
  border-bottom: 1px solid #f3e8eb;
}

.size-guide-page {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #efe6e8;
}
.size-guide-page h2 {
  margin: 0 0 8px;
  font-size: clamp(22px, 4vw, 28px);
}
.size-guide-page-grid {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}
.size-guide-card {
  padding: 16px;
  border: 1px solid #efe6e8;
  border-radius: 16px;
  background: #fff;
  display: grid;
  gap: 12px;
}
.size-guide-card h3 {
  margin: 0;
  font-size: 18px;
}
.size-product-pill {
  display: grid;
  justify-items: center;
  gap: 6px;
  min-height: 88px;
  padding: 10px 8px;
}
.size-product-pill strong {
  font-size: 12px;
  line-height: 1.25;
  text-align: center;
}
.menu-back-link {
  font-weight: 800;
  color: var(--pink-dark) !important;
  background: #fff5f7;
}
.page-back {
  margin: 0 0 12px;
}
.page-back a {
  color: var(--pink-dark);
  font-weight: 800;
  text-decoration: none;
}
.page-back a:hover {
  text-decoration: underline;
}

.site-footer {
  margin-top: 24px;
  padding: 28px 16px calc(88px + env(safe-area-inset-bottom));
  background: #fff7f8;
  border-top: 1px solid var(--line);
}
.site-footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
  text-align: center;
}
.site-footer-brand strong { font-size: 20px; }
.site-footer-brand p,
.site-footer-note {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 18px;
}
.site-footer-links a {
  color: var(--pink-dark);
  font-weight: 800;
  text-decoration: none;
}
.site-footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
}
.site-footer-nav a {
  color: #5d5556;
  font-size: 13px;
  text-decoration: none;
}
.site-footer-nav a:hover { color: var(--pink-dark); }
.contact-form {
  display: grid;
  gap: 10px;
}
.contact-form label {
  display: grid;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
}
.contact-status {
  margin: 0;
  min-height: 1.2em;
  font-size: 13px;
  color: #48675f;
}
@media (min-width: 760px) {
  .site-footer {
    padding-bottom: 40px;
  }
  .site-footer-inner {
    grid-template-columns: 1fr 1fr;
    text-align: left;
    align-items: start;
  }
  .site-footer-nav,
  .site-footer-links {
    justify-content: flex-start;
  }
  .site-footer-note {
    grid-column: 1 / -1;
    text-align: center;
  }
}
@media (max-width: 759px), (max-height: 520px) {
  .customizer-screen .product-tabs,
  .customizer-screen .desktop-product-bar {
    display: none !important;
  }
  .customizer-screen .preview-carousel {
    overflow-x: auto;
    overflow-y: hidden;
    touch-action: pan-x;
    scroll-snap-type: x mandatory;
  }
}
.sheet-panel header { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; }
.sheet-panel header,
.menu-panel header {
  touch-action: pan-y;
}
.sheet-panel header h2 { grid-column: 2; justify-self: center; margin: 6px 0 12px; font-size: 20px; }
.sheet-panel header .close-button { grid-column: 3; }
.cart-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.cart-thumb { width: 72px; height: 82px; border-radius: 12px; background: #fff7f8; display: grid; place-items: center; overflow: hidden; }
.cart-thumb svg { width: 74px; }
.cart-item h3 { margin: 0 0 3px; font-size: 15px; }
.cart-item p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.cart-production-data {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin: 10px 0 0;
}
.cart-production-data div {
  min-width: 0;
  padding: 7px 8px;
  border: 1px solid #f0e5e4;
  border-radius: 11px;
  background: #fffafb;
}
.cart-production-data dt {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}
.cart-production-data dd {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 2px 0 0;
  font-size: 12px;
  font-weight: 900;
  overflow-wrap: anywhere;
}
.cart-production-data i {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.1);
  flex: 0 0 auto;
}
.qty-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.qty-row button { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; background: #fff; }
.edit-item-button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff6f8;
  color: var(--pink-dark);
  font-size: 12px;
  font-weight: 800;
}
.remove-button { border: 0; background: transparent; color: #8b7a7d; font-size: 19px; }
.cart-price { align-self: end; font-weight: 800; white-space: nowrap; }
.cart-totals { margin: 14px 0; padding: 14px; border-radius: 16px; background: #fffafa; border: 1px solid var(--line); }
.cart-totals div { display: flex; justify-content: space-between; margin: 8px 0; }
.cart-totals strong { font-size: 20px; }
.production-print-button { margin-top: 12px; }
.free-note { color: #229f57; font-size: 13px; }
.cart-shipping-progress {
  display: block !important;
  padding-bottom: 12px;
  margin-bottom: 10px !important;
  border-bottom: 1px solid var(--line);
}
.cart-shipping-progress span {
  display: block;
  color: #48675f;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 7px;
}
.cart-shipping-progress b {
  display: block;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: #f0e7e5;
}
.cart-shipping-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f58aa0, #a7d8ce, #f5d479);
}
.empty-cart { text-align: center; color: var(--muted); padding: 30px 12px; }
.production-print-sheet { display: none; }

.checkout-panel label { display: grid; gap: 5px; margin: 10px 0; font-size: 13px; font-weight: 700; }
.checkout-hidden { display: none !important; }
.checkout-progress {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 0;
  margin: 6px 0 14px;
}
.checkout-progress li {
  min-height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #fff6f7;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}
.checkout-progress .is-active {
  background: var(--pink);
  color: #fff;
}
.checkout-progress .is-done {
  background: #e8f5f1;
  color: #327969;
}
.checkout-actions {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  margin-top: 10px;
}
.checkout-actions .full { width: 100%; }
.checkout-review,
.checkout-payment-note {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fffafb;
  padding: 14px;
  margin: 10px 0;
}
.checkout-review h3,
.checkout-payment-note strong { margin: 0 0 8px; display: block; }
.review-lines { display: grid; gap: 8px; }
.review-lines div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.review-total {
  border-top: 1px solid var(--line);
  padding-top: 10px;
  font-size: 18px;
}
.checkout-panel input, .checkout-panel textarea {
  min-height: 46px;
  border: 1px solid #ddd2d1;
  border-radius: 10px;
  padding: 10px;
  font-size: 16px;
  background: #fff;
}
.checkout-panel textarea { min-height: 74px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 116px; gap: 10px; }
fieldset {
  border: 1px solid var(--line);
  border-radius: 14px;
  margin: 12px 0;
  padding: 8px 12px;
}
legend { font-weight: 800; font-size: 13px; }
fieldset label, .check-line { display: flex !important; grid-template-columns: none; align-items: flex-start; gap: 9px; font-weight: 600; line-height: 1.4; }
.check-line a { color: var(--pink-dark); font-weight: 800; }
fieldset input, .check-line input { min-height: auto; width: 18px; height: 18px; accent-color: var(--pink); }
.checkout-panel .checkout-hidden { display: none !important; }
.hp-field { position: absolute; left: -9999px; opacity: 0; }
.form-error { color: #a83838; min-height: 22px; font-size: 13px; }
.secure-note { display: block; text-align: center; color: var(--muted); margin-top: 10px; }

.thank-you { padding: 18px 16px 96px; }
.thank-you--overlay.is-active,
body.thank-you-open .thank-you--overlay:not([hidden]) {
  position: fixed;
  inset: 0;
  z-index: 1300;
  overflow-y: auto;
  background: var(--bg);
  padding: calc(var(--header-h) + env(safe-area-inset-top) + 12px) 16px calc(96px + env(safe-area-inset-bottom));
}
body.thank-you-open { overflow: hidden; }
.thanks-card { padding: 18px; max-width: 520px; margin: 0 auto; text-align: center; }
.thanks-card h1 { margin: 6px 0 4px; font-size: 30px; }
.thanks-card p { color: var(--muted); margin: 0 0 18px; }
.confetti { color: var(--pink); letter-spacing: 8px; }
.order-summary, .payment-box {
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  margin: 12px 0;
}
.order-summary span, .payment-box label { display: block; color: var(--muted); font-size: 12px; margin-top: 10px; }
.order-summary strong { display: block; font-size: 24px; margin: 4px 0 8px; }
.order-summary button, .payment-box button {
  min-height: 36px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 9px;
  padding: 0 10px;
}
.payment-box h2 { margin: 0 0 4px; font-size: 18px; }
.payment-box div:not(.qr-box) { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.qr-box { display: grid; place-items: center; margin-top: 16px; }
.qr-box img, .qr-box svg { width: min(76vw, 260px); height: min(76vw, 260px); border-radius: 10px; }
.thanks-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

@media (min-width: 760px) {
  html {
    scroll-padding-top: calc(var(--header-h) + env(safe-area-inset-top) + 12px);
  }
  :root {
    --header-h: 64px;
    --bottom-h: 0px;
  }
  body { background: radial-gradient(circle at top, #fff7f7, #fffdfc 42%); }
  main {
    max-width: min(1280px, 94vw);
    margin: 0 auto;
    padding: calc(var(--header-h) + env(safe-area-inset-top) + 16px) 20px 40px;
    box-sizing: border-box;
  }
  .bottom-nav { display: none; }
  .brand { font-size: 26px; }
  .header-step { display: none; }
  .install-prompt {
    left: auto;
    right: 24px;
    bottom: 24px;
    width: min(430px, calc(100vw - 48px));
  }
  .app-header {
    grid-template-columns: auto 1fr auto;
    gap: 16px;
    padding-inline: 20px;
  }
  .icon-button { display: none; }
  .brand-wrap {
    grid-column: 1;
    justify-self: start;
    text-align: left;
  }
  .brand { justify-self: start; }
  .desktop-nav {
    grid-column: 2;
    justify-self: center;
    display: flex;
    justify-content: center;
    gap: 4px;
    flex-wrap: nowrap;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .desktop-nav::-webkit-scrollbar { display: none; }
  .cart-button {
    grid-column: 3;
    justify-self: end;
  }
  .desktop-nav a {
    color: #51484a;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    padding: 9px 11px;
    border-radius: 999px;
    white-space: nowrap;
    flex: 0 0 auto;
  }
  .desktop-nav a:hover, .desktop-nav .is-active { background: #fff2f5; color: var(--pink-dark); }
  @media (min-height: 521px) {
  html.customizer-mode,
  body.customizer-mode {
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
    background: var(--bg);
  }
  body.customizer-mode main {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
    height: calc(100dvh - env(safe-area-inset-bottom));
    max-height: calc(100dvh - env(safe-area-inset-bottom));
    padding-bottom: 8px;
    box-sizing: border-box;
  }
  .customizer-screen {
    display: none;
    grid-template-columns: minmax(0, 1fr) min(420px, 36vw);
    grid-template-rows: minmax(0, 1fr);
    gap: 20px;
    align-items: stretch;
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    max-height: 100%;
    padding: 8px 0 0;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
  }
  .customizer-screen.app-section.is-active,
  .customizer-screen.is-active {
    display: grid;
  }
  .customizer-dock {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    grid-template-areas:
      "tools"
      "checkout";
    grid-column: 2;
    grid-row: 1;
    align-self: stretch;
    position: static;
    gap: 12px;
    overflow: hidden;
    background: none;
    border: 0;
    box-shadow: none;
    border-radius: 0;
    width: 100%;
    min-width: 0;
    min-height: 0;
    max-height: 100%;
    height: 100%;
    margin-top: 0;
  }
  .tools-pane {
    min-height: 0;
    overflow: hidden;
  }
  .checkout-pane {
    flex-shrink: 0;
    background: transparent;
  }
  .customizer-preview {
    grid-column: 1;
    grid-row: 1;
    flex: none;
    padding: 0;
    min-height: 0;
    height: 100%;
    max-height: 100%;
    align-self: stretch;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    container-type: size;
    container-name: preview;
  }
  .preview-product-label {
    display: block;
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    margin: 10px auto 0;
    width: fit-content;
  }
  .floating-action {
    display: none !important;
  }
  .product-tabs {
    display: none;
  }
  .desktop-product-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 12px 14px 4px;
    z-index: 3;
  }
  .desktop-product-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(238, 229, 228, .95);
    border-radius: 999px;
    background: rgba(255, 255, 255, .92);
    color: #4a3f41;
    min-height: 42px;
    padding: 0 16px 0 12px;
    font-size: 13px;
    font-weight: 800;
    touch-action: manipulation;
    transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
  }
  .desktop-product-chip svg,
  .desktop-product-chip .product-tab-art,
  .desktop-product-chip img {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    object-fit: contain;
  }
  .desktop-product-chip:hover {
    background: #fff5f7;
    border-color: rgba(238, 116, 142, .45);
  }
  .desktop-product-chip.is-active {
    background: #fff5f7;
    border-color: var(--pink-dark);
    color: var(--pink-dark);
    box-shadow: 0 8px 18px rgba(235, 95, 128, .12);
  }
  .preview-carousel-shell {
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    place-items: stretch;
    border-radius: 28px;
    background: #fff;
    border: 1px solid rgba(214, 202, 200, .88);
    box-shadow: 0 22px 48px rgba(74, 47, 51, .09);
    overflow: hidden;
  }
  .preview-carousel-shell > .desktop-product-bar {
    grid-row: 1;
    align-self: start;
  }
  .preview-carousel-shell > .preview-carousel {
    grid-row: 2;
    grid-column: 1;
    align-self: stretch;
    min-height: 0;
  }
  .preview-carousel-shell > .preview-carousel-nav {
    grid-row: 2;
    grid-column: 1;
    position: relative;
    top: auto;
    transform: none;
    align-self: center;
    z-index: 8;
  }
  .preview-carousel-shell > .preview-carousel-nav--prev {
    justify-self: start;
    margin-left: 12px;
  }
  .preview-carousel-shell > .preview-carousel-nav--next {
    justify-self: end;
    margin-right: 12px;
  }
  .preview-carousel {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    touch-action: pan-x;
    min-height: 0;
    height: clamp(460px, calc(100vh - var(--header-h) - 220px), 620px);
  }
  .preview-carousel-track {
    height: 100%;
  }
  .preview-carousel-dots {
    display: none;
  }
  .preview-carousel-nav {
    display: grid;
  }
  .preview-carousel-nav[hidden] {
    display: none !important;
  }
  .preview-carousel-nav-label {
    display: block;
    max-width: 72px;
    opacity: 0;
    transition: opacity .15s ease;
  }
  .preview-carousel-nav:hover .preview-carousel-nav-label,
  .preview-carousel-nav:focus-visible .preview-carousel-nav-label {
    opacity: 1;
  }
  .control-panel {
    position: relative;
    top: auto;
    flex: 1 1 auto;
    min-height: 0;
    min-width: 0;
    align-self: stretch;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    border-radius: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255,247,249,.99), rgba(255,255,255,.99));
    max-height: none;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin-bottom: 0;
  }
  .customizer-dock > .product-tabs {
    display: none;
  }
  .control-tabs {
    box-sizing: border-box;
    width: 100%;
  }
  .control-content .choice-pill,
  .control-content .symbol-choice {
    min-width: 0;
  }
  .control-scroll-shell {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  .control-tabs button {
    min-height: 56px;
  }
  .control-content {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 12px 12px 18px;
    box-sizing: border-box;
    width: 100%;
  }
  .control-pane {
    min-width: 0;
    width: 100%;
  }
  .control-pane--threads {
    width: 100%;
  }
  .thread-swatches {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    overflow: visible;
    width: 100%;
    padding-inline: 0;
  }
  .thread-swatch {
    width: auto;
    min-height: 118px;
    padding-bottom: 8px;
  }
  .font-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    overflow: hidden;
    width: 100%;
  }
  .font-row .choice-pill {
    width: 100%;
    min-width: 0;
    padding-inline: 6px;
    font-size: 11px;
  }
  .control-pane--text .text-tools {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
  }
  .control-pane--text .text-tools .choice-pill {
    width: 100%;
    min-width: 0;
  }
  .control-content .symbol-grid {
    grid-auto-flow: row;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-auto-columns: unset;
    overflow: visible;
    width: 100%;
  }
  .control-content .symbol-choice {
    min-height: 58px;
    padding: 6px 4px;
  }
  .control-content .symbol-glyph {
    font-size: 20px;
  }
  .control-content .symbol-choice small {
    font-size: 8px;
  }
  .control-content .choice-grid {
    grid-auto-flow: row;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-columns: unset;
    overflow: visible;
    width: 100%;
  }
  .control-content:has(.text-area) .hint {
    display: block;
  }
  .control-content .control-pane {
    width: 100%;
    min-width: 0;
  }
  .wizard-row--scroll {
    flex-wrap: wrap;
    overflow: visible;
    gap: 8px;
  }
  .wizard-row--scroll .size-pill {
    flex: 1 1 calc(33.333% - 8px);
    min-width: 88px;
    max-width: none;
  }
  .control-pane--wizard,
  .control-pane--threads {
    max-width: none;
    overflow: visible;
  }
  .control-content .text-input,
  .control-content .hint,
  .control-content .field-label {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .preview-carousel-nav--prev { left: 12px; }
  .preview-carousel-nav--next { right: 12px; }
  .preview-carousel-nav-arrow {
    width: 44px;
    height: 44px;
    font-size: 22px;
  }
  .preview-carousel-slide .product-stage {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    display: grid;
    place-items: center;
    box-sizing: border-box;
    border-radius: 0;
    background-color: var(--preview-paper-bg);
    background-image: var(--preview-paper-frame);
    background-repeat: no-repeat;
    background-position: center;
    background-size: var(--preview-paper-frame-size);
    box-shadow: none;
  }
  .preview-carousel-slide .product-svg {
    width: calc(100% * var(--preview-product-scale));
    height: calc(100% * var(--preview-product-scale));
    max-width: calc(100% * var(--preview-product-scale));
    max-height: calc(100% * var(--preview-product-scale));
    display: block;
  }
  /* Desktop customizer: tri zóny v rámci výšky obrazovky */
  body.customizer-mode .customizer-screen {
    min-height: 0;
    height: 100%;
    max-height: 100%;
    align-items: stretch;
    padding-bottom: 0;
    overflow: hidden;
  }
  body.customizer-mode .customizer-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 0;
    height: 100%;
    max-height: 100%;
    align-self: stretch;
  }
  body.customizer-mode .preview-carousel-shell {
    flex: 0 1 auto;
    width: min(100cqw, calc(100cqh * 340 / 420));
    height: min(100cqh, calc(100cqw * 420 / 340));
    max-width: 100%;
    max-height: 100%;
    aspect-ratio: 340 / 420;
    margin-inline: auto;
    align-self: center;
    min-height: 0;
  }
  body.customizer-mode .preview-carousel {
    height: 100%;
    min-height: 0;
    max-height: 100%;
  }
  body.customizer-mode .preview-carousel-slide .product-stage {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    background-color: var(--preview-paper-bg);
    background-image: var(--preview-paper-frame);
    background-repeat: no-repeat;
    background-position: center;
    background-size: var(--preview-paper-frame-size);
    display: grid;
    place-items: center;
  }
  body.customizer-mode .preview-carousel-slide .product-svg {
    width: calc(100% * var(--preview-product-scale));
    height: calc(100% * var(--preview-product-scale));
    max-width: calc(100% * var(--preview-product-scale));
    max-height: calc(100% * var(--preview-product-scale));
  }
  .price-card {
    position: static;
    flex-shrink: 0;
    min-height: 0;
    align-self: stretch;
    width: 100%;
    min-width: 0;
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 16px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: stretch;
  }
  .price-card-summary {
    min-width: 0;
  }
  .price-card-summary strong { font-size: 24px; }
  .price-card .primary-button {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    flex: none;
    min-height: 48px;
    font-size: 15px;
  }
  .control-toolbar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0;
    padding: 10px 0 8px;
    overflow: hidden;
    border-bottom: 1px solid rgba(238, 229, 228, .85);
    background: linear-gradient(180deg, #fff7f9 0%, #fff 100%);
    flex-shrink: 0;
  }
  .control-toolbar-track {
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: thin;
  }
  .control-toolbar .control-tabs {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    gap: 8px;
    padding: 0 12px;
    background: none;
    border: 0;
    min-width: min-content;
  }
  .control-tabs button,
  .control-tabs .control-tab-action {
    flex: 0 0 auto;
    width: auto;
    min-height: var(--control-tab-h);
    min-width: var(--control-tab-w);
    padding: 4px 5px 5px;
    background: transparent;
  }
  .control-tabs .control-tab-action:hover {
    border-color: rgba(238, 116, 142, .45);
    background: #fff7f9;
  }
  .control-tabs span {
    font-size: 11px;
    letter-spacing: 0;
    line-height: 1.25;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    max-width: 100%;
    padding-bottom: 1px;
  }
  .customizer-dock .control-toolbar .control-tab-action {
    min-height: 38px;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease;
  }
  .checkout-pane {
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
    background: #fff;
  }
  .checkout-pane .price-card {
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  }
  .content-section { padding-top: 34px; }
  .product-grid, .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .info-grid-section { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
  .page-shell {
    padding: calc(var(--header-h) + env(safe-area-inset-top) + 32px) 20px 48px;
  }
  .page-card {
    border-radius: 22px;
    box-shadow: 0 14px 34px rgba(74, 47, 51, .06);
  }
  .gallery-grid article {
    border-radius: 20px;
    transition: transform .18s ease, box-shadow .18s ease;
  }
  .gallery-grid article:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(74, 47, 51, .1);
  }
  .page-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .page-card-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .size-guide-page-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sheet-panel { left: 50%; right: auto; width: min(520px, 100vw); transform: translateX(-50%); border-radius: 26px 26px 0 0; }
  .cart-sheet .sheet-panel,
  .checkout-sheet .sheet-panel,
  .size-sheet .sheet-panel {
    left: auto;
    right: 0;
    top: 0;
    bottom: 0;
    width: min(520px, 44vw);
    max-height: 100vh;
    min-height: 100vh;
    transform: none;
    border-radius: 26px 0 0 26px;
    box-shadow: -18px 0 44px rgba(45, 31, 31, .18);
    margin-inline: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  .size-sheet .size-panel { width: auto; margin-inline: 0; }
  .cart-sheet .cart-items {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .cart-sheet .cart-totals,
  .cart-sheet .cart-sheet-actions,
  .cart-sheet .primary-button,
  .size-sheet .size-sheet-actions,
  .size-sheet .size-sheet-body {
    flex-shrink: 0;
  }
  .size-sheet .size-sheet-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

@media (min-width: 1200px) {
  main { max-width: min(1320px, 92vw); }
  body.customizer-mode .customizer-screen {
    grid-template-columns: minmax(0, 1.15fr) 440px;
    gap: 24px;
  }
}

@media (min-width: 760px) and (max-width: 899px) {
  body.customizer-mode .customizer-screen {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 12px;
  }
  body.customizer-mode .customizer-preview {
    grid-column: 1;
    grid-row: 1;
    min-height: 0;
    height: 100%;
    max-height: 100%;
  }
  body.customizer-mode .preview-carousel-shell {
    width: min(100cqw, calc(100cqh * 340 / 420));
    height: min(100cqh, calc(100cqw * 420 / 340));
    min-height: 0;
    max-height: 100%;
  }
  .customizer-dock {
    grid-column: 1;
    grid-row: 2;
    position: static;
    max-height: 100%;
    height: 100%;
    min-height: 0;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    grid-template-areas:
      "tools"
      "checkout";
    gap: 0;
    overflow: hidden;
  }
  .control-panel {
    position: static;
    max-height: none;
  }
  .price-card {
    position: static;
  }
}

@media print {
  body > *:not(.production-print-sheet) {
    display: none !important;
  }
  body {
    background: #fff !important;
    color: #111;
    overflow: visible !important;
  }
  .production-print-sheet {
    display: block !important;
    padding: 14mm;
    font-family: "Nunito", Arial, sans-serif;
  }
  .production-print-sheet header {
    border-bottom: 2px solid #111;
    margin-bottom: 10mm;
    padding-bottom: 5mm;
  }
  .production-print-sheet h1 {
    margin: 0;
    font-size: 24pt;
  }
  .production-print-sheet p {
    margin: 2mm 0 0;
  }
  .production-print-item {
    break-inside: avoid;
    border: 1px solid #ccc;
    border-radius: 6mm;
    margin-bottom: 8mm;
    padding: 6mm;
  }
  .production-print-item h2 {
    margin: 0 0 5mm;
    font-size: 16pt;
  }
  .production-print-grid {
    display: grid;
    grid-template-columns: 52mm 1fr;
    gap: 8mm;
    align-items: start;
  }
  .production-print-grid svg {
    width: 52mm;
    height: 64mm;
    border: 1px solid #eee;
    border-radius: 4mm;
  }
  .production-print-grid dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3mm;
    margin: 0;
  }
  .production-print-grid div {
    border-bottom: 1px solid #ddd;
    padding-bottom: 2mm;
  }
  .production-print-grid dt {
    color: #555;
    font-size: 8pt;
    font-weight: 900;
    text-transform: uppercase;
  }
  .production-print-grid dd {
    margin: 1mm 0 0;
    font-size: 12pt;
    font-weight: 800;
  }
  .production-print-sheet footer {
    display: flex;
    justify-content: space-between;
    border-top: 2px solid #111;
    padding-top: 5mm;
    font-size: 14pt;
  }
}
