/* soc/prokaraoke.vn#11 — Mega Menu + thanh lọc trang danh mục.
 * #47 — dạng ô ảnh: cột trái nhóm có biểu tượng, panel phải lưới danh mục con, mục Thương hiệu lưới logo. */
.pk-mega{position:relative;font-size:14px;line-height:1.45}
.pk-mega__groups{list-style:none;margin:0;padding:6px 0;background:#fff}
.pk-mega__group{margin:0;list-style:none}
.pk-mega__group-link{display:flex;align-items:center;gap:12px;padding:10px 14px;color:#222;font-weight:500;border-left:3px solid transparent;line-height:1.35}
.pk-mega__gname{flex:1;min-width:0}
.pk-mega__gicon{flex:0 0 36px;width:36px;height:36px;display:flex;align-items:center;justify-content:center;border-radius:8px;overflow:hidden;color:#dd3333}
.pk-mega__gicon img{width:100%;height:100%;object-fit:contain;mix-blend-mode:multiply}
.pk-mega__gicon.is-empty{font-weight:700;font-size:15px;line-height:1.3}
.pk-mega__group.is-active>.pk-mega__group-link,.pk-mega__group:focus-within>.pk-mega__group-link{background:#fdf0f0;color:#dd3333;border-left-color:#dd3333}
.pk-mega__panel{display:none;position:absolute;left:100%;top:0;z-index:30;width:min(1040px,calc(100vw - 300px));min-height:100%;max-height:calc(100vh - 130px);overflow-y:auto;box-sizing:border-box;padding:16px 22px 20px;background:#fff;box-shadow:0 8px 24px rgba(0,0,0,.15);border-left:1px solid #eee;text-align:left;overscroll-behavior:contain}
.header-vertical-menu:hover .pk-mega__group.is-active>.pk-mega__panel,.pk-mega__group:focus-within>.pk-mega__panel{display:block}
.pk-mega__head{padding-bottom:12px;margin-bottom:16px;border-bottom:1px solid #eee}
.pk-mega__title{font-size:17px;font-weight:700;color:#111;line-height:1.4}
.pk-mega__title small{font-weight:400;color:#888;font-size:13px}
.pk-mega__cats,.pk-mega__brandgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(104px,1fr));gap:14px 8px;margin-bottom:18px}
.pk-mega__cat,.pk-mega__bitem{display:flex;flex-direction:column;align-items:center;gap:10px;padding:10px 4px;border-radius:8px;color:#333;text-align:center;font-size:13px;line-height:1.4;transition:background .15s,color .15s}
.pk-mega__cat:hover,.pk-mega__bitem:hover{background:#fdf0f0;color:#dd3333}
.pk-mega__cimg{width:64px;height:64px;display:flex;align-items:center;justify-content:center;border-radius:10px;overflow:hidden;color:#dd3333}
.pk-mega__cimg.is-empty,.pk-mega__gicon.is-empty{background:#f5f6f7}
.pk-mega__cimg img{width:100%;height:100%;object-fit:contain;mix-blend-mode:multiply;transition:transform .2s}
.pk-mega__cat:hover .pk-mega__cimg img{transform:scale(1.06)}
.pk-mega__cimg.is-empty{font-size:22px;font-weight:700;line-height:1.3}
.pk-mega__cname,.pk-mega__bname{display:block;max-width:100%;overflow-wrap:anywhere}
.pk-mega__blogo{width:64px;height:64px;box-sizing:border-box;display:flex;align-items:center;justify-content:center;padding:6px;border:1px solid #e6e6e6;border-radius:10px;background:#fff;overflow:hidden;transition:border-color .15s,box-shadow .15s}
.pk-mega__blogo img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain}
.pk-mega__blogo.is-text{font-size:24px;font-weight:800;color:#1e2a3a;line-height:1.3;background:#f5f6f7}
.pk-mega__bitem:hover .pk-mega__blogo{border-color:#dd3333;box-shadow:0 2px 8px rgba(221,51,51,.18)}
.pk-mega__more{display:block;padding:11px 14px;border:1px solid #dd3333;border-radius:8px;color:#dd3333;font-weight:600;font-size:13px;line-height:1.4;text-align:center;transition:background .15s,color .15s}
.pk-mega__more:hover{background:#dd3333;color:#fff}
/* fly-out của theme: để panel tràn sang phải */
.header-vertical-menu__fly-out .pk-mega{overflow:visible}
.header-vertical-menu__fly-out:has(.pk-mega){overflow:visible}

/* Menu "Danh mục chính" (#47 lượt 2): toàn màn hình trên điện thoại, panel bên phải trên màn hình rộng */
html.pk-mcat-lock,html.pk-mcat-lock body{overflow:hidden}
.pk-mcat{position:fixed;inset:0;z-index:100000;display:flex;justify-content:flex-end;background:rgba(0,0,0,.45);text-align:left;line-height:1.45}
.pk-mcat[hidden]{display:none}
.pk-mcat__wrap{display:flex;flex-direction:column;width:100%;max-width:560px;height:100%;background:#fff;color:#222;box-shadow:-6px 0 24px rgba(0,0,0,.2)}
.pk-mcat__head{flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 8px 12px 16px;background:#fff}
.pk-mcat__title{font-size:17px;font-weight:700;color:#222;text-transform:uppercase;letter-spacing:.2px;line-height:1.5}
.pk-mcat__close{display:flex;align-items:center;justify-content:center;width:44px;height:44px;min-height:0;margin:0;padding:0;border:0;background:none;color:#222;cursor:pointer}
.pk-mcat__search{flex:0 0 auto;margin:0;border-top:1px solid #eee}
.pk-mcat__search input[type=search]{display:block;width:100%;height:auto;margin:0;padding:12px 16px;border:1.5px solid #f3c4c4;border-radius:0;box-shadow:none;font-size:16px;line-height:1.5;background:#fff;color:#222}
.pk-mcat__search input[type=search]:focus{border-color:#dd3333;outline:0;box-shadow:none}
.pk-mcat__body{flex:1 1 auto;display:flex;min-height:0}
.pk-mcat__rail{flex:0 0 100px;width:100px;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;background:#fff;border-right:1px solid #e8e8e8}
.pk-mcat__tab{display:flex;flex-direction:column;align-items:center;gap:6px;width:100%;min-height:0;margin:0;padding:12px 6px 13px;border:0;border-bottom:1px solid #e8e8e8;border-left:3px solid transparent;border-radius:0;background:#fff;color:#333;font:inherit;font-size:13px;font-weight:400;line-height:1.4;text-transform:none;letter-spacing:0;text-align:center;cursor:pointer;box-shadow:none}
.pk-mcat__tab.is-active{background:#efefef;border-left-color:#dd3333;color:#dd3333;font-weight:600}
.pk-mcat__ticon{width:52px;height:52px;display:flex;align-items:center;justify-content:center;border-radius:12px;overflow:hidden;color:#dd3333}
.pk-mcat__tab.is-active .pk-mcat__ticon{background:#fff}
.pk-mcat__ticon img{width:100%;height:100%;object-fit:contain;mix-blend-mode:multiply}
.pk-mcat__tab.is-active .pk-mcat__ticon img{mix-blend-mode:normal}
.pk-mcat__ticon.is-empty{font-size:20px;font-weight:700;line-height:1.3;background:#f5f6f7}
.pk-mcat__ticon.is-svg svg{width:30px;height:30px}
.pk-mcat__tname{display:block;max-width:100%;overflow-wrap:anywhere}
.pk-mcat__content{flex:1 1 auto;min-width:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:0 12px 24px}
.pk-mcat__pane{display:none}
.pk-mcat__pane.is-active{display:block}
.pk-mcat__ptitle{display:block;margin:0 0 6px;padding:14px 2px 12px;border-bottom:1px solid #e5e5e5;font-size:15px;font-weight:700;color:#222;line-height:1.45}
.pk-mcat .pk-mega__cats,.pk-mcat .pk-mega__brandgrid{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px 4px;margin:8px 0 16px}
.pk-mcat .pk-mega__cat,.pk-mcat .pk-mega__bitem{padding:8px 2px;gap:8px;font-size:13px;line-height:1.4;color:#333}
.pk-mcat .pk-mega__cimg,.pk-mcat .pk-mega__blogo{width:60px;height:60px}
.pk-mcat .pk-mega__more{padding:10px}
.pk-mcat__links,.pk-mcat__links ul{list-style:none;margin:0;padding:0}
.pk-mcat__links li{margin:0;list-style:none}
.pk-mcat__links a{display:block;padding:11px 4px;border-bottom:1px solid #f0f0f0;color:#222;font-size:14px;font-weight:600;line-height:1.45}
.pk-mcat__links ul a{padding-left:16px;font-weight:400;color:#444}
.pk-mcat__links a:hover{color:#dd3333}
.pk-mcat__empty{margin:12px 2px;color:#777;font-size:14px}
button.pk-mcat__find{width:100%;margin:0;background:#fff;text-transform:none;letter-spacing:0;min-height:0}
.pk-mcat__close:focus:not(:focus-visible){outline:0}
.pk-mcat__links a[href="#"]{pointer-events:none;cursor:default}
@media (max-width:359px){.pk-mcat .pk-mega__cats,.pk-mcat .pk-mega__brandgrid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:849px){.pk-mcat{background:#fff}.pk-mcat__wrap{max-width:none;box-shadow:none}}
/* nút mở trong menu trượt cũ */
.pk-mmega-open{display:flex;align-items:center;gap:12px;width:100%;margin:0;padding:12px 20px 12px 16px;border:0;border-bottom:1px solid #eee;background:none;color:#dd3333;font:inherit;font-weight:700;font-size:15px;line-height:1.4;text-transform:none;letter-spacing:0;text-align:left;cursor:pointer;min-height:0}

/* Thanh lọc trên trang danh mục */
.pk-filter{margin:0 0 18px;padding:12px 14px;border:1px solid #eee;border-radius:8px;background:#fcfcfc;line-height:1.45}
.pk-filter__row{display:flex;gap:10px;align-items:flex-start;padding:5px 0}
.pk-filter__label{flex:0 0 96px;font-size:13px;font-weight:700;color:#555;padding-top:5px}
.pk-filter__chips{display:flex;flex-wrap:wrap;gap:6px}
.pk-chip{padding:5px 11px;border:1px solid #ddd;border-radius:999px;font-size:13px;color:#333;background:#fff;line-height:1.4}
.pk-chip:hover{border-color:#dd3333;color:#dd3333}
.pk-chip.is-on{background:#dd3333;border-color:#dd3333;color:#fff}
.pk-filter__clear{display:inline-block;margin-top:6px;font-size:13px;color:#dd3333}
@media (max-width:549px){
 .pk-filter__row{flex-direction:column;gap:4px}
 .pk-filter__label{flex-basis:auto;padding-top:0}
 .pk-filter__chips{flex-wrap:nowrap;overflow-x:auto;padding:2px 0 4px;-webkit-overflow-scrolling:touch;max-width:100%}
 .pk-chip{white-space:nowrap}
}
.pk-mmega-li{list-style:none;margin:0;padding:0;width:100%;text-transform:none}
