/* MyCense header + footer (Claude, 2026-10-29). Same tokens as home.css. */
.mch-hdr,.mch-ftr,.mch-drawer,.mch-catsheet{--surface:#FFFFFF;--surface2:#F0ECF4;--text:#1A1320;--muted:#5C5266;--line:#E6E0EC;--brand:#6E2BB8;--brand-ink:#FFFFFF;--brand-soft:#EFE6FA;--brand-text:#5B1FA0;direction:rtl;font-family:inherit;color:var(--text)}
html[data-theme="dark"] .mch-hdr,html[data-theme="dark"] .mch-ftr,html[data-theme="dark"] .mch-drawer,html[data-theme="dark"] .mch-catsheet{--surface:#17121D;--surface2:#211A29;--text:#F2ECF7;--muted:#B2A6BE;--line:#2D2437;--brand:#A877FF;--brand-ink:#170C24;--brand-soft:#261A36;--brand-text:#C9A8FF}
body.mch-chrome #masthead,body.mch-chrome .col-full-nav,body.mch-chrome .header-4-container,body.mch-chrome .menu-overlay,body.mch-chrome .below-content,body.mch-chrome footer.site-footer,body.mch-chrome footer.copyright{display:none!important}
.mch-hdr *,.mch-ftr *,.mch-drawer *,.mch-catsheet *,.mch-tabbar *{box-sizing:border-box}
.mch-hdr a,.mch-ftr a,.mch-drawer a,.mch-catsheet a,.mch-tabbar a{text-decoration:none}
.mch-hdr svg,.mch-ftr svg,.mch-drawer svg,.mch-catsheet svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:none}

.mch-hdr{position:sticky;top:var(--wp-admin--admin-bar--height,0px);z-index:999;background:var(--surface);border-bottom:1px solid var(--line)}
.mch-hdr-in{max-width:1240px;margin:0 auto;padding:12px 20px;display:flex;align-items:center;gap:24px}
.mch-logo{flex:none;display:block}
.mch-logo img{display:block;height:44px;width:auto}
.mch-ib{width:44px;height:44px;flex:none;border-radius:12px;border:1px solid var(--line);background:var(--surface);color:var(--text)!important;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;padding:0}
.mch-ib:hover{background:var(--surface2)}
.mch-burger,.mch-search-btn{display:none}

.mch-nav{flex:0 1 auto}
.mch-menu,.mch-menu ul,.mch-dmenu,.mch-dmenu ul{list-style:none;margin:0;padding:0}
.mch-menu{display:flex;align-items:center;gap:4px}
.mch-menu>li{position:relative;margin:0}
.mch-menu>li>a{display:flex;align-items:center;gap:4px;min-height:44px;padding:0 12px;border-radius:10px;font-size:15px;font-weight:500;color:var(--muted)!important;white-space:nowrap}
.mch-menu>li>a:hover,.mch-menu>li:focus-within>a,.mch-menu>li.current-menu-item>a{color:var(--text)!important;background:var(--surface2)}
.mch-menu>li.menu-item-has-children>a::after{content:"";width:7px;height:7px;border-left:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(-45deg) translate(1px,-2px);margin-right:4px}
.mch-menu .sub-menu{position:absolute;top:100%;right:0;min-width:240px;padding:8px;margin-top:6px;background:var(--surface);border:1px solid var(--line);border-radius:16px;box-shadow:0 16px 40px rgba(26,19,32,.12);display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px;opacity:0;visibility:hidden;transform:translateY(4px);transition:opacity .15s,transform .15s,visibility .15s;width:max-content;max-width:460px}
.mch-menu .sub-menu::before{content:"";position:absolute;top:-10px;left:0;right:0;height:10px}
.mch-menu>li:hover>.sub-menu,.mch-menu>li:focus-within>.sub-menu{opacity:1;visibility:visible;transform:none}
.mch-menu .sub-menu a{display:block;padding:10px 12px;border-radius:10px;font-size:14px;color:var(--text)!important}
.mch-menu .sub-menu a:hover{background:var(--brand-soft);color:var(--brand-text)!important}

.mch-search{flex:1 1 220px;max-width:340px;margin-right:auto;display:flex;align-items:center;gap:8px;height:44px;padding:0 14px;background:var(--surface2);border:1px solid var(--line);border-radius:12px;color:var(--muted)}
.mch-search:focus-within{border-color:var(--brand)}
.mch-search input[type=search]{flex:1;min-width:0;height:100%;border:0!important;outline:0;background:transparent!important;box-shadow:none!important;padding:0!important;margin:0;color:var(--text);font:inherit;font-size:14px;-webkit-appearance:none;appearance:none}
/* 16px stops iOS Safari from zooming into the field on focus */
@media (max-width:992px){.mch-search input[type=search]{font-size:16px}}
.mch-tools{flex:none;display:flex;align-items:center;gap:10px}
.mch-cartbtn{position:relative;height:44px;padding:0 16px;border-radius:12px;background:var(--brand);color:var(--brand-ink)!important;display:inline-flex;align-items:center;gap:8px;font-size:14px;font-weight:700}
.mch-cartbtn:hover{filter:brightness(1.08)}
.mch-cart-n{position:absolute;top:-6px;left:-6px;min-width:20px;height:20px;padding:0 5px;border-radius:10px;background:#E11D48;color:#fff;font-size:12px;font-weight:700;line-height:20px;text-align:center;border:2px solid var(--surface)}

/* Drawer (side sheet) */
.mch-drawer,.mch-catsheet{position:fixed;inset:0;z-index:100000}
.mch-drawer[hidden],.mch-catsheet[hidden]{display:none}
.mch-drawer-bg{position:absolute;inset:0;background:rgba(14,10,19,.55);backdrop-filter:blur(2px);animation:mch-fade .2s ease}
.mch-sheet{position:absolute;top:0;bottom:0;right:0;width:min(360px,88vw);background:var(--bg-soft,#F6F4F8);padding:14px 14px 24px;overflow-y:auto;display:flex;flex-direction:column;gap:14px;box-shadow:-12px 0 40px rgba(0,0,0,.18);border-radius:24px 0 0 24px;animation:mch-in-r .25s cubic-bezier(.2,.8,.2,1)}
.mch-sheet>*,.mch-bsheet>*{flex-shrink:0}
.mch-sheet-head{display:flex;align-items:center;justify-content:space-between;padding:2px 2px 4px}
.mch-sheet-head img{height:36px;width:auto}
.mch-user{display:flex;align-items:center;gap:12px;padding:14px;border-radius:18px;background:#1E1029;color:#F5EEFB!important;position:relative;overflow:hidden}
.mch-user::after{content:"";position:absolute;width:140px;height:140px;border-radius:50%;background:#6E2BB8;left:-50px;top:-70px}
.mch-user>*{position:relative;z-index:1}
.mch-user-av{width:46px;height:46px;border-radius:50%;background:rgba(255,255,255,.14);display:flex;align-items:center;justify-content:center;flex:none}
.mch-user-av svg{width:22px;height:22px}
.mch-user-t{display:flex;flex-direction:column;gap:2px;min-width:0}
.mch-user-t strong{font-size:15px;color:#fff}
.mch-user-t span{font-size:12px;color:#CBB9DC}
.mch-user-go{margin-right:auto;color:#CBB9DC}
.mch-sheet-label{margin:4px 4px -4px;font-size:12px;font-weight:800;color:var(--muted)}
.mch-cats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.mch-cat{display:flex;flex-direction:column;align-items:center;gap:6px;padding:12px 6px;border-radius:16px;background:var(--surface);border:1px solid var(--line);color:var(--text)!important;font-size:12px;font-weight:700;text-align:center;line-height:1.5}
.mch-cat:hover,.mch-cat:focus-visible{border-color:var(--brand)}
.mch-cat img,.mch-cat-ph{width:44px;height:44px;border-radius:12px;object-fit:cover;background:var(--surface2)}
.mch-cat-ph{display:flex;align-items:center;justify-content:center;font-size:18px;font-weight:800;color:var(--brand-text);background:var(--brand-soft)}
.mch-links{display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:4px}
.mch-links a{display:flex;align-items:center;gap:12px;min-height:50px;padding:0 10px;border-radius:14px;font-size:15px;font-weight:700;color:var(--text)!important}
.mch-links a:hover{background:var(--surface2)}
.mch-links a+a{border-top:1px solid var(--line)}
.mch-links-ico{width:34px;height:34px;border-radius:10px;background:var(--brand-soft);color:var(--brand-text);display:flex;align-items:center;justify-content:center}
.mch-links-ico svg{width:18px;height:18px}
.mch-help{display:flex;flex-direction:column;gap:4px;padding:16px;border-radius:18px;background:var(--brand-soft)}
.mch-help strong{font-size:15px;color:var(--brand-text)}
.mch-help span{font-size:13px;color:var(--muted)}
.mch-help div{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:8px}
.mch-help a{display:flex;align-items:center;justify-content:center;min-height:44px;border-radius:12px;background:var(--surface);color:var(--text)!important;font-size:14px;font-weight:700}
.mch-dbtn{display:flex;align-items:center;justify-content:center;min-height:48px;border-radius:14px;border:1px solid var(--line);background:var(--surface2);color:var(--text)!important;font-size:15px;font-weight:700}
.mch-dbtn-primary{background:var(--brand);border-color:var(--brand);color:var(--brand-ink)!important}

/* Bottom sheet (categories) */
.mch-bsheet{position:absolute;left:0;right:0;bottom:0;max-height:82vh;overflow-y:auto;background:var(--bg-soft,#F6F4F8);border-radius:26px 26px 0 0;padding:8px 14px calc(18px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:14px;animation:mch-in-up .28s cubic-bezier(.2,.8,.2,1)}
.mch-bsheet-handle{align-self:center;width:44px;height:5px;border-radius:3px;background:var(--line)}
.mch-bsheet-head{display:flex;align-items:center;justify-content:space-between}
.mch-bsheet-head h2{margin:0;font-size:18px;font-weight:800;color:var(--text)}
.mch-bsheet .mch-cats{grid-template-columns:repeat(3,minmax(0,1fr))}

/* Floating tab bar (mobile) */
.mch-tabbar{display:none}
@media (max-width:992px){
	body.mch-chrome{padding-bottom:calc(92px + env(safe-area-inset-bottom))}
	.mch-tabbar{position:fixed;z-index:9999;left:12px;right:12px;bottom:calc(10px + env(safe-area-inset-bottom));display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-items:center;height:66px;padding:0 6px;background:rgba(255,255,255,.92);backdrop-filter:saturate(1.4) blur(14px);-webkit-backdrop-filter:saturate(1.4) blur(14px);border:1px solid var(--line);border-radius:22px;box-shadow:0 10px 30px rgba(26,19,32,.14);direction:rtl;font-family:inherit;--line:#E6E0EC;--muted:#5C5266;--brand:#6E2BB8;--brand-soft:#EFE6FA;--brand-text:#5B1FA0;--surface:#fff}
	.mch-tab{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;height:54px;margin:0 2px;border:0;border-radius:16px;background:transparent;color:var(--muted)!important;font:inherit;font-size:11px;font-weight:700;text-decoration:none;cursor:pointer;padding:0}
	.mch-tab svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
	.mch-tab.is-on{color:var(--brand-text)!important;background:var(--brand-soft)}
	.mch-tab-search{justify-self:center;width:56px;height:56px;margin-top:-26px;border-radius:50%;background:var(--brand);color:#fff!important;box-shadow:0 8px 20px rgba(110,43,184,.4);border:4px solid #fff}
	.mch-tab-ico{position:relative;display:flex}
	.mch-tab .mch-cart-n{top:-7px;left:-10px}
	body.mch-chrome .mobile-footer-menu,body.mch-chrome .category-modal{display:none!important}
}
@keyframes mch-fade{from{opacity:0}}
@keyframes mch-in-r{from{transform:translateX(100%)}}
@keyframes mch-in-up{from{transform:translateY(100%)}}
@media (prefers-reduced-motion:reduce){.mch-sheet,.mch-bsheet,.mch-drawer-bg{animation:none}}

/* Live search suggestions */
.mch-search{position:relative}
.mch-sugg{position:absolute;top:calc(100% + 8px);right:0;left:0;z-index:1000;background:var(--surface);border:1px solid var(--line);border-radius:16px;box-shadow:0 18px 40px rgba(26,19,32,.16);padding:6px;max-height:min(70vh,460px);overflow-y:auto}
.mch-sugg[hidden]{display:none}
.mch-sugg a{display:flex;align-items:center;gap:12px;padding:8px;border-radius:12px;color:var(--text)!important}
.mch-sugg a:hover,.mch-sugg a.is-active{background:var(--surface2)}
.mch-sugg img,.mch-sugg-ph{width:44px;height:44px;border-radius:10px;object-fit:cover;background:var(--surface2);flex:none}
.mch-sugg-t{display:flex;flex-direction:column;gap:2px;min-width:0}
.mch-sugg-t strong{font-size:14px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mch-sugg-t span{font-size:12px;color:var(--muted)}
.mch-sugg mark{background:none;color:var(--brand-text);font-weight:800}
.mch-sugg .mch-sugg-all{justify-content:center;margin-top:4px;border-top:1px solid var(--line);border-radius:0 0 12px 12px;font-size:13px;font-weight:700;color:var(--brand-text)!important}
.mch-sugg-empty{padding:16px;text-align:center;font-size:13px;color:var(--muted)}
.mch-ftr{margin-top:56px;background:var(--surface);border-top:1px solid var(--line)}
.mch-ftr-in{max-width:1240px;margin:0 auto;padding:0 20px}
.mch-follow{position:relative;top:-40px;margin-bottom:-8px;background:#1E1029;color:#F5EEFB;border-radius:22px;padding:28px 32px;display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;overflow:hidden}
.mch-follow::before{content:"";position:absolute;width:260px;height:260px;border-radius:50%;background:#6E2BB8;left:-80px;top:-120px}
.mch-follow::after{content:"";position:absolute;width:120px;height:120px;border-radius:50%;background:#C08BFF;left:150px;top:40px;opacity:.55}
.mch-follow-text,.mch-follow-btns{position:relative;z-index:1}
.mch-follow h2{margin:0 0 6px;font-size:22px;font-weight:800;color:#F5EEFB}
.mch-follow p{margin:0;max-width:560px;font-size:14px;line-height:1.9;color:#CBB9DC}
.mch-follow-btns{display:flex;gap:10px;flex-wrap:wrap}
.mch-fbtn{display:inline-flex;align-items:center;gap:8px;height:46px;padding:0 18px;border-radius:12px;background:#FFFFFF;color:#1E1029!important;font-size:14px;font-weight:700}
.mch-fbtn:hover{background:#EFE6FA}
.mch-ftr-grid{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,.8fr) minmax(0,.8fr) minmax(0,1.3fr);gap:32px;padding:8px 0 32px}
.mch-ftr-brand img{display:block;height:52px;width:auto;margin-bottom:12px}
.mch-ftr-brand p,.mch-ftr-trust p{margin:0;font-size:14px;line-height:2;color:var(--muted)}
.mch-social{display:flex;gap:8px;margin-top:14px}
.mch-social a{width:44px;height:44px;border-radius:12px;background:var(--surface2);color:var(--text)!important;display:inline-flex;align-items:center;justify-content:center}
.mch-social a:hover{background:var(--brand-soft);color:var(--brand-text)!important}
.mch-ftr-col{display:flex;flex-direction:column;gap:4px}
.mch-ftr-col h3{margin:0 0 8px;font-size:15px;font-weight:800;color:var(--text)}
.mch-ftr-col a{display:inline-flex;min-height:34px;align-items:center;font-size:14px;color:var(--muted)!important}
.mch-ftr-col a:hover{color:var(--brand-text)!important}
.mch-badges{display:flex;gap:12px;align-items:center;margin-top:14px}
.mch-badges a{display:inline-flex;align-items:center;justify-content:center;min-width:96px;min-height:96px;border-radius:14px;background:#fff;border:1px solid var(--line)}
.mch-badges img{display:block;width:auto;height:88px}
.mch-badges img[hidden]{display:none}
.mch-enamad-alt{padding:8px;font-size:12px;line-height:1.6;text-align:center;color:#1A1320}
.mch-ftr-bottom{border-top:1px solid var(--line);padding:16px 0;display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:13px;color:var(--muted)}
.mch-ftr-bottom a{color:var(--muted)!important}

@media (max-width:782px){.mch-hdr{top:0}}
/* Product and archive pages have the site's own mobile bar (back arrow, title, search, cart). */
@media (max-width:992px){body:not(.mch-tpl):has(.mobile-archive-header) .mch-hdr:not(.is-search){display:none}}
@media (max-width:992px){
	.mch-hdr-in{gap:10px;padding:10px 14px}
	.mch-nav,.mch-acc,.mch-cart-label{display:none}
	.mch-cartbtn{width:44px;padding:0;justify-content:center}
	.mch-burger,.mch-search-btn{display:inline-flex}
	.mch-logo{margin:0 auto}
	.mch-tools{gap:8px}
	.mch-logo img{height:38px}
	.mch-tools{order:3}
	.mch-burger{order:0}
	.mch-logo{order:1}
	.mch-search{display:none;order:4;flex:1 1 100%;max-width:none;margin:0}
	.mch-hdr.is-search .mch-search{display:flex}
	.mch-hdr-in{flex-wrap:wrap}
	.mch-ftr-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:600px){
	.mch-ftr{margin-top:48px}
	.mch-follow{padding:22px 20px;top:-28px}
	.mch-follow h2{font-size:19px}
	.mch-fbtn{flex:1;justify-content:center}
	.mch-follow-btns{width:100%}
	.mch-ftr-grid{grid-template-columns:1fr 1fr;gap:24px}
	.mch-ftr-brand,.mch-ftr-trust{grid-column:1 / -1}
	.mch-ftr-bottom{flex-direction:column;align-items:center;text-align:center}
}

/* 993–1200px: header items shrink instead of overflowing (cart button was clipped at 1024px). */
@media (min-width:993px) and (max-width:1200px){.mch-hdr-in{gap:14px}.mch-nav,.mch-search{min-width:0}.mch-search{flex:1 1 140px}.mch-menu>li>a{padding-left:8px!important;padding-right:8px!important;font-size:13px!important}.mch-cartbtn span:not([class*=count]):not(.mch-count){display:none}}

/* Site background: light violet-tinted off-white + a soft brand halo under the header (all new-design pages). */
body.mch-chrome{background-color:#F8F6FB!important;background-image:radial-gradient(1100px 380px at 50% -60px,rgba(110,43,184,.10),rgba(110,43,184,0) 70%)!important;background-repeat:no-repeat!important;background-attachment:scroll!important}
html[data-theme="dark"] body.mch-chrome{background-color:#0E0A13!important;background-image:radial-gradient(1100px 380px at 50% -60px,rgba(168,119,255,.14),rgba(168,119,255,0) 70%)!important}
/* The theme paints its content wrappers light grey (#E6E8E9) on product/archive pages; let the site background show. */
body.mch-chrome .shoptimizer-archive,body.mch-chrome .shoptimizer-archive>.col-full,body.mch-chrome .archive-header,body.mch-chrome .archive-header>.col-full,body.mch-chrome .site-content,body.mch-chrome .site-content>.col-full,body.mch-chrome #page,body.mch-chrome .site{background:transparent!important}

/* price: the &nbsp; before the currency symbol (dir=auto) is reordered away in RTL, so "۵۰۰,۰۰۰تومان" — give the symbol its own gap */
html[dir=rtl] .woocommerce-Price-amount,html[dir=rtl] .woocommerce-Price-amount bdi{direction:rtl!important;unicode-bidi:isolate}html[dir=rtl] .woocommerce-Price-currencySymbol{margin-inline-start:.25em}