.cse-product-gallery{--cse-pg-accent:#257AFF;--cse-pg-close-hover:#E32636;--cse-pg-stage-bg:#fff;--cse-pg-modal-bg:#000;--cse-pg-stage-height:560px;--cse-pg-thumb-size:78px;--cse-pg-thumb-gap:10px;--cse-pg-stage-radius:18px;position:relative;width:100%;direction:rtl}
.cse-product-gallery *{box-sizing:border-box}

/* Main product media */
.cse-pg-stage{position:relative;width:100%;height:var(--cse-pg-stage-height);min-height:220px;display:grid;place-items:center;overflow:hidden;border-radius:var(--cse-pg-stage-radius);background:var(--cse-pg-stage-bg)}
.cse-pg-stage-image,.cse-pg-stage-video-wrap{position:relative;width:100%;height:100%;margin:0;padding:0;border:0;background:transparent;display:grid;place-items:center;overflow:hidden}
.cse-pg-stage-image img,.cse-pg-stage-video{display:block;width:100%;height:100%;object-fit:contain;object-position:center}
.cse-pg-stage-image{cursor:default}
.cse-pg-stage-image.is-clickable{cursor:zoom-in}
.cse-product-gallery .cse-pg-stage-image,.cse-product-gallery .cse-pg-stage-image:hover,.cse-product-gallery .cse-pg-stage-image:focus,.cse-product-gallery .cse-pg-stage-image:focus-visible{background:transparent!important;border:0!important;box-shadow:none!important;filter:none!important;opacity:1!important;transform:none!important}
.cse-product-gallery .cse-pg-stage-image img,.cse-product-gallery .cse-pg-stage-image:hover img,.cse-product-gallery .cse-pg-stage-image:focus img,.cse-product-gallery .cse-pg-stage-image:focus-visible img{opacity:1!important;filter:none!important;box-shadow:none!important;transform:none!important;scale:1!important;rotate:none!important;transition:none!important}
.cse-pg-expand-icon{position:absolute;left:14px;bottom:14px;width:42px;height:42px;border:1px solid rgba(37,122,255,.3);border-radius:12px;background:rgba(255,255,255,.92);color:var(--cse-pg-accent);display:grid;place-items:center;opacity:0;transform:translateY(4px);transition:.2s ease;box-shadow:0 8px 24px rgba(15,23,42,.12);backdrop-filter:blur(8px)}
.cse-pg-stage:hover .cse-pg-expand-icon,.cse-pg-stage:focus-within .cse-pg-expand-icon{opacity:1;transform:none}
.cse-pg-expand-icon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.cse-pg-stage-video-poster img{filter:blur(1.5px)!important;transform:scale(1.02)!important;opacity:.82!important}
.cse-pg-video-placeholder{display:block;width:100%;height:100%;background:linear-gradient(135deg,#eef4ff,#d9e8ff)}
.cse-pg-stage-video-badge{width:66px!important;height:66px!important;inset:50% auto auto 50%!important;transform:translate(-50%,-50%)!important;background:transparent!important}
.cse-pg-stage-video-badge:before{width:56px!important;height:56px!important;background:rgba(13,27,63,.82)!important}
.cse-pg-stage-video-badge svg{width:26px!important;height:26px!important}

/* Inline thumbnails */
.cse-pg-thumbnails{width:100%;display:flex;flex-direction:row;gap:var(--cse-pg-thumb-gap);margin-top:14px;padding:2px 0 4px;overflow:hidden;overscroll-behavior-inline:contain}
.cse-pg-thumb{position:relative;flex:0 0 var(--cse-pg-thumb-size);width:var(--cse-pg-thumb-size);height:var(--cse-pg-thumb-size);padding:4px;border:1.5px solid #d9e1ec;border-radius:11px;background:#fff;overflow:hidden;cursor:pointer;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease,border-width .18s ease}
.cse-pg-thumb[hidden]{display:none!important}
.cse-pg-thumb:hover,.cse-pg-thumb:focus-visible{transform:translateY(-1px);border-color:var(--cse-pg-accent)!important;border-width:2px;background:#fff!important;box-shadow:0 0 0 2px rgba(37,122,255,.18),0 8px 22px rgba(37,122,255,.18);outline:0}
.cse-pg-thumb.is-active{border-color:var(--cse-pg-accent);border-width:2px;box-shadow:0 0 0 2px rgba(37,122,255,.16)}
.cse-pg-thumb img{display:block;width:100%;height:100%;object-fit:cover;border-radius:7px}
.cse-pg-thumb.is-video img,.cse-pg-modal-thumb.is-video img{filter:blur(2.2px);transform:scale(1.1);opacity:.66}
.cse-pg-video-badge{position:absolute;inset:0;display:grid;place-items:center;background:linear-gradient(135deg,rgba(13,27,63,.18),rgba(37,122,255,.22));color:#fff;text-shadow:0 1px 4px rgba(0,0,0,.4);pointer-events:none}
.cse-pg-video-badge:before{content:"";position:absolute;width:34px;height:34px;border-radius:50%;background:rgba(13,27,63,.82);box-shadow:0 4px 12px rgba(0,0,0,.24)}
.cse-pg-video-badge svg{position:relative;z-index:1;width:18px;height:18px;fill:currentColor;transform:translateX(1px)}
.cse-pg-thumb-more{display:grid;place-items:center;padding:4px}
.cse-pg-thumb-more img{filter:blur(3px);transform:scale(1.12);opacity:.58}
.cse-pg-more-overlay{position:absolute;inset:4px;border-radius:7px;display:grid;place-items:center;background:rgba(255,255,255,.18);backdrop-filter:blur(1px);color:#0D1B3F;font-size:23px;font-weight:900;letter-spacing:2px;text-shadow:0 1px 6px rgba(255,255,255,.9)}
.cse-pg-thumb-more:hover .cse-pg-more-overlay,.cse-pg-thumb-more:focus-visible .cse-pg-more-overlay{color:#fff;background:rgba(37,122,255,.26)}
.cse-product-gallery-editor-notice{padding:16px;border:1px dashed #93c5fd;border-radius:12px;background:#eff6ff;color:#1d4ed8;font-size:13px;line-height:1.9;text-align:center}

/* Full screen gallery */
.cse-pg-modal{position:fixed;inset:0;z-index:2147483000;display:none;align-items:center;justify-content:center;padding:24px 88px 20px;background:var(--cse-pg-modal-bg);direction:rtl}
.cse-pg-modal.is-open{display:flex}
.cse-pg-modal-backdrop{position:absolute;inset:0;background:var(--cse-pg-modal-bg)}
.cse-pg-modal-shell{position:relative;z-index:2;width:min(1180px,calc(100vw - 190px));height:min(900px,calc(100vh - 70px));display:grid;grid-template-rows:minmax(0,1fr) auto;gap:16px;align-items:center;justify-items:center}
.cse-pg-modal-media{position:relative;width:100%;height:100%;min-width:0;min-height:0;display:block;overflow:hidden;border-radius:24px;background:#fff;box-shadow:0 25px 70px rgba(0,0,0,.42);touch-action:none}
.cse-pg-modal-media.is-video{touch-action:auto}
.cse-pg-modal-image-fit,.cse-pg-modal-video-fit{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;min-width:0;min-height:0;overflow:hidden}
.cse-pg-modal-image-fit{padding:24px}
.cse-pg-modal-image-fit img[data-cse-pg-zoom-image]{display:block!important;position:static!important;inset:auto!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;min-width:0!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;object-fit:contain!important;object-position:center center!important;aspect-ratio:auto!important;user-select:none!important;-webkit-user-drag:none!important;transform-origin:center center!important;will-change:transform;cursor:zoom-in}
.cse-pg-modal-media.is-zoomed img[data-cse-pg-zoom-image]{cursor:grab}
.cse-pg-modal-media.is-dragging img[data-cse-pg-zoom-image]{cursor:grabbing}
.cse-pg-modal-video-fit{padding:18px;background:#000}
.cse-pg-modal-video-fit video,.cse-pg-modal-aparat-frame{display:block;width:100%;height:100%;max-width:100%;max-height:100%;border:0;background:#000;object-fit:contain}

.cse-pg-close{position:fixed;top:24px;left:24px;z-index:5;width:42px;height:42px;padding:0;border:0;border-radius:12px;background:var(--cse-pg-accent);color:#fff;display:grid;place-items:center;cursor:pointer;transition:background .18s ease,transform .18s ease;box-shadow:0 10px 26px rgba(0,0,0,.22)}
.cse-pg-close:hover,.cse-pg-close:focus-visible{background:var(--cse-pg-close-hover);transform:scale(1.04)}
.cse-pg-close svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.cse-pg-zoom-tools{position:fixed;top:24px;right:24px;z-index:5;display:flex;align-items:center;direction:ltr;border-radius:12px;overflow:hidden;background:var(--cse-pg-accent);box-shadow:0 10px 26px rgba(0,0,0,.22)}
.cse-pg-zoom-tools[hidden]{display:none!important}
.cse-pg-zoom-tools button{min-width:42px;height:42px;padding:0 10px;border:0;border-left:1px solid rgba(255,255,255,.26);background:transparent;color:#fff;font-size:16px;font-weight:700;line-height:1;font-family:inherit;cursor:pointer}
.cse-pg-zoom-tools button:first-child{border-left:0}
.cse-pg-zoom-tools button:hover{background:rgba(255,255,255,.15)}
.cse-pg-zoom-tools [data-cse-pg-zoom-reset]{min-width:64px;font-size:12px}
.cse-pg-nav{position:fixed;top:50%;z-index:5;width:48px;height:56px;margin-top:-28px;padding:0;border:1px solid var(--cse-pg-accent);border-radius:14px;background:rgba(13,27,63,.76);color:#fff;display:grid;place-items:center;cursor:pointer;transition:.18s ease;backdrop-filter:blur(8px)}
.cse-pg-nav:hover,.cse-pg-nav:focus-visible{background:var(--cse-pg-accent);transform:scale(1.04);outline:0}
.cse-pg-nav svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.cse-pg-next{right:24px}.cse-pg-prev{left:24px}

.cse-pg-modal-thumbnails{position:relative;z-index:3;max-width:100%;display:flex;flex-direction:row;justify-content:flex-start;gap:10px;padding:3px;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;scrollbar-color:var(--cse-pg-accent) transparent}
.cse-pg-modal-thumb{position:relative;flex:0 0 70px;width:70px;height:70px;padding:4px;border:1.5px solid #d9e1ec;border-radius:12px;background:#fff;overflow:hidden;cursor:pointer;opacity:.88;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease,border-width .18s ease,opacity .18s ease}
.cse-pg-modal-thumb:hover,.cse-pg-modal-thumb:focus-visible{opacity:1;transform:translateY(-2px);border-color:var(--cse-pg-accent)!important;border-width:2px;background:#fff!important;box-shadow:0 0 0 2px rgba(37,122,255,.18),0 8px 22px rgba(37,122,255,.18);outline:0}
.cse-pg-modal-thumb.is-active{border-color:var(--cse-pg-accent);border-width:2px;opacity:1;box-shadow:0 0 0 2px rgba(37,122,255,.22)}
.cse-pg-modal-thumb img{display:block;width:100%;height:100%;object-fit:cover;border-radius:7px}
.cse-pg-modal-thumb .cse-pg-video-badge:before{width:30px;height:30px}
.cse-pg-modal-thumb .cse-pg-video-badge svg{width:16px;height:16px}
body.cse-pg-modal-open{overflow:hidden!important}

@media(max-width:1024px){
  .cse-pg-modal{padding:22px 68px 18px}.cse-pg-modal-shell{width:min(920px,calc(100vw - 150px));height:min(780px,calc(100vh - 64px))}
  .cse-pg-close{top:18px;left:18px}.cse-pg-zoom-tools{top:18px;right:18px}.cse-pg-next{right:14px}.cse-pg-prev{left:14px}
  .cse-pg-modal-image-fit{padding:18px}
}
@media(max-width:767px){
  .cse-pg-stage{min-height:200px}.cse-pg-expand-icon{opacity:1;transform:none;width:38px;height:38px;left:10px;bottom:10px}
  .cse-pg-modal{padding:70px 10px 12px}.cse-pg-modal-shell{width:100%;height:100%;gap:10px}.cse-pg-modal-media{border-radius:18px}
  .cse-pg-modal-image-fit{padding:10px}.cse-pg-modal-video-fit{padding:8px}
  .cse-pg-close{top:14px;left:12px;width:40px;height:40px;border-radius:11px}.cse-pg-zoom-tools{top:14px;right:12px}.cse-pg-zoom-tools button{height:40px;min-width:38px}.cse-pg-zoom-tools [data-cse-pg-zoom-reset]{min-width:58px}
  .cse-pg-nav{top:auto;bottom:88px;width:42px;height:46px;margin:0;border-radius:12px}.cse-pg-next{right:10px}.cse-pg-prev{left:10px}
  .cse-pg-modal-thumb{flex-basis:58px;width:58px;height:58px;border-radius:10px}.cse-pg-modal-thumbnails{gap:8px}
  .cse-pg-more-overlay{font-size:20px}
}

/* 2.0.110: phone image containment. Do not use desktop 560px stage height. */
.cse-product-gallery, .cse-product-gallery .cse-pg-stage, .cse-product-gallery .cse-pg-stage-image{min-width:0;max-width:100%}
@media(max-width:767px){
 .cse-product-gallery{--cse-pg-thumb-size:64px;--cse-pg-thumb-gap:8px;width:100%!important;max-width:100%!important;min-width:0!important}
 .cse-product-gallery .cse-pg-stage{width:100%!important;height:min(90vw,420px)!important;min-height:0!important;max-height:420px!important;overflow:hidden!important;display:grid!important;place-items:center!important}
 .cse-product-gallery .cse-pg-stage-image{width:100%!important;height:100%!important;max-height:100%!important;min-width:0!important;min-height:0!important;overflow:hidden!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:8px!important}
 .cse-product-gallery .cse-pg-stage-image img{display:block!important;position:static!important;inset:auto!important;transform:none!important;scale:1!important;max-width:100%!important;max-height:100%!important;width:100%!important;height:100%!important;object-fit:contain!important;object-position:center!important;margin:0!important;padding:0!important}
 .cse-product-gallery .cse-pg-thumbnails{max-width:100%;gap:8px;margin-top:10px;overflow-x:auto;scrollbar-width:thin}
 .cse-product-gallery .cse-pg-thumb{flex:0 0 64px;width:64px;height:64px}
 .cse-product-gallery .cse-pg-modal-image-fit img[data-cse-pg-zoom-image]{object-fit:contain!important}
}

/* Avoid intrinsic-image minimum size forcing the CSS grid to crop large product photos. */
.cse-product-gallery .cse-pg-stage-image{min-width:0!important;min-height:0!important;display:flex!important;align-items:center!important;justify-content:center!important}
.cse-product-gallery .cse-pg-stage-image img{min-width:0!important;min-height:0!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;object-position:center!important}

/* 2.0.130: Aparat / uploaded video selection in the product stage and optional captions. */
.cse-pg-stage-wrap{display:flex;flex-direction:column;min-width:0;gap:8px;width:100%}
.cse-pg-stage-wrap .cse-pg-stage{order:1}
.cse-pg-video-title{box-sizing:border-box;min-width:0;padding:9px 14px;border-radius:10px;background:#f3f7fe;color:#26364f;font-size:14px;font-weight:600;line-height:1.8;text-align:center;overflow-wrap:anywhere;direction:rtl}
.cse-pg-video-title[hidden]{display:none!important}
.cse-pg-stage-caption.is-above{order:0}
.cse-pg-stage-caption.is-below{order:2}
.cse-pg-stage .cse-pg-stage-aparat-frame,.cse-pg-stage .cse-pg-stage-video{display:block!important;width:100%!important;height:100%!important;max-width:100%!important;min-height:0;border:0;object-fit:contain;background:#000}
.cse-pg-stage iframe{aspect-ratio:16/9}
.cse-pg-modal-shell{display:flex;flex-direction:column;justify-content:center;align-items:stretch}
.cse-pg-modal-media{flex:1 1 auto;height:auto;min-height:0}
.cse-pg-modal-caption{flex:0 0 auto;max-width:100%;align-self:stretch}
.cse-pg-modal-caption.is-above{order:-1}
.cse-pg-modal-caption.is-below{order:1}
.cse-pg-modal-thumbnails{order:2;flex:0 0 auto}
@media(max-width:767px){.cse-pg-video-title{font-size:13px;padding:7px 10px}}
