/* _shared/menu_dropdown.css — Dropdown danh mục SP/Bài viết trên menu.
   Dùng chung cho mọi theme (nạp qua cdn_assets_head). JS chèn submenu vào <li> cha;
   bảng màu trung tính (nền trắng, chữ tối) để hợp với mọi kiểu nav (sáng/tối/kính). */

.ss-has-dd { position: relative; }

.ss-cat-dd {
    list-style: none !important;
    margin: 0 !important;
    padding: 6px 0 !important;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 210px;
    background: #fff !important;
    border: 1px solid #eef0f3;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .14);
    z-index: 1200;
    display: none;
}
.ss-cat-dd > li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
}
.ss-cat-dd > li > a {
    display: block !important;
    padding: 8px 18px !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    white-space: nowrap;
    color: #1f2937 !important;
    background: transparent !important;
    text-decoration: none !important;
    text-transform: none !important;
}
.ss-cat-dd > li > a:hover {
    background: #f3f4f6 !important;
    color: #111827 !important;
}

.ss-dd-caret {
    display: inline-flex;
    align-items: center;
    margin-left: 5px;
    font-size: .78em;
    opacity: .8;
}

/* Desktop: hover/focus xổ xuống */
@media (min-width: 992px) {
    .ss-has-dd:hover > .ss-cat-dd,
    .ss-has-dd:focus-within > .ss-cat-dd {
        display: block !important;
    }
}

/* Mobile/drawer: xếp dọc dạng accordion, mở khi bấm caret */
@media (max-width: 991.98px) {
    .ss-cat-dd {
        position: static;
        box-shadow: none;
        border: none;
        min-width: 0;
        padding-left: 14px !important;
        background: transparent !important;
    }
    .ss-cat-dd > li > a { color: inherit !important; }
    .ss-has-dd.ss-dd-open > .ss-cat-dd { display: block !important; }
}
