/* Approved catalog styles, scoped away from other public pages. */
body.mc-preview{--mc-yellow:#ffd000;--mc-line:#f0c923;--mc-ink:#111;--mc-muted:#626771;--mc-font:13px;--mc-line-height:18px;--mc-price:17px;--mc-title:25px;--mc-gap:10px;color:var(--mc-ink);background:#fff}
.mc-preview #page-content{max-width:1130px;padding:0;margin:0 auto 22px;min-height:70vh}
.mc-preview #page-content *{box-sizing:border-box}
.mc-preview #page-content button,.mc-preview #page-content select,.mc-sheet button,.mc-sheet input{font-family:Vjet,Arial,sans-serif}
.mc-preview .mc-crumb{display:flex;gap:9px;align-items:center;font-size:12px;line-height:18px;color:#666;margin:14px 0 16px}
.mc-preview .mc-crumb a{color:inherit;text-decoration:none}
.mc-layout{display:grid;grid-template-columns:200px minmax(0,1fr);gap:16px;align-items:start}
.mc-sidebar{border:1px solid #dfe1e5;border-radius:5px;overflow:hidden;background:#fff;min-width:0}
.mc-sidebar>h2{margin:0;padding:11px 12px;background:linear-gradient(110deg,#ffe44b,#ffd000);font-size:17px;line-height:24px;font-weight:700}
#mc-filters{padding:10px 12px 12px}
.mc-filter-group{border:0;border-bottom:1px solid #e5e6e8;padding:0 0 10px;margin:0 0 10px}
.mc-filter-group>summary{font-size:13px;font-weight:700;line-height:20px;min-height:32px;display:flex;justify-content:space-between;align-items:center;gap:8px;cursor:pointer;list-style:none;padding:3px 0 6px}
.mc-filter-group>summary::-webkit-details-marker{display:none}
.mc-filter-group>summary:after{content:'⌄';font-size:16px;line-height:1}
.mc-filter-group[open]>summary:after{content:'⌃'}
.mc-choice{display:flex;gap:7px;align-items:flex-start;min-height:31px;margin:0;padding:6px 0;font-size:12px;line-height:18px;cursor:pointer;color:#292929}
.mc-choice input{width:16px;height:16px;flex:none;margin:1px 0 0;accent-color:#e8b600}
.mc-choice span{min-width:0;overflow-wrap:anywhere}
.mc-price-filter{margin:2px 0 10px;padding:0;border:0;min-width:0}
.mc-price-filter legend{font-size:13px;font-weight:700;margin:0 0 6px;padding:0}
.mc-price-filter>div{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.mc-price-filter label{font-size:11px;color:#666;min-width:0}
.mc-price-filter input{display:block;width:100%;min-width:0;border:1px solid #d7dbe3;border-radius:4px;min-height:36px;padding:6px;margin-top:3px;font-size:13px;background:white;color:#111}
.mc-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;background:#ffd000;border:1px solid #efc000;border-radius:4px;min-height:38px;padding:8px 12px;font-size:12px;font-weight:700;line-height:18px;color:#111;text-decoration:none;cursor:pointer}
.mc-button svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;flex:none}
.mc-button:hover,.mc-square:hover{background:#f6c300}
.mc-apply{width:100%;font-size:13px}
.mc-reset{display:block;background:none;border:0;color:#666;font-size:11px;line-height:18px;padding:7px;min-height:32px;text-decoration:underline;margin:1px auto 0;cursor:pointer}
.mc-results{min-width:0}
.mc-title h1{font-family:Vjet,Arial,sans-serif;font-size:var(--mc-title)!important;line-height:1.3;margin:0 0 9px!important;letter-spacing:-.5px;font-weight:700}
.mc-toolbar{display:flex;gap:10px;justify-content:space-between;align-items:center;min-height:36px;margin-bottom:10px}
.mc-status{font-size:12px;color:#636363;line-height:18px;margin:0}
.mc-sort{display:flex;align-items:center;gap:7px;color:#555;font-size:12px;white-space:nowrap}
.mc-sort select{font-size:12px;line-height:18px;padding:7px 28px 7px 9px;min-height:36px;max-width:165px;border:1px solid #d9dce3;border-radius:4px;background:white;color:#111}
.mc-filter-open{display:none}
.mc-chips{display:flex;flex-wrap:wrap;gap:6px;max-width:100%;margin:0}
.mc-chips:empty{display:none}
.mc-chip{display:flex;align-items:center;gap:10px;max-width:100%;white-space:normal;text-align:left;background:#fff8d2;border:1px solid #e6d680;border-radius:16px;font-size:12px;line-height:18px;padding:5px 10px;margin:0 0 10px;min-height:32px;cursor:pointer}
.mc-chip span{font-size:18px;flex:none}
.mc-section{min-width:0;scroll-margin-top:16px;margin:0 0 18px}
.mc-section-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 11px;min-height:37px;background:linear-gradient(100deg,#ffd81d,#fff7d4);border-radius:4px;margin:0 0 8px}
.mc-section-bar h2{font-family:Vjet,Arial,sans-serif;font-size:17px;line-height:22px;font-weight:700;margin:0!important;color:#111}
.mc-section-bar>span{font-size:11px;white-space:nowrap;color:#333}
.mc-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--mc-gap);min-width:0}
.mc-card{display:flex;flex-direction:column;min-width:0;padding:6px;border:1px solid #e8cc58;border-radius:5px;background:white;overflow:hidden}
.mc-image-link{display:block;text-decoration:none;min-width:0}
.mc-photo{display:flex;align-items:center;justify-content:center;width:100%;aspect-ratio:1;background:white;overflow:hidden;border-radius:3px;color:#666;font-size:12px;text-align:center}
.mc-course-photo{aspect-ratio:4/3;background:#151515}
.mc-photo img{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;min-width:0}
.mc-course-photo img{width:100%;height:100%;object-fit:contain}
.mc-card h3{font-size:var(--mc-font);line-height:var(--mc-line-height);height:calc(var(--mc-line-height)*2);min-height:calc(var(--mc-line-height)*2);margin:8px 2px 4px;font-weight:700;overflow:hidden}
.mc-card h3 a{font:inherit;line-height:inherit;color:#111;text-decoration:none;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.mc-duration{font-size:12px;line-height:18px;height:18px;min-height:18px;color:#656565;margin:0 2px 4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mc-price-row{display:flex;align-items:center;justify-content:space-between;gap:7px;min-height:38px;margin:0 2px 5px;margin-top:auto}
.mc-price-row strong{font-size:var(--mc-price);line-height:24px;font-weight:700;color:#e60028;white-space:nowrap;min-width:0;overflow:hidden;text-overflow:ellipsis;font-variant-numeric:tabular-nums}
.mc-product-card .mc-price-row strong{color:#111}
.mc-course-card .mc-price-row{min-height:29px}
.mc-square{width:36px;height:36px;flex:none;display:inline-flex;align-items:center;justify-content:center;border:1px solid #efc000;border-radius:4px;background:#ffd000;color:#111;padding:7px;text-decoration:none;cursor:pointer}
.mc-square svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8}
.mc-card-cta{width:100%;min-height:36px;padding:7px 5px}
.mc-empty{grid-column:1/-1;border:1px solid #e2e4e8;border-radius:5px;padding:28px 18px;text-align:center;color:#555;font-size:13px}
.mc-empty p{margin:0 0 12px}
.mc-pagination{display:flex;justify-content:center;align-items:center;gap:5px;flex-wrap:wrap;margin:10px 0 4px}
.mc-pagination button{display:grid;place-items:center;min-width:32px;height:34px;border:1px solid #d9dce3;border-radius:4px;background:white;padding:4px 7px;font:inherit;font-size:12px;line-height:20px;color:#111;cursor:pointer}
.mc-pagination button[aria-current=page]{background:#ffd000;border-color:#efc000;font-weight:700}
.mc-pagination button:disabled{opacity:.4;cursor:default}
.mc-pagination span{font-size:12px;padding:0 2px;color:#666}
.mc-range{text-align:center;font-size:11px;color:#737373;margin:0}
.mc-consult{display:flex;align-items:center;gap:12px;min-height:58px;padding:10px 14px;background:linear-gradient(100deg,#ffe86e,#fff9dc);border:1px solid #ffdf72;border-radius:5px;margin-top:0}
.mc-consult>svg{width:30px;height:30px;fill:none;stroke:currentColor;stroke-width:1.7;flex:none}
.mc-consult strong{font-size:17px;line-height:24px}
.mc-consult .mc-button{margin-left:auto;min-width:175px}
.mc-sheet{width:min(430px,100%);max-width:100%;max-height:90dvh;padding:0;border:1px solid #e4cc61;border-radius:12px 12px 0 0;margin:auto auto 0;overflow:hidden;background:white;color:#111}
.mc-sheet::backdrop{background:#0008}
.mc-sheet-head{display:flex;align-items:center;justify-content:space-between;padding:8px 12px;background:#ffdc28;min-height:56px}
.mc-sheet-head h2{font-size:17px;margin:0}
.mc-sheet-head button{width:44px;height:44px;display:grid;place-items:center;border:1px solid #dab300;background:#fff8cf;border-radius:5px;font-size:26px;line-height:1;cursor:pointer}
.mc-sheet-body{max-height:calc(90dvh - 60px);overflow:auto;overscroll-behavior:contain}
.mc-sheet .mc-choice{font-size:14px;line-height:21px;min-height:40px;padding:9px 0}
.mc-sheet .mc-choice input{width:18px;height:18px}
.mc-sheet .mc-filter-group summary{font-size:15px;min-height:44px}
.mc-sheet input[type=number]{min-height:44px}
.mc-sheet .mc-button{min-height:44px}
.mc-modal-open{overflow:hidden}
.mc-error{padding:30px;border:1px solid #d7d7d7;border-radius:8px;margin:20px auto}
.mc-preview :focus-visible,.mc-sheet :focus-visible{outline:2px solid #111;outline-offset:3px}
.mc-image-error{font-size:11px;color:#8b1818}
@media(max-width:1190px){.mc-preview #page-content{margin-left:20px;margin-right:20px}.mc-layout{grid-template-columns:190px minmax(0,1fr);gap:12px}}
@media(min-width:761px) and (max-width:1000px){.mc-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.mc-layout{grid-template-columns:185px minmax(0,1fr)}.mc-title h1{font-size:23px!important}.mc-consult strong{font-size:15px}}
@media(max-width:760px){
 body.mc-preview{--mc-font:14px;--mc-line-height:21px;--mc-price:15px;--mc-title:23px;--mc-gap:8px}
 .mc-preview #page-content{margin:0 12px 18px;max-width:none}
 .mc-preview .mc-crumb{font-size:11px;line-height:16px;margin:10px 0 12px}
 .mc-layout{display:block}
 .mc-sidebar{display:none}
 .mc-title h1{font-size:23px!important;line-height:30px;letter-spacing:-.5px;margin-bottom:12px!important;text-transform:none}
 .mc-toolbar{display:grid;grid-template-columns:1fr 1fr;gap:8px;align-items:start;margin-bottom:12px}
 .mc-filter-open{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:8px 10px;border:1px solid #ead387;border-radius:5px;background:linear-gradient(110deg,#fff4b2,#fffbe9);font:700 14px/20px Vjet,Arial,sans-serif;color:#111;cursor:pointer}
 .mc-filter-open svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:2}
 #mc-filter-number{background:#ffd000;border-radius:10px;min-width:20px;padding:1px 5px;font-size:11px}
 .mc-sort{font-size:0;gap:0;width:100%;display:block}
 .mc-sort select{font-size:13px;width:100%;max-width:none;min-height:44px;padding:9px 25px 9px 9px}
 .mc-status{grid-column:1/-1;grid-row:2;font-size:11px;line-height:16px}
 .mc-chips{gap:5px}
 .mc-chip{font-size:12px;min-height:36px}
 .mc-section{margin-bottom:16px}
 .mc-section-bar{min-height:38px;padding:7px 9px;gap:6px;margin-bottom:8px}
 .mc-section-bar h2{font-size:16px;line-height:22px}
 .mc-section-bar>span{font-size:10px}
 .mc-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .mc-card{padding:5px}
 .mc-card h3{margin:7px 2px 4px}
 .mc-duration{font-size:12px;line-height:18px;height:18px;min-height:18px;margin-bottom:4px}
 .mc-price-row{min-height:44px;margin-bottom:5px;gap:4px}
 .mc-price-row strong{line-height:23px}
 .mc-course-card .mc-price-row{min-height:28px}
 .mc-square{width:42px;height:44px;padding:10px}
 .mc-square svg{width:20px;height:20px}
 .mc-card-cta{min-height:44px;font-size:12px;padding:9px 3px;gap:4px}
 .mc-card-cta svg{width:14px;height:14px}
 .mc-pagination{gap:5px;margin-top:10px}
 .mc-pagination button{min-width:40px;height:44px;font-size:13px}
 .mc-range{margin-top:5px}
 .mc-consult{flex-wrap:wrap;gap:8px;padding:10px;min-height:0}
 .mc-consult strong{font-size:14px;line-height:21px;flex:1}
 .mc-consult>svg{width:26px;height:26px}
 .mc-consult .mc-button{flex-basis:100%;margin:0;min-height:44px}
}
@media(prefers-reduced-motion:reduce){.mc-preview *,.mc-sheet *{scroll-behavior:auto!important}}

/* Revision 2: category navigation and the compact product anatomy from vjet.vn. */
.mc-tree-preview [hidden],.mc-sheet [hidden]{display:none!important}
.mc-tree-preview .mc-sidebar{border-color:#e0e3e8;border-radius:5px}
.mc-tree-preview .mc-sidebar>h2{background:#fff4bc;border-bottom:1px solid #f1df9c;font-size:15px;line-height:21px;padding:10px 12px}
.mc-filter-caption{font:700 12px/18px Vjet,Arial,sans-serif;margin:0 0 9px;color:#333}
#mc-category-tree{font-family:Vjet,Arial,sans-serif;margin:0 0 15px}
#mc-category-tree ul{padding:0;margin:0;list-style:none}
#mc-category-tree li{padding:0;margin:0;list-style:none}
#mc-category-tree li>ul{margin:2px 0 7px 7px;padding-left:8px;border-left:1px solid #e8dfbe}
.mc-tree-row{display:flex;align-items:stretch;min-width:0;min-height:34px;border-radius:4px;margin:2px 0;position:relative}
.mc-tree-row>a,.mc-all-categories{flex:1;min-width:0;display:flex;align-items:center;justify-content:space-between;gap:6px;text-decoration:none;color:#343434;font:400 12px/18px Vjet,Arial,sans-serif;padding:7px 5px;border-radius:4px}
#mc-category-tree>ul>.mc-tree-node>.mc-tree-row>a{font-weight:700;font-size:13px}
.mc-tree-row:has(>a[aria-current=page]){background:#fff6d5;box-shadow:inset 0 0 0 1px #e7bd36}
.mc-tree-row>a[aria-current=page]{font-weight:700;color:#111}
.mc-tree-row>a:hover,.mc-all-categories:hover{background:#fff9e8;color:#111}
.mc-tree-row>a,.mc-all-categories{transition:background .15s ease}
.mc-tree-count,.mc-all-categories>span{font-weight:400;font-size:10px;color:#828282;flex:none;min-width:16px;text-align:right}
.mc-all-categories{margin-bottom:7px;font-size:12px}
.mc-all-categories[aria-current=page]{font-weight:700;color:#111;background:#fff8dc}
.mc-tree-toggle{width:28px;min-width:28px;min-height:34px;display:grid;place-items:center;padding:4px;border:0;border-radius:4px;background:transparent;color:#666;cursor:pointer}
.mc-tree-toggle:hover{color:#111;background:#fff2bd}
.mc-tree-toggle svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.5;transition:transform .18s ease}
.mc-tree-toggle[aria-expanded=true] svg{transform:rotate(90deg)}
.mc-tree-preview .mc-title h1{font-size:24px!important;letter-spacing:0;line-height:32px;margin-bottom:10px!important}
.mc-subcategories{padding:0 0 15px;margin-bottom:9px;border-bottom:1px solid #e8e9eb}
.mc-subcategories>span{font:700 12px/18px Vjet,Arial,sans-serif;display:block;margin-bottom:8px}
.mc-subcategories>div{display:flex;flex-wrap:wrap;gap:6px}
.mc-subcategories a{display:inline-flex;align-items:center;gap:9px;padding:6px 9px;border:1px solid #dfe2e7;border-radius:4px;color:#333;background:#fff;text-decoration:none;font:400 12px/18px Vjet,Arial,sans-serif;min-height:32px}
.mc-subcategories a:hover{border-color:#dfb42d;background:#fff9e4}
.mc-subcategories small{font-size:10px;color:#888}
.mc-tree-preview .mc-section-bar{background:#fff9e8;min-height:32px;border-radius:3px;border-left:3px solid #ffd000;padding:5px 9px;margin-bottom:9px}
.mc-tree-preview .mc-section-bar h2{font-size:14px;line-height:22px}
.mc-one-section .mc-section-bar{display:none}
.mc-tree-preview .mc-card{border-color:#e0e3e8;border-radius:5px;padding:7px;position:relative}
.mc-tree-preview .mc-card:hover{border-color:#e3c65c}
.mc-tree-preview .mc-photo{position:relative;background:#fff}
.mc-discount{position:absolute;left:0;top:0;padding:2px 6px;border-radius:3px;background:#ed0034;color:white;font:700 11px/16px Vjet,Arial,sans-serif;white-space:nowrap}
.mc-tree-preview .mc-card h3{font-weight:400;margin:9px 2px 5px}
.mc-tree-preview .mc-course-card h3{font-weight:700}
.mc-tree-preview .mc-duration{font-size:11px;line-height:17px;min-height:17px;height:17px;margin-bottom:6px}
.mc-tree-preview .mc-price-row{min-height:44px;align-items:center;margin:0 2px 2px;margin-top:auto;gap:6px}
.mc-prices{min-width:0;flex:1;display:flex;flex-direction:column;gap:1px}
.mc-tree-preview .mc-prices strong{display:block;font-size:17px;line-height:24px;color:#ed0034;min-height:24px}
.mc-prices del{display:block;font-size:11px;line-height:16px;color:#858585;min-height:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mc-tree-preview .mc-square{width:36px;height:36px;align-self:center;margin:0;padding:8px;border-color:#ecc000;border-radius:4px}
.mc-tree-preview .mc-square svg{width:19px;height:19px}
.mc-tree-preview .mc-toolbar{border-bottom:1px solid #eceef0;padding-bottom:10px;margin-bottom:12px}
.mc-sheet #mc-category-tree>ul>.mc-tree-node>.mc-tree-row>a{font-size:14px}
.mc-sheet .mc-tree-row>a,.mc-sheet .mc-all-categories{font-size:14px;line-height:21px;min-height:44px;padding:10px 7px}
.mc-sheet .mc-tree-toggle{width:44px;min-width:44px;min-height:44px}
.mc-sheet .mc-tree-count,.mc-sheet .mc-all-categories>span{font-size:11px}
.mc-sheet .mc-filter-caption{font-size:13px;margin-top:4px}
@media(max-width:760px){
 .mc-tree-preview .mc-title h1{font-size:22px!important;line-height:29px;margin-bottom:10px!important}
 .mc-tree-preview .mc-filter-open{width:100%;margin-bottom:11px}
 .mc-tree-preview .mc-toolbar{display:flex;justify-content:space-between;align-items:center;gap:8px;padding-bottom:9px;margin-bottom:10px}
 .mc-tree-preview .mc-sort{display:flex;width:auto;font-size:0;flex:none}
 .mc-tree-preview .mc-sort select{width:145px;font-size:12px}
 .mc-tree-preview .mc-status{font-size:11px;line-height:17px;margin:0;flex:1;min-width:0}
 .mc-tree-preview .mc-card{padding:5px}
 .mc-tree-preview .mc-card h3{font-size:14px;line-height:21px;height:42px;min-height:42px;margin-top:8px}
 .mc-tree-preview .mc-price-row{min-height:45px;gap:3px}
 .mc-tree-preview .mc-prices strong{font-size:15px;line-height:23px;min-height:23px}
 .mc-tree-preview .mc-prices del{font-size:10px;line-height:15px;min-height:15px}
 .mc-tree-preview .mc-square{width:42px;height:44px;flex:none;padding:10px}
 .mc-tree-preview .mc-square svg{width:19px;height:19px}
 .mc-tree-preview .mc-section-bar h2{font-size:14px}
 .mc-tree-preview .mc-subcategories a{min-height:40px;font-size:12px;padding:8px}
 .mc-tree-preview .mc-subcategories{padding-bottom:11px;margin-bottom:10px}
}
