/* MEROSI NEXT 2.2 – safe product tabs, no gallery DOM reparenting. */
body.merosi-next-theme#product .mn-pt-nav {
  display:flex; direction:rtl; align-items:stretch; gap:7px; padding:7px;
  margin:0 0 17px; background:#f4f9fd; border:1px solid #dce9f2;
  border-radius:16px; box-shadow:0 3px 12px rgba(34,91,126,.035);
  max-width:100%; overflow-x:auto; -webkit-overflow-scrolling:touch;
}
body.merosi-next-theme#product .mn-pt-tab {
  flex:1 1 0; min-width:max-content; display:flex; align-items:center; justify-content:center;
  gap:7px; color:#456983; background:transparent; border:1px solid transparent;
  padding:12px 13px; border-radius:12px; font-family:inherit;font-size:13px;font-weight:700;line-height:1.5;
  cursor:pointer; box-shadow:none; white-space:nowrap;
}
body.merosi-next-theme#product .mn-pt-tab.is-active {
  background:white; border-color:#bad8ec; color:#1d5479;
  box-shadow:0 3px 10px rgba(33,95,138,.09);
}
body.merosi-next-theme#product .mn-pt-tab:focus-visible,
body.merosi-next-theme#product .mn-pt-type-tabs button:focus-visible {outline:2px solid #73b3e5; outline-offset:2px}
body.merosi-next-theme#product .mn-pt-panel[hidden],
body.merosi-next-theme#product .mn-pt-chart[hidden]{display:none!important}
/* Only on explicit alternate-tab selection are the native gallery elements hidden. */
body.merosi-next-theme#product .pb-left-column.mn-pt-alt-active > #views_block,
body.merosi-next-theme#product .pb-left-column.mn-pt-alt-active > #image-block,
body.merosi-next-theme#product .pb-left-column.mn-pt-alt-active > p.resetimg,
body.merosi-next-theme#product .pb-left-column.mn-pt-alt-active > p#reduction_percent,
body.merosi-next-theme#product .pb-left-column.mn-pt-alt-active > p#reduction_amount,
body.merosi-next-theme#product .pb-left-column.mn-pt-alt-active > .clearfix {display:none!important}
/* Original image-block remains a direct child – native jqzoom and thumbnail scripts still see their usual DOM. */
body.merosi-next-theme#product .pb-left-column:not(.mn-pt-alt-active) > #image-block,
body.merosi-next-theme#product .pb-left-column:not(.mn-pt-alt-active) > #view_full_size{visibility:visible!important;opacity:1!important}
body.merosi-next-theme#product .mn-pt-panel {
  background:#fff; border:1px solid #dce9f2; padding:17px;
  border-radius:16px; color:#243f55; text-align:right; direction:rtl;
}
body.merosi-next-theme#product .mn-pt-eyebrow{display:block;font-size:11px;font-weight:800;color:#4a819f;margin-bottom:5px}
body.merosi-next-theme#product .mn-pt-sizeguide h3{font-size:20px;line-height:1.6;font-weight:800;color:#213d52;margin:0 0 8px}
body.merosi-next-theme#product .mn-pt-intro,body.merosi-next-theme#product .mn-pt-info{font-size:12px;line-height:1.9;color:#657c8d;margin:0 0 14px}
body.merosi-next-theme#product .mn-pt-type-tabs{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0 16px}
body.merosi-next-theme#product .mn-pt-type-tabs button{border:1px solid #cde2f0;background:#f5faff;color:#356481;border-radius:10px;padding:8px 11px;font-family:inherit;font-size:12px;font-weight:700;line-height:1.7;cursor:pointer}
body.merosi-next-theme#product .mn-pt-type-tabs button.is-active{color:#fff;background:#31759a;border-color:#31759a}
body.merosi-next-theme#product .mn-pt-chart-title{display:flex;justify-content:space-between;align-items:center;gap:6px;font-weight:800;color:#284b64;font-size:13px;margin-bottom:9px}
body.merosi-next-theme#product .mn-pt-chart-title span{font-weight:500;font-size:11px;color:#718b9d}
body.merosi-next-theme#product .mn-pt-table-scroll{width:100%;max-width:100%;overflow-x:auto;border:1px solid #dbe9f2;border-radius:12px;margin:0 0 10px}
body.merosi-next-theme#product table.mn-pt-table{direction:rtl;border-collapse:collapse;min-width:395px;width:100%;background:#fff;margin:0}
body.merosi-next-theme#product .mn-pt-table th,body.merosi-next-theme#product .mn-pt-table td{text-align:center;padding:10px 8px;border-bottom:1px solid #e2edf5;font-size:12px;white-space:nowrap}
body.merosi-next-theme#product .mn-pt-table thead th{background:#edf5fb;color:#254c65;font-weight:800}
body.merosi-next-theme#product .mn-pt-table tbody tr:nth-child(even){background:#f7fbfe}
body.merosi-next-theme#product .mn-pt-table tbody tr.mn-pt-selected{background:#e3f2fc;color:#1d547d;font-weight:800}
body.merosi-next-theme#product .mn-pt-info-box{padding:16px;border:1px solid #d8e8f2;border-radius:12px;background:#f6faff}
body.merosi-next-theme#product .mn-pt-info-box strong{display:block;color:#294b61;font-size:14px;margin-bottom:5px}
body.merosi-next-theme#product .mn-pt-info-box p{line-height:2;font-size:12px;color:#5c7181;margin:0}
body.merosi-next-theme#product .mn-pt-measures{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:16px 0}
body.merosi-next-theme#product .mn-pt-measures>div{background:#f5faff;border:1px solid #e0edf5;border-radius:12px;padding:12px;min-width:0}
body.merosi-next-theme#product .mn-pt-measures b{display:block;font-size:12px;color:#34516a}
body.merosi-next-theme#product .mn-pt-measures p{font-size:11px;line-height:1.8;color:#648095;margin:4px 0 0}
body.merosi-next-theme#product .mn-pt-guide-wizard,
body.merosi-next-theme#product .mn-pt-wizard-cta{width:100%;display:block;padding:12px 15px;background:#2d7398;color:#fff;border:0;border-radius:11px;font-family:inherit;font-size:14px;font-weight:800;line-height:1.6;cursor:pointer}
body.merosi-next-theme#product .mn-pt-guide-wizard:hover,
body.merosi-next-theme#product .mn-pt-wizard-cta:hover{background:#245e7f;color:white}
body.merosi-next-theme#product .mn-pt-wizard-head{text-align:center;margin:15px auto 20px;max-width:380px}
body.merosi-next-theme#product .mn-pt-wizard-head h3{font-weight:800;font-size:23px;color:#203c51;margin:6px 0}
body.merosi-next-theme#product .mn-pt-wizard-head p{font-size:13px;line-height:2;color:#708697;margin:0}
body.merosi-next-theme#product .mn-pt-wizard-icon{margin:0 auto 8px;display:grid;place-items:center;border-radius:18px;width:58px;height:58px;background:#e6f2fa;color:#2876a0;font-size:25px}
body.merosi-next-theme#product .mn-pt-note{color:#708697;font-size:12px;line-height:1.9;margin:15px 0 2px;text-align:center}
@media(max-width:991px){
 body.merosi-next-theme#product .mn-pt-measures{grid-template-columns:1fr}
 body.merosi-next-theme#product .mn-pt-nav{gap:4px;padding:5px;margin:0 0 12px}
 body.merosi-next-theme#product .mn-pt-tab{padding:10px 9px;font-size:11px;gap:5px}
 body.merosi-next-theme#product .mn-pt-panel{padding:12px}
}


/* MEROSI NEXT 2.3 – polished responsive product studio */
body.merosi-next-theme#product .pb-left-column {min-width:0!important;}
body.merosi-next-theme#product .mn-pt-nav {
  display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;
  width:100%;padding:6px!important;gap:6px!important;border-radius:18px!important;
  background:#eff6fc!important;border:1px solid #cfe1f0!important;
  box-shadow:0 4px 20px rgba(27,75,107,.06)!important;overflow:visible!important;
  margin:0 0 16px!important;
}
body.merosi-next-theme#product .mn-pt-tab {
  min-width:0!important;width:100%;padding:12px 6px!important;white-space:normal!important;
  border-radius:13px!important;font-size:13px!important;line-height:1.6!important;
  color:#3c6682!important;border:1px solid transparent!important;
  transition:background .15s ease,color .15s ease,box-shadow .15s ease;
}
body.merosi-next-theme#product .mn-pt-tab.is-active {background:white!important;color:#1f5276!important;border-color:#bfd9eb!important;box-shadow:0 3px 10px rgba(29,91,141,.11)!important;}
body.merosi-next-theme#product .mn-pt-tab i {font-size:15px;flex-shrink:0;}
body.merosi-next-theme#product .mn-pt-panel {border:1px solid #d4e5f1!important;box-shadow:0 6px 24px rgba(38,83,112,.05);background:white!important;border-radius:18px!important;padding:17px!important;min-height:0!important;}
body.merosi-next-theme#product .mn-pt-guide-intro h3 {font-size:19px!important;font-weight:800!important;line-height:1.6!important;margin:4px 0 8px!important;color:#203b53!important;}
body.merosi-next-theme#product .mn-pt-intro {font-size:13px!important;line-height:2!important;margin-bottom:14px!important;}
body.merosi-next-theme#product .mn-pt-type-tabs {display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px!important;margin:13px 0 16px!important;}
body.merosi-next-theme#product .mn-pt-type-tabs button {font-weight:700!important;font-size:13px!important;border-radius:12px!important;padding:10px 5px!important;line-height:1.5!important;min-width:0;white-space:normal!important;}
body.merosi-next-theme#product .mn-pt-chart-title {display:flex;flex-wrap:wrap;gap:5px;align-items:center;justify-content:space-between;margin-bottom:12px;font-size:15px!important;}
body.merosi-next-theme#product .mn-pt-chart-title span{font-size:11px!important;color:#688395;}
body.merosi-next-theme#product .mn-pt-chart-layout {display:grid;grid-template-columns:minmax(0,1fr);gap:12px;align-items:start;}
body.merosi-next-theme#product .mn-pt-garment {background:#f3f9ff;border:1px solid #d8e8f6;border-radius:16px;min-width:0;overflow:hidden;}
body.merosi-next-theme#product .mn-pt-garment-art {max-width:300px;margin:0 auto;padding:3px;}
body.merosi-next-theme#product .mn-pt-garment-art img {display:block;width:100%;height:auto;max-width:100%;}
body.merosi-next-theme#product .mn-pt-garment-caption {display:flex;justify-content:space-evenly;gap:6px;flex-wrap:wrap;padding:9px 5px 11px;border-top:1px solid #d8e8f6;font-size:11px;font-weight:700;color:#47637c;}
body.merosi-next-theme#product .mn-pt-garment-caption b {display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:50%;background:#337ca9;color:white;font-family:Arial,sans-serif;margin-left:3px;}
body.merosi-next-theme#product .mn-pt-table-scroll {border-radius:14px!important;border-color:#d1e4f3!important;margin:0!important;overscroll-behavior-x:contain;}
body.merosi-next-theme#product table.mn-pt-table {width:100%;min-width:380px!important;table-layout:auto;border-spacing:0!important;direction:rtl!important;}
body.merosi-next-theme#product .mn-pt-table th,body.merosi-next-theme#product .mn-pt-table td {font-size:13px!important;padding:11px 5px!important;border-bottom:1px solid #dfeaf5!important;border-left:1px solid #edf2f8;line-height:1.5!important;font-variant-numeric:tabular-nums;}
body.merosi-next-theme#product .mn-pt-table thead th {background:#e8f4ff!important;color:#275474!important;font-weight:800!important;white-space:nowrap!important;}
body.merosi-next-theme#product .mn-pt-table thead th small {color:#4c91bb;font-family:Arial,sans-serif;font-weight:800;}
body.merosi-next-theme#product .mn-pt-table tbody th span {background:#e7f2fc;border-radius:8px;display:inline-flex;padding:5px;min-width:42px;align-items:center;justify-content:center;color:#26516f;}
body.merosi-next-theme#product .mn-pt-table tbody tr.mn-pt-selected {background:#d7effd!important;}
body.merosi-next-theme#product .mn-pt-table tbody tr.mn-pt-selected th span {background:#267da9;color:#fff;}
body.merosi-next-theme#product .mn-pt-table-help {padding:10px 5px 0;font-size:11px;line-height:1.8;color:#638196;}
body.merosi-next-theme#product .mn-pt-help-dot {display:inline-block;width:8px;height:8px;background:#438bb3;border-radius:50%;margin-inline-end:5px;}
body.merosi-next-theme#product .mn-pt-caution {font-size:12px;line-height:1.9;color:#46647b;padding:12px 14px;border-radius:11px;border:1px solid #cddfeb;background:#f4f9fd;margin:14px 0;}
body.merosi-next-theme#product .mn-pt-measures {grid-template-columns:repeat(2,minmax(0,1fr))!important;margin:14px 0 0!important;}
body.merosi-next-theme#product .mn-pt-measures strong {font-size:12px;line-height:1.6;color:#264f6a;}
body.merosi-next-theme#product .mn-pt-measures p {font-size:12px!important;}
body.merosi-next-theme#product .mn-pt-guide-wizard {margin-top:12px!important;}
/* swipe images on touch screens; keep native gallery for desktop and all product combination logic */
body.merosi-next-theme#product .mn-swipe {display:none;}
@media (max-width:767px) {
 body.merosi-next-theme#product .mn-pt-nav {gap:5px!important;padding:5px!important;border-radius:15px!important;margin:0 0 12px!important;}
 body.merosi-next-theme#product .mn-pt-tab {padding:11px 4px!important;font-size:11px!important;gap:4px!important;}
 body.merosi-next-theme#product .mn-pt-tab i {font-size:12px!important;}
 body.merosi-next-theme#product .mn-pt-panel {padding:12px!important;}
 body.merosi-next-theme#product .mn-pt-guide-intro h3 {font-size:17px!important;}
 body.merosi-next-theme#product .mn-pt-chart-layout {grid-template-columns:1fr;}
 body.merosi-next-theme#product .mn-pt-garment {display:grid;grid-template-columns:minmax(0,120px) minmax(0,1fr);align-items:center;}
 body.merosi-next-theme#product .mn-pt-garment-art {width:120px;padding:1px;}
 body.merosi-next-theme#product .mn-pt-garment-caption {border-top:0;border-right:1px solid #d6e8f5;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;padding:8px 12px;font-size:11px;}
 body.merosi-next-theme#product .mn-pt-measures {grid-template-columns:1fr!important;}
 body.merosi-next-theme#product .mn-pt-type-tabs button {font-size:11px!important;padding:10px 3px!important;}
 body.merosi-next-theme#product #image-block.mn-has-swipe > #view_full_size,
 body.merosi-next-theme#product #image-block.mn-has-swipe > .span_link {display:none!important;}
 body.merosi-next-theme#product #image-block .mn-swipe {display:block;position:relative;clear:both;margin:0 0 5px;background:#f5f9fc;border-radius:16px;overflow:hidden;border:1px solid #e0ebf4;}
 body.merosi-next-theme#product .mn-swipe-track {display:flex;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scroll-behavior:smooth;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;touch-action:pan-x pan-y;scrollbar-width:none;aspect-ratio:1 / 1.13;}
 body.merosi-next-theme#product .mn-swipe-track::-webkit-scrollbar {display:none;}
 body.merosi-next-theme#product .mn-swipe-slide {flex:0 0 100%;scroll-snap-align:start;scroll-snap-stop:always;display:flex;align-items:center;justify-content:center;min-width:100%;}
 body.merosi-next-theme#product .mn-swipe-slide img {width:100%;height:100%;object-fit:contain;display:block;user-select:none;-webkit-user-drag:none;}
 body.merosi-next-theme#product .mn-swipe-overlay {position:absolute;z-index:2;top:12px;left:12px;right:12px;display:flex;align-items:center;justify-content:space-between;pointer-events:none;font-size:11px;color:#315675;}
 body.merosi-next-theme#product .mn-swipe-count {display:inline-block;padding:5px 10px;background:rgba(255,255,255,.9);border-radius:20px;box-shadow:0 2px 12px rgba(40,83,119,.13);font-family:inherit;}
 body.merosi-next-theme#product .mn-swipe-hint {background:rgba(255,255,255,.82);border-radius:9px;padding:5px 9px;}
 body.merosi-next-theme#product .mn-swipe-dots {display:flex;align-items:center;justify-content:center;gap:7px;padding:10px 0;background:#f5f9fc;direction:ltr;}
 body.merosi-next-theme#product .mn-swipe-dot {display:block;flex:none;width:7px;height:7px;border:0;border-radius:99px;background:#bad2e3;padding:0;transition:width .18s,background .18s;cursor:pointer;}
 body.merosi-next-theme#product .mn-swipe-dot.is-current {width:23px;background:#2e80ad;}
 body.merosi-next-theme#product .pb-left-column > #views_block {display:none!important;}
}
@media (min-width:768px) {
 body.merosi-next-theme#product .mn-pt-nav {margin:0 0 16px!important;}
 body.merosi-next-theme#product .mn-pt-tab {font-size:13px!important;padding:13px 7px!important;}
 body.merosi-next-theme#product .mn-pt-panel {padding:16px!important;}
 body.merosi-next-theme#product .mn-pt-chart-layout {grid-template-columns:minmax(0,.78fr) minmax(0,1.3fr);gap:14px;}
 body.merosi-next-theme#product .mn-pt-garment-art {max-width:unset;}
 body.merosi-next-theme#product .mn-pt-garment-caption {font-size:10px;}
}
@media (min-width:768px) and (max-width:1180px) {
 body.merosi-next-theme#product .mn-pt-chart-layout {grid-template-columns:1fr;}
 body.merosi-next-theme#product .mn-pt-garment-art {max-width:220px;}
}
@media (prefers-reduced-motion:reduce) {
 body.merosi-next-theme#product .mn-swipe-track {scroll-behavior:auto;}
 body.merosi-next-theme#product .mn-pt-tab {transition:none;}
}

/* MEROSI Next 2.4 — table containment, mobile gallery caption, desktop side navigation. */
body.merosi-next-theme#product .pb-left-column,
body.merosi-next-theme#product .pb-left-column > .mn-pt-panel,
body.merosi-next-theme#product .mn-pt-sizeguide,
body.merosi-next-theme#product .mn-pt-chart,
body.merosi-next-theme#product .mn-pt-chart-layout,
body.merosi-next-theme#product .mn-pt-chart-layout > *,
body.merosi-next-theme#product .mn-pt-size-table-area,
body.merosi-next-theme#product .mn-pt-table-scroll {
  box-sizing:border-box!important; min-width:0!important; max-width:100%!important;
}
body.merosi-next-theme#product .mn-pt-sizeguide {width:100%;overflow:hidden;}
body.merosi-next-theme#product .mn-pt-panel {max-width:100%!important;min-width:0!important;box-sizing:border-box!important;overflow:hidden!important;}
body.merosi-next-theme#product .mn-pt-chart {max-width:100%!important;min-width:0!important;}
body.merosi-next-theme#product .mn-pt-chart-layout {width:100%!important;min-width:0!important;grid-template-columns:minmax(0,1fr)!important;}
body.merosi-next-theme#product .mn-pt-size-table-area {width:100%!important;min-width:0!important;overflow:hidden!important;}
body.merosi-next-theme#product .mn-pt-table-scroll {
  width:100%!important;max-width:100%!important;min-width:0!important;
  overflow-x:auto!important;overflow-y:hidden!important;
  -webkit-overflow-scrolling:touch;
}
body.merosi-next-theme#product table.mn-pt-table {
  width:100%!important;min-width:0!important;max-width:100%!important;
  table-layout:fixed!important;border-collapse:collapse!important;
  margin:0!important;box-sizing:border-box!important;
}
body.merosi-next-theme#product .mn-pt-table th,
body.merosi-next-theme#product .mn-pt-table td {
  min-width:0!important;white-space:normal!important;overflow-wrap:normal!important;
  word-break:normal!important;text-align:center!important;vertical-align:middle!important;
  font-size:clamp(10px,1.08vw,12px)!important;padding:9px 3px!important;
}
body.merosi-next-theme#product .mn-pt-table thead th {line-height:1.6!important;white-space:normal!important;}
body.merosi-next-theme#product .mn-pt-table thead th:first-child,
body.merosi-next-theme#product .mn-pt-table tbody th:first-child {width:19%!important;}
body.merosi-next-theme#product .mn-pt-table tbody th span {min-width:0!important;width:100%!important;box-sizing:border-box!important;}
body.merosi-next-theme#product .mn-pt-garment {width:100%;max-width:100%;box-sizing:border-box;min-width:0;}
body.merosi-next-theme#product .mn-pt-garment img {max-width:100%!important;height:auto!important;}
/* Keep original reset hooks for PrestaShop, but don't expose their obsolete controls. */
body.merosi-next-theme#product .pb-left-column p.resetimg,
body.merosi-next-theme#product .pb-left-column #wrapResetImages,
body.merosi-next-theme#product #image-block > .span_link,
body.merosi-next-theme#product #image-block > .span_link.no-print {display:none!important;}
/* New mobile hint belongs below the image and navigation dots, never over the image. */
body.merosi-next-theme#product .mn-swipe-instruction {display:none;}
@media (max-width:767px) {
 body.merosi-next-theme#product .mn-swipe-overlay {top:12px!important;left:12px!important;right:auto!important;display:block!important;}
 body.merosi-next-theme#product .mn-swipe-hint {display:none!important;}
 body.merosi-next-theme#product .mn-swipe-instruction {
   display:block!important;position:static!important;margin:0!important;
   padding:0 10px 13px!important;line-height:1.8!important;
   background:#f5f9fc!important;color:#4e7695!important;
   text-align:center!important;font-size:12px!important;font-weight:600!important;
 }
 body.merosi-next-theme#product .mn-pt-panel {padding:11px!important;}
 body.merosi-next-theme#product .mn-pt-table th,
 body.merosi-next-theme#product .mn-pt-table td {font-size:11px!important;padding:10px 2px!important;}
 body.merosi-next-theme#product .mn-pt-table thead th small {display:inline-block;font-size:10px;}
 body.merosi-next-theme#product .mn-pt-garment {grid-template-columns:minmax(0,110px) minmax(0,1fr)!important;}
 body.merosi-next-theme#product .mn-pt-garment-art {width:100%!important;min-width:0!important;}
}
@media (max-width:360px) {
 body.merosi-next-theme#product .mn-pt-table th,
 body.merosi-next-theme#product .mn-pt-table td {font-size:10px!important;padding:8px 1px!important;}
 body.merosi-next-theme#product .mn-pt-garment {grid-template-columns:minmax(0,95px) minmax(0,1fr)!important;}
 body.merosi-next-theme#product .mn-pt-garment-caption {font-size:10px!important;}
}
/* Desktop-only Bootstrap-inspired vertical navigation rail to the side of the gallery. */
@media (min-width:992px) {
 body.merosi-next-theme#product .pb-left-column {position:relative!important;padding-left:136px!important;}
 body.merosi-next-theme#product .pb-left-column > .mn-pt-nav {
   position:absolute!important;top:0!important;left:6px!important;right:auto!important;
   display:flex!important;flex-direction:column!important;align-items:stretch!important;
   width:112px!important;max-width:112px!important;height:auto!important;
   margin:0!important;padding:5px!important;gap:6px!important;
   border:1px solid #d1e3f0!important;border-radius:16px!important;
   background:#f2f8fd!important;box-shadow:none!important;
   overflow:visible!important;z-index:5;
 }
 body.merosi-next-theme#product .pb-left-column > .mn-pt-nav > .mn-pt-tab {
   flex:0 0 auto!important;display:flex!important;flex-direction:column!important;
   justify-content:center!important;align-items:center!important;text-align:center!important;
   width:100%!important;min-width:0!important;min-height:66px!important;
   padding:9px 6px!important;gap:5px!important;
   border:1px solid transparent!important;border-radius:12px!important;
   background:transparent!important;color:#486c86!important;
   line-height:1.55!important;font-size:12px!important;font-weight:700!important;
 }
 body.merosi-next-theme#product .pb-left-column > .mn-pt-nav > .mn-pt-tab i {font-size:18px!important;}
 body.merosi-next-theme#product .pb-left-column > .mn-pt-nav > .mn-pt-tab.is-active {
   background:#fff!important;color:#22618c!important;
   border-color:#bfdaed!important;box-shadow:0 3px 10px rgba(39,96,145,.08)!important;
 }
 body.merosi-next-theme#product .pb-left-column > .mn-pt-nav > .mn-pt-tab:hover {background:#e8f3fb!important;}
 body.merosi-next-theme#product .pb-left-column > .mn-pt-nav > .mn-pt-tab.is-active:hover {background:#fff!important;}
 body.merosi-next-theme#product .mn-pt-chart-layout {grid-template-columns:minmax(0,1fr)!important;}
 body.merosi-next-theme#product .mn-pt-garment {display:grid!important;grid-template-columns:minmax(0,130px) minmax(0,1fr);align-items:center;}
 body.merosi-next-theme#product .mn-pt-garment-art {max-width:130px!important;}
 body.merosi-next-theme#product .mn-pt-garment-caption {border-top:0!important;border-right:1px solid #d8e8f6;justify-content:center;flex-direction:column;align-items:flex-start;font-size:10px!important;}
 body.merosi-next-theme#product .mn-pt-panel {padding:12px!important;}
 body.merosi-next-theme#product .mn-pt-table th,
 body.merosi-next-theme#product .mn-pt-table td {font-size:12px!important;padding:10px 3px!important;}
}
@media (min-width:1400px) {
 body.merosi-next-theme#product .pb-left-column {padding-left:150px!important;}
 body.merosi-next-theme#product .pb-left-column > .mn-pt-nav {width:126px!important;max-width:126px!important;}
}


/* MEROSI Next 2.5: independent desktop gallery columns; no floating gallery items. */
@media (min-width:992px) {
  body.merosi-next-theme#product .pb-left-column {
    display:grid!important;
    grid-template-columns: minmax(94px,106px) minmax(0,1fr) minmax(65px,76px)!important;
    grid-template-rows:minmax(0,auto)!important;
    gap:0 9px!important;
    align-items:start!important;
    align-content:start!important;
    direction:ltr!important;
    position:relative!important;
    padding:0 10px!important;
    min-width:0!important;
    max-width:100%!important;
  }
  /* Navigation no longer steals gallery width through container padding. */
  body.merosi-next-theme#product .pb-left-column > .mn-pt-nav {
    position:relative!important;
    grid-column:1!important;
    grid-row:1!important;
    top:auto!important;bottom:auto!important;left:auto!important;right:auto!important;
    width:100%!important;max-width:100%!important;
    margin:0!important;
    z-index:5!important;
    align-self:start!important;
    direction:rtl!important;
  }
  body.merosi-next-theme#product .pb-left-column > #image-block {
    grid-column:2!important;
    grid-row:1!important;
    float:none!important;
    clear:none!important;
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    height:auto!important;
    padding:0!important;
    margin:0!important;
    align-self:start!important;
  }
  body.merosi-next-theme#product .pb-left-column > #views_block {
    grid-column:3!important;
    grid-row:1!important;
    direction:ltr!important;
    float:none!important;
    clear:none!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    padding:0!important;
    margin:0!important;
    height:auto!important;
    justify-self:stretch!important;
    align-self:start!important;
  }
  body.merosi-next-theme#product .pb-left-column #views_block #thumbs_list,
  body.merosi-next-theme#product .pb-left-column #views_block #thumbs_list_frame {
    max-width:100%!important;
    width:100%!important;
  }
  body.merosi-next-theme#product .pb-left-column #views_block #thumbs_list_frame > li {
    max-width:100%!important;
    box-sizing:border-box!important;
  }
  body.merosi-next-theme#product .pb-left-column > #image-block #view_full_size,
  body.merosi-next-theme#product .pb-left-column > #image-block #view_full_size > a,
  body.merosi-next-theme#product .pb-left-column > #image-block #view_full_size > img {
    display:block!important;
    max-width:100%!important;
    width:100%!important;
    margin:0!important;
    box-sizing:border-box!important;
  }
  body.merosi-next-theme#product .pb-left-column > #image-block #view_full_size img {
    display:block;
    width:100%!important;
    height:auto!important;
    max-width:100%!important;
  }
  body.merosi-next-theme#product .pb-left-column > #image-block .zoomWrapper {
    max-width:100%!important;
  }
  body.merosi-next-theme#product .pb-left-column > .clearfix,
  body.merosi-next-theme#product .pb-left-column > p.resetimg {
    display:none!important;
  }
  body.merosi-next-theme#product .pb-left-column > #reduction_percent,
  body.merosi-next-theme#product .pb-left-column > #reduction_amount {
    grid-column:2 / 4!important;
    grid-row:auto!important;
    direction:rtl!important;
  }
  body.merosi-next-theme#product .pb-left-column > .mn-pt-panel {
    grid-column:2 / 4!important;
    grid-row:1!important;
    direction:rtl!important;
    width:100%!important;
    margin:0!important;
    min-width:0!important;
    overflow:hidden!important;
  }
  body.merosi-next-theme#product .pb-left-column.mn-pt-alt-active > #image-block,
  body.merosi-next-theme#product .pb-left-column.mn-pt-alt-active > #views_block {
    display:none!important;
  }
  /* The guide should remain inside its own pane, never behind a float. */
  body.merosi-next-theme#product .mn-pt-garment-art .mn-pt-inline-svg {
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    height:auto!important;
    aspect-ratio:450/390;
  }
}
@media (max-width:991px) {
  /* Keep v2.4's mobile and tablet tab/gallery layout untouched. */
  body.merosi-next-theme#product .mn-pt-garment-art .mn-pt-inline-svg {
    display:block;
    width:100%;
    max-width:100%;
    height:auto;
  }
}
 

/* MEROSI Next 2.6 — real RTL product gallery grid on desktop.
   Product purchase column stays in its own Bootstrap column.
   Native gallery nodes stay in the DOM and product.js keeps control of image changes.
   Grid columns use direction:rtl: column 1 is RIGHT, column 2 is LEFT.
*/
@media screen and (min-width:992px) {
  body.merosi-next-theme#product .pb-left-column {
    display:grid!important;
    grid-template-columns: minmax(100px,114px) minmax(0,1fr)!important;
    grid-template-rows: auto auto!important;
    grid-auto-flow: row!important;
    column-gap:12px!important;
    row-gap:12px!important;
    align-items:start!important;
    align-content:start!important;
    justify-content:stretch!important;
    direction:rtl!important;
    width:auto;
    min-width:0!important;
    max-width:100%!important;
    padding:0 10px!important;
    margin:0!important;
    position:relative!important;
    height:auto!important;
  }
  /* Right-hand vertical product tabs in Persian RTL */
  body.merosi-next-theme#product .pb-left-column > .mn-pt-nav {
    grid-column:1!important;
    grid-row:1 / span 2!important;
    display:flex!important;
    flex-direction:column!important;
    justify-content:flex-start!important;
    align-items:stretch!important;
    position:relative!important;
    top:auto!important;right:auto!important;bottom:auto!important;left:auto!important;
    direction:rtl!important;
    float:none!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    height:max-content!important;
    padding:5px!important;
    margin:0!important;
    z-index:3!important;
    box-sizing:border-box!important;
    transform:none!important;
  }
  body.merosi-next-theme#product .pb-left-column > .mn-pt-nav > .mn-pt-tab {
    width:100%!important;
    font-size:12px!important;
    padding:10px 5px!important;
    min-height:64px!important;
    white-space:normal!important;
    overflow-wrap:break-word!important;
  }
  /* The full-size photo is beside the tabs, not under thumbnails. */
  body.merosi-next-theme#product .pb-left-column > #image-block {
    grid-column:2!important;
    grid-row:1!important;
    min-width:0!important;
    max-width:100%!important;
    width:100%!important;
    display:block!important;
    float:none!important;
    clear:none!important;
    height:auto!important;
    padding:0!important;
    margin:0!important;
    direction:rtl!important;
    overflow:visible!important;
    box-sizing:border-box!important;
    align-self:start!important;
  }
  body.merosi-next-theme#product .pb-left-column > #image-block #view_full_size,
  body.merosi-next-theme#product .pb-left-column > #image-block #view_full_size > a,
  body.merosi-next-theme#product .pb-left-column > #image-block #view_full_size > img,
  body.merosi-next-theme#product .pb-left-column > #image-block #view_full_size > a > img {
    display:block!important;
    box-sizing:border-box!important;
    width:100%!important;
    height:auto!important;
    max-width:100%!important;
    margin:0!important;
    float:none!important;
  }
  body.merosi-next-theme#product .pb-left-column > #image-block .zoomWrapper,
  body.merosi-next-theme#product .pb-left-column > #image-block .zoomPad {
    max-width:100%!important;
    width:100%!important;
    height:auto!important;
    box-sizing:border-box!important;
  }
  /* All miniature photos become a horizontal strip BELOW the main photo. */
  body.merosi-next-theme#product .pb-left-column > #views_block {
    grid-column:2!important;
    grid-row:2!important;
    display:block!important;
    position:relative!important;
    float:none!important;
    clear:none!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    height:auto!important;
    min-height:0!important;
    margin:0!important;
    padding:0!important;
    direction:rtl!important;
    box-sizing:border-box!important;
    overflow:visible!important;
  }
  body.merosi-next-theme#product .pb-left-column > #views_block.hidden {
    display:none!important;
  }
  body.merosi-next-theme#product .pb-left-column > #views_block #thumbs_list {
    position:relative!important;
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    height:auto!important;
    min-height:0!important;
    padding:0!important;
    margin:0!important;
    overflow:visible!important;
    text-align:right!important;
  }
  body.merosi-next-theme#product .pb-left-column > #views_block #thumbs_list_frame {
    display:flex!important;
    flex-direction:row!important;
    flex-wrap:wrap!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:9px!important;
    position:relative!important;
    top:0!important;
    left:auto!important;
    right:auto!important;
    transform:none!important;
    width:100%!important;
    max-width:100%!important;
    height:auto!important;
    min-height:0!important;
    padding:0!important;
    margin:0!important;
    list-style:none!important;
    direction:rtl!important;
    overflow:visible!important;
  }
  body.merosi-next-theme#product .pb-left-column > #views_block #thumbs_list_frame > li,
  body.merosi-next-theme#product .pb-left-column > #views_block #thumbs_list_frame > li.last {
    float:none!important;
    display:block!important;
    flex:0 0 66px!important;
    width:66px!important;
    min-width:66px!important;
    max-width:66px!important;
    height:66px!important;
    min-height:66px!important;
    margin:0!important;
    line-height:0!important;
    box-sizing:border-box!important;
    border-radius:10px!important;
  }
  body.merosi-next-theme#product .pb-left-column > #views_block #thumbs_list_frame > li a {
    display:block!important;
    width:100%!important;
    height:100%!important;
    border:1px solid #d2e3ef!important;
    border-radius:10px!important;
    background:#fff!important;
    box-sizing:border-box!important;
    opacity:1!important;
    overflow:hidden!important;
  }
  body.merosi-next-theme#product .pb-left-column > #views_block #thumbs_list_frame > li a:hover,
  body.merosi-next-theme#product .pb-left-column > #views_block #thumbs_list_frame > li a.shown {
    border-color:#70a6c8!important;
    box-shadow:0 0 0 2px rgba(71,133,176,.13)!important;
  }
  body.merosi-next-theme#product .pb-left-column > #views_block #thumbs_list_frame img {
    display:block!important;
    box-sizing:border-box!important;
    width:100%!important;
    height:100%!important;
    max-width:100%!important;
    padding:3px!important;
    margin:0!important;
    object-fit:cover!important;
  }
  /* Vertical legacy scroll arrows are obsolete when all thumbs wrap below. */
  body.merosi-next-theme#product .pb-left-column > #views_block > .view_scroll_spacer,
  body.merosi-next-theme#product .pb-left-column > #views_block > .view_scroll_spacerr {
    display:none!important;
  }
  /* When selecting guide/wizard, use full main-photo space left of the tabs. */
  body.merosi-next-theme#product .pb-left-column > .mn-pt-panel {
    grid-column:2!important;
    grid-row:1 / span 2!important;
    min-width:0!important;
    width:100%!important;
    max-width:100%!important;
    direction:rtl!important;
    align-self:start!important;
    margin:0!important;
    overflow:hidden!important;
  }
  body.merosi-next-theme#product .pb-left-column.mn-pt-alt-active > #image-block,
  body.merosi-next-theme#product .pb-left-column.mn-pt-alt-active > #views_block {display:none!important;}
  body.merosi-next-theme#product .pb-left-column > .clearfix,
  body.merosi-next-theme#product .pb-left-column > p.resetimg {display:none!important;}
  body.merosi-next-theme#product .pb-left-column > #reduction_percent,
  body.merosi-next-theme#product .pb-left-column > #reduction_amount {
    grid-column:2!important;
    grid-row:auto!important;
    direction:rtl!important;
  }
}
/* Phones and small tablets deliberately retain the version 2.5 layout. */


/* MEROSI Next 2.7 — desktop side-by-side product column repair.
   v2.6 used width:auto for the gallery float. That allowed the column to
   occupy excessive horizontal room and forced the actual purchase column
   down below the gallery. Set explicit, shrinkable flex bases for both.
   Existing gallery nodes, native options, price & cart JS remain unchanged.
*/
@media screen and (min-width:992px) {
  body.merosi-next-theme#product:not(.content_only) .primary_block.row {
    display:flex!important;
    flex-flow:row wrap!important;
    align-items:flex-start!important;
    align-content:flex-start!important;
    justify-content:flex-start!important;
    direction:rtl!important;
    box-sizing:border-box!important;
    min-width:0!important;
    width:calc(100% + 30px)!important;
    max-width:calc(100% + 30px)!important;
    height:auto!important;
    margin-right:-15px!important;
    margin-left:-15px!important;
    clear:both!important;
  }
  body.merosi-next-theme#product:not(.content_only) .primary_block.row::before,
  body.merosi-next-theme#product:not(.content_only) .primary_block.row::after {
    content:none!important;
    display:none!important;
  }
  body.merosi-next-theme#product:not(.content_only) .primary_block.row > .pb-left-column,
  body.merosi-next-theme#product:not(.content_only) .primary_block.row > .pb-center-column,
  body.merosi-next-theme#product:not(.content_only) .primary_block.row > .side_column {
    position:relative!important;
    display:block;
    float:none!important;
    clear:none!important;
    min-width:0!important;
    max-width:none!important;
    box-sizing:border-box!important;
    margin:0!important;
    padding-right:12px!important;
    padding-left:12px!important;
    overflow:visible!important;
    align-self:flex-start!important;
  }
  /* Standard two-column template, gallery on the right and buying on left. */
  body.merosi-next-theme#product:not(.content_only) .primary_block.row:not(.protheme-1) > .pb-left-column {
    flex:0 0 52%!important;
    width:52%!important;
    max-width:52%!important;
  }
  body.merosi-next-theme#product:not(.content_only) .primary_block.row:not(.protheme-1) > .pb-center-column {
    flex:0 0 48%!important;
    width:48%!important;
    max-width:48%!important;
    margin-top:0!important;
  }
  /* Themes using a third product sidebar still retain all 3 columns. */
  body.merosi-next-theme#product:not(.content_only) .primary_block.row.protheme-1 > .pb-left-column {
    flex:0 0 35%!important;
    width:35%!important;
    max-width:35%!important;
  }
  body.merosi-next-theme#product:not(.content_only) .primary_block.row.protheme-1 > .pb-center-column {
    flex:0 0 42%!important;
    width:42%!important;
    max-width:42%!important;
    margin-top:0!important;
  }
  body.merosi-next-theme#product:not(.content_only) .primary_block.row.protheme-1 > .side_column {
    flex:0 0 23%!important;
    width:23%!important;
    max-width:23%!important;
  }
  /* Unrelated extra sections (e.g. iconsProduct) belong to their own row. */
  body.merosi-next-theme#product:not(.content_only) .primary_block.row > .col-xs-12:not(.pb-left-column):not(.pb-center-column):not(.side_column) {
    flex:0 0 100%!important;
    max-width:100%!important;
    box-sizing:border-box!important;
  }
  /* Inside the gallery, keep a compact tab rail right of the photo. */
  body.merosi-next-theme#product:not(.content_only) .primary_block.row > .pb-left-column {
    display:grid!important;
    grid-template-columns: minmax(94px,105px) minmax(0,1fr)!important;
    grid-template-rows:auto auto!important;
    grid-auto-flow:row!important;
    gap:10px!important;
    align-items:start!important;
    align-content:start!important;
    justify-content:stretch!important;
    direction:rtl!important;
    padding:0 12px!important;
    min-width:0!important;
    overflow:hidden!important;
  }
  body.merosi-next-theme#product .pb-left-column > .mn-pt-nav {
    grid-column:1!important;
    grid-row:1 / span 2!important;
    width:100%!important;
    min-width:0!important;
    max-width:105px!important;
  }
  body.merosi-next-theme#product .pb-left-column > #image-block {
    grid-column:2!important;
    grid-row:1!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    margin:0!important;
    padding:0!important;
    float:none!important;
    clear:none!important;
    align-self:start!important;
  }
  body.merosi-next-theme#product .pb-left-column > #image-block #view_full_size,
  body.merosi-next-theme#product .pb-left-column > #image-block #view_full_size img {
    max-width:100%!important;
    height:auto!important;
    box-sizing:border-box!important;
  }
  body.merosi-next-theme#product .pb-left-column > #views_block {
    grid-column:2!important;
    grid-row:2!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    height:auto!important;
    display:block!important;
    float:none!important;
    clear:none!important;
    padding:0!important;
    margin:0!important;
  }
  body.merosi-next-theme#product .pb-left-column > #views_block.hidden {display:none!important;}
  body.merosi-next-theme#product .pb-left-column > #views_block #thumbs_list_frame {
    display:flex!important;
    flex-flow:row wrap!important;
    justify-content:flex-start!important;
    gap:6px!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    margin:0!important;
    padding:0!important;
    height:auto!important;
    transform:none!important;
  }
  body.merosi-next-theme#product .pb-left-column > #views_block #thumbs_list_frame > li {
    flex:0 0 58px!important;
    width:58px!important;
    min-width:58px!important;
    max-width:58px!important;
    height:58px!important;
    min-height:58px!important;
    margin:0!important;
    float:none!important;
  }
  body.merosi-next-theme#product .pb-left-column > .mn-pt-panel {
    grid-column:2!important;
    grid-row:1 / span 2!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
  }
  /* Keep cart forms within their explicit column; no size overflow. */
  body.merosi-next-theme#product .primary_block.row > .pb-center-column #buy_block,
  body.merosi-next-theme#product .primary_block.row > .pb-center-column #attributes {
    max-width:100%!important;
    min-width:0!important;
    box-sizing:border-box!important;
  }
}
/* All screens below desktop breakpoint retain v2.6 layout and functionality. */

/* MEROSI Next 2.8 — desktop-only purchase column breathing room.
   Keep the gallery, tab rail, image size, thumbnails and native purchase form
   exactly as in 2.7; only move the contents of the purchase column slightly
   toward the left by increasing its RTL-side padding. */
@media screen and (min-width: 992px) {
  body.merosi-next-theme#product:not(.content_only)
  .primary_block.row > .pb-center-column {
    padding-right: clamp(30px, 2.7vw, 40px) !important;
  }
}
