/* Catalogue controls use the cool Vivid surfaces and exact panel silhouettes. */
.vv-root [hidden] { display: none !important; }
.vv-root { --vv-accent: #64748b; --vv-accent-soft: #f1f5f9; --vv-accent-gradient: linear-gradient(120deg,#2563eb,#06b6d4,#7c3aed,#db2777,#f97316); background: transparent; }
.vv-root .app-main { padding: 12px 0 32px; display: grid; grid-template-columns: minmax(320px, 440px) minmax(0,1fr); align-items: start; gap: 28px; }
.vv-root .controls-panel { padding: 22px; gap: 22px; background: rgba(255,255,255,.92); border: 1px solid rgba(255,255,255,.9); backdrop-filter: blur(16px); }
.vv-root .control-group, .vv-root .control-column { flex-basis: 100%; min-width: 0; padding: 0; border: 0; }
.vv-root .control-group h2 { font-size: 17px; line-height: 1.35; white-space: normal; justify-content: flex-start; text-align: left; }
.vv-root .step-num { width: 28px; height: 28px; font-size: 13px; }
.vv-root .wrap-options { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.vv-root .wrap-btn { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 6px; border: 1px solid #cbd5e1; border-radius: 12px; background: #f8fafc; color: #334155; font: 500 13px var(--vv-font-body); cursor: pointer; }
.vv-root .wrap-btn[aria-pressed=true] { background: linear-gradient(135deg,#eff6ff,#f5f3ff); border-color: #64748b; box-shadow: inset 0 0 0 1px #64748b; }
.vv-root .wrap-swatch { width: 32px; height: 24px; border: 1px solid #94a3b8; border-radius: 4px; }
.vv-root .wrap-mirror { background: linear-gradient(90deg,#cbd5e1,#475569 48%,#cbd5e1); }
.vv-root .wrap-black { background: #111; }
.vv-root .wrap-white { background: #fff; }
.vv-root .material-options { display: grid; gap: 8px; }
.vv-root .material-btn { display: flex; align-items: center; gap: 14px; width: 100%; padding: 10px 12px; text-align: left; border: 1px solid #e2e8f0; border-radius: 13px; background: #fff; color: #334155; cursor: pointer; font: 500 14px/1.4 var(--vv-font-body); }
.vv-root .material-icon { width: 50px; height: 50px; flex-shrink: 0; border: 1px solid rgba(15,23,42,.08); border-radius: 9px; background-size: cover; background-position: center; }
.vv-root .material-icon-polyester { background-image: url('../materials/canvas-polyester.webp'); }
.vv-root .material-icon-mix { background-image: url('../materials/canvas-cotton-polyester-75-25.webp'); }
.vv-root .material-icon-cotton { background-image: url('../materials/canvas-cotton-100.webp'); }
.vv-root .material-name { flex: 1; }
.vv-root .material-check { display: grid; place-items: center; flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; border: 1px solid #cbd5e1; color: transparent; font-size: 12px; }
.vv-root .material-btn[aria-pressed=true] { border-color: #64748b; background: linear-gradient(135deg,#eff6ff,#f5f3ff); box-shadow: inset 0 0 0 1px #64748b; }
.vv-root .material-btn[aria-pressed=true] .material-check { color: #fff; background: var(--vv-accent-gradient); border-color: transparent; }
.vv-root .control-group:first-child { padding-left: 0; }
.vv-root .group-hint, .vv-root .upload-hint { font-size: 12px; }
.vv-root .layout-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.vv-root .layout-btn { display: flex; flex-direction: column; align-items: center; gap: 8px; min-height: 102px; padding: 12px 6px; border: 1px solid #e2e8f0; border-radius: 12px; background: #f8fafc; color: #334155; font: 500 12px/1.35 var(--vv-font-body); cursor: pointer; }
.vv-root .layout-btn svg { width: 76px; height: 45px; fill: currentColor; }
.vv-root .layout-label { display: block; min-height: 2.7em; white-space: pre-line; line-height: 1.35; }
.vv-root .layout-btn[aria-pressed=true] { background: linear-gradient(135deg,#eff6ff,#f5f3ff); border-color: #64748b; color: #0f172a; box-shadow: inset 0 0 0 1px #64748b; }
.vv-root .ratio-label { font-size: 12px; }
.vv-root .gap-control { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; font-size: 13px; }
.vv-root .gap-control select { padding: 9px; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; font: inherit; }
.vv-root .preview-panel { position: sticky; top: 106px; min-width: 0; }
.vv-root .detail-toolbar { padding: 12px; background: #fff; border-radius: 14px; }
.vv-root .detail-options { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.vv-root .detail-options button { min-height: 56px; padding: 12px 16px; border: 1px solid #cbd5e1; border-radius: 12px; background: #f8fafc; color: #334155; font: 500 14px/1.35 var(--vv-font-body); cursor: pointer; }
.vv-root .detail-options button[aria-pressed=true] { background: linear-gradient(135deg,#eff6ff,#f5f3ff); border-color: #64748b; }
.vv-root .detail-options button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.vv-root .detail-options svg, .vv-root .reset-position svg { width: 28px; height: 28px; flex-shrink: 0; stroke: currentColor; stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.vv-root #detailPanelControl { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 13px; }
.vv-root #detailPanel { padding: 8px; border: 1px solid #cbd5e1; border-radius: 8px; font: inherit; background: #fff; }
.vv-root #detailStatus:empty { display: none; }
.vv-root .preview-stage { width: 100% !important; max-height: 62vh; }
.vv-root .preview-stage canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.vv-root .composition-info { padding: 22px; border-radius: 18px; border: 1px solid #e2e8f0; background: linear-gradient(135deg,rgba(239,246,255,.6),rgba(255,255,255,.96) 45%,rgba(245,243,255,.5)); color: #334155; overflow-wrap: anywhere; font-size: 13px; line-height: 1.5; box-shadow: 0 10px 32px rgba(15,23,42,.035); }
.vv-root .spec-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.vv-root .spec-layout { font-weight: 600; color: #334155; }
.vv-root .spec-eyebrow { color: #64748b; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.vv-root .spec-size { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin: 8px 0 18px; color: #0f172a; font: 700 clamp(24px,3vw,34px)/1.2 var(--vv-font-head); letter-spacing: -.045em; }
.vv-root .spec-unit { font: 500 14px var(--vv-font-body); color: #64748b; letter-spacing: 0; }
.vv-root .spec-details { margin: 0; }
.vv-root .spec-row { display: grid; grid-template-columns: minmax(110px,1fr) minmax(0,2fr); gap: 16px; padding: 10px 0; border-top: 1px solid rgba(148,163,184,.2); }
.vv-root .spec-row dt { color: #64748b; }
.vv-root .spec-row dd { margin: 0; text-align: right; color: #1e293b; font-weight: 500; }
.vv-root .spec-footer { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; margin-top: 18px; text-align: center; }
.vv-root .spec-quality { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 6px 10px; border-radius: 8px; background: #f1f5f9; color: #475569; font-size: 12px; font-weight: 600; }
.vv-root .spec-quality span { font-weight: 400; }
.vv-root .spec-quality.is-low { background: rgba(245,158,11,.09); color: #92400e; }
.vv-root .spec-dispatch { display: flex; align-items: center; justify-content: center; gap: 14px; width: 100%; padding: 10px 16px; border: 1px solid rgba(123,45,142,.10); border-radius: 10px; background: linear-gradient(135deg,rgba(27,58,140,.04),rgba(123,45,142,.06),rgba(212,27,107,.04)); color: var(--vv-text-muted); font: 400 12px/1.4 var(--vv-font-body); text-align: center; }
.vv-root .spec-dispatch svg { width: 22px; height: 22px; flex-shrink: 0; color: #7c3aed; }
.vv-root .spec-dispatch-copy { display: flex; flex-direction: column; min-width: 0; }
.vv-root .spec-dispatch-time { color: var(--vv-text); font-size: 14px; font-weight: 700; }
.vv-root .reset-position { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; justify-self: center; align-self: center; margin-inline: auto; border: 1px solid #cbd5e1; border-radius: 12px; background: #f8fafc; color: #334155; padding: 12px 16px; font: 500 14px/1.35 var(--vv-font-body); cursor: pointer; }
.vv-root .detail-options button:hover, .vv-root .reset-position:hover { border-color: var(--vv-accent); background: var(--vv-accent-soft); }
.vv-root .group-export { margin-top: 0; padding-top: 18px; border-top: 1px solid #e2e8f0; }
.vv-root .group-export .btn-primary { width: 100%; font-size: 14px; padding: 16px; }
.vv-root .group-export .view-options { flex-wrap: wrap; }
.vv-root .group-export .view-options .view-btn { background: #f8fafc; color: #334155; border: 1px solid #cbd5e1; box-shadow: none; font-size: 11px; }
.vv-root .group-export .view-options .view-btn.active { background: linear-gradient(120deg,#eff6ff,#f5f3ff); color: #0f172a; border-color: #64748b; }
.vv-root .group-export .interior-select-wrap { width: 100%; background: #f8fafc; box-shadow: none; }
.vv-root .group-export .interior-select-wrap select { min-width: 0; color: #334155; }
.vv-root .group-export .interior-nav { background: #fff; color: #334155; box-shadow: none; }
.vv-root .preview-price { min-width: 0; flex-wrap: wrap; }
.vv-root .preview-price { position: relative; display: flex; gap: 20px; padding: 26px; border: 1px solid #e2e8f0; border-radius: 22px; background: linear-gradient(120deg,#fff 30%,#f8fafc); box-shadow: 0 12px 40px #0f172a07; text-align: center; }
.vv-root .price-main { flex: 1 1 100%; display: grid; justify-items: center; gap: 12px; min-width: 0; }
.vv-root .price-heading { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px; }
.vv-root .price-eyebrow { color: #475569; font: 600 13px/1.4 var(--vv-font-body); }
.vv-root .price-details { display: flex; align-items: baseline; justify-content: center; flex-wrap: wrap; gap: 4px 10px; max-width: 100%; }
.vv-root .price-tax { color: #64748b; font: 400 12px/1.6 var(--vv-font-body); white-space: nowrap; }
.vv-root .price-tax::before { content: '·'; margin-right: 10px; }
.vv-root .price-main .price-value { color: #0f172a; font: 700 clamp(34px,3.5vw,46px)/1.1 var(--vv-font-head); letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.vv-root .price-main .price-note { color: #64748b; font: 400 12px/1.6 var(--vv-font-body); }
.vv-root .price-note:empty { display: none; }
.vv-root .price-cta { position: relative; isolation: isolate; display: flex; align-items: center; justify-content: center; gap: 16px; flex: 1 1 100%; min-height: 80px; padding: 24px; border: 0; border-radius: 16px; overflow: hidden; background: transparent; color: #111; font: 800 17px/1.4 var(--vv-font-body); text-transform: none; letter-spacing: .01em; white-space: normal; max-width: 100%; text-align: center; text-decoration: none; box-shadow: 0 12px 32px rgba(249,115,22,.17); transition: transform .2s,box-shadow .2s; }
.vv-root .price-cta::before { content: ''; position: absolute; left: 50%; top: 50%; width: 260%; aspect-ratio: 1; background: conic-gradient(#2563eb,#06b6d4,#7c3aed,#db2777,#f97316,#facc15,#2563eb); transform: translate(-50%,-50%); animation: vv-cta-border 4s linear infinite; z-index: -2; pointer-events: none; }
.vv-root .price-cta::after { content: ''; position: absolute; inset: 2px; border-radius: 14px; background: linear-gradient(135deg,rgba(255,232,196,.9),rgba(255,205,178,.88) 40%,rgba(253,194,210,.88) 75%,rgba(250,176,200,.9)); backdrop-filter: blur(14px) saturate(1.4); z-index: -1; pointer-events: none; }
.vv-root .price-cta:hover { background: transparent; color: #111; transform: translateY(-2px); box-shadow: 0 16px 40px rgba(249,115,22,.22); }
.vv-root .price-cta svg { width: 24px; height: 24px; flex: 0 0 24px; fill: none; stroke: #111; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vv-root .price-cta .checkout-label { color: #111; }
.vv-root .price-cta .checkout-bag { stroke: url(#vv-bag-gradient); stroke-width: 2.2; }
.vv-root .price-cta .checkout-unavailable { display: none; }
.vv-root .price-cta[aria-disabled=true] { opacity: 1; cursor: not-allowed; transform: none; }
.vv-root .price-cta[aria-disabled=true] .checkout-arrow { display: none; }
.vv-root .price-cta[aria-disabled=true] .checkout-unavailable { display: block; }
@keyframes vv-cta-border { to { transform: translate(-50%,-50%) rotate(360deg); } }
.vv-root .material-lightbox { position: fixed; inset: 0; margin: auto; padding: 0; width: min(520px,90vw); max-height: 90dvh; border: 0; border-radius: 20px; background: #fff; color: #0f172a; box-shadow: 0 24px 64px #0005; overflow: auto; }
.vv-root .material-lightbox::backdrop { background: rgba(15,23,42,.68); backdrop-filter: blur(6px); }
.vv-root .material-lightbox-image { display: block; width: 100%; max-height: 60dvh; aspect-ratio: 4/3; object-fit: cover; }
.vv-root .material-lightbox-info { padding: 24px 28px; text-align: center; }
.vv-root .material-lightbox-info h3 { margin: 0 0 8px; font: 700 22px/1.3 var(--vv-font-head); }
.vv-root .material-lightbox-info p { margin: 0; color: #64748b; font: 400 14px/1.6 var(--vv-font-body); }
.vv-root .material-lightbox-close { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid #e2e8f0; border-radius: 50%; background: #fffffff0; color: #111; font: 28px/1 var(--vv-font-body); cursor: pointer; }
.vv-root .checkout-status { flex-basis: 100%; margin: 0; font-size: 12px; color: #64748b; }
.vv-root .checkout-status:empty { display: none; }
.vv-root :is(button, select, a, [role=button]):focus-visible { outline: 3px solid #2563eb; outline-offset: 3px; }
@media (min-width: 901px) {
    .vv-root .composition-info { width: 50%; margin-inline: auto; container: vv-composition / inline-size; }
}
@container vv-composition (max-width: 300px) {
    .vv-root .spec-row { grid-template-columns: minmax(0,1fr); gap: 4px; }
    .vv-root .spec-row dd { text-align: left; }
    .vv-root .spec-size { font-size: 24px; }
}
@media (max-width: 900px) {
    .vv-root .preview-price { padding: 20px; }
    .vv-root .price-cta { gap: 10px; padding: 20px 14px; font-size: 15px; }
    .vv-root .app-main { display: flex; align-items: stretch; padding: 0 0 24px; }
    .vv-root .controls-panel { padding: 18px; min-width: 0; width: 100%; }
    .vv-root .control-group, .vv-root .control-column { padding: 0 !important; }
    .vv-root .preview-panel { position: static; }
    .vv-root.has-image .preview-panel { order: -1; }
    .vv-root .preview-stage { max-height: none; }
    .vv-root .layout-btn { min-height: 94px; }
}
@media (prefers-reduced-motion: reduce) {
    .vv-root *, .vv-root *::before, .vv-root *::after { animation: none !important; transition: none !important; }
}
