:root {
  --brown-900: #4d2d1f;
  --brown-800: #623b27;
  --brown-700: #7a492e;
  --brown-600: #9a5c35;
  --brown-500: #b96f42;
  --beige-100: #fbf7ef;
  --beige-200: #f4ead9;
  --beige-300: #ead8bc;
  --beige-400: #d9c09c;
  --ink: #30261f;
  --muted: #75675d;
  --white: #ffffff;
  --success: #426c4d;
  --danger: #a64232;
  --warning: #a86724;
  --shadow: 0 18px 48px rgba(77, 45, 31, 0.12);
  --soft-shadow: 0 8px 24px rgba(77, 45, 31, 0.08);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 10%, rgba(234, 216, 188, .35), transparent 30%),
    linear-gradient(180deg, #fffdf9 0%, var(--beige-100) 100%);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  padding-bottom: 92px;
}

button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }
a { color: inherit; text-decoration: none; }

.site-header {
  min-height: 76px;
  padding: 10px clamp(18px, 4vw, 56px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  background: rgba(255, 253, 249, .9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(122, 73, 46, .12);
  position: sticky;
  top: 0;
  z-index: 50;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--beige-300);
}
.brand span { display: flex; flex-direction: column; line-height: 1.15; }
.brand strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.2rem; letter-spacing: .02em; color: var(--brown-800); }
.brand small { color: var(--muted); margin-top: 4px; }
.top-nav { display: flex; gap: 10px; }
.top-nav a { padding: 9px 14px; border-radius: 999px; color: var(--muted); }
.top-nav a:hover, .top-nav a.active { background: var(--beige-200); color: var(--brown-800); }

.storage-mode-notice {
  margin: 12px auto 0;
  width: min(1180px, calc(100% - 28px));
  padding: 10px 14px;
  border: 1px solid var(--beige-300);
  border-radius: 12px;
  background: #fff8e8;
  color: var(--brown-800);
  font-size: .82rem;
  box-shadow: var(--soft-shadow);
}
.storage-mode-notice[hidden] { display: none; }
.storage-mode-notice code { font-size: .78rem; }

main { width: min(1540px, 100%); margin: 0 auto; }
.intro-band {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  padding: 36px clamp(20px, 4vw, 56px) 24px;
}
.intro-band > div:first-child { max-width: 760px; }
.eyebrow {
  margin: 0 0 8px;
  color: var(--brown-600);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; color: var(--brown-900); }
h1 { font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.02; margin: 0 0 14px; font-weight: 500; }
h2 { margin: 0; font-size: 1.15rem; }
.intro-band p:not(.eyebrow) { margin: 0; color: var(--muted); max-width: 680px; }
.intro-note {
  flex: 0 0 310px;
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid var(--beige-300);
  background: rgba(255,255,255,.66);
  border-radius: var(--radius-md);
  box-shadow: var(--soft-shadow);
}
.intro-note small { color: var(--muted); }
.measure-icon { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--beige-200); color: var(--brown-700); font-weight: 900; }

.customizer-shell {
  padding: 0 clamp(12px, 2vw, 28px) 28px;
  display: grid;
  grid-template-columns: minmax(245px, 285px) minmax(430px, 1fr) minmax(280px, 340px);
  gap: 18px;
  align-items: stretch;
}
.control-panel, .canvas-column {
  border: 1px solid rgba(122, 73, 46, .14);
  background: rgba(255,255,255,.78);
  border-radius: var(--radius-lg);
  box-shadow: var(--soft-shadow);
  min-width: 0;
}
.control-panel { overflow: hidden; }
.panel-section { padding: 20px; border-bottom: 1px solid rgba(122, 73, 46, .11); }
.panel-section:last-child { border-bottom: 0; }
.section-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; }
.section-heading > span { width: 27px; height: 27px; display: grid; place-items: center; background: var(--brown-600); color: white; border-radius: 50%; font-size: .78rem; font-weight: 800; }
label { display: block; font-size: .82rem; font-weight: 700; margin-bottom: 7px; color: var(--brown-800); }
.helper-text { color: var(--muted); font-size: .78rem; margin: 8px 0 0; }
.field-error { min-height: 1.2em; color: var(--danger); font-size: .78rem; margin: 7px 0 0; }

.variant-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(62px, 1fr)); gap: 9px; }
.variant-button {
  border: 1px solid var(--beige-300);
  background: white;
  border-radius: 12px;
  padding: 8px;
  min-width: 0;
  color: var(--ink);
  transition: .18s ease;
}
.variant-button:hover { transform: translateY(-1px); box-shadow: var(--soft-shadow); }
.variant-button.active { outline: 2px solid var(--brown-600); border-color: transparent; }
.variant-swatch { display: block; width: 100%; aspect-ratio: 1.2; border-radius: 8px; margin-bottom: 6px; border: 1px solid rgba(0,0,0,.08); }
.variant-button small { font-size: .72rem; }

.name-entry-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.text-help { margin: -5px 0 14px; }
.text-line-inputs { display: grid; gap: 12px; }
.text-line-entry { padding: 11px; border: 1px solid var(--beige-300); border-radius: 13px; background: rgba(251,247,239,.65); }
.text-line-entry label { margin-bottom: 6px; }
.text-line-entry .field-error { margin-bottom: 0; }
input, textarea, select {
  width: 100%;
  border: 1px solid var(--beige-300);
  background: white;
  border-radius: 10px;
  padding: 10px 11px;
  color: var(--ink);
  outline: none;
}
input:focus, textarea:focus, select:focus { border-color: var(--brown-500); box-shadow: 0 0 0 3px rgba(185, 111, 66, .14); }
.letter-availability { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.letter-chip { min-width: 30px; padding: 4px 8px; border-radius: 999px; background: var(--beige-200); color: var(--brown-800); font-weight: 800; font-size: .75rem; text-align: center; }
.letter-chip.sold-out { opacity: .5; text-decoration: line-through; }

.layers-section { min-height: 180px; }
.layers-list { display: grid; gap: 8px; }
.layer-row { display: grid; grid-template-columns: 34px minmax(0,1fr) auto; gap: 9px; align-items: center; border: 1px solid var(--beige-300); border-radius: 11px; padding: 8px; background: white; }
.layer-row.active { border-color: var(--brown-500); background: var(--beige-100); }
.layer-row img { width: 32px; height: 32px; object-fit: contain; }
.layer-row button { border: 0; background: none; color: var(--danger); padding: 4px 6px; }
.layer-label { min-width: 0; }
.layer-label strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .82rem; }
.layer-label small { color: var(--muted); }
.empty-state { color: var(--muted); font-size: .82rem; padding: 16px 4px; margin: 0; text-align: center; border: 1px dashed var(--beige-300); border-radius: 12px; }

.canvas-column { display: flex; flex-direction: column; min-height: 735px; overflow: hidden; }
.canvas-toolbar { min-height: 58px; display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; border-bottom: 1px solid rgba(122, 73, 46, .11); }
.canvas-toolbar > div { display: flex; align-items: center; gap: 6px; }
.icon-button, .text-button, .secondary-button, .primary-button, .danger-button {
  border-radius: 10px;
  padding: 9px 12px;
  font-weight: 750;
  border: 1px solid transparent;
  transition: .16s ease;
}
.icon-button { min-width: 38px; background: white; border-color: var(--beige-300); color: var(--brown-800); }
.icon-button:hover, .secondary-button:hover { border-color: var(--brown-500); }
.text-button { background: transparent; color: var(--muted); }
.secondary-button { background: white; color: var(--brown-800); border-color: var(--beige-300); }
.primary-button { background: var(--brown-600); color: white; box-shadow: 0 6px 16px rgba(154, 92, 53, .24); }
.primary-button:hover:not(:disabled) { background: var(--brown-700); transform: translateY(-1px); }
.danger-button { background: #fff6f4; color: var(--danger); border-color: #efd0c9; }
.design-status { padding: 6px 10px; border-radius: 999px; font-size: .76rem; font-weight: 800; }
.design-status.valid { background: #e8f3ea; color: var(--success); }
.design-status.invalid { background: #fff1e2; color: var(--warning); }

.canvas-stage {
  flex: 1;
  min-height: 560px;
  display: grid;
  place-items: center;
  padding: 22px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(154,92,53,.025) 1px, transparent 1px),
    linear-gradient(rgba(154,92,53,.025) 1px, transparent 1px),
    radial-gradient(circle at center, #fffdfa, #f6eee2);
  background-size: 22px 22px, 22px 22px, auto;
}
.product-canvas {
  position: relative;
  height: min(570px, 70vh);
  aspect-ratio: 400 / 640;
  user-select: none;
  touch-action: none;
  filter: drop-shadow(0 24px 25px rgba(77,45,31,.18));
}
.canvas-stage > .product-canvas {
  transform: translate(var(--canvas-focus-offset-x, 0px), var(--canvas-focus-offset-y, 0px));
}
.product-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.design-surface {
  position: absolute;
  left: 11.25%;
  top: 10.9375%;
  width: 77.5%;
  height: 72.65625%;
  outline: none;
  touch-action: none;
}
.safe-guide { position: absolute; inset: 2%; border: 1px dashed rgba(154,92,53,.22); border-radius: 11px; opacity: 0; transition: opacity .15s ease; pointer-events: none; z-index: 1; }
.design-surface.dragging .safe-guide, .design-surface:focus-visible .safe-guide { opacity: 1; }
.restricted-zone-guide {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  border: 1.5px dashed rgba(151, 61, 48, .62);
  border-radius: 8px;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(176, 70, 54, .11) 0,
      rgba(176, 70, 54, .11) 6px,
      rgba(255, 255, 255, .02) 6px,
      rgba(255, 255, 255, .02) 12px
    );
  box-sizing: border-box;
}
.restricted-zone-guide::after {
  content: attr(data-label);
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  max-width: 92%;
  padding: 3px 6px;
  border-radius: 999px;
  background: rgba(255, 253, 249, .82);
  color: rgba(121, 48, 38, .82);
  font-size: clamp(.48rem, 1.1vw, .65rem);
  font-weight: 800;
  line-height: 1.05;
  text-align: center;
  white-space: nowrap;
}
.design-surface.dragging .restricted-zone-guide,
.design-surface:focus-visible .restricted-zone-guide { border-color: rgba(151, 61, 48, .9); }
.restricted-zone-guide.no-label::after { display: none; }

.design-item {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: center center;
  cursor: grab;
  touch-action: none;
  z-index: 3;
}
.design-item:active { cursor: grabbing; }
.design-item img { width: 100%; height: 100%; object-fit: contain; display: block; pointer-events: none; filter: drop-shadow(0 1px 1px rgba(0,0,0,.16)); }
.design-item.selected::after { content: ''; position: absolute; inset: -4px; border: 1.5px dashed var(--brown-600); border-radius: 6px; pointer-events: none; }
.design-item.invalid::after { content: ''; position: absolute; inset: -5px; border: 2px solid var(--danger); border-radius: 7px; background: rgba(166,66,50,.05); pointer-events: none; }
.design-item.name-group, .design-item.text-group { display: flex; align-items: center; }
.design-item.name-group img, .design-item.text-group img { flex: none; height: 100%; }

.selection-toolbar { padding: 12px 16px; border-top: 1px solid rgba(122,73,46,.11); background: #fffdf9; }
.selection-toolbar > span { font-weight: 800; color: var(--brown-800); }
.selection-actions { margin: 8px 0 5px; display: flex; align-items: center; gap: 8px; }
.selection-actions input[type="range"] { flex: 1; padding: 0; border: 0; box-shadow: none; accent-color: var(--brown-600); }
.selection-toolbar small { color: var(--muted); }

.patch-library-section { height: 100%; display: flex; flex-direction: column; }
.patch-toolbar { display: grid; gap: 10px; }
.category-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.category-tab { border: 1px solid var(--beige-300); background: white; color: var(--muted); border-radius: 999px; padding: 6px 10px; font-size: .75rem; font-weight: 750; }
.category-tab.active { background: var(--brown-600); border-color: var(--brown-600); color: white; }
.patch-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; margin-top: 14px; overflow: auto; padding-right: 2px; }
.patch-card { position: relative; border: 1px solid var(--beige-300); background: white; border-radius: 14px; padding: 10px; min-width: 0; text-align: left; color: var(--ink); }
.patch-card:hover:not(:disabled) { border-color: var(--brown-500); box-shadow: var(--soft-shadow); transform: translateY(-1px); }
.patch-card img { width: 100%; height: 85px; object-fit: contain; display: block; margin-bottom: 8px; }
.patch-card strong { display: block; font-size: .8rem; line-height: 1.2; min-height: 2.4em; }
.patch-card small { color: var(--muted); font-size: .7rem; }
.patch-price { display: block; margin-top: 5px; color: var(--brown-700); font-weight: 850; }
.sold-out-badge { position: absolute; top: 8px; right: 8px; padding: 4px 7px; background: var(--ink); color: white; border-radius: 999px; font-size: .65rem; font-weight: 800; }
.fit-badge { position: absolute; top: 8px; right: 8px; padding: 4px 7px; background: var(--beige-200); color: var(--brown-700); border: 1px solid var(--beige-400); border-radius: 999px; font-size: .65rem; font-weight: 800; }
.patch-card:disabled img { filter: grayscale(1); opacity: .55; }

.checkout-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  min-height: 78px;
  padding: 11px clamp(18px, 4vw, 56px);
  background: rgba(255, 253, 249, .95);
  backdrop-filter: blur(18px);
  border-top: 1px solid rgba(122,73,46,.14);
  box-shadow: 0 -10px 30px rgba(77,45,31,.08);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
}
.price-summary { display: grid; grid-template-columns: auto auto; column-gap: 12px; align-items: baseline; }
.price-summary small { grid-column: 1; color: var(--muted); }
.price-summary strong { grid-column: 2; grid-row: 1 / span 2; font-family: Georgia, serif; font-size: 1.55rem; color: var(--brown-800); }
.price-summary span { grid-column: 1; font-size: .78rem; color: var(--ink); }

.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(48,38,31,.55); backdrop-filter: blur(5px); }
.modal-card { position: relative; z-index: 1; width: min(960px, 100%); max-height: 92vh; overflow: auto; padding: 28px; background: #fffdf9; border-radius: 24px; box-shadow: var(--shadow); }
.modal-card > h2 { font-size: 1.9rem; margin-bottom: 20px; }
.modal-close { position: absolute; right: 16px; top: 14px; border: 0; background: transparent; font-size: 1.8rem; color: var(--muted); }
.review-layout { display: grid; grid-template-columns: minmax(280px, .8fr) minmax(300px, 1.2fr); gap: 28px; }
.review-preview { min-height: 470px; display: grid; place-items: center; border: 1px solid var(--beige-300); border-radius: 18px; background: var(--beige-100); overflow: hidden; }
.review-preview .product-canvas { height: 450px; pointer-events: none; }
.review-details { margin: 0 0 18px; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; }
.review-details dt { color: var(--muted); }
.review-details dd { margin: 0; font-weight: 750; }
.note-label { margin-top: 15px; }
.confirmation-check { display: grid; grid-template-columns: 20px 1fr; gap: 9px; align-items: start; margin: 15px 0; font-weight: 500; color: var(--muted); }
.confirmation-check input { margin-top: 3px; width: auto; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; }
.prototype-note { margin: 14px 0 0; color: var(--muted); font-size: .75rem; }
.beta-order-panel { margin: 4px 0 18px; padding: 16px 18px; border: 1px solid var(--beige-300); border-radius: 18px; background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(248,240,230,.92)); }
.beta-order-title { margin: 0 0 8px; font-family: Georgia, serif; font-size: 1.08rem; color: var(--brown-800); }
.beta-order-copy { margin: 0; color: var(--muted); line-height: 1.55; }
.beta-order-copy a { color: var(--brown-700); font-weight: 700; text-decoration-color: rgba(122,73,46,.35); }
.beta-modal-actions { flex-wrap: wrap; justify-content: flex-start; }
.external-link-button { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }

.toast { position: fixed; left: 50%; bottom: 98px; z-index: 130; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--brown-900); color: white; padding: 11px 16px; border-radius: 999px; box-shadow: var(--shadow); transition: .2s ease; font-size: .85rem; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Admin */
.admin-main { width: min(1260px, 100%); margin: 0 auto; padding: 34px clamp(18px, 4vw, 48px) 70px; }
.admin-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 24px; }
.admin-hero h1 { margin-bottom: 8px; }
.admin-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.admin-tab { border: 1px solid var(--beige-300); padding: 9px 14px; background: white; border-radius: 999px; color: var(--muted); font-weight: 750; }
.admin-tab.active { background: var(--brown-600); color: white; border-color: var(--brown-600); }
.admin-panel { display: none; }
.admin-panel.active { display: block; }
.admin-grid { display: grid; grid-template-columns: minmax(300px, 380px) minmax(0,1fr); gap: 20px; }
.admin-card { background: rgba(255,255,255,.84); border: 1px solid var(--beige-300); border-radius: 20px; padding: 20px; box-shadow: var(--soft-shadow); }
.admin-card h2 { margin-bottom: 15px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.form-grid .full { grid-column: 1 / -1; }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 15px; }
.data-list { display: grid; gap: 10px; }
.data-row { display: grid; grid-template-columns: 56px minmax(0,1fr) auto; gap: 12px; align-items: center; border: 1px solid var(--beige-300); background: white; border-radius: 14px; padding: 10px; }
.data-row img { width: 54px; height: 54px; object-fit: contain; border-radius: 8px; background: var(--beige-100); }
.data-row strong { display: block; }
.data-row small { color: var(--muted); }
.data-row-actions { display: flex; gap: 5px; }
.preview-calibration { min-height: 520px; display: grid; place-items: center; background: var(--beige-100); border: 1px dashed var(--beige-400); border-radius: 16px; overflow: hidden; }
.preview-calibration .product-canvas { height: 500px; }
.admin-callout { border-left: 4px solid var(--brown-500); background: var(--beige-100); padding: 12px 14px; border-radius: 0 12px 12px 0; color: var(--muted); margin-bottom: 16px; }
.status-badge { display: inline-block; padding: 4px 7px; border-radius: 999px; font-size: .7rem; font-weight: 800; background: #e8f3ea; color: var(--success); }
.status-badge.disabled { background: #f2e9e6; color: var(--danger); }
.json-box { width: 100%; min-height: 280px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .76rem; }

@media (max-width: 1120px) {
  .customizer-shell { grid-template-columns: minmax(230px, 270px) minmax(410px, 1fr); }
  .right-panel { grid-column: 1 / -1; }
  .patch-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); max-height: none; }
  .canvas-column { min-height: 700px; }
}

@media (max-width: 780px) {
  body { padding-bottom: 88px; }
  .site-header { padding: 8px 14px; min-height: 66px; }
  .brand img { width: 42px; height: 42px; }
  .brand small { display: none; }
  .top-nav a { padding: 7px 9px; font-size: .78rem; }
  .intro-band { padding: 24px 18px 16px; display: block; }
  .intro-note { margin-top: 16px; max-width: none; }
  .customizer-shell { display: flex; flex-direction: column; padding: 0 10px 18px; }
  .canvas-column { order: 1; min-height: auto; }
  .left-panel { order: 2; }
  .right-panel { order: 3; }
  .canvas-stage { min-height: 520px; padding: 10px; }
  .product-canvas { height: min(510px, 66vh); }
  .patch-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .variant-options { grid-template-columns: repeat(auto-fit, minmax(64px, 1fr)); }
  .checkout-bar { padding: 9px 14px; gap: 12px; }
  .checkout-bar .primary-button { flex: 1; }
  .price-summary { flex: 0 0 auto; }
  .price-summary strong { font-size: 1.25rem; }
  .price-summary small { display: none; }
  .review-layout { grid-template-columns: 1fr; }
  .review-preview { min-height: 390px; }
  .review-preview .product-canvas { height: 380px; }
  .modal-card { padding: 22px 16px; }
  .selection-actions { flex-wrap: wrap; }
  .selection-actions input[type="range"] { order: 4; flex-basis: 100%; }
  .admin-grid { grid-template-columns: 1fr; }
  .admin-hero { display: block; }
  .admin-hero .primary-button { margin-top: 12px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
}

@media (max-width: 430px) {
  .brand strong { font-size: 1rem; }
  h1 { font-size: 2rem; }
  .intro-note { font-size: .85rem; }
  .canvas-stage { min-height: 470px; }
  .product-canvas { height: 455px; }
  .panel-section { padding: 17px; }
  .checkout-bar { min-height: 72px; }
  .price-summary span { max-width: 120px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

/* Variant management enhancements */
.variant-admin-thumb {
  position: relative;
  width: 54px;
  height: 54px;
}
.variant-admin-thumb img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 8px;
  background: var(--beige-100);
}
.variant-admin-thumb span {
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 18px;
  height: 18px;
  border: 2px solid white;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(48, 38, 31, .22);
}
input[type="color"] {
  min-height: 42px;
  padding: 4px;
}

/* Multi-product customizer — v4 */
.product-options { display: grid; gap: 9px; }
.product-option {
  width: 100%;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  padding: 9px;
  border: 1px solid var(--beige-300);
  border-radius: 13px;
  background: white;
  color: var(--ink);
  text-align: left;
  transition: .18s ease;
}
.product-option:hover { transform: translateY(-1px); box-shadow: var(--soft-shadow); }
.product-option.active { outline: 2px solid var(--brown-600); border-color: transparent; background: var(--beige-100); }
.product-option-image { width: 64px; height: 50px; border-radius: 9px; background: var(--beige-100); display: grid; place-items: center; overflow: hidden; }
.product-option-image img { width: 100%; height: 100%; object-fit: contain; }
.product-option-image.portrait img { height: 62px; }
.product-option span:last-child { min-width: 0; }
.product-option strong { display: block; color: var(--brown-800); font-family: Georgia, "Times New Roman", serif; font-size: .9rem; }
.product-option small { color: var(--muted); font-size: .7rem; }

.variant-options { grid-template-columns: repeat(auto-fit, minmax(54px, 1fr)); }
.text-line-inputs { display: grid; gap: 12px; }
.text-line-control[hidden] { display: none; }

.product-canvas {
  aspect-ratio: var(--canvas-ratio, 400 / 640);
  height: auto;
  max-width: none;
}
.product-canvas.portrait {
  height: min(570px, 70vh);
  width: auto;
}
.product-canvas.landscape {
  width: min(980px, 100%);
  min-width: 720px;
  height: auto;
}
.canvas-stage.landscape-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: auto;
  overflow-y: hidden;
  min-height: 360px;
  scrollbar-color: var(--beige-400) transparent;
}
.canvas-stage.landscape-stage .product-canvas { flex: 0 0 auto; }
.canvas-scroll-hint { margin: -4px 16px 10px; text-align: center; color: var(--muted); font-size: .75rem; }
.safe-guide.canvas-boundary { border-style: solid; border-color: rgba(154,92,53,.35); border-radius: 3px; }

.review-preview.landscape-review { min-height: 300px; overflow-x: auto; justify-content: flex-start; padding: 20px; }
.review-preview.landscape-review .product-canvas { width: 780px; min-width: 780px; height: auto; }

.variant-admin-thumb { position: relative; width: 56px; height: 56px; }
.variant-admin-thumb img { width: 100%; height: 100%; }
.variant-admin-thumb span { position: absolute; width: 16px; height: 16px; right: -2px; bottom: -2px; border: 2px solid white; border-radius: 50%; box-shadow: 0 1px 4px rgba(0,0,0,.18); }

@media (max-width: 780px) {
  .canvas-stage.landscape-stage { justify-content: flex-start; min-height: 270px; padding: 24px 10px; }
  .product-canvas.landscape { width: 720px; min-width: 720px; }
  .product-canvas.portrait { height: min(510px, 66vh); width: auto; }
  .review-preview.landscape-review .product-canvas { width: 700px; min-width: 700px; }
}

@media (max-width: 430px) {
  .product-canvas.portrait { height: 455px; }
  .product-option { grid-template-columns: 58px minmax(0,1fr); }
  .product-option-image { width: 58px; }
}

.product-admin-switcher {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid var(--beige-300);
  background: rgba(255,255,255,.8);
  border-radius: 16px;
  box-shadow: var(--soft-shadow);
}
.product-admin-switcher-row { display: grid; grid-template-columns: minmax(220px, 1fr) auto auto; gap: 8px; align-items: center; }
.preview-calibration.landscape-preview { min-height: 300px; overflow-x: auto; justify-content: flex-start; padding: 20px; }
.preview-calibration.landscape-preview .product-canvas { width: 760px; min-width: 760px; height: auto; }

@media (max-width: 780px) {
  .product-admin-switcher-row { grid-template-columns: 1fr; }
  .preview-calibration.landscape-preview .product-canvas { width: 700px; min-width: 700px; }
}
.review-preview:not(.landscape-review) .product-canvas { height: 450px; width: auto; }
.preview-calibration:not(.landscape-preview) .product-canvas { height: 500px; width: auto; }
@media (max-width: 780px) {
  .review-preview:not(.landscape-review) .product-canvas { height: 380px; }
}

/* v4.5 — stable-height multi-product customizer workspace */
.customizer-shell {
  --customizer-height: 720px;
  align-items: start;
}

@media (min-width: 781px) {
  .control-panel,
  .canvas-column {
    height: var(--customizer-height);
    min-height: 0;
  }

  .control-panel {
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-color: var(--beige-400) transparent;
  }

  .canvas-column {
    position: sticky;
    top: 88px;
    align-self: start;
  }

  .right-panel {
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .right-panel .patch-library-section {
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
    overflow: hidden;
  }

  .right-panel .layers-section {
    flex: 0 0 auto;
    min-height: 0;
    max-height: 232px;
    overflow: hidden;
  }

  .right-panel .layers-list {
    max-height: 164px;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 2px;
  }

  .patch-grid {
    min-height: 0;
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-bottom: 12px;
  }
}

.canvas-column {
  overflow: hidden;
}

.canvas-stage,
.canvas-stage.landscape-stage {
  flex: none;
  height: var(--canvas-stage-height, 520px);
  min-height: 0;
  padding: 20px;
  overflow: auto;
  place-items: center;
  justify-content: center;
}

.product-canvas,
.product-canvas.portrait,
.product-canvas.landscape {
  flex: 0 0 auto;
  min-width: 0;
  max-width: none;
  width: auto;
  height: auto;
}

.selection-toolbar {
  min-height: 108px;
  border-top: 1px solid rgba(122,73,46,.11);
  border-bottom: 0;
}

/* v5.17: reclaim vertical space when no item is selected. When the toolbar
   appears, JS refits the product inside the same visible viewport. */
.selection-toolbar[hidden] {
  display: none !important;
}

.canvas-scroll-hint {
  margin: 0 16px 8px;
}

/* v5.17 — full-product responsive stage. */
.canvas-stage.fit-entire-product-stage { overflow: hidden; }
.canvas-stage.fit-entire-product-stage > .product-canvas {
  max-width: 100%;
  max-height: 100%;
}

@media (max-width: 1120px) and (min-width: 781px) {
  .right-panel {
    height: min(520px, var(--customizer-height));
  }
}

@media (max-width: 780px) {
  .customizer-shell {
    --customizer-height: auto;
  }

  .control-panel {
    height: auto;
    overflow: visible;
  }

  .canvas-column {
    position: static;
    height: auto;
    min-height: 0;
  }

  .canvas-stage,
  .canvas-stage.landscape-stage {
    height: var(--canvas-stage-height, 500px);
    min-height: 0;
    padding: 10px;
    justify-content: center;
    overflow: hidden;
  }

  .product-canvas,
  .product-canvas.portrait,
  .product-canvas.landscape {
    min-width: 0;
  }

  .selection-toolbar {
    min-height: 122px;
  }

  .right-panel {
    display: block;
    height: auto;
    overflow: visible;
  }

  .right-panel .patch-library-section,
  .right-panel .layers-section {
    height: auto;
    max-height: none;
    overflow: visible;
  }

  .right-panel .layers-list {
    max-height: none;
    overflow: visible;
  }
}

/* v4.9 — card-holder clear-window edge allowance */
.restricted-zone-guide.allowance-zone {
  border-color: rgba(167, 112, 35, .78);
  background: rgba(235, 199, 119, .08);
  z-index: 2;
}
.restricted-zone-guide.allowance-zone::after {
  background: rgba(255, 250, 235, .9);
  color: rgba(111, 73, 24, .92);
  white-space: normal;
  width: min(90%, 180px);
}
.restricted-zone-guide.restricted-zone-core {
  z-index: 2;
  border-color: rgba(151, 61, 48, .78);
  background:
    repeating-linear-gradient(
      135deg,
      rgba(176, 70, 54, .13) 0,
      rgba(176, 70, 54, .13) 6px,
      rgba(255, 255, 255, .02) 6px,
      rgba(255, 255, 255, .02) 12px
    );
}

/* v5.2 keychain orientation selector and vertical embroidered text */
.orientation-section {
  margin-top: 16px;
  padding-top: 15px;
  border-top: 1px solid rgba(122,73,46,.12);
}
.orientation-section[hidden] { display: none; }
.subsection-label {
  display: block;
  margin-bottom: 9px;
  color: var(--brown-800);
  font-family: Georgia, "Times New Roman", serif;
  font-size: .9rem;
  font-weight: 700;
}
.orientation-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}
.orientation-button {
  min-height: 54px;
  padding: 9px 10px;
  border: 1px solid rgba(122,73,46,.18);
  border-radius: 11px;
  background: #fffdfa;
  color: var(--brown-800);
  text-align: left;
  cursor: pointer;
}
.orientation-button strong,
.orientation-button small { display: block; }
.orientation-button small { margin-top: 2px; color: var(--muted); font-size: .7rem; }
.orientation-button.active {
  border-color: var(--brown-600);
  background: var(--beige-100);
  box-shadow: inset 0 0 0 1px var(--brown-600);
}
.orientation-help { margin: 8px 0 0; }
.design-item.text-group.vertical-text {
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}
.design-item.text-group.vertical-text img {
  flex: none;
  object-fit: contain;
}

/* v5.3 — compact patch library and accessible placement guide */
.patch-section-heading {
  position: relative;
  margin-bottom: 10px;
}
.patch-section-heading h2 { min-width: 0; }
.patch-help-popover {
  position: relative;
  margin-left: auto;
  flex: 0 0 auto;
}
.patch-help-button {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--beige-300);
  border-radius: 50%;
  background: var(--beige-100);
  color: var(--brown-700);
  font: 800 .82rem/1 Georgia, serif;
  cursor: help;
}
.patch-help-button:hover,
.patch-help-button:focus-visible {
  border-color: var(--brown-500);
  background: white;
  outline: none;
  box-shadow: 0 0 0 3px rgba(185, 111, 66, .14);
}
.patch-help-card {
  position: absolute;
  z-index: 35;
  top: calc(100% + 8px);
  right: 0;
  width: min(286px, calc(100vw - 42px));
  padding: 13px 14px;
  border: 1px solid var(--beige-300);
  border-radius: 14px;
  background: rgba(255, 253, 249, .98);
  box-shadow: 0 16px 35px rgba(77, 45, 31, .18);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
}
.patch-help-card::before {
  content: '';
  position: absolute;
  top: -6px;
  right: 9px;
  width: 10px;
  height: 10px;
  border-left: 1px solid var(--beige-300);
  border-top: 1px solid var(--beige-300);
  background: #fffdf9;
  transform: rotate(45deg);
}
.patch-help-card strong {
  display: block;
  color: var(--brown-800);
  font-size: .82rem;
  margin-bottom: 5px;
}
.patch-help-card .helper-text {
  margin: 0;
  color: var(--muted);
  font-size: .76rem;
  line-height: 1.45;
}
.patch-help-popover:hover .patch-help-card,
.patch-help-popover:focus-within .patch-help-card {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.right-panel .patch-library-section { padding: 16px; }
.right-panel .layers-section { padding: 13px 16px 14px; }
.right-panel .layers-section .section-heading { margin-bottom: 8px; }
.patch-toolbar { gap: 8px; }
.patch-toolbar input { padding-block: 8px; }
.category-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 7px 6px;
  padding: 1px 1px 2px;
  overflow: visible;
}
.category-tabs::-webkit-scrollbar { display: none; }
.category-tab {
  flex: 0 0 auto;
  max-width: 100%;
  padding: 6px 10px;
  white-space: nowrap;
}
.patch-grid { margin-top: 9px; }

@media (min-width: 781px) {
  .right-panel .layers-section {
    flex: 0 0 auto;
    max-height: 170px;
  }
  .right-panel .layers-list { max-height: 108px; }
  .right-panel .layers-section .empty-state { padding: 10px 4px; }
}

/* At two-column desktop widths, keep the full workspace height instead of
   compressing the patch panel to 520px. */
@media (max-width: 1120px) and (min-width: 781px) {
  .right-panel { height: var(--customizer-height); }
}

@media (max-width: 780px) {
  .right-panel .patch-library-section,
  .right-panel .layers-section { padding: 17px; }
  .patch-help-card {
    position: fixed;
    top: 82px;
    right: 14px;
    left: 14px;
    width: auto;
  }
  .patch-help-card::before { display: none; }
}

/* v5.12 — complete Review Design preview */
.review-preview {
  min-height: 470px;
  padding: 18px;
  overflow: hidden;
  place-items: center;
}
.review-preview.landscape-review {
  min-height: 300px;
  overflow: hidden;
  justify-content: center;
  padding: 18px;
}
.review-preview .product-canvas.review-fit-canvas,
.review-preview.landscape-review .product-canvas.review-fit-canvas,
.review-preview:not(.landscape-review) .product-canvas.review-fit-canvas {
  flex: 0 0 auto;
  min-width: 0;
  max-width: none;
  max-height: none;
  pointer-events: none;
  transform: none !important;
}
@media (max-width: 780px) {
  .review-preview { min-height: 390px; padding: 10px; }
  .review-preview.landscape-review { padding: 10px; }
}

/* v5.13 — two-sided tote design controls */
.canvas-toolbar { gap: 10px; }
.canvas-action-buttons { flex: 0 0 auto; }
.design-side-switch {
  display: inline-flex !important;
  align-items: center;
  gap: 3px !important;
  padding: 3px;
  margin: 0 auto;
  border: 1px solid var(--beige-300);
  border-radius: 12px;
  background: rgba(255,255,255,.86);
  box-shadow: 0 2px 8px rgba(77,45,31,.06);
}
.design-side-switch[hidden] { display: none !important; }
.design-side-button {
  min-width: 62px;
  border: 0;
  border-radius: 9px;
  padding: 7px 12px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.design-side-button strong { display: block; font-size: .78rem; line-height: 1.1; }
.design-side-button small { display: none; }
.design-side-button.active {
  background: var(--brown-600);
  color: white;
  box-shadow: 0 3px 9px rgba(122,73,46,.18);
}

/* v5.13 — show both tote sides together in Review Design */
.modal.dual-side-review .modal-card { width: min(1180px, 100%); }
.modal.dual-side-review .review-layout {
  grid-template-columns: minmax(520px, 1.25fr) minmax(300px, .75fr);
}
.review-preview.dual-side-preview {
  min-height: 580px;
  display: block;
  padding: 14px;
  overflow: auto;
}
.review-side-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
}
.review-side-card {
  min-width: 0;
  border: 1px solid var(--beige-300);
  border-radius: 15px;
  background: #fff;
  overflow: hidden;
}
.review-side-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--beige-300);
  background: var(--beige-100);
}
.review-side-heading strong { font-size: .9rem; color: var(--brown-800); }
.review-side-heading span { font-size: .72rem; color: var(--muted); text-align: right; }
.review-side-canvas-host {
  height: 500px;
  min-width: 0;
  display: grid;
  place-items: center;
  padding: 8px;
  overflow: hidden;
  background: radial-gradient(circle at center, #fffdfa, #f6eee2);
}
.review-side-canvas-host .product-canvas { pointer-events: none; }

@media (max-width: 900px) {
  .modal.dual-side-review .review-layout { grid-template-columns: 1fr; }
  .review-preview.dual-side-preview { min-height: 0; }
  .review-side-canvas-host { height: 430px; }
}
@media (max-width: 620px) {
  .design-side-button { min-width: 54px; padding: 7px 9px; }
  .review-side-grid { grid-template-columns: 1fr; }
  .review-side-canvas-host { height: 390px; }
}

/* v5.16 — polished Intro → Customizer flow */
[hidden] { display: none !important; }
body.intro-active { padding-bottom: 0; }

.intro-screen {
  width: min(1460px, 100%);
  margin: 0 auto;
  padding: clamp(42px, 6vw, 84px) clamp(20px, 4vw, 58px) 72px;
}

.intro-hero {
  max-width: 900px;
  margin: 0 auto 58px;
  text-align: center;
}
.intro-hero h1 {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(2.6rem, 5.3vw, 5.4rem);
  letter-spacing: -.035em;
}
.intro-lede {
  max-width: 680px;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
}
.intro-trust-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 25px;
}
.intro-trust-row span {
  padding: 7px 12px;
  border: 1px solid rgba(122,73,46,.14);
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  color: var(--brown-700);
  font-size: .75rem;
  font-weight: 700;
}
.intro-trust-row span::before {
  content: '✓';
  margin-right: 6px;
  color: var(--success);
}

.product-selection-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(122,73,46,.12);
}
.product-selection-heading .eyebrow { margin-bottom: 5px; }
.product-selection-heading h2 { font-size: clamp(1.45rem, 2vw, 2rem); font-weight: 500; }
.product-selection-heading > p { margin: 0; color: var(--muted); font-size: .86rem; }

.intro-product-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.intro-product-card {
  position: relative;
  min-width: 0;
  min-height: 430px;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(122,73,46,.14);
  border-radius: 22px;
  background: rgba(255,255,255,.84);
  box-shadow: 0 8px 26px rgba(77,45,31,.06);
  color: var(--ink);
  text-align: left;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.intro-product-card:hover {
  transform: translateY(-5px);
  border-color: rgba(154,92,53,.35);
  box-shadow: 0 20px 45px rgba(77,45,31,.12);
}
.intro-product-card:focus-visible {
  outline: 3px solid rgba(185,111,66,.28);
  outline-offset: 3px;
}
.intro-product-card.current-product { border-color: rgba(154,92,53,.28); }
.intro-product-number {
  position: absolute;
  top: 15px;
  left: 16px;
  z-index: 2;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(255,253,249,.86);
  backdrop-filter: blur(8px);
  color: var(--brown-700);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .08em;
}
.intro-product-image {
  height: 245px;
  display: grid;
  place-items: center;
  padding: 24px 18px 10px;
  background:
    radial-gradient(circle at 50% 45%, rgba(234,216,188,.27), transparent 50%),
    linear-gradient(180deg, rgba(251,247,239,.78), rgba(255,255,255,.18));
  overflow: hidden;
}
.intro-product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .24s ease;
}
.intro-product-card:hover .intro-product-image img { scale: 1.025; }
.intro-product-image.portrait img { max-width: 78%; }
.intro-product-copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 17px 17px 18px;
  border-top: 1px solid rgba(122,73,46,.09);
}
.intro-product-kicker {
  color: var(--brown-600);
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.intro-product-copy > strong {
  margin-top: 5px;
  color: var(--brown-900);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  font-weight: 600;
}
.intro-product-copy > span:not(.intro-product-footer) {
  margin-top: 7px;
  color: var(--muted);
  font-size: .76rem;
  line-height: 1.45;
}
.intro-product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 15px;
  color: var(--brown-800);
  font-size: .76rem;
}
.intro-product-footer b { font-weight: 800; }
.intro-product-footer em { font-style: normal; font-weight: 700; color: var(--brown-600); }

.customizer-screen {
  width: min(1540px, 100%);
  margin: 0 auto;
}
.customizer-context {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  padding: 22px clamp(18px, 3vw, 42px) 18px;
}
.back-to-products-button {
  align-self: start;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--beige-300);
  border-radius: 999px;
  background: rgba(255,255,255,.84);
  color: var(--brown-800);
  padding: 9px 13px;
  font-size: .78rem;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(77,45,31,.05);
}
.back-to-products-button:hover { background: var(--beige-100); }
.customizer-context-copy { min-width: 0; }
.customizer-context-copy .eyebrow { margin-bottom: 3px; }
.customizer-context-copy h1 {
  margin-bottom: 5px;
  font-size: clamp(1.7rem, 3vw, 2.7rem);
}
.customizer-context-copy > p:last-child {
  margin: 0;
  max-width: 720px;
  color: var(--muted);
  font-size: .82rem;
}
.customizer-scale-note {
  display: flex;
  align-items: center;
  gap: 11px;
  max-width: 290px;
  padding: 11px 14px;
  border: 1px solid rgba(122,73,46,.12);
  border-radius: 14px;
  background: rgba(255,255,255,.66);
}
.customizer-scale-note .measure-icon { width: 32px; height: 32px; flex: 0 0 32px; }
.customizer-scale-note strong { font-size: .78rem; }
.customizer-scale-note small { color: var(--muted); font-size: .68rem; }
.customizer-screen .customizer-shell { padding-top: 0; }

@media (max-width: 1240px) {
  .intro-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .intro-product-card { min-height: 405px; }
}

@media (max-width: 900px) {
  .intro-screen { padding-top: 42px; }
  .intro-hero { margin-bottom: 42px; }
  .intro-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .customizer-context { grid-template-columns: 1fr auto; }
  .back-to-products-button { grid-column: 1 / -1; justify-self: start; }
}

@media (max-width: 620px) {
  .intro-screen { padding: 34px 14px 52px; }
  .intro-hero { text-align: left; margin-bottom: 34px; }
  .intro-hero h1 { margin-left: 0; }
  .intro-lede { margin-left: 0; }
  .intro-trust-row { justify-content: flex-start; }
  .product-selection-heading { display: block; }
  .product-selection-heading > p { margin-top: 8px; }
  .intro-product-grid { grid-template-columns: 1fr; gap: 12px; }
  .intro-product-card { min-height: 0; display: grid; grid-template-columns: 42% 58%; }
  .intro-product-image { height: 210px; padding: 18px 8px; }
  .intro-product-copy { border-top: 0; border-left: 1px solid rgba(122,73,46,.09); padding: 15px 14px; }
  .intro-product-footer { display: block; }
  .intro-product-footer em { display: block; margin-top: 5px; }
  .customizer-context { display: block; padding: 15px 14px 12px; }
  .customizer-context-copy { margin-top: 15px; }
  .customizer-scale-note { display: none; }
}

/* Epi Studio UI version 5.16 */

/* Epi Studio UI version 5.17 — viewport-fit customizer */

/* v5.18 — clearer placement guidance and optional tote precision view */
.focus-area-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid var(--beige-300);
  border-radius: 10px;
  background: #fffdfa;
  color: var(--brown-700);
  font: inherit;
  font-size: .78rem;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(77,45,31,.04);
}
.focus-area-button:hover { border-color: var(--brown-400); background: var(--beige-100); }
.focus-area-button[aria-pressed="true"] {
  color: #fff;
  background: var(--brown-600);
  border-color: var(--brown-600);
}
.focus-area-button[hidden] { display: none !important; }
.focus-area-icon { font-size: 1rem; line-height: 1; }

.selection-toolbar .selection-help {
  display: block;
  margin-top: 8px;
  padding: 7px 10px;
  border: 1px solid rgba(154,92,53,.15);
  border-radius: 9px;
  background: #f9f2e8;
  color: #6b4b39;
  font-size: .78rem;
  line-height: 1.4;
  font-weight: 600;
}
.selection-toolbar .selection-help strong { color: var(--brown-700); font-weight: 850; }

.canvas-stage.design-area-focus-stage {
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(154,92,53,.035) 1px, transparent 1px),
    linear-gradient(rgba(154,92,53,.035) 1px, transparent 1px),
    radial-gradient(circle at center, #fffefa, #f4eadc);
  background-size: 18px 18px, 18px 18px, auto;
}
.canvas-stage.design-area-focus-stage > .product-canvas {
  max-width: none;
  max-height: none;
}

@media (max-width: 1050px) and (min-width: 781px) {
  .focus-area-button { padding-inline: 9px; }
  .focus-area-label { display: none; }
  .focus-area-icon { font-size: 1.08rem; }
}

@media (max-width: 780px) {
  .focus-area-button { min-height: 34px; padding: 6px 9px; }
  .focus-area-label { display: none; }
  .selection-toolbar .selection-help { font-size: .76rem; }
}


/* Epi Studio UI version 5.19 — centered tote focus + draggable/scrollable viewport */
.canvas-stage.design-area-focus-stage {
  position: relative;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
}
.canvas-stage.design-area-focus-stage.panning { cursor: grabbing; }
.canvas-stage.design-area-focus-stage > .product-canvas {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(
    calc(-50% + var(--canvas-focus-offset-x, 0px)),
    calc(-50% + var(--canvas-focus-offset-y, 0px))
  );
  will-change: transform;
}
.canvas-stage.design-area-focus-stage .design-item { cursor: move; }

.focus-pan-hint {
  position: absolute;
  z-index: 20;
  left: 14px;
  bottom: 14px;
  max-width: calc(100% - 28px);
  padding: 7px 10px;
  border: 1px solid rgba(154,92,53,.16);
  border-radius: 999px;
  background: rgba(255,253,249,.92);
  color: #6b4b39;
  font-size: .76rem;
  line-height: 1.3;
  box-shadow: 0 2px 8px rgba(77,45,31,.08);
  pointer-events: none;
  backdrop-filter: blur(5px);
}
.focus-pan-hint strong { color: var(--brown-700); }
.focus-pan-hint[hidden] { display: none !important; }

@media (max-width: 780px) {
  .focus-pan-hint {
    left: 10px;
    bottom: 10px;
    padding: 6px 9px;
    font-size: .7rem;
    border-radius: 10px;
  }
}

/* v5.20 — editorial landing hero above Step 1 */
body.intro-active main {
  width: 100%;
  max-width: none;
}

.intro-screen {
  width: 100%;
  max-width: none;
  padding: 0 0 82px;
}

.landing-hero {
  position: relative;
  width: 100%;
  min-height: clamp(620px, calc(100vh - 76px), 820px);
  display: grid;
  grid-template-columns: minmax(0, .93fr) minmax(520px, 1.07fr);
  align-items: stretch;
  overflow: hidden;
  background:
    radial-gradient(circle at 17% 20%, rgba(255,255,255,.96), transparent 32%),
    linear-gradient(102deg, #fffaf2 0%, #fbf2e5 48%, #f6e8d9 100%);
  border-bottom: 1px solid rgba(122,73,46,.1);
}

.landing-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .42;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(154,92,53,.07) 0 1px, transparent 1.2px),
    radial-gradient(circle at 78% 25%, rgba(154,92,53,.05) 0 1px, transparent 1.2px);
  background-size: 19px 19px, 23px 23px;
  mask-image: linear-gradient(90deg, black, transparent 84%);
}

.landing-hero-copy {
  position: relative;
  z-index: 5;
  align-self: center;
  max-width: 760px;
  padding: clamp(54px, 7vw, 92px) 36px clamp(44px, 5vw, 68px) clamp(38px, 7vw, 112px);
}

.hero-studio-wordmark {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(14px, 2.1vw, 28px);
  margin: 0 0 44px;
  font-size: clamp(.86rem, 1.4vw, 1.28rem);
  font-weight: 800;
  letter-spacing: .28em;
  text-transform: uppercase;
}
.hero-studio-wordmark span:nth-child(1) { color: #cf6558; }
.hero-studio-wordmark span:nth-child(2) { color: #173868; }
.hero-studio-wordmark span:nth-child(3) { color: #6b8a72; }

.hero-kicker {
  margin: 0 0 24px;
  color: #c85d4d;
  font-size: clamp(.72rem, 1vw, .96rem);
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.landing-hero h1 {
  max-width: 700px;
  margin: 0 0 26px;
  color: #153566;
  font-size: clamp(3.05rem, 5.6vw, 6rem);
  line-height: .98;
  letter-spacing: -.04em;
  text-wrap: balance;
}

.hero-lede {
  max-width: 590px;
  margin: 0;
  color: #25436c;
  font-size: clamp(1rem, 1.55vw, 1.36rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px 34px;
  margin-top: 38px;
}
.hero-primary-action,
.hero-secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  border-radius: 9px;
  font-size: .88rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.hero-primary-action {
  min-width: 236px;
  padding: 14px 24px;
  background: #173b72;
  color: white;
  box-shadow: 0 12px 28px rgba(23,59,114,.18);
}
.hero-primary-action:hover {
  transform: translateY(-2px);
  background: #123364;
  box-shadow: 0 16px 34px rgba(23,59,114,.24);
}
.hero-secondary-action {
  min-height: 46px;
  padding: 10px 0 7px;
  border-bottom: 2px solid #173b72;
  border-radius: 0;
  color: #173b72;
}
.hero-secondary-action span { margin-left: 11px; font-size: 1.35em; }
.hero-secondary-action:hover { transform: translateX(3px); }

.hero-feature-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  max-width: 720px;
  margin-top: 56px;
}
.hero-feature {
  min-width: 0;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 0 20px 0 0;
}
.hero-feature + .hero-feature {
  padding-left: 20px;
  border-left: 1px solid rgba(122,73,46,.18);
}
.hero-feature-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 1.25rem;
  font-weight: 800;
  color: #173b72;
}
.gift-icon { background: #f0bf58; }
.heart-icon { background: #ee7c6b; }
.check-icon { background: #a9c3a8; }
.hero-feature strong {
  display: block;
  color: #183663;
  font-size: .78rem;
  line-height: 1.25;
}
.hero-feature small {
  display: block;
  margin-top: 8px;
  color: #51617a;
  font-size: .69rem;
  line-height: 1.45;
}

.landing-hero-visual {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  isolation: isolate;
}
.hero-orb {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: saturate(.92);
  z-index: -2;
}
.hero-orb-lilac {
  width: min(48vw, 660px);
  aspect-ratio: 1;
  left: 4%;
  top: -8%;
  background: #d8d0e5;
}
.hero-orb-coral {
  width: min(37vw, 520px);
  aspect-ratio: 1;
  right: -12%;
  top: 2%;
  background: #e98270;
}
.hero-orb-cream {
  width: min(32vw, 430px);
  aspect-ratio: 1;
  right: 6%;
  bottom: -30%;
  background: #d9d1b7;
}
.hero-display-platform {
  position: absolute;
  border-radius: 50%;
  background: #e8d7ba;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.48);
  z-index: -1;
}
.platform-large {
  width: 430px;
  height: 118px;
  left: 16%;
  bottom: 2%;
}
.platform-small {
  width: 260px;
  height: 90px;
  right: 5%;
  bottom: 12%;
  background: #cbd0ac;
}

.hero-product,
.hero-patch {
  position: absolute;
  display: block;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
}
.hero-product { filter: drop-shadow(0 18px 22px rgba(77,45,31,.12)); }
.hero-tote {
  width: min(52vw, 680px);
  height: min(72vh, 690px);
  right: 7%;
  top: 2%;
  z-index: 1;
}
.hero-pouch {
  width: min(27vw, 360px);
  height: 330px;
  left: 3%;
  bottom: 5%;
  z-index: 3;
}
.hero-cardholder {
  width: min(16vw, 205px);
  height: 305px;
  right: 3%;
  bottom: 12%;
  z-index: 4;
}
.hero-tag {
  width: min(31vw, 420px);
  height: 110px;
  right: 4%;
  bottom: 0;
  z-index: 5;
  transform: rotate(1.5deg);
}
.hero-patch { z-index: 6; filter: drop-shadow(0 3px 2px rgba(45,32,23,.08)); }
.hero-patch-burger { width: 28px; right: 49%; top: 36%; }
.hero-patch-fries { width: 27px; right: 24%; top: 38%; }
.hero-patch-cat { width: 34px; right: 41%; top: 58%; }
.hero-patch-flag { width: 34px; right: 11%; bottom: 41%; }
.hero-patch-paris { width: 72px; left: 25%; bottom: 18%; }

.product-selection-section {
  width: min(1460px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(66px, 7vw, 96px) clamp(0px, 1vw, 14px) 0;
  scroll-margin-top: 92px;
}
.product-selection-section .product-selection-heading {
  margin-bottom: 26px;
}
.product-selection-section .product-selection-heading h2 {
  font-size: clamp(1.8rem, 2.5vw, 2.6rem);
  color: #17365f;
}

@media (max-width: 1180px) {
  .landing-hero {
    grid-template-columns: minmax(0, 1fr) minmax(420px, .92fr);
  }
  .landing-hero-copy { padding-left: clamp(34px, 5vw, 68px); }
  .hero-tote { width: min(58vw, 590px); right: 0; }
  .hero-pouch { width: 300px; left: -3%; }
  .hero-cardholder { width: 170px; }
  .hero-tag { width: 330px; }
  .hero-feature-row { grid-template-columns: 1fr; gap: 14px; max-width: 430px; margin-top: 38px; }
  .hero-feature, .hero-feature + .hero-feature { padding: 0; border-left: 0; }
}

@media (max-width: 900px) {
  .landing-hero {
    min-height: 0;
    grid-template-columns: 1fr;
  }
  .landing-hero-copy {
    max-width: none;
    padding: 52px 28px 32px;
  }
  .hero-studio-wordmark { margin-bottom: 28px; }
  .landing-hero h1 { max-width: 740px; }
  .hero-feature-row { max-width: 700px; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 0; }
  .hero-feature + .hero-feature { padding-left: 16px; border-left: 1px solid rgba(122,73,46,.18); }
  .landing-hero-visual { min-height: 520px; }
  .hero-tote { width: min(70vw, 520px); height: 500px; right: 7%; top: -3%; }
  .hero-pouch { width: 250px; height: 240px; left: 7%; bottom: 4%; }
  .hero-cardholder { width: 145px; height: 230px; right: 9%; bottom: 12%; }
  .hero-tag { width: 290px; height: 85px; right: 7%; bottom: 0; }
  .hero-patch-burger { right: 48%; top: 29%; }
  .hero-patch-fries { right: 23%; top: 31%; }
  .hero-patch-cat { right: 39%; top: 53%; }
}

@media (max-width: 620px) {
  .landing-hero-copy { padding: 42px 18px 28px; }
  .hero-studio-wordmark { gap: 11px; font-size: .7rem; letter-spacing: .2em; }
  .hero-kicker { margin-bottom: 18px; }
  .landing-hero h1 { font-size: clamp(2.55rem, 12vw, 4rem); }
  .hero-lede { font-size: 1rem; }
  .hero-actions { align-items: stretch; gap: 14px; margin-top: 28px; }
  .hero-primary-action { width: 100%; min-width: 0; }
  .hero-secondary-action { justify-content: flex-start; width: max-content; }
  .hero-feature-row { grid-template-columns: 1fr; gap: 16px; margin-top: 34px; }
  .hero-feature + .hero-feature { padding-left: 0; border-left: 0; }
  .landing-hero-visual { min-height: 390px; }
  .hero-tote { width: 360px; height: 390px; right: -58px; top: -10px; }
  .hero-pouch { width: 180px; height: 175px; left: -10px; bottom: 2%; }
  .hero-cardholder { width: 105px; height: 165px; right: 2%; bottom: 11%; }
  .hero-tag { width: 205px; height: 64px; right: 1%; bottom: 0; }
  .hero-orb-lilac { width: 340px; left: 24%; top: -4%; }
  .hero-orb-coral { width: 260px; right: -24%; top: 2%; }
  .platform-large { width: 290px; left: 13%; bottom: 0; }
  .platform-small { width: 180px; right: 0; }
  .hero-patch-burger { right: 45%; top: 29%; width: 22px; }
  .hero-patch-fries { right: 17%; top: 31%; width: 21px; }
  .hero-patch-cat { right: 35%; top: 52%; width: 26px; }
  .hero-patch-flag { width: 26px; right: 7%; bottom: 40%; }
  .hero-patch-paris { width: 52px; left: 19%; bottom: 16%; }
  .product-selection-section { width: min(100% - 24px, 1460px); padding-top: 58px; }
}

/* Epi Studio UI version 5.20 */


/* v5.21 hero visual update: keep the right-side mockup as one static image */
.landing-hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 620px;
  overflow: hidden;
  padding: 8px 10px 8px 0;
}

.hero-static-visual-frame {
  width: min(100%, 930px);
  aspect-ratio: 1022 / 941;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-static-visual {
  width: 100%;
  height: auto;
  max-width: 1022px;
  display: block;
  transform: translateX(-28px);
  user-select: none;
  pointer-events: none;
}

@media (max-width: 1180px) {
  .landing-hero-visual {
    min-height: 520px;
    padding-right: 0;
  }

  .hero-static-visual-frame {
    width: min(100%, 760px);
  }

  .hero-static-visual {
    transform: translateX(-18px);
  }
}

@media (max-width: 860px) {
  .landing-hero-visual {
    min-height: auto;
    padding: 6px 0 0;
  }

  .hero-static-visual-frame {
    width: min(100%, 700px);
  }

  .hero-static-visual {
    transform: translateX(-14px);
  }
}

@media (max-width: 640px) {
  .hero-static-visual-frame {
    width: 100%;
  }

  .hero-static-visual {
    transform: translateX(-10px);
  }
}

/* v5.22 — responsive editorial hero rebuilt from the full mockup scene.
   The scene is one fixed composition; the left copy remains real HTML. */
body.intro-active {
  background: #f7ede2;
}

.landing-hero {
  position: relative;
  display: block;
  width: 100%;
  height: min(calc(100vw * 0.5627990431), calc(100svh - 70px));
  min-height: 660px;
  max-height: 941px;
  overflow: hidden;
  isolation: isolate;
  background: #f7ede2;
  border-bottom: 1px solid rgba(122,73,46,.08);
}

.landing-hero::before {
  display: none;
}

.landing-hero-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  min-height: 0;
  display: block;
  overflow: hidden;
  padding: 0;
}

.hero-scene-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
  user-select: none;
  pointer-events: none;
}

/* Hide the baked-in text/buttons from the reference scene without covering
   the pouch/keychain overlap that begins farther to the right. */
.hero-scene-wash {
  display: none !important;
}

.landing-hero-copy {
  position: relative;
  z-index: 4;
  width: min(46%, 770px);
  max-width: none;
  height: 100%;
  align-self: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-sizing: border-box;
  padding: clamp(34px, 4.6vw, 72px) 0 clamp(28px, 3.2vw, 50px) clamp(38px, 4.1vw, 70px);
}

.hero-studio-wordmark {
  gap: clamp(13px, 1.7vw, 28px);
  margin: 0 0 clamp(30px, 4vw, 58px);
  font-size: clamp(.74rem, 1.12vw, 1.18rem);
  letter-spacing: .27em;
}

.hero-kicker {
  margin-bottom: clamp(15px, 2vw, 25px);
  font-size: clamp(.66rem, .93vw, .94rem);
  letter-spacing: .19em;
}

.landing-hero h1 {
  max-width: none;
  margin: 0 0 clamp(17px, 2.3vw, 30px);
  font-size: clamp(3.15rem, 4.65vw, 5.1rem);
  line-height: .98;
  letter-spacing: -.045em;
  text-wrap: initial;
}

.hero-title-line {
  display: block;
  white-space: nowrap;
}

.hero-lede {
  max-width: 560px;
  font-size: clamp(.94rem, 1.42vw, 1.31rem);
  line-height: 1.5;
}

.hero-actions {
  gap: 0;
  margin-top: clamp(25px, 3.2vw, 42px);
}

.hero-primary-action {
  min-width: clamp(205px, 15.8vw, 270px);
  min-height: clamp(50px, 4vw, 62px);
  padding: 13px 22px;
}

.hero-secondary-action {
  font-size: clamp(.76rem, .88vw, .9rem);
}

.hero-feature-row {
  width: min(100%, 650px);
  max-width: 650px;
  margin-top: auto;
  padding-top: clamp(22px, 3vw, 44px);
}

.hero-feature {
  grid-template-columns: clamp(39px, 3.1vw, 52px) minmax(0, 1fr);
  gap: clamp(8px, .9vw, 13px);
  padding-right: clamp(10px, 1.25vw, 21px);
}

.hero-feature + .hero-feature {
  padding-left: clamp(10px, 1.25vw, 21px);
}

.hero-feature-icon {
  width: clamp(38px, 3vw, 50px);
  height: clamp(38px, 3vw, 50px);
  font-size: clamp(1rem, 1.3vw, 1.3rem);
}

.hero-feature strong {
  font-size: clamp(.69rem, .75vw, .79rem);
}

.hero-feature small {
  margin-top: clamp(5px, .65vw, 9px);
  font-size: clamp(.62rem, .66vw, .7rem);
}

/* Neutralize the old v5.20/v5.21 separate-visual sizing rules. */
.hero-static-visual-frame,
.hero-static-visual,
.hero-orb,
.hero-display-platform,
.hero-product,
.hero-patch {
  display: none !important;
}

@media (max-width: 1180px) and (min-width: 901px) {
  .landing-hero-copy {
    width: 47%;
    padding-left: clamp(32px, 3.3vw, 46px);
  }

  .hero-studio-wordmark {
    margin-bottom: 30px;
  }

  .landing-hero h1 {
    font-size: clamp(3rem, 4.55vw, 3.7rem);
  }

  .hero-lede {
    max-width: 455px;
  }

  .hero-feature-row {
    grid-template-columns: repeat(3, minmax(0,1fr));
    max-width: 535px;
    gap: 0;
    margin-top: auto;
  }

  .hero-feature,
  .hero-feature + .hero-feature {
    padding-top: 0;
    padding-bottom: 0;
  }

  .hero-feature + .hero-feature {
    border-left: 1px solid rgba(122,73,46,.18);
  }

  .hero-scene-wash-top { width: 48%; }
  .hero-scene-wash-middle,
  .hero-scene-wash-bottom { width: 39%; }
}

@media (max-width: 900px) {
  .landing-hero {
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
    background: #f8eee4;
  }

  .landing-hero-copy {
    width: 100%;
    height: auto;
    padding: 48px 28px 34px;
    background: #f8eee4;
  }

  .hero-title-line {
    white-space: normal;
  }

  .landing-hero h1 {
    max-width: 760px;
    font-size: clamp(3rem, 8.5vw, 4.8rem);
  }

  .hero-lede {
    max-width: 620px;
  }

  .hero-feature-row {
    margin-top: 34px;
    padding-top: 0;
    max-width: 720px;
  }

  .landing-hero-visual {
    position: relative;
    width: 100%;
    aspect-ratio: 1672 / 941;
    min-height: 0;
  }

  .hero-scene-image {
    object-fit: cover;
    object-position: center center;
  }

  .hero-scene-wash {
    display: none;
  }
}

@media (max-width: 620px) {
  .landing-hero-copy {
    padding: 38px 18px 28px;
  }

  .hero-studio-wordmark {
    margin-bottom: 26px;
  }

  .landing-hero h1 {
    font-size: clamp(2.65rem, 12vw, 3.8rem);
  }

  .hero-actions {
    align-items: stretch;
  }

  .hero-primary-action {
    width: 100%;
  }

  .hero-feature-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hero-feature,
  .hero-feature + .hero-feature {
    padding: 0;
    border-left: 0;
  }

  .landing-hero-visual {
    aspect-ratio: 1.15;
  }

  .hero-scene-image {
    object-position: 67% center;
  }
}

/* Epi Studio UI version 5.22 */

/* =========================================================
   Epi Studio v5.24 — Editorial Step 1 product gallery
   ========================================================= */
.product-selection-section {
  width: min(1660px, calc(100% - 56px));
  margin: 0 auto;
  padding: clamp(72px, 7vw, 108px) 0 clamp(72px, 7vw, 108px);
  scroll-margin-top: 94px;
}

.product-selection-section .product-selection-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: clamp(34px, 3vw, 46px);
  padding: 0 8px 28px;
  border-bottom: 1px solid rgba(21, 51, 93, .16);
}

.product-selection-section .product-selection-heading .eyebrow {
  margin: 0 0 12px;
  color: #e4543f;
  font-size: clamp(.8rem, .9vw, .98rem);
  font-weight: 800;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.product-selection-section .product-selection-heading h2 {
  margin: 0;
  color: #0f356c;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.1rem, 4vw, 5rem);
  line-height: .98;
  font-weight: 500;
  letter-spacing: -.035em;
}

.product-selection-section .product-selection-heading > p {
  max-width: 420px;
  margin: 0 4px 5px 0;
  color: #5f626c;
  font-size: clamp(.92rem, 1.05vw, 1.08rem);
  line-height: 1.45;
  text-align: right;
}

.intro-product-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(16px, 1.45vw, 24px);
  align-items: stretch;
}

.intro-product-card {
  position: relative;
  min-width: 0;
  min-height: 590px;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(90, 69, 56, .10);
  border-radius: 26px;
  background: rgba(255, 253, 249, .97);
  box-shadow: 0 16px 34px rgba(87, 58, 42, .08);
  color: #143663;
  text-align: left;
  cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.intro-product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(228, 84, 63, .24);
  box-shadow: 0 25px 54px rgba(74, 48, 35, .14);
}

.intro-product-card:focus-visible {
  outline: 3px solid rgba(228, 84, 63, .24);
  outline-offset: 4px;
}

.intro-product-card.current-product {
  border-color: rgba(21, 53, 108, .16);
}

.intro-product-image.intro-product-stage {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 307 / 332;
  padding: 0;
  display: block;
  overflow: hidden;
  background: #f4ecdf;
  border-radius: 25px 25px 0 0;
}

.intro-product-image.intro-product-stage img,
.intro-product-image.intro-product-stage.portrait img {
  width: 100%;
  height: 100%;
  max-width: none;
  display: block;
  object-fit: cover;
  transform: none !important;
  scale: 1;
  transition: transform .35s ease;
}

.intro-product-card:hover .intro-product-image.intro-product-stage img {
  transform: scale(1.018) !important;
  scale: 1;
}

.intro-product-copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 250px;
  padding: clamp(24px, 2vw, 30px) clamp(22px, 1.75vw, 28px) clamp(24px, 2vw, 28px);
  border-top: 0;
  background: rgba(255, 253, 249, .98);
}

.intro-product-kicker {
  margin: 0;
  color: #ea543f;
  font-size: clamp(.69rem, .72vw, .8rem);
  font-weight: 800;
  letter-spacing: .11em;
  line-height: 1.25;
  text-transform: uppercase;
}

.intro-product-copy > strong {
  margin-top: 12px;
  color: #15366d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.38rem, 1.42vw, 1.75rem);
  line-height: 1.08;
  font-weight: 500;
  letter-spacing: -.025em;
}

.intro-product-copy > .intro-product-description {
  margin-top: 16px;
  color: #67646a;
  font-size: clamp(.83rem, .82vw, .94rem);
  line-height: 1.55;
}

.intro-product-footer {
  width: 100%;
  margin-top: auto;
  padding-top: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #14366b;
  font-size: clamp(.83rem, .83vw, .96rem);
}

.intro-product-footer b {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
}

.intro-product-footer em {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #e44f3b;
  font-family: Georgia, "Times New Roman", serif;
  font-style: normal;
  font-weight: 500;
  white-space: nowrap;
}

.intro-product-footer em span {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.2em;
  transform: translateY(-1px);
}

@media (max-width: 1320px) {
  .product-selection-section {
    width: min(1180px, calc(100% - 40px));
  }
  .intro-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
  }
  .intro-product-card { min-height: 610px; }
}

@media (max-width: 900px) {
  .product-selection-section {
    width: min(760px, calc(100% - 32px));
    padding-top: 64px;
  }
  .product-selection-section .product-selection-heading {
    display: block;
  }
  .product-selection-section .product-selection-heading > p {
    max-width: none;
    margin-top: 18px;
    text-align: left;
  }
  .intro-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
  .intro-product-card { min-height: 570px; }
}

@media (max-width: 600px) {
  .product-selection-section {
    width: min(100% - 24px, 520px);
    padding: 56px 0 70px;
  }
  .product-selection-section .product-selection-heading {
    padding: 0 2px 22px;
    margin-bottom: 26px;
  }
  .product-selection-section .product-selection-heading h2 {
    font-size: clamp(2.65rem, 13vw, 4rem);
  }
  .intro-product-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .intro-product-card {
    min-height: 0;
    display: flex;
  }
  .intro-product-image.intro-product-stage {
    aspect-ratio: 307 / 332;
  }
  .intro-product-copy {
    min-height: 240px;
  }
}


/* v5.29 — controlled zoom controls inside tote Focus Area */
.focus-zoom-controls {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border: 1px solid var(--beige-300);
  border-radius: 10px;
  overflow: hidden;
  background: #fffdfa;
  box-shadow: 0 1px 3px rgba(77,45,31,.04);
}
.focus-zoom-controls[hidden] { display: none !important; }
.focus-zoom-button {
  width: 34px;
  min-width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: var(--brown-700);
  font: inherit;
  font-size: 1.08rem;
  font-weight: 850;
  line-height: 1;
  cursor: pointer;
}
.focus-zoom-button:hover:not(:disabled) { background: var(--beige-100); }
.focus-zoom-button:focus-visible { outline: 2px solid var(--brown-500); outline-offset: -2px; }
.focus-zoom-button:disabled { color: #c7b8aa; cursor: not-allowed; background: #fbf8f4; }
.focus-zoom-value {
  min-width: 52px;
  padding: 0 7px;
  border-left: 1px solid rgba(122,73,46,.12);
  border-right: 1px solid rgba(122,73,46,.12);
  color: var(--brown-800);
  font-size: .74rem;
  font-weight: 850;
  text-align: center;
  line-height: 34px;
  white-space: nowrap;
}

@media (max-width: 1050px) and (min-width: 781px) {
  .focus-zoom-button { width: 31px; min-width: 31px; }
  .focus-zoom-value { min-width: 46px; padding-inline: 5px; }
}

@media (max-width: 780px) {
  .focus-zoom-controls { min-height: 34px; }
  .focus-zoom-button { width: 30px; min-width: 30px; height: 32px; font-size: 1rem; }
  .focus-zoom-value { min-width: 44px; padding-inline: 4px; line-height: 32px; font-size: .7rem; }
}


/* v5.30 — tote full-bag zoom (Focus Area removed) */
.tote-zoom-controls {
  display: inline-flex;
}
.canvas-stage.tote-zoomed-stage {
  cursor: grab;
}
.canvas-stage.tote-zoomed-stage.panning {
  cursor: grabbing;
}
/* At 100%, the whole tote is fitted. Beta zoom is available up to 200%. */


/* =========================================================
   Epi Studio v5.35 — Intro gallery carousel
   ========================================================= */
.design-gallery-section {
  width: min(1660px, calc(100% - 56px));
  margin: 0 auto;
  padding: 0 0 clamp(88px, 8vw, 124px);
}

.design-gallery-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  padding: 0 8px 28px;
  border-bottom: 1px solid rgba(21, 51, 93, .12);
}

.design-gallery-heading .eyebrow {
  margin: 0 0 12px;
  color: #e4543f;
  font-size: clamp(.8rem, .9vw, .98rem);
  font-weight: 800;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.design-gallery-heading h2 {
  margin: 0;
  color: #0f356c;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.6rem, 3.45vw, 4rem);
  line-height: 1;
  font-weight: 500;
  letter-spacing: -.03em;
}

.design-gallery-heading > p {
  max-width: 500px;
  margin: 0 4px 5px 0;
  color: #5f626c;
  font-size: clamp(.92rem, 1.02vw, 1.08rem);
  line-height: 1.55;
  text-align: right;
}

.gallery-carousel-shell {
  margin-top: clamp(28px, 2.8vw, 38px);
  padding: clamp(18px, 2vw, 24px);
  border-radius: 36px;
  background: linear-gradient(180deg, rgba(255,255,255,.72) 0%, rgba(255,251,247,.95) 100%);
  border: 1px solid rgba(107, 81, 58, .10);
  box-shadow: 0 20px 44px rgba(82, 57, 42, .08);
  backdrop-filter: blur(10px);
}

.gallery-carousel {
  position: relative;
}

.gallery-viewport {
  overflow: hidden;
  border-radius: 28px;
  background: #f6eee6;
}

.gallery-track {
  display: flex;
  width: 100%;
  transition: transform .62s cubic-bezier(.22, .61, .36, 1);
  will-change: transform;
}

.gallery-slide {
  position: relative;
  min-width: 100%;
  margin: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.gallery-slide::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(180deg, rgba(10, 22, 41, 0) 0%, rgba(10, 22, 41, .68) 100%);
  pointer-events: none;
}

.gallery-slide-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.gallery-slide-overlay {
  position: absolute;
  left: clamp(18px, 2vw, 28px);
  right: clamp(18px, 2vw, 28px);
  bottom: clamp(18px, 2vw, 28px);
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: #fff;
  text-shadow: 0 8px 20px rgba(0,0,0,.2);
}

.gallery-slide-kicker {
  display: inline-flex;
  align-items: center;
  width: max-content;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.14);
  backdrop-filter: blur(8px);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.gallery-slide-overlay strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.6rem, 2.6vw, 2.5rem);
  font-weight: 500;
  line-height: 1.05;
}

.gallery-nav-button {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.88);
  color: #173b72;
  box-shadow: 0 18px 30px rgba(31, 47, 78, .18);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.gallery-nav-button:hover,
.gallery-nav-button:focus-visible {
  background: #fff;
  transform: translateY(-50%) scale(1.04);
  box-shadow: 0 20px 36px rgba(31, 47, 78, .22);
}

.gallery-nav-prev { left: 16px; }
.gallery-nav-next { right: 16px; }

.gallery-carousel-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 6px 6px;
}

.gallery-caption {
  max-width: 760px;
}

.gallery-caption-eyebrow {
  margin: 0 0 10px;
  color: #e4543f;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.gallery-caption h3 {
  margin: 0;
  color: #0f356c;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 2.8vw, 2.7rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -.025em;
}

.gallery-caption p:last-child {
  margin: 14px 0 0;
  color: #5f626c;
  font-size: clamp(.95rem, 1.08vw, 1.08rem);
  line-height: 1.6;
}

.gallery-meta {
  min-width: 178px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}

.gallery-counter {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(23, 59, 114, .08);
  color: #173b72;
  font-size: .84rem;
  font-weight: 800;
  letter-spacing: .08em;
}

.gallery-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.gallery-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(23, 59, 114, .18);
  cursor: pointer;
  transition: width .2s ease, background .2s ease, transform .2s ease;
}

.gallery-dot:hover,
.gallery-dot:focus-visible {
  transform: scale(1.08);
  background: rgba(23, 59, 114, .34);
}

.gallery-dot.is-active {
  width: 34px;
  background: #173b72;
}

@media (max-width: 980px) {
  .design-gallery-heading {
    align-items: start;
    flex-direction: column;
  }

  .design-gallery-heading > p {
    max-width: 660px;
    text-align: left;
    margin: 0;
  }

  .gallery-carousel-footer {
    align-items: start;
    flex-direction: column;
  }

  .gallery-meta {
    width: 100%;
    min-width: 0;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .gallery-dots {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .design-gallery-section {
    width: min(100% - 24px, 1660px);
    padding-bottom: 74px;
  }

  .gallery-carousel-shell {
    padding: 14px;
    border-radius: 28px;
  }

  .gallery-viewport {
    border-radius: 22px;
  }

  .gallery-slide {
    aspect-ratio: 1 / 1;
  }

  .gallery-slide-overlay strong {
    font-size: clamp(1.45rem, 6.2vw, 2rem);
  }

  .gallery-nav-button {
    width: 44px;
    height: 44px;
    font-size: 1.6rem;
  }

  .gallery-nav-prev { left: 10px; }
  .gallery-nav-next { right: 10px; }

  .gallery-carousel-footer {
    padding: 18px 2px 2px;
  }

  .gallery-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* =========================================================
   Epi Studio v5.36 — Choose Your Piece editorial redesign
   ========================================================= */
.product-selection-section {
  position: relative;
  width: min(1500px, calc(100% - 64px));
  margin: 0 auto;
  padding: clamp(74px, 6.6vw, 104px) 0 clamp(64px, 6vw, 92px);
  overflow: hidden;
}

.product-selection-section::before {
  content: '✿';
  position: absolute;
  top: 58px;
  right: 38px;
  color: #f5a38f;
  font-size: 3.6rem;
  line-height: 1;
  opacity: .9;
  transform: rotate(9deg);
  pointer-events: none;
}

.product-selection-section::after {
  content: '·  ·  ·';
  position: absolute;
  top: 126px;
  right: 30px;
  color: #efb84f;
  font-size: 1.9rem;
  letter-spacing: .16em;
  transform: rotate(-13deg);
  pointer-events: none;
}

.product-selection-section .product-selection-heading {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0;
  margin: 0 0 clamp(42px, 3.5vw, 56px);
  padding: 0 160px 0 16px;
  border: 0;
}

.product-selection-section .product-selection-heading::after {
  content: '';
  width: 116px;
  height: 12px;
  margin-top: 9px;
  background:
    radial-gradient(circle at 8px 5px, transparent 6px, #f2a995 6.5px 8px, transparent 8.5px) 0 0 / 30px 12px repeat-x;
  opacity: .9;
}

.product-selection-section .product-selection-heading .eyebrow {
  margin: 0 0 12px;
  color: #9c3f19;
  font-size: clamp(.78rem, .88vw, .96rem);
  font-weight: 850;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.product-selection-section .product-selection-heading h2 {
  margin: 0;
  color: #0d315c;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.5rem, 5.2vw, 5.35rem);
  line-height: .98;
  font-weight: 500;
  letter-spacing: -.04em;
}

.product-selection-section .product-selection-heading > p {
  max-width: 620px;
  margin: 16px 0 0;
  color: #2e2c2b;
  font-size: clamp(.96rem, 1.16vw, 1.16rem);
  line-height: 1.45;
  text-align: left;
}

.intro-product-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(16px, 1.25vw, 20px);
  align-items: stretch;
}

.intro-product-card {
  position: relative;
  min-width: 0;
  min-height: 648px;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(105, 79, 59, .13);
  border-radius: 20px;
  background: rgba(255, 253, 249, .94);
  box-shadow: 0 14px 28px rgba(90, 58, 36, .055);
  color: #171717;
  text-align: left;
  cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.intro-product-card:hover {
  transform: translateY(-5px);
  border-color: rgba(156, 63, 25, .22);
  box-shadow: 0 22px 42px rgba(90, 58, 36, .11);
}

.intro-product-card:focus-visible {
  outline: 3px solid rgba(226, 113, 82, .28);
  outline-offset: 4px;
}

.intro-product-card.current-product {
  border-color: rgba(15, 49, 92, .16);
}

.intro-product-image.intro-product-stage {
  position: relative;
  width: 100%;
  height: 390px;
  aspect-ratio: auto;
  padding: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 19px 19px 0 0;
  background: linear-gradient(180deg, #fffdf9 0%, #fffaf4 100%);
  isolation: isolate;
}

.intro-product-number {
  position: absolute;
  z-index: 5;
  left: 20px;
  top: 20px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fbe5d6;
  color: #9f3c17;
  font-size: 1.06rem;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.75);
}

.intro-watercolor-blob {
  position: absolute;
  z-index: 0;
  width: 79%;
  height: 70%;
  left: 10%;
  top: 18%;
  border-radius: 48% 52% 47% 53% / 53% 46% 54% 47%;
  background: rgba(248, 205, 183, .57);
  transform: rotate(-4deg);
  filter: blur(.1px);
  box-shadow: inset 0 0 28px rgba(255,255,255,.25);
}

.intro-watercolor-blob::after {
  content: '';
  position: absolute;
  inset: 8% 7% 5% 10%;
  border-radius: inherit;
  border: 1px solid rgba(255,255,255,.25);
  opacity: .75;
}

.intro-product-image.intro-product-stage img,
.intro-product-image.intro-product-stage.portrait img {
  position: relative;
  z-index: 2;
  width: auto;
  height: auto;
  max-width: 82%;
  max-height: 82%;
  display: block;
  object-fit: contain;
  transform: none !important;
  scale: 1;
  filter: drop-shadow(0 12px 14px rgba(57, 43, 33, .11));
  transition: transform .32s ease, filter .32s ease;
}

.intro-product-card:hover .intro-product-image.intro-product-stage img {
  transform: translateY(-3px) scale(1.018) !important;
  filter: drop-shadow(0 16px 17px rgba(57, 43, 33, .13));
}

/* Individual watercolor and product proportions from the v5.36 reference mockup. */
.product-passport-holder .intro-watercolor-blob {
  width: 76%;
  height: 74%;
  left: 12%;
  top: 16%;
  background: rgba(190, 202, 170, .53);
  transform: rotate(3deg);
}
.product-passport-holder .intro-product-number {
  background: #ecebd7;
  color: #5b5b27;
}
.product-passport-holder .intro-product-stage img { max-width: 61%; max-height: 78%; }

.product-small-canvas-pouch .intro-watercolor-blob {
  width: 83%;
  height: 72%;
  left: 9%;
  top: 16%;
  background: rgba(247, 196, 187, .53);
  transform: rotate(-2deg);
}
.product-small-canvas-pouch .intro-product-number {
  background: #fde1dc;
  color: #cb2f22;
}
.product-small-canvas-pouch .intro-product-stage img { max-width: 88%; max-height: 72%; transform: translateY(12px) !important; }
.product-small-canvas-pouch:hover .intro-product-stage img { transform: translateY(8px) scale(1.018) !important; }

.product-canvas-card-holder .intro-watercolor-blob {
  width: 76%;
  height: 76%;
  left: 12%;
  top: 14%;
  background: rgba(185, 215, 225, .52);
  transform: rotate(5deg);
}
.product-canvas-card-holder .intro-product-number {
  background: #e3edf1;
  color: #17304d;
}
.product-canvas-card-holder .intro-product-stage img { max-width: 58%; max-height: 73%; }

.product-keychain-tag .intro-watercolor-blob {
  width: 78%;
  height: 70%;
  left: 11%;
  top: 17%;
  background: rgba(249, 220, 160, .48);
  transform: rotate(3deg);
}
.product-keychain-tag .intro-product-number {
  background: #fcebd0;
  color: #a14a15;
}
.product-keychain-tag .intro-product-stage img {
  width: 88%;
  max-width: 88%;
  max-height: 36%;
  transform: translateY(8px) !important;
}
.product-keychain-tag:hover .intro-product-stage img { transform: translateY(5px) scale(1.018) !important; }

/* Small hand-drawn accents. */
.intro-deco {
  position: absolute;
  z-index: 1;
  display: block;
  pointer-events: none;
}
.intro-deco-a {
  right: 20px;
  top: 65px;
  width: 33px;
  height: 24px;
  border-top: 4px solid #efb64d;
  border-radius: 50%;
  transform: rotate(54deg);
  opacity: .78;
}
.intro-deco-b {
  left: 18px;
  bottom: 28px;
  width: 44px;
  height: 28px;
  border-left: 3px solid #7e9661;
  border-radius: 50%;
  transform: rotate(-32deg);
  opacity: .72;
}
.intro-deco-c {
  right: 26px;
  bottom: 36px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #92a963;
  box-shadow: 10px -5px 0 #92a963, 5px 9px 0 #92a963;
  opacity: .78;
}
.product-small-canvas-pouch .intro-deco-a,
.product-canvas-card-holder .intro-deco-a { border-color: #f19d8a; }
.product-canvas-card-holder .intro-deco-b { border-color: #4f91b9; }
.product-keychain-tag .intro-deco-a { border-color: #efb64d; }

.intro-product-copy {
  flex: 1;
  min-height: 258px;
  padding: 23px 19px 24px;
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(105, 79, 59, .08);
  background: rgba(255, 253, 249, .98);
}

.intro-product-kicker {
  margin: 0;
  color: #9e3e1b;
  font-size: clamp(.68rem, .72vw, .79rem);
  font-weight: 850;
  letter-spacing: .13em;
  line-height: 1.25;
  text-transform: uppercase;
}

.intro-product-copy > strong {
  margin-top: 13px;
  color: #171717;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.34rem, 1.45vw, 1.68rem);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -.025em;
}

.intro-product-copy > .intro-product-description {
  margin-top: 14px;
  color: #3d3a38;
  font-size: clamp(.82rem, .82vw, .92rem);
  line-height: 1.52;
}

.intro-product-footer {
  width: 100%;
  margin-top: auto;
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #111;
  font-size: clamp(.78rem, .8vw, .91rem);
}

.intro-product-footer b {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 760;
  white-space: nowrap;
}

.intro-product-footer em {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #a13e17;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-style: normal;
  font-weight: 720;
  white-space: nowrap;
}

.intro-product-footer em span {
  font-size: 1.2em;
  transform: translateY(-1px);
}

.piece-story-line {
  margin: clamp(40px, 4.2vw, 60px) 0 0;
  color: #a78d65;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.1rem, 1.6vw, 1.48rem);
  font-style: italic;
  text-align: center;
  letter-spacing: .01em;
}
.piece-story-line span {
  display: inline-block;
  margin-left: 8px;
  color: #ee927d;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 1.35em;
  font-style: normal;
  transform: rotate(-12deg) translateY(3px);
}

@media (max-width: 1320px) {
  .product-selection-section { width: min(1180px, calc(100% - 40px)); }
  .intro-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
  .intro-product-card { min-height: 640px; }
}

@media (max-width: 900px) {
  .product-selection-section {
    width: min(760px, calc(100% - 32px));
    padding-top: 64px;
  }
  .product-selection-section .product-selection-heading { padding-right: 90px; }
  .product-selection-section::before { right: 15px; font-size: 2.8rem; }
  .product-selection-section::after { right: 7px; }
  .intro-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .intro-product-card { min-height: 610px; }
  .intro-product-image.intro-product-stage { height: 360px; }
}

@media (max-width: 600px) {
  .product-selection-section {
    width: min(100% - 24px, 520px);
    padding: 56px 0 68px;
  }
  .product-selection-section::before,
  .product-selection-section::after { display: none; }
  .product-selection-section .product-selection-heading {
    margin-bottom: 30px;
    padding: 0 2px;
  }
  .product-selection-section .product-selection-heading h2 {
    font-size: clamp(2.75rem, 13vw, 4rem);
  }
  .intro-product-grid { grid-template-columns: 1fr; gap: 20px; }
  .intro-product-card { min-height: 0; }
  .intro-product-image.intro-product-stage { height: min(390px, 92vw); }
  .intro-product-copy { min-height: 235px; }
  .piece-story-line { margin-top: 36px; }
}


/* =========================================================
   Epi Studio v5.37 — Step 1 mockup refinement + softer gallery crop
   ========================================================= */
.product-selection-section .product-selection-heading::before {
  content: '';
  position: absolute;
  top: 10px;
  right: 28px;
  width: 78px;
  height: 126px;
  background:
    radial-gradient(circle at 40px 12px, #f3a594 0 10px, transparent 10.5px),
    radial-gradient(circle at 40px 12px, #f3d179 0 3px, transparent 3.5px),
    radial-gradient(circle at 16px 92px, #efc25a 0 4px, transparent 4.5px),
    radial-gradient(circle at 34px 108px, #efc25a 0 4px, transparent 4.5px),
    radial-gradient(circle at 52px 124px, #efc25a 0 4px, transparent 4.5px),
    linear-gradient(#93a869, #93a869) 24px 58px / 3px 44px no-repeat,
    radial-gradient(ellipse 14px 9px at 18px 54px, #93a869 0 98%, transparent 100%),
    radial-gradient(ellipse 14px 9px at 8px 76px, #93a869 0 98%, transparent 100%),
    radial-gradient(ellipse 14px 9px at 34px 70px, #93a869 0 98%, transparent 100%);
  opacity: .92;
  pointer-events: none;
}
.intro-product-image.intro-product-stage { background: linear-gradient(180deg, #fffefb 0%, #fffbf6 100%); }
.intro-product-image.intro-product-stage img,
.intro-product-image.intro-product-stage.portrait img { max-width: 80%; max-height: 80%; object-fit: contain; }
.intro-deco { position: absolute; z-index: 1; display: block; pointer-events: none; }
.intro-deco-flower, .intro-deco-leaf, .intro-deco-sparkles, .intro-deco-dots, .intro-deco-squiggle, .intro-deco-rays { background-repeat: no-repeat; }
.product-canvas-tote-bag .intro-watercolor-blob { width: 82%; height: 72%; left: 8%; top: 18%; background: rgba(248,205,183,.60); transform: rotate(-6deg); }
.product-canvas-tote-bag .intro-product-stage img { max-width: 72%; max-height: 74%; }
.product-canvas-tote-bag .intro-deco-flower { left: 18px; bottom: 14px; width: 32px; height: 32px; background: radial-gradient(circle at center, #f2cc7a 0 14%, transparent 15%), radial-gradient(circle at 50% 8%, #f2a896 0 32%, transparent 34%), radial-gradient(circle at 84% 32%, #f2a896 0 32%, transparent 34%), radial-gradient(circle at 74% 78%, #f2a896 0 32%, transparent 34%), radial-gradient(circle at 26% 78%, #f2a896 0 32%, transparent 34%), radial-gradient(circle at 16% 32%, #f2a896 0 32%, transparent 34%); }
.product-canvas-tote-bag .intro-deco-leaf { left: 10px; bottom: 46px; width: 58px; height: 84px; }
.product-canvas-tote-bag .intro-deco-leaf::before, .product-canvas-tote-bag .intro-deco-leaf::after { content:''; position:absolute; bottom:4px; width:22px; height:14px; background:#98ad6c; border-radius: 100% 0 100% 0 / 100% 0 100% 0; }
.product-canvas-tote-bag .intro-deco-leaf::before { left:8px; transform:rotate(-36deg); box-shadow:12px -20px 0 #98ad6c, 20px -42px 0 #98ad6c; }
.product-canvas-tote-bag .intro-deco-leaf::after { left:24px; transform:scaleX(-1) rotate(-36deg); box-shadow:-8px -18px 0 #98ad6c, -14px -38px 0 #98ad6c; }
.product-canvas-tote-bag .intro-deco-rays { right:20px; top:58px; width:34px; height:26px; }
.product-canvas-tote-bag .intro-deco-rays::before, .product-canvas-tote-bag .intro-deco-rays::after { content:''; position:absolute; width:16px; height:4px; border-radius:999px; background:#efc458; }
.product-canvas-tote-bag .intro-deco-rays::before { right:4px; top:3px; transform:rotate(68deg); box-shadow:-10px 14px 0 #efc458; }
.product-canvas-tote-bag .intro-deco-rays::after { right:14px; top:10px; transform:rotate(22deg); }
.product-canvas-tote-bag .intro-deco-dots, .product-canvas-tote-bag .intro-deco-sparkles, .product-canvas-tote-bag .intro-deco-squiggle { display:none; }
.product-passport-holder .intro-watercolor-blob { width:76%; height:74%; left:12%; top:16%; background:rgba(190,202,170,.56); transform:rotate(3deg); }
.product-passport-holder .intro-product-number { background:#ecebd7; color:#5b5b27; }
.product-passport-holder .intro-product-stage img { max-width:60%; max-height:78%; }
.product-passport-holder .intro-deco-sparkles { right:18px; top:80px; width:34px; height:34px; }
.product-passport-holder .intro-deco-sparkles::before, .product-passport-holder .intro-deco-sparkles::after { content:''; position:absolute; left:50%; top:50%; background:#f0c75c; transform:translate(-50%,-50%); }
.product-passport-holder .intro-deco-sparkles::before { width:4px; height:24px; border-radius:999px; }
.product-passport-holder .intro-deco-sparkles::after { width:24px; height:4px; border-radius:999px; }
.product-passport-holder .intro-deco-leaf { right:14px; bottom:16px; width:62px; height:96px; }
.product-passport-holder .intro-deco-leaf::before, .product-passport-holder .intro-deco-leaf::after { content:''; position:absolute; bottom:4px; width:22px; height:14px; background:#99a966; border-radius:100% 0 100% 0 / 100% 0 100% 0; }
.product-passport-holder .intro-deco-leaf::before { left:8px; transform:rotate(-36deg); box-shadow:12px -20px 0 #99a966, 18px -42px 0 #99a966; }
.product-passport-holder .intro-deco-leaf::after { left:26px; transform:scaleX(-1) rotate(-36deg); box-shadow:-8px -18px 0 #99a966, -14px -38px 0 #99a966; }
.product-passport-holder .intro-deco-dots { right:34px; top:66px; width:6px; height:6px; border-radius:50%; background:#a6b26f; box-shadow:-12px 8px 0 #a6b26f, -2px 18px 0 #a6b26f; }
.product-passport-holder .intro-deco-flower, .product-passport-holder .intro-deco-squiggle, .product-passport-holder .intro-deco-rays { display:none; }
.product-small-canvas-pouch .intro-watercolor-blob { width:83%; height:72%; left:9%; top:16%; background:rgba(247,196,187,.56); transform:rotate(-2deg); }
.product-small-canvas-pouch .intro-product-number { background:#fde1dc; color:#cb2f22; }
.product-small-canvas-pouch .intro-product-stage img { max-width:88%; max-height:72%; transform:translateY(12px) !important; }
.product-small-canvas-pouch:hover .intro-product-stage img { transform:translateY(8px) scale(1.018) !important; }
.product-small-canvas-pouch .intro-deco-sparkles { right:18px; top:58px; width:44px; height:34px; }
.product-small-canvas-pouch .intro-deco-sparkles::before, .product-small-canvas-pouch .intro-deco-sparkles::after { content:''; position:absolute; width:14px; height:14px; }
.product-small-canvas-pouch .intro-deco-sparkles::before { left:0; top:8px; background:linear-gradient(#f3a090,#f3a090) center/3px 16px no-repeat, linear-gradient(#f3a090,#f3a090) center/16px 3px no-repeat; transform:rotate(18deg); }
.product-small-canvas-pouch .intro-deco-sparkles::after { right:4px; top:0; background:linear-gradient(#f3a090,#f3a090) center/3px 16px no-repeat, linear-gradient(#f3a090,#f3a090) center/16px 3px no-repeat; transform:rotate(-12deg); }
.product-small-canvas-pouch .intro-deco-squiggle { left:18px; bottom:24px; width:38px; height:12px; background:radial-gradient(circle at 6px 9px, transparent 7px, #f1aa96 7.5px 9px, transparent 9.5px), radial-gradient(circle at 18px 3px, transparent 7px, #f1aa96 7.5px 9px, transparent 9.5px), radial-gradient(circle at 30px 9px, transparent 7px, #f1aa96 7.5px 9px, transparent 9.5px); }
.product-small-canvas-pouch .intro-deco-flower, .product-small-canvas-pouch .intro-deco-leaf, .product-small-canvas-pouch .intro-deco-dots, .product-small-canvas-pouch .intro-deco-rays { display:none; }
.product-canvas-card-holder .intro-watercolor-blob { width:76%; height:76%; left:12%; top:14%; background:rgba(185,215,225,.54); transform:rotate(5deg); }
.product-canvas-card-holder .intro-product-number { background:#e3edf1; color:#17304d; }
.product-canvas-card-holder .intro-product-stage img { max-width:58%; max-height:73%; }
.product-canvas-card-holder .intro-deco-sparkles { right:14px; top:108px; width:38px; height:68px; }
.product-canvas-card-holder .intro-deco-sparkles::before, .product-canvas-card-holder .intro-deco-sparkles::after { content:''; position:absolute; width:14px; height:14px; border-radius:3px; background:linear-gradient(#76a9d7,#76a9d7) center/3px 16px no-repeat, linear-gradient(#76a9d7,#76a9d7) center/16px 3px no-repeat; transform:rotate(18deg); }
.product-canvas-card-holder .intro-deco-sparkles::before { right:0; top:0; }
.product-canvas-card-holder .intro-deco-sparkles::after { right:12px; top:24px; }
.product-canvas-card-holder .intro-deco-squiggle { left:16px; bottom:18px; width:30px; height:22px; background:linear-gradient(#7aaad8,#7aaad8) 0 16px/10px 3px no-repeat, linear-gradient(#7aaad8,#7aaad8) 10px 10px/10px 3px no-repeat, linear-gradient(#7aaad8,#7aaad8) 20px 4px/10px 3px no-repeat; transform:rotate(-28deg); border-radius:4px; }
.product-canvas-card-holder .intro-deco-flower, .product-canvas-card-holder .intro-deco-leaf, .product-canvas-card-holder .intro-deco-dots, .product-canvas-card-holder .intro-deco-rays { display:none; }
.product-keychain-tag .intro-watercolor-blob { width:78%; height:70%; left:11%; top:17%; background:rgba(249,220,160,.48); transform:rotate(3deg); }
.product-keychain-tag .intro-product-number { background:#fcebd0; color:#a14a15; }
.product-keychain-tag .intro-product-stage img { width:88%; max-width:88%; max-height:36%; transform:translateY(8px) !important; }
.product-keychain-tag:hover .intro-product-stage img { transform:translateY(5px) scale(1.018) !important; }
.product-keychain-tag .intro-deco-rays { right:16px; top:76px; width:38px; height:26px; }
.product-keychain-tag .intro-deco-rays::before, .product-keychain-tag .intro-deco-rays::after { content:''; position:absolute; width:16px; height:4px; border-radius:999px; background:#efc458; }
.product-keychain-tag .intro-deco-rays::before { right:0; top:3px; transform:rotate(70deg); box-shadow:-10px 14px 0 #efc458; }
.product-keychain-tag .intro-deco-rays::after { right:14px; top:10px; transform:rotate(22deg); }
.product-keychain-tag .intro-deco-squiggle { left:16px; bottom:20px; width:38px; height:12px; background:radial-gradient(circle at 6px 9px, transparent 7px, #f1aa96 7.5px 9px, transparent 9.5px), radial-gradient(circle at 18px 3px, transparent 7px, #f1aa96 7.5px 9px, transparent 9.5px), radial-gradient(circle at 30px 9px, transparent 7px, #f1aa96 7.5px 9px, transparent 9.5px); }
.product-keychain-tag .intro-deco-dots { right:22px; top:140px; width:6px; height:6px; border-radius:50%; background:#a6b26f; box-shadow:-12px 8px 0 #a6b26f, -2px 18px 0 #a6b26f; }
.product-keychain-tag .intro-deco-flower, .product-keychain-tag .intro-deco-leaf, .product-keychain-tag .intro-deco-sparkles { display:none; }
.gallery-viewport { background: linear-gradient(180deg, #fcf6ee 0%, #f8ecdf 100%); }
.gallery-slide { aspect-ratio: 5 / 4; display:grid; place-items:center; padding: clamp(10px,1.2vw,16px); }
.gallery-slide-image { width:100%; height:100%; object-fit:contain; object-position:center center; border-radius:22px; }
.gallery-slide::after { height:34%; }
@media (max-width: 620px) { .gallery-slide { aspect-ratio:1 / 1; padding:10px; } }

/* =========================================================
   Epi Studio v5.39 — Gallery lower-edge visibility fix
   Ensures the full lower portion of showcase images remains visible.
   ========================================================= */
.gallery-viewport {
  background: linear-gradient(180deg, #fcf7f0 0%, #f8eee5 100%);
}

.gallery-slide {
  aspect-ratio: 4 / 3;
  min-height: clamp(520px, 52vw, 760px);
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: clamp(12px, 1.6vw, 20px);
  overflow: hidden;
}

.gallery-slide-image {
  display: block;
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center bottom !important;
  margin: 0 auto;
  border-radius: 22px;
}

.gallery-slide::after,
.gallery-slide-overlay {
  display: none !important;
}

@media (max-width: 1100px) {
  .gallery-slide {
    aspect-ratio: 5 / 4;
    min-height: 480px;
    padding: 12px;
  }
}

@media (max-width: 820px) {
  .gallery-slide {
    aspect-ratio: 1 / 1;
    min-height: 420px;
    padding: 10px;
  }
}

@media (max-width: 620px) {
  .gallery-slide {
    aspect-ratio: 1 / 1;
    min-height: 340px;
    padding: 8px;
  }

  .gallery-slide-image {
    border-radius: 18px;
  }
}

/* =========================================================
   Epi Studio v5.40 — Step 1 direct artwork cards
   Use uploaded pre-cropped card artwork for the "Choose your piece" section.
   This is easier to maintain and keeps the visuals faithful to the approved mockup.
   ========================================================= */
.intro-product-card.use-uploaded-card-art {
  min-height: 645px;
}

.intro-product-card.use-uploaded-card-art .intro-product-image.intro-product-stage {
  background: transparent !important;
  height: clamp(350px, 27vw, 430px);
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.intro-product-card.use-uploaded-card-art .intro-product-stage-art {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  transform: none !important;
  border-radius: 24px;
  filter: drop-shadow(0 18px 30px rgba(72, 45, 26, 0.08));
  transition: transform 220ms ease, filter 220ms ease;
}

.intro-product-card.use-uploaded-card-art:hover .intro-product-stage-art,
.intro-product-card.use-uploaded-card-art:focus-visible .intro-product-stage-art {
  transform: translateY(-4px) scale(1.012) !important;
  filter: drop-shadow(0 24px 34px rgba(72, 45, 26, 0.11));
}

.intro-product-card.use-uploaded-card-art .intro-product-copy {
  padding-top: 18px;
}

@media (max-width: 1180px) {
  .intro-product-card.use-uploaded-card-art {
    min-height: 620px;
  }

  .intro-product-card.use-uploaded-card-art .intro-product-image.intro-product-stage {
    height: clamp(330px, 34vw, 400px);
  }
}

@media (max-width: 780px) {
  .intro-product-card.use-uploaded-card-art {
    min-height: 0;
  }

  .intro-product-card.use-uploaded-card-art .intro-product-image.intro-product-stage {
    height: min(420px, 92vw);
  }
}

/* =========================================================
   Epi Studio v5.41 — Patch pricing categories
   ========================================================= */
.pricing-category-card {
  margin-bottom: 24px;
}

.pricing-category-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.pricing-category-heading .eyebrow {
  margin: 0 0 6px;
}

.pricing-category-heading h2 {
  margin-bottom: 6px;
}

.pricing-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.pricing-category-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--beige-300);
  border-radius: 18px;
  background: rgba(255,255,255,.72);
  cursor: text;
}

.pricing-category-option > span:first-child {
  display: grid;
  gap: 4px;
}

.pricing-category-option strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  color: var(--navy-800, #173b72);
}

.pricing-category-option small {
  color: var(--ink-500, #6b6864);
  line-height: 1.35;
}

.pricing-small { background: linear-gradient(135deg, rgba(255,244,224,.78), rgba(255,255,255,.82)); }
.pricing-medium { background: linear-gradient(135deg, rgba(238,245,224,.76), rgba(255,255,255,.82)); }
.pricing-big { background: linear-gradient(135deg, rgba(235,238,251,.78), rgba(255,255,255,.82)); }

.pricing-input-wrap {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 112px;
  padding: 8px 10px;
  border: 1px solid rgba(80,70,60,.15);
  border-radius: 12px;
  background: #fff;
  font-weight: 700;
}

.pricing-input-wrap input {
  width: 78px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  outline: none;
}

.fixed-pricing-tier {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--beige-300);
  border-radius: 12px;
  background: rgba(255,244,224,.65);
}

.fixed-pricing-tier span {
  color: var(--ink-500, #6b6864);
  font-size: .85rem;
}

.pricing-tier-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .03em;
  vertical-align: middle;
}

.pricing-tier-badge.tier-small { background: #fff0d5; color: #8b5812; }
.pricing-tier-badge.tier-medium { background: #eaf1dc; color: #53651e; }
.pricing-tier-badge.tier-big { background: #e4e9f8; color: #334a7d; }

.review-tier-count {
  display: inline-block;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .pricing-category-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Epi Studio — Free shipping announcement
   ========================================================= */
.shipping-announcement {
  width: 100%;
  min-height: 34px;
  padding: 7px 18px 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  background: #6f4936;
  color: #fffaf2;
  border-bottom: 1px solid rgba(255,255,255,.13);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .075em;
  line-height: 1.35;
  text-align: center;
}

.shipping-announcement-mark {
  color: #e9c997;
  font-size: .72rem;
  opacity: .95;
}

@media (max-width: 620px) {
  .shipping-announcement {
    min-height: 32px;
    padding: 6px 12px;
    gap: 8px;
    font-size: .7rem;
    letter-spacing: .045em;
  }
}

/* =========================================================
   Epi Studio v5.44 — tablet / small-laptop customizer layout fix
   Between 781px and 1120px the patch panel becomes a second grid row.
   Disable the sticky canvas in this two-row layout so it cannot float over
   or cover the Choose patches section while scrolling.
   ========================================================= */
@media (min-width: 781px) and (max-width: 1120px) {
  .customizer-shell {
    grid-template-columns: minmax(230px, 270px) minmax(410px, 1fr);
    grid-auto-flow: row;
    align-items: start;
  }

  .left-panel {
    grid-column: 1;
    grid-row: 1;
  }

  .canvas-column {
    grid-column: 2;
    grid-row: 1;
    position: static;
    top: auto;
    align-self: start;
    z-index: auto;
  }

  .right-panel {
    grid-column: 1 / -1;
    grid-row: 2;
    position: relative;
    z-index: 0;
    margin-top: 0;
  }
}


/* =========================================================
   Epi Studio v5.46 Beta — stable selection overlay + 200% tote zoom
   ========================================================= */
.canvas-stage,
.canvas-stage.landscape-stage {
  position: relative;
}

.selection-toolbar.selection-toolbar-overlay {
  position: absolute;
  z-index: 45;
  left: clamp(10px, 2vw, 18px);
  right: clamp(10px, 2vw, 18px);
  bottom: clamp(10px, 2vw, 18px);
  min-height: 0;
  padding: 10px 12px;
  border: 1px solid rgba(122,73,46,.18);
  border-radius: 15px;
  background: rgba(255,253,249,.96);
  box-shadow: 0 14px 34px rgba(77,45,31,.18);
  backdrop-filter: blur(10px);
}

.selection-toolbar.selection-toolbar-overlay[hidden] {
  display: none !important;
}

.selection-toolbar.selection-toolbar-overlay .selection-help {
  margin-top: 6px;
  padding: 5px 8px;
  font-size: .72rem;
}

@media (max-width: 620px) {
  .selection-toolbar.selection-toolbar-overlay {
    left: 8px;
    right: 8px;
    bottom: 8px;
    padding: 8px 9px;
  }
  .selection-toolbar.selection-toolbar-overlay .selection-actions {
    gap: 5px;
  }
  .selection-toolbar.selection-toolbar-overlay .icon-button,
  .selection-toolbar.selection-toolbar-overlay .danger-button {
    padding: 7px 8px;
  }
}

/* v5.46: the old zoom/pan helper pill is intentionally removed. */
.focus-pan-hint { display: none !important; }

/* Tote zoom range is now 100%–200%. */

/* =========================================================
   Epi Studio v5.47 Beta — cleaner customizer composition
   - Rotation controls live in a reserved strip below the canvas.
   - Section 3 owns the complete right column.
   - "Your design" becomes a horizontal carousel in the pricing bar.
   ========================================================= */

/* Keep the design itself exactly the same size whether an item is selected or not. */
.selection-toolbar.selection-toolbar-below {
  position: static !important;
  z-index: auto;
  flex: 0 0 104px;
  width: 100%;
  min-height: 104px;
  box-sizing: border-box;
  padding: 10px 14px;
  border: 0;
  border-top: 1px solid rgba(122,73,46,.11);
  border-radius: 0;
  background: #fffdf9;
  box-shadow: none;
  backdrop-filter: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Reserve the same strip even when nothing is selected, preventing any layout shift. */
.selection-toolbar.selection-toolbar-below[hidden] {
  display: flex !important;
  visibility: hidden;
  pointer-events: none;
  border-top-color: transparent;
  background: #fffdf9;
}

.selection-toolbar.selection-toolbar-below .selection-actions {
  width: 100%;
  margin: 7px 0 3px;
}

.selection-toolbar.selection-toolbar-below .selection-help {
  margin: 2px 0 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  font-size: .7rem;
}

@media (min-width: 781px) {
  .canvas-column {
    height: calc(var(--customizer-height) + 104px) !important;
  }
}

/* The right panel is now entirely Section 3. */
.right-panel .patch-library-section {
  height: 100%;
  max-height: none;
}

/* Bottom design-item carousel. */
.checkout-bar {
  min-height: 78px;
  justify-content: stretch;
  gap: clamp(12px, 2vw, 24px);
}

.checkout-design-strip {
  min-width: 0;
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.checkout-design-label {
  color: var(--brown-800);
  font-size: .74rem;
  font-weight: 850;
  letter-spacing: .04em;
  white-space: nowrap;
}

.checkout-layers-viewport {
  min-width: 0;
  overflow: hidden;
  scroll-behavior: smooth;
}

.checkout-layers-list {
  display: flex !important;
  align-items: center;
  gap: 8px;
  width: max-content;
  min-width: 100%;
}

.checkout-layers-list .layer-row {
  flex: 0 0 158px;
  height: 54px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 24px;
  gap: 7px;
  align-items: center;
  box-sizing: border-box;
  padding: 6px 7px;
  border-radius: 12px;
  box-shadow: none;
}

.checkout-layers-list .layer-row img {
  width: 36px;
  height: 36px;
}

.checkout-layers-list .layer-label {
  padding: 0;
  color: var(--ink);
  text-align: left;
}

.checkout-layers-list .layer-label strong {
  font-size: .75rem;
  line-height: 1.15;
}

.checkout-layers-list .layer-label small {
  display: block;
  margin-top: 2px;
  font-size: .64rem;
  white-space: nowrap;
}

.checkout-layers-list .layer-delete {
  width: 24px;
  height: 24px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--danger);
}

.checkout-layers-empty {
  margin: 0;
  padding: 8px 2px;
  color: var(--muted);
  font-size: .72rem;
  white-space: nowrap;
}

.checkout-layer-arrow {
  width: 30px;
  height: 30px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--beige-300);
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  color: var(--brown-800);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.checkout-layer-arrow:hover:not(:disabled) {
  border-color: var(--brown-500);
  background: #fff;
}

.checkout-layer-arrow:disabled {
  opacity: .35;
  cursor: default;
}

.checkout-layer-arrow[hidden] {
  display: none !important;
}

.checkout-summary-cluster {
  flex: 0 0 auto;
  min-width: max-content;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(12px, 2vw, 22px);
  padding-left: clamp(10px, 1.5vw, 20px);
  border-left: 1px solid rgba(122,73,46,.12);
}

.checkout-summary-cluster .price-summary,
.checkout-summary-cluster #reviewButton {
  flex: 0 0 auto;
}

@media (max-width: 900px) {
  .checkout-bar {
    padding-left: 12px;
    padding-right: 12px;
    gap: 10px;
  }

  .checkout-design-label {
    display: none;
  }

  .checkout-design-strip {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .checkout-layers-list .layer-row {
    flex-basis: 126px;
  }

  .checkout-summary-cluster {
    gap: 9px;
    padding-left: 10px;
  }
}

@media (max-width: 620px) {
  .selection-toolbar.selection-toolbar-below {
    flex-basis: 118px;
    min-height: 118px;
    padding: 8px 10px;
  }

  .checkout-bar {
    min-height: 78px;
    padding: 8px 8px;
    gap: 7px;
  }

  .checkout-layer-arrow {
    width: 26px;
    height: 26px;
    font-size: 1rem;
  }

  .checkout-design-strip {
    gap: 5px;
  }

  .checkout-layers-list {
    gap: 5px;
  }

  .checkout-layers-list .layer-row {
    flex-basis: 96px;
    height: 50px;
    grid-template-columns: 34px minmax(0,1fr) 20px;
    gap: 4px;
    padding: 5px;
  }

  .checkout-layers-list .layer-row img {
    width: 32px;
    height: 32px;
  }

  .checkout-layers-list .layer-label strong {
    font-size: .68rem;
  }

  .checkout-layers-list .layer-label small {
    display: none;
  }

  .checkout-layers-list .layer-delete {
    width: 20px;
    height: 20px;
  }

  .checkout-summary-cluster {
    gap: 6px;
    padding-left: 7px;
  }

  .checkout-summary-cluster #reviewButton {
    padding-left: 9px;
    padding-right: 9px;
    font-size: .75rem;
  }
}


/* =========================================================
   Epi Studio v5.48 Beta — customizer alignment + tote zoom fixes
   ========================================================= */

/* Match the left and right panel bottoms to the reserved rotation strip. */
@media (min-width: 781px) {
  .left-panel,
  .right-panel,
  .canvas-column {
    height: calc(var(--customizer-height) + 104px) !important;
  }
}

/* At zoom levels above 100%, do not let the old full-fit max constraints
   shrink the tote back into the stage. The canvas itself grows; the stage
   remains the same size and becomes the viewing window. */
.canvas-stage.fit-entire-product-stage.tote-zoomed-stage > .product-canvas {
  max-width: none !important;
  max-height: none !important;
}

/* Keep the rotation strip visually attached below the item without covering it. */
.selection-toolbar.selection-toolbar-below {
  border-top-color: rgba(122,73,46,.14);
}
