/* 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: var(--radius);
      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;
    }
    
    /* Survey sheets are portrait: show the whole sheet, matted, instead of a square crop */
    .mockup-main.is-sheet { background: #ECE9E2; padding: 4%; box-sizing: border-box; }
    .mockup-main.is-sheet img { object-fit: contain; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.12)); }
    .mockup-thumbs.is-sheet .mockup-thumb img { object-fit: contain; background: #ECE9E2; }

    /* 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: var(--radius);
      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: var(--radius);
      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-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: var(--radius);
      overflow: hidden;
      cursor: pointer;
      /* Inactive thumbs keep full colour (fading them turned dark
         palettes flat grey); the active one is marked by its border. */
      transition: border-color 0.2s, box-shadow 0.2s;
      border: 2px solid var(--line, #d8d4cc);
      box-sizing: border-box;
    }
    
    .mockup-thumb:hover {
      border-color: var(--muted, #8a857c);
    }
    
    .mockup-thumb.active {
      border-color: var(--accent);
      box-shadow: 0 0 0 1px var(--accent);
    }
    
    .mockup-thumb img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    
    /* Scene Selector */
    
    
    
    
    
    
    
    
    
    /* Scene thumbnail backgrounds (room environments without the print) */
    
    /* A tiny framed print (black frame, white mat) drawn in CSS */
    
    
    
    
    
    
    
    
    
    /* Scene Backgrounds */
    
    
    
    
    
    
    
    
    
    /* 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: 0.5rem;
    }

    .design-caption {
      color: var(--ink);
      font-size: 0.9rem;
      letter-spacing: 0.02em;
      margin-bottom: 2rem;
      min-height: 1.35em;
    }
    
    .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);
}
.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; }
}

/* === Polish pass: Gallery Wall order page ==================================
   Line icons replace emoji, controls share the 2px radius, reassurance reads
   as one quiet list, and from 1024px the page becomes the standard product
   layout: preview on the left (sticky), order panel on the right. */
.mockup-subbar .container { min-height: 52px; padding-block: var(--space-1); }

.mockup-thumbs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 72px);
  justify-content: center;
  gap: var(--space-2);
}
.mockup-thumb { width: auto; height: auto; aspect-ratio: 1; border-radius: var(--radius); }



.product-title { line-height: var(--leading-tight); }
.config-options { display: grid; gap: var(--space-2); }
#product-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#size-options { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.config-option { padding-inline: var(--space-2); }
@media (min-width: 600px) {
  #product-options { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.made-to-order {
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: var(--text-sm);
  color: var(--ink);
}
.made-to-order-icon { width: 18px; height: 18px; color: var(--muted); }

.cta-btn {
  font-size: var(--text-base);
  letter-spacing: 0;
  text-transform: none;
}
.download-link.disabled { opacity: 1; }

.trust-signals {
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  margin: var(--space-4) 0 0;
  padding: 0;
}
.trust-item { gap: var(--space-2); font-size: var(--text-sm); white-space: normal; text-align: left; min-height: 32px; }
.trust-icon { width: 18px; height: 18px; color: var(--ink); }

.features-header { font-size: var(--text-xl); }
.feature { align-items: flex-start; font-size: var(--text-sm); }
.feature-icon { width: 20px; height: 20px; margin-top: 1px; color: var(--ink); }

.zoom-controls { border-radius: var(--radius); }
.zoom-reset .icon { width: 18px; height: 18px; }

@media (max-width: 900px) {
  .trust-signals { align-items: flex-start; gap: 0; }
}
@media (max-width: 600px) {
  .trust-item { text-align: left; }
  .feature { font-size: var(--text-sm); }
  .config-option { font-size: var(--text-sm); padding-inline: var(--space-1); }
  .cta-btn { font-size: var(--text-base); }
}

@media (min-width: 1024px) {
  .mockup-layout {
    max-width: var(--container);
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: var(--space-12);
    align-items: start;
    padding-inline: var(--gutter);
  }
  .mockup-container { max-width: min(640px, 64vh); margin-inline: auto; }
  .product-config { max-width: 520px; margin: 0; padding-top: var(--space-2); }
  .product-title { font-size: var(--text-3xl); }
}
@media (min-width: 1024px) and (min-height: 760px) {
  .mockup-display { position: sticky; top: calc(var(--header-h) + var(--space-6)); }
}
.config-option[hidden] { display: none; }

/* Product scenes (Prodigi mockups): the print is drawn into the scene's artwork quad. */
.mockup-main.is-scene { background: #ececec; }
.scene-view { position: relative; width: 100%; aspect-ratio: 1; overflow: hidden; transition: transform 0.2s ease; transform-origin: center; }
.scene-view img { pointer-events: none; user-select: none; }
.mockup-main .scene-view > img, .mockup-thumb .scene-view > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: none; transition: none; }
.scene-art { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.mockup-main .scene-art img, .mockup-thumb .scene-art img { position: static; width: 100%; height: 100%; object-fit: contain; display: block; transform: none; }
.scene-shade { mix-blend-mode: multiply; }
.mockup-thumb { padding: 0; background: none; }

/* Cart (CART_ENABLED): Add to cart under Order print, a Cart button in the sub-bar, a drawer. */
.mockup-subbar .container.has-cart { justify-content: flex-start; }
.mockup-subbar .has-cart .eyebrow { margin-left: auto; }
.cart-toggle {
  min-height: var(--tap);
  padding: 0 var(--space-3);
  font: 500 var(--text-sm) var(--font-ui);
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  cursor: pointer;
}
.cart-add-btn {
  width: 100%;
  min-height: 52px;
  margin-top: var(--space-2);
  font: 500 var(--text-base) var(--font-ui);
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  cursor: pointer;
}
.cart-add-btn:disabled { color: var(--muted); border-color: var(--line-strong); cursor: default; }
.cart-backdrop { position: fixed; inset: 0; z-index: 900; background: rgba(0, 0, 0, .3); }
.cart-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  z-index: 901;
  width: min(400px, 100vw);
  display: flex;
  flex-direction: column;
  background: var(--bg);
  box-shadow: var(--shadow-pop);
}
.cart-backdrop[hidden], .cart-drawer[hidden] { display: none; }
body.cart-open { overflow: hidden; }
.cart-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-2) var(--space-2) var(--space-2) var(--gutter);
  border-bottom: 1px solid var(--line);
}
.cart-head h2 { margin: 0; font: 400 var(--text-xl) var(--font-display); }
.cart-close {
  width: var(--tap); height: var(--tap);
  font-size: 1.5rem; line-height: 1; color: var(--ink);
  background: none; border: 0; cursor: pointer;
}
.cart-empty { margin: 0; padding: var(--space-6) var(--gutter); color: var(--muted); }
.cart-drawer:not(.is-empty) .cart-empty { display: none; }
.cart-list { flex: 1; overflow-y: auto; margin: 0; padding: 0 var(--gutter); list-style: none; }
.cart-item {
  display: grid; grid-template-columns: 64px 1fr auto; gap: var(--space-3);
  align-items: start; padding: var(--space-4) 0; border-bottom: 1px solid var(--line);
}
.cart-thumb { width: 64px; height: 64px; object-fit: contain; background: var(--surface); border: 1px solid var(--line); }
.cart-item-text { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.cart-item-place { font-weight: 500; overflow-wrap: anywhere; }
.cart-open-item { padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
button.cart-item-place { text-decoration: underline; text-underline-offset: 2px; min-height: 32px; }
.cart-open-item:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.cart-item-detail { font-size: var(--text-sm); color: var(--muted); }
.cart-item-price { font-weight: 500; }
.cart-remove {
  min-height: 32px; padding: 0;
  font: var(--text-sm) var(--font-ui); color: var(--ink);
  text-decoration: underline; text-underline-offset: 2px;
  background: none; border: 0; cursor: pointer;
}
.cart-foot { padding: var(--space-4) var(--gutter) var(--space-6); border-top: 1px solid var(--line); }
.cart-drawer.is-empty .cart-foot { border-top: 0; }
.cart-drawer.is-empty .cart-total, .cart-drawer.is-empty #cart-checkout { display: none; }
.cart-total { display: flex; justify-content: space-between; font-size: var(--text-lg); font-weight: 500; }
.cart-note { margin: var(--space-1) 0 var(--space-4); font-size: var(--text-sm); color: var(--muted); }
.cart-item.is-blocked .cart-item-price { color: var(--error); font-weight: 400; font-size: var(--text-sm); }
.cart-blocked { margin: 0 0 var(--space-3); font-size: var(--text-sm); }
.cart-blocked-text { margin: 0 0 var(--space-2); color: var(--error); }
.cart-remove-blocked { font: inherit; color: inherit; text-decoration: underline; background: none; border: 0; padding: 0; cursor: pointer; }
.cart-error { margin: 0 0 var(--space-3); font-size: var(--text-sm); color: var(--error); }
.cart-foot .cta-btn { width: 100%; }
.cart-more {
  display: flex; align-items: center; justify-content: center;
  min-height: var(--tap); margin-top: var(--space-2);
  font-size: var(--text-sm); color: var(--ink);
}
@media (max-width: 480px) {
  .mockup-subbar .has-cart .eyebrow { display: none; }
  .mockup-subbar .has-cart .cart-toggle { margin-left: auto; }
}

/* Ship to (EU_SHIPPING_ENABLED) */
.ship-to { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; font-size: 14px; color: inherit; }
.ship-to select { font: inherit; padding: 6px 10px; border: 1px solid currentColor; border-radius: 0; background: transparent; }
