/**
 * Vila Vez — Custom Embroidery Designer Styles
 * Luxury editorial palette matching House of Embroidery aesthetic
 */

/* ==========================================================================
   Mobile-First Native App Feel & Anti-Horizontal Shake Lock
   ========================================================== */
html, body.wix-editorial-theme {
  overflow-x: hidden !important;
  max-width: 100vw;
  width: 100%;
  overscroll-behavior-x: none;
  -webkit-overflow-scrolling: touch;
  -webkit-tap-highlight-color: transparent;
}

.designer-main-wrapper {
  padding-top: 1.25rem;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.designer-top-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.25rem 0 1.25rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(215, 202, 187, 0.45);
}

.designer-nav-home {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #8a6b54;
  text-decoration: none;
  flex-shrink: 0;
  padding: 0.35rem 0.5rem 0.35rem 0;
  transition: color 0.18s ease, transform 0.18s ease;
}

.designer-nav-home svg {
  flex-shrink: 0;
  transition: transform 0.18s ease;
}

.designer-nav-home:hover {
  color: #633b21;
}

.designer-nav-home:hover svg {
  transform: translateX(-3px);
}

.designer-steps-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin: 0;
  flex-wrap: nowrap;
}

.designer-step-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  font-size: 0.80rem;
  font-weight: 500;
  color: #8a6b54;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  white-space: nowrap;
  user-select: none;
  transition: color 0.18s ease;
}

.designer-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid #d7cabb;
  font-size: 0.70rem;
  font-weight: 700;
  color: #8a6b54;
  background: #ffffff;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.designer-step-item.active {
  color: #633b21;
  font-weight: 700;
}

.designer-step-item.active .designer-step-num {
  background: #633b21;
  color: #ffffff;
  border-color: #633b21;
  box-shadow: 0 2px 6px rgba(99, 59, 33, 0.22);
}

.designer-step-item.completed {
  color: #633b21;
  cursor: pointer;
}

.designer-step-item.completed:hover {
  color: #2b1a0e;
}

.designer-step-item.completed:hover .designer-step-num {
  border-color: #633b21;
  background: #dfcfbe;
}

.designer-step-item.completed .designer-step-num {
  background: #eadecf;
  color: #633b21;
  border-color: #d7cabb;
  font-weight: 800;
  font-size: 0.74rem;
}

.designer-step-divider {
  width: 22px;
  height: 1px;
  background: #d7cabb;
  flex-shrink: 0;
}

.step-label-short {
  display: none;
}

.step-label-full {
  display: inline;
}

/* Accessible utility for SEO H1 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Mobile-First Responsive Breakpoints */
@media (max-width: 768px) {
  .designer-main-wrapper {
    padding-top: 0.85rem;
  }

  .designer-top-nav-row {
    padding: 0.2rem 0 0.9rem;
    margin-bottom: 1.25rem;
    gap: 0.75rem;
  }

  .designer-nav-home {
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    gap: 0.35rem;
  }

  .designer-steps-nav {
    gap: 0.65rem;
  }

  .designer-step-item {
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    gap: 0.35rem;
  }

  .designer-step-num {
    width: 20px;
    height: 20px;
    font-size: 0.68rem;
  }

  .designer-step-divider {
    width: 14px;
  }
}

@media (max-width: 540px) {
  .designer-top-nav-row {
    gap: 0.5rem;
  }

  .designer-nav-home {
    font-size: 0.72rem;
    letter-spacing: 0.06em;
  }

  .designer-steps-nav {
    gap: 0.4rem;
  }

  .designer-step-item {
    font-size: 0.66rem;
    letter-spacing: 0.03em;
    gap: 0.28rem;
  }

  .designer-step-num {
    width: 19px;
    height: 19px;
    font-size: 0.64rem;
  }

  .designer-step-divider {
    width: 10px;
  }
}

@media (max-width: 410px) {
  .designer-top-nav-row {
    gap: 0.35rem;
  }

  .designer-nav-home {
    font-size: 0.68rem;
    letter-spacing: 0.03em;
    padding-right: 0.2rem;
  }

  .designer-steps-nav {
    gap: 0.3rem;
  }

  .designer-step-item {
    font-size: 0.62rem;
    letter-spacing: 0.02em;
    gap: 0.22rem;
  }

  .designer-step-num {
    width: 18px;
    height: 18px;
    font-size: 0.60rem;
  }

  .designer-step-divider {
    width: 6px;
  }

  .step-label-full {
    display: none;
  }

  .step-label-short {
    display: inline;
  }
}

/* Category Filter Bar */
.designer-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(215, 202, 187, 0.6);
}

.designer-category-pills {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.designer-pill-btn {
  background: #ffffff;
  border: 1px solid #d7cabb;
  color: #633b21;
  padding: 0.55rem 1.25rem;
  border-radius: 30px;
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.04em;
}

.designer-pill-btn:hover {
  border-color: #633b21;
  background: rgba(99, 59, 33, 0.04);
}

.designer-pill-btn.active {
  background: #633b21;
  color: #ffffff;
  border-color: #633b21;
  box-shadow: 0 2px 8px rgba(99, 59, 33, 0.18);
}

.designer-search-wrap {
  position: relative;
  min-width: 240px;
}

.designer-search-input {
  width: 100%;
  padding: 0.55rem 1rem 0.55rem 2.25rem;
  border: 1px solid #d7cabb;
  border-radius: 30px;
  font-family: 'EB Garamond', serif;
  font-size: 1.05rem;
  color: #633b21;
  background: #ffffff;
  outline: none;
  transition: border-color 0.2s ease;
}

.designer-search-input:focus {
  border-color: #633b21;
}

.designer-search-icon {
  position: absolute;
  left: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  color: #8a6b54;
  pointer-events: none;
}

/* Products Grid */
.designer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 5rem;
}

/* Product Card */
.designer-card {
  background: #ffffff;
  border: 1px solid #d7cabb;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  cursor: pointer;
}

.designer-card:hover {
  transform: translateY(-4px);
  border-color: #bfa895;
  box-shadow: 0 10px 28px rgba(99, 59, 33, 0.08);
}

.designer-card.selected {
  border: 2px solid #633b21;
  box-shadow: 0 0 0 4px rgba(99, 59, 33, 0.12), 0 12px 32px rgba(99, 59, 33, 0.12);
}

.designer-card-selected-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #633b21;
  color: #ffffff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.designer-card.selected .designer-card-selected-badge {
  display: flex;
}

.designer-img-box {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: #f7f3ee;
  position: relative;
  overflow: hidden;
}

.designer-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.designer-card:hover .designer-img-box img {
  transform: scale(1.04);
}

/* Multi-Photo Carousel in Designer Step 1 */
.designer-carousel-container {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.designer-carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.designer-carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  position: relative;
}

.designer-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.designer-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  color: #2b1a0e;
  border: 1px solid rgba(215, 202, 187, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  z-index: 6;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s, transform 0.15s, color 0.15s;
  user-select: none;
  line-height: 1;
}

.designer-card:hover .designer-carousel-btn,
.designer-img-box:focus-within .designer-carousel-btn {
  opacity: 1;
}

@media (hover: none) {
  .designer-carousel-btn {
    opacity: 0.9 !important;
  }
}

.designer-carousel-btn:hover {
  background: #ffffff;
  color: #c5a059;
  transform: translateY(-50%) scale(1.1);
}

.designer-carousel-btn.prev {
  left: 8px;
}

.designer-carousel-btn.next {
  right: 8px;
}

.designer-carousel-dots {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: flex;
  gap: 5px;
  align-items: center;
  z-index: 6;
  background: rgba(43, 26, 14, 0.65);
  backdrop-filter: blur(4px);
  padding: 4px 8px;
  border-radius: 12px;
}

.designer-carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  transition: all 0.25s ease;
  cursor: pointer;
}

.designer-carousel-dot.active {
  background: #ffffff;
  width: 14px;
  border-radius: 4px;
}

.designer-carousel-counter {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(43, 26, 14, 0.75);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.66rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  z-index: 6;
  letter-spacing: 0.04em;
  pointer-events: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
}

.designer-card-category-tag {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(254, 250, 238, 0.94);
  backdrop-filter: blur(4px);
  color: #633b21;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.65rem;
  border-radius: 4px;
  border: 1px solid rgba(215, 202, 187, 0.6);
}

.designer-card-content {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.designer-card-title {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.35rem;
  color: #633b21;
  margin: 0 0 0.5rem;
  line-height: 1.25;
}

.designer-card-price {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #633b21;
  margin-bottom: 0.75rem;
}

.designer-card-price span {
  font-size: 0.8rem;
  font-weight: 400;
  color: #8a6b54;
}

.designer-card-desc {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.02rem;
  color: #5c4738;
  line-height: 1.45;
  margin: 0 0 1.2rem;
  flex: 1;
}

/* Colors & Placement previews */
.designer-card-meta {
  border-top: 1px solid #f0e8de;
  padding-top: 0.85rem;
  margin-bottom: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.designer-meta-row {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.designer-meta-label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8a6b54;
}

.designer-color-chips,
.designer-variant-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.designer-color-chip {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.72rem;
  background: #fefaee;
  border: 1px solid #e0d5c5;
  color: #633b21;
  padding: 2px 7px;
  border-radius: 12px;
}

.designer-chip-btn {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.72rem;
  background: #fdfbf7;
  border: 1px solid #d7cabb;
  color: #633b21;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.designer-chip-btn:hover {
  border-color: #633b21;
  background: #fbf7f2;
}

.designer-chip-btn.active {
  background: #633b21;
  color: #ffffff;
  border-color: #633b21;
  font-weight: 600;
}

.designer-chip-delta {
  font-size: 0.65rem;
  background: rgba(99, 59, 33, 0.12);
  color: #633b21;
  padding: 1px 4px;
  border-radius: 3px;
  font-weight: 700;
}

.designer-chip-btn.active .designer-chip-delta {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.designer-chip-btn.sold-out {
  background: #f7f4f0 !important;
  border-color: #e5ded4 !important;
  color: #a8988a !important;
  cursor: not-allowed;
  opacity: 0.85;
}

.designer-chip-btn.sold-out:hover {
  border-color: #e5ded4 !important;
  background: #f7f4f0 !important;
}

.designer-chip-sold-out-tag {
  font-size: 0.62rem;
  font-weight: 700;
  color: #c62828;
  background: #ffebee;
  padding: 1px 4px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.designer-placement-chips {
  margin-top: 2px;
}

.designer-other-location-wrap {
  width: 100%;
  margin-top: 5px;
}

.designer-other-location-input {
  width: 100%;
  box-sizing: border-box;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.74rem;
  color: #633b21;
  background: #ffffff;
  border: 1px solid #d7cabb;
  border-radius: 4px;
  padding: 6px 10px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.designer-other-location-input:focus {
  border-color: #633b21;
  box-shadow: 0 0 0 2px rgba(99, 59, 33, 0.12);
}

.designer-card.sold-out {
  opacity: 0.92;
}

.designer-card.sold-out .designer-select-btn {
  background: #f0eae1;
  color: #8c7866;
  border-color: #ded5c7;
  cursor: not-allowed;
}

.designer-card.sold-out .designer-select-btn:hover {
  background: #f0eae1;
  color: #8c7866;
  border-color: #ded5c7;
  transform: none;
  box-shadow: none;
}

.designer-card-soldout-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(198, 40, 40, 0.94);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.65rem;
  border-radius: 4px;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.designer-selected-variant-badge {
  display: inline-block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.72rem;
  background: #f6efe6;
  border: 1px solid #dfd3c3;
  color: #633b21;
  padding: 2px 8px;
  border-radius: 12px;
  margin-top: 3px;
  font-weight: 500;
}

/* Card Button */
.designer-select-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 1.25rem;
  background: #ffffff;
  border: 1px solid #633b21;
  color: #633b21;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.designer-card:hover .designer-select-btn {
  background: #633b21;
  color: #ffffff;
}

.designer-card.selected .designer-select-btn {
  background: #633b21;
  color: #ffffff;
}

/* Sticky Bottom Summary Bar */
.designer-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 1px solid #d7cabb;
  box-shadow: 0 -4px 20px rgba(99, 59, 33, 0.1);
  padding: 1rem 1.5rem;
  z-index: 100;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.designer-bottom-bar.active {
  transform: translateY(0);
}

.designer-bottom-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.designer-selected-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.designer-selected-thumb {
  width: 48px;
  height: 48px;
  border-radius: 4px;
  object-fit: cover;
  border: 1px solid #d7cabb;
}

.designer-selected-title {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.2rem;
  color: #633b21;
  font-weight: 600;
  margin: 0;
}

.designer-selected-price {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.85rem;
  color: #8a6b54;
  margin: 0;
}

.designer-continue-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #633b21;
  color: #ffffff;
  border: 1px solid #633b21;
  padding: 0.85rem 1.8rem;
  border-radius: 4px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(99, 59, 33, 0.2);
}

.designer-continue-btn:hover {
  background: #4a2b17;
  border-color: #4a2b17;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(99, 59, 33, 0.28);
}

.designer-continue-btn:disabled,
.designer-continue-btn.disabled {
  background: #d4c8ba !important;
  border-color: #d4c8ba !important;
  color: #7d6b5c !important;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
}

/* Empty State / Loading State */
.designer-loading-box,
.designer-empty-box {
  text-align: center;
  padding: 4rem 1rem;
  font-family: 'EB Garamond', Georgia, serif;
  color: #8a6b54;
  font-size: 1.25rem;
  grid-column: 1 / -1;
}

.designer-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(99, 59, 33, 0.15);
  border-top-color: #633b21;
  border-radius: 50%;
  animation: designer-spin 0.8s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes designer-spin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   STEP 2: CUSTOMIZER STYLES (House of Embroidery Split Studio Experience)
   ========================================================================== */

/* 1. Compact Canvas Summary Bar (Step 1 Selection Carry-over) */
.designer-canvas-summary-bar {
  background: #ffffff;
  border: 1px solid #d7cabb;
  border-radius: 8px;
  padding: 0.85rem 1.25rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  box-shadow: 0 4px 14px rgba(99, 59, 33, 0.04);
}

.summary-canvas-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.summary-canvas-thumb {
  width: 58px;
  height: 58px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid #d7cabb;
  background: #faf6f0;
}

.summary-canvas-details {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.summary-canvas-title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.summary-canvas-title {
  font-family: 'EB Garamond', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: #633b21;
  margin: 0;
}

.summary-canvas-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8a6b54;
  background: #f4ecdf;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

.summary-canvas-meta {
  font-size: 0.82rem;
  color: #7a5c43;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.summary-canvas-meta strong {
  color: #633b21;
}

.btn-change-canvas {
  background: transparent;
  border: 1px solid #d7cabb;
  color: #633b21;
  padding: 0.45rem 0.9rem;
  border-radius: 4px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.btn-change-canvas:hover {
  background: #fdfaf6;
  border-color: #633b21;
  transform: translateX(-2px);
}

/* ==========================================================================
   Embroidery Placement Selector Section
   ========================================================================== */
.designer-placement-selector-section {
  background: #ffffff;
  border: 1px solid #d7cabb;
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 18px rgba(99, 59, 33, 0.05);
}

.placement-selector-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.15rem;
  flex-wrap: wrap;
}

.placement-selector-title-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.placement-selector-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: #2b1a0e;
  margin: 0;
  letter-spacing: 0.01em;
}

.placement-selector-subtitle {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.80rem;
  color: #7a5c43;
  margin: 0;
  letter-spacing: 0.01em;
}

.placement-selector-counter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f4ecdf;
  border: 1px solid #e3d3c2;
  color: #633b21;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  letter-spacing: 0.03em;
}

.placement-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 1rem;
}

.placement-card {
  position: relative;
  background: #faf8f5;
  border: 1.5px solid #d7cabb;
  border-radius: 8px;
  padding: 0.6rem;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  user-select: none;
}

.placement-card:hover {
  border-color: #8a6b54;
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(99, 59, 33, 0.08);
}

.placement-card.is-selected {
  border-color: #633b21;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(99, 59, 33, 0.12);
}

.placement-card.is-active {
  border-color: #b38d4c;
  box-shadow: 0 0 0 2px #b38d4c, 0 6px 18px rgba(179, 141, 76, 0.20);
}

.placement-card-photo-box {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  overflow: hidden;
  background: #f2ede7;
}

.placement-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.placement-card:hover .placement-card-img {
  transform: scale(1.04);
}

.placement-card-badge-row {
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.placement-num-pill {
  width: 22px;
  height: 22px;
  background: #633b21;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.25);
}

.placement-select-pill {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
  letter-spacing: 0.02em;
  background: rgba(255, 255, 255, 0.92);
  color: #7a5c43;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
  backdrop-filter: blur(4px);
  transition: all 0.2s ease;
}

.placement-select-pill.is-selected {
  background: #2e7d32;
  color: #ffffff;
}

.placement-card-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.placement-card-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: #2b1a0e;
  letter-spacing: 0.01em;
  line-height: 1.25;
}

.placement-card-hint {
  font-size: 0.70rem;
  color: #8a6b54;
  font-weight: 500;
}

.placement-card.is-active .placement-card-hint {
  color: #b38d4c;
  font-weight: 700;
}

/* 2. Split Studio Layout: Studio on Left, Canvas & Proceed on Right */
.customizer-layout {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(360px, 1.15fr);
  gap: 2.5rem;
  align-items: start;
  margin-bottom: 2.5rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

/* 3. Right Column: Stack of Live Canvas Mockup Stages & Proceed Button */
.customizer-preview-col {
  position: sticky;
  top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.customizer-mockup-card {
  background: #ffffff;
  border: 1.5px solid #d7cabb;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(99, 59, 33, 0.06);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.customizer-mockup-card.is-active {
  border-color: #633b21;
  box-shadow: 0 8px 30px rgba(99, 59, 33, 0.16);
}

.customizer-mockup-card:not(.is-active) {
  opacity: 0.90;
  cursor: pointer;
}

.customizer-mockup-card:not(.is-active):hover {
  opacity: 1;
  border-color: #b38d4c;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(99, 59, 33, 0.12);
}

.customizer-mockup-header {
  padding: 0.75rem 1.15rem;
  border-bottom: 1px solid #f0e8de;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #faf6f0;
  gap: 0.75rem;
  cursor: pointer;
}

.customizer-mockup-card.is-active .customizer-mockup-header {
  background: #fbf8f4;
  border-bottom-color: #ebd9c8;
}

/* Orientation Header Above Mockup Canvas */
.customizer-mockup-header.customizer-orientation-header {
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fbf8f4;
  gap: 0.75rem;
  flex-wrap: wrap;
  cursor: default;
}

.customizer-orientation-header-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.customizer-orientation-label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.70rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8a6b54;
  white-space: nowrap;
}

.customizer-orientation-pills {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.customizer-orientation-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.32rem 0.75rem;
  border-radius: 20px;
  border: 1.5px solid #d7cabb;
  background: #ffffff;
  color: #633b21;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
}

.customizer-orientation-btn:hover {
  border-color: #633b21;
  background: #f7efe6;
  transform: translateY(-1px);
}

.customizer-orientation-btn.is-active {
  background: #633b21;
  border-color: #633b21;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(99, 59, 33, 0.22);
}

.customizer-orientation-header-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* --- Canvas Zoom Controls & Slider (Luxury Atelier Aesthetic) --- */
.canvas-zoom-control-bar {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #ffffff;
  border: 1.5px solid #d7cabb;
  border-radius: 20px;
  padding: 3px 6px 3px 8px;
  box-shadow: 0 1px 4px rgba(99, 59, 33, 0.06);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.canvas-zoom-control-bar:hover {
  border-color: #b38d4c;
  box-shadow: 0 2px 8px rgba(99, 59, 33, 0.1);
}

.btn-canvas-zoom {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: #8a6b54;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 0;
  flex-shrink: 0;
}

.btn-canvas-zoom:hover {
  background: #f4ecdf;
  color: #633b21;
  transform: scale(1.1);
}

.btn-canvas-zoom:active {
  transform: scale(0.92);
}

.canvas-zoom-slider-wrap {
  display: flex;
  align-items: center;
  width: 90px;
  padding: 0 2px;
}

.canvas-zoom-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: #e8ded4;
  outline: none;
  cursor: pointer;
  margin: 0;
  transition: background 0.15s;
}

.canvas-zoom-slider:hover {
  background: #ddcfc2;
}

.canvas-zoom-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #633b21;
  border: 2px solid #ffffff;
  box-shadow: 0 1px 4px rgba(99, 59, 33, 0.35);
  cursor: pointer;
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.15s;
}

.canvas-zoom-slider::-webkit-slider-thumb:hover {
  transform: scale(1.22);
  background: #4a2813;
}

.canvas-zoom-slider::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #633b21;
  border: 2px solid #ffffff;
  box-shadow: 0 1px 4px rgba(99, 59, 33, 0.35);
  cursor: pointer;
}

.btn-canvas-zoom-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ebd9c8;
  background: #fbf8f4;
  color: #8a6b54;
  border-radius: 12px;
  padding: 2px 7px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.18s ease;
  line-height: 1.2;
  white-space: nowrap;
}

.btn-canvas-zoom-reset:hover {
  background: #633b21;
  border-color: #633b21;
  color: #ffffff;
}

.btn-canvas-zoom-reset.is-zoomed {
  background: #633b21;
  border-color: #633b21;
  color: #ffffff;
  box-shadow: 0 1px 4px rgba(99, 59, 33, 0.22);
}

/* --- Canvas Zoom Container & Viewport Pan --- */
.canvas-zoom-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform-origin: center center;
  will-change: transform;
  transition: transform 0.12s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
}

.customizer-mockup-stage.is-panning .canvas-zoom-container {
  transition: none !important;
}

.customizer-mockup-stage.is-zoomed {
  cursor: grab;
  touch-action: none;
}

.customizer-mockup-stage.is-panning {
  cursor: grabbing !important;
  user-select: none;
}

.canvas-zoom-hint-badge {
  position: absolute;
  bottom: 14px;
  left: 14px;
  z-index: 9;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  color: #633b21;
  background: rgba(254, 252, 249, 0.94);
  border: 1px solid rgba(215, 202, 187, 0.85);
  border-radius: 16px;
  padding: 4px 10px;
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 8px rgba(99, 59, 33, 0.08);
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  animation: fadeInZoomHint 0.25s ease forwards;
  user-select: none;
}

@keyframes fadeInZoomHint {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
  .canvas-zoom-control-bar {
    padding: 2px 4px 2px 6px;
    gap: 3px;
  }
  .canvas-zoom-slider-wrap {
    width: 65px;
  }
}

.customizer-current-view-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2e7d32;
  background: rgba(46, 125, 50, 0.08);
  padding: 3px 8px;
  border-radius: 12px;
  border: 1px solid rgba(46, 125, 50, 0.2);
  white-space: nowrap;
}

.mockup-header-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #8a6b54;
}

.canvas-num-pill {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ebd9c8;
  color: #633b21;
  font-size: 0.76rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.canvas-num-pill.is-active {
  background: #633b21;
  color: #ffffff;
}

.canvas-header-thumb {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  object-fit: cover;
  border: 1px solid #d7cabb;
  flex-shrink: 0;
  background: #faf8f5;
}

.canvas-header-title-box {
  display: flex;
  flex-direction: column;
}

.canvas-header-sub {
  font-size: 0.68rem;
  color: #8a6b54;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.canvas-active-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.70rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #ffffff;
  background: #633b21;
  padding: 3px 10px;
  border-radius: 12px;
}

.canvas-active-dot {
  width: 6px;
  height: 6px;
  background: #4caf50;
  border-radius: 50%;
  display: inline-block;
  animation: pulse-dot 1.5s infinite;
}

.btn-select-canvas-active {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid #d7cabb;
  background: #ffffff;
  color: #633b21;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-select-canvas-active:hover {
  background: #633b21;
  color: #ffffff;
  border-color: #633b21;
}

/* Studio active canvas banner in right controls column */
.studio-active-canvas-banner {
  background: #f7f3ec;
  border: 1px solid #ebd9c8;
  border-radius: 6px;
  padding: 0.65rem 0.9rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.active-canvas-banner-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.active-canvas-badge-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #633b21;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.active-canvas-mini-thumb {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  object-fit: cover;
  border: 1px solid #d7cabb;
}

.active-canvas-banner-label {
  display: block;
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8a6b54;
}

.active-canvas-banner-name {
  display: block;
  font-size: 0.88rem;
  font-weight: 800;
  color: #2b1a0e;
}

.active-canvas-switcher select {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 8px;
  border: 1px solid #d7cabb;
  border-radius: 4px;
  background: #ffffff;
  color: #633b21;
  cursor: pointer;
}

.mockup-live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #2e7d32;
  background: #e8f5e9;
  padding: 0.15rem 0.5rem;
  border-radius: 12px;
}

.mockup-live-indicator::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #2e7d32;
  border-radius: 50%;
  animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.customizer-mockup-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  min-height: 380px;
  background-color: #faf8f5;
  background-image: 
    radial-gradient(circle at 50% 50%, rgba(253, 252, 250, 0.95) 0%, rgba(248, 245, 240, 0.6) 100%),
    repeating-linear-gradient(0deg, rgba(215, 202, 187, 0.08) 0px, rgba(215, 202, 187, 0.08) 1px, transparent 1px, transparent 4px),
    repeating-linear-gradient(90deg, rgba(215, 202, 187, 0.08) 0px, rgba(215, 202, 187, 0.08) 1px, transparent 1px, transparent 4px);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 35px rgba(99, 59, 33, 0.03);
}

.customizer-stage-product-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
  user-select: none;
  z-index: 1;
  padding: 10px;
  transition: opacity 0.25s ease;
}

.atelier-canvas-inner-frame {
  position: absolute;
  inset: 12px;
  border: 1px dashed rgba(179, 141, 76, 0.22);
  border-radius: 6px;
  pointer-events: none;
  z-index: 2;
}

.atelier-canvas-watermark {
  position: absolute;
  bottom: 12px;
  right: 18px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(138, 107, 84, 0.45);
  background: rgba(255, 255, 255, 0.82);
  padding: 3px 8px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
  pointer-events: none;
  z-index: 2;
}

.canvas-product-pill {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.70rem;
  font-weight: 600;
  color: #633b21;
  background: #f4ecdf;
  padding: 2px 10px;
  border-radius: 12px;
  letter-spacing: 0.04em;
  border: 1px solid #ebd9c8;
}

/* Realistic Embroidery Stitched Effect */
.embroidery-render-zone {
  position: absolute;
  pointer-events: none;
  user-select: none;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.embroidery-stitch-effect {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pes-monogram-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  pointer-events: auto;
}

.pes-monogram-container.has-crest {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pes-monogram-crest-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 1;
}

.pes-crest-img {
  display: block;
  max-width: none !important;
  flex-shrink: 0;
  pointer-events: none;
  filter: drop-shadow(0 2px 5px rgba(35, 18, 8, 0.22));
}

.pes-monogram-container.has-crest .pes-monogram-composite {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: max-content !important;
  max-width: none !important;
  padding: 0 !important;
  z-index: 2;
}

/* Interactive Placed Motifs Layer */
.canvas-motifs-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 8;
}

.canvas-placed-motif {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  user-select: none;
  touch-action: none;
  cursor: pointer;
  z-index: 10;
  transition: box-shadow 0.2s ease;
}

.canvas-placed-motif.is-focused {
  cursor: grab;
  z-index: 18;
}

.canvas-placed-motif.dragging {
  cursor: grabbing;
  z-index: 22;
}

.canvas-placed-motif.resizing {
  z-index: 22;
}

:root {
  --canvas-zoom: 1;
  --inv-zoom: 1;
}

.motif-bounding-box {
  position: relative;
  padding: calc(6px * var(--inv-zoom, 1));
  border: calc(1.5px * var(--inv-zoom, 1)) dashed transparent;
  border-radius: calc(6px * var(--inv-zoom, 1));
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

/* Faint dotted box and subtle tint shown ONLY on the focused item */
.canvas-placed-motif.is-focused .motif-bounding-box {
  border-color: rgba(99, 59, 33, 0.65);
  background: rgba(255, 255, 255, 0.22);
  box-shadow: 0 calc(4px * var(--inv-zoom, 1)) calc(14px * var(--inv-zoom, 1)) rgba(99, 59, 33, 0.08);
}

.motif-render-content {
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

/* Corner Remove Button (-) - Circular badge matching site luxury aesthetic (Top-Right) */
.motif-remove-btn {
  position: absolute;
  top: 0;
  right: 0;
  transform: translate(50%, -50%) scale(var(--inv-zoom, 1));
  transform-origin: center center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  color: #633b21;
  border: calc(1.5px * var(--inv-zoom, 1)) solid #633b21;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 calc(2px * var(--inv-zoom, 1)) calc(7px * var(--inv-zoom, 1)) rgba(0, 0, 0, 0.16);
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  z-index: 25;
  padding: 0;
  line-height: 1;
}

.motif-remove-btn::before,
.motif-resize-handle::before,
.motif-rotate-handle::before,
.motif-spacing-handle::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
}

.canvas-placed-motif.is-focused .motif-remove-btn {
  display: flex;
}

.motif-remove-btn:hover {
  background: #8b251a;
  color: #ffffff;
  border-color: #8b251a;
  transform: translate(50%, -50%) scale(calc(var(--inv-zoom, 1) * 1.15));
}

/* Corner Resize Handle - Circular badge with double arrow matching site luxury aesthetic (Bottom-Right) */
.motif-resize-handle {
  position: absolute;
  bottom: 0;
  right: 0;
  transform: translate(50%, 50%) scale(var(--inv-zoom, 1));
  transform-origin: center center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  color: #633b21;
  border: calc(1.5px * var(--inv-zoom, 1)) solid #633b21;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: nwse-resize;
  box-shadow: 0 calc(2px * var(--inv-zoom, 1)) calc(7px * var(--inv-zoom, 1)) rgba(0, 0, 0, 0.16);
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  z-index: 25;
  touch-action: none;
}

.canvas-placed-motif.is-focused .motif-resize-handle {
  display: flex;
}

.motif-resize-handle:hover,
.canvas-placed-motif.resizing .motif-resize-handle {
  background: #633b21;
  color: #ffffff;
  transform: translate(50%, 50%) scale(calc(var(--inv-zoom, 1) * 1.15));
}

/* Corner Spacing Handle - Circular badge with horizontal arrow (Bottom-Left) */
.motif-spacing-handle {
  position: absolute;
  bottom: 0;
  left: 0;
  transform: translate(-50%, 50%) scale(var(--inv-zoom, 1));
  transform-origin: center center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  color: #633b21;
  border: calc(1.5px * var(--inv-zoom, 1)) solid #633b21;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: ew-resize;
  box-shadow: 0 calc(2px * var(--inv-zoom, 1)) calc(7px * var(--inv-zoom, 1)) rgba(0, 0, 0, 0.16);
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  z-index: 25;
  touch-action: none;
  padding: 0;
  line-height: 1;
}

.canvas-placed-motif.is-focused .motif-spacing-handle {
  display: flex;
}

.motif-spacing-handle:hover,
.canvas-placed-motif.adjusting-spacing .motif-spacing-handle {
  background: #633b21;
  color: #ffffff;
  transform: translate(-50%, 50%) scale(calc(var(--inv-zoom, 1) * 1.15));
}

.canvas-placed-motif.adjusting-spacing {
  z-index: 24;
}

/* Size Badge - Floating pill ONLY visible while actively changing the size */
.motif-size-badge {
  position: absolute;
  bottom: calc(-10px - (22px * var(--inv-zoom, 1)));
  left: 50%;
  transform: translateX(-50%) scale(var(--inv-zoom, 1));
  transform-origin: center top;
  background: #633b21;
  color: #ffffff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, visibility 0.15s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.22);
  z-index: 30;
}

.canvas-placed-motif.resizing .motif-size-badge {
  opacity: 1;
  visibility: visible;
}

/* Spacing Badge - Floating pill ONLY visible while actively adjusting letter spacing */
.motif-spacing-badge {
  position: absolute;
  bottom: calc(-10px - (22px * var(--inv-zoom, 1)));
  left: 50%;
  transform: translateX(-50%) scale(var(--inv-zoom, 1));
  transform-origin: center top;
  background: #633b21;
  color: #ffffff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, visibility 0.15s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.22);
  z-index: 30;
}

.canvas-placed-motif.adjusting-spacing .motif-spacing-badge {
  opacity: 1;
  visibility: visible;
}

/* Corner Rotate Handle - Circular badge with curved rotation arrow matching site luxury aesthetic (Top-Left) */
.motif-rotate-handle {
  position: absolute;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%) scale(var(--inv-zoom, 1));
  transform-origin: center center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  color: #633b21;
  border: calc(1.5px * var(--inv-zoom, 1)) solid #633b21;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: grab;
  box-shadow: 0 calc(2px * var(--inv-zoom, 1)) calc(7px * var(--inv-zoom, 1)) rgba(0, 0, 0, 0.16);
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  z-index: 25;
  touch-action: none;
  padding: 0;
  line-height: 1;
}

.canvas-placed-motif.is-focused .motif-rotate-handle {
  display: flex;
}

.motif-rotate-handle:hover,
.canvas-placed-motif.rotating .motif-rotate-handle {
  background: #633b21;
  color: #ffffff;
  transform: translate(-50%, -50%) scale(calc(var(--inv-zoom, 1) * 1.15));
  cursor: grabbing;
}

.canvas-placed-motif.rotating {
  z-index: 24;
}

/* Rotation Angle Badge - Floating pill ONLY visible while actively rotating */
.motif-rotate-badge {
  position: absolute;
  top: calc(-10px - (22px * var(--inv-zoom, 1)));
  left: 50%;
  transform: translateX(-50%) scale(var(--inv-zoom, 1));
  transform-origin: center bottom;
  background: #633b21;
  color: #ffffff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, visibility 0.15s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.22);
  z-index: 30;
}

.canvas-placed-motif.rotating .motif-rotate-badge {
  opacity: 1;
  visibility: visible;
}

/* Size Badge - Floating pill ONLY visible while actively changing the size */
.motif-size-badge {
  position: absolute;
  bottom: -32px;
  left: 50%;
  transform: translateX(-50%);
  background: #633b21;
  color: #ffffff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, visibility 0.15s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.22);
  z-index: 30;
}

.canvas-placed-motif.resizing .motif-size-badge {
  opacity: 1;
  visibility: visible;
}

/* Placed Custom Text Component on Canvas */
.canvas-placed-text {
  cursor: pointer;
}

.canvas-placed-text .text-render-content {
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.canvas-placed-text .placed-text-span {
  display: inline-block;
  white-space: nowrap;
  letter-spacing: 0.04em;
  line-height: 1.15;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.22));
}

.canvas-placed-text .motif-bounding-box {
  padding: 4px 10px;
}

/* Text Live Preview Window above ADD TEXT */
.text-live-preview-box {
  margin-bottom: 0.85rem;
  padding: 1.15rem 1rem;
  background: #fdfaf6;
  border: 1.5px dashed #d7cabb;
  border-radius: 6px;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 85px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.text-live-preview-label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a6b54;
  margin-bottom: 6px;
}

.text-live-preview-render {
  font-size: clamp(1.2rem, 3.5vw, 1.85rem);
  line-height: 1.2;
  min-height: 1.3em;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
  word-break: break-word;
  transition: font-family 0.15s ease, color 0.15s ease;
  user-select: none;
}

/* Text Mode Thread Palette */
.text-thread-subgroup {
  width: 100%;
  margin-bottom: 1.15rem;
}

.text-thread-grid:not(.single-row-thread-grid) {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px 10px !important;
  align-items: center;
  margin-top: 0.4rem;
}

.text-thread-grid .thread-swatch-btn {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  border-radius: 50% !important;
  border: 1.5px solid rgba(0, 0, 0, 0.12) !important;
  padding: 0 !important;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.text-thread-grid .thread-swatch-btn:hover {
  transform: scale(1.15);
}

.text-thread-grid .thread-swatch-btn.active {
  transform: scale(1.15);
  box-shadow: 0 0 0 2px #fdfaf6, 0 0 0 3.5px #633b21 !important;
}

/* Action Button: ADD TEXT (Clean white button with espresso border like attached reference) */
.btn-add-text {
  width: 100%;
  background: #ffffff;
  color: #633b21;
  border: 1.5px solid #633b21;
  border-radius: 6px;
  padding: 0.85rem 1.25rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(99, 59, 33, 0.06);
}

.btn-add-text:hover {
  background: #633b21;
  color: #ffffff;
  border-color: #633b21;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 59, 33, 0.22);
}

.btn-add-text:active {
  transform: translateY(0);
}

/* Monogram Live Preview & ADD MONOGRAM Row (Preview to the left, ADD MONOGRAM to the right) */
.customizer-add-monogram-group {
  border-bottom: none !important;
  margin-bottom: 0 !important;
  padding-top: 1.25rem !important;
}

.monogram-action-row {
  display: flex;
  align-items: stretch;
  gap: 12px;
  width: 100%;
}

/* 1. Square Preview Window */
.monogram-live-preview-box {
  flex: 0 0 180px;
  width: 180px;
  height: 180px;
  aspect-ratio: 1 / 1;
  background: #fdfaf6;
  border: 1.5px dashed #d7cabb;
  border-radius: 8px;
  padding: 0.35rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.monogram-live-preview-label {
  position: absolute;
  top: 6px;
  left: 8px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a6b54;
  user-select: none;
  z-index: 10;
  pointer-events: none;
}

.monogram-live-preview-render {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  flex: 1;
  user-select: none;
  position: relative;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
}

.monogram-live-preview-render.dragging {
  cursor: grabbing !important;
}

/* Ensure live preview container fills preview box and centers letters */
.monogram-live-preview-render .pes-monogram-container {
  flex-shrink: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.monogram-live-preview-render .pes-monogram-container:not(.has-crest) {
  max-width: 168px;
  max-height: 168px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.monogram-live-preview-render .pes-monogram-container.has-crest {
  flex-shrink: 0 !important;
}

.monogram-live-preview-render .pes-monogram-container.has-crest .pes-monogram-crest-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.monogram-live-preview-render .pes-crest-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  display: block;
}

.monogram-live-preview-render .pes-monogram-container.has-crest .pes-monogram-composite {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.monogram-live-preview-render .pes-monogram-composite {
  pointer-events: auto !important;
  cursor: grab !important;
  touch-action: none !important;
  user-select: none !important;
}

.monogram-live-preview-render .pes-monogram-composite.dragging {
  cursor: grabbing !important;
}

.monogram-live-preview-render .pes-letter-col,
.monogram-live-preview-render .pes-letter-img,
.monogram-live-preview-render .pes-crest-img {
  cursor: inherit !important;
  pointer-events: none !important;
}

.monogram-preview-empty-hint {
  font-size: 0.72rem;
  color: #a18e7c;
  font-style: italic;
  text-align: center;
  line-height: 1.25;
}

/* 1.5. In-Between Spacing Column: Single Line Sliders with Buttons in Middle */
.monogram-spacing-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex: 0 0 110px;
  min-width: 90px;
  padding: 0 4px;
}

.monogram-slider-group {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.monogram-spacing-label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a6b54;
  margin-bottom: 2px;
  user-select: none;
  text-align: center;
}

.monogram-slider-wrap {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 0;
}

.monogram-spacing-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 2px;
  background: #d7cabb;
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  transition: background 0.2s ease;
  margin: 0;
  padding: 0;
}

.monogram-spacing-slider:hover {
  background: #b09985;
}

/* WebKit slider thumb (button in the middle) */
.monogram-spacing-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #633b21;
  box-shadow: 0 1px 4px rgba(99, 59, 33, 0.22);
  cursor: ew-resize;
  transition: transform 0.15s ease, background-color 0.15s ease;
  margin-top: -7px;
}

.monogram-spacing-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  background: #fdfaf6;
}

.monogram-spacing-slider:active::-webkit-slider-thumb {
  background: #633b21;
  transform: scale(1.15);
}

/* Firefox slider thumb */
.monogram-spacing-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #633b21;
  box-shadow: 0 1px 4px rgba(99, 59, 33, 0.22);
  cursor: ew-resize;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.monogram-spacing-slider::-moz-range-thumb:hover {
  transform: scale(1.15);
  background: #fdfaf6;
}

.monogram-spacing-slider:active::-moz-range-thumb {
  background: #633b21;
  transform: scale(1.15);
}

.monogram-spacing-slider::-moz-range-track {
  height: 2px;
  background: #d7cabb;
  border-radius: 2px;
  border: none;
}

/* 2. Controls Column: Expanded to occupy remaining width, giving more room for colors */
.monogram-controls-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  min-width: 110px;
}

.monogram-thread-subgroup {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.monogram-thread-subgroup .customizer-label {
  margin-bottom: 0.35rem;
  font-size: 0.78rem;
  width: 100%;
  text-align: center;
  justify-content: center;
}

/* Single row of thread swatches directly above Add to Item */
.monogram-thread-grid,
.single-row-thread-grid {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  justify-content: space-between !important;
  align-items: center !important;
  width: 100% !important;
  gap: 6px !important;
  margin-top: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

.monogram-thread-grid::-webkit-scrollbar,
.single-row-thread-grid::-webkit-scrollbar {
  display: none;
}

.monogram-thread-grid .thread-swatch-btn,
.single-row-thread-grid .thread-swatch-btn {
  flex: 1 1 0;
  max-width: 32px;
  height: 30px !important;
  min-width: 22px !important;
  border-radius: 50% !important;
  border: 1.5px solid rgba(0, 0, 0, 0.14) !important;
  padding: 0 !important;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  flex-shrink: 0;
}

.monogram-thread-grid .thread-swatch-btn:hover {
  transform: scale(1.15);
}

.monogram-thread-grid .thread-swatch-btn.active {
  transform: scale(1.15);
  box-shadow: 0 0 0 2px #fdfaf6, 0 0 0 3.5px #633b21 !important;
}

/* 3. Action Button: Add to Item (As wide as the panel) */
.btn-add-monogram {
  width: 100% !important;
  background: #ffffff;
  color: #633b21;
  border: 1.5px solid #633b21;
  border-radius: 6px;
  padding: 0.85rem 1rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex !important;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(99, 59, 33, 0.06);
  line-height: 1.2;
  margin-top: 1.25rem !important;
}

.btn-add-monogram:hover {
  background: #633b21;
  color: #ffffff;
  border-color: #633b21;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 59, 33, 0.22);
}

.btn-add-monogram:active {
  transform: translateY(0);
}

@media (max-width: 480px) {
  .monogram-thread-grid,
  .single-row-thread-grid {
    gap: 4px !important;
  }
  .monogram-thread-grid .thread-swatch-btn,
  .single-row-thread-grid .thread-swatch-btn {
    height: 28px !important;
    min-width: 20px !important;
  }
}

/* Placed Monogram on Canvas (Single Unit) */
.canvas-placed-monogram {
  touch-action: none;
}

.canvas-placed-monogram .motif-bounding-box {
  padding: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Ensure inner monogram elements do not intercept click/drag from single unit */
.canvas-placed-monogram .pes-monogram-container,
.canvas-placed-monogram .pes-monogram-composite,
.canvas-placed-monogram .pes-letter-col,
.canvas-placed-monogram .pes-crest-img,
.canvas-placed-monogram .pes-monogram-crest-frame {
  pointer-events: none !important;
  user-select: none !important;
}

.monogram-render-content {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  user-select: none;
  pointer-events: none;
}

@media (max-width: 480px) {
  .monogram-action-row {
    gap: 8px;
  }
}

/* PES Monogram Composite: Side-by-side stitch rendering */
.pes-monogram-composite {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 8px 12px;
  user-select: none;
  position: relative;
  width: max-content;
  max-width: none;
  white-space: nowrap;
  flex-shrink: 0;
  pointer-events: auto;
  background: transparent !important;
}

.pes-monogram-container.has-crest .pes-monogram-composite {
  padding: 0 !important;
}

.pes-letter-col {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0 !important;
  width: auto !important;
  line-height: 1;
  vertical-align: middle;
  position: relative;
  user-select: none;
  touch-action: none;
  pointer-events: auto;
  background: transparent !important;
}

.pes-letter-col.center-large {
  z-index: 2;
  align-items: center;
}

.pes-letter-img,
.pes-letter-svg-item,
.pes-letter-img-fallback,
.pes-crest-img {
  display: block;
  max-width: none !important;
  flex-shrink: 0 !important;
  /* Elevate threads off the garment mock canvas with subtle contact shadow */
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
  shape-rendering: geometricPrecision;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  transform: translateZ(0);
  pointer-events: none;
  background: transparent !important;
  background-color: transparent !important;
}

/* Ensure no SVG rect background covers adjacent or overlapping letters */
.pes-letter-svg-item rect,
.pes-monogram-composite rect,
.pes-monogram-container rect {
  display: none !important;
  fill: none !important;
}

/* Stand-in Icon for Letters Missing a .PES Embroidery File */
.pes-letter-not-available {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  min-width: 44px;
  padding: 4px 6px;
  box-sizing: border-box;
  background: transparent !important;
  pointer-events: auto;
  user-select: none;
}

.pes-na-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 10px 14px;
  background: rgba(254, 250, 246, 0.88);
  border: 1.5px dashed #c29b7f;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(99, 59, 33, 0.08);
  backdrop-filter: blur(2px);
  transition: transform 0.15s ease;
}

.pes-letter-col.center-large .pes-na-badge {
  padding: 14px 18px;
}

.pes-na-svg {
  width: 22px;
  height: 22px;
  stroke: #9e643b;
  opacity: 0.85;
}

.pes-letter-col.center-large .pes-na-svg {
  width: 26px;
  height: 26px;
}

.pes-na-letter {
  font-family: 'EB Garamond', Garamond, Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1;
  color: #633b21;
}

.pes-letter-col.center-large .pes-na-letter {
  font-size: 2rem;
}

.pes-na-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9e643b;
  white-space: nowrap;
  line-height: 1;
}

.pes-letter-col.center-large .pes-na-label {
  font-size: 0.72rem;
}

/* Monogram Spacing Control Bar Directly Under the Letters */
.monogram-letter-spacing-bar {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.94);
  padding: 4px 8px;
  border-radius: 20px;
  border: 1px solid #d7cabb;
  box-shadow: 0 3px 10px rgba(99, 59, 33, 0.08);
  pointer-events: auto;
  user-select: none;
  z-index: 15;
}

.spacing-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #faf7f2;
  border: 1px solid #e0d4c5;
  color: #633b21;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.18s ease;
  line-height: 1;
}

.spacing-btn:hover {
  background: #633b21;
  color: #ffffff;
  border-color: #633b21;
  transform: translateY(-1px);
}

.spacing-btn:active {
  transform: translateY(0);
}

.spacing-btn svg {
  flex-shrink: 0;
}

.spacing-btn.reset-btn {
  background: transparent;
  border-color: transparent;
  color: #8a6b54;
  font-size: 0.7rem;
  padding: 4px 8px;
}

.spacing-btn.reset-btn:hover {
  background: #f0e8de;
  color: #633b21;
}

.pes-letter-stitch-fallback {
  font-size: 5rem;
  line-height: 1;
  font-weight: 700;
  filter: drop-shadow(1px 2px 2px rgba(35, 18, 8, 0.35));
}

/* Active PES Font Gallery */
.pes-font-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
}

.pes-font-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.15rem;
  border: 1.5px solid #d7cabb;
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pes-font-card:hover {
  border-color: #633b21;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(99, 59, 33, 0.08);
}

.pes-font-card.active {
  border-color: #633b21;
  background: #fdfaf7;
  box-shadow: 0 0 0 1px #633b21, 0 4px 14px rgba(99, 59, 33, 0.12);
}

.pes-font-card-preview {
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #faf7f2;
  border-radius: 6px;
  border: 1px solid #ebd9c8;
  padding: 4px;
  box-sizing: border-box;
}

.pes-font-card-preview svg {
  max-width: 32px;
  max-height: 32px;
}

.pes-font-card-preview img,
.pes-font-sample-img,
.pes-crest-sample-img {
  max-width: 50px !important;
  max-height: 50px !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  display: block;
}

.pes-font-card-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pes-font-card-badge {
  font-size: 0.72rem;
  color: #8a6b54;
  font-weight: 600;
}

/* PES Active Letters Quick Bar */
.pes-active-letters-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 0.65rem;
  padding: 0.55rem 0.85rem;
  background: #faf7f2;
  border: 1px solid #ebd9c8;
  border-radius: 6px;
}

.pes-active-letters-label {
  font-size: 0.75rem;
  color: #633b21;
  font-weight: 600;
}

.pes-letter-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.pes-letter-chip {
  background: #ffffff;
  border: 1px solid #d7cabb;
  color: #633b21;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 2px 10px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pes-letter-chip:hover {
  background: #633b21;
  color: #ffffff;
  border-color: #633b21;
}

.embroidery-text-render {
  letter-spacing: 0.08em;
  line-height: 1;
  white-space: nowrap;
  font-weight: 700;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.25), 0 0 1px rgba(255, 255, 255, 0.4);
}

.embroidery-motif-render {
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.embroidery-motif-render svg {
  width: 100%;
  height: 100%;
  stroke-width: 1.8;
  filter: drop-shadow(1px 2px 3px rgba(0,0,0,0.25));
}

/* Placement Pin Indicators (Hidden for pristine canvas stage) */
.placement-pin-marker,
.placement-pin-label {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Mockup Footer Info */
.customizer-mockup-footer {
  padding: 0.85rem 1.25rem;
  background: #ffffff;
  border-top: 1px solid #f0e8de;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #7a5c43;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.customizer-mockup-footer strong {
  color: #633b21;
}

/* Customizer Controls Column & Proceed Bar */
.customizer-controls-column {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.customizer-proceed-container {
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.customizer-proceed-continue-btn,
.canvas-attached-continue-btn {
  width: 100%;
  justify-content: center;
  padding: 0.95rem 1.6rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  border-radius: 4px;
}

/* Instructions Panel when no category is selected */
.customizer-instructions-panel {
  background: #faf6f0;
  border: 1px dashed #d7cabb;
  border-radius: 8px;
  padding: 1.35rem 1.25rem;
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
  animation: fadeIn 0.2s ease;
}

.customizer-instructions-inner {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}

.customizer-instructions-icon {
  color: #633b21;
  flex-shrink: 0;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.customizer-instructions-content {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.customizer-instructions-text {
  font-family: 'EB Garamond', serif;
  font-size: 1.15rem;
  line-height: 1.45;
  color: #633b21;
  margin: 0;
  letter-spacing: 0.01em;
}

.customizer-instructions-tip {
  font-family: 'EB Garamond', serif;
  font-size: 1.05rem;
  line-height: 1.4;
  color: #8a6b54;
  margin: 0;
}

/* Attached Underside Action Bar for Canvas Square */
.canvas-attached-footer {
  padding: 1rem 1.25rem 1.25rem;
  background: #faf6f0;
  border-top: 1px solid #ebd9c8;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: stretch;
}

/* 4. Right Column: Customizer Controls Panel */
.customizer-controls-col {
  background: #ffffff;
  border: 1px solid #d7cabb;
  border-radius: 8px;
  padding: 1.75rem 2rem;
  box-shadow: 0 8px 28px rgba(99, 59, 33, 0.04);
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.customizer-section-title {
  font-family: 'EB Garamond', serif;
  font-size: 1.35rem;
  color: #633b21;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.customizer-section-subtitle {
  font-size: 0.8rem;
  color: #8a6b54;
  margin-bottom: 1.25rem;
}

/* Mode Selection Tabs (Category-Aware: Monogram / Text / Motif) */
.customizer-mode-tabs {
  display: flex;
  gap: 0.5rem;
  background: #faf6f0;
  border: 1px solid #d7cabb;
  border-radius: 8px;
  padding: 4px;
  margin-bottom: 1.75rem;
}

.customizer-mode-tab {
  flex: 1;
  padding: 0.65rem 0.6rem;
  background: transparent;
  border: none;
  border-radius: 6px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: #7a5c43;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.25;
  gap: 6px;
}

.customizer-mode-tab:hover {
  color: #633b21;
  background: rgba(99, 59, 33, 0.05);
}

.customizer-mode-tab.active {
  background: #ffffff;
  color: #633b21;
  box-shadow: 0 2px 8px rgba(99, 59, 33, 0.1);
  font-weight: 700;
}

/* Control Groups */
.customizer-group {
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #f0e8de;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

.customizer-group:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.customizer-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #633b21;
  margin-bottom: 0.6rem;
}

.customizer-label-hint {
  font-size: 0.72rem;
  color: #8a6b54;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
}

/* Monogram Format Selector (Single, 2-Letter, 3-Letter Diamond) */
.monogram-format-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.monogram-format-btn {
  background: #ffffff;
  border: 1px solid #d7cabb;
  color: #7a5c43;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.monogram-format-btn:hover {
  border-color: #633b21;
  color: #633b21;
}

.monogram-format-btn.active {
  background: #633b21;
  border-color: #633b21;
  color: #ffffff;
}

/* Monogram & Text Inputs */
.monogram-inputs-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.monogram-letter-box {
  flex: 1 1 0;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.monogram-letter-box.is-diamond-center {
  flex: 1.25 1 0;
}

.monogram-letter-box span {
  font-size: 0.7rem;
  color: #8a6b54;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  white-space: nowrap;
}

.monogram-char-input {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  height: 52px;
  border: 1.5px solid #d7cabb;
  border-radius: 6px;
  font-family: 'EB Garamond', serif;
  font-size: 1.8rem;
  font-weight: 600;
  text-align: center;
  color: #633b21;
  background: #ffffff;
  outline: none;
  text-transform: uppercase;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.monogram-char-input.is-diamond-center-input {
  border-width: 2px;
  border-color: #633b21;
  font-size: 2.1rem;
}

.monogram-char-input:focus {
  border-color: #633b21;
  box-shadow: 0 0 0 3px rgba(99, 59, 33, 0.12);
}

.monogram-char-input::placeholder {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  color: #b09985;
  text-transform: none;
  letter-spacing: 0.02em;
  opacity: 0.75;
}

.monogram-char-input:focus::placeholder {
  opacity: 0.3;
}

.custom-text-input-wrap {
  position: relative;
  width: 100%;
}

.custom-text-input-wrap .custom-text-input {
  padding-right: 4.5rem;
}

.custom-text-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #d7cabb;
  border-radius: 6px;
  font-family: 'EB Garamond', serif;
  font-size: 1.3rem;
  color: #633b21;
  background: #ffffff;
  outline: none;
  transition: border-color 0.2s ease;
}

.custom-text-input::placeholder {
  font-family: 'EB Garamond', serif;
  font-size: 1.2rem;
  font-weight: 400;
  color: #b09985;
  letter-spacing: 0.02em;
  opacity: 0.75;
}

.custom-text-input:focus::placeholder {
  opacity: 0.35;
}

.custom-text-counter {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: #b09985;
  letter-spacing: 0.03em;
  pointer-events: none;
  user-select: none;
  line-height: 1;
}

.custom-text-input:focus {
  border-color: #633b21;
  box-shadow: 0 0 0 3px rgba(99, 59, 33, 0.12);
}

/* Font Style Cards Grid */
.font-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.font-card {
  background: #ffffff;
  border: 1.5px solid #d7cabb;
  border-radius: 6px;
  padding: 0.75rem 0.6rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.font-card:hover {
  border-color: #b89f89;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 59, 33, 0.08);
}

.font-card.active {
  border-color: #633b21;
  background: #fdfaf6;
  box-shadow: 0 0 0 2px #633b21;
}

.font-sample-preview {
  font-size: 1.6rem;
  color: #633b21;
  line-height: 1.2;
  margin: 0.25rem 0;
  text-shadow: 0 1px 1px rgba(0,0,0,0.15);
}

.font-card-name {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #7a5c43;
}

.font-card-badge {
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #633b21;
  background: rgba(99, 59, 33, 0.09);
  padding: 1px 6px;
  border-radius: 3px;
  margin-top: 2px;
}

.font-card.active .font-card-badge {
  background: #633b21;
  color: #ffffff;
}

.pes-text-preview-row,
.pes-placed-text-row {
  display: flex;
  align-items: center;
  justify-content: center;
}

.pes-text-preview-row img,
.pes-placed-text-row img {
  display: inline-block;
  vertical-align: middle;
}

/* Motifs Gallery Grid */
.motifs-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 0.65rem;
  margin-top: 0.5rem;
}

.motif-card {
  position: relative;
  background: #ffffff;
  border: 1.5px solid #d7cabb;
  border-radius: 6px;
  padding: 0.75rem 0.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  content-visibility: auto;
  contain-intrinsic-size: 96px 110px;
}

.motif-add-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #faf6f0;
  border: 1px solid #d7cabb;
  color: #633b21;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 5;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.motif-add-btn:hover {
  background: #633b21;
  color: #ffffff;
  border-color: #633b21;
  transform: scale(1.08);
  box-shadow: 0 2px 6px rgba(99, 59, 33, 0.25);
}

.motif-card:hover {
  border-color: #b89f89;
  transform: translateY(-2px);
}

.motif-card.active {
  border-color: #633b21;
  background: #fdfaf6;
  box-shadow: 0 0 0 2px #633b21;
}

.motif-svg-wrap {
  position: relative;
  width: 52px;
  height: 52px;
  color: #633b21;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  overflow: hidden;
  background: #faf6f0;
}

.motif-thumb-img {
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}

.motif-thumb-img.loaded,
.motif-thumb-img:not([loading]) {
  opacity: 1;
}

/* Luxury warm shimmer while image is decoding/loading */
.motif-svg-wrap:has(.motif-thumb-img:not(.loaded)) {
  background: linear-gradient(90deg, #faf7f2 25%, #f0e6da 50%, #faf7f2 75%);
  background-size: 200% 100%;
  animation: motifShimmer 1.4s infinite;
}

@keyframes motifShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.motif-card-name {
  font-size: 0.68rem;
  font-weight: 600;
  color: #7a5c43;
  line-height: 1.2;
}

.motif-size-pill {
  border: 1px solid #d7cabb;
  background: #ffffff;
  color: #633b21;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.motif-size-pill:hover {
  border-color: #633b21;
  background: #fdfaf6;
}

.motif-size-pill.active {
  background: #633b21 !important;
  color: #ffffff !important;
  border-color: #633b21 !important;
  box-shadow: 0 1px 4px rgba(99, 59, 33, 0.25);
}

/* Lookbook Reference Trigger Button */
.btn-lookbook-trigger {
  background: #faf6f0;
  border: 1px dashed #bfa895;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-lookbook-trigger:hover {
  background: #fefaee;
  border-color: #633b21;
}

/* Placement Options Pills */
.placement-pills-wrap {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.4rem;
}

.placement-pill-btn {
  background: #ffffff;
  border: 1.5px solid #d7cabb;
  border-radius: 20px;
  padding: 0.45rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #633b21;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.placement-pill-btn:hover {
  border-color: #633b21;
}

.placement-pill-btn.active {
  background: #633b21;
  border-color: #633b21;
  color: #ffffff;
}

/* Silk Thread Palette */
.thread-palette-grid {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.thread-swatch-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  outline: 1.5px solid #d7cabb;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.2);
}

.thread-swatch-btn:hover {
  transform: scale(1.15);
  outline-color: #633b21;
}

.thread-swatch-btn.active {
  transform: scale(1.2);
  outline: 2px solid #633b21;
  box-shadow: 0 0 0 3px rgba(99, 59, 33, 0.25);
}

/* Custom Lookbook Modal */
.lookbook-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(43, 26, 14, 0.6);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: fadeIn 0.2s ease;
}

.lookbook-modal-box {
  background: #ffffff;
  border: 1px solid #d7cabb;
  border-radius: 8px;
  max-width: 720px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  padding: 1.75rem;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.lookbook-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #f0e8de;
}

/* Responsive Customizer Layout & Mobile-First Native Optimization */
@media (max-width: 960px) {
  .customizer-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .customizer-preview-col {
    position: relative;
    top: 0;
    order: -1;
  }
  .customizer-controls-column {
    order: 1;
    gap: 1.25rem;
  }
}

@media (max-width: 640px) {
  /* Container & padding controls */
  .site-header {
    width: 100%;
    max-width: 100vw;
  }
  .site-container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    max-width: 100vw !important;
    overflow-x: hidden;
  }
  .designer-main-wrapper {
    padding-top: 0.75rem;
    padding-bottom: 2.5rem;
    overflow-x: hidden;
  }

  /* Studio layout & controls column */
  .customizer-layout {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    max-width: 100%;
    min-width: 0;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
  }
  .customizer-controls-col {
    padding: 1rem 0.85rem;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(99, 59, 33, 0.05);
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: clip;
  }
  .customizer-mode-tab {
    font-size: 0.74rem;
    padding: 0.5rem 0.35rem;
    min-width: 0;
  }

  /* Summary Bar */
  .designer-canvas-summary-bar {
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 0.85rem;
    gap: 0.75rem;
    border-radius: 10px;
    margin-bottom: 1.25rem;
  }
  .summary-canvas-left {
    gap: 0.75rem;
  }
  .summary-canvas-thumb {
    width: 48px;
    height: 48px;
  }
  .summary-canvas-title {
    font-size: 1.05rem;
  }
  .summary-canvas-meta {
    font-size: 0.75rem;
    gap: 0.35rem;
  }
  .btn-change-canvas {
    width: 100%;
    justify-content: center;
    padding: 0.45rem 0.75rem;
    font-size: 0.74rem;
  }

  /* Step 1 Product Grid - 1 Product Wide on Mobile */
  .designer-grid {
    grid-template-columns: 1fr !important;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
    gap: 1.5rem !important;
    margin-bottom: 3.5rem;
  }
  .designer-card {
    border-radius: 12px;
  }
  .designer-card-content {
    padding: 1.15rem 1.25rem;
  }
  .designer-card-title {
    font-size: 1.35rem;
    margin-bottom: 0.35rem;
  }
  .designer-card-price {
    font-size: 1.05rem;
    margin-bottom: 0.65rem;
  }
  .designer-card-desc {
    font-size: 0.98rem;
    line-height: 1.4;
    margin-bottom: 0.9rem;
  }
  .designer-select-btn {
    padding: 0.75rem 1rem;
    font-size: 0.82rem;
  }
  .designer-search-wrap {
    min-width: 0 !important;
    width: 100%;
  }

  /* Sticky Bottom Bar on Step 1 */
  .designer-bottom-bar {
    padding: 0.65rem 0.85rem;
  }
  .designer-bottom-inner {
    gap: 0.75rem;
  }
  .designer-selected-title {
    font-size: 0.95rem;
  }
  .designer-continue-btn {
    padding: 0.75rem 1.2rem;
    font-size: 0.74rem;
  }

  /* Placement Cards Grid */
  .placement-cards-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.65rem !important;
  }
  .placement-card {
    padding: 0.45rem;
  }

  /* Stage & Mockup Box */
  .customizer-mockup-stage {
    min-height: 290px;
    border-radius: 8px;
  }
  .customizer-mockup-header.customizer-orientation-header {
    padding: 0.5rem 0.65rem;
  }
  .customizer-orientation-header-left {
    gap: 0.35rem;
  }
  .customizer-orientation-btn {
    font-size: 0.70rem;
    padding: 0.28rem 0.6rem;
  }

  /* Monogram Layout */
  .monogram-inputs-row {
    gap: 0.5rem;
    width: 100%;
    max-width: 100%;
  }
  .monogram-letter-box {
    min-width: 0 !important;
  }
  .monogram-char-input {
    min-width: 0 !important;
    height: 46px;
    font-size: 1.45rem;
    padding: 0 4px;
  }
  .monogram-char-input.is-diamond-center-input {
    font-size: 1.75rem !important;
  }
  .monogram-action-row {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .monogram-live-preview-box {
    width: 100% !important;
    max-width: 200px;
    height: 200px !important;
    margin: 0 auto;
  }
  .monogram-spacing-col {
    width: 100% !important;
    max-width: 240px;
    min-width: 0 !important;
    margin: 0 auto;
    padding: 4px 0;
  }
  .monogram-controls-col {
    width: 100% !important;
    min-width: 0 !important;
  }
  /* Font Cards Gallery */
  .pes-font-gallery-grid {
    grid-template-columns: 1fr !important;
    gap: 0.6rem !important;
  }
  .pes-font-card {
    padding: 0.65rem 0.85rem;
  }

  /* Motifs Grid */
  .designer-motifs-grid {
    grid-template-columns: repeat(auto-fill, minmax(75px, 1fr)) !important;
    gap: 0.5rem !important;
  }
}

@media (max-width: 420px) {
  .site-container {
    padding-left: 0.65rem !important;
    padding-right: 0.65rem !important;
  }
  .customizer-mockup-stage {
    min-height: 260px;
  }
}


