/* MEROSI Next — isolated Quick View for the native PrestaShop 1.6 Fancybox iframe.
   Do not apply these rules to the normal product page. Version 2026-11-15c. */

/* Parent page: these classes are only assigned when a Quick View is opened. */
body.merosi-next-theme .fancybox-overlay.mn-qv-overlay {
  z-index:2147481000!important;
  background:rgba(18,35,51,.66)!important;
}
body.merosi-next-theme .fancybox-wrap.mn-qv-modal,
body.merosi-next-theme .fancybox-wrap.mn-qv-modal.fancybox-opened {
  z-index:2147482000!important;
  max-width:calc(100vw - 20px)!important;
}
body.merosi-next-theme .mn-qv-modal .fancybox-skin {
  background:#fff!important;
  border:1px solid #dbe9f3!important;
  border-radius:18px!important;
  box-shadow:0 28px 85px rgba(12,32,48,.28)!important;
  overflow:visible!important;
}
body.merosi-next-theme .mn-qv-modal .fancybox-outer,
body.merosi-next-theme .mn-qv-modal .fancybox-inner {
  border-radius:17px!important;
}
/* Do not override the pixel height set inline by Fancybox on .fancybox-inner.
   Setting height:100%!important there collapses the iframe window to a thin strip
   because .fancybox-outer has no definite percentage-height reference. */
body.merosi-next-theme .mn-qv-modal .fancybox-inner {
  width:100%!important;
}
body.merosi-next-theme .mn-qv-modal iframe.fancybox-iframe {
  display:block!important;
  width:100%!important;
  height:100%!important;
  border:0!important;
}
body.merosi-next-theme .mn-qv-modal .fancybox-close {
  position:absolute!important;
  top:-14px!important;
  right:-14px!important;
  left:auto!important;
  display:flex!important;
  justify-content:center!important;
  align-items:center!important;
  width:36px!important;
  height:36px!important;
  border:1px solid #dbe8f3!important;
  border-radius:50%!important;
  background:#fff!important;
  color:#244c67!important;
  text-decoration:none!important;
  box-shadow:0 4px 17px rgba(15,49,77,.16)!important;
  z-index:2147483000!important;
  font-size:18px!important;
}
body.merosi-next-theme .mn-qv-modal .fancybox-close:hover {background:#edf7fe!important;color:#176d9c!important;}
@media(max-width:600px){
  body.merosi-next-theme .mn-qv-modal .fancybox-skin {border-radius:14px!important;}
  body.merosi-next-theme .mn-qv-modal .fancybox-outer,
  body.merosi-next-theme .mn-qv-modal .fancybox-inner {border-radius:13px!important;}
  body.merosi-next-theme .mn-qv-modal .fancybox-close {top:5px!important;right:5px!important;width:32px!important;height:32px!important;}
}

/* Iframe document. Its body has both #product and .content_only. */
body#product.content_only {
  background:#fff!important;
  color:#28445a!important;
  min-width:0!important;
  overflow-x:hidden!important;
  direction:rtl;
  font-family:IRANSans,IRANSansWeb,Tahoma,Arial,sans-serif;
}
body#product.content_only *,body#product.content_only *::before,body#product.content_only *::after {box-sizing:border-box;}
body#product.content_only .mn-qv-bar {
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  direction:rtl;padding:13px 20px;
  background:#f4f9fd;border-bottom:1px solid #dcebf5;
  text-align:right;line-height:1.7;
}
body#product.content_only .mn-qv-bar strong {font-size:14px;color:#254b65;font-weight:800;}
body#product.content_only .mn-qv-bar a {
  color:#247ba9!important;font-size:12px!important;font-weight:750;
  text-decoration:none!important;
}
body#product.content_only .mn-qv-bar a:hover {color:#145c84!important;text-decoration:underline!important;}
body#product.content_only .primary_block.row {
  display:grid!important;
  grid-template-columns:minmax(0,43fr) minmax(0,57fr)!important;
  align-items:start!important;
  gap:20px!important;
  direction:rtl!important;
  width:100%!important;max-width:100%!important;
  margin:0!important;padding:18px 20px 24px!important;
  overflow:visible!important;
}
body#product.content_only .primary_block.row::before,
body#product.content_only .primary_block.row::after {content:none!important;display:none!important;}
body#product.content_only .primary_block.row > .pb-left-column,
body#product.content_only .primary_block.row > .pb-center-column {
  display:block!important;position:relative!important;
  float:none!important;clear:none!important;
  width:100%!important;max-width:100%!important;min-width:0!important;
  height:auto!important;margin:0!important;padding:0!important;
  transform:none!important;
  overflow:visible!important;
}
body#product.content_only .primary_block.row > .pb-left-column {grid-column:1;grid-row:1;}
body#product.content_only .primary_block.row > .pb-center-column {grid-column:2;grid-row:1;text-align:right!important;}

/* Compact gallery: photo at right, options at left. */
body#product.content_only .pb-left-column > #image-block {
  display:block!important;position:relative!important;float:none!important;
  width:100%!important;max-width:100%!important;min-width:0!important;
  height:auto!important;margin:0!important;padding:0!important;
  text-align:center!important;
  border-radius:14px;overflow:hidden!important;background:#f8fbfe;
  border:1px solid #e4edf5;
}
body#product.content_only #image-block #view_full_size,
body#product.content_only #image-block #view_full_size > a {
  display:flex!important;align-items:center;justify-content:center;
  width:100%!important;max-width:100%!important;min-width:0!important;
  height:auto!important;margin:0!important;padding:0!important;
  float:none!important;
}
body#product.content_only #image-block #view_full_size img,
body#product.content_only #image-block #bigpic {
  display:block!important;width:auto!important;height:auto!important;
  max-width:100%!important;max-height:370px!important;
  object-fit:contain!important;
  margin:0 auto!important;border-radius:12px!important;
}
body#product.content_only .pb-left-column > #views_block {
  display:block!important;float:none!important;clear:both!important;
  width:100%!important;max-width:100%!important;
  height:auto!important;min-height:0!important;
  padding:8px 0 4px!important;margin:0!important;
  overflow-x:auto!important;overflow-y:hidden!important;
  -webkit-overflow-scrolling:touch;
}
body#product.content_only .pb-left-column > #views_block.hidden {display:none!important;}
body#product.content_only #thumbs_list {
  display:block!important;float:none!important;
  width:100%!important;height:auto!important;
  margin:0!important;padding:0!important;
  overflow:visible!important;
}
body#product.content_only #thumbs_list_frame {
  display:flex!important;align-items:center!important;justify-content:center!important;
  gap:8px!important;width:max-content!important;max-width:none!important;
  min-height:0!important;height:auto!important;
  margin:0 auto!important;padding:0!important;
  transform:none!important;
}
body#product.content_only #thumbs_list_frame > li,
body#product.content_only #thumbs_list_frame > li.last {
  display:block!important;float:none!important;flex:0 0 56px!important;
  width:56px!important;height:58px!important;margin:0!important;padding:0!important;
}
body#product.content_only #thumbs_list_frame > li a {
  display:block!important;width:56px!important;height:56px!important;
  padding:3px!important;border:1px solid #d9e8f2!important;
  border-radius:10px!important;overflow:hidden!important;
  background:#fff;
}
body#product.content_only #thumbs_list_frame > li a.shown,
body#product.content_only #thumbs_list_frame > li a:hover {border-color:#3b9bd3!important;box-shadow:0 0 0 2px rgba(59,155,211,.13);}
body#product.content_only #thumbs_list_frame > li img {
  display:block!important;max-width:100%!important;width:100%!important;
  height:100%!important;object-fit:cover!important;border-radius:6px!important;
}
body#product.content_only #views_block .view_scroll_spacer,
body#product.content_only #views_block .view_scroll_spacerr,
body#product.content_only #image-block .span_link,
body#product.content_only .pb-left-column > p.resetimg,
body#product.content_only .pb-left-column > .clearfix {display:none!important;}

/* Purchase summary: normal PrestaShop form, only visual layout changes. */
body#product.content_only .pb-center-column .product_name {margin:0 0 8px!important;padding:0!important;}
body#product.content_only .pb-center-column h1 {
  font-size:20px!important;line-height:1.8!important;font-weight:800!important;
  text-align:right!important;color:#263f55!important;margin:0!important;
}
body#product.content_only .pb-center-column .content_prices {
  padding:0 0 10px!important;margin:0 0 12px!important;
  border-bottom:1px solid #e1ecf3!important;
  text-align:right!important;
}
body#product.content_only .pb-center-column .content_prices .our_price_display {
  margin:0!important;padding:0!important;line-height:1.8!important;text-align:right!important;
}
body#product.content_only #our_price_display {
  font-size:22px!important;line-height:1.8!important;color:#4b7861!important;
  font-weight:800!important;
}
body#product.content_only .pb-center-column .short_description_block,
body#product.content_only .pb-center-column #short_description_block {margin:0 0 12px!important;}
body#product.content_only .pb-center-column .pb-right-column,
body#product.content_only .pb-center-column #buy_block,
body#product.content_only .pb-center-column .box-info-product,
body#product.content_only .pb-center-column #attributes {
  display:block;float:none!important;width:100%!important;max-width:100%!important;
  min-width:0!important;margin-right:0!important;margin-left:0!important;
}
body#product.content_only #buy_block {padding:0!important;border:0!important;}
body#product.content_only #attributes .attribute_fieldset {padding:0!important;margin:0 0 10px!important;}
body#product.content_only #attributes .attribute_label {
  display:block!important;float:none!important;text-align:right!important;
  font-size:13px!important;color:#36566e!important;font-weight:800!important;
  margin:0 0 5px!important;
}
body#product.content_only #attributes .attribute_list,
body#product.content_only #attributes select {
  width:100%!important;max-width:100%!important;
}
body#product.content_only #attributes select {
  min-height:44px!important;height:44px!important;
  padding:8px 12px!important;border:1px solid #cbdfee!important;
  border-radius:10px!important;background:#f6faff!important;
  color:#284e6d!important;font-size:13px!important;
}
body#product.content_only #attributes #color_to_pick_list {display:flex;flex-wrap:wrap;gap:7px;padding:0;margin:0;}
body#product.content_only .box-cart-bottom {padding:0!important;margin:10px 0 0!important;border:0!important;}
body#product.content_only #quantity_wanted_p {margin:0 0 12px!important;padding:0!important;}
body#product.content_only #quantity_wanted {min-height:42px!important;}
body#product.content_only #add_to_cart {margin:0!important;padding:0!important;}
body#product.content_only #add_to_cart button,
body#product.content_only #add_to_cart .exclusive {
  display:block!important;width:100%!important;min-height:46px!important;
  border:1px solid #267da9!important;border-radius:11px!important;
  background:#267da9!important;color:#fff!important;font-weight:800!important;
  font-size:14px!important;line-height:1.6!important;text-shadow:none!important;
  box-shadow:0 6px 16px rgba(38,125,169,.13)!important;
  padding:10px 15px!important;
}
body#product.content_only #add_to_cart button:hover {background:#1f668e!important;border-color:#1f668e!important;}
body#product.content_only .mn-qv-footlink {
  display:inline-block;margin:13px 0 0;padding:7px 0;
  font-size:12px;color:#277fae;font-weight:750;text-decoration:none;
}
body#product.content_only .mn-qv-footlink:hover{text-decoration:underline;color:#195a7d;}

/* The media query follows the iframe viewport, not the parent desktop width. */
@media(max-width:700px){
  body#product.content_only .mn-qv-bar {padding:10px 40px 10px 12px;gap:8px;}
  body#product.content_only .mn-qv-bar strong {font-size:12px!important;}
  body#product.content_only .mn-qv-bar a {font-size:10px!important;}
  body#product.content_only .primary_block.row {
    grid-template-columns:minmax(0,1fr)!important;
    gap:12px!important;padding:12px 14px 18px!important;
  }
  body#product.content_only .primary_block.row > .pb-left-column {grid-column:1!important;grid-row:1!important;}
  body#product.content_only .primary_block.row > .pb-center-column {grid-column:1!important;grid-row:2!important;}
  body#product.content_only #image-block #view_full_size img,
  body#product.content_only #image-block #bigpic {max-height:245px!important;}
  body#product.content_only .pb-center-column h1 {font-size:17px!important;}
  body#product.content_only #our_price_display {font-size:20px!important;}
}
@media(prefers-reduced-motion:reduce){
  body#product.content_only *,body#product.content_only *::before,body#product.content_only *::after {transition:none!important;animation:none!important;}
}
