:root{
  --mm-red:#e92b2b;
  --mm-red-2:#ff4a42;
  --mm-bg:#0a0a0c;
  --mm-bg-2:#101013;
  --mm-panel:#151518;
  --mm-panel-2:#1b1b1f;
  --mm-text:#f7f7f8;
  --mm-muted:#8f8f98;
  --mm-line:rgba(255,255,255,.09);
  --mm-line-strong:rgba(255,255,255,.15);
  --mm-sidebar:222px;
  --mm-sidebar-collapsed:76px;
  --mm-topbar:76px;
  --mm-radius:22px;
  --mm-font:'Manrope',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--mm-bg);color:var(--mm-text);font-family:var(--mm-font);font-size:14px;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
button,input{font:inherit}
button{color:inherit}
img{max-width:100%;height:auto;display:block}
::selection{background:var(--mm-red);color:#fff}
.mm-container{width:min(calc(100% - 56px),1240px);margin-inline:auto}

/* App shell */
.mm-app{min-height:100vh;background:var(--mm-bg)}
.mm-sidebar{position:fixed;z-index:80;left:8px;top:8px;bottom:8px;width:calc(var(--mm-sidebar) - 8px);padding:16px 14px 14px;border:1px solid rgba(255,255,255,.04);border-radius:18px;background:#141416;display:flex;flex-direction:column;overflow:hidden;transition:width .26s ease,transform .26s ease,background .25s ease;box-shadow:0 16px 44px rgba(0,0,0,.14)}
.mm-workspace{min-height:100vh;margin-left:var(--mm-sidebar);transition:margin-left .26s ease}
.mm-main{min-height:calc(100vh - var(--mm-topbar));padding:0 8px 8px 0}

.mm-sidebar__top{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:42px;margin-bottom:12px}
.mm-brand{display:inline-flex;align-items:center;gap:10px;min-width:0;font-weight:800;letter-spacing:-.035em;white-space:nowrap}
.mm-brand__mark{position:relative;width:28px;height:24px;flex:0 0 28px;display:block}
.mm-brand__mark::before,.mm-brand__mark::after,.mm-brand__mark i,.mm-brand__mark b{content:'';position:absolute;display:block;background:#f4f4f5}
.mm-brand__mark::before{left:0;top:3px;width:8px;height:18px;transform:skew(-18deg)}
.mm-brand__mark::after{right:0;top:3px;width:8px;height:18px;transform:skew(18deg)}
.mm-brand__mark i{left:8px;top:3px;width:7px;height:18px;transform:skew(18deg)}
.mm-brand__mark b{left:13px;top:3px;width:7px;height:18px;transform:skew(-18deg)}
.mm-brand__text{font-size:17px;overflow:hidden;text-overflow:clip}.mm-brand__text span{color:#bdbdc4}
.mm-brand__logo img{max-height:34px;width:auto}
.custom-logo-link{display:flex;align-items:center}
.mm-sidebar-toggle{width:30px;height:30px;border:0;background:transparent;border-radius:8px;cursor:pointer;display:grid;grid-template-columns:repeat(2,4px);gap:3px;place-content:center;flex:0 0 30px}
.mm-sidebar-toggle:hover{background:rgba(255,255,255,.07)}
.mm-sidebar-toggle span{display:block;width:4px;height:13px;border:1px solid #777780;border-radius:2px}

.mm-sidebar__primary{height:40px;display:flex;align-items:center;gap:10px;margin:2px 0 12px;padding:0 9px;border-radius:10px;background:linear-gradient(135deg,var(--mm-red),#ff4a42);font-size:11px;font-weight:800;box-shadow:0 10px 26px rgba(233,43,43,.14)}
.mm-sidebar__primary-icon{width:22px;height:22px;border-radius:7px;background:#fff;color:#17171a;display:grid;place-items:center;font-size:18px;line-height:1;flex:0 0 22px}

.mm-sidebar__nav{padding-bottom:12px;border-bottom:1px solid var(--mm-line)}
.mm-side-nav{list-style:none;margin:0;padding:0;display:grid;gap:2px}
.mm-side-nav li{margin:0}
.mm-side-nav a,.mm-sidebar__group>a,.mm-sidebar__utility,.mm-theme-toggle{position:relative;min-height:35px;display:flex;align-items:center;gap:10px;padding:0 9px;border-radius:9px;color:#d7d7dc;font-size:11px;font-weight:600;white-space:nowrap;transition:.18s ease}
.mm-side-nav a::before{width:18px;height:18px;display:grid;place-items:center;flex:0 0 18px;color:#d7d7dc;font-size:15px;font-weight:500}
.mm-side-nav li:nth-child(1) a::before{content:'⌂'}
.mm-side-nav li:nth-child(2) a::before{content:'⌕'}
.mm-side-nav li:nth-child(3) a::before{content:'◉'}
.mm-side-nav li:nth-child(4) a::before{content:'✦'}
.mm-side-nav li:nth-child(n+5) a::before{content:'·'}
.mm-side-nav a:hover,.mm-sidebar__group>a:hover,.mm-sidebar__utility:hover,.mm-theme-toggle:hover{background:rgba(255,255,255,.065);color:#fff}
.mm-side-nav .current-menu-item>a,.mm-side-nav .current_page_item>a{color:#fff;background:rgba(255,255,255,.055)}
.mm-side-nav .current-menu-item>a::after,.mm-side-nav .current_page_item>a::after{content:'';position:absolute;left:-14px;top:9px;bottom:9px;width:2px;background:var(--mm-red);border-radius:5px}

.mm-sidebar__group{padding-top:12px;display:grid;gap:2px}
.mm-sidebar__group-title{display:block;padding:3px 9px 7px;font-size:9px;text-transform:uppercase;letter-spacing:.14em;color:#62626a;font-weight:800;white-space:nowrap}
.mm-sidebar__group>a{color:#bfc0c6}
.mm-side-icon{width:18px;height:18px;display:grid;place-items:center;flex:0 0 18px;font-style:normal;font-size:14px}
.mm-sidebar__bottom{margin-top:auto;padding-top:10px;display:grid;gap:2px}
.mm-theme-toggle,.mm-sidebar__utility{width:100%;border:0;background:transparent;cursor:pointer;text-align:left}
.mm-theme-toggle__sun,.mm-theme-toggle__moon,.mm-sidebar__utility>span:first-child{width:18px;height:18px;display:grid;place-items:center;flex:0 0 18px}
.mm-theme-toggle__moon{display:none}
.mm-more{margin-top:1px}

.mm-topbar{height:var(--mm-topbar);display:grid;grid-template-columns:minmax(280px,720px) auto;align-items:center;justify-content:center;gap:28px;padding:8px 20px 8px 18px;background:#111113;position:sticky;top:0;z-index:50;transition:background .25s ease}
.mm-search{width:min(100%,720px);height:42px;display:flex;align-items:center;justify-self:center;background:#29292c;border:1px solid rgba(255,255,255,.025);border-radius:999px;padding:0 10px 0 17px;box-shadow:inset 0 1px 0 rgba(255,255,255,.02)}
.mm-search__grid{color:#c1c1c6;font-size:15px;margin-right:11px}
.mm-search input{flex:1;min-width:0;border:0;outline:0;background:transparent;color:#f7f7f8;font-size:12px}
.mm-search input::placeholder{color:#9a9aa2}
.mm-search button{border:0;background:transparent;color:#fff;width:30px;height:30px;border-radius:50%;cursor:pointer;font-size:20px;display:grid;place-items:center}
.mm-search button:hover{background:rgba(255,255,255,.06)}
.mm-topbar__actions{display:flex;align-items:center;justify-self:end;gap:22px;white-space:nowrap;font-size:11px;font-weight:700}
.mm-topbar__price{color:#ff4a42}.mm-topbar__login{color:#f2f2f3}
.mm-topbar__register{padding:11px 15px;border-radius:9px;background:#f4f4f5;color:#18181b;box-shadow:0 2px 0 rgba(255,255,255,.15) inset}
.mm-topbar__actions a:hover{opacity:.78}
.mm-mobile-menu{display:none;width:40px;height:40px;border:0;background:#222226;border-radius:10px;padding:10px;cursor:pointer}
.mm-mobile-menu span{display:block;height:2px;background:#fff;border-radius:2px;margin:4px 0}
.mm-sidebar-overlay{display:none}

/* Desktop collapsed sidebar */
.mm-sidebar-collapsed .mm-sidebar{width:calc(var(--mm-sidebar-collapsed) - 8px);padding-left:10px;padding-right:10px}
.mm-sidebar-collapsed .mm-workspace{margin-left:var(--mm-sidebar-collapsed)}
.mm-sidebar-collapsed .mm-brand__text,.mm-sidebar-collapsed .mm-sidebar__label{opacity:0;width:0;overflow:hidden;pointer-events:none}
.mm-sidebar-collapsed .mm-sidebar__top{justify-content:center;position:relative}
.mm-sidebar-collapsed .mm-sidebar-toggle{position:absolute;opacity:0;left:0;right:0;top:0;width:100%;height:42px}
.mm-sidebar-collapsed .mm-sidebar:hover .mm-sidebar-toggle{opacity:1;background:rgba(20,20,22,.86)}
.mm-sidebar-collapsed .mm-sidebar__primary,.mm-sidebar-collapsed .mm-side-nav a,.mm-sidebar-collapsed .mm-sidebar__group>a,.mm-sidebar-collapsed .mm-sidebar__utility,.mm-sidebar-collapsed .mm-theme-toggle{justify-content:center;padding-left:0;padding-right:0}
.mm-sidebar-collapsed .mm-sidebar__group-title{height:10px;padding:0;border-top:1px solid var(--mm-line);margin:7px 4px 5px}
.mm-sidebar-collapsed .mm-side-nav .current-menu-item>a::after,.mm-sidebar-collapsed .mm-side-nav .current_page_item>a::after{left:-10px}

/* Compact one-screen homepage */
.home{overflow:hidden}
.home .mm-main{height:calc(100dvh - var(--mm-topbar));min-height:0;overflow:hidden}
.mm-stage{height:100%;min-height:0;padding:0}
.mm-stage__panel{height:100%;min-height:0;position:relative;overflow:hidden;border-radius:18px;background:
  radial-gradient(circle at 76% 58%,rgba(233,43,43,.22),transparent 24%),
  radial-gradient(circle at 42% 72%,rgba(139,20,23,.14),transparent 33%),
  linear-gradient(135deg,#101014 0%,#0b0b0f 48%,#0e0d11 100%);
  border:1px solid rgba(255,255,255,.035)
}
.mm-stage__grid{position:absolute;inset:0;opacity:.17;background-image:linear-gradient(rgba(255,255,255,.04) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.04) 1px,transparent 1px);background-size:46px 46px;mask-image:linear-gradient(to bottom,rgba(0,0,0,.6),transparent 76%)}
.mm-stage__ambient{position:absolute;border-radius:50%;filter:blur(80px);pointer-events:none}
.mm-stage__ambient--one{width:300px;height:300px;background:rgba(233,43,43,.2);right:13%;bottom:6%}
.mm-stage__ambient--two{width:230px;height:230px;background:rgba(119,11,22,.22);left:34%;bottom:5%}
.mm-stage__panel::after{content:'';position:absolute;left:0;right:0;bottom:23%;height:2px;background:linear-gradient(90deg,transparent 0%,rgba(233,43,43,.1) 15%,var(--mm-red) 48%,rgba(233,43,43,.1) 82%,transparent 100%);box-shadow:0 0 18px rgba(233,43,43,.45)}
.mm-stage__content{position:relative;z-index:3;height:calc(100% - 116px);min-height:0;display:grid;grid-template-columns:minmax(390px,.85fr) minmax(520px,1.15fr);gap:clamp(26px,4vw,72px);align-items:center;padding:clamp(34px,5vh,64px) clamp(38px,5vw,76px) 22px}
.mm-stage__copy{align-self:center;max-width:640px}
.mm-eyebrow{display:inline-flex;align-items:center;gap:9px;font-size:10px;text-transform:uppercase;letter-spacing:.13em;color:#b9b9c0;font-weight:800}
.mm-eyebrow i{width:6px;height:6px;border-radius:50%;background:var(--mm-red);box-shadow:0 0 16px rgba(233,43,43,.7)}
.mm-stage h1{margin:19px 0 20px;font-size:clamp(43px,4.2vw,72px);line-height:.99;letter-spacing:-.065em;max-width:700px}
.mm-stage h1 span{color:#8d8d96}
.mm-stage__copy>p{max-width:560px;margin:0;color:#a3a3ab;font-size:clamp(13px,1vw,16px);line-height:1.75}
.mm-stage__actions{display:flex;align-items:center;gap:14px;margin-top:30px}
.mm-btn,.mm-ghost-btn{display:inline-flex;align-items:center;justify-content:center;gap:16px;height:46px;padding:0 20px;border-radius:999px;font-size:11px;font-weight:800;transition:.2s ease}
.mm-btn{background:var(--mm-red);color:#fff;box-shadow:0 12px 30px rgba(233,43,43,.2)}
.mm-btn:hover{transform:translateY(-2px);background:#f03737}
.mm-ghost-btn{border:1px solid rgba(255,255,255,.22);color:#fff;background:rgba(255,255,255,.015)}
.mm-ghost-btn:hover{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.34)}

.mm-showcase{position:relative;width:min(100%,760px);justify-self:end;align-self:center;aspect-ratio:1.32/1;min-height:0}
.mm-showcase__halo{position:absolute;left:8%;right:3%;bottom:2%;height:38%;background:radial-gradient(ellipse at center,rgba(233,43,43,.28),transparent 66%);filter:blur(25px)}
.mm-showcase__browser{position:absolute;inset:7% 2% 6% 5%;border-radius:20px;background:#17171b;border:1px solid rgba(255,255,255,.13);box-shadow:0 35px 90px rgba(0,0,0,.42);transform:perspective(1100px) rotateY(-4deg) rotateX(2deg);overflow:hidden}
.mm-showcase__browserbar{height:42px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;padding:0 15px;background:#202024;border-bottom:1px solid rgba(255,255,255,.07);font-size:8px;color:#85858d}
.mm-showcase__browserbar>span{display:flex;gap:5px}.mm-showcase__browserbar i{width:6px;height:6px;border-radius:50%;background:#5b5b63}.mm-showcase__browserbar b{font-weight:500;padding:6px 18px;background:#18181b;border-radius:999px;color:#73737c}.mm-showcase__browserbar em{justify-self:end;font-style:normal;color:#92929a}
.mm-showcase__screen{height:calc(100% - 42px);padding:14px;background:linear-gradient(150deg,#eeeae3 0%,#dbd6cf 100%)}
.mm-demo-nav{height:30px;display:flex;align-items:center;gap:12px;color:#141417}.mm-demo-nav strong{font-size:14px;margin-right:auto}.mm-demo-nav strong span{color:var(--mm-red)}.mm-demo-nav i{width:22px;height:3px;background:#aaa59f;border-radius:3px}.mm-demo-nav button{width:42px;height:16px;border:0;border-radius:999px;background:#151518}
.mm-demo-body{height:calc(100% - 30px);display:grid;grid-template-columns:.78fr 1.22fr;align-items:center;gap:10px;padding:10px 18px 16px;background:#f1ede6;border-radius:12px;overflow:hidden}
.mm-demo-copy small{font-size:7px;letter-spacing:.15em;color:#96908a}.mm-demo-copy strong{display:block;margin:12px 0 10px;font-size:clamp(24px,3vw,48px);line-height:.9;letter-spacing:-.07em;color:#111114}.mm-demo-copy p{height:4px;width:75%;margin:6px 0;background:#c6c0b9;border-radius:4px}.mm-demo-copy p:nth-of-type(2){width:54%}.mm-demo-copy button{width:54px;height:17px;margin-top:13px;border:0;border-radius:999px;background:var(--mm-red)}
.mm-demo-art{position:relative;height:100%;min-height:210px;overflow:hidden;border-radius:14px;background:radial-gradient(circle at 60% 55%,rgba(233,43,43,.95),rgba(74,5,9,.75) 28%,#141418 58%,#09090c 100%)}
.mm-demo-art::before,.mm-demo-art::after{content:'';position:absolute;border:1px solid rgba(255,255,255,.18);border-radius:50%}.mm-demo-art::before{width:80%;height:80%;left:11%;top:10%}.mm-demo-art::after{width:58%;height:58%;left:22%;top:21%}
.mm-demo-art b{position:absolute;width:30%;aspect-ratio:1;border-radius:50%;left:35%;top:35%;background:radial-gradient(circle at 30% 25%,#ff9c93,var(--mm-red) 38%,#4b0508 70%);box-shadow:0 0 45px rgba(233,43,43,.6)}
.mm-demo-orbit{position:absolute;height:1px;background:rgba(255,255,255,.36);transform-origin:left center}.mm-demo-orbit--one{width:70%;left:13%;top:57%;transform:rotate(-20deg)}.mm-demo-orbit--two{width:65%;left:16%;top:42%;transform:rotate(28deg)}
.mm-showcase__chip{position:absolute;z-index:4;background:rgba(24,24,28,.9);backdrop-filter:blur(12px);border:1px solid rgba(255,255,255,.14);box-shadow:0 15px 38px rgba(0,0,0,.28);border-radius:12px;color:#d4d4d9;font-size:9px;font-weight:800;letter-spacing:.08em}
.mm-showcase__chip--top{right:0;top:2%;padding:10px 13px}.mm-showcase__chip--top span{color:var(--mm-red)}
.mm-showcase__chip--bottom{left:0;bottom:4%;padding:11px 13px;display:flex;align-items:center;gap:7px}.mm-showcase__chip--bottom i{width:10px;height:10px;border-radius:50%;background:#f1eee8}.mm-showcase__chip--bottom i:last-child{background:#1b1b1f;border:1px solid #55555d}

.mm-featured{position:absolute;z-index:5;left:clamp(28px,4vw,60px);right:clamp(28px,4vw,60px);bottom:18px;min-height:86px;display:grid;grid-template-columns:170px minmax(0,1fr) 92px;align-items:center;gap:18px;padding:12px 14px 12px 20px;border-radius:16px;background:rgba(15,15,18,.84);border:1px solid rgba(255,255,255,.085);backdrop-filter:blur(18px);box-shadow:0 22px 48px rgba(0,0,0,.22)}
.mm-featured__title small{display:block;font-size:7px;letter-spacing:.13em;color:#65656d;margin-bottom:5px}.mm-featured__title strong{font-size:13px}
.mm-featured__items{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;min-width:0}
.mm-mini-card{min-width:0;min-height:58px;display:grid;grid-template-columns:30px 1fr 24px;align-items:center;gap:8px;padding:8px 10px;border-radius:11px;background:rgba(255,255,255,.035);border:1px solid transparent;transition:.18s ease}
.mm-mini-card:hover{background:rgba(255,255,255,.065);border-color:rgba(255,255,255,.08);transform:translateY(-1px)}
.mm-mini-card__number{font-size:9px;color:var(--mm-red);font-weight:800}.mm-mini-card__info{min-width:0}.mm-mini-card__info b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:10px}.mm-mini-card__info small{display:block;margin-top:4px;color:#797982;font-size:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mm-mini-card__arrow{width:24px;height:24px;border-radius:50%;border:1px solid rgba(255,255,255,.13);display:grid;place-items:center;font-size:10px}
.mm-featured__all{display:flex;align-items:center;justify-content:center;gap:6px;height:40px;border-radius:10px;background:#f2f2f3;color:#17171a;font-size:9px;font-weight:800}.mm-featured__all:hover{background:#fff}

/* Generic inner pages */
body:not(.home) .mm-main{padding-top:34px;padding-bottom:70px;background:#efede8;color:#18181b}
.mm-section{padding:70px 0}.mm-content-page,.mm-archive{min-height:65vh}
.mm-prose{max-width:920px;margin-inline:auto}.mm-prose h1{font-size:clamp(42px,6vw,76px);line-height:1.02;letter-spacing:-.055em}.mm-prose h2{font-size:34px;letter-spacing:-.035em}.mm-prose p,.mm-prose li{font-size:16px;line-height:1.8;color:#5f5f66}.mm-prose__hero{margin:34px 0;border-radius:22px;overflow:hidden}
.mm-post-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.mm-post-card{background:#fff;border:1px solid #dedbd5;border-radius:16px;overflow:hidden}.mm-post-card img{aspect-ratio:16/10;object-fit:cover}.mm-post-card>div{padding:22px}.mm-post-card h2{font-size:21px;margin:7px 0}.mm-post-card p{color:#6d6d73}

/* Footer for inner pages */
.mm-footer{background:#101012;color:#fff;padding:56px 0 22px}.mm-footer__grid{display:grid;grid-template-columns:1.6fr repeat(3,1fr);gap:46px;padding-bottom:46px}.mm-brand--footer{margin-bottom:16px}.mm-footer__lead{max-width:360px;color:#777780;font-size:12px;line-height:1.7}.mm-footer h3{font-size:9px;text-transform:uppercase;letter-spacing:.15em;color:#66666f;margin:5px 0 16px}.mm-footer__menu{list-style:none;margin:0;padding:0;display:grid;gap:9px}.mm-footer__menu a{font-size:12px;color:#b5b5bc}.mm-footer__menu a:hover{color:#fff}.mm-footer__bottom{padding-top:20px;border-top:1px solid var(--mm-line);display:flex;justify-content:space-between;color:#66666f;font-size:10px}

/* WooCommerce */
.woocommerce .products{display:grid!important;grid-template-columns:repeat(3,1fr);gap:22px}.woocommerce ul.products::before,.woocommerce ul.products::after{display:none!important}.woocommerce ul.products li.product{float:none!important;width:auto!important;margin:0!important;background:#fff;border:1px solid #dedbd5;border-radius:16px;padding:13px}.woocommerce ul.products li.product a img{border-radius:11px}.woocommerce ul.products li.product .button,.woocommerce button.button,.woocommerce a.button{background:var(--mm-red);color:#fff;border-radius:999px}.woocommerce div.product{padding:40px 0}.woocommerce .price{color:var(--mm-red)!important}

/* Light mode */
.mm-light-mode{--mm-bg:#e9e7e2;--mm-bg-2:#efede8;--mm-panel:#f6f4f0;--mm-text:#18181b;--mm-muted:#696970;--mm-line:rgba(0,0,0,.09);--mm-line-strong:rgba(0,0,0,.14)}
.mm-light-mode body{background:#e9e7e2;color:#18181b}
.mm-light-mode .mm-sidebar{background:#f5f3ef;border-color:rgba(0,0,0,.05);box-shadow:0 12px 36px rgba(0,0,0,.06)}
.mm-light-mode .mm-brand__mark::before,.mm-light-mode .mm-brand__mark::after,.mm-light-mode .mm-brand__mark i,.mm-light-mode .mm-brand__mark b{background:#18181b}
.mm-light-mode .mm-brand__text span{color:#77777e}
.mm-light-mode .mm-side-nav a,.mm-light-mode .mm-sidebar__group>a,.mm-light-mode .mm-sidebar__utility,.mm-light-mode .mm-theme-toggle{color:#414147}
.mm-light-mode .mm-side-nav a:hover,.mm-light-mode .mm-sidebar__group>a:hover,.mm-light-mode .mm-sidebar__utility:hover,.mm-light-mode .mm-theme-toggle:hover,.mm-light-mode .mm-side-nav .current-menu-item>a,.mm-light-mode .mm-side-nav .current_page_item>a{background:rgba(0,0,0,.045);color:#111}
.mm-light-mode .mm-side-nav a::before{color:#414147}
.mm-light-mode .mm-topbar{background:#efede8}
.mm-light-mode .mm-search{background:#fff;border-color:rgba(0,0,0,.05)}
.mm-light-mode .mm-search input{color:#17171a}.mm-light-mode .mm-search input::placeholder{color:#808087}.mm-light-mode .mm-search__grid,.mm-light-mode .mm-search button{color:#333338}
.mm-light-mode .mm-topbar__login{color:#222226}.mm-light-mode .mm-topbar__register{background:#19191c;color:#fff}
.mm-light-mode .mm-theme-toggle__sun{display:none}.mm-light-mode .mm-theme-toggle__moon{display:grid}
.mm-light-mode .mm-stage__panel{background:radial-gradient(circle at 76% 58%,rgba(233,43,43,.14),transparent 24%),linear-gradient(135deg,#f8f6f2,#e9e6e0)}
.mm-light-mode .mm-stage__grid{opacity:.28;background-image:linear-gradient(rgba(0,0,0,.045) 1px,transparent 1px),linear-gradient(90deg,rgba(0,0,0,.045) 1px,transparent 1px)}
.mm-light-mode .mm-stage h1{color:#17171a}.mm-light-mode .mm-stage h1 span{color:#77777f}.mm-light-mode .mm-stage__copy>p,.mm-light-mode .mm-eyebrow{color:#68686f}
.mm-light-mode .mm-ghost-btn{color:#17171a;border-color:rgba(0,0,0,.18)}.mm-light-mode .mm-ghost-btn:hover{background:rgba(0,0,0,.05)}
.mm-light-mode .mm-featured{background:rgba(250,248,244,.88);border-color:rgba(0,0,0,.08);color:#17171a}.mm-light-mode .mm-mini-card{background:rgba(0,0,0,.03)}.mm-light-mode .mm-mini-card:hover{background:rgba(0,0,0,.055);border-color:rgba(0,0,0,.06)}.mm-light-mode .mm-mini-card__arrow{border-color:rgba(0,0,0,.13)}.mm-light-mode .mm-featured__all{background:#19191c;color:#fff}

@media (max-width:1280px){
  :root{--mm-sidebar:205px}
  .mm-stage__content{grid-template-columns:minmax(340px,.8fr) minmax(430px,1.2fr);padding-left:42px;padding-right:42px;gap:26px}
  .mm-stage h1{font-size:clamp(40px,4vw,60px)}
  .mm-featured{grid-template-columns:145px minmax(0,1fr) 82px;left:30px;right:30px}.mm-featured__items{gap:6px}.mm-mini-card{padding-left:8px;padding-right:8px}
}

@media (max-height:760px) and (min-width:901px){
  :root{--mm-topbar:64px}
  .mm-topbar{height:64px}.mm-search{height:38px}
  .mm-stage__content{height:calc(100% - 92px);padding-top:26px;padding-bottom:18px}
  .mm-stage h1{margin-top:14px;margin-bottom:14px;font-size:clamp(38px,3.7vw,56px)}
  .mm-stage__copy>p{line-height:1.55}.mm-stage__actions{margin-top:20px}.mm-btn,.mm-ghost-btn{height:42px}
  .mm-featured{min-height:68px;bottom:12px}.mm-mini-card{min-height:48px}.mm-featured__title small{display:none}
}

@media (max-width:1040px){
  .mm-topbar{grid-template-columns:minmax(240px,1fr) auto;gap:14px}.mm-topbar__actions{gap:14px}.mm-topbar__login{display:none}
  .mm-stage__content{grid-template-columns:minmax(330px,.9fr) minmax(390px,1.1fr);padding:34px 30px 20px}.mm-stage h1{font-size:44px}
  .mm-featured{grid-template-columns:125px minmax(0,1fr) 76px}.mm-mini-card__number{display:none}.mm-mini-card{grid-template-columns:1fr 22px}.mm-featured__title strong{font-size:11px}
}

@media (max-width:900px){
  :root{--mm-topbar:68px}
  body.home{overflow:auto}
  .mm-workspace{margin-left:0}.mm-sidebar{width:min(300px,84vw);left:8px;transform:translateX(calc(-100% - 18px));z-index:110}
  .mm-sidebar-collapsed .mm-sidebar{width:min(300px,84vw);padding:16px 14px 14px}.mm-sidebar-collapsed .mm-workspace{margin-left:0}.mm-sidebar-collapsed .mm-brand__text,.mm-sidebar-collapsed .mm-sidebar__label{opacity:1;width:auto;pointer-events:auto}.mm-sidebar-collapsed .mm-sidebar__top{justify-content:space-between}.mm-sidebar-collapsed .mm-sidebar-toggle{position:static;opacity:1;width:30px;height:30px}.mm-sidebar-collapsed .mm-sidebar__primary,.mm-sidebar-collapsed .mm-side-nav a,.mm-sidebar-collapsed .mm-sidebar__group>a,.mm-sidebar-collapsed .mm-sidebar__utility,.mm-sidebar-collapsed .mm-theme-toggle{justify-content:flex-start;padding-left:9px;padding-right:9px}.mm-sidebar-collapsed .mm-sidebar__group-title{height:auto;padding:3px 9px 7px;border-top:0;margin:0}
  .mm-sidebar-open .mm-sidebar{transform:translateX(0)}.mm-sidebar-overlay{position:fixed;inset:0;z-index:100;border:0;background:rgba(0,0,0,.55);backdrop-filter:blur(3px)}.mm-sidebar-open .mm-sidebar-overlay{display:block}
  .mm-topbar{height:68px;grid-template-columns:40px minmax(0,1fr) auto;padding:8px 12px;gap:10px}.mm-mobile-menu{display:block}.mm-search{height:40px}.mm-search__grid{display:none}.mm-topbar__actions{gap:8px}.mm-topbar__price,.mm-topbar__login{display:none}.mm-topbar__register{padding:10px 12px;font-size:0}.mm-topbar__register::after{content:'Аккаунт';font-size:10px}
  .home .mm-main{height:auto;min-height:calc(100dvh - 68px);overflow:visible;padding-right:8px}
  .mm-stage{height:auto;min-height:calc(100dvh - 76px)}.mm-stage__panel{min-height:760px;overflow:hidden}
  .mm-stage__content{height:auto;grid-template-columns:1fr;padding:52px 28px 160px;gap:26px}.mm-stage__copy{max-width:660px}.mm-stage h1{font-size:clamp(42px,8vw,68px)}
  .mm-showcase{width:min(100%,650px);justify-self:center;aspect-ratio:1.25/1}.mm-featured{left:18px;right:18px;bottom:18px;grid-template-columns:1fr 80px;gap:10px}.mm-featured__title{display:none}.mm-featured__items{grid-column:1/2}.mm-featured__all{grid-column:2/3;grid-row:1/2}.mm-mini-card:nth-child(3){display:none}
  .mm-post-grid,.woocommerce .products{grid-template-columns:repeat(2,1fr)}.mm-footer__grid{grid-template-columns:1fr 1fr}
}

@media (max-width:620px){
  .mm-topbar__register{display:none}.mm-topbar{grid-template-columns:40px minmax(0,1fr)}
  .mm-main{padding-right:6px}.mm-stage__panel{border-radius:16px;min-height:730px}.mm-stage__content{padding:40px 20px 150px}.mm-stage h1{font-size:44px}.mm-stage__copy>p{font-size:13px}.mm-stage__actions{align-items:flex-start;flex-direction:column;gap:10px}.mm-btn,.mm-ghost-btn{height:43px}
  .mm-showcase{margin-top:-4px;aspect-ratio:1.13/1}.mm-showcase__browser{inset:5% 0 4% 2%}.mm-showcase__browserbar{height:34px}.mm-showcase__screen{height:calc(100% - 34px);padding:9px}.mm-demo-body{padding:8px 10px;grid-template-columns:.85fr 1.15fr}.mm-demo-art{min-height:150px}.mm-demo-copy strong{font-size:25px}.mm-showcase__chip--top{right:-2px}.mm-showcase__chip--bottom{left:-3px}
  .mm-featured{grid-template-columns:1fr;padding:10px;min-height:104px}.mm-featured__items{grid-column:1}.mm-featured__all{display:none}.mm-mini-card:nth-child(2){display:grid}.mm-mini-card{min-height:48px}
  .mm-container{width:min(calc(100% - 28px),1240px)}.mm-post-grid,.woocommerce .products{grid-template-columns:1fr}.mm-footer__grid{grid-template-columns:1fr}.mm-footer__bottom{gap:18px;flex-direction:column}
}
.mm-heading{margin-bottom:34px}.mm-heading h1{font-size:clamp(42px,6vw,72px);letter-spacing:-.05em;margin:12px 0}.mm-kicker{display:inline-flex;align-items:center;gap:8px;font-size:10px;text-transform:uppercase;letter-spacing:.12em;color:#77777e;font-weight:800}.mm-kicker i{width:6px;height:6px;border-radius:50%;background:var(--mm-red)}


/* ==========================================================================
   MIDDLE-MEDIA v0.3 — visual refresh inspired by Middle Community
   Layout preserved, visual language updated
   ========================================================================== */
:root{
  --mm-red:#6554C0;
  --mm-red-2:#7D6BE8;
  --mm-bg:#101722;
  --mm-bg-2:#151E2B;
  --mm-panel:#1D2836;
  --mm-panel-2:#223047;
  --mm-text:#F5F8FC;
  --mm-muted:#A7B2C2;
  --mm-line:#2D3B4D;
  --mm-line-strong:rgba(255,255,255,.14);
  --mm-font:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
}
body{
  background:
    radial-gradient(circle at 10% 6%,rgba(255,255,255,.06),transparent 23%),
    radial-gradient(circle at 87% 14%,rgba(61,126,219,.10),transparent 29%),
    radial-gradient(circle at 20% 88%,rgba(101,84,192,.12),transparent 26%),
    var(--mm-bg);
}
.mm-app{background:transparent}
.mm-sidebar{
  background:color-mix(in srgb,var(--mm-panel) 92%,transparent);
  border-color:rgba(255,255,255,.08);
  border-radius:28px;
  box-shadow:0 28px 80px rgba(0,0,0,.24),0 10px 28px rgba(0,0,0,.12);
  backdrop-filter:blur(18px) saturate(1.08);
  -webkit-backdrop-filter:blur(18px) saturate(1.08);
}
.mm-topbar{
  background:transparent;
  padding-top:14px;
  padding-bottom:10px;
}
.mm-search{
  background:color-mix(in srgb,var(--mm-panel) 88%,transparent);
  border-color:rgba(255,255,255,.08);
  box-shadow:0 18px 52px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.03);
}
.mm-topbar__register{
  background:#fff;
  color:#191919;
  border-radius:999px;
  padding-inline:18px;
  box-shadow:0 10px 24px rgba(0,0,0,.15);
}
.mm-topbar__price{color:#A797FF}
.mm-sidebar__primary{
  background:linear-gradient(135deg,#6554C0,#4F86DA);
  border-radius:14px;
  box-shadow:0 12px 28px rgba(101,84,192,.24);
}
.mm-sidebar__primary-icon{color:#6554C0}
.mm-brand__mark{
  width:44px;
  height:44px;
  flex:0 0 44px;
  border-radius:14px;
  background:linear-gradient(145deg,#6554C0,#4F86DA);
  box-shadow:0 12px 25px rgba(101,84,192,.28);
}
.mm-brand__mark::before,.mm-brand__mark::after,.mm-brand__mark i,.mm-brand__mark b{background:#fff}
.mm-brand__mark::before{left:9px;top:10px;width:7px;height:24px}
.mm-brand__mark::after{right:9px;top:10px;width:7px;height:24px}
.mm-brand__mark i{left:16px;top:10px;width:6px;height:24px}
.mm-brand__mark b{left:21px;top:10px;width:6px;height:24px}
.mm-side-nav a,.mm-sidebar__group>a,.mm-sidebar__utility,.mm-theme-toggle{border-radius:14px}
.mm-side-nav .current-menu-item>a,.mm-side-nav .current_page_item>a{
  background:rgba(255,255,255,.06);
}
.mm-side-nav .current-menu-item>a::after,.mm-side-nav .current_page_item>a::after{
  background:linear-gradient(180deg,#6554C0,#4F86DA);
}

body:not(.home) .mm-main{
  background:transparent;
  color:var(--mm-text);
}
.mm-stage__panel{
  border-radius:34px;
  border:1px solid rgba(255,255,255,.08);
  box-shadow:0 30px 80px rgba(0,0,0,.20),0 10px 28px rgba(0,0,0,.12);
}
.mm-stage__copy .mm-eyebrow{
  padding:8px 12px;
  border-radius:999px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.08);
  width:max-content;
}
.mm-btn{
  background:linear-gradient(135deg,#6554C0,#4F86DA);
  border-radius:999px;
  box-shadow:0 16px 34px rgba(101,84,192,.24);
}
.mm-ghost-btn{
  border-radius:999px;
}
.mm-showcase__browser,
.mm-featured,
.mm-post-card,
.woocommerce ul.products li.product,
.mm-footer,
.mm-prose__hero img{
  border-radius:30px;
}
.mm-showcase__browser{
  background:linear-gradient(180deg,rgba(255,255,255,.10),rgba(255,255,255,.04));
  border:1px solid rgba(255,255,255,.10);
  box-shadow:0 30px 70px rgba(0,0,0,.28);
}
.mm-showcase__browserbar{background:rgba(8,12,18,.44)}
.mm-showcase__screen{background:linear-gradient(135deg,rgba(24,32,45,.92),rgba(19,27,39,.98))}
.mm-demo-nav{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.08)}
.mm-demo-copy strong{letter-spacing:-.05em}
.mm-demo-copy small{color:#aab5c4}
.mm-demo-copy p{background:rgba(255,255,255,.18)}
.mm-demo-copy button{background:linear-gradient(135deg,#6554C0,#4F86DA)}
.mm-demo-art{background:radial-gradient(circle at 50% 40%,rgba(101,84,192,.95),rgba(79,134,218,.78) 34%,#1a2230 72%,#101722 100%)}
.mm-demo-art::before,.mm-demo-art::after{border-color:rgba(255,255,255,.24)}
.mm-demo-art b{background:radial-gradient(circle at 30% 25%,#d8cffd,#7D6BE8 36%,#395f9d 74%);box-shadow:0 0 45px rgba(101,84,192,.40)}
.mm-showcase__chip{
  background:rgba(21,30,43,.84);
  border-color:rgba(255,255,255,.10);
}
.mm-showcase__chip--top span{color:#c7bcff}
.mm-featured{
  background:color-mix(in srgb,var(--mm-panel) 90%,transparent);
  border:1px solid rgba(255,255,255,.10);
  box-shadow:0 24px 70px rgba(0,0,0,.20);
}
.mm-mini-card{
  border-radius:16px;
}
.mm-mini-card__number{color:#c6bbff}
.mm-featured__all{
  border-radius:999px;
  background:linear-gradient(135deg,#6554C0,#4F86DA);
  color:#fff;
}

.mm-section{padding:60px 0}
.mm-post-card,
.woocommerce ul.products li.product{
  border:1px solid rgba(255,255,255,.10);
  background:color-mix(in srgb,var(--mm-panel) 88%,transparent);
  box-shadow:0 18px 52px rgba(0,0,0,.16);
  overflow:hidden;
}
.mm-post-card>div{padding:24px}
.mm-post-card small,.mm-post-card p,.mm-prose p,.mm-prose li{color:var(--mm-muted)}
.mm-post-card h2 a,.mm-prose h1,.mm-prose h2{color:var(--mm-text)}
.woocommerce .price{color:#c7bcff!important}
.woocommerce ul.products li.product .button,.woocommerce button.button,.woocommerce a.button{
  background:linear-gradient(135deg,#6554C0,#4F86DA);
}
.mm-footer{
  background:color-mix(in srgb,var(--mm-panel) 94%,transparent);
  border:1px solid rgba(255,255,255,.08);
  width:min(calc(100% - 28px),1240px);
  margin:0 auto 26px;
  border-radius:34px;
  padding:42px 0 22px;
  box-shadow:0 22px 60px rgba(0,0,0,.18);
}
.mm-footer__lead,.mm-footer h3,.mm-footer__menu a,.mm-footer__bottom{color:var(--mm-muted)}
.mm-footer__menu a:hover{color:var(--mm-text)}

/* Light mode — default visual preset */
.mm-light-mode{
  --mm-bg:#F4F1EC;
  --mm-bg-2:#F8F5F0;
  --mm-panel:#F4EFFA;
  --mm-panel-2:#FFFFFF;
  --mm-text:#191919;
  --mm-muted:#6F706F;
  --mm-line:#E5E0D9;
  --mm-line-strong:rgba(25,25,25,.10);
}
.mm-light-mode body{
  background:
    radial-gradient(circle at 8% 4%,rgba(233,229,250,.92),transparent 26%),
    radial-gradient(circle at 93% 9%,rgba(185,217,236,.72),transparent 31%),
    radial-gradient(circle at 22% 88%,rgba(242,223,211,.72),transparent 29%),
    linear-gradient(180deg,#F8F6F2 0%,#F4F1EC 100%);
  color:#191919;
}
.mm-light-mode .mm-sidebar{
  background:rgba(244,239,250,.82);
  border-color:rgba(255,255,255,.62);
  box-shadow:0 18px 52px rgba(44,65,90,.075),0 2px 10px rgba(44,65,90,.035);
}
.mm-light-mode .mm-brand,
.mm-light-mode .mm-side-nav a,
.mm-light-mode .mm-sidebar__group>a,
.mm-light-mode .mm-sidebar__utility,
.mm-light-mode .mm-theme-toggle,
.mm-light-mode .mm-topbar__login,
.mm-light-mode .mm-search input,
.mm-light-mode .mm-search__grid,
.mm-light-mode .mm-search button,
.mm-light-mode .mm-featured,
.mm-light-mode .mm-post-card,
.mm-light-mode .mm-prose,
.mm-light-mode body:not(.home) .mm-main,
.mm-light-mode .mm-footer{color:#191919}
.mm-light-mode .mm-brand__text span{color:#6554C0}
.mm-light-mode .mm-side-nav a::before{color:#5f5a69}
.mm-light-mode .mm-side-nav a:hover,
.mm-light-mode .mm-sidebar__group>a:hover,
.mm-light-mode .mm-sidebar__utility:hover,
.mm-light-mode .mm-theme-toggle:hover,
.mm-light-mode .mm-side-nav .current-menu-item>a,
.mm-light-mode .mm-side-nav .current_page_item>a{background:rgba(255,255,255,.58);color:#191919}
.mm-light-mode .mm-sidebar__group-title{color:#8d7bb6}
.mm-light-mode .mm-sidebar__primary-icon{background:#fff;color:#6554C0}
.mm-light-mode .mm-topbar{background:transparent}
.mm-light-mode .mm-search{
  background:rgba(244,239,250,.80);
  border-color:rgba(255,255,255,.65);
  box-shadow:0 18px 52px rgba(44,65,90,.075),0 2px 10px rgba(44,65,90,.035);
}
.mm-light-mode .mm-search input::placeholder{color:#847f8e}
.mm-light-mode .mm-topbar__register{
  background:#fff;
  color:#191919;
  box-shadow:0 10px 24px rgba(44,65,90,.10);
}
.mm-light-mode .mm-theme-toggle__sun{display:none}
.mm-light-mode .mm-theme-toggle__moon{display:grid}
.mm-light-mode .mm-stage__panel{
  background:
    radial-gradient(circle at 8% 10%,rgba(233,229,250,.98),transparent 24%),
    radial-gradient(circle at 92% 14%,rgba(185,217,236,.78),transparent 29%),
    radial-gradient(circle at 16% 92%,rgba(242,223,211,.72),transparent 26%),
    linear-gradient(180deg,rgba(255,255,255,.62),rgba(248,245,240,.92));
  border-color:rgba(255,255,255,.65);
  box-shadow:0 24px 60px rgba(44,65,90,.10);
}
.mm-light-mode .mm-stage__grid{
  opacity:.16;
  background-image:linear-gradient(rgba(25,25,25,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(25,25,25,.035) 1px,transparent 1px);
}
.mm-light-mode .mm-stage__copy .mm-eyebrow{
  background:rgba(255,255,255,.58);
  border-color:#E5E0D9;
  color:#6554C0;
}
.mm-light-mode .mm-stage h1{color:#191919}
.mm-light-mode .mm-stage h1 span{color:#6554C0}
.mm-light-mode .mm-stage__copy>p{color:#6F706F}
.mm-light-mode .mm-ghost-btn{
  color:#191919;
  border-color:#D9D5E4;
  background:rgba(255,255,255,.58);
}
.mm-light-mode .mm-ghost-btn:hover{background:#fff}
.mm-light-mode .mm-showcase__browser{
  background:rgba(248,250,253,.92);
  border-color:rgba(255,255,255,.80);
  box-shadow:0 24px 56px rgba(44,65,90,.14);
}
.mm-light-mode .mm-showcase__halo{background:radial-gradient(circle,rgba(101,84,192,.18),transparent 62%)}
.mm-light-mode .mm-showcase__browserbar{
  background:rgba(244,239,250,.92);
  color:#595564;
}
.mm-light-mode .mm-showcase__screen{
  background:linear-gradient(135deg,#f7fbfd,#eef5fb);
}
.mm-light-mode .mm-demo-nav{
  background:rgba(255,255,255,.76);
  border-color:#E5E0D9;
  color:#1b1b1d;
}
.mm-light-mode .mm-demo-nav strong span{color:#6554C0}
.mm-light-mode .mm-demo-nav i{background:#d6d9e0}
.mm-light-mode .mm-demo-nav button{background:#E9E5FA}
.mm-light-mode .mm-demo-copy small{color:#6554C0}
.mm-light-mode .mm-demo-copy strong{color:#191919}
.mm-light-mode .mm-demo-copy p{background:#d7e5f1}
.mm-light-mode .mm-demo-art{
  background:radial-gradient(circle at 50% 38%,rgba(101,84,192,.85),rgba(111,168,247,.70) 34%,#bfd8f5 72%,#eaf2f7 100%);
}
.mm-light-mode .mm-demo-art::before,.mm-light-mode .mm-demo-art::after{border-color:rgba(25,25,25,.10)}
.mm-light-mode .mm-demo-art b{background:radial-gradient(circle at 30% 25%,#ffffff,#bbaef5 35%,#6A8DE0 72%);box-shadow:0 0 36px rgba(101,84,192,.26)}
.mm-light-mode .mm-demo-orbit{background:rgba(25,25,25,.14)}
.mm-light-mode .mm-showcase__chip{
  background:rgba(255,255,255,.84);
  color:#191919;
  border-color:#E5E0D9;
  box-shadow:0 16px 34px rgba(44,65,90,.10);
}
.mm-light-mode .mm-showcase__chip--top span{color:#6554C0}
.mm-light-mode .mm-showcase__chip--bottom i:first-of-type{background:#fff;border:1px solid #ddd6ee}
.mm-light-mode .mm-showcase__chip--bottom i:last-child{background:#1D2836;border-color:#1D2836}
.mm-light-mode .mm-featured{
  background:rgba(244,239,250,.84);
  border-color:rgba(255,255,255,.72);
  box-shadow:0 18px 52px rgba(44,65,90,.09);
}
.mm-light-mode .mm-featured__title small{color:#8d7bb6}
.mm-light-mode .mm-mini-card{
  background:rgba(255,255,255,.54);
  border-color:transparent;
}
.mm-light-mode .mm-mini-card:hover{
  background:#fff;
  border-color:#E5E0D9;
}
.mm-light-mode .mm-mini-card__number{color:#6554C0}
.mm-light-mode .mm-mini-card__info small{color:#79737f}
.mm-light-mode .mm-mini-card__arrow{border-color:#DCD4EE}
.mm-light-mode body:not(.home) .mm-main{color:#191919}
.mm-light-mode .mm-post-card,
.mm-light-mode .woocommerce ul.products li.product{
  background:rgba(244,239,250,.80);
  border-color:rgba(255,255,255,.72);
  box-shadow:0 18px 52px rgba(44,65,90,.075),0 2px 10px rgba(44,65,90,.035);
}
.mm-light-mode .mm-post-card h2 a,
.mm-light-mode .mm-prose h1,
.mm-light-mode .mm-prose h2{color:#191919}
.mm-light-mode .mm-post-card p,
.mm-light-mode .mm-post-card small,
.mm-light-mode .mm-prose p,
.mm-light-mode .mm-prose li{color:#6F706F}
.mm-light-mode .mm-prose__hero{border-radius:30px;overflow:hidden}
.mm-light-mode .mm-footer{
  background:rgba(244,239,250,.82);
  border-color:rgba(255,255,255,.72);
  box-shadow:0 18px 52px rgba(44,65,90,.075),0 2px 10px rgba(44,65,90,.035);
}
.mm-light-mode .mm-footer__lead,
.mm-light-mode .mm-footer h3,
.mm-light-mode .mm-footer__menu a,
.mm-light-mode .mm-footer__bottom{color:#6F706F}
.mm-light-mode .mm-footer__menu a:hover{color:#191919}

@media (max-width:900px){
  .mm-light-mode .mm-sidebar{background:rgba(244,239,250,.94)}
  .mm-topbar{padding-top:8px}
}

/* ==========================================================================
   MIDDLE-MEDIA v0.4 — ready-made template storefront
   ========================================================================== */
:root{
  --mm-font:'Onest',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
}
body{font-size:15px;line-height:1.55}

/* Sidebar brand: centered mark with name below */
.mm-sidebar__top{
  position:relative;
  min-height:88px;
  align-items:flex-start;
  justify-content:center;
  margin-bottom:8px;
}
.mm-brand{
  width:100%;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:7px;
  text-align:center;
  letter-spacing:-.025em;
}
.mm-brand__mark{width:48px;height:48px;flex:0 0 48px;border-radius:16px}
.mm-brand__mark::before{left:10px;top:11px;width:7px;height:25px}
.mm-brand__mark::after{right:10px;top:11px;width:7px;height:25px}
.mm-brand__mark i{left:17px;top:11px;width:6px;height:25px}
.mm-brand__mark b{left:22px;top:11px;width:6px;height:25px}
.mm-brand__text{font-size:13px;line-height:1.1;font-weight:800;letter-spacing:.02em}
.mm-brand__logo{display:grid;place-items:center;min-height:48px}
.mm-brand__logo img{max-width:76px;max-height:48px;width:auto;height:auto}
.mm-sidebar-toggle{position:absolute;right:0;top:0}

/* Slightly larger interface typography */
.mm-side-nav a,.mm-sidebar__group>a,.mm-sidebar__utility,.mm-theme-toggle{font-size:12.5px;font-weight:650}
.mm-sidebar__primary{font-size:12.5px}
.mm-sidebar__group-title{font-size:10px}
.mm-search input{font-size:13.5px}
.mm-topbar__actions{font-size:12.5px}
.mm-stage__copy>p{font-size:clamp(15px,1.05vw,17px);line-height:1.65}
.mm-eyebrow{font-size:11px}
.mm-btn,.mm-ghost-btn{font-size:12.5px}

/* Right storefront built from WordPress posts */
.mm-template-showcase{
  position:relative;
  width:min(100%,760px);
  height:min(54vh,520px);
  min-height:390px;
  justify-self:end;
  align-self:center;
  display:grid;
  grid-template-rows:auto minmax(0,1fr);
  gap:12px;
}
.mm-template-showcase__head{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:18px;
  padding:0 4px;
}
.mm-template-showcase__head small{
  display:block;
  margin-bottom:3px;
  color:#8d7bb6;
  font-size:9px;
  font-weight:800;
  letter-spacing:.12em;
}
.mm-template-showcase__head strong{display:block;font-size:18px;letter-spacing:-.025em}
.mm-template-showcase__head>a{font-size:11px;font-weight:750;color:var(--mm-muted);white-space:nowrap}
.mm-template-showcase__head>a:hover{color:var(--mm-text)}
.mm-template-showcase__grid{
  min-height:0;
  display:grid;
  grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr);
  grid-template-rows:repeat(2,minmax(0,1fr));
  gap:12px;
}
.mm-template-card{
  min-width:0;
  min-height:0;
  display:grid;
  grid-template-columns:43% minmax(0,1fr);
  overflow:hidden;
  border-radius:24px;
  background:color-mix(in srgb,var(--mm-panel) 92%,transparent);
  border:1px solid rgba(255,255,255,.10);
  box-shadow:0 18px 48px rgba(0,0,0,.15);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
  transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;
}
.mm-template-card:hover{transform:translateY(-2px);box-shadow:0 24px 58px rgba(0,0,0,.20);border-color:rgba(255,255,255,.16)}
.mm-template-card--featured{
  grid-row:1 / span 2;
  grid-template-columns:1fr;
  grid-template-rows:minmax(0,1fr) auto;
}
.mm-template-card:only-child{grid-column:1/-1;grid-row:1/-1;grid-template-columns:52% 1fr;grid-template-rows:1fr}
.mm-template-card__media{position:relative;display:block;min-width:0;min-height:0;overflow:hidden;background:linear-gradient(145deg,#e9e5fa,#b9d9ec)}
.mm-template-card__media img{width:100%;height:100%;object-fit:cover;transition:transform .35s ease}
.mm-template-card:hover .mm-template-card__media img{transform:scale(1.025)}
.mm-template-card__placeholder{position:absolute;inset:0;display:grid;place-content:center;justify-items:center;gap:7px;background:radial-gradient(circle at 25% 20%,rgba(255,255,255,.96),transparent 34%),linear-gradient(145deg,#e9e5fa,#b9d9ec);color:#191919}
.mm-template-card__placeholder b{width:48px;height:48px;border-radius:16px;display:grid;place-items:center;background:linear-gradient(145deg,#6554C0,#4F86DA);color:#fff;font-size:21px;box-shadow:0 12px 26px rgba(101,84,192,.24)}
.mm-template-card__placeholder small{font-size:9px;font-weight:850;letter-spacing:.08em}
.mm-template-card__category{position:absolute;top:10px;left:10px;max-width:calc(100% - 20px);padding:6px 9px;border-radius:999px;background:rgba(255,255,255,.88);backdrop-filter:blur(10px);color:#25222a;font-size:8.5px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;box-shadow:0 5px 18px rgba(43,69,97,.08)}
.mm-template-card__content{min-width:0;display:flex;flex-direction:column;justify-content:center;padding:14px 14px 13px}
.mm-template-card--featured .mm-template-card__content{padding:16px 17px 16px}
.mm-template-card__title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;min-width:0}
.mm-template-card__title-row h2{min-width:0;margin:0;font-size:14px;line-height:1.15;letter-spacing:-.025em}
.mm-template-card--featured .mm-template-card__title-row h2{font-size:18px}
.mm-template-card__title-row h2 a{color:inherit}
.mm-template-card__price{flex:0 0 auto;color:#6554C0;font-size:12px;line-height:1.1;white-space:nowrap}
.mm-template-card--featured .mm-template-card__price{font-size:14px}
.mm-template-card__content>p{margin:8px 0 0;color:var(--mm-muted);font-size:11.5px;line-height:1.5}
.mm-template-card__actions{display:flex;align-items:center;gap:7px;margin-top:11px;flex-wrap:wrap}
.mm-template-card__buy,.mm-template-card__more{min-height:32px;display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:0 11px;font-size:10.5px;font-weight:750;white-space:nowrap}
.mm-template-card__buy{background:linear-gradient(135deg,#6554C0,#4F86DA);color:#fff!important;box-shadow:0 8px 18px rgba(101,84,192,.18)}
.mm-template-card__buy:hover{transform:translateY(-1px)}
.mm-template-card__more{border:1px solid var(--mm-line);color:var(--mm-text);background:rgba(255,255,255,.04)}
.mm-template-card__more:hover{background:rgba(255,255,255,.08)}
.mm-template-empty{grid-column:1/-1;grid-row:1/-1;display:grid;place-content:center;justify-items:center;text-align:center;padding:26px;border-radius:28px;border:1px dashed var(--mm-line-strong);background:color-mix(in srgb,var(--mm-panel) 78%,transparent)}
.mm-template-empty>span{width:54px;height:54px;border-radius:18px;display:grid;place-items:center;background:linear-gradient(145deg,#6554C0,#4F86DA);color:#fff;font-size:22px;font-weight:900;box-shadow:0 12px 28px rgba(101,84,192,.22)}
.mm-template-empty strong{margin-top:14px;font-size:17px}
.mm-template-empty p{max-width:430px;margin:7px auto 0;color:var(--mm-muted);font-size:12.5px;line-height:1.55}
.mm-template-empty a{margin-top:14px;padding:9px 14px;border-radius:999px;background:#fff;color:#191919;font-size:11px;font-weight:750}
.mm-featured__empty{grid-column:1/-1;color:var(--mm-muted);font-size:11px}

/* Catalog and template detail pages */
.mm-catalog-card__image{display:block;overflow:hidden;background:#eef3f8}
.mm-catalog-card__footer{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:17px;padding-top:15px;border-top:1px solid var(--mm-line)}
.mm-catalog-card__footer>strong{font-size:15px;color:#6554C0;white-space:nowrap}
.mm-catalog-card__actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap;font-size:11.5px;font-weight:700}
.mm-catalog-card__buy{padding:7px 11px;border-radius:999px;background:linear-gradient(135deg,#6554C0,#4F86DA);color:#fff!important}
.mm-template-single-head{display:flex;align-items:flex-end;justify-content:space-between;gap:28px;margin:12px 0 30px}
.mm-template-single-head h1{margin:0!important}
.mm-template-single-buy{flex:0 0 auto;display:flex;align-items:center;gap:12px;padding:10px 10px 10px 16px;border:1px solid var(--mm-line);border-radius:999px;background:color-mix(in srgb,var(--mm-panel) 88%,transparent)}
.mm-template-single-buy strong{font-size:16px;color:#6554C0;white-space:nowrap}
.mm-template-single-buy a,.mm-template-single-cta a{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:0 17px;border-radius:999px;background:linear-gradient(135deg,#6554C0,#4F86DA);color:#fff!important;font-size:12px;font-weight:780}
.mm-template-single-cta{margin-top:44px;padding:20px 22px;display:flex;align-items:center;justify-content:space-between;gap:20px;border-radius:28px;background:color-mix(in srgb,var(--mm-panel) 88%,transparent);border:1px solid var(--mm-line);box-shadow:0 18px 52px rgba(0,0,0,.10)}
.mm-template-single-cta small{display:block;color:#8d7bb6;font-size:9px;font-weight:800;letter-spacing:.12em;margin-bottom:4px}
.mm-template-single-cta strong{font-size:17px}
.mm-template-single-cta__actions{display:flex;align-items:center;gap:14px}
.mm-template-single-cta__actions b{font-size:16px;color:#6554C0;white-space:nowrap}

/* Light mode storefront */
.mm-light-mode .mm-template-card{
  background:rgba(244,239,250,.84);
  border-color:rgba(255,255,255,.74);
  box-shadow:0 18px 52px rgba(44,65,90,.075),0 2px 10px rgba(44,65,90,.035);
}
.mm-light-mode .mm-template-card:hover{background:rgba(255,255,255,.90);border-color:#fff;box-shadow:0 24px 60px rgba(44,65,90,.12)}
.mm-light-mode .mm-template-card__content>p{color:#6F706F}
.mm-light-mode .mm-template-card__more{background:rgba(255,255,255,.58);border-color:#ddd7e8;color:#191919}
.mm-light-mode .mm-template-card__more:hover{background:#fff}
.mm-light-mode .mm-template-empty{background:rgba(244,239,250,.72);border-color:#d9d1e8}
.mm-light-mode .mm-template-single-buy,.mm-light-mode .mm-template-single-cta{background:rgba(244,239,250,.80);border-color:rgba(255,255,255,.72);box-shadow:0 18px 52px rgba(44,65,90,.075)}

/* Preserve compact desktop composition */
@media (max-width:1280px){
  .mm-template-showcase{height:min(52vh,470px)}
  .mm-template-card__content{padding:12px}
  .mm-template-card--featured .mm-template-card__content{padding:14px}
  .mm-template-card__title-row h2{font-size:13px}
  .mm-template-card--featured .mm-template-card__title-row h2{font-size:16px}
}
@media (max-height:760px) and (min-width:901px){
  .mm-sidebar__top{min-height:72px}
  .mm-brand__mark{width:42px;height:42px;flex-basis:42px}
  .mm-brand__text{font-size:11.5px}
  .mm-template-showcase{height:min(49vh,400px);min-height:330px;gap:8px}
  .mm-template-showcase__grid{gap:8px}
  .mm-template-showcase__head strong{font-size:15px}
  .mm-template-card{border-radius:18px}
  .mm-template-card__content{padding:10px}
  .mm-template-card--featured .mm-template-card__content{padding:11px 12px}
  .mm-template-card__actions{margin-top:7px}
  .mm-template-card__buy,.mm-template-card__more{min-height:28px;font-size:9.5px;padding:0 9px}
  .mm-template-card__content>p{display:none}
}
@media (max-width:1040px) and (min-width:901px){
  .mm-template-showcase__grid{grid-template-columns:1fr;grid-template-rows:repeat(3,minmax(0,1fr))}
  .mm-template-card,.mm-template-card--featured{grid-column:auto;grid-row:auto;grid-template-columns:38% 1fr;grid-template-rows:1fr}
  .mm-template-card--featured .mm-template-card__content{padding:12px}
  .mm-template-card--featured .mm-template-card__title-row h2{font-size:14px}
  .mm-template-card--featured .mm-template-card__price{font-size:12px}
  .mm-template-card--featured .mm-template-card__content>p{display:none}
}
@media (max-width:900px){
  .mm-sidebar__top{min-height:88px}
  .mm-brand{width:100%;flex-direction:column;align-items:center}
  .mm-template-showcase{width:min(100%,680px);height:auto;min-height:0;justify-self:center}
  .mm-template-showcase__grid{grid-template-columns:1fr 1fr;grid-template-rows:auto;align-items:stretch}
  .mm-template-card,.mm-template-card--featured{grid-column:auto;grid-row:auto;display:grid;grid-template-columns:1fr;grid-template-rows:180px auto}
  .mm-template-card--featured{grid-column:1/-1;grid-template-columns:45% 1fr;grid-template-rows:minmax(240px,auto)}
  .mm-template-card--featured .mm-template-card__content>p{display:block}
  .mm-template-card:only-child{grid-column:1/-1;grid-template-columns:45% 1fr;grid-template-rows:minmax(240px,auto)}
}
@media (max-width:620px){
  body{font-size:15px}
  .mm-template-showcase__head strong{font-size:16px}
  .mm-template-showcase__grid{grid-template-columns:1fr}
  .mm-template-card,.mm-template-card--featured,.mm-template-card:only-child{grid-column:auto;grid-row:auto;grid-template-columns:40% 1fr;grid-template-rows:170px}
  .mm-template-card--featured .mm-template-card__content>p{display:none}
  .mm-template-card__title-row{display:block}
  .mm-template-card__price{display:block;margin-top:5px}
  .mm-template-card__actions{gap:5px}
  .mm-template-card__buy,.mm-template-card__more{padding:0 9px;font-size:9.5px}
  .mm-template-single-head{align-items:flex-start;flex-direction:column}
  .mm-template-single-buy{width:100%;justify-content:space-between}
  .mm-template-single-cta{align-items:flex-start;flex-direction:column}
  .mm-template-single-cta__actions{width:100%;justify-content:space-between}
  .mm-catalog-card__footer{align-items:flex-start;flex-direction:column}
  .mm-catalog-card__actions{justify-content:flex-start}
}

/* Collapsed sidebar keeps only the centered mark */
.mm-sidebar-collapsed .mm-sidebar__top{min-height:54px;align-items:center}
.mm-sidebar-collapsed .mm-brand{gap:0}
.mm-sidebar-collapsed .mm-brand__mark{width:42px;height:42px;flex-basis:42px}
.mm-sidebar-collapsed .mm-brand__logo img{max-width:42px;max-height:42px}

/* v0.4 brand final alignment */
.mm-sidebar .mm-brand--sidebar{
  width:100%;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:7px;
  text-align:center;
}
.mm-sidebar .mm-brand__mark--letter{
  display:grid;
  place-items:center;
  width:48px;
  height:48px;
  flex:0 0 48px;
  border-radius:16px;
  background:linear-gradient(145deg,#6554C0,#4F86DA);
  color:#fff;
  font-size:21px;
  line-height:1;
  font-weight:900;
  letter-spacing:-.04em;
  box-shadow:0 12px 25px rgba(101,84,192,.28);
}
.mm-sidebar .mm-brand__mark--letter::before,
.mm-sidebar .mm-brand__mark--letter::after{display:none}
.mm-footer .mm-brand--footer{width:auto;flex-direction:row;align-items:center;justify-content:flex-start;text-align:left;gap:10px}
.mm-footer .mm-brand--footer .mm-brand__mark{width:34px;height:30px;flex:0 0 34px;border-radius:0;background:transparent;box-shadow:none}
.mm-footer .mm-brand--footer .mm-brand__text{font-size:15px}
.mm-sidebar-collapsed .mm-sidebar .mm-brand--sidebar{gap:0}
.mm-sidebar-collapsed .mm-sidebar .mm-brand__mark--letter{width:42px;height:42px;flex-basis:42px;font-size:19px}


/* ==========================================================================
   MIDDLE-MEDIA v0.5 — stable sidebar, six-card storefront, larger type
   ========================================================================== */
:root{
  --mm-sidebar:238px;
  --mm-sidebar-collapsed:82px;
  --mm-font:"Segoe UI Variable","SF Pro Text","SF Pro Display",Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
body{font-size:16px;line-height:1.5;text-rendering:optimizeLegibility}

/* Sidebar: fixed icon columns prevent jumping while width animates */
.mm-sidebar{
  width:calc(var(--mm-sidebar) - 8px);
  padding:16px 12px 14px;
  overflow:visible;
  transition:width .22s cubic-bezier(.2,.7,.2,1),transform .22s ease,background .2s ease;
  contain:layout style;
}
.mm-sidebar__top{min-height:88px;margin:0 0 12px;justify-content:center;overflow:hidden}
.mm-sidebar .mm-brand--sidebar{width:100%;min-width:0;gap:8px}
.mm-sidebar .mm-brand__mark--letter{width:50px;height:50px;flex:0 0 50px;font-size:22px}
.mm-sidebar .mm-brand__text{font-size:13.5px;line-height:1.05;transition:opacity .14s ease,transform .18s ease;transform-origin:center top}
.mm-sidebar-toggle{
  position:absolute!important;
  z-index:6;
  top:50%!important;
  right:-15px!important;
  left:auto!important;
  width:30px!important;
  height:46px!important;
  transform:translateY(-50%)!important;
  opacity:1!important;
  display:grid!important;
  place-items:center;
  padding:0;
  border:1px solid var(--mm-line)!important;
  border-radius:999px!important;
  background:color-mix(in srgb,var(--mm-panel-2) 94%,transparent)!important;
  box-shadow:0 8px 22px rgba(0,0,0,.14);
  cursor:pointer;
  transition:background .18s ease,box-shadow .18s ease;
}
.mm-sidebar-toggle:hover{box-shadow:0 10px 26px rgba(0,0,0,.20)}
.mm-sidebar-toggle svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:transform .22s ease}
.mm-sidebar-collapsed .mm-sidebar-toggle svg{transform:rotate(180deg)}
.mm-sidebar__primary,
.mm-side-nav a,
.mm-sidebar__group>a,
.mm-sidebar__utility,
.mm-theme-toggle{
  display:grid;
  grid-template-columns:34px minmax(0,1fr);
  align-items:center;
  gap:8px;
  padding:0 8px;
  min-height:40px;
  font-size:14px;
  overflow:hidden;
}
.mm-sidebar__primary{height:44px;font-size:14px}
.mm-sidebar__primary-icon{width:28px;height:28px;justify-self:center;font-size:19px}
.mm-side-nav a::before{
  width:34px;height:34px;justify-self:center;display:grid;place-items:center;flex:none;
  background-repeat:no-repeat;background-position:center;background-size:19px 19px;
  color:transparent;font-size:0;
}
.mm-side-nav li:nth-child(1) a::before{content:'';background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23656b78' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 11 8-7 8 7'/%3E%3Cpath d='M6.5 10.5V20h11v-9.5'/%3E%3Cpath d='M10 20v-5h4v5'/%3E%3C/svg%3E")}
.mm-side-nav li:nth-child(2) a::before{content:'';background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23656b78' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6'/%3E%3Cpath d='m15 15 4.5 4.5'/%3E%3C/svg%3E")}
.mm-side-nav li:nth-child(3) a::before{content:'';background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23656b78' stroke-width='1.8'%3E%3Crect x='4' y='4' width='6' height='6' rx='1'/%3E%3Crect x='14' y='4' width='6' height='6' rx='1'/%3E%3Crect x='4' y='14' width='6' height='6' rx='1'/%3E%3Crect x='14' y='14' width='6' height='6' rx='1'/%3E%3C/svg%3E")}
.mm-side-nav li:nth-child(4) a::before,.mm-side-nav li:nth-child(n+5) a::before{content:'';background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23656b78' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 3 1.7 5.3L19 10l-5.3 1.7L12 17l-1.7-5.3L5 10l5.3-1.7L12 3Z'/%3E%3C/svg%3E")}
.mm-side-icon,.mm-theme-toggle__sun,.mm-theme-toggle__moon,.mm-sidebar__utility>span:first-child{
  width:34px;height:34px;display:grid;place-items:center;justify-self:center;flex:none;
}
.mm-side-icon svg,.mm-theme-toggle svg,.mm-sidebar__utility svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.mm-more svg circle{fill:currentColor;stroke:none}
.mm-sidebar__group-title{font-size:11px;padding-left:12px}
.mm-sidebar__label{min-width:0;overflow:hidden;text-overflow:ellipsis;transition:opacity .12s ease}

.mm-sidebar-collapsed .mm-sidebar{width:calc(var(--mm-sidebar-collapsed) - 8px);padding-left:10px;padding-right:10px}
.mm-sidebar-collapsed .mm-workspace{margin-left:var(--mm-sidebar-collapsed)}
.mm-sidebar-collapsed .mm-sidebar__top{min-height:72px}
.mm-sidebar-collapsed .mm-sidebar .mm-brand__mark--letter{width:46px;height:46px;flex-basis:46px;font-size:20px}
.mm-sidebar-collapsed .mm-brand__text{opacity:0;height:0;transform:translateY(-5px);pointer-events:none}
.mm-sidebar-collapsed .mm-sidebar__label{opacity:0;width:0;pointer-events:none}
.mm-sidebar-collapsed .mm-sidebar__primary,
.mm-sidebar-collapsed .mm-side-nav a,
.mm-sidebar-collapsed .mm-sidebar__group>a,
.mm-sidebar-collapsed .mm-sidebar__utility,
.mm-sidebar-collapsed .mm-theme-toggle{
  grid-template-columns:34px 0;
  gap:0;
  padding-left:10px;
  padding-right:10px;
  justify-content:center;
}
.mm-sidebar-collapsed .mm-sidebar__group-title{height:10px;padding:0;margin:7px 7px 5px;border-top:1px solid var(--mm-line)}
.mm-sidebar-collapsed .mm-side-nav .current-menu-item>a::after,.mm-sidebar-collapsed .mm-side-nav .current_page_item>a::after{left:-10px}

/* Header and search */
.mm-search{height:46px;padding:0 8px 0 14px}
.mm-search__grid{width:24px;height:24px;display:grid;place-items:center;margin-right:10px}
.mm-search__grid svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.65}
.mm-search input{font-size:15px;line-height:1.2}
.mm-search button{width:36px;height:36px;font-size:0;padding:0}
.mm-search button svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round}
.mm-topbar__actions{font-size:14px}

/* Larger, cleaner hero typography */
.mm-eyebrow{font-size:12px}
.mm-stage__copy>p{font-size:clamp(16px,1.12vw,18px);line-height:1.62}
.mm-btn,.mm-ghost-btn{font-size:14px}

/* Six template cards on the homepage */
.mm-template-showcase{width:min(100%,850px);height:min(58vh,570px);min-height:430px;gap:10px}
.mm-template-showcase__head strong{font-size:20px}
.mm-template-showcase__head small,.mm-template-showcase__head>a{font-size:11.5px}
.mm-template-showcase__grid{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:10px}
.mm-template-card,.mm-template-card--featured,.mm-template-card:only-child{
  grid-column:auto;grid-row:auto;
  display:grid;
  grid-template-columns:1fr;
  grid-template-rows:minmax(92px,44%) minmax(0,1fr);
  border-radius:20px;
  content-visibility:auto;
  contain-intrinsic-size:230px;
}
.mm-template-card__media{min-height:92px}
.mm-template-card__category{top:8px;left:8px;padding:5px 8px;font-size:9px}
.mm-template-card__content,.mm-template-card--featured .mm-template-card__content{padding:10px 11px 11px;justify-content:flex-start;min-height:0}
.mm-template-card__title-row{display:block}
.mm-template-card__title-row h2,.mm-template-card--featured .mm-template-card__title-row h2{font-size:15px;line-height:1.18;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden}
.mm-template-card__price-row{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:7px;padding:7px 8px;border-radius:12px;background:rgba(101,84,192,.11);border:1px solid rgba(101,84,192,.14)}
.mm-template-card__price-row>span{font-size:10px;text-transform:uppercase;letter-spacing:.07em;color:var(--mm-muted);font-weight:700}
.mm-template-card__price,.mm-template-card--featured .mm-template-card__price{font-size:15px;line-height:1;color:#7D6BE8;font-weight:900}
.mm-template-card__content>p,.mm-template-card--featured .mm-template-card__content>p{display:-webkit-box!important;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;margin:7px 0 0;font-size:12.5px;line-height:1.35;min-height:33px}
.mm-template-card__actions{margin-top:auto;padding-top:8px;gap:6px;flex-wrap:nowrap}
.mm-template-card__buy,.mm-template-card__more{min-height:30px;padding:0 9px;font-size:11px;flex:1}
.mm-template-card__more span{display:none}
.mm-light-mode .mm-template-card__price-row{background:rgba(101,84,192,.08);border-color:rgba(101,84,192,.13)}
.mm-light-mode .mm-template-card__price{color:#5947B5}

/* Improve perceived loading on inner pages */
body:not(.home) .mm-section,body:not(.home) .mm-footer{content-visibility:auto;contain-intrinsic-size:800px}

@media (max-width:1380px) and (min-width:1181px){
  .mm-stage__content{grid-template-columns:minmax(330px,.70fr) minmax(650px,1.30fr);gap:28px;padding-left:34px;padding-right:34px}
  .mm-template-showcase{height:min(56vh,530px)}
}
@media (max-width:1180px) and (min-width:901px){
  :root{--mm-sidebar:220px}
  .mm-stage__content{grid-template-columns:minmax(300px,.72fr) minmax(500px,1.28fr);gap:20px;padding-left:26px;padding-right:26px}
  .mm-template-showcase{height:min(58vh,540px);min-height:410px}
  .mm-template-showcase__grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr));gap:8px}
  .mm-template-card,.mm-template-card--featured,.mm-template-card:only-child{grid-template-columns:38% 1fr;grid-template-rows:1fr}
  .mm-template-card__content,.mm-template-card--featured .mm-template-card__content{padding:9px 10px}
  .mm-template-card__title-row h2,.mm-template-card--featured .mm-template-card__title-row h2{font-size:13.5px}
  .mm-template-card__content>p,.mm-template-card--featured .mm-template-card__content>p{-webkit-line-clamp:1;min-height:17px;font-size:11.5px}
  .mm-template-card__price-row{padding:5px 7px;margin-top:5px}
  .mm-template-card__actions{padding-top:5px}
  .mm-template-card__buy,.mm-template-card__more{min-height:27px;font-size:10px}
}
@media (max-height:760px) and (min-width:901px){
  .mm-sidebar__top{min-height:68px}
  .mm-sidebar .mm-brand__mark--letter{width:44px;height:44px;flex-basis:44px}
  .mm-sidebar .mm-brand__text{font-size:12px}
  .mm-template-showcase{height:min(57vh,450px);min-height:350px}
  .mm-template-card__content>p,.mm-template-card--featured .mm-template-card__content>p{-webkit-line-clamp:1;min-height:16px}
}
@media (max-width:900px){
  .mm-sidebar{overflow:visible}
  .mm-sidebar-toggle{display:none!important}
  .mm-sidebar__top{min-height:88px}
  .mm-sidebar .mm-brand__text{opacity:1!important;height:auto!important;transform:none!important}
  .mm-sidebar__primary,.mm-side-nav a,.mm-sidebar__group>a,.mm-sidebar__utility,.mm-theme-toggle,
  .mm-sidebar-collapsed .mm-sidebar__primary,.mm-sidebar-collapsed .mm-side-nav a,.mm-sidebar-collapsed .mm-sidebar__group>a,.mm-sidebar-collapsed .mm-sidebar__utility,.mm-sidebar-collapsed .mm-theme-toggle{
    grid-template-columns:34px minmax(0,1fr);gap:8px;padding:0 8px;justify-content:normal
  }
  .mm-sidebar-collapsed .mm-sidebar__label{opacity:1;width:auto;pointer-events:auto}
  .mm-template-showcase{width:min(100%,760px);height:auto;min-height:0}
  .mm-template-showcase__grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:auto}
  .mm-template-card,.mm-template-card--featured,.mm-template-card:only-child{grid-template-columns:1fr;grid-template-rows:150px auto}
}
@media (max-width:620px){
  body{font-size:16px}
  .mm-search input{font-size:14px}
  .mm-template-showcase__grid{grid-template-columns:1fr}
  .mm-template-card,.mm-template-card--featured,.mm-template-card:only-child{grid-template-columns:38% 1fr;grid-template-rows:180px}
  .mm-template-card__title-row h2,.mm-template-card--featured .mm-template-card__title-row h2{font-size:15px;-webkit-line-clamp:2}
  .mm-template-card__price-row{margin-top:8px}
  .mm-template-card__content>p,.mm-template-card--featured .mm-template-card__content>p{-webkit-line-clamp:2;min-height:34px}
}
@media (max-width:420px){
  .mm-template-card,.mm-template-card--featured,.mm-template-card:only-child{grid-template-columns:1fr;grid-template-rows:150px auto}
}

/* ==========================================================================
   MIDDLE-MEDIA v0.6 — catalog-first homepage + corrected collapsed sidebar
   ========================================================================== */

/* Collapsed sidebar: lock every control to one centered icon column. */
@media (min-width:901px){
  .mm-sidebar-collapsed .mm-sidebar{
    width:calc(var(--mm-sidebar-collapsed) - 8px);
    padding:14px 10px;
    overflow:visible;
  }
  .mm-sidebar-collapsed .mm-sidebar__top{
    min-height:62px;
    margin:0 0 10px;
    overflow:hidden;
  }
  .mm-sidebar-collapsed .mm-sidebar .mm-brand--sidebar{
    display:flex;
    width:100%;
    align-items:center;
    justify-content:center;
    gap:0;
  }
  .mm-sidebar-collapsed .mm-sidebar .mm-brand__mark--letter{
    width:46px;
    height:46px;
    flex:0 0 46px;
    margin:0;
    font-size:20px;
  }
  .mm-sidebar-collapsed .mm-sidebar .mm-brand__text{
    display:none!important;
  }
  .mm-sidebar-collapsed .mm-sidebar__primary,
  .mm-sidebar-collapsed .mm-side-nav a,
  .mm-sidebar-collapsed .mm-sidebar__group>a,
  .mm-sidebar-collapsed .mm-sidebar__utility,
  .mm-sidebar-collapsed .mm-theme-toggle{
    display:grid!important;
    grid-template-columns:40px!important;
    grid-auto-columns:0!important;
    justify-content:center!important;
    justify-items:center!important;
    align-items:center!important;
    gap:0!important;
    width:100%!important;
    min-width:0!important;
    min-height:44px;
    padding:2px 0!important;
    margin-left:0!important;
    margin-right:0!important;
    font-size:0!important;
    line-height:0!important;
    text-indent:0!important;
    overflow:hidden!important;
  }
  .mm-sidebar-collapsed .mm-sidebar__primary{height:48px}
  .mm-sidebar-collapsed .mm-sidebar__primary-icon,
  .mm-sidebar-collapsed .mm-side-nav a::before,
  .mm-sidebar-collapsed .mm-side-icon,
  .mm-sidebar-collapsed .mm-theme-toggle__sun,
  .mm-sidebar-collapsed .mm-theme-toggle__moon,
  .mm-sidebar-collapsed .mm-sidebar__utility>span:first-child{
    grid-column:1!important;
    grid-row:1!important;
    width:36px!important;
    height:36px!important;
    margin:0!important;
    justify-self:center!important;
    align-self:center!important;
    font-size:initial;
    line-height:normal;
  }
  .mm-sidebar-collapsed .mm-sidebar__label,
  .mm-sidebar-collapsed .mm-sidebar__group-title{
    display:none!important;
  }
  .mm-sidebar-collapsed .mm-sidebar__nav{padding-bottom:10px}
  .mm-sidebar-collapsed .mm-sidebar__group{
    padding-top:10px;
    gap:2px;
    border-top:1px solid var(--mm-line);
  }
  .mm-sidebar-collapsed .mm-sidebar__bottom{
    gap:2px;
    padding-top:10px;
  }
  .mm-sidebar-collapsed .mm-side-nav{
    display:grid;
    gap:2px;
  }
  .mm-sidebar-collapsed .mm-side-nav li{width:100%;overflow:hidden}
  .mm-sidebar-collapsed .mm-side-nav .current-menu-item>a::after,
  .mm-sidebar-collapsed .mm-side-nav .current_page_item>a::after{
    left:0;
    top:9px;
    bottom:9px;
  }
  .mm-sidebar-collapsed .mm-sidebar-toggle{
    right:-15px!important;
    top:50%!important;
  }
}

/* Homepage is now the catalog itself; no separate promo/hero column. */
.mm-stage--catalog .mm-stage__panel::after{bottom:19%}
.mm-home-catalog{
  position:relative;
  z-index:3;
  height:calc(100% - 126px);
  min-height:0;
  display:grid;
  grid-template-rows:auto minmax(0,1fr);
  gap:16px;
  padding:clamp(22px,3.2vh,34px) clamp(22px,2.7vw,44px) 10px;
}
.mm-home-catalog__head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:28px;
  min-width:0;
}
.mm-home-catalog__eyebrow{
  display:block;
  margin-bottom:5px;
  color:#9b8be0;
  font-size:11px;
  line-height:1.2;
  font-weight:850;
  letter-spacing:.12em;
}
.mm-home-catalog__head h1{
  margin:0;
  font-size:clamp(30px,2.5vw,44px);
  line-height:1.04;
  letter-spacing:-.045em;
}
.mm-home-catalog__head p{
  margin:7px 0 0;
  max-width:700px;
  color:var(--mm-muted);
  font-size:15px;
  line-height:1.5;
}
.mm-home-catalog__all{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-height:42px;
  padding:0 17px;
  border:1px solid var(--mm-line);
  border-radius:999px;
  background:color-mix(in srgb,var(--mm-panel) 88%,transparent);
  color:var(--mm-text);
  font-size:13px;
  font-weight:760;
  box-shadow:0 10px 26px rgba(0,0,0,.08);
}
.mm-home-catalog__all:hover{transform:translateY(-1px);background:var(--mm-panel)}

.mm-home-template-grid{
  min-height:0;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  grid-template-rows:repeat(2,minmax(0,1fr));
  gap:12px;
}
.mm-home-template-card{
  min-width:0;
  min-height:0;
  display:grid;
  grid-template-columns:minmax(132px,39%) minmax(0,1fr);
  overflow:hidden;
  border:1px solid rgba(255,255,255,.10);
  border-radius:24px;
  background:color-mix(in srgb,var(--mm-panel) 93%,transparent);
  box-shadow:0 16px 42px rgba(0,0,0,.14);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease;
}
.mm-home-template-card:hover{
  transform:translateY(-2px);
  border-color:rgba(255,255,255,.17);
  box-shadow:0 22px 52px rgba(0,0,0,.19);
}
.mm-home-template-card__media{
  position:relative;
  min-width:0;
  min-height:0;
  display:block;
  overflow:hidden;
  background:linear-gradient(145deg,#e9e5fa,#b9d9ec);
}
.mm-home-template-card__media img{width:100%;height:100%;object-fit:cover;transition:transform .32s ease}
.mm-home-template-card:hover .mm-home-template-card__media img{transform:scale(1.025)}
.mm-home-template-card__placeholder{
  position:absolute;
  inset:0;
  display:grid;
  place-content:center;
  justify-items:center;
  gap:7px;
  background:radial-gradient(circle at 25% 20%,rgba(255,255,255,.95),transparent 34%),linear-gradient(145deg,#e9e5fa,#b9d9ec);
  color:#191919;
}
.mm-home-template-card__placeholder b{
  width:48px;height:48px;border-radius:16px;display:grid;place-items:center;
  background:linear-gradient(145deg,#6554C0,#4F86DA);color:#fff;font-size:21px;font-weight:900;
  box-shadow:0 12px 26px rgba(101,84,192,.24)
}
.mm-home-template-card__placeholder small{font-size:9px;font-weight:850;letter-spacing:.08em}
.mm-home-template-card__category{
  position:absolute;
  top:10px;
  left:10px;
  max-width:calc(100% - 20px);
  padding:6px 9px;
  border-radius:999px;
  background:rgba(255,255,255,.90);
  color:#25222a;
  font-size:9px;
  line-height:1;
  font-weight:800;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  box-shadow:0 5px 18px rgba(43,69,97,.08);
}
.mm-home-template-card__body{
  min-width:0;
  min-height:0;
  display:flex;
  flex-direction:column;
  padding:14px;
}
.mm-home-template-card__top{min-width:0}
.mm-home-template-card h2{
  margin:0;
  min-width:0;
  font-size:16px;
  line-height:1.2;
  letter-spacing:-.025em;
}
.mm-home-template-card h2 a{color:inherit}
.mm-home-template-card__price{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-top:8px;
  min-height:34px;
  padding:6px 9px 6px 10px;
  border:1px solid rgba(125,107,232,.24);
  border-radius:12px;
  background:rgba(101,84,192,.11);
}
.mm-home-template-card__price span{
  color:var(--mm-muted);
  font-size:9px;
  line-height:1;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.mm-home-template-card__price strong{
  color:#A996FF;
  font-size:17px;
  line-height:1;
  font-weight:900;
  white-space:nowrap;
  letter-spacing:-.02em;
}
.mm-home-template-card__body>p{
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;
  min-height:38px;
  margin:9px 0 0;
  color:var(--mm-muted);
  font-size:12.5px;
  line-height:1.5;
}
.mm-home-template-card__actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:7px;
  margin-top:auto;
  padding-top:10px;
}
.mm-home-template-card__buy,
.mm-home-template-card__more{
  min-width:0;
  min-height:35px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  padding:0 9px;
  border-radius:999px;
  font-size:11px;
  line-height:1;
  font-weight:780;
  white-space:nowrap;
}
.mm-home-template-card__buy{
  background:linear-gradient(135deg,#6554C0,#4F86DA);
  color:#fff!important;
  box-shadow:0 8px 20px rgba(101,84,192,.21);
}
.mm-home-template-card__more{
  border:1px solid var(--mm-line);
  background:rgba(255,255,255,.04);
  color:var(--mm-text);
}
.mm-home-template-card__buy:hover,.mm-home-template-card__more:hover{transform:translateY(-1px)}
.mm-home-template-card__more:hover{background:rgba(255,255,255,.08)}
.mm-template-empty--home{grid-column:1/-1;grid-row:1/-1}

/* More legible bottom latest-templates strip. */
.mm-featured.mm-featured--v06{
  min-height:104px;
  left:clamp(20px,2.7vw,44px);
  right:clamp(20px,2.7vw,44px);
  bottom:14px;
  grid-template-columns:190px minmax(0,1fr) 120px;
  gap:14px;
  padding:12px 14px 12px 18px;
  border-radius:24px;
  background:color-mix(in srgb,var(--mm-panel) 94%,transparent);
  border:1px solid rgba(255,255,255,.11);
  box-shadow:0 18px 46px rgba(0,0,0,.18);
}
.mm-featured--v06 .mm-featured__title small{
  margin-bottom:5px;
  color:#8f80d2;
  font-size:9px;
  line-height:1.2;
  font-weight:850;
}
.mm-featured--v06 .mm-featured__title strong{
  display:block;
  font-size:16px;
  line-height:1.2;
  letter-spacing:-.02em;
}
.mm-featured--v06 .mm-featured__items{gap:8px}
.mm-mini-card.mm-mini-card--v06{
  min-height:72px;
  grid-template-columns:48px minmax(0,1fr) 30px;
  gap:10px;
  padding:7px 9px 7px 7px;
  border:1px solid rgba(255,255,255,.06);
  border-radius:17px;
  background:rgba(255,255,255,.045);
}
.mm-mini-card--v06:hover{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.10)}
.mm-mini-card__thumb{
  width:48px;
  height:56px;
  display:grid;
  place-items:center;
  overflow:hidden;
  border-radius:12px;
  background:linear-gradient(145deg,#e9e5fa,#b9d9ec);
}
.mm-mini-card__thumb img{width:100%;height:100%;object-fit:cover}
.mm-mini-card__thumb b{font-size:16px;color:#6554C0}
.mm-mini-card--v06 .mm-mini-card__info b{
  font-size:12.5px;
  line-height:1.2;
}
.mm-mini-card--v06 .mm-mini-card__info small{
  margin-top:6px;
  color:#A996FF;
  font-size:12px;
  line-height:1.1;
  font-weight:850;
}
.mm-mini-card--v06 .mm-mini-card__arrow{
  width:30px;
  height:30px;
  font-size:12px;
}
.mm-featured--v06 .mm-featured__all{
  height:46px;
  padding:0 13px;
  border-radius:999px;
  font-size:11px;
}

/* Light mode storefront refinements. */
.mm-light-mode .mm-home-catalog__eyebrow{color:#6554C0}
.mm-light-mode .mm-home-template-card{
  background:rgba(244,239,250,.86);
  border-color:rgba(255,255,255,.76);
  box-shadow:0 15px 38px rgba(44,65,90,.08);
}
.mm-light-mode .mm-home-template-card:hover{background:rgba(255,255,255,.94);border-color:#fff;box-shadow:0 22px 50px rgba(44,65,90,.12)}
.mm-light-mode .mm-home-template-card__price{background:#EEE9FA;border-color:#DCD2F4}
.mm-light-mode .mm-home-template-card__price strong{color:#6554C0}
.mm-light-mode .mm-home-template-card__more{background:rgba(255,255,255,.64);border-color:#ddd7e8;color:#191919}
.mm-light-mode .mm-home-template-card__more:hover{background:#fff}
.mm-light-mode .mm-featured.mm-featured--v06{
  background:rgba(244,239,250,.91);
  border-color:rgba(255,255,255,.78);
  box-shadow:0 15px 38px rgba(44,65,90,.09);
}
.mm-light-mode .mm-mini-card.mm-mini-card--v06{background:rgba(255,255,255,.58);border-color:rgba(255,255,255,.7)}
.mm-light-mode .mm-mini-card--v06:hover{background:#fff;border-color:#fff}
.mm-light-mode .mm-mini-card--v06 .mm-mini-card__info small{color:#6554C0}

@media (max-width:1460px) and (min-width:1101px){
  .mm-home-catalog{height:calc(100% - 122px);padding-left:24px;padding-right:24px;gap:12px}
  .mm-home-template-grid{gap:9px}
  .mm-home-template-card{grid-template-columns:minmax(116px,35%) minmax(0,1fr);border-radius:20px}
  .mm-home-template-card__body{padding:11px}
  .mm-home-template-card h2{font-size:14px}
  .mm-home-template-card__price{margin-top:6px;min-height:30px;padding:5px 7px}
  .mm-home-template-card__price strong{font-size:14px}
  .mm-home-template-card__body>p{font-size:11.5px;min-height:34px;margin-top:6px}
  .mm-home-template-card__actions{padding-top:7px}
  .mm-home-template-card__buy,.mm-home-template-card__more{min-height:31px;font-size:10px}
  .mm-featured.mm-featured--v06{left:24px;right:24px;grid-template-columns:160px minmax(0,1fr) 105px}
  .mm-mini-card.mm-mini-card--v06{grid-template-columns:40px minmax(0,1fr) 26px;gap:7px}
  .mm-mini-card__thumb{width:40px;height:48px}
  .mm-mini-card--v06 .mm-mini-card__info b{font-size:11px}
  .mm-mini-card--v06 .mm-mini-card__info small{font-size:10.5px}
}

@media (max-width:1100px) and (min-width:901px){
  body.home{overflow:auto}
  .home .mm-main{height:auto;min-height:calc(100dvh - var(--mm-topbar));overflow:visible}
  .mm-stage--catalog{height:auto;min-height:calc(100dvh - var(--mm-topbar))}
  .mm-stage--catalog .mm-stage__panel{min-height:850px;overflow:hidden}
  .mm-home-catalog{height:auto;padding:28px 24px 150px}
  .mm-home-template-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(3,220px)}
  .mm-featured.mm-featured--v06{grid-template-columns:150px minmax(0,1fr) 100px}
  .mm-mini-card--v06:nth-child(3){display:none}
  .mm-featured--v06 .mm-featured__items{grid-template-columns:repeat(2,1fr)}
}

@media (max-width:900px){
  .mm-stage--catalog .mm-stage__panel{min-height:900px}
  .mm-home-catalog{height:auto;padding:28px 22px 150px}
  .mm-home-catalog__head{align-items:flex-start}
  .mm-home-catalog__head h1{font-size:36px}
  .mm-home-template-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:auto}
  .mm-home-template-card{grid-template-columns:1fr;grid-template-rows:150px auto;min-height:315px}
  .mm-featured.mm-featured--v06{grid-template-columns:1fr 100px}
  .mm-featured--v06 .mm-featured__title{display:none}
  .mm-mini-card--v06:nth-child(3){display:none}
  .mm-featured--v06 .mm-featured__items{grid-template-columns:repeat(2,1fr)}
}

@media (max-width:620px){
  .mm-stage--catalog .mm-stage__panel{min-height:1120px}
  .mm-home-catalog{padding:22px 14px 132px;gap:14px}
  .mm-home-catalog__head{display:block}
  .mm-home-catalog__head h1{font-size:31px}
  .mm-home-catalog__head p{font-size:14px}
  .mm-home-catalog__all{display:none}
  .mm-home-template-grid{grid-template-columns:1fr}
  .mm-home-template-card{grid-template-columns:38% 1fr;grid-template-rows:190px;min-height:190px}
  .mm-home-template-card__body{padding:12px}
  .mm-home-template-card__body>p{-webkit-line-clamp:2;min-height:36px;font-size:12px}
  .mm-home-template-card__actions{gap:6px}
  .mm-home-template-card__buy,.mm-home-template-card__more{min-height:32px;font-size:10.5px}
  .mm-featured.mm-featured--v06{left:12px;right:12px;min-height:96px;grid-template-columns:1fr;padding:10px}
  .mm-featured--v06 .mm-featured__all{display:none}
  .mm-featured--v06 .mm-featured__items{grid-template-columns:1fr 1fr}
  .mm-mini-card.mm-mini-card--v06{min-height:66px;grid-template-columns:42px minmax(0,1fr);padding:6px}
  .mm-mini-card--v06 .mm-mini-card__arrow{display:none}
  .mm-mini-card__thumb{width:42px;height:52px}
}

@media (max-width:440px){
  .mm-stage--catalog .mm-stage__panel{min-height:1460px}
  .mm-home-template-card{grid-template-columns:1fr;grid-template-rows:145px auto;min-height:315px}
  .mm-featured--v06 .mm-featured__items{grid-template-columns:1fr}
  .mm-mini-card--v06:nth-child(2){display:none}
}
.mm-home-template-card__actions>:only-child{grid-column:1/-1}


/* ==========================================================================
   MIDDLE-MEDIA v0.7 — GPU-friendly fixed rail + overlay drawer sidebar
   The page never changes width when the desktop menu opens or closes.
   ========================================================================== */
@media (min-width:901px){
  :root{
    --mm-sidebar-rail:74px;
    --mm-sidebar-drawer:166px;
    --mm-sidebar-total:240px;
    --mm-sidebar-collapsed:82px;
  }

  /* Keep the workspace stationary. Opening the menu no longer reflows the page. */
  .mm-workspace,
  .mm-sidebar-collapsed .mm-workspace{
    margin-left:var(--mm-sidebar-collapsed)!important;
    transition:none!important;
  }

  /* Transparent interaction shell. Two pseudo-elements draw the fixed rail and drawer. */
  .mm-sidebar,
  .mm-sidebar-collapsed .mm-sidebar{
    left:8px!important;
    top:8px!important;
    bottom:8px!important;
    width:calc(var(--mm-sidebar-total) - 8px)!important;
    padding:14px 10px!important;
    overflow:visible!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
    contain:none!important;
    transition:none!important;
    isolation:isolate;
  }
  .mm-sidebar::before,
  .mm-sidebar::after{
    content:'';
    position:absolute;
    top:0;
    bottom:0;
    pointer-events:none;
    border:1px solid rgba(255,255,255,.08);
    background:#1D2836;
    box-shadow:0 18px 48px rgba(0,0,0,.20);
  }
  .mm-sidebar::before{
    z-index:0;
    left:0;
    width:64px;
    border-radius:24px;
  }
  .mm-sidebar::after{
    z-index:0;
    left:54px;
    width:178px;
    border-left:0;
    border-radius:0 24px 24px 0;
    opacity:1;
    transform:translate3d(0,0,0);
    transform-origin:left center;
    transition:transform 160ms cubic-bezier(.16,1,.3,1),opacity 110ms ease-out;
    will-change:transform,opacity;
  }
  .mm-sidebar-collapsed .mm-sidebar::after{
    opacity:0;
    transform:translate3d(-16px,0,0);
  }

  .mm-sidebar__top,
  .mm-sidebar__primary,
  .mm-sidebar__nav,
  .mm-sidebar__group,
  .mm-sidebar__bottom,
  .mm-sidebar-toggle{
    position:relative;
    z-index:2;
  }

  /* Every row keeps the same geometry in both states. The icon rail never moves. */
  .mm-sidebar__top,
  .mm-sidebar-collapsed .mm-sidebar__top{
    width:210px!important;
    min-height:58px!important;
    height:58px!important;
    margin:0 0 10px!important;
    padding:0!important;
    overflow:visible!important;
    justify-content:flex-start!important;
    align-items:center!important;
  }
  .mm-sidebar .mm-brand--sidebar,
  .mm-sidebar-collapsed .mm-sidebar .mm-brand--sidebar{
    width:210px!important;
    min-width:210px!important;
    height:54px;
    display:grid!important;
    grid-template-columns:44px minmax(0,1fr)!important;
    align-items:center!important;
    justify-content:start!important;
    gap:11px!important;
    padding:0!important;
    text-align:left!important;
    flex-direction:row!important;
    clip-path:inset(0 0 0 0);
  }
  .mm-sidebar .mm-brand__mark--letter,
  .mm-sidebar-collapsed .mm-sidebar .mm-brand__mark--letter{
    grid-column:1!important;
    width:44px!important;
    height:44px!important;
    flex:0 0 44px!important;
    margin:0!important;
    justify-self:center!important;
    border-radius:14px!important;
    font-size:19px!important;
    transform:none!important;
  }
  .mm-sidebar .mm-brand__text,
  .mm-sidebar-collapsed .mm-sidebar .mm-brand__text{
    grid-column:2!important;
    display:block!important;
    width:auto!important;
    height:auto!important;
    margin:0!important;
    opacity:1;
    transform:translate3d(0,0,0);
    color:var(--mm-text);
    font-size:13px!important;
    line-height:1.15!important;
    font-weight:850;
    white-space:nowrap;
    transition:transform 160ms cubic-bezier(.16,1,.3,1),opacity 100ms ease-out!important;
    will-change:transform,opacity;
  }

  .mm-sidebar__primary,
  .mm-side-nav a,
  .mm-sidebar__group>a,
  .mm-sidebar__utility,
  .mm-theme-toggle,
  .mm-sidebar-collapsed .mm-sidebar__primary,
  .mm-sidebar-collapsed .mm-side-nav a,
  .mm-sidebar-collapsed .mm-sidebar__group>a,
  .mm-sidebar-collapsed .mm-sidebar__utility,
  .mm-sidebar-collapsed .mm-theme-toggle{
    width:210px!important;
    min-width:210px!important;
    min-height:44px!important;
    display:grid!important;
    grid-template-columns:44px minmax(0,1fr)!important;
    align-items:center!important;
    justify-content:start!important;
    justify-items:stretch!important;
    gap:9px!important;
    padding:2px 8px 2px 0!important;
    margin-left:0!important;
    margin-right:0!important;
    overflow:visible!important;
    font-size:14px!important;
    line-height:1.2!important;
    text-indent:0!important;
    clip-path:inset(0 0 0 0);
    transition:background-color 90ms ease,color 90ms ease!important;
  }
  .mm-sidebar__primary{height:46px!important}

  .mm-sidebar__primary-icon,
  .mm-side-nav a::before,
  .mm-side-icon,
  .mm-theme-toggle__sun,
  .mm-theme-toggle__moon,
  .mm-sidebar__utility>span:first-child,
  .mm-sidebar-collapsed .mm-sidebar__primary-icon,
  .mm-sidebar-collapsed .mm-side-nav a::before,
  .mm-sidebar-collapsed .mm-side-icon,
  .mm-sidebar-collapsed .mm-theme-toggle__sun,
  .mm-sidebar-collapsed .mm-theme-toggle__moon,
  .mm-sidebar-collapsed .mm-sidebar__utility>span:first-child{
    grid-column:1!important;
    grid-row:1!important;
    width:40px!important;
    height:40px!important;
    margin:0!important;
    padding:0!important;
    justify-self:center!important;
    align-self:center!important;
    display:grid!important;
    place-items:center!important;
    opacity:1!important;
    transform:none!important;
    font-size:initial!important;
    line-height:normal!important;
  }
  .mm-sidebar__primary-icon{
    width:34px!important;
    height:34px!important;
    border-radius:11px!important;
    font-size:20px!important;
  }
  .mm-side-nav a::before{background-size:19px 19px!important}

  .mm-sidebar__label,
  .mm-sidebar-collapsed .mm-sidebar__label{
    grid-column:2!important;
    grid-row:1!important;
    display:block!important;
    width:auto!important;
    min-width:0!important;
    height:auto!important;
    margin:0!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
    opacity:1;
    transform:translate3d(0,0,0);
    pointer-events:auto;
    font-size:14px!important;
    line-height:1.2!important;
    transition:transform 160ms cubic-bezier(.16,1,.3,1),opacity 100ms ease-out!important;
    will-change:transform,opacity;
  }

  /* Keep vertical spacing identical when collapsed, so icons never jump. */
  .mm-sidebar__nav,
  .mm-sidebar-collapsed .mm-sidebar__nav{
    width:210px!important;
    padding-bottom:10px!important;
    border-bottom:1px solid var(--mm-line)!important;
  }
  .mm-side-nav,
  .mm-sidebar-collapsed .mm-side-nav{
    width:210px!important;
    gap:2px!important;
  }
  .mm-side-nav li,
  .mm-sidebar-collapsed .mm-side-nav li{
    width:210px!important;
    overflow:visible!important;
  }
  .mm-sidebar__group,
  .mm-sidebar-collapsed .mm-sidebar__group{
    width:210px!important;
    padding-top:10px!important;
    border-top:0!important;
    gap:2px!important;
  }
  .mm-sidebar__group-title,
  .mm-sidebar-collapsed .mm-sidebar__group-title{
    display:block!important;
    width:210px!important;
    height:25px!important;
    margin:0!important;
    padding:5px 8px 5px 53px!important;
    border:0!important;
    color:var(--mm-muted);
    font-size:10px!important;
    line-height:15px!important;
    letter-spacing:.11em;
    opacity:1;
    transform:translate3d(0,0,0);
    white-space:nowrap;
    transition:transform 160ms cubic-bezier(.16,1,.3,1),opacity 100ms ease-out!important;
    will-change:transform,opacity;
  }
  .mm-sidebar__bottom,
  .mm-sidebar-collapsed .mm-sidebar__bottom{
    width:210px!important;
    gap:2px!important;
    padding-top:10px!important;
  }

  /* Collapsed state only hides/translates the text/drawer; icon positions stay untouched. */
  .mm-sidebar-collapsed .mm-sidebar{
    pointer-events:none!important;
  }
  .mm-sidebar-collapsed .mm-sidebar a,
  .mm-sidebar-collapsed .mm-sidebar button{
    pointer-events:auto!important;
  }
  .mm-sidebar-collapsed .mm-brand--sidebar,
  .mm-sidebar-collapsed .mm-sidebar__primary,
  .mm-sidebar-collapsed .mm-side-nav a,
  .mm-sidebar-collapsed .mm-sidebar__group>a,
  .mm-sidebar-collapsed .mm-sidebar__utility,
  .mm-sidebar-collapsed .mm-theme-toggle{
    clip-path:inset(0 156px 0 0)!important;
  }
  .mm-sidebar-collapsed .mm-brand__text,
  .mm-sidebar-collapsed .mm-sidebar__label,
  .mm-sidebar-collapsed .mm-sidebar__group-title{
    opacity:0!important;
    transform:translate3d(-9px,0,0)!important;
    pointer-events:none!important;
  }
  .mm-sidebar-collapsed .mm-sidebar__group-title{
    position:relative;
  }
  .mm-sidebar-collapsed .mm-sidebar__group-title::after{
    content:'';
    position:absolute;
    left:8px;
    top:12px;
    width:40px;
    height:1px;
    background:var(--mm-line);
    opacity:1;
  }

  /* Toggle never moves; only its arrow rotates. */
  .mm-sidebar-toggle,
  .mm-sidebar-collapsed .mm-sidebar-toggle{
    position:absolute!important;
    z-index:8!important;
    left:50px!important;
    right:auto!important;
    top:50%!important;
    width:30px!important;
    height:44px!important;
    margin:0!important;
    padding:0!important;
    transform:translate3d(0,-50%,0)!important;
    opacity:1!important;
    border:1px solid var(--mm-line)!important;
    border-radius:999px!important;
    background:var(--mm-panel-2)!important;
    box-shadow:0 7px 20px rgba(0,0,0,.13)!important;
    transition:background-color 90ms ease,box-shadow 90ms ease!important;
    will-change:auto;
  }
  .mm-sidebar-toggle:hover{box-shadow:0 9px 24px rgba(0,0,0,.18)!important}
  .mm-sidebar-toggle svg{
    width:16px!important;
    height:16px!important;
    transition:transform 160ms cubic-bezier(.16,1,.3,1)!important;
    transform:rotate(0deg);
  }
  .mm-sidebar-collapsed .mm-sidebar-toggle svg{transform:rotate(180deg)!important}

  .mm-side-nav .current-menu-item>a::after,
  .mm-side-nav .current_page_item>a::after,
  .mm-sidebar-collapsed .mm-side-nav .current-menu-item>a::after,
  .mm-sidebar-collapsed .mm-side-nav .current_page_item>a::after{
    left:1px!important;
    top:10px!important;
    bottom:10px!important;
  }

  /* Suppress animations during first paint; enable after JS has synchronized state. */
  html:not(.mm-ui-ready) .mm-sidebar::after,
  html:not(.mm-ui-ready) .mm-brand__text,
  html:not(.mm-ui-ready) .mm-sidebar__label,
  html:not(.mm-ui-ready) .mm-sidebar__group-title,
  html:not(.mm-ui-ready) .mm-sidebar-toggle svg{
    transition:none!important;
  }

  .mm-light-mode .mm-sidebar::before,
  .mm-light-mode .mm-sidebar::after{
    background:#F1ECF8;
    border-color:rgba(255,255,255,.74);
    box-shadow:0 14px 38px rgba(44,65,90,.09);
  }
  .mm-light-mode .mm-sidebar-toggle{
    background:#fff!important;
    border-color:#DDD7E8!important;
    color:#4E4A58!important;
  }
}

@media (prefers-reduced-motion:reduce){
  .mm-sidebar::after,
  .mm-brand__text,
  .mm-sidebar__label,
  .mm-sidebar__group-title,
  .mm-sidebar-toggle svg{transition:none!important}
}
