@import url("/finish-photos.css?v=20260928-finishsize1");
html.modal-open{overflow:hidden;overscroll-behavior:none}
body.modal-open{position:fixed;inset-inline:0;top:var(--modal-scroll-lock-top,0);width:100%;overflow:hidden;overscroll-behavior:none}
dialog{width:min(1480px,96vw);height:min(900px,94dvh);max-height:94dvh;overflow:hidden;overscroll-behavior:contain}
.modal-layout{grid-template-columns:minmax(0,1.65fr) clamp(360px,28vw,460px);height:100%;min-height:0;direction:ltr}
.modal-media,.modal-copy{direction:rtl}.modal-media{position:relative;min-width:0;height:100%;background:#0d1510;overflow:hidden;display:flex;flex-direction:column;padding:12px}
.modal-stage{position:relative;width:100%;flex:1;min-height:0;display:grid;place-items:center;overflow:hidden;background:linear-gradient(135deg,#0b110d,#151c16);outline:none;touch-action:pan-y;overscroll-behavior:contain;contain:layout paint}
.modal-stage>img{position:absolute;inset:0;margin:auto;display:block;width:min(100%,var(--artwork-reference-width,796px));height:auto;max-width:100%;max-height:min(84vh,100%);object-fit:contain;opacity:1;transform:translate3d(var(--pan-x,0),var(--pan-y,0),0) scale(var(--zoom,1));transform-origin:center;transition:transform .28s ease,opacity .12s ease;user-select:none;-webkit-user-drag:none;pointer-events:none;will-change:transform,opacity}
.modal-stage.is-loading>img{opacity:0}
.modal-stage.is-loading::before{content:attr(data-loading-label);position:absolute;z-index:2;inset:auto 50% 50% auto;translate:50% 50%;padding:9px 13px;border:1px solid #c49a5a66;background:#101611e8;color:#ead6b2;font-size:10px;letter-spacing:.2px;white-space:nowrap}
.modal-stage.is-zoomed{cursor:grab;touch-action:none}.modal-stage.is-dragging{cursor:grabbing}.modal-stage.is-dragging>img{transition:none}.modal-stage.is-zoomed::after{content:'اسحب الصورة لرؤية جميع التفاصيل';position:absolute;z-index:2;top:14px;left:50%;translate:-50% 0;padding:7px 11px;background:#111510c9;border:1px solid #ffffff2b;color:#fff;font-size:10px;pointer-events:none;opacity:.9;white-space:nowrap}
.modal-stage.motion{overflow:hidden;cursor:default;touch-action:pan-y}.modal-stage.motion::after{display:none}.modal-stage.motion>img{animation:pdpKen 10s ease-in-out infinite;transition:none}
@keyframes pdpKen{0%,8%{transform:scale(1) translate(0,0)}42%{transform:scale(1.09) translate(-1.8%,1%)}72%{transform:scale(1.14) translate(1.5%,-1%)}100%{transform:scale(1) translate(0,0)}}
.modal-nav{position:absolute;z-index:3;top:50%;translate:0 -50%;width:42px;height:62px;border:1px solid #ffffff35;background:#111510b8;color:white;font-size:28px;cursor:pointer;backdrop-filter:blur(7px)}.modal-prev{right:15px}.modal-next{left:15px}.modal-nav[hidden]{display:none}
.zoom-tools{position:absolute;z-index:3;left:16px;bottom:16px;display:flex;background:#111510d8;border:1px solid #ffffff2b;backdrop-filter:blur(8px)}.zoom-tools button{min-width:38px;height:34px;border:0;border-left:1px solid #ffffff1f;background:none;color:white;font:11px Arial;cursor:pointer}.zoom-tools button:last-child{border-left:0}.zoom-tools button:hover{background:#ffffff16}
.modal-stage.motion .zoom-tools{display:none}.motion-badge{display:none;position:absolute;z-index:3;right:16px;top:16px;background:#c49a5a;color:#171912;padding:7px 10px;font:10px Arial;letter-spacing:1.2px}.modal-stage.motion .motion-badge{display:block}.motion-toggle{display:none;position:absolute;z-index:4;right:16px;bottom:17px;border:1px solid #ffffff35;background:#111510c9;color:white;padding:8px 12px;font-family:inherit;font-size:10px;cursor:pointer;backdrop-filter:blur(7px)}.modal-stage.motion .motion-toggle{display:block}.modal-stage.motion-paused>img,.modal-stage.motion-paused .motion-progress{animation-play-state:paused}
.motion-progress{display:none;position:absolute;z-index:3;right:0;bottom:0;width:100%;height:2px;background:#c49a5a;transform-origin:right;animation:motionProgress 10s linear infinite}.modal-stage.motion .motion-progress{display:block}@keyframes motionProgress{from{transform:scaleX(0)}to{transform:scaleX(1)}}
.modal-thumbs{direction:rtl;display:flex;justify-content:center;gap:8px;padding:9px 4px 4px;overflow-x:auto;flex:0 0 75px;scrollbar-width:none}.modal-thumbs::-webkit-scrollbar{display:none}.modal-thumb{flex:0 0 78px;height:60px;padding:0;border:1px solid transparent;background:#1c211b;position:relative;cursor:pointer;overflow:hidden}.modal-thumb img{width:100%;height:100%;object-fit:cover;opacity:.62}.modal-thumb.active{border-color:#c49a5a}.modal-thumb.active img{opacity:1}.modal-thumb span{position:absolute;inset:auto 3px 3px;background:#111510dc;color:white;padding:3px;font-size:10px;text-align:center}.modal-thumb.motion-thumb::after{content:'▶';position:absolute;inset:0;display:grid;place-items:center;color:white;font-size:16px;text-shadow:0 2px 8px #000}
.modal-work-nav{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;flex:0 0 auto}.modal-work-nav button{border:1px solid #ffffff2b;background:none;color:#ffffffa8;padding:6px 11px;font-family:inherit;font-size:10px;cursor:pointer}.modal-work-nav span{text-align:center;color:#ffffff68;font-size:10px}
.modal-copy{align-self:stretch;padding:42px 38px;overflow:auto}.modal-copy h2{font-size:31px;margin:8px 0 14px}.modal-copy fieldset{border:0;border-top:1px solid #d8cdbd;padding:15px 0 0;margin:16px 0}.modal-copy legend{font-size:11px;font-weight:500;padding:0 0 7px}.choice-row{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}.choice-row button{background:transparent;border:1px solid #d6cbbb;min-height:60px;padding:5px;font-family:inherit;font-size:10px;cursor:pointer}.choice-row button small{display:block;color:#81796f;font-size:10px}.choice-row button.selected{border-color:#c49a5a;background:#eadcc7}.frames button{display:grid;place-items:center;gap:4px}.frames i{width:18px;height:18px;border-radius:50%;display:block}.frames .none{background:linear-gradient(45deg,transparent 46%,#a99 47%,#a99 53%,transparent 54%);border:1px solid #aaa}.frames .gold-frame{background:#b9904e}.frames .wood{background:#835c3c}.frames .black{background:#101612}
.selection-progress{display:grid;grid-template-columns:auto 1fr auto 1fr auto 1fr auto 1fr auto;align-items:center;gap:5px;margin-bottom:20px}.selection-progress span{font-size:10px;color:#8b8378;white-space:nowrap}.selection-progress span.done{color:#b78848;font-weight:500}.selection-progress i{height:1px;background:#d8cdbd}.modal-price{display:grid;gap:5px;margin:14px 0 10px;padding:16px 18px!important;border:1px solid #cdbb9f!important;background:#f8f1e6;color:#252a23}.modal-price span{font-size:10px;color:#8a632d}.modal-price b{font-size:22px;line-height:1.4;color:#1d241e}.modal-price small{font-size:10px;line-height:1.7;color:#77746d}.modal-copy .button{width:100%}
.modal-pre-cart-summary{margin:8px 0 12px;padding:14px 16px;border:1px solid #d7c7af;background:#fffaf2;color:#253029}.modal-pre-cart-summary>strong{display:block;margin-bottom:10px;color:#8c612b;font-size:14px}.modal-pre-cart-summary dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 16px;margin:0}.modal-pre-cart-summary dl>div{min-width:0;padding-bottom:7px;border-bottom:1px solid #eadfce}.modal-pre-cart-summary dt{margin:0 0 3px;color:#7b746b;font-size:12px}.modal-pre-cart-summary dd{margin:0;overflow-wrap:anywhere;color:#202921;font-size:13px;font-weight:700;line-height:1.5}
.order-type-choices{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.order-type-choices button{position:relative;min-height:92px;border:1px solid #d6cbbb;background:transparent;padding:28px 7px 10px;font-family:inherit;color:#272b25;cursor:pointer}.order-type-choices button.selected{border-color:#b78848;background:#eadcc7;box-shadow:inset 0 0 0 1px #b78848}.order-type-choices b,.order-type-choices small{display:block}.order-type-choices b{font-size:10px;margin:6px 0}.order-type-choices small{font-size:10px;line-height:1.55;color:#77746d}.order-type-choices i{display:block;margin:auto;width:30px;height:22px;position:relative}.order-recommended-label{position:absolute;top:6px;left:50%;right:auto;transform:translateX(-50%);padding:3px 7px;border:1px solid #a97837;border-radius:999px;background:#f8efe1;color:#815720;font-size:10px;font-weight:800;line-height:1.15;white-space:nowrap}.type-float{border:3px solid #a57b3e;box-shadow:inset 0 0 0 4px #f3eadc}.type-stretched{border:3px solid #9f8869}.type-roll{border:2px solid #ad8a57;border-radius:50%;width:28px!important;height:18px!important;box-shadow:8px 0 0 -5px #ad8a57}
.frame-color-choices{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.frame-color-choices button{padding:0 0 8px;border:1px solid #d6cbbb;background:#f8f3eb;color:#292d27;font-family:inherit;font-size:10px;cursor:pointer;overflow:hidden}.frame-color-choices button.selected{border-color:#b78848;box-shadow:inset 0 0 0 1px #b78848;background:#eadcc7}.frame-color-choices img{display:block;width:100%;height:58px;object-fit:cover;margin-bottom:7px}.frame-color-choices span{display:block;padding-inline:4px;line-height:1.45}
.modal-order-guide{display:block;border:1px solid #d8cdbd;background:#eee4d6;padding:8px;margin:15px 0}.modal-order-guide img{display:block;width:100%;height:auto;object-fit:contain}.modal-order-guide span{display:block;font-size:10px;color:#6f6b64;text-align:center;padding:7px 4px 1px}.modal-roll-preview{display:grid;grid-template-columns:130px 1fr;gap:12px;align-items:center;background:#1a211a;color:#e9e3d9;padding:9px;margin:12px 0}.modal-roll-preview[hidden]{display:none}.modal-roll-preview img{width:130px;height:88px;object-fit:cover}.modal-roll-preview p{font-size:10px!important;line-height:1.8!important;color:#bec4bd!important;margin:0}
@media(max-width:900px){dialog{width:100vw;height:100dvh;max-height:100dvh;margin:0}.modal-layout{display:flex;flex-direction:column;height:100%;max-height:100%;overflow:auto;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y pinch-zoom}.modal-media{height:64dvh;min-height:440px;flex:0 0 auto;padding:7px}.modal-copy{padding:28px 20px 40px;overflow:visible}.modal-thumbs{justify-content:flex-start;flex-basis:62px}.modal-thumb{flex-basis:66px;height:50px}.modal-work-nav{gap:5px}.choice-row{grid-template-columns:repeat(2,1fr)}.frame-color-choices{grid-template-columns:repeat(3,1fr)}}
@media(hover:none) and (pointer:coarse){
  .modal-stage,.modal-stage.is-zoomed,.modal-stage.motion{touch-action:pan-y pinch-zoom}
  .modal-stage.is-zoomed:not(.motion){touch-action:pinch-zoom}
  .modal-stage>img{will-change:auto}
  .modal-nav,.zoom-tools,.motion-toggle,.modal-thumbs,.modal-work-nav{-webkit-backdrop-filter:none;backdrop-filter:none}
}
@media(max-width:520px){.modal-media{height:62dvh;min-height:420px}.modal-nav{width:34px;height:50px}.zoom-tools{left:9px;bottom:9px}.modal-copy h2{font-size:26px}.modal-copy{padding-top:24px}.modal-work-nav span{font-size:10px}.selection-progress{gap:3px}.selection-progress span{font-size:10px}.modal-pre-cart-summary dl{grid-template-columns:1fr}.order-type-choices{grid-template-columns:1fr}.order-type-choices button{min-height:72px;display:grid;grid-template-columns:38px 1fr;align-items:center;text-align:right}.order-type-choices i{grid-row:1/3}.order-type-choices b{margin:0}.frame-color-choices{grid-template-columns:repeat(2,1fr)}.frame-color-choices img{height:70px}.modal-roll-preview{grid-template-columns:100px 1fr}.modal-roll-preview img{width:100px;height:76px}}
@media(min-width:901px){
  .modal-media{padding:6px}
  .modal-stage{height:100%}
  .modal-thumbs{position:absolute;z-index:5;left:50%;bottom:46px;width:max-content;max-width:calc(100% - 180px);height:60px;transform:translateX(-50%);padding:5px 8px;background:#0b110de8;border:1px solid #ffffff21;backdrop-filter:blur(8px)}
  .modal-thumb{height:48px;flex-basis:68px}
  .modal-work-nav{position:absolute;z-index:5;inset-inline:6px;bottom:6px;min-height:34px;padding-inline:5px;background:#0b110de8;border:1px solid #ffffff18;backdrop-filter:blur(8px)}
  .zoom-tools{bottom:118px}
  .modal-stage>img{image-rendering:auto}
}
@media(prefers-reduced-motion:reduce){.modal-stage.motion>img{animation:none;transform:scale(1)}}
