.mergan-auth-open{overflow:hidden}.mergan-auth-modal[hidden]{display:none}.mergan-auth-modal{position:fixed;inset:0;z-index:100000;display:grid;place-items:center;padding:16px}.mergan-auth-overlay{position:absolute;inset:0;background:rgba(2,10,20,.64);backdrop-filter:blur(2px)}.mergan-auth-dialog{position:relative;width:min(430px,calc(100vw - 24px));overflow:hidden;border:1px solid var(--border);border-radius:18px;background:var(--card);color:var(--card-foreground);box-shadow:0 26px 70px rgba(4,22,48,.2);animation:mergan-auth-in .18s ease-out}.mergan-auth-close{position:absolute;inset-inline-end:12px;top:12px;z-index:2;display:grid;width:36px;height:36px;place-items:center;border:1px solid var(--border);border-radius:9px;background:var(--card);color:var(--muted-foreground);font:400 25px/1 var(--font-family-app);cursor:pointer}.mergan-auth-close:hover{border-color:#1a8dd4;color:#0e2f69}.mergan-auth-head{display:flex;flex-direction:column;align-items:center;border-bottom:1px solid var(--border);background:color-mix(in srgb,var(--secondary) 35%,transparent);padding:20px 40px 16px;text-align:center}.mergan-auth-head img{width:52px;height:52px;object-fit:contain}.mergan-auth-mark{display:grid;width:44px;height:44px;place-items:center;border-radius:12px;background:#0e2f69;color:#fff;font-size:19px;font-weight:800;box-shadow:0 8px 20px rgba(14,47,105,.18)}.mergan-auth-head h2{margin:10px 0 2px;color:#0e2f69;font-size:16px;font-weight:700}.dark .mergan-auth-head h2{color:#a8ddf4}.mergan-auth-head p{margin:0;color:var(--muted-foreground);font-size:10.5px;line-height:24px}.mergan-auth-body{padding:16px 20px 20px}.mergan-auth-tabs{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;border:1px solid var(--border);border-radius:10px;background:var(--background)}.mergan-auth-tabs button{height:36px;border:0;border-radius:7px;background:transparent;color:var(--muted-foreground);font:600 10.5px/1 inherit;cursor:pointer}.mergan-auth-tabs button[aria-selected=true]{background:#0e2f69;color:#fff;box-shadow:0 3px 10px rgba(14,47,105,.14)}.mergan-auth-form{display:grid;gap:12px;margin-top:16px}.mergan-auth-form[hidden]{display:none}.mergan-auth-form label{display:grid;gap:6px;color:var(--foreground);font-size:10.5px;font-weight:600}.mergan-auth-form input{width:100%;height:44px;padding:0 14px;border:1px solid var(--border);border-radius:9px;outline:0;background:var(--background);color:var(--foreground);font:400 11.5px/1 inherit}.mergan-auth-form input:focus{border-color:rgba(26,141,212,.65);box-shadow:0 0 0 3px rgba(26,141,212,.1)}.mergan-auth-message{min-height:0;color:var(--destructive);font-size:10px;line-height:20px}.mergan-auth-message:not(:empty){padding:8px 12px;border:1px solid color-mix(in srgb,var(--destructive) 20%,transparent);border-radius:8px;background:color-mix(in srgb,var(--destructive) 5%,transparent)}.mergan-auth-message.is-success{border-color:rgba(38,146,126,.25);background:rgba(38,146,126,.08);color:#197563}.mergan-auth-submit{height:44px;border:0;border-radius:9px;background:#0e2f69;color:#fff;font:600 11px/1 inherit;cursor:pointer;transition:background-color .2s,transform .2s}.mergan-auth-submit:hover{background:#123d82}.mergan-auth-submit:active{transform:scale(.99)}.mergan-auth-submit:disabled{cursor:wait;opacity:.65}@keyframes mergan-auth-in{from{opacity:0;transform:translateY(4px) scale(.985)}to{opacity:1;transform:none}}@media(max-width:480px){.mergan-auth-modal{padding:8px}.mergan-auth-body{padding:14px 16px 18px}}

/* 3.4 integration layer: preserves the approved component geometry. */
.mergan-auth-field{display:grid;gap:6px}.mergan-auth-field>label{display:block}.mergan-auth-field>label span{color:#d14a3c}.mergan-field-error{min-height:0;margin:0;color:var(--destructive);font-size:9.5px;font-weight:500;line-height:19px}.mergan-auth-field.has-error .mergan-field-error{min-height:19px}.mergan-auth-field.has-error input{border-color:color-mix(in srgb,var(--destructive) 72%,var(--border));box-shadow:0 0 0 3px color-mix(in srgb,var(--destructive) 10%,transparent)}.mergan-password-field{position:relative}.mergan-password-field input{padding-inline-end:48px}.mergan-password-toggle{position:absolute;inset-inline-end:5px;top:4px;display:grid;width:36px;height:36px;place-items:center;border:0;border-radius:8px;background:transparent;color:#4c6277;cursor:pointer;transition:background-color .18s,color .18s}.mergan-password-toggle:hover,.mergan-password-toggle:focus-visible{background:var(--secondary);color:#0e2f69;outline:0}.dark .mergan-password-toggle{color:#9bb4c9}.dark .mergan-password-toggle:hover,.dark .mergan-password-toggle:focus-visible{background:#1b3853;color:#8bcdeb}

.mergan-rich-content{color:var(--muted-foreground);font-size:12.5px;line-height:2;text-align:start}.mergan-rich-content>*:first-child{margin-top:0}.mergan-rich-content>*:last-child{margin-bottom:0}.mergan-rich-content h1,.mergan-rich-content h2,.mergan-rich-content h3,.mergan-rich-content h4{margin:1.5em 0 .55em;color:var(--foreground);font-weight:700;line-height:1.65}.mergan-rich-content h2{font-size:19px}.mergan-rich-content h3{font-size:16px}.mergan-rich-content h4{font-size:14px}.mergan-rich-content p,.mergan-rich-content ul,.mergan-rich-content ol,.mergan-rich-content figure,.mergan-rich-content table,.mergan-rich-content blockquote{margin:0 0 1.15em}.mergan-rich-content ul,.mergan-rich-content ol{padding-inline-start:1.35rem}.mergan-rich-content ul{list-style:disc}.mergan-rich-content ol{list-style:decimal}.mergan-rich-content li+li{margin-top:.35em}.mergan-rich-content img{display:block;max-width:100%;height:auto;margin:1.3rem auto;border-radius:12px}.mergan-rich-content figure{max-width:100%}.mergan-rich-content figcaption{margin-top:.5rem;color:var(--muted-foreground);font-size:10px;text-align:center}.mergan-rich-content a{color:#147dbd;text-decoration:underline;text-underline-offset:3px}.mergan-rich-content table{display:block;max-width:100%;overflow-x:auto;border-collapse:collapse}.mergan-rich-content th,.mergan-rich-content td{padding:10px 12px;border:1px solid var(--border)}.mergan-rich-content blockquote{border-inline-start:3px solid #26927e;border-radius:8px;background:var(--secondary);padding:12px 16px}.mergan-archive-description{margin-top:28px;overflow:hidden;border:1px solid var(--border);border-radius:16px;background:var(--card);box-shadow:0 8px 28px rgba(4,22,48,.04)}.mergan-archive-description>header{border-bottom:1px solid var(--border);background:color-mix(in srgb,var(--secondary) 36%,transparent);padding:16px 20px}.mergan-archive-description>header span{color:#1a8dd4;font-size:9.5px;font-weight:700}.mergan-archive-description>header h2{margin:4px 0 0;color:#0e2f69;font-size:18px;font-weight:700}.dark .mergan-archive-description>header h2{color:#a8ddf4}.mergan-archive-description>.mergan-rich-content{padding:20px}

/* Product long-description readability: visual-only, semantic headings remain untouched for SEO. */
.mergan-product-rich-description .mergan-rich-content{padding:0 22px 32px}.mergan-product-rich-description .mergan-rich-content h2,.mergan-product-rich-description .mergan-rich-content h3,.mergan-product-rich-description .mergan-rich-content h4{position:relative;padding-inline-start:13px}.mergan-product-rich-description .mergan-rich-content h2::before,.mergan-product-rich-description .mergan-rich-content h3::before,.mergan-product-rich-description .mergan-rich-content h4::before{content:"";position:absolute;inset-inline-start:0;top:.28em;bottom:.28em;width:3px;border-radius:999px;background:#1a8dd4}.mergan-product-rich-description .mergan-rich-content h2{margin-top:1.7em;font-size:18px}.mergan-product-rich-description .mergan-rich-content h3{margin-top:1.5em;font-size:15.5px}.mergan-product-rich-description .mergan-rich-content h4{margin-top:1.35em;font-size:13.5px}.mergan-product-rich-description .mergan-rich-content p{line-height:2.15}.mergan-product-rich-description .mergan-rich-content li{line-height:2}.mergan-product-rich-description .mergan-rich-content h2+ p,.mergan-product-rich-description .mergan-rich-content h3+ p,.mergan-product-rich-description .mergan-rich-content h4+ p{margin-top:.15em}

.mergan-enhanced-gallery button[aria-label^="تصویر اصلی محصول"]{cursor:zoom-in}.mergan-pointer-zoom-image{will-change:transform;transition:opacity .24s ease,transform .32s cubic-bezier(.22,1,.36,1)!important}.mergan-enhanced-gallery button[aria-label^="تصویر اصلی محصول"]:hover .mergan-pointer-zoom-image{transform:scale(1.35)}.mergan-pointer-zoom-image.is-switching{opacity:.28;transform:scale(1.015)!important}.mergan-gallery-rail{scroll-behavior:smooth;scroll-snap-type:x proximity;scrollbar-width:thin;overscroll-behavior-inline:contain}.mergan-gallery-rail>button{scroll-snap-align:start}.mergan-gallery-controls{display:flex;justify-content:flex-end;gap:7px;margin-top:8px}.mergan-gallery-controls button{display:grid;width:36px;height:36px;place-items:center;border:1px solid var(--border);border-radius:9px;background:var(--card);color:#0e2f69;cursor:pointer;transition:transform .18s,border-color .18s,background-color .18s}.mergan-gallery-controls button:hover{transform:translateY(-1px);border-color:#1a8dd4;background:var(--secondary)}.dark .mergan-gallery-controls button{color:#a8ddf4}

.mergan-account-menu{position:relative;display:flex}.mergan-account-panel{position:absolute;top:calc(100% + 8px);inset-inline-end:0;z-index:190;width:236px;padding:9px;border:1px solid var(--border);border-radius:13px;background:var(--popover);color:var(--popover-foreground);box-shadow:0 18px 48px rgba(4,22,48,.16);opacity:0;visibility:hidden;transform:translateY(4px);transition:opacity .16s,visibility .16s,transform .16s}.mergan-account-panel::before{content:"";position:absolute;inset-inline:0;bottom:100%;height:10px}.mergan-account-menu:hover .mergan-account-panel,.mergan-account-menu:focus-within .mergan-account-panel{opacity:1;visibility:visible;transform:none}.mergan-account-panel>div{display:flex;gap:10px;align-items:center;padding:8px 8px 11px;border-bottom:1px solid var(--border)}.mergan-account-panel>div>span{display:grid;width:35px;height:35px;place-items:center;border-radius:9px;background:var(--secondary);color:#0e2f69}.dark .mergan-account-panel>div>span{color:#a8ddf4}.mergan-account-panel p{margin:0}.mergan-account-panel strong,.mergan-account-panel small{display:block}.mergan-account-panel strong{max-width:145px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}.mergan-account-panel small{margin-top:2px;color:var(--muted-foreground);font-size:9px}.mergan-account-panel>a,.mergan-account-panel>button{display:flex;width:100%;height:40px;align-items:center;gap:9px;margin-top:5px;padding:0 11px;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--foreground);font-family:inherit;font-size:10.5px;font-weight:600;line-height:1.4;text-align:start;text-decoration:none;cursor:pointer;transition:transform .18s,border-color .18s,background-color .18s,color .18s}.mergan-account-panel>a svg,.mergan-account-panel>button svg{width:17px;height:17px;flex:0 0 auto}.mergan-account-panel>a:hover,.mergan-account-panel>a:focus-visible{transform:translateY(-1px);border-color:color-mix(in srgb,#1a8dd4 26%,var(--border));background:var(--secondary);color:#0e2f69;outline:none}.dark .mergan-account-panel>a:hover,.dark .mergan-account-panel>a:focus-visible{color:#a8ddf4}.mergan-account-panel>button:hover,.mergan-account-panel>button:focus-visible{transform:translateY(-1px);border-color:color-mix(in srgb,var(--destructive) 28%,var(--border));background:color-mix(in srgb,var(--destructive) 9%,transparent);color:var(--destructive);outline:none}

/* 3.7.30 — product purchase box only; no card, quick-view or dashboard impact. */
#product-primary-purchase>div:first-child>div:first-child{display:grid;min-width:0;flex:1;grid-template-columns:auto minmax(0,1fr);align-items:baseline;gap:10px;direction:rtl}
#product-primary-purchase>div:first-child>div:first-child>div:first-child{grid-column:1;white-space:nowrap;text-align:right;font-size:12.5px!important;font-weight:700!important}
#product-primary-purchase>div:first-child>div:first-child>div:nth-child(2){grid-column:2;min-width:0;justify-self:end;direction:rtl;text-align:left}
#product-primary-purchase [data-commerce-action="add-to-cart"]{border-color:#1a8dd4!important;background:#1a8dd4!important;color:#fff!important}
#product-primary-purchase [data-commerce-action="add-to-cart"]:hover:not(:disabled),#product-primary-purchase [data-commerce-action="add-to-cart"]:focus-visible:not(:disabled){border-color:#147fbe!important;background:#147fbe!important}
@media(max-width:419px){#product-primary-purchase>div:first-child{gap:9px}#product-primary-purchase>div:first-child>div:first-child{gap:7px}#product-primary-purchase>div:first-child>div:first-child>div:nth-child(2){flex-wrap:nowrap}#product-primary-purchase>div:first-child>div:first-child strong{font-size:20px}}

.mergan-logout-confirm[hidden]{display:none}.mergan-logout-confirm{position:fixed;inset:0;z-index:100010;display:grid;place-items:center;padding:16px}.mergan-logout-confirm>section{position:relative;width:min(420px,calc(100vw - 24px));overflow:hidden;border:1px solid var(--border);border-radius:16px;background:var(--card);color:var(--card-foreground);box-shadow:0 26px 70px rgba(4,22,48,.22)}.mergan-logout-confirm header{display:flex;gap:12px;padding:20px}.mergan-logout-confirm header>span{display:grid;width:40px;height:40px;flex:0 0 auto;place-items:center;border-radius:10px;background:color-mix(in srgb,var(--destructive) 9%,transparent);color:var(--destructive)}.mergan-logout-confirm h2{margin:0;color:var(--foreground);font-size:15px}.mergan-logout-confirm p{margin:6px 0 0;color:var(--muted-foreground);font-size:10.5px;line-height:22px}.mergan-logout-confirm footer{display:flex;flex-direction:row-reverse;gap:8px;border-top:1px solid var(--border);background:color-mix(in srgb,var(--secondary) 25%,transparent);padding:13px 20px}.mergan-logout-confirm footer button{height:40px;padding:0 16px;border:1px solid var(--border);border-radius:8px;background:var(--card);color:var(--foreground);font:600 10.5px/1 inherit;cursor:pointer}.mergan-logout-confirm footer [data-confirm]{border-color:var(--destructive);background:var(--destructive);color:var(--destructive-foreground)}.mergan-logout-confirm [data-error]:empty{display:none}.mergan-logout-confirm [data-error]{padding:0 20px 14px;color:var(--destructive)}

.mergan-sheet-open{overflow:hidden}.mergan-404-sheet[hidden]{display:none}.mergan-404-sheet{position:fixed;inset:0;z-index:100005}.mergan-404-sheet__overlay{position:absolute;inset:0;width:100%;height:100%;border:0;background:rgba(2,10,20,.58);opacity:0;transition:opacity .18s}.mergan-404-sheet>section{position:absolute;inset-inline:0;bottom:0;max-height:min(78dvh,620px);overflow:auto;border:1px solid var(--border);border-radius:18px 18px 0 0;background:var(--card);color:var(--card-foreground);box-shadow:0 -20px 60px rgba(4,22,48,.2);transform:translateY(100%);transition:transform .22s cubic-bezier(.22,1,.36,1)}.mergan-404-sheet.is-open .mergan-404-sheet__overlay{opacity:1}.mergan-404-sheet.is-open>section{transform:none}.mergan-404-sheet header{display:flex;height:58px;align-items:center;justify-content:space-between;border-bottom:1px solid var(--border);padding:0 18px}.mergan-404-sheet h2{margin:0;color:#0e2f69;font-size:15px}.dark .mergan-404-sheet h2{color:#a8ddf4}.mergan-404-sheet header button{display:grid;width:38px;height:38px;place-items:center;border:1px solid var(--border);border-radius:9px;background:var(--card);color:var(--muted-foreground)}.mergan-404-sheet [data-body]{padding:18px}.mergan-404-sheet form label{display:block;margin-bottom:8px;font-size:10.5px;font-weight:600}.mergan-404-sheet form>div{display:flex;gap:8px}.mergan-404-sheet input{min-width:0;flex:1;height:46px;padding:0 13px;border:1px solid var(--border);border-radius:9px;background:var(--background);color:var(--foreground);outline:0}.mergan-404-sheet form button,.mergan-sheet-checkout{display:inline-flex;height:46px;align-items:center;justify-content:center;gap:7px;padding:0 17px;border:0;border-radius:9px;background:#0e2f69;color:#fff;font:600 10.5px/1 inherit;text-decoration:none}.mergan-sheet-loading,.mergan-sheet-empty{display:flex;min-height:180px;flex-direction:column;align-items:center;justify-content:center;gap:12px;color:var(--muted-foreground);font-size:10.5px}.mergan-sheet-loading span{width:26px;height:26px;border:2px solid var(--border);border-top-color:#1a8dd4;border-radius:50%;animation:mergan-spin .7s linear infinite}.mergan-sheet-empty svg{width:34px;height:34px;color:#1a8dd4}.mergan-sheet-empty a{display:inline-flex;height:40px;align-items:center;padding:0 14px;border-radius:8px;background:#0e2f69;color:#fff;text-decoration:none}.mergan-sheet-cart-items{display:grid;gap:9px;max-height:380px;overflow:auto;margin:0 0 14px;padding:0;list-style:none}.mergan-sheet-cart-items li{display:grid;grid-template-columns:58px 1fr;gap:10px;align-items:center;padding:9px;border:1px solid var(--border);border-radius:10px}.mergan-sheet-cart-items img{width:58px;height:58px;border-radius:8px;object-fit:cover}.mergan-sheet-cart-items a{display:block;color:var(--foreground);font-size:11px;font-weight:600;text-decoration:none}.mergan-sheet-cart-items span{display:block;margin-top:5px;color:var(--muted-foreground);font-size:9.5px}.mergan-sheet-checkout{width:100%}

/* Give all possible price lengths a stable buffer from compact actions. */
@media(min-width:1280px){.mergan-archive-card-enter article>div:last-child>div:last-child{gap:12px}.mergan-archive-card-enter article>div:last-child>div:last-child>div:first-child{padding-inline-end:4px}}
.dark button[aria-label^="نمایش سریع"]:hover,.dark button[aria-label^="نمایش سریع"]:focus-visible{border-color:#8bcdeb!important;background:#8bcdeb!important;color:#07182c!important}
main#content>section:first-child a[href="#"]{display:none!important}

@keyframes mergan-spin{to{transform:rotate(360deg)}}
.mergan-buy-guide-header{padding-inline-end:4.25rem!important}.mergan-wishlist-button[aria-busy="true"]{cursor:wait!important;transform:none!important}.mergan-wishlist-spinner{color:#1a8dd4;animation:mergan-spin .68s linear infinite;filter:drop-shadow(0 0 5px rgba(26,141,212,.18))}.dark .mergan-wishlist-spinner{color:#8bcdeb;filter:drop-shadow(0 0 6px rgba(139,205,235,.2))}@media(max-width:600px){.mergan-rich-content{font-size:12px}.mergan-product-rich-description .mergan-rich-content{padding:0 16px 24px}.mergan-rich-content h2{font-size:17px}.mergan-archive-description>header,.mergan-archive-description>.mergan-rich-content{padding:16px}.mergan-404-sheet form>div{display:grid}.mergan-404-sheet form button{width:100%}}
@media(hover:none),(pointer:coarse){.mergan-enhanced-gallery button[aria-label^="تصویر اصلی محصول"]{cursor:default}.mergan-enhanced-gallery button[aria-label^="تصویر اصلی محصول"]:hover .mergan-pointer-zoom-image{transform:none}}
@media(prefers-reduced-motion:reduce){.mergan-pointer-zoom-image,.mergan-gallery-controls button,.mergan-404-sheet__overlay,.mergan-404-sheet>section,.mergan-account-panel{transition:none!important}.mergan-sheet-loading span{animation-duration:1.2s}}

/* 3.4.5 — scoped footer/header and product-card refinements. */
footer img[src*="mergan-chemi-footer-logo"]{filter:grayscale(1) brightness(0) invert(1);opacity:1}
.mergan-header-brand-logo{width:128px;max-width:34vw;max-height:46px;object-position:center}
.mergan-enamad-wrap{position:relative;display:flex;align-items:center;justify-content:center;border-top:1px solid rgba(255,255,255,.07);padding:12px 16px 14px}
.mergan-enamad-link{display:grid;width:92px;height:92px;place-items:center;overflow:hidden;border:1px solid rgba(255,255,255,.14);border-radius:12px;background:#fff;box-shadow:0 7px 22px rgba(2,10,20,.16);transition:transform .18s cubic-bezier(.22,1,.36,1),box-shadow .18s,border-color .18s}
.mergan-enamad-link:hover,.mergan-enamad-link:focus-visible{transform:translateY(-1px);border-color:rgba(111,200,182,.62);box-shadow:0 9px 26px rgba(2,10,20,.2);outline:none}
.mergan-enamad-image{display:block;width:78px;max-width:100%;height:78px;object-fit:contain}
.mergan-product-card-image{object-fit:contain!important;object-position:center!important;transform:none!important}
.mergan-product-card-image:is(img){display:block!important;width:100%!important;height:100%!important}
.mergan-product-card-media-frame{height:auto!important;aspect-ratio:1/1!important;width:100%!important}
.mergan-product-card-title{display:-webkit-box;width:100%;height:2.4rem;min-height:2.4rem;max-height:2.4rem;overflow:hidden;white-space:normal!important;overflow-wrap:normal!important;word-break:normal!important;text-overflow:ellipsis;letter-spacing:-.012em;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.mergan-product-card-title>a{display:block}
.commerce-icon-button--compact{width:36px!important;height:36px!important;flex-basis:36px!important}
.commerce-icon-button--compact svg{width:15px!important;height:15px!important}
.commerce-icon-button--compact[aria-label^="نمایش سریع"] svg{width:18px!important;height:18px!important}
@media(hover:hover) and (pointer:fine){.mergan-card-surface:hover .mergan-product-card-image{transform:none!important}}
@media(max-width:389px){.mergan-header-brand-logo{width:108px;max-width:34vw}}
@media(min-width:768px){.mergan-header-brand-logo{width:160px;max-width:20vw}}
@media(max-width:479px){.mergan-enamad-wrap{padding-block:10px 12px}.mergan-enamad-link{width:86px;height:86px}.mergan-enamad-image{width:72px;height:72px}}
@media(prefers-reduced-motion:reduce){.mergan-enamad-link{transition:none!important}}

/* 3.6.6 — complete home carousel slides and unified card geometry. */
.mergan-home-enhanced .mergan-card-rail>div>[data-slot="carousel-item"]{flex-basis:100%!important}
@media(min-width:640px){.mergan-home-enhanced .mergan-card-rail>div>[data-slot="carousel-item"]{flex-basis:50%!important}}
@media(min-width:768px){.mergan-home-enhanced .mergan-card-rail>div>[data-slot="carousel-item"]{flex-basis:33.333333%!important}}
@media(min-width:1024px){.mergan-home-enhanced .mergan-card-rail>div>[data-slot="carousel-item"]{flex-basis:25%!important}}
@media(min-width:1280px){.mergan-home-enhanced .mergan-card-rail>div>[data-slot="carousel-item"]{flex-basis:20%!important}}

/* Category rail used an extra end-padding and final-slide margin after its
   complete-card basis was calculated, exposing a sliver of the next card. */
html.mergan-home-enhanced [data-slot="carousel"][aria-label="دسته‌بندی محصولات"] [data-slot="carousel-content"]>div{padding-inline-end:0!important}
html.mergan-home-enhanced [data-slot="carousel"][aria-label="دسته‌بندی محصولات"] [data-slot="carousel-item"]:last-child{margin-inline-end:0!important}

.mergan-article-card-title{display:-webkit-box!important;height:3rem!important;min-height:3rem!important;max-height:3rem!important;margin-bottom:.75rem!important;overflow:hidden!important;white-space:normal!important;text-overflow:ellipsis!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;line-clamp:2!important}
.mergan-article-card-title>a{display:block!important;overflow:visible!important;white-space:normal!important;text-overflow:clip!important}

/* 3.6.7 — compact, responsive footer contact/trust row. */
.mergan-footer-mobile-enamad{justify-content:flex-start!important;padding:12px 0 0!important;border-top:0!important}
.mergan-footer-mobile-enamad .mergan-enamad-link{width:82px;height:82px}
.mergan-footer-mobile-enamad .mergan-enamad-image{width:68px;height:68px}
@media(min-width:640px){
  .mergan-footer-main-grid{grid-template-columns:minmax(0,1fr) minmax(150px,.55fr)!important}
  .mergan-footer-contact-column{min-width:0}
  .mergan-footer-desktop-enamad{justify-content:flex-start!important;padding:16px 0 0!important;border-top:0!important}
}
@media(min-width:1024px){
  .mergan-footer-main-grid{grid-template-columns:minmax(0,1.45fr) minmax(150px,.7fr) minmax(310px,1.15fr)!important}
  .mergan-footer-contact-column{display:grid;grid-template-columns:minmax(0,1fr) auto;align-content:start;column-gap:18px}
  .mergan-footer-contact-column>:first-child{grid-column:1/-1}
  .mergan-footer-contact-column>address{grid-column:1}
  .mergan-footer-desktop-enamad{grid-column:2;align-self:start;padding:0!important}
}

/* 3.7.6 — every content carousel uses one title-row control language. */
[data-mergan-carousel-native-control]{display:none!important}
[data-slot="carousel"]:not([aria-label="اسلایدر اصلی مرگان شیمی"]):not([data-mergan-carousel-keep-native]) [data-slot="carousel-previous"],
[data-slot="carousel"]:not([aria-label="اسلایدر اصلی مرگان شیمی"]):not([data-mergan-carousel-keep-native]) [data-slot="carousel-next"]{display:none!important}
.mergan-carousel-heading{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:end!important;gap:14px 20px!important}
.mergan-carousel-heading__tools{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:8px!important}
.mergan-carousel-title-controls{display:flex!important;flex-direction:row!important;direction:ltr!important;align-items:center!important;gap:4px!important;unicode-bidi:isolate}
.mergan-carousel-title-button{display:flex;width:44px;height:44px;flex:0 0 44px;align-items:center;justify-content:center;padding:0;border:1px solid var(--border);border-radius:9px;background:var(--card);color:#0e2f69;box-shadow:none;cursor:pointer;transition:background-color .2s,color .2s,border-color .2s,transform .2s,opacity .2s}
.mergan-carousel-title-button--left{order:1!important}.mergan-carousel-title-button--right{order:2!important}
.mergan-carousel-title-button svg{display:block;width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.mergan-carousel-title-button:hover:not(:disabled){border-color:#0e2f69;background:#0e2f69;color:#fff}
.mergan-carousel-title-button:active:not(:disabled){transform:scale(.97)}
.mergan-carousel-title-button:focus-visible{outline:0;border-color:#1a8dd4;box-shadow:0 0 0 3px color-mix(in srgb,#1a8dd4 18%,transparent)}
.mergan-carousel-title-button:disabled{cursor:default;opacity:.45}
.dark .mergan-carousel-title-button{background:var(--card);color:#a8ddf4}

/* Category cards use real WooCommerce imagery instead of decorative icons. */
.mergan-category-image-frame{display:block;width:100%;height:auto;aspect-ratio:16/9;overflow:hidden;border:1px solid var(--border);border-radius:10px;background:var(--muted)}
.mergan-category-image{display:block;width:100%;height:100%;object-fit:contain;object-position:center;transition:opacity .2s ease}
@media(hover:hover) and (pointer:fine){.mergan-category-image-card:hover .mergan-category-image{opacity:.96}}

/* Only the requested home/single-post article rails are transparent shells. */
.mergan-article-section-shell{border-color:transparent!important;background:transparent!important;box-shadow:none!important;padding-inline:0!important}
.mergan-article-carousel article>div:last-child>div:first-child{display:none!important}
.mergan-article-carousel [data-slot="carousel-item"]{flex-basis:100%!important}
.mergan-article-carousel article{background:var(--card)!important}
@media(min-width:640px){.mergan-article-carousel [data-slot="carousel-item"]{flex-basis:50%!important}}
@media(min-width:1024px){.mergan-article-carousel [data-slot="carousel-item"]{flex-basis:25%!important}}
@media(max-width:639px){.mergan-carousel-heading{position:relative!important;display:block!important;min-height:58px!important;padding-inline-end:104px!important}.mergan-carousel-heading__tools{position:absolute!important;inset-inline-end:0!important;top:50%!important;transform:translateY(-50%)!important}.mergan-carousel-heading__tools>a{display:none!important}.mergan-carousel-title-button{width:44px;height:44px;flex-basis:44px}}
@media(max-width:639px){
  .mergan-product-category-heading{position:relative!important;display:block!important;padding-inline-end:0!important}
  .mergan-product-category-heading>div:first-child{padding-inline-end:104px!important}
  .mergan-product-category-heading__tools{position:absolute!important;inset-inline-end:0!important;bottom:0!important;display:flex!important;align-items:center!important;gap:4px!important}
}

/* The mobile header search uses the same premium motion language as sheets. */
@media(max-width:767px){
  #mobile-product-search,#mobile-product-search-trigger{will-change:opacity,transform;transition-duration:280ms!important;transition-timing-function:cubic-bezier(.16,1,.3,1)!important}
  #mobile-product-search[aria-hidden="true"]{transform:translate3d(8px,0,0) scale(.985)!important}
  #mobile-product-search[aria-hidden="false"]{transform:translate3d(0,0,0) scale(1)!important}
}
@media(prefers-reduced-motion:reduce){.mergan-carousel-title-button,.mergan-category-image{transition:none!important}}

/* 3.7.7 — article cards always occupy the full row as four equal desktop columns.
   Mobile/tablet remain intentionally responsive: 1 -> 2 -> 4. */
.mergan-article-grid{grid-template-columns:minmax(0,1fr)!important}
@media(min-width:540px){.mergan-article-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(min-width:1024px){
  .mergan-article-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
  .mergan-article-carousel [data-slot="carousel-item"]{flex-basis:25%!important;max-width:25%!important}
  html.mergan-home-enhanced .mergan-article-carousel .mergan-card-rail>div>[data-slot="carousel-item"]{flex-basis:25%!important;max-width:25%!important}
}


/* 3.7.9 — stable 12-item live catalog pagination and three-column archive grid. */
.mergan-product-archive-grid{display:grid;grid-template-columns:minmax(0,1fr);align-items:stretch}
.mergan-product-archive-grid>.mergan-archive-card-enter{min-width:0;height:100%}
@media(min-width:480px){.mergan-product-archive-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(min-width:768px){.mergan-product-archive-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* 3.7.12 — product-category description typography only. Content/HTML is preserved. */
.mergan-archive-description .mergan-rich-content--archive{font-size:13px;line-height:2.15;overflow-wrap:anywhere;word-break:normal}
.mergan-archive-description .mergan-rich-content--archive h1,
.mergan-archive-description .mergan-rich-content--archive h2,
.mergan-archive-description .mergan-rich-content--archive h3,
.mergan-archive-description .mergan-rich-content--archive h4,
.mergan-archive-description .mergan-rich-content--archive h5,
.mergan-archive-description .mergan-rich-content--archive h6,
.mergan-archive-description .mergan-rich-content--archive .mergan-rich-detected-heading{position:relative;padding-inline-start:14px;color:var(--foreground);font-weight:700;letter-spacing:-.01em}
.mergan-archive-description .mergan-rich-content--archive h1::before,
.mergan-archive-description .mergan-rich-content--archive h2::before,
.mergan-archive-description .mergan-rich-content--archive h3::before,
.mergan-archive-description .mergan-rich-content--archive h4::before,
.mergan-archive-description .mergan-rich-content--archive h5::before,
.mergan-archive-description .mergan-rich-content--archive h6::before,
.mergan-archive-description .mergan-rich-content--archive .mergan-rich-detected-heading::before{content:"";position:absolute;inset-inline-start:0;top:.3em;bottom:.3em;width:3px;border-radius:999px;background:#1a8dd4}
.mergan-archive-description .mergan-rich-content--archive h1{margin:1.7em 0 .65em;font-size:22px;line-height:1.65}
.mergan-archive-description .mergan-rich-content--archive h2{margin:1.65em 0 .6em;font-size:19px;line-height:1.7}
.mergan-archive-description .mergan-rich-content--archive h3{margin:1.55em 0 .55em;font-size:16.5px;line-height:1.75}
.mergan-archive-description .mergan-rich-content--archive h4{margin:1.45em 0 .5em;font-size:14.5px;line-height:1.8}
.mergan-archive-description .mergan-rich-content--archive h5{margin:1.35em 0 .45em;font-size:13.5px;line-height:1.85}
.mergan-archive-description .mergan-rich-content--archive h6{margin:1.3em 0 .45em;font-size:12.75px;line-height:1.9}
.mergan-archive-description .mergan-rich-content--archive .mergan-rich-detected-heading{margin:1.45em 0 .55em;font-size:15px;line-height:1.8}
.mergan-archive-description .mergan-rich-content--archive .mergan-rich-detected-heading strong,
.mergan-archive-description .mergan-rich-content--archive .mergan-rich-detected-heading b{color:inherit;font-weight:inherit}
.mergan-archive-description .mergan-rich-content--archive p{margin-bottom:1.05em;line-height:2.15}
.mergan-archive-description .mergan-rich-content--archive p+ul,
.mergan-archive-description .mergan-rich-content--archive p+ol{margin-top:-.35em}
.mergan-archive-description .mergan-rich-content--archive ul,
.mergan-archive-description .mergan-rich-content--archive ol{margin-bottom:1.25em;padding-inline-start:1.5rem}
.mergan-archive-description .mergan-rich-content--archive li{padding-inline-start:.15rem;line-height:2.05}
.mergan-archive-description .mergan-rich-content--archive li::marker{color:#26927e;font-weight:700}
.mergan-archive-description .mergan-rich-content--archive strong,
.mergan-archive-description .mergan-rich-content--archive b{color:color-mix(in srgb,var(--foreground) 92%,transparent);font-weight:700}
.mergan-archive-description .mergan-rich-content--archive em,
.mergan-archive-description .mergan-rich-content--archive i{color:color-mix(in srgb,var(--foreground) 82%,var(--muted-foreground))}
.mergan-archive-description .mergan-rich-content--archive hr{height:1px;margin:1.7rem 0;border:0;background:var(--border)}
.mergan-archive-description .mergan-rich-content--archive .mergan-rich-table{width:100%;margin:1.35rem 0;border-spacing:0;background:var(--background)}
.mergan-archive-description .mergan-rich-content--archive .mergan-rich-table th{background:color-mix(in srgb,var(--secondary) 60%,transparent);color:var(--foreground);font-weight:700}
.mergan-archive-description .mergan-rich-content--archive .mergan-rich-table td,
.mergan-archive-description .mergan-rich-content--archive .mergan-rich-table th{vertical-align:top;line-height:1.9;text-align:start}
.mergan-archive-description .mergan-rich-content--archive .mergan-rich-pre{max-width:100%;overflow:auto;padding:14px 16px;border:1px solid var(--border);border-radius:10px;background:var(--secondary);color:var(--foreground);font-size:12px;line-height:1.85;direction:ltr;text-align:left;white-space:pre}
.mergan-archive-description .mergan-rich-content--archive code{padding:.12em .35em;border-radius:5px;background:var(--secondary);color:var(--foreground);font-size:.92em}
.mergan-archive-description .mergan-rich-content--archive pre code{padding:0;background:transparent}
.mergan-archive-description .mergan-rich-content--archive iframe,
.mergan-archive-description .mergan-rich-content--archive video,
.mergan-archive-description .mergan-rich-content--archive audio,
.mergan-archive-description .mergan-rich-content--archive embed,
.mergan-archive-description .mergan-rich-content--archive object{max-width:100%}
.mergan-archive-description .mergan-rich-content--archive details{margin:1rem 0;padding:12px 14px;border:1px solid var(--border);border-radius:10px;background:var(--background)}
.mergan-archive-description .mergan-rich-content--archive summary{color:var(--foreground);font-weight:700;cursor:pointer}
.mergan-archive-description .mergan-rich-content--archive :target{scroll-margin-top:100px}
@media(max-width:600px){
  .mergan-archive-description .mergan-rich-content--archive{font-size:12.5px;line-height:2.1}
  .mergan-archive-description .mergan-rich-content--archive h1{font-size:19px}
  .mergan-archive-description .mergan-rich-content--archive h2{font-size:17px}
  .mergan-archive-description .mergan-rich-content--archive h3{font-size:15px}
  .mergan-archive-description .mergan-rich-content--archive .mergan-rich-detected-heading{font-size:14px}
}

/* 3.7.13 — archive H1 hierarchy only. */
#root #archive-results-heading{font-size:21px!important;line-height:1.65!important}
@media(min-width:640px){#root #archive-results-heading{font-size:23px!important}}


/* 3.7.15 — product-page related carousel: only complete cards at every breakpoint. */
[data-slot="carousel"][aria-label="محصولات مرتبط"] [data-slot="carousel-item"]{flex-basis:100%!important;max-width:100%!important}
@media(min-width:640px){[data-slot="carousel"][aria-label="محصولات مرتبط"] [data-slot="carousel-item"]{flex-basis:50%!important;max-width:50%!important}}
@media(min-width:768px){[data-slot="carousel"][aria-label="محصولات مرتبط"] [data-slot="carousel-item"]{flex-basis:33.333333%!important;max-width:33.333333%!important}}
@media(min-width:1024px){[data-slot="carousel"][aria-label="محصولات مرتبط"] [data-slot="carousel-item"]{flex-basis:25%!important;max-width:25%!important}}


/* 3.7.19 — quick-view gallery parity with the product page, without image cropping. */
.mergan-quickview-dialog{max-width:720px!important;scrollbar-gutter:stable}
.mergan-quickview-gallery{padding:12px;border-bottom:1px solid var(--border);background:color-mix(in srgb,var(--muted) 45%,transparent)}
.mergan-quickview-main{position:relative;display:flex;height:clamp(220px,38dvh,350px);min-height:0;align-items:center;justify-content:center;overflow:hidden;border:1px solid var(--border);border-radius:12px;background:var(--background)}
.mergan-quickview-main-image{display:block;width:100%;height:100%;object-fit:contain;object-position:center;user-select:none;-webkit-user-drag:none}
.mergan-quickview-category{position:absolute;inset-inline-start:12px;bottom:12px;display:inline-flex;max-width:calc(100% - 24px);overflow:hidden;align-items:center;padding:6px 10px;border:1px solid rgba(255,255,255,.3);border-radius:7px;background:rgba(8,27,54,.82);color:#fff;font-size:10px;font-weight:600;line-height:1.4;text-overflow:ellipsis;white-space:nowrap;box-shadow:0 4px 14px rgba(4,22,48,.16);backdrop-filter:blur(5px)}
.mergan-quickview-thumbs{display:flex;gap:8px;margin-top:9px;padding:1px 1px 3px;overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:thin;scrollbar-color:var(--border) transparent}
.mergan-quickview-thumbs::-webkit-scrollbar{height:5px}
.mergan-quickview-thumbs::-webkit-scrollbar-thumb{border-radius:999px;background:var(--border)}
.mergan-quickview-thumb{display:grid;width:62px;height:62px;flex:0 0 62px;place-items:center;overflow:hidden;padding:3px;border:1px solid var(--border);border-radius:9px;background:var(--card);cursor:pointer;transition:border-color .18s,box-shadow .18s,transform .18s}
.mergan-quickview-thumb:hover{border-color:color-mix(in srgb,var(--brand-secondary) 55%,var(--border));transform:translateY(-1px)}
.mergan-quickview-thumb:focus-visible{outline:0;border-color:var(--brand-secondary);box-shadow:0 0 0 3px color-mix(in srgb,var(--brand-secondary) 18%,transparent)}
.mergan-quickview-thumb.is-active{border-color:#0e2f69;box-shadow:0 0 0 2px rgba(14,47,105,.1)}
.dark .mergan-quickview-thumb.is-active{border-color:#8bcdeb;box-shadow:0 0 0 2px rgba(139,205,235,.12)}
.mergan-quickview-thumb img{display:block;width:100%;height:100%;border-radius:6px;object-fit:contain;object-position:center;background:var(--background)}
@media(max-height:700px){.mergan-quickview-main{height:clamp(190px,32dvh,260px)}.mergan-quickview-thumb{width:54px;height:54px;flex-basis:54px}}
@media(max-width:480px){.mergan-quickview-dialog{max-width:calc(100% - 12px)!important}.mergan-quickview-gallery{padding:10px}.mergan-quickview-main{height:clamp(210px,36dvh,300px)}.mergan-quickview-thumb{width:56px;height:56px;flex-basis:56px}}

/* 3.7.20 — compact square quick-view gallery, equal content columns and product-gallery motion. */
.mergan-quickview-dialog{
  width:min(780px,calc(100vw - 20px))!important;
  max-width:780px!important;
  overflow-x:hidden!important;
  scrollbar-gutter:stable;
}
.mergan-quickview-shell{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  width:100%;
  min-width:0;
}
.mergan-quickview-gallery,
.mergan-quickview-info{
  width:100%;
  min-width:0;
  box-sizing:border-box;
}
.mergan-quickview-gallery{
  padding:10px;
  border-bottom:1px solid var(--border);
  background:color-mix(in srgb,var(--muted) 32%,transparent);
}
.mergan-quickview-main{
  position:relative;
  display:grid;
  width:100%;
  height:auto;
  aspect-ratio:1/1;
  min-height:0;
  place-items:center;
  overflow:hidden;
  border:1px solid var(--border);
  border-radius:9px;
  background:var(--background);
}
.mergan-quickview-main-image{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center;
  user-select:none;
  -webkit-user-drag:none;
  will-change:opacity,transform;
  animation:mergan-quickview-image-in .32s cubic-bezier(.22,1,.36,1) both;
}
@keyframes mergan-quickview-image-in{
  from{opacity:.28;transform:scale(1.015)}
  to{opacity:1;transform:scale(1)}
}
.mergan-quickview-category{inset-inline-start:10px;bottom:10px;max-width:calc(100% - 20px)}
.mergan-quickview-thumbs{
  display:flex;
  width:100%;
  gap:7px;
  margin-top:8px;
  padding:1px 0 2px;
  overflow-x:auto;
  overscroll-behavior-inline:contain;
  scroll-snap-type:x proximity;
  scrollbar-width:thin;
  scrollbar-color:var(--border) transparent;
}
.mergan-quickview-thumb{
  width:56px;
  height:56px;
  flex:0 0 56px;
  padding:2px;
  border:1px solid var(--border);
  border-radius:8px;
  scroll-snap-align:start;
  background:var(--card);
  box-shadow:none;
}
.mergan-quickview-thumb.is-active{
  border-color:#0e2f69;
  box-shadow:0 0 0 1px rgba(14,47,105,.08);
}
.dark .mergan-quickview-thumb.is-active{
  border-color:#8bcdeb;
  box-shadow:0 0 0 1px rgba(139,205,235,.1);
}
.mergan-quickview-thumb img{border-radius:6px}
.mergan-quickview-info{
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
}
@media(min-width:700px){
  .mergan-quickview-shell{
    grid-template-columns:repeat(2,minmax(0,1fr));
    align-items:stretch;
  }
  .mergan-quickview-gallery{
    border-bottom:0;
    border-inline-end:1px solid var(--border);
  }
  .mergan-quickview-info{padding:18px!important}
}
@media(max-width:699px){
  .mergan-quickview-dialog{width:min(520px,calc(100vw - 12px))!important;max-width:520px!important}
  .mergan-quickview-gallery{padding:9px}
  .mergan-quickview-thumb{width:52px;height:52px;flex-basis:52px}
}
@media(max-height:640px) and (min-width:700px){
  .mergan-quickview-dialog{max-width:700px!important}
  .mergan-quickview-gallery{padding:8px}
  .mergan-quickview-thumb{width:48px;height:48px;flex-basis:48px}
  .mergan-quickview-info{padding:14px!important}
}
@media(prefers-reduced-motion:reduce){
  .mergan-quickview-main-image{animation:none!important;transition:none!important}
}


/* 3.7.21 — vertically balance quick-view information against the square gallery. */
@media(min-width:700px){
  .mergan-quickview-info{
    justify-content:center!important;
    align-self:stretch;
  }
}

/* 3.7.28 — OTP uses the existing authentication design tokens in both themes. */
.mergan-auth-tabs.has-otp{grid-template-columns:repeat(3,minmax(0,1fr))}
.mergan-auth-form [hidden]{display:none!important}
.mergan-auth-otp-form input[name="code"]{direction:ltr;text-align:center;font-size:18px;font-weight:700;letter-spacing:.42em;padding-inline-start:calc(14px + .42em)}
.mergan-auth-otp-form input[readonly]{cursor:default;color:var(--muted-foreground);background:color-mix(in srgb,var(--muted) 55%,var(--background))}
.mergan-auth-otp-hint{margin:0;color:var(--muted-foreground);font-size:10px;line-height:20px}
.mergan-auth-otp-actions{display:grid;gap:8px}
.mergan-auth-resend{justify-self:center;min-height:30px;padding:4px 10px;border:0;background:transparent;color:#167fbd;font:600 10.5px/1.6 inherit;cursor:pointer}
.mergan-auth-resend:hover:not(:disabled),.mergan-auth-resend:focus-visible{color:#0e2f69;text-decoration:underline;text-underline-offset:3px}
.mergan-auth-resend:focus-visible{outline:2px solid rgba(26,141,212,.45);outline-offset:2px;border-radius:6px}
.mergan-auth-resend:disabled{cursor:not-allowed;color:var(--muted-foreground);opacity:.75}
.dark .mergan-auth-resend{color:#70c8ee}.dark .mergan-auth-resend:hover:not(:disabled),.dark .mergan-auth-resend:focus-visible{color:#b7e8fa}
@media(max-width:480px){.mergan-auth-tabs.has-otp button{padding-inline:3px;font-size:9.5px;line-height:1.45}.mergan-auth-dialog{max-height:calc(100dvh - 16px);overflow:auto}}

/* 3.7.31 — improve genuinely small copy without changing component geometry. */
#root [class~="text-[8.5px]"]{font-size:9.5px!important}
#root [class~="text-[9px]"]{font-size:10px!important}
#root [class~="text-[9.5px]"]{font-size:10.5px!important}
#root [class~="text-[10px]"]{font-size:11px!important}
#root [class~="text-[10.5px]"]{font-size:11.5px!important}
#root [class~="text-[11px]"]{font-size:12px!important}
#root [class~="text-[11.5px]"]{font-size:12.5px!important}
.mergan-auth-head p,.mergan-auth-tabs button,.mergan-auth-form label{font-size:11.5px}
.mergan-auth-form input{font-size:12.5px}
.mergan-auth-message,.mergan-auth-submit{font-size:11.5px}
section[aria-labelledby="how-to-order-heading"] p{font-size:13px!important;line-height:2!important}
section[aria-label="مراحل ثبت سفارش"] h2{font-size:17px!important;line-height:1.75!important}
section[aria-label="مراحل ثبت سفارش"] h3{font-size:13px!important;line-height:1.8!important}
section[aria-label="مراحل ثبت سفارش"] :where(p,li,a){font-size:12.5px!important;line-height:2!important}
@media(max-width:480px){.mergan-auth-tabs.has-otp button{font-size:10.5px}}

/* 3.7.32 — wholesale form-only controls and responsive reCAPTCHA. */
#wholesale-request-form textarea{resize:none!important}
.mergan-wholesale-recaptcha{max-width:100%;min-height:78px;overflow:hidden;border-radius:8px}
.mergan-wholesale-recaptcha>div{max-width:100%}
@media(max-width:360px){.mergan-wholesale-recaptcha{width:304px;min-height:64px;transform:scale(.82);transform-origin:right top;margin-bottom:-14px}}

/* 3.7.33 — focused mobile cart, archive filters and product purchase UX. */
.product-sticky-purchase-bar>div>div:last-child>button{min-height:44px!important;border-radius:9px!important}
@media(min-width:1024px){
  .mergan-filter-category-row{justify-content:flex-start!important}
  .mergan-filter-category-row>span:nth-of-type(2){max-width:calc(100% - 62px);flex:0 1 auto!important}
  .mergan-filter-category-row>span:last-child{margin-inline-start:4px}
}
@keyframes mergan-mobile-cart-drawer-in{from{transform:translateX(100%)}to{transform:translateX(0)}}
@keyframes mergan-mobile-cart-drawer-out{from{transform:translateX(0)}to{transform:translateX(100%)}}
@media(max-width:767px){
  html.mergan-mobile-cart-open,html.mergan-mobile-cart-open body{overflow:hidden!important}
  .mergan-mobile-cart-backdrop{position:fixed;inset:0;z-index:100100;width:100%;height:100%;border:0;background:rgba(2,10,20,.58);opacity:0;cursor:default;transition:opacity .2s ease}
  .mergan-mobile-cart-backdrop.is-open{opacity:1}
  .mergan-mobile-cart-drawer-wrapper{position:fixed!important;inset:0 0 0 auto!important;z-index:100110!important;width:min(88vw,360px)!important;height:100dvh!important;min-width:0!important;transform:none!important}
  [data-slot="popover-content"].mergan-mobile-cart-drawer{position:relative!important;inset:auto!important;z-index:auto!important;display:flex!important;flex-direction:column!important;width:100%!important;height:100dvh!important;max-height:100dvh!important;margin:0!important;overflow:hidden!important;border-radius:0!important;transform:translate3d(100%,0,0)!important;transform-origin:right center!important;will-change:transform;transition:transform .32s cubic-bezier(.16,1,.3,1)!important;box-shadow:-20px 0 60px rgba(2,10,20,.24)!important}
  [data-slot="popover-content"].mergan-mobile-cart-drawer.is-open{transform:none!important}
  [data-slot="popover-content"].mergan-mobile-cart-drawer[data-state="open"]{animation:mergan-mobile-cart-drawer-in .32s cubic-bezier(.16,1,.3,1) both!important}
  [data-slot="popover-content"].mergan-mobile-cart-drawer[data-state="closed"]{animation:mergan-mobile-cart-drawer-out .26s cubic-bezier(.4,0,1,1) both!important;pointer-events:none!important}
  [data-slot="popover-content"].mergan-mobile-cart-drawer>.mergan-cart-scrollbar{min-height:0!important;max-height:none!important;flex:1 1 auto!important;overscroll-behavior:contain}
  [data-slot="popover-content"].mergan-mobile-cart-drawer>.mergan-mobile-cart-footer{position:relative;z-index:2;flex:0 0 auto;margin-top:auto!important;padding-bottom:max(12px,env(safe-area-inset-bottom))!important;background:var(--background)!important;box-shadow:0 -8px 22px rgba(4,22,48,.06)}
  .mergan-mobile-cart-close{position:absolute;top:10px;inset-inline-end:10px;z-index:3;display:grid;width:38px;height:38px;place-items:center;border:1px solid var(--border);border-radius:9px;background:var(--card);color:var(--muted-foreground);cursor:pointer}
  .mergan-mobile-cart-close:hover,.mergan-mobile-cart-close:focus-visible{border-color:#1a8dd4;color:#0e2f69;outline:0}
  /* The cart confirmation is rendered in a portal beside the drawer. */
  [data-slot="alert-dialog-overlay"]{z-index:100200!important}
  [data-slot="alert-dialog-content"]{z-index:100210!important}
  .product-sticky-purchase-bar.mergan-mobile-sticky-purchase{visibility:visible!important;opacity:1!important;transform:none!important}
  .mergan-product-rich-description{margin-bottom:20px}
}

/* Small navigation badges use the primary SemiBold face, not ExtraBold. */
.mobile-quick-nav__badge{font-weight:600!important}
@media(max-width:380px){
}
@media(prefers-reduced-motion:reduce){
  .mergan-mobile-cart-backdrop,[data-slot="popover-content"].mergan-mobile-cart-drawer{transition:none!important;animation:none!important}
}

/* 3.7.36 — keep the mobile product purchase bar above the persistent quick navigation. */
@media(max-width:767px){
  :root{
    --mergan-mobile-quick-nav-bottom:max(8px,env(safe-area-inset-bottom));
    --mergan-mobile-quick-nav-height:66px;
    --mergan-mobile-quick-nav-gap:10px;
  }
  .mobile-quick-nav{bottom:var(--mergan-mobile-quick-nav-bottom)!important}
  .product-sticky-purchase-bar{bottom:calc(var(--mergan-mobile-quick-nav-bottom) + var(--mergan-mobile-quick-nav-height) + var(--mergan-mobile-quick-nav-gap))!important}
}

/* 3.9.4 — product-card semantics, compact sticky purchase card, and desktop archive filter scrolling. */
.mergan-product-card-discount-badge{
  min-width:42px;
  justify-content:center;
  font-variant-numeric:tabular-nums;
}

@media (min-width:1024px){
  .mergan-archive-filter-panel{
    max-height:calc(100dvh - var(--mergan-sticky-top,0px) - var(--mergan-smart-header-offset,0px) - 28px);
    overflow-y:auto!important;
    overscroll-behavior:contain;
    scrollbar-gutter:stable;
    scrollbar-width:thin;
    scrollbar-color:var(--border) transparent;
  }
  .mergan-archive-filter-panel::-webkit-scrollbar{width:6px}
  .mergan-archive-filter-panel::-webkit-scrollbar-track{background:transparent}
  .mergan-archive-filter-panel::-webkit-scrollbar-thumb{border-radius:999px;background:var(--border)}
}

.mergan-sticky-purchase-card{
  display:grid;
  grid-template-columns:58px minmax(0,1fr) auto;
  align-items:center;
  gap:12px;
  width:min(100%,960px);
  isolation:isolate;
}
.mergan-sticky-purchase-thumb{
  display:block;
  width:58px;
  height:58px;
  flex:0 0 58px;
}
.mergan-sticky-purchase-action{
  width:auto;
  min-width:190px;
}
.mergan-sticky-purchase-action [data-commerce-action="add-to-cart"]{
  min-width:190px;
}
.mergan-sticky-purchase-qty{
  width:154px;
  min-width:154px;
}
.mergan-sticky-purchase-qty__button{
  display:grid;
  width:48px;
  height:100%;
  flex:0 0 48px;
  place-items:center;
  border:0;
  background:transparent;
  color:#0E2F69;
  cursor:pointer;
  transition:background-color 180ms ease,color 180ms ease,transform 180ms ease,opacity 180ms ease;
}
.mergan-sticky-purchase-qty__button:hover,
.mergan-sticky-purchase-qty__button:focus-visible{
  background:var(--secondary);
  outline:0;
}
.mergan-sticky-purchase-qty__button:active{transform:scale(.96)}
.mergan-sticky-purchase-qty__button:disabled{cursor:not-allowed;opacity:.4}
.mergan-sticky-purchase-qty__button.is-remove{color:var(--muted-foreground)}
.mergan-sticky-purchase-qty__button.is-remove:hover,
.mergan-sticky-purchase-qty__button.is-remove:focus-visible{
  background:color-mix(in srgb,var(--destructive) 10%,transparent);
  color:var(--destructive);
}
.mergan-sticky-purchase-qty__value{
  display:flex;
  min-width:56px;
  height:100%;
  flex:1 1 auto;
  align-items:center;
  justify-content:center;
  border-inline:1px solid var(--border);
  color:var(--foreground);
  font-size:13px;
  font-weight:700;
  font-variant-numeric:tabular-nums;
}
.dark .mergan-sticky-purchase-qty__button{color:#A8DDF4}

@media (max-width:639px){
  .product-sticky-purchase-bar{padding-inline:10px!important}
  .mergan-sticky-purchase-card{
    grid-template-columns:48px minmax(0,1fr)!important;
    grid-template-areas:"thumb meta" "action action";
    gap:8px 10px!important;
    width:100%;
    padding:9px!important;
    border-radius:14px!important;
  }
  .mergan-sticky-purchase-thumb{
    grid-area:thumb;
    width:48px;
    height:48px;
    min-width:48px;
  }
  .mergan-sticky-purchase-meta{grid-area:meta;align-self:center}
  .mergan-sticky-purchase-action{
    grid-area:action;
    width:100%!important;
    min-width:0!important;
    margin-inline-start:0!important;
  }
  .mergan-sticky-purchase-action [data-commerce-action="add-to-cart"]{
    width:100%!important;
    min-width:0!important;
  }
  .mergan-sticky-purchase-qty{
    width:100%;
    min-width:0;
  }
}

@media (max-width:359px){
  .product-sticky-purchase-bar{padding-inline:8px!important}
  .mergan-sticky-purchase-card{
    grid-template-columns:44px minmax(0,1fr)!important;
    gap:7px 9px!important;
    padding:8px!important;
  }
  .mergan-sticky-purchase-thumb{width:44px;height:44px;min-width:44px}
  .mergan-sticky-purchase-qty__button{width:44px;flex-basis:44px}
}

/* Accessibility: keyboard-only skip link. */
.mergan-skip-link{position:fixed;inset-block-start:8px;inset-inline-start:8px;z-index:100000;transform:translateY(-160%);padding:8px 12px;border-radius:4px;background:#fff;color:#0e2f69;box-shadow:0 4px 16px rgba(0,0,0,.14);font-weight:600;text-decoration:none}
.mergan-skip-link:focus{transform:translateY(0);outline:2px solid currentColor;outline-offset:2px}


/* 3.9.10 — mobile article typography, synchronized footer exits, rubber-band rails,
   separated sidebar toggles, and mobile order-step alignment. */

/* Never clip multi-line article section headings, especially directly below the mobile TOC. */
@media (max-width:767px){
  .article-reading-surface,
  .article-reading-surface section,
  .article-reading-surface section>h2{
    overflow:visible!important;
  }
  .article-reading-surface section>h2{
    display:block!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    padding-block:0 .18em!important;
    line-height:1.95!important;
    white-space:normal!important;
    text-overflow:clip!important;
    overflow-wrap:anywhere;
    -webkit-line-clamp:unset!important;
  }
}

/* Mobile quick navigation: visibility is delayed only after the slide-out completes,
   so reversing scroll direction never produces a pop/flicker. */
@media (max-width:767px){
  .mobile-quick-nav{
    visibility:visible;
    transition:transform 340ms cubic-bezier(.16,1,.3,1),opacity 240ms ease,visibility 0s linear 0s!important;
  }
  .mobile-quick-nav.mobile-quick-nav--hidden{
    transition:transform 340ms cubic-bezier(.16,1,.3,1),opacity 220ms ease,visibility 0s linear 340ms!important;
  }
}

/* Rubber-band feedback is applied to the viewport, not Embla's translated track.
   This preserves native drag/snap transforms and works at every breakpoint. */
.mergan-rubber-carousel [data-slot="carousel-content"]{
  transform-origin:var(--mergan-rubber-origin,50% 50%);
  will-change:transform;
}
.mergan-rubber-carousel.is-rubber-dragging [data-slot="carousel-content"]{
  transform:scaleX(1.008) scaleY(.997);
}
.mergan-rubber-carousel.is-rubber-rebound [data-slot="carousel-content"]{
  animation:mergan-rubber-band-x 440ms cubic-bezier(.22,1,.36,1) both;
}
@keyframes mergan-rubber-band-x{
  0%{transform:scaleX(1.008) scaleY(.997)}
  34%{transform:scaleX(.994) scaleY(1.003)}
  66%{transform:scaleX(1.003) scaleY(.999)}
  100%{transform:scale(1)}
}

/* Sidebar/submenu chevrons are a distinct interactive control in light and dark themes. */
:where(.drawer-nav-link,.nav-link)+button[aria-label^="نمایش زیرمنوی"],
:where(.drawer-nav-link,.nav-link)+button[aria-label^="باز کردن زیرمنوی"]{
  position:relative;
  flex:0 0 auto;
  margin-inline-start:5px!important;
  border:1px solid var(--border)!important;
  background:var(--secondary)!important;
  color:#0e2f69!important;
  box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--background) 30%,transparent);
}
:where(.drawer-nav-link,.nav-link)+button[aria-label^="نمایش زیرمنوی"]:hover,
:where(.drawer-nav-link,.nav-link)+button[aria-label^="باز کردن زیرمنوی"]:hover,
:where(.drawer-nav-link,.nav-link)+button[aria-label^="نمایش زیرمنوی"]:focus-visible,
:where(.drawer-nav-link,.nav-link)+button[aria-label^="باز کردن زیرمنوی"]:focus-visible{
  border-color:#1a8dd4!important;
  background:color-mix(in srgb,var(--secondary) 72%,var(--background))!important;
  outline:0;
}
.dark :where(.drawer-nav-link,.nav-link)+button[aria-label^="نمایش زیرمنوی"],
.dark :where(.drawer-nav-link,.nav-link)+button[aria-label^="باز کردن زیرمنوی"]{
  border-color:var(--border)!important;
  background:color-mix(in srgb,var(--secondary) 72%,var(--background))!important;
  color:#a8ddf4!important;
}

/* Four final checkout steps: all cards begin on the same RTL edge on phones. */
@media (max-width:639px){
  [aria-label="چهار مرحله نهایی ثبت سفارش"]{
    width:100%!important;
    grid-template-columns:minmax(0,1fr)!important;
    padding-inline:0!important;
    margin-inline:0!important;
  }
  [aria-label="چهار مرحله نهایی ثبت سفارش"]>*{
    width:100%!important;
    max-width:none!important;
    margin-inline:0!important;
    justify-self:stretch!important;
    translate:none!important;
  }
}

@media (prefers-reduced-motion:reduce){
  .mergan-rubber-carousel [data-slot="carousel-content"],
  .mobile-quick-nav{
    animation:none!important;
    transition:none!important;
    transform:none!important;
  }
}

/* 3.9.11 — header submenu chevrons: keep touch targets intact, reduce only the glyph. */
.nav-link + button[aria-label^="باز کردن زیرمنوی"] svg{
  width:12px!important;
  height:12px!important;
  stroke-width:2!important;
}
.drawer-nav-link + button[aria-label^="نمایش زیرمنوی"] svg{
  width:12px!important;
  height:12px!important;
  stroke-width:2!important;
}
@media (max-width:767px){
  .drawer-nav-link + button[aria-label^="نمایش زیرمنوی"] svg{
    width:11px!important;
    height:11px!important;
  }
}

/* 3.9.12 — full-image hero layout with equal height to the standard slide. */
#root .mergan-hero-slide--full-image{position:relative;display:flex!important;isolation:isolate;overflow:hidden;align-items:center!important;background:#07182c}
#root .mergan-hero-slide--full-image::after{position:absolute;z-index:1;inset:0;background:linear-gradient(90deg,rgba(4,18,35,.16) 0%,rgba(4,18,35,.42) 46%,rgba(4,18,35,.78) 100%);content:"";pointer-events:none}
#root .mergan-hero-slide--full-image .mergan-hero-slide__content{z-index:2;width:min(100%,680px);max-width:680px}
#root .mergan-hero-slide--full-image .mergan-hero-slide__content h1,#root .mergan-hero-slide--full-image .mergan-hero-slide__content h2{color:#fff!important;text-shadow:0 2px 18px rgba(0,0,0,.18)}
#root .mergan-hero-slide--full-image .mergan-hero-slide__content>p{max-width:610px;color:#e6eef6!important;text-shadow:0 1px 12px rgba(0,0,0,.16)}
#root .mergan-hero-slide--full-image .mergan-hero-slide__content>div:first-child{border-color:rgba(255,255,255,.25)!important;background:rgba(5,22,42,.46)!important;color:#c9f2ea!important;backdrop-filter:blur(7px)}
#root .mergan-hero-slide--full-image .mergan-hero-slide__content>div:last-child>a:first-child{background:#fff!important;color:#0e2f69!important}
#root .mergan-hero-slide--full-image .mergan-hero-slide__content>div:last-child>a:first-child:hover{background:#f0f6fa!important}
#root .mergan-hero-slide--full-image .mergan-hero-slide__content>div:last-child>a:last-child{border-color:rgba(255,255,255,.38)!important;background:rgba(4,18,35,.24)!important;color:#fff!important;backdrop-filter:blur(6px)}
#root .mergan-hero-slide--full-image .mergan-hero-slide__content>div:last-child>a:last-child:hover{border-color:rgba(255,255,255,.7)!important;background:rgba(255,255,255,.12)!important}
#root .mergan-hero-slide--full-image .mergan-hero-slide__media{position:absolute!important;z-index:0;inset:0!important;width:100%!important;height:100%!important;max-width:none!important;margin:0!important;border:0!important;border-radius:0!important;background:#07182c!important;box-shadow:none!important;transform:none!important}
#root .mergan-hero-slide--full-image .mergan-hero-slide__media>div{display:none!important}
#root .mergan-hero-slide__picture{display:block;width:100%;height:100%}
#root .mergan-hero-slide__picture img{display:block;width:100%;height:100%}
#root .mergan-hero-slide--full-image .mergan-hero-slide__picture img{object-fit:cover!important}
@media(max-width:767px){#root .mergan-hero-slide--full-image::after{background:linear-gradient(180deg,rgba(4,18,35,.2) 0%,rgba(4,18,35,.52) 46%,rgba(4,18,35,.82) 100%)}#root .mergan-hero-slide--full-image{align-items:flex-end!important}#root .mergan-hero-slide--full-image .mergan-hero-slide__content{width:100%;max-width:none}}
@media(prefers-reduced-motion:reduce){#root .mergan-hero-slide--full-image .mergan-hero-slide__media{transition:none!important}}

/* 3.9.12 — submenu chevron is visually attached to its own menu item. */
:where(.drawer-nav-link,.nav-link)+button[aria-label^="نمایش زیرمنوی"],:where(.drawer-nav-link,.nav-link)+button[aria-label^="باز کردن زیرمنوی"]{margin-inline-start:0!important;border:0!important;border-inline-start:1px solid var(--border)!important;background:color-mix(in srgb,var(--secondary) 82%,var(--background))!important;box-shadow:none!important}
:where(.drawer-nav-link,.nav-link)+button[aria-label^="نمایش زیرمنوی"]:hover,:where(.drawer-nav-link,.nav-link)+button[aria-label^="باز کردن زیرمنوی"]:hover,:where(.drawer-nav-link,.nav-link)+button[aria-label^="نمایش زیرمنوی"]:focus-visible,:where(.drawer-nav-link,.nav-link)+button[aria-label^="باز کردن زیرمنوی"]:focus-visible{border-inline-start-color:#1a8dd4!important;background:var(--secondary)!important;color:#0e2f69!important}
.dark :where(.drawer-nav-link,.nav-link)+button[aria-label^="نمایش زیرمنوی"],.dark :where(.drawer-nav-link,.nav-link)+button[aria-label^="باز کردن زیرمنوی"]{border-inline-start-color:var(--border)!important;background:color-mix(in srgb,var(--secondary) 86%,var(--background))!important;color:#a8ddf4!important}
/* Hero carousel items stretch to the tallest slide so split/full-image slides never change carousel height. */
#root [aria-label="اسلایدر اصلی مرگان شیمی"] [data-slot="carousel-content"]>div{align-items:stretch}
#root [aria-label="اسلایدر اصلی مرگان شیمی"] [data-slot="carousel-item"]{display:flex;align-self:stretch}
#root [aria-label="اسلایدر اصلی مرگان شیمی"] .mergan-hero-slide{width:100%;align-self:stretch}

/* 3.9.13 — hero settings now map one-to-one from Mergan Core to the rendered slide. */
#root .mergan-hero-slide{
  background-color:var(--mergan-hero-background,transparent)!important;
  background-position:center!important;
  background-repeat:no-repeat!important;
  background-size:cover!important;
}
#root .mergan-hero-slide--showcase{position:relative;isolation:isolate}
#root .mergan-hero-slide--showcase.mergan-hero-has-background-image{
  background-color:var(--mergan-hero-background,transparent)!important;
  background-position:center!important;
  background-repeat:no-repeat!important;
  background-size:cover!important;
}
#root .mergan-hero-slide--showcase .mergan-hero-slide__media{background:color-mix(in srgb,var(--card) 70%,transparent)!important}
#root .mergan-hero-slide.mergan-hero-has-text-color .mergan-hero-slide__content h1,
#root .mergan-hero-slide.mergan-hero-has-text-color .mergan-hero-slide__content h2,
#root .mergan-hero-slide.mergan-hero-has-text-color .mergan-hero-slide__content>p{color:var(--mergan-hero-text)!important}
#root .mergan-hero-slide.mergan-hero-has-text-color .mergan-hero-slide__content>div:first-child{color:var(--mergan-hero-text)!important}
#root .mergan-hero-slide[data-mergan-content-align="center"] .mergan-hero-slide__content{text-align:center!important}
#root .mergan-hero-slide[data-mergan-content-align="center"] .mergan-hero-slide__content>div{justify-content:center!important}
#root .mergan-hero-slide[data-mergan-content-align="left"] .mergan-hero-slide__content{text-align:left!important}
#root .mergan-hero-slide[data-mergan-content-align="left"] .mergan-hero-slide__content>div{justify-content:flex-end!important}
#root .mergan-hero-slide[data-mergan-content-align="right"] .mergan-hero-slide__content{text-align:right!important}
#root .mergan-hero-slide[data-mergan-content-align="right"] .mergan-hero-slide__content>div{justify-content:flex-start!important}
#root .mergan-hero-slide--contentless .mergan-hero-slide__content{display:none!important}
#root .mergan-hero-slide--full-image::after{
  background:var(--mergan-hero-overlay-color,#07182c)!important;
  opacity:var(--mergan-hero-overlay-opacity,0)!important;
}
#root .mergan-hero-slide--full-image .mergan-hero-slide__media{
  background:var(--mergan-hero-background,transparent)!important;
}
#root .mergan-hero-slide--full-image .mergan-hero-slide__picture img.object-contain{object-fit:contain!important}
#root .mergan-hero-slide--full-image .mergan-hero-slide__picture img.object-cover{object-fit:cover!important}
#root .mergan-hero-slide--full-image.mergan-hero-has-text-color .mergan-hero-slide__content h1,
#root .mergan-hero-slide--full-image.mergan-hero-has-text-color .mergan-hero-slide__content h2,
#root .mergan-hero-slide--full-image.mergan-hero-has-text-color .mergan-hero-slide__content>p,
#root .mergan-hero-slide--full-image.mergan-hero-has-text-color .mergan-hero-slide__content>div:first-child{color:var(--mergan-hero-text)!important}
#root .mergan-hero-slide--full-image[data-mergan-content-align="center"] .mergan-hero-slide__content{margin-inline:auto!important}
#root .mergan-hero-slide--full-image[data-mergan-content-align="right"] .mergan-hero-slide__content{margin-inline-start:0!important;margin-inline-end:auto!important}
#root .mergan-hero-slide--full-image[data-mergan-content-align="left"] .mergan-hero-slide__content{margin-inline-start:auto!important;margin-inline-end:0!important}
@media(min-width:1024px){
  #root .mergan-hero-slide:not(.mergan-hero-slide--full-image)[data-mergan-image-side="right"] .mergan-hero-slide__media{order:1}
  #root .mergan-hero-slide:not(.mergan-hero-slide--full-image)[data-mergan-image-side="right"] .mergan-hero-slide__content{order:2}
  #root .mergan-hero-slide:not(.mergan-hero-slide--full-image)[data-mergan-image-side="left"] .mergan-hero-slide__content{order:1}
  #root .mergan-hero-slide:not(.mergan-hero-slide--full-image)[data-mergan-image-side="left"] .mergan-hero-slide__media{order:2}
}

/* 3.9.13 — one visual control per header item: label + chevron share the same surface. */
#root nav[aria-label="منوی اصلی سایت"]>div:has(>.nav-link+button[aria-label^="باز کردن زیرمنوی"]){
  border-radius:8px;background:transparent;transition:background-color .2s,color .2s;
}
#root nav[aria-label="منوی اصلی سایت"]>div:has(>.nav-link+button[aria-label^="باز کردن زیرمنوی"]):hover,
#root nav[aria-label="منوی اصلی سایت"]>div:has(>.nav-link[aria-current="page"]+button),
#root nav[aria-label="منوی اصلی سایت"]>div:has(>button[aria-expanded="true"]){background:var(--secondary)}
#root nav[aria-label="منوی اصلی سایت"]>div:has(>.nav-link+button[aria-label^="باز کردن زیرمنوی"])>.nav-link,
#root nav[aria-label="منوی اصلی سایت"]>div:has(>.nav-link+button[aria-label^="باز کردن زیرمنوی"])>button[aria-label^="باز کردن زیرمنوی"]{
  border:0!important;background:transparent!important;box-shadow:none!important;
}
#root nav[aria-label="منوی اصلی سایت"]>div:has(>.nav-link+button[aria-label^="باز کردن زیرمنوی"])>button[aria-label^="باز کردن زیرمنوی"]{width:34px;height:40px;flex:0 0 34px}
#root nav[aria-label="منوی اصلی سایت"]>div:has(>.nav-link+button[aria-label^="باز کردن زیرمنوی"])>.nav-link:hover,
#root nav[aria-label="منوی اصلی سایت"]>div:has(>.nav-link+button[aria-label^="باز کردن زیرمنوی"])>button[aria-label^="باز کردن زیرمنوی"]:hover,
#root nav[aria-label="منوی اصلی سایت"]>div:has(>.nav-link+button[aria-label^="باز کردن زیرمنوی"])>.nav-link:focus-visible,
#root nav[aria-label="منوی اصلی سایت"]>div:has(>.nav-link+button[aria-label^="باز کردن زیرمنوی"])>button[aria-label^="باز کردن زیرمنوی"]:focus-visible{background:transparent!important}

/* Mobile drawer: the chevron belongs to the row and keeps breathing room from dividers. */
#root div:has(>.drawer-nav-link+button[aria-label^="نمایش زیرمنوی"]){border-radius:8px;transition:background-color .2s}
#root div:has(>.drawer-nav-link+button[aria-label^="نمایش زیرمنوی"]):hover,
#root div:has(>.drawer-nav-link+button[aria-label^="نمایش زیرمنوی"]):has(>button[aria-expanded="true"]){background:var(--secondary)}
#root .drawer-nav-link+button[aria-label^="نمایش زیرمنوی"]{
  width:38px!important;height:38px!important;flex:0 0 38px!important;margin-block:5px!important;border:0!important;background:transparent!important;box-shadow:none!important;
}
#root .drawer-nav-link+button[aria-label^="نمایش زیرمنوی"]:hover,
#root .drawer-nav-link+button[aria-label^="نمایش زیرمنوی"]:focus-visible{background:transparent!important}
#root .drawer-nav-link{background:transparent!important}

/* 3.9.13 — unified readable body copy and H3 scale requested for content-heavy areas. */
#root main p,
#root main li,
.mergan-native-woo p,
.mergan-native-woo li{font-size:13px!important}
#root h3,
.mergan-native-woo h3{font-size:16px!important}


/* 3.9.14 — hero positioning, responsive mobile artwork, and full-bleed first section. */
#root main#content>section:first-child,
#root main#content>section:first-child>div,
#root [aria-label="اسلایدر اصلی مرگان شیمی"]{
  margin-block:0!important;
  padding-block:0!important;
}
#root [aria-label="اسلایدر اصلی مرگان شیمی"] [data-slot="carousel-content"],
#root [aria-label="اسلایدر اصلی مرگان شیمی"] [data-slot="carousel-item"]{
  padding-block:0!important;
}
#root .mergan-hero-slide{
  background-position:var(--mergan-hero-background-position,center)!important;
}
#root .mergan-hero-slide__picture,
#root .mergan-hero-slide__picture picture,
#root .mergan-hero-slide__picture img,
#root .mergan-hero-slide__media img{
  width:100%!important;
  height:100%!important;
}
#root .mergan-hero-slide__picture img,
#root .mergan-hero-slide__media img{
  object-position:var(--mergan-hero-image-position,center)!important;
}
#root .mergan-hero-slide--full-image{
  min-height:clamp(360px,40vw,560px)!important;
}
#root .mergan-hero-slide--full-image .mergan-hero-slide__content{
  padding-block:32px!important;
}
@media (max-width:767px){
  #root .mergan-hero-slide--full-image{
    min-height:clamp(420px,78vw,680px)!important;
  }
  #root .mergan-hero-slide--full-image .mergan-hero-slide__content{
    padding-block:24px!important;
  }
}


/* 3.9.15 — consistent hero top rhythm and compact mobile full-image slides. */
#root main#content>section:first-child{
  padding-top:20px!important;
  padding-bottom:0!important;
}
#root main#content>section:first-child>div,
#root [aria-label="اسلایدر اصلی مرگان شیمی"]{
  margin-top:0!important;
}
@media (max-width:767px){
  /* Each slide keeps its own intrinsic height on phones. The viewport height is
     synchronized to the currently selected slide by ui-enhancements.js. */
  #root [aria-label="اسلایدر اصلی مرگان شیمی"] [data-slot="carousel-content"]>div{
    align-items:flex-start!important;
  }
  #root [aria-label="اسلایدر اصلی مرگان شیمی"] [data-slot="carousel-item"]{
    align-self:flex-start!important;
  }
  #root [aria-label="اسلایدر اصلی مرگان شیمی"] .mergan-hero-slide{
    align-self:flex-start!important;
  }
  #root [aria-label="اسلایدر اصلی مرگان شیمی"] [data-slot="carousel-content"]{
    transition:height .24s ease!important;
  }
  #root .mergan-hero-slide--full-image{
    height:clamp(390px,115vw,520px)!important;
    min-height:0!important;
    max-height:520px!important;
    padding-block:0!important;
  }
  #root .mergan-hero-slide--full-image .mergan-hero-slide__media{
    height:100%!important;
  }
  #root .mergan-hero-slide--full-image .mergan-hero-slide__picture,
  #root .mergan-hero-slide--full-image .mergan-hero-slide__picture img{
    height:100%!important;
  }
}
@media (prefers-reduced-motion:reduce){
  #root [aria-label="اسلایدر اصلی مرگان شیمی"] [data-slot="carousel-content"]{
    transition:none!important;
  }
}


/* 3.9.17 — improve mobile hero framing while preserving stable slide heights. */
@media (max-width:767px){
  #root .mergan-hero-slide--full-image{
    height:clamp(320px,94vw,430px)!important;
    max-height:430px!important;
  }
  #root .mergan-hero-slide--full-image.mergan-hero-slide--contentless{
    height:clamp(280px,88vw,380px)!important;
    max-height:380px!important;
  }
  #root .mergan-hero-slide--full-image .mergan-hero-slide__media,
  #root .mergan-hero-slide--full-image .mergan-hero-slide__picture,
  #root .mergan-hero-slide--full-image .mergan-hero-slide__picture img{
    min-height:100%!important;
  }
}


/* 3.9.18 — keep the quick-view “view product page” arrow clearly legible at every breakpoint. */
.mergan-quickview-dialog .mergan-quickview-product-link-arrow{
  width:18px!important;
  height:18px!important;
  min-width:18px!important;
  flex:0 0 18px!important;
  stroke-width:2!important;
}
@media(min-width:768px){
  .mergan-quickview-dialog .mergan-quickview-product-link-arrow{
    width:19px!important;
    height:19px!important;
    min-width:19px!important;
    flex-basis:19px!important;
  }
}


/* 3.9.19 — slightly shorter, strictly uniform desktop hero height. */
@media (min-width:1024px){
  #root [aria-label="اسلایدر اصلی مرگان شیمی"] [data-slot="carousel-content"]>div,
  #root [aria-label="اسلایدر اصلی مرگان شیمی"] [data-slot="carousel-item"],
  #root [aria-label="اسلایدر اصلی مرگان شیمی"] .mergan-hero-slide{
    height:410px!important;
    min-height:410px!important;
    max-height:410px!important;
  }
  #root [aria-label="اسلایدر اصلی مرگان شیمی"] .mergan-hero-slide:not(.mergan-hero-slide--full-image) .mergan-hero-slide__media{
    height:338px!important;
    max-height:338px!important;
  }
}


/* 3.9.20 — keep the far-left essence card fully inside the home carousel viewport. */
html.mergan-home-enhanced [data-slot="carousel"][aria-label="دسته‌های اسانس"] .mergan-card-rail{
  box-sizing:border-box!important;
  padding-inline-end:3px!important;
}
@media(min-width:640px){
  html.mergan-home-enhanced [data-slot="carousel"][aria-label="دسته‌های اسانس"] .mergan-card-rail>div>[data-slot="carousel-item"]{
    flex-basis:calc(50% - 1.5px)!important;
  }
}
@media(min-width:768px){
  html.mergan-home-enhanced [data-slot="carousel"][aria-label="دسته‌های اسانس"] .mergan-card-rail>div>[data-slot="carousel-item"]{
    flex-basis:calc(33.333333% - 1px)!important;
  }
}
@media(min-width:1024px){
  html.mergan-home-enhanced [data-slot="carousel"][aria-label="دسته‌های اسانس"] .mergan-card-rail>div>[data-slot="carousel-item"]{
    flex-basis:calc(25% - .75px)!important;
  }
}
@media(min-width:1280px){
  html.mergan-home-enhanced [data-slot="carousel"][aria-label="دسته‌های اسانس"] .mergan-card-rail>div>[data-slot="carousel-item"]{
    flex-basis:calc(20% - .6px)!important;
  }
}

/* 3.9.22 — Rabino auth parity: registration + shared reCAPTCHA inside Mergan modal. */
.mergan-auth-recaptcha{margin-top:2px;padding:10px 12px;border:1px solid var(--border);border-radius:10px;background:color-mix(in srgb,var(--background) 88%,var(--card))}
.mergan-auth-recaptcha .gando-public-recaptcha__label{color:var(--muted-foreground);font-size:10.5px;font-weight:600}
.mergan-auth-recaptcha .gando-public-recaptcha__holder{margin-inline:auto}
.mergan-auth-recaptcha.has-network-error{border-color:color-mix(in srgb,var(--destructive) 38%,var(--border));background:color-mix(in srgb,var(--destructive) 5%,var(--background))}
@media(max-width:480px){.mergan-auth-recaptcha{padding:8px}.mergan-auth-dialog{max-height:calc(100dvh - 16px);overflow:auto}}
