/* Vazirmatn: files are already on the owner's XAMPP machine; NO font files are shipped. */
@font-face{font-family:'Vazirmatn';src:url('fonts/vazirmatn/Vazirmatn-Regular.woff2') format('woff2');font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:'Vazirmatn';src:url('fonts/vazirmatn/Vazirmatn-Medium.woff2') format('woff2');font-style:normal;font-weight:500;font-display:swap}
@font-face{font-family:'Vazirmatn';src:url('fonts/vazirmatn/Vazirmatn-SemiBold.woff2') format('woff2');font-style:normal;font-weight:600;font-display:swap}
@font-face{font-family:'Vazirmatn';src:url('fonts/vazirmatn/Vazirmatn-Bold.woff2') format('woff2');font-style:normal;font-weight:700;font-display:swap}
/* All site elements, controls and admin pages use one Persian font family. */
html,body,button,input,select,textarea,option,table,th,td{font-family:'Vazirmatn',Tahoma,sans-serif}
:root{--ink:#17243d;--muted:#65758b;--border:#e5eaf2;--bg:#f6f8fc;--blue:#165ed8;--navy:#102b5c;--gold:#f3a534;--radius:17px;--shadow:0 10px 34px rgba(20,43,84,.055)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;direction:rtl;background:var(--bg);color:var(--ink);font-family:'Vazirmatn',Tahoma,sans-serif;font-size:14px;line-height:1.85}img{max-width:100%}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button{cursor:pointer}input,select,textarea{max-width:100%}.container{width:min(1230px,calc(100% - 48px));margin-inline:auto}
.topline{background:#f4f6fa;border-bottom:1px solid #edf0f5;color:#69778c;font-size:11px}.top-inner{display:flex;justify-content:space-between;gap:15px;padding:8px 0}.site-header{background:white;box-shadow:0 3px 20px rgba(29,46,72,.04);position:relative;z-index:10}.header-main{display:flex;align-items:center;gap:30px;padding:21px 0}.logo{display:flex;align-items:center;gap:11px;flex-shrink:0}.logo-mark{width:48px;height:48px;border-radius:16px;display:grid;place-items:center;background:linear-gradient(145deg,#1e70e2,#183d8c);color:white;font-family:'Vazirmatn',Tahoma,sans-serif;font-size:30px;font-weight:bold;line-height:1;box-shadow:0 9px 18px #165ed823}.logo strong{display:block;font-size:24px;font-weight:700;letter-spacing:-1px;line-height:1.4}.logo small{display:block;font-size:10px;color:#7c879a}.search-header{display:flex;align-items:center;background:#f3f6fb;border-radius:14px;padding:5px;flex:1;max-width:550px;border:1px solid #e8edf6}.search-header input{background:transparent;border:0;outline:none;flex:1;padding:8px 14px;color:#26344c;min-width:100px}.search-header button{border:0;border-radius:10px;background:var(--blue);width:43px;height:43px;color:white;font-size:29px;line-height:1}.header-actions{display:flex;gap:17px;align-items:center;font-size:12px;font-weight:bold;white-space:nowrap}.header-actions a:hover,.nav-inner a:hover{color:var(--blue)}.outline-btn{padding:7px 14px;border:1px solid #cbd8f0;border-radius:11px;color:#1954b6}.navline{border-top:1px solid var(--border)}.nav-inner{display:flex;align-items:center;gap:26px;overflow:auto;white-space:nowrap;scrollbar-width:none}.nav-inner a{padding:14px 0;font-size:12px;font-weight:bold;color:#34435c}.nav-inner a.nav-browse{background:var(--blue);color:white;padding:13px 24px;border-radius:0 0 11px 11px;margin-left:7px}.nav-inner a.nav-browse:hover{color:white;background:#0c4fbe}
.hero-layout{display:grid;grid-template-columns:minmax(0,2.15fr) minmax(230px,1fr);gap:16px;margin-top:27px}.hero-main{border-radius:22px;background:linear-gradient(115deg,#102952,#165fca 72%,#317bd9);min-height:380px;position:relative;display:flex;overflow:hidden;color:white}.hero-main:before{content:'';position:absolute;width:520px;height:520px;border-radius:50%;border:1px solid #ffffff25;left:-160px;top:-150px}.hero-copy{padding:57px 50px;max-width:55%;position:relative;z-index:2}.hero-label{font-size:12px;background:#ffffff21;padding:8px 15px;border-radius:30px}.hero-copy h1{font-size:42px;line-height:1.5;letter-spacing:-1.5px;margin:18px 0 12px}.hero-copy h1 em{font-style:normal;color:#ffd380}.hero-copy p{color:#d9e8ff;font-size:13px;line-height:2.1;margin-bottom:24px}.hero-buttons{display:flex;align-items:center;gap:18px}.btn{background:var(--blue);border:1px solid var(--blue);border-radius:11px;padding:11px 21px;display:inline-flex;justify-content:center;align-items:center;color:#fff;font-weight:bold;font-size:13px;transition:background .2s,transform .2s}.btn:hover{background:#0d4dbf;transform:translateY(-1px)}.light-btn{background:#fff;border-color:#fff;color:#164da5}.light-btn:hover{background:#f5faff}.text-link-light{color:#dceaff;font-weight:bold;font-size:12px}.hero-art{position:absolute;left:35px;top:20px;bottom:0;width:42%;display:grid;place-items:center}.hero-phone{width:176px;height:321px;border-radius:32px;background:#111c30;border:7px solid #1e2d47;transform:rotate(-13deg) translate(-14px,34px);box-shadow:0 20px 45px #07173080;position:relative;padding:9px;z-index:2}.hero-speaker{width:63px;height:7px;background:#192740;border-radius:10px;position:absolute;top:11px;left:calc(50% - 31px);z-index:5}.hero-screen{height:100%;border-radius:21px;background:linear-gradient(160deg,#21c9d7,#1b5bc8 64%,#0e1a60);overflow:hidden;position:relative}.hero-orb{width:250px;height:230px;position:absolute;top:65px;left:-55px;background:radial-gradient(ellipse at 35% 30%,#fff3,#34d7f0b8 45%,#1954b8dd 70%);border-radius:49% 51% 55% 45%;transform:rotate(40deg)}.hero-chip{position:absolute;background:#ffffffed;border-radius:14px;color:#1952aa;padding:9px 16px;font-size:12px;font-weight:bold;box-shadow:0 13px 25px #07132c44;z-index:4}.hero-chip-one{top:55px;left:12px;transform:rotate(7deg)}.hero-chip-two{bottom:48px;right:5px;transform:rotate(-8deg)}.hero-side{display:grid;gap:16px;grid-template-rows:1fr 1fr}.side-promo{padding:25px 25px 20px;border-radius:19px;position:relative;overflow:hidden;min-height:175px}.side-promo>span{font-size:11px;opacity:.75}.side-promo strong{font-size:21px;display:block;line-height:1.6;margin:6px 0}.side-promo a{font-size:12px;font-weight:bold}.side-promo b{font-size:140px;position:absolute;left:-5px;bottom:-76px;line-height:1;opacity:.13}.orange-promo{background:#fff0d7;color:#a56414}.blue-promo{background:#e4edff;color:#1d549d}
.section{margin-top:52px}.section-head{display:flex;align-items:end;justify-content:space-between;gap:12px;margin-bottom:21px}.section-head h2{font-size:22px;letter-spacing:-.4px;margin:1px 0}.section-head>a{font-size:12px;color:var(--blue);font-weight:bold}.eyebrow{color:#2a71cd;font-size:11px;font-weight:bold;letter-spacing:.2px}.category-section{margin-top:48px}.category-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:15px}.category-card{background:#fff;border:1px solid var(--border);border-radius:17px;padding:23px 12px 18px;display:flex;flex-direction:column;align-items:center;text-align:center;box-shadow:var(--shadow);transition:transform .2s,border-color .2s}.category-card:hover{transform:translateY(-3px);border-color:#b9d3f4}.category-icon{width:80px;height:80px;display:grid;place-items:center;border-radius:23px;background:#ecf4ff;color:#1967cc;font-size:42px;line-height:1}.category-card strong{font-size:14px;margin-top:15px}.category-card small{font-size:11px;color:#8a98a9;margin-top:6px}.brand-strip{margin-top:46px;background:#fff;border-radius:17px;border:1px solid var(--border);display:flex;justify-content:space-around;align-items:center;padding:21px 24px;gap:15px}.brand-strip>div small{display:block;color:#8b98ac;font-size:11px}.brand-strip>div strong{font-size:15px}.brand-strip>a{font-family:'Vazirmatn',Tahoma,sans-serif;font-weight:700;font-size:23px;letter-spacing:-1px;color:#556781}.brand-strip>a:hover{color:var(--blue)}
.products-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px}.product-card{background:#fff;border:1px solid var(--border);border-radius:17px;overflow:hidden;box-shadow:var(--shadow);transition:transform .22s,border-color .22s;display:flex;flex-direction:column;min-width:0}.product-card:hover{transform:translateY(-4px);border-color:#bdd6fa}.product-photo{position:relative;height:218px;background:linear-gradient(145deg,#fafdff,#f1f5fb);display:flex;align-items:center;justify-content:center;padding:23px;overflow:hidden}.product-photo img{height:100%;width:100%;object-fit:contain;mix-blend-mode:multiply;transition:transform .25s}.product-card:hover .product-photo img{transform:scale(1.045)}.out-stock{position:absolute;top:15px;right:12px;background:#e9edf3;color:#6b7890;padding:3px 9px;border-radius:7px;font-size:10px}.product-body{padding:17px 18px;display:flex;flex-direction:column;flex:1}.product-meta{font-size:10px;color:#73849d}.product-body h3{font-size:13px;font-weight:bold;line-height:2;min-height:52px;margin:9px 0 17px}.product-foot{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #edf0f5;padding-top:12px;margin-top:auto}.price{font-size:14px;font-weight:700;color:#163b7b}.round-arrow{background:#eef4ff;color:#1262cb;display:grid;place-items:center;width:30px;height:30px;border-radius:50%;font-size:15px}.service-strip{margin-top:55px;background:#fff;border-radius:18px;display:grid;grid-template-columns:repeat(3,1fr);padding:24px;border:1px solid var(--border);gap:12px}.service-strip>div{display:grid;grid-template-columns:52px 1fr;align-items:center;column-gap:10px}.service-strip>div>span{grid-row:span 2;background:#e8f1ff;color:#205fc1;width:48px;height:48px;border-radius:14px;display:grid;place-items:center;font-size:23px}.service-strip strong{font-size:13px}.service-strip small{color:#8190a5;font-size:11px}.article-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.article-card{background:white;border-radius:17px;overflow:hidden;border:1px solid var(--border);box-shadow:var(--shadow);display:flex;flex-direction:column}.article-photo{height:130px;background:linear-gradient(135deg,#d9e8ff,#eaf4fe);display:grid;place-items:center;font-size:50px;color:#3b70bb}.article-inner{padding:21px;flex:1;display:flex;flex-direction:column}.article-inner small{color:#8595ab;font-size:10px}.article-inner h3{font-size:15px;line-height:1.8;margin:9px 0}.article-inner p{font-size:12px;color:#6f7f93;min-height:44px;margin:0 0 14px}.article-inner span{color:var(--blue);font-size:12px;font-weight:bold;margin-top:auto}.footer{background:#102440;color:#dce6f6;margin-top:70px}.footer-inner{padding:46px 0 37px;display:grid;grid-template-columns:2.5fr 1fr 1fr;gap:55px}.footer-inner strong{color:#fff;font-size:17px;display:block;margin-bottom:12px}.footer-inner p{font-size:12px;color:#b7c9df;max-width:460px;line-height:2.3}.footer-inner a{display:block;font-size:12px;margin:4px 0;color:#b7c9df}.footer-inner a:hover{color:white}.footer-bottom{border-top:1px solid #ffffff19;padding:16px 0;font-size:11px;color:#9bb1d0}
.breadcrumbs{margin:26px 0;color:#94a1b3;font-size:12px}.breadcrumbs a{color:#58729d}.page-heading{display:flex;align-items:end;justify-content:space-between;margin:26px 0 28px;gap:12px}.page-heading h1{font-size:26px;margin:6px 0}.page-heading p{color:#8996a8;font-size:12px;margin:0}.plain-link{color:var(--blue);font-weight:bold;font-size:12px}.catalog-layout{display:grid;grid-template-columns:245px minmax(0,1fr);gap:25px;align-items:start}.filters{background:#fff;padding:24px 19px;border:1px solid var(--border);border-radius:17px;box-shadow:var(--shadow);position:sticky;top:15px}.filters h3{margin:0 0 20px;font-size:16px}.filters form,.auth-card form{display:grid;gap:16px}.filters label,.auth-card label,.editor-form label,.article-form label{display:grid;gap:7px;color:#4e5e75;font-size:12px;font-weight:bold}.filters input:not([type=checkbox]),.filters select,.auth-card input,.editor-form input:not([type=file]):not([type=checkbox]),.editor-form select,.editor-form textarea,.article-form input,.article-form select,.article-form textarea{width:100%;min-width:0;padding:10px 12px;border:1px solid #dce4ef;border-radius:10px;background:#fcfdff;outline:none;color:var(--ink)}.filters input:focus,.filters select:focus,.auth-card input:focus,.editor-form input:focus,.editor-form textarea:focus,.article-form input:focus{border-color:#9cbff0}.checkbox-row{display:flex!important;flex-direction:row;align-items:center;gap:9px!important}.filters .btn{width:100%}.catalog-results>.products-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.pagination{display:flex;justify-content:center;gap:8px;margin:35px 0}.pagination a{background:white;border:1px solid var(--border);border-radius:10px;min-width:40px;display:grid;place-items:center;height:40px;color:#52709e}.pagination a.selected{background:var(--blue);color:white}.empty-state{text-align:center;background:white;padding:60px 20px;border-radius:20px;border:1px solid var(--border)}.empty-state h1,.empty-state h2{font-size:22px;margin-bottom:8px}.empty-state p{color:var(--muted)}.empty-state .btn{margin-top:15px}
.detail-grid{display:grid;grid-template-columns:1fr 1.1fr;gap:28px;align-items:start}.detail-images,.detail-info,.panel{background:white;border:1px solid var(--border);border-radius:19px;box-shadow:var(--shadow)}.detail-images{padding:23px}.detail-main-photo{height:400px;background:#f6f9fc;display:grid;place-items:center;border-radius:14px;padding:28px}.detail-main-photo img{max-height:100%;max-width:100%;object-fit:contain}.thumb-list{display:flex;gap:9px;margin-top:13px}.thumb{height:72px;width:72px;border:1px solid #d9e6f3;border-radius:11px;background:#f6f8fc;padding:7px}.thumb img{width:100%;height:100%;object-fit:contain}.detail-info{padding:31px}.pill{display:inline-block;border-radius:9px;background:#eef5ff;color:#2968c4;font-size:11px;font-weight:bold;padding:5px 12px}.detail-info h1{font-size:24px;line-height:1.9;margin:17px 0}.detail-divider{height:1px;background:var(--border);margin:17px 0}.muted{color:#7c8da2;font-size:12px}.detail-summary{color:#566a83;font-size:13px;line-height:2.25;margin:22px 0}.purchase-box{border-radius:14px;background:#f7faff;border:1px solid #e7edf8;padding:24px;display:flex;flex-direction:column;gap:10px}.purchase-box>span{font-size:11px;color:#7187a2}.big-price{font-size:26px;color:#1a4b98}.availability{font-size:12px}.available{color:#21835e}.unavailable{color:#b15d49}.purchase-box .btn{margin-top:10px}.btn.is-disabled{background:#8da1bc;border-color:#8da1bc;color:white;cursor:not-allowed}.info-panels{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin-top:29px}.panel{padding:25px}.panel h2{font-size:18px;margin:0 0 19px}.rich-text{color:#566b82;font-size:13px;line-height:2.55;overflow-wrap:anywhere}.spec-table{width:100%;border-collapse:collapse;font-size:12px}.spec-table th,.spec-table td{padding:11px;text-align:right;border-bottom:1px solid #edf1f6}.spec-table th{background:#f8faff;color:#627590;width:40%;font-weight:normal}.article-page{max-width:870px}.article-page h1{font-size:28px}.article-body{margin-top:25px;min-height:300px}
.flash{max-width:1230px;margin:14px auto;padding:12px 18px;border-radius:12px;background:#e3f6ed;color:#116447;font-size:13px}.flash-error{background:#fff0ec;color:#a94039}
@media (max-width:1100px){.header-main{gap:16px}.header-actions{gap:9px}.hero-copy{padding:45px 32px}.hero-copy h1{font-size:35px}.products-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.hero-side .side-promo strong{font-size:17px}.nav-inner{gap:20px}.catalog-results>.products-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:780px){.container{width:min(100% - 28px,1230px)}.top-inner{display:none}.header-main{flex-wrap:wrap;padding:15px 0;gap:12px}.logo strong{font-size:19px}.logo-mark{width:42px;height:42px}.header-actions{margin-right:auto;gap:12px;font-size:11px}.search-header{order:3;max-width:none;flex-basis:100%}.nav-inner{gap:17px}.nav-inner a{font-size:11px}.hero-layout{grid-template-columns:1fr}.hero-main{min-height:320px}.hero-copy{padding:38px 28px;max-width:65%}.hero-art{left:0;width:39%}.hero-phone{transform:rotate(-13deg) scale(.74) translate(-10px,22px)}.hero-side{grid-template-columns:1fr 1fr;grid-template-rows:auto}.side-promo{min-height:160px}.category-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.category-icon{width:64px;height:64px;font-size:35px}.category-card{padding:18px 9px}.products-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.product-photo{height:182px}.product-body{padding:12px}.product-body h3{font-size:12px;min-height:70px}.price{font-size:12px}.brand-strip>a{font-size:16px}.brand-strip>div strong{font-size:12px}.service-strip{grid-template-columns:1fr;gap:20px}.article-grid{grid-template-columns:repeat(2,1fr)}.footer-inner{grid-template-columns:2fr 1fr;gap:30px}.footer-inner>div:last-child{display:none}.catalog-layout{grid-template-columns:1fr}.filters{position:static}.filters form{grid-template-columns:repeat(2,1fr)}.filters .btn{align-self:end}.catalog-results>.products-grid{grid-template-columns:repeat(2,1fr)}.detail-grid{grid-template-columns:1fr;gap:16px}.detail-main-photo{height:330px}.info-panels{grid-template-columns:1fr}}
@media (max-width:480px){.header-actions>a:first-child,.header-actions>a:nth-child(2){display:none}.hero-main{min-height:290px}.hero-copy{max-width:72%;padding:32px 19px}.hero-copy h1{font-size:26px}.hero-copy p{font-size:11px}.hero-label{font-size:9px}.hero-art{left:-38px;width:40%}.hero-phone{transform:rotate(-13deg) scale(.59)}.hero-chip{display:none}.hero-buttons{gap:9px}.hero-buttons .btn{font-size:10px;padding:9px}.text-link-light{font-size:10px}.side-promo{padding:17px;min-height:135px}.side-promo strong{font-size:14px!important}.side-promo span,.side-promo a{font-size:10px}.category-grid{grid-template-columns:repeat(3,1fr)}.category-card strong{font-size:11px}.category-card small{font-size:9px}.category-icon{width:55px;height:55px}.brand-strip{flex-wrap:wrap;padding:15px}.brand-strip>div{flex-basis:100%;text-align:center}.brand-strip>a{font-size:19px}.section{margin-top:36px}.section-head h2{font-size:17px}.product-photo{height:140px;padding:15px}.product-body h3{font-size:11px;line-height:1.85;min-height:59px}.product-meta{font-size:9px}.price{font-size:10px}.round-arrow{width:25px;height:25px}.article-grid{grid-template-columns:1fr}.footer-inner{grid-template-columns:1fr}.footer-inner>div:nth-child(2){display:none}.page-heading h1{font-size:20px}.filters form{grid-template-columns:1fr}.detail-info{padding:20px}.detail-info h1{font-size:20px}}

/* MiPart branding V0.2: logo can be placed at assets/brand/logo.webp/png/svg */
.logo{min-width:185px;white-space:nowrap;align-items:center}
.logo-mark{width:54px;height:54px;flex:0 0 54px;font-family:'Vazirmatn',Tahoma,sans-serif;font-size:28px;font-weight:700;border-radius:15px}
.brand-logo-image{display:block;width:54px;height:54px;object-fit:contain;flex:0 0 54px;border-radius:10px}
.logo strong{font-weight:700;letter-spacing:0}
.logo small{white-space:normal;line-height:1.7}
@media(max-width:780px){.logo{min-width:0}.logo-mark,.brand-logo-image{width:44px;height:44px;flex-basis:44px}}

/* =========================
   MiPart Header Refresh V0.3
   inspired by premium parts shops; no DB changes
   ========================= */
.site-header-royal{background:#fff;border-bottom:1px solid #e7edf7;box-shadow:0 8px 30px rgba(25,55,100,.05)}
.header-main--royal{display:grid;grid-template-columns:260px minmax(0,1fr) 220px;align-items:center;gap:22px;padding:18px 0 16px}
.header-quickbox{display:flex;align-items:center;gap:12px;justify-content:flex-start}
.mini-user-btn{width:58px;height:58px;border-radius:18px;background:#fff;border:1px solid #dfe7f2;display:grid;place-items:center;box-shadow:0 8px 22px rgba(22,47,82,.06)}
.header-card{position:relative;display:flex;align-items:center;gap:12px;padding:14px 18px;border-radius:18px;text-decoration:none}
.header-card-cart{background:linear-gradient(135deg,#183857,#214c76);color:#fff;min-width:182px;box-shadow:0 12px 28px rgba(24,56,87,.22)}
.header-card-cart strong{display:block;font-size:15px;color:#fff;line-height:1.2}
.header-card-cart small{display:block;font-size:10px;color:#c8daee;margin-top:4px;line-height:1.8}
.header-card-badge{position:absolute;left:16px;top:14px;width:10px;height:10px;border-radius:50%;background:#fff;border:3px solid #183857;box-shadow:0 0 0 2px rgba(255,255,255,.2)}
.icon-svg{display:inline-grid;place-items:center;flex:0 0 auto}
.icon-svg svg{width:24px;height:24px;stroke:currentColor;stroke-width:1.8;fill:none;stroke-linecap:round;stroke-linejoin:round}
.header-card-cart .icon-svg{color:#fff}
.mini-user-btn .icon-svg{color:#2e537a}
.search-header--royal{display:flex;align-items:center;background:#f4f6fb;border:1px solid #e6ebf4;border-radius:22px;padding:8px;max-width:none;box-shadow:inset 0 1px 0 rgba(255,255,255,.5)}
.search-header--royal input{background:transparent;border:none;height:54px;padding:0 18px;font-size:18px;color:#2a3f5f}
.search-header--royal input::placeholder{color:#8a98ab;font-size:15px}
.search-header--royal .search-submit{width:54px;height:54px;border:none;border-radius:16px;background:linear-gradient(180deg,#3275e5,#2362d2);color:#fff;display:grid;place-items:center;cursor:pointer;box-shadow:0 10px 20px rgba(35,98,210,.22)}
.search-header--royal .search-submit:hover{filter:brightness(1.02)}
.logo--royal{justify-content:flex-end;min-width:0;padding-inline-start:16px;border-inline-start:1px solid #edf1f7}
.logo--royal .brand-logo-image{width:auto;height:86px;max-width:230px;object-fit:contain;border-radius:0;display:block}
.logo--royal .logo-mark{width:86px;height:86px;font-size:42px;border-radius:24px;background:linear-gradient(135deg,#184168,#2965ab);color:#fff;display:grid;place-items:center;box-shadow:0 10px 24px rgba(31,77,130,.2)}
.navline--royal{border-top:1px solid #edf2f8}
.navline--royal .nav-inner{gap:30px;min-height:64px}
.navline--royal .nav-inner>a{font-size:15px;font-weight:600;color:#2e4260}
.navline--royal .nav-inner>a:hover{color:#1659ca}
.navline--royal .nav-browse{margin-right:auto;padding:13px 20px;border-radius:0 0 18px 18px;background:linear-gradient(180deg,#2d72e4,#2667d8);color:#fff!important;box-shadow:0 12px 30px rgba(38,103,216,.15)}
.navline--royal .nav-browse:hover{filter:brightness(1.03)}
.topline{background:#eef3f9}
.top-inner{font-size:12px;color:#6d819a;padding:9px 0}
@media (max-width:1100px){
  .header-main--royal{grid-template-columns:220px minmax(0,1fr) 190px;gap:16px}
  .logo--royal .brand-logo-image{height:76px;max-width:200px}
  .search-header--royal input{font-size:16px}
}
@media (max-width:780px){
  .header-main--royal{grid-template-columns:1fr;gap:14px;padding:14px 0}
  .logo--royal{order:1;justify-content:center;border-inline-start:none;padding-inline-start:0}
  .search-header--royal{order:2}
  .header-quickbox{order:3;justify-content:center}
  .navline--royal .nav-inner{display:flex;overflow:auto;white-space:nowrap;padding-bottom:8px}
  .navline--royal .nav-browse{margin-right:0;flex:0 0 auto}
  .logo--royal .brand-logo-image{height:70px;max-width:180px}
}
@media (max-width:480px){
  .header-card-cart{min-width:0;padding:12px 14px}
  .header-card-cart strong{font-size:13px}
  .header-card-cart small{display:none}
  .search-header--royal input{height:48px;font-size:14px}
  .search-header--royal .search-submit,.mini-user-btn{width:50px;height:50px;border-radius:15px}
}


/* ============================================================
   MiPart V0.4 — strict RTL, compact header, unified nav
   Grid placement is explicit: brand RIGHT / search CENTER / cart LEFT.
   Search input RIGHT / submit button LEFT (RTL input then button).
   ============================================================ */
.mipart-header{background:#fff;box-shadow:0 5px 22px rgba(20,45,79,.035)}
.mipart-header-main{
  direction:rtl;display:grid;grid-template-columns:205px minmax(0,1fr) 128px;
  grid-template-areas:"brand search cart";align-items:center;column-gap:20px;
  padding:11px 0;min-height:84px;
}
.mipart-header-main .mipart-logo{
  grid-area:brand;direction:rtl;display:flex;justify-content:flex-start;align-items:center;
  padding:0;margin:0;border:0;min-width:0;min-height:60px;max-width:205px;
}
.mipart-header-main .mipart-logo .brand-logo-image{
  display:block;object-fit:contain;object-position:right center;
  width:auto;height:auto;max-height:64px;max-width:200px;flex:none;border:0;border-radius:0;
}
.mipart-header-main .mipart-logo .logo-mark{width:60px;height:60px;flex:0 0 60px;font-size:28px;border-radius:13px}
.mipart-header-main .mipart-search{
  grid-area:search;direction:rtl;display:flex;flex-direction:row;
  align-items:center;gap:5px;max-width:none;width:100%;min-width:0;
  margin:0;padding:5px;background:#f5f7fb;border:1px solid #e0e7f1;
  border-radius:13px;box-shadow:none;
}
.mipart-header-main .mipart-search input[name="q"]{
  order:0;flex:1 1 0;min-width:0;height:42px;padding:0 14px;
  direction:rtl;text-align:right;font-size:13px;font-weight:400;
  background:transparent;border:0;outline:none;color:#1b3752;
}
.mipart-header-main .mipart-search input[name="q"]::placeholder{font-size:13px;color:#8696ab}
.mipart-header-main .mipart-search .mipart-search-button{
  order:1;flex:0 0 43px;width:43px;height:43px;min-width:43px;
  display:grid;place-items:center;border:0;border-radius:10px;
  padding:0;background:#2167d5;color:#fff;box-shadow:none;cursor:pointer;
}
.mipart-header-main .mipart-search .mipart-search-button:hover{background:#1554b6}
.mipart-header-main .mipart-search .mipart-search-button .icon-svg svg{width:20px;height:20px}
.mipart-header-main .mipart-cart{
  grid-area:cart;direction:rtl;position:relative;min-width:0;width:128px;
  justify-self:end;z-index:20;
}
.mipart-header-main .mipart-cart>summary{
  list-style:none;user-select:none;cursor:pointer;display:flex;align-items:center;
  justify-content:center;gap:9px;height:47px;padding:0 10px;
  border:1px solid #d5e1ef;border-radius:12px;
  background:#fff;color:#244768;font-weight:600;font-size:12px;
  box-shadow:0 3px 14px rgba(19,49,88,.05);
}
.mipart-header-main .mipart-cart>summary::-webkit-details-marker{display:none}
.mipart-header-main .mipart-cart>summary::marker{content:''}
.mipart-header-main .mipart-cart>summary:hover{background:#f7faff;border-color:#bad0ed}
.mipart-header-main .mipart-cart .icon-svg svg{width:21px;height:21px}
.mipart-header-main .mipart-cart-tooltip{
  position:absolute;top:calc(100% + 9px);left:0;width:260px;
  padding:13px 16px;border:1px solid #dfe7f2;border-radius:12px;
  box-shadow:0 12px 32px rgba(17,40,74,.12);background:#fff;
  font-size:12px;line-height:2;color:#476078;
}
.mipart-nav{direction:rtl;background:#193e60;border-top:0;border-bottom:1px solid #163451}
.mipart-nav .mipart-nav-list{
  display:flex;direction:rtl;justify-content:flex-start;align-items:stretch;
  gap:0!important;min-height:48px;max-height:48px;
  overflow-x:auto;overflow-y:hidden;white-space:nowrap;scrollbar-width:none;
}
.mipart-nav .mipart-nav-list::-webkit-scrollbar{display:none}
.mipart-nav .mipart-nav-list>a{
  margin:0!important;align-self:stretch;flex:0 0 auto;
  display:flex;align-items:center;justify-content:center;
  padding:0 17px!important;border-radius:0!important;
  color:#edf5fd!important;border-left:1px solid rgba(255,255,255,.1);
  font-size:12px;font-weight:600;min-height:48px;line-height:1.5;
  background:transparent;
}
.mipart-nav .mipart-nav-list>a:hover{background:#245474!important;color:white!important}
.mipart-nav .mipart-nav-list>a.mipart-nav-title{
  background:#245e9a!important;gap:8px;color:#fff!important;
  padding-inline:20px!important;border-radius:0!important;
}
.mipart-nav .mipart-nav-list>a.mipart-nav-title:hover{background:#2772bc!important}
@media(max-width:900px){
  .mipart-header-main{grid-template-columns:165px minmax(0,1fr) 108px;gap:12px;min-height:75px;padding:9px 0}
  .mipart-header-main .mipart-logo .brand-logo-image{max-width:160px;max-height:57px}
  .mipart-header-main .mipart-cart{width:108px}
  .mipart-nav .mipart-nav-list>a{padding-inline:14px!important}
}
@media(max-width:650px){
  .mipart-header-main{
    grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"brand cart" "search search";
    gap:10px;padding:10px 0;min-height:unset;
  }
  .mipart-header-main .mipart-logo{min-height:48px}
  .mipart-header-main .mipart-logo .brand-logo-image{max-width:175px;max-height:52px}
  .mipart-header-main .mipart-cart{width:110px;justify-self:end}
  .mipart-header-main .mipart-search{width:100%;max-width:none;flex-basis:auto;min-width:0;order:initial}
  .mipart-header-main .mipart-search input[name="q"]{height:38px}
  .mipart-header-main .mipart-search .mipart-search-button{width:40px;height:40px;flex-basis:40px}
  .mipart-nav .mipart-nav-list{min-height:44px;max-height:44px}
  .mipart-nav .mipart-nav-list>a{min-height:44px;padding-inline:12px!important;font-size:11px}
}


/* MiPart homepage 0.5 — only hero/side promos, header 0.4 untouched */
.mipart-hero-slider{position:relative;min-height:380px;border-radius:22px;overflow:hidden;background:#123463;isolation:isolate;color:#fff}
.mipart-slide-track{position:relative;min-height:380px;height:100%;}
.mipart-hero-slide{position:absolute;inset:0;display:flex;overflow:hidden;visibility:hidden;opacity:0;pointer-events:none;transition:opacity .48s ease,visibility .48s ease;background:linear-gradient(115deg,#102952,#165fca 72%,#317bd9);}
.mipart-hero-slide.is-active{visibility:visible;opacity:1;pointer-events:auto;z-index:1}
.mipart-hero-slide::before{content:'';position:absolute;width:500px;height:500px;border:1px solid rgba(255,255,255,.18);border-radius:50%;left:-160px;top:-150px;pointer-events:none}
.mipart-hero-slide.theme-purple{background:linear-gradient(114deg,#211a4a 0%,#6946b6 60%,#9d78dc 100%)}
.mipart-hero-slide.theme-teal{background:linear-gradient(114deg,#053e51 0%,#087a8e 55%,#28adbf 100%)}
.mipart-hero-slide.theme-navy{background:linear-gradient(112deg,#092038 0%,#17507b 60%,#367bb4 100%)}
.mipart-hero-slide .hero-copy{padding-bottom:75px}
.mipart-hero-slide .hero-copy h1,.mipart-hero-slide .hero-copy h2{font-size:42px;line-height:1.5;letter-spacing:-1.5px;margin:18px 0 12px;font-weight:700}
.mipart-hero-slide .hero-copy h1 em,.mipart-hero-slide .hero-copy h2 em{font-style:normal;color:#ffd380}
.mipart-hero-slide .hero-art{pointer-events:none}
.mipart-image-banner{position:absolute;inset:0;display:block;z-index:1}
.mipart-image-banner img{display:block;width:100%;height:100%;object-fit:cover;object-position:center}
.mipart-slide-arrow{position:absolute;top:50%;z-index:5;display:grid;place-items:center;transform:translateY(-50%);width:32px;height:40px;border:1px solid rgba(255,255,255,.45);border-radius:9px;background:rgba(13,35,65,.22);color:#fff;backdrop-filter:blur(5px);font-size:28px;line-height:1;padding:0;opacity:.8}
.mipart-slide-arrow:hover{background:rgba(13,35,65,.55);opacity:1}
.mipart-slide-prev{right:10px}.mipart-slide-next{left:10px}
.mipart-slide-dots{position:absolute;z-index:6;bottom:15px;left:50%;transform:translateX(-50%);display:flex;gap:8px;align-items:center;direction:ltr;padding:6px 11px;border-radius:20px;background:rgba(8,26,53,.27)}
.mipart-slide-dot{display:block;width:9px;height:9px;border:0;padding:0;border-radius:100px;background:rgba(255,255,255,.55);transition:width .2s,background .2s}
.mipart-slide-dot.is-active{width:28px;background:#fff}
.mipart-side-banners{min-height:380px}
.mipart-side-banner{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;text-align:right;min-width:0;padding:23px 25px;position:relative}
.mipart-side-banner strong{max-width:100%;margin:9px 0;line-height:1.65}
.mipart-side-banner small{font-size:12px;font-weight:700;position:relative;z-index:1}
.mipart-side-banner>span,.mipart-side-banner>strong{position:relative;z-index:1}
.mipart-side-banner.has-banner-image{padding:0;background:#f2f5fc}
.mipart-side-banner.has-banner-image img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;display:block}
.mipart-side-banner:hover{filter:brightness(.985)}
@media(max-width:1100px){.mipart-hero-slide .hero-copy h1,.mipart-hero-slide .hero-copy h2{font-size:34px}}
@media(max-width:780px){.mipart-hero-slider,.mipart-slide-track{min-height:320px}.mipart-hero-slide .hero-copy{max-width:67%;padding:35px 28px 65px}.mipart-hero-slide .hero-copy h1,.mipart-hero-slide .hero-copy h2{font-size:30px}.mipart-side-banners{min-height:unset;grid-template-columns:1fr 1fr;grid-template-rows:auto}}
@media(max-width:480px){.mipart-hero-slider,.mipart-slide-track{min-height:285px}.mipart-hero-slide .hero-copy{max-width:76%;padding:27px 18px 58px}.mipart-hero-slide .hero-copy h1,.mipart-hero-slide .hero-copy h2{font-size:24px;margin:12px 0 10px}.mipart-hero-slide .hero-copy p{font-size:11px;line-height:1.85}.mipart-slide-arrow{width:25px;height:32px;font-size:21px;opacity:.65}.mipart-slide-prev{right:5px}.mipart-slide-next{left:5px}.mipart-slide-dots{bottom:10px}.mipart-side-banner{padding:15px;min-height:145px}.mipart-side-banner strong{font-size:13px!important}.mipart-side-banner small{font-size:10px}}
@media(prefers-reduced-motion:reduce){.mipart-hero-slide,.mipart-slide-dot{transition:none}}
