/* Mockup / order page — layout unchanged from the original inline styles (Phase 3 redesign
   is separate); colors, fonts and minimum text size now come from site.css tokens. */

    .back-link {
      font-size: 0.85rem;
      color: var(--muted);
      text-decoration: none;
      display: flex;
      align-items: center;
      gap: 0.5rem;
      min-height: 44px;
    }
    
    .back-link:hover { color: var(--ink); }
    
    /* Main Layout - Stacked with full-width preview */
    .mockup-layout {
      max-width: 900px;
      margin: 0 auto;
      padding: 3rem 2rem;
      display: flex;
      flex-direction: column;
      gap: 3rem;
    }
    
    @media (max-width: 900px) {
      .mockup-layout {
        gap: 2rem;
        padding: 2rem 1.25rem;
      }
    }
    
    @media (max-width: 600px) {
      
      
      
      
      .mockup-layout {
        padding: 1.5rem 1rem;
        gap: 1.5rem;
      }
      
      .product-title {
        font-size: 1.4rem;
      }
      
      .config-option {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
      }
      
      .price {
        font-size: 1.75rem;
      }
      
      .cta-btn {
        padding: 0.9rem;
        font-size: 0.8rem;
      }
      
      .download-link {
        font-size: var(--text-xs);
      }
      
      /* Mobile touch targets: checkboxes */
      input[type="checkbox"] {
        width: 24px;
        height: 24px;
        min-width: 24px;
        min-height: 24px;
      }
      
      .feature {
        font-size: 0.8rem;
      }
    }
    
    /* Mockup Display */
    .mockup-display {
      position: relative;
      display: flex;
      flex-direction: column;
      align-items: center;
    }
    
    .mockup-container {
      position: relative;
      width: 100%;
      max-width: 700px;
    }
    
    .mockup-main {
      width: 100%;
      aspect-ratio: 1;
      background: #fff;
      border-radius: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      box-shadow: 0 8px 40px rgba(0,0,0,0.12);
      cursor: grab;
    }
    
    .mockup-main.dragging {
      cursor: grabbing;
    }
    
    .mockup-main.zoomed {
      cursor: move;
    }
    
    .mockup-main img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.2s ease;
      transform-origin: center center;
      pointer-events: none;
      user-select: none;
    }
    
    /* Zoom Controls */
    .zoom-controls {
      position: absolute;
      bottom: 1rem;
      right: 1rem;
      display: flex;
      flex-direction: column;
      gap: 0.25rem;
      z-index: 10;
      background: rgba(255,255,255,0.95);
      border-radius: 8px;
      padding: 0.25rem;
      box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    }
    
    .zoom-btn {
      width: 44px;
      height: 44px;
      border: none;
      background: transparent;
      cursor: pointer;
      font-size: 1.25rem;
      font-weight: 500;
      color: var(--ink);
      border-radius: 6px;
      transition: background 0.15s;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    
    .zoom-btn:hover {
      background: var(--line);
    }
    
    .zoom-btn:active {
      background: #ddd;
    }
    
    .zoom-btn:disabled {
      opacity: 0.3;
      cursor: not-allowed;
    }
    
    .zoom-level {
      font-size: var(--text-xs);
      text-align: center;
      color: var(--muted);
      padding: 0.25rem 0;
      min-width: 36px;
    }
    
    .zoom-reset {
      font-size: var(--text-xs);
      padding: 0.35rem;
    }
    
    @media (max-width: 600px) {
      .zoom-controls {
        bottom: 0.5rem;
        right: 0.5rem;
      }
      
      .zoom-btn {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
      }
    }
    
    /* Scene-specific image styling - show print "on wall" */
    .mockup-main.scene-living-room img,
    .mockup-main.scene-office img,
    .mockup-main.scene-gallery img,
    .mockup-main.scene-bedroom img,
    .mockup-main.scene-minimal img {
      width: 55%;
      height: auto;
      object-fit: contain;
      box-shadow: 0 8px 40px rgba(0,0,0,0.25), 0 2px 8px rgba(0,0,0,0.15);
      border: 8px solid #fff;
    }
    
    .mockup-main.scene-gallery img {
      border: 12px solid #fff;
      box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    }
    
    .mockup-main.scene-minimal img {
      border: none;
      box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    }
    
    .mockup-thumbs {
      display: flex;
      gap: 0.75rem;
      margin-top: 1rem;
      justify-content: center;
      flex-wrap: wrap;
      max-width: 100%;
      box-sizing: border-box;
    }
    
    .mockup-thumb {
      width: 80px;
      height: 80px;
      border-radius: 4px;
      overflow: hidden;
      cursor: pointer;
      opacity: 0.6;
      transition: opacity 0.2s;
      border: 2px solid transparent;
    }
    
    .mockup-thumb:hover,
    .mockup-thumb.active {
      opacity: 1;
      border-color: var(--accent);
    }
    
    .mockup-thumb img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    
    /* Scene Selector */
    .scene-selector {
      margin-top: 1.5rem;
      padding-top: 1.5rem;
      border-top: 1px solid var(--line);
      text-align: center;
    }
    
    .scene-label {
      font-size: var(--text-xs);
      text-transform: uppercase;
      letter-spacing: 0.1em;
      color: var(--muted);
      margin-bottom: 0.75rem;
      display: block;
    }
    
    .scene-options {
      display: flex;
      gap: 0.75rem;
      flex-wrap: wrap;
      justify-content: center;
    }
    
    .scene-btn {
      padding: 0.25rem;
      border: 2px solid var(--line);
      background: transparent;
      cursor: pointer;
      transition: all 0.15s;
      border-radius: 6px;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0.25rem;
      width: 70px;
    }
    
    .scene-btn:hover {
      border-color: var(--line-strong);
      transform: translateY(-1px);
    }
    
    .scene-btn.active {
      border-color: var(--accent);
      box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    
    .scene-thumb {
      width: 60px;
      height: 60px;
      border-radius: 4px;
      overflow: hidden;
      position: relative;
    }
    
    .scene-thumb-label {
      font-size: var(--text-xs);
      color: var(--muted);
      text-align: center;
    }
    
    .scene-btn.active .scene-thumb-label {
      color: var(--accent);
      font-weight: 500;
    }
    
    /* Scene thumbnail backgrounds (room environments without the print) */
    .scene-thumb.thumb-product {
      background: #f8f8f8;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    
    .scene-thumb.thumb-product::after {
      content: '🖼️';
      font-size: 1.5rem;
    }
    
    .scene-thumb.thumb-living-room {
      background: linear-gradient(180deg, #e8dcc8 0%, #d4c4a8 60%, #c9b896 100%);
    }
    
    .scene-thumb.thumb-living-room::before {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      height: 35%;
      background: linear-gradient(180deg, transparent, rgba(139, 119, 101, 0.3));
    }
    
    .scene-thumb.thumb-office {
      background: linear-gradient(180deg, #e8e8e8 0%, #d0d0d0 60%, #c5c5c5 100%);
    }
    
    .scene-thumb.thumb-office::before {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      height: 30%;
      background: linear-gradient(180deg, transparent, rgba(80, 80, 80, 0.12));
    }
    
    .scene-thumb.thumb-gallery {
      background: #ffffff;
      box-shadow: inset 0 0 20px rgba(0,0,0,0.04);
    }
    
    .scene-thumb.thumb-bedroom {
      background: linear-gradient(180deg, #f5f0eb 0%, #e8e0d8 60%, #ddd5cc 100%);
    }
    
    .scene-thumb.thumb-bedroom::before {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      height: 30%;
      background: linear-gradient(180deg, transparent, rgba(120, 100, 80, 0.15));
    }
    
    .scene-thumb.thumb-minimal {
      background: #fafafa;
    }
    
    /* Scene Backgrounds */
    .mockup-main.scene-product {
      background: #f8f8f8;
    }
    
    .mockup-main.scene-living-room {
      background: linear-gradient(180deg, #e8dcc8 0%, #d4c4a8 60%, #c9b896 100%);
      position: relative;
    }
    
    .mockup-main.scene-living-room::before {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      height: 35%;
      background: linear-gradient(180deg, transparent, rgba(139, 119, 101, 0.2));
      pointer-events: none;
    }
    
    .mockup-main.scene-office {
      background: linear-gradient(180deg, #e8e8e8 0%, #d0d0d0 60%, #c5c5c5 100%);
      position: relative;
    }
    
    .mockup-main.scene-office::before {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      height: 30%;
      background: linear-gradient(180deg, transparent, rgba(80, 80, 80, 0.08));
      pointer-events: none;
    }
    
    .mockup-main.scene-gallery {
      background: #ffffff;
      box-shadow: inset 0 0 100px rgba(0,0,0,0.04);
    }
    
    .mockup-main.scene-bedroom {
      background: linear-gradient(180deg, #f5f0eb 0%, #e8e0d8 60%, #ddd5cc 100%);
      position: relative;
    }
    
    .mockup-main.scene-bedroom::before {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      height: 30%;
      background: linear-gradient(180deg, transparent, rgba(120, 100, 80, 0.1));
      pointer-events: none;
    }
    
    .mockup-main.scene-minimal {
      background: #fafafa;
    }
    
    /* Loading State */
    .loading-state {
      text-align: center;
      padding: 4rem;
    }
    
    .loading-state .spinner {
      width: 48px;
      height: 48px;
      border: 2px solid var(--line);
      border-top-color: var(--accent);
      border-radius: 50%;
      animation: spin 1s linear infinite;
      margin: 0 auto 1.5rem;
    }
    
    @keyframes spin { to { transform: rotate(360deg); } }
    
    .loading-state p {
      color: var(--muted);
      font-size: 0.9rem;
    }
    
    /* Product Config */
    .product-config {
      display: flex;
      flex-direction: column;
      width: 100%;
      max-width: 500px;
      margin: 0 auto;
    }
    
    .product-title {
      font-family: var(--font-display);
      font-size: 1.75rem;
      font-weight: 400;
      margin-bottom: 0.5rem;
    }
    
    .product-subtitle {
      color: var(--muted);
      font-size: 0.9rem;
      margin-bottom: 2rem;
    }
    
    .config-section {
      margin-bottom: 1.5rem;
    }
    
    .config-label {
      font-size: 0.75rem;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      color: var(--muted);
      margin-bottom: 0.75rem;
      display: block;
    }
    
    .config-options {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
    }
    
    .config-option {
      padding: 0.75rem 1.25rem;
      border: 1px solid var(--line-strong);
      background: transparent;
      font-size: 0.85rem;
      cursor: pointer;
      transition: all 0.15s;
    }
    
    .config-option:hover {
      border-color: var(--ink);
    }
    
    .config-option.selected {
      background: var(--accent);
      border-color: var(--accent);
      color: #fff;
    }
    
    .config-option {
      position: relative;
    }
    
    /* Badges straddle the button's top edge, centred, so they never cover
       the label (the old top-right corner spot sat on short labels like 18×24"). */
    .popular-badge,
    .recommended-badge {
      position: absolute;
      top: 0;
      left: 50%;
      transform: translate(-50%, -50%);
      font-size: var(--text-xs);
      line-height: 1.3;
      padding: 0.1rem 0.4rem;
      pointer-events: none;
      border-radius: 2px;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      font-weight: 600;
      white-space: nowrap;
    }
    
    .popular-badge {
      background: var(--success);
      color: #fff;
    }
    
    .recommended-badge {
      background: var(--highlight);
      color: #fff;
    }
    
    .config-option.selected .popular-badge,
    .config-option.selected .recommended-badge {
      background: #fff;
      color: var(--accent);
      box-shadow: 0 0 0 1px var(--accent); /* keeps the white badge's top half visible on the page background */
    }
    
    .made-to-order {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.75rem 1rem;
      background: rgba(47, 107, 58, 0.08);
      border-left: 3px solid var(--success);
      font-size: 0.8rem;
      color: var(--success);
      margin-top: 0.5rem;
    }
    
    .made-to-order-icon {
      font-size: 1rem;
    }
    
    /* Pricing */
    .pricing {
      padding: 1.5rem 0;
      border-top: 1px solid var(--line);
      border-bottom: 1px solid var(--line);
      margin: 1.5rem 0;
    }
    
    .price {
      font-family: var(--font-display);
      font-size: 2rem;
      font-weight: 400;
    }
    
    .price-note {
      font-size: 0.8rem;
      color: var(--muted);
      margin-top: 0.25rem;
    }
    
    /* CTA */
    .cta-btn {
      width: 100%;
      padding: 1rem;
      background: var(--accent);
      color: #fff;
      border: none;
      font-size: 0.85rem;
      font-weight: 500;
      letter-spacing: 0.15em;
      text-transform: uppercase;
      cursor: pointer;
      transition: background 0.2s;
      margin-bottom: 0.75rem;
    }
    
    .cta-btn:hover { background: #000; }
    
    .cta-btn:disabled {
      background: var(--line-strong);
      cursor: not-allowed;
    }
    
    .download-link-wrapper {
      text-align: center;
      margin: 0.5rem 0 0.25rem;
    }
    
    .download-link {
      font-size: 0.75rem;
      color: var(--muted);
      text-decoration: none;
      transition: color 0.2s;
    }
    
    .download-link:hover:not(.disabled) {
      color: var(--ink);
      text-decoration: underline;
    }
    
    .download-link.disabled {
      color: var(--muted);
      cursor: wait;
      opacity: 0.6;
    }
    
    /* Trust Signals */
    .trust-signals {
      display: flex;
      justify-content: center;
      gap: 1.5rem;
      margin: 1.25rem 0;
      padding: 0.75rem 0;
    }
    
    .trust-item {
      display: flex;
      align-items: center;
      gap: 0.35rem;
      font-size: var(--text-xs);
      color: var(--muted);
      white-space: nowrap;
    }
    
    .trust-icon {
      font-size: 0.85rem;
    }
    
    @media (max-width: 900px) {
      .trust-signals {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
      }
    }
    
    /* Features */
    .features {
      margin-top: 2rem;
      padding-top: 1.5rem;
      border-top: 1px solid var(--line);
    }
    
    .feature {
      display: flex;
      gap: 0.75rem;
      margin-bottom: 1rem;
      font-size: 0.85rem;
      color: var(--muted);
    }
    
    .feature-icon {
      flex-shrink: 0;
      width: 24px;
      text-align: center;
      font-size: 1rem;
    }
    
    .features-header {
      font-family: var(--font-display);
      font-size: 1rem;
      font-weight: 400;
      margin-bottom: 1rem;
      color: var(--ink);
    }
    
    .feature strong {
      color: var(--ink);
    }
    
    /* Error State */
    .error-state {
      text-align: center;
      padding: 3rem;
    }
    
    .error-state h2 {
      font-family: var(--font-display);
      font-weight: 400;
      margin-bottom: 1rem;
    }
    
    .error-state p {
      color: var(--muted);
      margin-bottom: 1.5rem;
    }
    
    
/* === Added in Phase 1: shared-header sub-bar and former inline styles === */
.mockup-subbar {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.mockup-subbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}
.mockup-subbar .back-link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink);
}
.mockup-subbar .eyebrow { margin: 0; }
.loading-state .loading-note {
  margin-top: 0.5rem;
  font-size: var(--text-xs);
}
.toggle-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: var(--tap);
  cursor: pointer;
  font-size: var(--text-sm);
  color: var(--ink);
}
.toggle-container input[type="checkbox"] {
  width: 22px;
  height: 22px;
  flex: none;
  accent-color: var(--accent);
}
.title-preview {
  margin-top: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: var(--text-sm);
}
.title-preview__name {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ink);
}
.title-preview__coords {
  font-size: var(--text-xs);
  color: var(--muted);
  letter-spacing: 0.5px;
}
.price-note a,
.trust-item a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0 0.25rem;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.config-option {
  min-height: var(--tap);
  font-family: var(--font-ui);
  color: var(--ink);
  border-radius: var(--radius);
}
.cta-btn {
  min-height: 52px;
  font-family: var(--font-ui);
  border-radius: var(--radius);
}
.download-link {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
}
.scene-btn {
  min-height: var(--tap);
  font-family: var(--font-ui);
}
.data-credit {
  font-size: var(--text-xs);
  color: var(--muted);
  margin-top: var(--space-4);
}
.data-credit a { color: inherit; text-decoration: underline; }
#error-container {
  padding: var(--space-12) var(--gutter);
}
.error-state {
  max-width: 500px;
  margin: 0 auto;
}
.error-state .cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  padding: 0 var(--space-8);
  text-decoration: none;
}
@media (max-width: 600px) {
  .trust-item { white-space: normal; text-align: center; }
}
