.product-ar-dialog{--par-ink:#19342e;--par-muted:#697c76;--par-line:#e1e9e5;--par-accent:#14665c;--par-blue:#225dca;width:min(920px,calc(100vw - 32px));max-width:920px;max-height:calc(100dvh - 40px);padding:0;margin:auto;border:1px solid #e3eae6;border-radius:26px;background:#fff;color:var(--par-ink);font-family:inherit;text-align:right;overflow:auto;overscroll-behavior:contain;box-shadow:0 30px 100px #102b2440;scrollbar-width:thin}
.product-ar-dialog::backdrop{background:#102a25b5;backdrop-filter:blur(7px)}
.product-ar-dialog.product-ar-fallback[open]{position:fixed;inset:20px 0 auto;z-index:2147483000;box-shadow:0 0 0 100vmax #102a25b5}
.product-ar-panel{padding:28px}
.product-ar-header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:16px}
.product-ar-eyebrow{margin:0 0 7px;color:var(--par-blue);font-size:12px;font-weight:700}
.product-ar-title{margin:0;font-size:24px;font-weight:800;line-height:1.7;color:var(--par-ink)}
.product-ar-close{display:flex;align-items:center;justify-content:center;flex:0 0 42px;width:42px;height:42px;padding:0;border:1px solid var(--par-line);border-radius:50%;background:#f6f8f6;color:var(--par-ink);font-family:inherit;font-size:30px;line-height:1;cursor:pointer;transition:background .15s}
.product-ar-close:hover{background:#eaf1ed}
.product-ar-description{margin:0 0 22px;font-size:13px;line-height:2;color:var(--par-muted)}
.product-ar-viewport{position:relative;isolation:isolate;min-height:300px;height:clamp(300px,43vh,470px);border:1px solid var(--par-line);border-radius:22px;overflow:hidden;background:radial-gradient(ellipse at 50% 44%,#fff 0,#f7f7f1 65%,#f0f2ec 100%)}
.product-ar-viewport:before{position:absolute;inset:0 0 auto;height:3px;background:var(--par-blue);content:"";z-index:3}
.product-ar-stage,.product-ar-model{display:block;width:100%;height:100%;min-height:300px}
.product-ar-model{--progress-bar-color:var(--par-accent);--progress-bar-height:3px;touch-action:pan-y}
.product-ar-loading,.product-ar-error{position:absolute;inset:0;z-index:2;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;padding:30px;background:#f7f7f1ed;text-align:center;font-size:13px;line-height:2;color:var(--par-muted)}
.product-ar-error p{max-width:420px;margin:0}
.product-ar-spinner{width:30px;height:30px;border:3px solid #d9e7e1;border-top-color:var(--par-accent);border-radius:50%;animation:product-ar-spin .9s linear infinite}
@keyframes product-ar-spin{to{transform:rotate(360deg)}}
.product-ar-notice{margin:16px 0;padding:13px 16px;border:1px solid var(--par-line);border-radius:13px;background:#f6f9f6;color:var(--par-muted);font-size:12px;line-height:2}
.product-ar-controls{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap}
.product-ar-placement{display:flex;align-items:center;gap:7px;min-width:0;margin:0;padding:0;border:0}
.product-ar-placement legend{float:none;width:auto;margin:0 0 8px;padding:0;color:var(--par-muted);font-size:11px;font-weight:600}
.product-ar-placement-option{min-height:39px;padding:8px 12px;border:1px solid var(--par-line);border-radius:10px;background:#fff;color:var(--par-muted);font-family:inherit;font-size:12px;cursor:pointer;transition:background .15s,border-color .15s}
.product-ar-placement-option[aria-pressed=true]{border-color:var(--par-accent);background:#eaf4ee;color:var(--par-accent);font-weight:700}
.product-ar-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.product-ar-button{display:inline-flex;align-items:center;justify-content:center;min-height:43px;padding:10px 16px;border:1px solid transparent;border-radius:11px;font-family:inherit;font-size:12px;font-weight:700;line-height:1.6;cursor:pointer;transition:background .15s,opacity .15s}
.product-ar-button-primary{background:var(--par-accent);color:#fff}
.product-ar-button-primary:hover{background:#0e5148}
.product-ar-button-secondary{border-color:var(--par-line);background:#fff;color:var(--par-ink)}
.product-ar-button-secondary:hover{background:#f1f6f2}
.product-ar-button:disabled{opacity:.5;cursor:default}
.product-ar-dialog button:focus-visible,.product-ar-model:focus-visible{outline:3px solid #87b6fb;outline-offset:3px}
.product-ar-status{min-height:26px;margin:12px 0 0;color:var(--par-muted);font-size:12px;line-height:2}
.product-ar-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;counter-reset:product-ar-step;margin:18px 0 20px;padding:0;list-style:none}
.product-ar-steps li{display:flex;align-items:center;gap:8px;color:var(--par-ink);font-size:11px;line-height:1.9}
.product-ar-steps li:before{display:flex;align-items:center;justify-content:center;flex:0 0 27px;width:27px;height:27px;border:1px solid var(--par-line);border-radius:9px;background:#f5f8f4;color:var(--par-blue);font-weight:700;counter-increment:product-ar-step;content:counter(product-ar-step,persian)}
.product-ar-dimensions{margin:0 0 8px;padding-top:16px;border-top:1px solid var(--par-line);font-size:11px;line-height:2;color:var(--par-muted)}
.product-ar-privacy{margin:0;font-size:10px;line-height:2.1;color:var(--par-muted)}
.product-ar-dialog [hidden]{display:none!important}
.product-ar-trigger{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;margin-top:16px;padding:13px 16px;border:1px solid #c9ddd6;border-radius:14px;background:#f2f8f5;color:#14665c;font:inherit;font-size:13px;font-weight:700;line-height:1.8;cursor:pointer}.product-ar-trigger:hover{background:#e7f2ec}.product-ar-trigger:focus-visible{outline:3px solid #225dca;outline-offset:3px}
@media(max-width:640px){.product-ar-dialog{width:calc(100vw - 20px);max-height:calc(100dvh - 20px);border-radius:20px}.product-ar-panel{padding:18px}.product-ar-title{font-size:20px}.product-ar-header{gap:12px}.product-ar-description{font-size:12px;margin-bottom:16px}.product-ar-viewport{height:350px;min-height:260px;border-radius:16px}.product-ar-stage,.product-ar-model{min-height:260px}.product-ar-controls{align-items:stretch;gap:15px}.product-ar-placement,.product-ar-actions{width:100%}.product-ar-actions .product-ar-button-primary{flex:1}.product-ar-steps{grid-template-columns:1fr;gap:10px;margin:15px 0}.product-ar-status{font-size:11px}.product-ar-notice{padding:11px 12px;font-size:11px}}
@media(prefers-reduced-motion:reduce){.product-ar-spinner{animation:none}.product-ar-dialog button{transition:none}}
