/* MEROSI NEXT 2.0 – Real all-site design refresh + BS5 compatible components.
   Strictly limited to this opt-in theme. PrestaShop 1.6 business logic unchanged.
   New components opt into locally scoped Bootstrap 5.3.6 with .mn5.
   All legacy selectors receive contemporary styling without replacing their JS APIs. */
body.merosi-next-theme {
  --mn-primary:#315d82;--mn-primary-hover:#244762;
  --mn-soft:#f3f8fd;--mn-soft-2:#e8f2fb;
  --mn-line:#cbddec;--mn-ink:#253b4e;--mn-secondary:#6d8192;
  --mn-price:#52745f;--mn-buy:#872a34;--mn-buy-hover:#70232b;
  --mn-shadow:0 9px 27px rgba(43,75,104,.075);
  --mn-corner:14px;--mn-font:IRANSans,IRANSansWeb,Tahoma,Arial,sans-serif;
  font-family:var(--mn-font);color:var(--mn-ink);background:#fff;
}
body.merosi-next-theme .mn5 {--bs-body-font-family:var(--mn-font);--bs-primary-rgb:49,93,130;--bs-info-rgb:83,135,174;--bs-success-rgb:82,116,95;--bs-border-color:#d5e4ef;--bs-body-color:#253b4e;--bs-body-bg:#fff;--bs-border-radius:.875rem;--bs-border-radius-lg:1rem;direction:rtl;}
body.merosi-next-theme :is(button,input,select,textarea,.btn,.button,.exclusive,.form-control){font-family:var(--mn-font)}
body.merosi-next-theme :is(button,a,.btn,input,select,textarea):focus-visible{outline:2px solid #6fadd9;outline-offset:2px}
body.merosi-next-theme :is(.btn,.button,.button-medium,.exclusive,button[type=submit],input[type=submit],.add_to_cart_button){
  box-sizing:border-box;border-radius:12px!important;min-height:42px;line-height:1.45!important;
  padding:10px 17px;letter-spacing:0;box-shadow:none!important;text-shadow:none!important;
  font-weight:700;transition:background-color .16s ease,border-color .16s ease,box-shadow .16s ease,transform .16s ease;
}
body.merosi-next-theme :is(.btn,.button,.button-medium,.exclusive,button[type=submit],input[type=submit]) span {
  text-shadow:none!important;box-shadow:none!important;
}
body.merosi-next-theme :is(.btn-default,.button):not(.btn-danger):not(.btn-primary):not(.btn-success){
  color:var(--mn-primary)!important;background:#f5f9fd!important;border:1px solid var(--mn-line)!important;
}
body.merosi-next-theme :is(.btn-default,.button):hover{background:#e9f3fd!important;border-color:#a9c9e2!important;}
body.merosi-next-theme :is(.btn-primary,.button-medium,.btn-info,.exclusive,.btn-warning,button[type=submit],input[type=submit]):not(#add_to_cart button){
  color:#fff!important;background:var(--mn-primary)!important;border:1px solid var(--mn-primary)!important;
}
body.merosi-next-theme :is(.btn-primary,.button-medium,.btn-info,.exclusive,.btn-warning,button[type=submit],input[type=submit]):not(#add_to_cart button):hover{background:var(--mn-primary-hover)!important;border-color:var(--mn-primary-hover)!important;}
body.merosi-next-theme :is(.btn-success,.alert-success .btn){background:#52745f!important;color:white!important;border-color:#52745f!important}
body.merosi-next-theme :is(.btn-danger,.btn-delete){background:#9c4447!important;color:#fff!important;border-color:#9c4447!important}
body.merosi-next-theme :is(.btn-link){background:transparent!important;border-color:transparent!important;color:var(--mn-primary)!important}
body.merosi-next-theme :is(.btn,.button,button):disabled,body.merosi-next-theme :is(.btn,.button,button)[disabled]{opacity:.55;cursor:not-allowed;}
body.merosi-next-theme :is(.btn,.button,.exclusive):hover:not(:disabled){transform:translateY(-1px)}
body.merosi-next-theme .button.button-medium span,
body.merosi-next-theme .button.button-small span,
body.merosi-next-theme .button.exclusive-medium span {background:none!important;border:0!important;padding:0!important;color:inherit!important}
/* Primary purchase CTA: never change actual form or button event handlers. */
body.merosi-next-theme #add_to_cart,body.merosi-next-theme #add_to_cart p{float:none!important}
body.merosi-next-theme #add_to_cart button,body.merosi-next-theme #add_to_cart .exclusive{
  display:inline-flex!important;align-items:center;justify-content:center;gap:8px;
  min-height:51px!important;min-width:190px;max-width:100%;width:auto;
  background:var(--mn-buy)!important;border:1px solid var(--mn-buy)!important;color:#fff!important;
  padding:10px 22px!important;border-radius:13px!important;font-size:16px!important;font-weight:800!important;
}
body.merosi-next-theme #add_to_cart button:hover{background:var(--mn-buy-hover)!important;border-color:var(--mn-buy-hover)!important;}
body.merosi-next-theme #add_to_cart button span{background:none!important;color:#fff!important;border:0!important;font-weight:inherit!important}
/* Inputs and selects. Preserve original IDs / combination JS / inline validation. */
body.merosi-next-theme :is(.form-control,input[type=text],input[type=email],input[type=tel],input[type=password],input[type=number],input[type=search],textarea,select):not([type=hidden]){
  box-sizing:border-box;min-height:43px;max-width:100%;border:1px solid #cbdeed;border-radius:11px;
  background-color:#f9fcff;color:var(--mn-ink);box-shadow:none;
  padding:9px 12px;transition:background .15s,border .15s,box-shadow .15s;
}
body.merosi-next-theme :is(.form-control,input[type=text],input[type=email],input[type=tel],input[type=password],input[type=number],input[type=search],textarea,select):focus{
  border-color:#79aacf;background-color:#fff;box-shadow:0 0 0 3px rgba(126,175,216,.18);
}
body.merosi-next-theme :is(input[type=checkbox],input[type=radio]){accent-color:#416f92;cursor:pointer}
body.merosi-next-theme :is(label,.form-group label,.attribute_label){color:#36536b;font-weight:650;line-height:1.75}
body.merosi-next-theme :is(.form-group,.form-group-row){margin-bottom:15px;}
body.merosi-next-theme :is(.form-control:disabled,input:disabled,select:disabled){background:#eff3f7;opacity:.7}
body.merosi-next-theme :is(.form-control.error,input.error,select.error,.is-invalid){border-color:#d49b9f!important;background:#fff7f7!important}
body.merosi-next-theme :is(.form-control.success,input.success,.is-valid){border-color:#97c6a9!important;background:#f7fdf9!important}
/* Alerts, validation messages and notices — coherent, not loud. */
body.merosi-next-theme :is(.alert,.warning,.error,.success,.info,.message){border-radius:13px;padding:13px 16px;line-height:1.9;border-width:1px;box-shadow:none;}
body.merosi-next-theme :is(.alert-danger,.alert-error,.error,.alert.alert-danger,.std-error){background:#fff4f4!important;color:#8d3e44!important;border-color:#f1c7c8!important;}
body.merosi-next-theme :is(.alert-warning,.warning,.warning_inline){background:#fff9ec!important;color:#86652e!important;border-color:#f4e0b7!important;}
body.merosi-next-theme :is(.alert-success,.success,.conf){background:#eef8f1!important;color:#37684d!important;border-color:#c8e5d2!important;}
body.merosi-next-theme :is(.alert-info,.info){background:#eff7ff!important;color:#315e80!important;border-color:#c7dfef!important;}
body.merosi-next-theme :is(.alert p,.error p){margin-bottom:4px}
/* Pills, tabs, badges, progress, stepper, pagination */
body.merosi-next-theme .nav.nav-tabs,body.merosi-next-theme .hitabs.nav-tabs,
body.merosi-next-theme #emhometabs .nav-tabs{display:flex;gap:8px;align-items:center;flex-wrap:wrap;border:0!important;background:transparent!important;padding:6px!important;list-style:none;}
body.merosi-next-theme .nav.nav-tabs > li{float:none!important;margin:0!important;border:0!important;background:transparent!important;}
body.merosi-next-theme .nav.nav-tabs > li > a{display:flex;align-items:center;justify-content:center;gap:7px;
  border:1px solid #d6e6f1!important;border-radius:12px!important;background:#f5f9fd!important;
  color:#536d81!important;font-size:14px!important;font-weight:700!important;line-height:1.6!important;
  text-shadow:none!important;padding:10px 17px!important;margin:0!important;}
body.merosi-next-theme .nav.nav-tabs > li.active > a,
body.merosi-next-theme .nav.nav-tabs > li > a.active,
body.merosi-next-theme .nav.nav-tabs > li > a[aria-selected=true]{background:#315d82!important;color:#fff!important;border-color:#315d82!important;box-shadow:0 5px 13px rgba(49,93,130,.14)!important;}
body.merosi-next-theme .nav.nav-tabs > li.active > a :is(i,span){color:inherit!important;}
body.merosi-next-theme :is(.nav-tabs+.tab-content,.tab-content.tabtheme-0,.tabcright,.tab-content>.tab-pane){border-color:#e5edf5;}
body.merosi-next-theme .tab-content .tab-pane{border-radius:13px;line-height:1.9}
body.merosi-next-theme .mobia{border-radius:12px;background:#f4f9fe;border:1px solid #d9e9f5;margin-bottom:7px;}
body.merosi-next-theme .mobia.open,body.merosi-next-theme .mobia.openmobi{background:#e8f3fc;border-color:#b6d4e9;}
body.merosi-next-theme :is(.badge,.label,.new-box,.sale-box){border-radius:999px!important;font-weight:700;}
body.merosi-next-theme .pagination>li>a,body.merosi-next-theme .pagination>li>span{border-radius:10px!important;min-width:39px;margin-inline:3px;color:var(--mn-primary);border-color:#d5e5f0;background:#fff}
body.merosi-next-theme .pagination>.active>a,body.merosi-next-theme .pagination>.active>span{background:var(--mn-primary)!important;color:#fff!important;border-color:var(--mn-primary)!important}
body.merosi-next-theme :is(.step_current,.step_done,.order_step li){border-radius:10px;}
/* Cards, list views, thumbnails, sections. */
body.merosi-next-theme :is(.panel,.box,.block,.well,.product-container){border-radius:14px;border-color:#e0ebf4;}
body.merosi-next-theme :is(.panel,.well){box-shadow:0 5px 20px rgba(48,87,117,.04);}
body.merosi-next-theme :is(.panel-heading,.block .title_block,.page-heading){background:transparent!important;color:#2d4c65!important;border-color:#e4edf4!important;font-weight:800;}
body.merosi-next-theme ul.product_list > li .product-container{border:1px solid #e2ebf4!important;border-radius:17px!important;box-shadow:var(--mn-shadow)!important;overflow:hidden;background:#fff;}
body.merosi-next-theme ul.product_list > li .product-container:hover{border-color:#bfd7e9!important;transform:translateY(-2px);}
body.merosi-next-theme .product_list .product-name{font-size:14px;font-weight:800;color:#2b4358;}
body.merosi-next-theme .product_list :is(.price,.price.product-price,.content_price){color:var(--mn-price)!important;font-weight:800;}
body.merosi-next-theme :is(.breadcrumb,.breadcrumb a){background:#f6faff;color:#56758e;border-radius:11px;}
body.merosi-next-theme :is(.breadcrumb){border:1px solid #e6eef5!important;margin-block:10px 17px;padding:10px 14px;}
/* Modals, native dialog boxes, dropdowns — keep Bootstrap 3 scripting intact. */
body.merosi-next-theme .modal .modal-content,body.merosi-next-theme .fancybox-skin,
body.merosi-next-theme .mfp-content{border:1px solid #deebf5!important;border-radius:17px!important;box-shadow:0 20px 60px rgba(26,58,87,.2)!important;background:#fff;}
body.merosi-next-theme .modal .modal-header{background:#f5faff;border-radius:17px 17px 0 0;border-color:#e4eef6;padding:16px 20px;}
body.merosi-next-theme .modal .modal-title{font-weight:800;color:var(--mn-ink)}
body.merosi-next-theme .modal .modal-body{padding:20px;line-height:1.85}
body.merosi-next-theme .dropdown-menu:not(.cart_block){border:1px solid #d7e7f2;border-radius:13px;box-shadow:var(--mn-shadow);padding:8px;}
body.merosi-next-theme .dropdown-menu:not(.cart_block)>li>a{border-radius:8px;padding:10px 12px;color:#345874;}
body.merosi-next-theme .dropdown-menu:not(.cart_block)>li>a:hover{background:#eaf4fc;color:#244c69;}
body.merosi-next-theme .tooltip-inner{border-radius:8px;background:#294962;padding:8px 12px;}
/* Product controls: modern UI, no fake custom selects. */
body.merosi-next-theme#product #attributes .attribute_label{margin-bottom:7px;font-weight:750}
body.merosi-next-theme#product #attributes select{border:1px solid #c8ddec!important;border-radius:13px!important;background:#f5faff!important;min-height:49px!important;color:#2a4d6a!important;font-size:15px!important;font-weight:750!important;}
body.merosi-next-theme#product #quantity_wanted{width:68px!important;min-height:46px!important;font-size:18px!important;font-weight:800!important;text-align:center!important;}
body.merosi-next-theme#product #quantity_wanted_p .arooo :is(.button-plus,.button-minus){min-width:30px!important;width:30px!important;height:22px!important;padding:0!important;border:1px solid #cbdeed!important;border-radius:8px!important;background:#f5faff!important;color:#355e7d!important;}
body.merosi-next-theme#product .pb-center-column h1{font-size:clamp(24px,2.4vw,31px)!important;color:#24394c!important;font-weight:800!important;}
body.merosi-next-theme#product #our_price_display{font-size:clamp(20px,2vw,25px)!important;color:var(--mn-price)!important;font-weight:800!important;}
/* Customer account, cart, checkout, addresses, payment blocks. */
body.merosi-next-theme #cart_summary{border:1px solid #dbe8f2;border-radius:15px;overflow:hidden;}
body.merosi-next-theme #cart_summary th{background:#f0f7fc!important;color:#31516d!important;}
body.merosi-next-theme :is(#order-opc .opc-main-block,#order-opc .address,#opc_account,#opc_new_account,#opc_delivery_methods,.delivery_option,#HOOK_PAYMENT .payment_module){border-color:#dce9f3;border-radius:15px;background:#fff;}
body.merosi-next-theme #HOOK_PAYMENT .payment_module:hover,body.merosi-next-theme .delivery_option:hover{border-color:#aaccdf;}
body.merosi-next-theme #cart_voucher input,body.merosi-next-theme #discount_name{min-width:180px;min-height:45px;}
body.merosi-next-theme #HOOK_PAYMENT .payment_module{border:1px solid #dce7f1;margin-block:9px;box-shadow:0 4px 16px rgba(41,82,117,.035);}
body.merosi-next-theme :is(.payment_module a,.payment_module button){border-radius:12px;}
body.merosi-next-theme :is(.delivery_option input:checked+.carrier_title,.delivery_option input:checked~label){color:#315d82;}
body.merosi-next-theme :is(.table,.table-bordered){border-color:#e0ebf4;}
body.merosi-next-theme .table>thead>tr>th{background:#f3f9fe;color:#335774;border-color:#e3edf5;}
body.merosi-next-theme .table>tbody>tr>td{border-color:#ecf2f7;}
/* Site footer, visual refinement. */
body.merosi-next-theme #footer{background:#f7fbff;border-top:1px solid #e2edf6;}
body.merosi-next-theme #footer a{color:#3b6280;}
/* BS5 opt-in components: custom look with genuine BS5 JavaScript. */
body.merosi-next-theme .mn5 .btn{border-radius:12px;padding:10px 16px;font-weight:750;min-height:42px;}
body.merosi-next-theme .mn5 .btn-primary{background:#315d82;border-color:#315d82;color:white;}
body.merosi-next-theme .mn5 .btn-primary:hover{background:#244762;border-color:#244762;}
body.merosi-next-theme .mn5 .btn-outline-primary{color:#315d82;border-color:#bad3e7;}
body.merosi-next-theme .mn5 .btn-outline-primary:hover{background:#eaf4fd;color:#315d82;}
body.merosi-next-theme .mn5 :is(.card,.accordion-item,.alert,.modal-content,.offcanvas,.toast){border-radius:15px;}
body.merosi-next-theme .mn5 .card{border:1px solid #e1ecf5;box-shadow:var(--mn-shadow);}
body.merosi-next-theme .mn5 .accordion-button{font-family:var(--mn-font);color:#325671;background:#f7fbff;font-weight:800;}
body.merosi-next-theme .mn5 .accordion-button:not(.collapsed){color:#274f70;background:#eaf4fc;box-shadow:none;}
body.merosi-next-theme .mn5 .nav-pills .nav-link{border-radius:11px;color:#54748d;font-weight:750;}
body.merosi-next-theme .mn5 .nav-pills .nav-link.active{background:#315d82;color:#fff;}
body.merosi-next-theme .mn5 .progress{height:10px;background:#ecf3f9;}
body.merosi-next-theme .mn5 .progress-bar{background:#547eaa;}
body.merosi-next-theme .mn5 .form-control{background:#f9fcff;border-color:#cbdeed;}
body.merosi-next-theme .mn5 .form-check-input:checked{background-color:#315d82;border-color:#315d82;}
/* Mobile, density and access. */
@media (max-width:767px){
 body.merosi-next-theme :is(.btn,.button,.exclusive){padding:10px 13px;}
 body.merosi-next-theme .nav.nav-tabs{gap:6px;padding:3px!important;overflow-x:auto;flex-wrap:nowrap;scrollbar-width:none;}
 body.merosi-next-theme .nav.nav-tabs>li>a{white-space:nowrap;font-size:13px!important;padding:8px 12px!important;}
 body.merosi-next-theme#product #add_to_cart button{width:100%!important;min-height:50px!important;}
 body.merosi-next-theme :is(.modal-dialog,.mn5 .modal-dialog){margin:12px;}
 body.merosi-next-theme #cart_summary{min-width:690px;}
 body.merosi-next-theme #cart_voucher input,body.merosi-next-theme #discount_name{min-width:0;width:100%;}
}
@media (prefers-reduced-motion:reduce){body.merosi-next-theme :is(.btn,.button,.product-container){transform:none!important;transition:none!important;}}

body.merosi-next-theme .mn-product-accordion{margin:18px 0;max-width:520px;}
body.merosi-next-theme .mn-option-selected{background:#f2f9ff!important;border-color:#b9d5eb!important;}
