.mahsun-modern { --modern-ink:#263b4a; --modern-line:#e5e9eb; --modern-accent:#033593; --button-blue:#033593; --button-blue-hover:#033593; --button-green:#18734b; --button-green-hover:#105737; color:var(--modern-ink); }
.mahsun-modern [hidden] { display:none!important; }
.mahsun-modern button, .mahsun-modern input { font-family:inherit; }
.mahsun-modern .main-header { position:relative; z-index:1100; }
.mahsun-modern .smart-search { position:relative; display:flex; align-items:center; width:100%; min-height:48px; border:1px solid transparent; border-radius:24px; background:#f4f5f5; isolation:isolate; }
.mahsun-modern .smart-search:focus-within { border-color:#aebdca; background:#fff; }
.mahsun-modern .smart-search > i { font-size:24px; padding-inline:16px 8px; color:#637681; }
.mahsun-modern .smart-search input { width:100%; min-width:0; height:48px; border:0; padding:0 4px; outline:none; color:#263b4a; background:transparent; font-size:14px; }
.mahsun-modern .smart-search input::-webkit-search-cancel-button { display:none; }
.mahsun-modern .smart-search-clear { flex:0 0 44px; width:44px; height:44px; padding:0; border:0; border-radius:50%; color:#536572; background:none; font-size:26px; }
.smart-search-panel { position:absolute; top:calc(100% + 8px); inset-inline:0; z-index:1200; max-height:min(70dvh,610px); overflow:auto; overscroll-behavior:contain; padding:10px 14px; border:1px solid #dce3e7; border-radius:14px; background:#fff; box-shadow:0 12px 30px #18354c1a; }
.smart-search-status { margin:5px 2px 10px; color:#5c6d78; font-size:12px; }
.search-group-title { margin:10px 0 2px; padding:8px 0; color:#5c6d78; font-size:12px; border-top:1px solid #e5e9eb; }
.smart-search-item { display:flex; align-items:center; gap:12px; min-height:48px; padding:8px 4px; color:#263b4a; border-radius:6px; font-size:13px; line-height:1.8; }
.smart-search-item img { width:48px; height:48px; object-fit:contain; flex:none; }
.smart-search-item span { flex:1; }
.smart-search-item small { color:#466075; max-width:110px; text-align:end; }
.smart-search-item[aria-selected=true], .smart-search-item:hover { background:#f0f4f6; color:#033593; }
.smart-search-all { width:100%; min-height:44px; padding:10px; border:0; background:#f3f6f8; color:#033593; border-radius:8px; font-size:13px; }
.mahsun-modern .modern-mega summary, .modern-language summary { list-style:none; cursor:pointer; display:flex; gap:8px; align-items:center; min-height:48px; padding-inline:12px; font-size:14px; }
.modern-mega summary::-webkit-details-marker,.modern-language summary::-webkit-details-marker { display:none; }
.modern-mega[open] > summary { color:#033593; }
.mahsun-modern header.main-header .main-menu > .list,
.mahsun-modern header.main-header .main-menu > .list > .modern-products-item { position:static; }
.modern-mega-panel { position:absolute; top:100%; inset-inline:0; z-index:1100; padding:26px 32px 32px; background:#fff; border-top:1px solid #e5e9eb; border-bottom:1px solid #cad4db; box-shadow:0 16px 24px #18354c12; max-height:70dvh; overflow:auto; }
.modern-mega-heading { display:flex; justify-content:space-between; gap:24px; margin-bottom:24px; font-size:17px; }
.modern-mega-heading a { color:#033593; font-size:13px; }
.modern-mega-grid { columns:4; column-gap:32px; }
.modern-mega-grid section { break-inside:avoid; margin-bottom:22px; }
.modern-mega-grid section > a { display:block; color:#5b6a73; font-size:13px; padding:7px 0; line-height:1.8; }
.modern-mega-grid section > .modern-mega-category { color:#263b4a; font-size:14px; font-weight:700; padding:4px 0 10px; border-bottom:1px solid #edf0f2; margin-bottom:4px; }
.modern-mega-grid a:hover { color:#033593; text-decoration:underline; }
.mahsun-modern .modern-language { position:relative; padding:0!important; }
.mahsun-modern .modern-language summary { min-height:40px; border:1px solid #e5e9eb; border-radius:24px; padding:0 10px; font-size:12px; }
.mahsun-modern .modern-language img { width:20px!important; height:14px!important; border-radius:2px; object-fit:cover; padding:0; }
.modern-language .language-options { position:absolute; inset-inline-end:0; top:calc(100% + 8px); z-index:1200; min-width:140px; padding:6px; background:#fff; border:1px solid #e5e9eb; border-radius:10px; }
.modern-language .language-options a { display:flex; gap:10px; align-items:center; min-height:44px; color:#263b4a; padding:8px; }
.home-refresh .home-banner-grid { display:grid; grid-template-columns:2.03fr 1fr; gap:16px; align-items:stretch; }
.home-banner-main { position:relative; min-width:0; }
.home-refresh .home-banner-main .home-hero { height:100%; border-radius:12px; }
.home-refresh .home-banner-main .home-hero img { width:100%; height:100%; max-height:none; aspect-ratio:2; object-fit:cover; }
.home-banner-side { display:grid; gap:16px; }
.home-banner-side a { display:block; overflow:hidden; border-radius:12px; }
.home-banner-side img { display:block; width:100%; height:100%; object-fit:cover; aspect-ratio:2; }
.banner-controls { position:absolute; bottom:12px; inset-inline-end:12px; display:flex; align-items:center; background:#fff; border-radius:24px; color:#263b4a; font-size:12px; box-shadow:0 2px 8px #0001; }
.banner-controls button { height:40px; width:40px; border:0; background:none; border-radius:50%; color:inherit; }
.home-refresh .home-category-links { grid-template-columns:repeat(6,minmax(0,1fr)); gap:20px; }
.home-refresh .home-category-links > a { flex-direction:column; justify-content:flex-start; text-align:center; border:0; gap:12px; font-size:13px; line-height:1.8; }
.home-category-links .category-orb { display:flex; align-items:center; justify-content:center; width:100px; height:100px; border-radius:50%; background:#f3f5f5; padding:15px; }
.category-orb img { display:block; width:100%; height:100%; object-fit:contain; mix-blend-mode:multiply; }
.category-orb svg { width:56px; height:56px; fill:none; stroke:#456577; stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; }
.mahsun-modern .product-card { background:#fff; box-shadow:none!important; border:0; border-radius:0; overflow:visible; height:100%; }
.mahsun-modern .product-card .product-head { min-height:0; height:0; position:relative; z-index:2; padding:0; }
.mahsun-modern .product-card .rating-stars,.mahsun-modern .product-card .product-meta { display:none; }
.mahsun-modern .product-card .image-card { width:auto; height:auto; aspect-ratio:1.35; margin:0 0 12px; padding:10px; background:#f7f8f8; border-radius:10px; overflow:hidden; }
.mahsun-modern .product-card .image-card img { width:100%; height:100%; object-fit:contain; mix-blend-mode:multiply; }
.mahsun-modern .product-card .product-card-body { padding:0 2px 8px; }
.mahsun-modern .product-card .product-title { height:48px; min-height:48px; margin:0 0 6px; }
.mahsun-modern .product-card .product-title a { color:#263b4a!important; font:500 14px/24px iranyekan,Tahoma,sans-serif; white-space:normal; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.mahsun-modern .product-card .price-index-h { height:auto; margin:4px 0 10px; }
.mahsun-modern .product-card .product-prices-div { min-height:28px; margin:0 0 8px; gap:6px; }
.mahsun-modern .product-card .product-price { color:#263b4a; font:700 15px/26px iranyekan,Tahoma,sans-serif; }
.mahsun-modern .product-card .cart:has(> a) { background:#fff!important; border:1px solid #b6c2c9; border-radius:22px; margin:0; }
.mahsun-modern .product-card .cart a { min-height:40px; color:#263b4a!important; font-size:12px; justify-content:center; }
.mahsun-modern .product-card .cart a i { color:inherit; }
.mahsun-modern .product-card .cart:hover:has(> a) { border-color:#033593; background:#f0f4f7!important; }
.page-jump { display:flex; justify-content:center; flex-wrap:wrap; gap:10px; align-items:center; margin:24px 0; font-size:14px; }
.page-jump input:not([type=hidden]) { width:66px; min-height:44px; border:1px solid #bdc9d1; border-radius:8px; text-align:center; background:#fff; color:#263b4a; }
.page-jump button { min-height:44px; padding:8px 20px; border:0; border-radius:8px; background:#033593; color:#fff; }
.search-articles { margin-top:28px; border-top:1px solid #e5e9eb; padding-top:24px; }
.search-articles h2 { font-size:20px; }
.search-articles a { display:flex; justify-content:space-between; padding:16px 0; border-bottom:1px solid #e5e9eb; color:#263b4a; }
.variant-photo { margin-top:20px; text-align:center; }
.variant-photo img { width:100%; max-height:560px; object-fit:contain; }
.variant-photo figcaption { color:#596d7a; font-size:12px; line-height:1.8; padding:8px; }
@media(max-width:992px) {
  .mahsun-modern .main-header { z-index:1040; }
  .home-refresh .home-banner-grid { gap:10px; }
  .home-banner-side { gap:10px; }
  .home-refresh .home-category-links { gap:12px; }
  .home-category-links .category-orb { width:80px; height:80px; padding:12px; }
  .smart-search-panel { max-height:60dvh; }
}
@media(max-width:600px) {
  .home-refresh .home-banner-grid { grid-template-columns:1fr; }
  .home-banner-side { grid-template-columns:1fr 1fr; }
  .home-refresh .home-category-links { grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px 10px; }
  .home-refresh .home-category-links > a { font-size:12px; gap:8px; }
  .home-category-links .category-orb { width:76px; height:76px; }
  .mahsun-modern .product-card .product-title a { font-size:12px; line-height:23px; }
  .mahsun-modern .product-card .image-card { aspect-ratio:1.18; margin:0 0 10px; padding:6px; }
  .mahsun-modern .product-card .product-price { font-size:13px; }
  .mahsun-modern .product-card .cart a { min-height:42px; font-size:11px; }
  .smart-search-item { gap:8px; font-size:12px; }
  .smart-search-item small { max-width:82px; font-size:10px; }
  .mahsun-modern .smart-search input { font-size:16px; }
}

.mobile-language { display:none; }
@media(max-width:992px) { .mahsun-modern .topbar > .row > .mahsun-brand { flex:1; max-width:calc(100% - 75px); } .mahsun-modern .mobile-language { display:block; flex:0 0 auto; } .mobile-language ul { padding:0; margin:0; list-style:none; } .mahsun-modern .topbar > .row > .home-search-column { flex:0 0 100%; max-width:100%; } }
.variant-gallery-toggle { min-height:44px; padding:8px 20px; border:1px solid #bdc9d1; border-radius:8px; background:#fff; color:#033593; }

/* Shared card layout and the header each own their stacking context. */
.mahsun-modern .main-header .topbar { position:relative; z-index:5; overflow:visible; }
.mahsun-modern .main-header .main-menu { position:relative; z-index:2; }
.mahsun-modern .home-search-column { position:relative; z-index:10; }
.mahsun-modern .smart-search { z-index:10; isolation:auto; }
.home-category-links .category-orb { background:#033593; }
.home-category-links .category-orb-icon img { filter:brightness(0) invert(1); mix-blend-mode:normal; }
.home-category-links .category-orb-photo { padding:0; overflow:hidden; }
.home-category-links .category-orb-photo img { object-fit:cover; mix-blend-mode:normal; }
.mahsun-modern .product-card { display:flex; flex-direction:column; }
.mahsun-modern .product-card .image-card { display:block; flex:none; width:100%; aspect-ratio:1.15; height:auto; padding:0; margin:0 0 12px; background:#fff; isolation:isolate; border-radius:12px; overflow:hidden; }
.mahsun-modern .product-card .image-card img { display:block; position:absolute; inset:0; width:100%; height:100%; object-fit:contain; padding:8px; margin:0; background:#fff; mix-blend-mode:normal; transform:none; animation:none; transition:none; }
.mahsun-modern .product-card .image-card .product-image-main { opacity:1; visibility:visible; }
.mahsun-modern .product-card .image-card .image-hover { opacity:0; visibility:hidden; pointer-events:none; }
.mahsun-modern .product-card .product-card-body { display:flex; flex:1; flex-direction:column; padding:0 2px 6px; min-width:0; }
.mahsun-modern .product-card .product-title { height:48px; min-height:48px; margin:0 0 8px; }
.mahsun-modern .product-card .product-prices-div { display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-start; min-height:30px; margin:0; float:none; position:static; }
.mahsun-modern .product-card .price-index-h { height:auto; min-height:30px; margin:0 0 10px; }
.mahsun-modern .product-card .product-price { float:none; display:inline-block; white-space:nowrap; }
.mahsun-modern .product-card .cart { position:static; float:none; clear:both; width:100%; height:auto; margin-top:auto; }
.mahsun-modern .product-card .cart a { width:100%; min-height:44px; padding:8px; }
@media(hover:hover) and (pointer:fine) {
 .mahsun-modern .product-card .has-hover-image:hover .product-image-main { opacity:0; visibility:hidden; }
 .mahsun-modern .product-card .has-hover-image:hover .image-hover { opacity:1; visibility:visible; }
}
.home-refresh .home-product-grid[data-product-carousel] { display:flex; gap:20px; overflow-x:auto; overflow-y:hidden; scroll-snap-type:x mandatory; scroll-padding-inline:1px; scrollbar-width:thin; scrollbar-color:#94a9c0 transparent; overscroll-behavior-x:contain; padding-block:4px 12px; }
.home-refresh .home-product-grid[data-product-carousel] > .item { flex:0 0 calc((100% - 60px)/4); scroll-snap-align:start; min-width:0; }
.product-carousel-controls { display:flex; align-items:center; justify-content:center; gap:16px; margin-top:12px; }
.product-carousel-controls button { border:1px solid #c3cfda; background:#fff; color:#033593; width:44px; height:44px; border-radius:50%; font-size:24px; }
.product-carousel-controls button:disabled { opacity:.35; cursor:default; }
.product-carousel-controls span { min-width:62px; text-align:center; color:#526477; font-size:13px; font-variant-numeric:tabular-nums; }
@media(max-width:992px) { .home-refresh .home-product-grid[data-product-carousel] > .item { flex-basis:calc((100% - 32px)/2.3); } }
@media(max-width:600px) {
 .home-refresh .home-product-grid[data-product-carousel] { gap:12px; }
 .home-refresh .home-product-grid[data-product-carousel] > .item { flex-basis:calc((100% - 18px)/1.7); }
 .mahsun-modern .product-card .image-card { aspect-ratio:1.05; }
 .mahsun-modern .product-card .cart a { font-size:12px; }
}

.magazine-page { padding:40px 0 56px; }
.magazine-heading { margin-bottom:28px; }
.magazine-heading h1 { font-size:32px; font-weight:800; color:#033593; line-height:1.6; }
.magazine-heading p,.magazine-count { color:#647586; font-size:14px; }
.magazine-filters { display:flex; flex-wrap:wrap; align-items:end; gap:16px; margin-bottom:24px; }
.magazine-filters label { display:grid; gap:8px; flex:1; font-size:13px; min-width:180px; }
.magazine-filters input,.magazine-filters select { width:100%; min-height:46px; background:white; border:1px solid #c8d2db; border-radius:9px; padding:8px 12px; color:#033593; }
.magazine-filters button { min-height:46px; background:#033593; color:white; border:0; border-radius:9px; padding:8px 24px; }
.magazine-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:30px 24px; margin:24px 0 36px; }
.magazine-card { min-width:0; }
.magazine-card img { width:100%; aspect-ratio:1.65; object-fit:cover; border-radius:12px; }
.magazine-card h2 { font-size:17px; line-height:1.8; font-weight:700; margin:14px 0 4px; color:#033593; }
.magazine-card p { color:#66788a; font-size:12px; }
.magazine-article { max-width:880px; margin:32px auto; }
.magazine-article h1 { font-size:32px; line-height:1.8; font-weight:800; color:#033593; }
.magazine-cover { width:100%; max-height:540px; object-fit:cover; border-radius:14px; margin:24px 0; }
.magazine-copy { color:#294458; font-size:16px; line-height:2.2; overflow-wrap:anywhere; }
.magazine-copy img { display:block; max-width:100%; height:auto; margin:24px auto; border-radius:10px; }
.magazine-copy h2,.magazine-copy h3 { font-size:22px; line-height:1.8; margin:32px 0 14px; }
.magazine-copy figure { max-width:100%; }
.mahsun-modern .form-ui { border-radius:16px; padding:28px; border:1px solid #e0e6eb; box-shadow:none; }
.mahsun-modern .form-ui .input-ui { border-radius:9px; min-height:48px; }
@media(max-width:760px) { .magazine-grid { grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 16px; } .magazine-heading h1,.magazine-article h1 { font-size:25px; } }
@media(max-width:480px) { .magazine-grid { grid-template-columns:1fr; } .magazine-page { padding-top:24px; } .magazine-filters label { min-width:100%; } .magazine-copy { font-size:15px; } }

/* A quiet notice, outside the purchase flow and mobile navigation. */
.ms-cookie-notice{position:fixed;bottom:24px;inset-inline-end:24px;z-index:1300;width:380px;max-width:calc(100% - 48px);background:#fff;color:#033593;padding:24px;border-radius:14px;box-shadow:0 8px 36px #03359326;text-align:start}
.ms-cookie-notice h2{margin:0 0 8px;font-size:17px;font-weight:700;line-height:1.6;color:#033593}
.ms-cookie-notice p{margin:0 0 18px;font-size:14px;font-weight:400;line-height:1.85;color:#526378}
.ms-cookie-notice button{display:block;margin-inline-start:auto;border:0;color:#fff;background:#033593;border-radius:8px;min-height:44px;min-width:112px;padding:10px 22px;font:inherit;font-size:14px;font-weight:700;cursor:pointer;transition:background .16s ease-out}
.ms-cookie-notice button:hover{background:#033593}
.ms-cookie-notice button:focus-visible{outline:3px solid #033593;outline-offset:4px}
.ms-cookie-notice button:disabled{background:#526378;cursor:wait}
.ms-cookie-notice [data-cookie-status]:not(:empty){display:block;margin-top:12px;color:#9a252b;font-size:13px;line-height:1.7}
.ms-cookie-notice ::selection{background:#dbe7f3;color:#033593}
.ms-sales-notice{margin:0;padding:16px 24px;background:#fff4dc;color:#624810;text-align:center}
.ms-catalog-note{padding:20px 0;color:#526378}
html[lang=en] .mobile-bottom-nav{grid-template-columns:repeat(4,1fr)}
@media(max-width:600px){.ms-cookie-notice{bottom:calc(80px + env(safe-area-inset-bottom,0px));inset-inline-end:12px;width:calc(100% - 24px);max-width:380px;padding:18px 20px}.ms-cookie-notice p{margin-bottom:14px}.ms-cookie-notice h2{font-size:16px}}
@media(prefers-reduced-motion:reduce){.ms-cookie-notice button{transition:none}}

.modern-mega-body.has-photos{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:36px;align-items:start}
.modern-mega-body.has-photos .modern-mega-grid{columns:3;column-gap:24px}
.modern-menu-photos{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.modern-menu-photo{display:block!important;min-width:0;color:#033593!important}
.modern-menu-photo img{display:block;width:100%;height:auto;aspect-ratio:1.2;object-fit:cover;border-radius:0;background:#f5f7fa}
.modern-menu-photo>span{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-top:12px;font-size:14px;line-height:1.8}
.modern-menu-photo:focus-visible{outline:3px solid #033593;outline-offset:4px}.modern-menu-photo:hover>span{text-decoration:underline;text-underline-offset:4px}
.mobile-categories .modern-menu-photos{padding:20px 0}.mobile-categories .modern-menu-photo{padding:0}.mobile-categories .modern-menu-photo>span{font-size:12px}
.mahsun-modern .product-card .image-card{position:relative}
.ms-badge-clip{position:absolute;inset:0;z-index:4;overflow:hidden;pointer-events:none;border-radius:inherit}
.ms-product-badges{position:absolute;top:14px;right:0;display:flex;flex-direction:column;align-items:flex-end;gap:4px;visibility:visible;transform:translateX(0);transition:transform .3s cubic-bezier(.2,.65,.3,1),visibility .3s}
.ms-product-badge{display:block;background:#033593;color:#fff;padding:6px 10px;font-size:12px;line-height:1.6;font-weight:500}
@media(min-width:901px) and (hover:hover) and (pointer:fine){.product-card:hover .ms-product-badges,.product-card:focus-within .ms-product-badges{transform:translateX(101%);visibility:hidden}}
@media(max-width:1100px){.modern-mega-body.has-photos{grid-template-columns:1fr}.modern-menu-photos{max-width:600px}}
@media(prefers-reduced-motion:reduce){.ms-product-badges{transition:none!important;transform:none!important;visibility:visible!important}}

/* Shared catalogue controls and narrow-screen reading, release 0.8.3. */
.mahsun-modern .product-card .cart:has(> a),.mahsun-modern .product-card .cart:hover:has(> a){background:#033593!important;border-color:#033593;border-radius:10px}
.mahsun-modern .product-card .cart a,.mahsun-modern .product-card .ms-select-options{background:#033593!important;color:#fff!important;border-color:#033593!important;border-radius:10px;min-height:44px}
.mahsun-modern .product-card .cart a:hover,.mahsun-modern .product-card .ms-select-options:hover{box-shadow:inset 0 0 0 2px #fff8}
.mahsun-modern .product-card .cart a:focus-visible{outline:3px solid #033593;outline-offset:4px}
.ms-catalog-page{padding:32px 0 48px}.ms-catalog-page h1{font-size:28px;line-height:1.6;color:#033593}
.ms-all-products-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:32px 20px;margin:24px 0}
.ms-all-products-grid>.product-card{min-width:0}
.ms-filter-toggle{display:none}
.magazine-page,.magazine-article,.magazine-copy,.magazine-card,.magazine-heading{min-width:0;max-width:100%;overflow-wrap:anywhere}
.magazine-copy p,.magazine-copy div,.magazine-copy span,.magazine-copy a,.magazine-copy li{max-width:100%!important;white-space:normal!important;overflow-wrap:anywhere}
.magazine-copy figure{width:auto!important;margin-inline:0}.magazine-copy iframe,.magazine-copy video{max-width:100%}
.magazine-copy table{display:block;max-width:100%;overflow-x:auto}.magazine-copy pre{white-space:pre-wrap;overflow-wrap:anywhere}
.magazine-page .pagination{display:flex;flex-wrap:wrap;gap:4px}.magazine-page .page-jump{max-width:100%;flex-wrap:wrap}
.mahsun-modern .breadcrumb nav{display:flex;flex-wrap:wrap;gap:8px;white-space:normal;overflow-wrap:anywhere}
@media(max-width:991px){
.ms-filter-column{margin-bottom:16px}.ms-filter-toggle{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:48px;border:1px solid #d7e0eb;border-radius:10px;background:#fff;color:#033593;font:inherit;padding:10px 16px}
.ms-filter-toggle:focus-visible{outline:3px solid #033593;outline-offset:3px}
#ms-filter-panel{display:none;margin-top:12px}#ms-filter-panel.is-open{display:block}
.ms-all-products-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:600px){.ms-all-products-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 12px}.ms-catalog-page{padding-top:24px}.magazine-page h1{font-size:24px}.magazine-page .container{min-width:0}.magazine-article input,.magazine-article textarea{max-width:100%}}
