/* ═══════════════════════════════════════════════
   MEGA MENU SHORTCODE — Redesign Stitch v2
   Folosește variabilele CSS din Woodmart + override-uri locale
   ═══════════════════════════════════════════════ */

/* ── CSS Variables ── */
.mmsc-mega-menu {
    --mmsc-primary: var(--wd-primary-color, #1E443A);
    --mmsc-primary-container: var(--wd-primary-color, #1E443A);
    --mmsc-primary-fixed: var(--wd-link-color-hover, #C2EBDD);
    --mmsc-on-surface: var(--wd-text-color, #191C1D);
    --mmsc-radius: var(--wd-brd-radius, 0);
    --mmsc-font-title: var(--wd-title-font, inherit);
    --mmsc-font-body: inherit;
}

/* ══════════════════════════════════════════
   RESET — Woodmart base.min.css overrides
   Neutralizează stilurile globale din temă
   DOAR pe elementele din mega menu
   ══════════════════════════════════════════ */

/* Reset button (Woodmart: :is(.btn,.button,button,[type=submit],[type=button])) */
.mmsc-mega-menu .mmsc-cat-btn {
    --btn-bgcolor: transparent;
    --btn-color: #fff;
    --btn-brd-radius: var(--mmsc-radius);
    --btn-brd-width: 1px;
    --btn-brd-style: solid;
    --btn-brd-color: rgba(255, 255, 255, 0.12);
    --btn-height: auto;
    --btn-padding: 0;
    --btn-font-size: 11px;
    --btn-font-weight: 700;
    --btn-transform: uppercase;
    --btn-font-family: var(--mmsc-font-title);
    --btn-box-shadow: none;
    min-height: auto !important;
    text-decoration: none !important;
    text-shadow: none;
    box-shadow: none !important;
}

.mmsc-mega-menu .mmsc-cat-btn:hover {
    --btn-bgcolor-hover: rgba(255, 255, 255, 0.12);
    --btn-color-hover: #fff;
    --btn-brd-color-hover: rgba(255, 255, 255, 0.2);
    --btn-box-shadow-hover: none;
}

/* Reset headings — doar cu clase specifice */
.mmsc-mega-menu .mmsc-sidebar-title,
.mmsc-mega-menu .mmsc-content-title {
    margin-bottom: 0 !important;
    color: #fff !important;
    text-transform: uppercase;
    font-style: normal;
    line-height: 1.3;
}

/* Reset links — doar cu clase specifice */
.mmsc-mega-menu .mmsc-subcat-title,
.mmsc-mega-menu .mmsc-show-all-btn,
.mmsc-mega-menu .mmsc-children-list a,
.mmsc-mega-menu .mmsc-deep-list a,
.mmsc-mega-menu .mmsc-show-all-link a,
.mmsc-mega-menu .mmsc-sidebar-footer a {
    text-decoration: none !important;
    -webkit-text-decoration: none !important;
}

/* Reset lists — doar cu clase specifice */
.mmsc-mega-menu .mmsc-children-list,
.mmsc-mega-menu .mmsc-deep-list {
    --list-mb: 0;
    --li-mb: 0;
    --li-pl: 0;
    margin-bottom: 0 !important;
    list-style: none !important;
}

.mmsc-mega-menu .mmsc-children-list > li,
.mmsc-mega-menu .mmsc-deep-list > li {
    margin-bottom: 0 !important;
}

/* Reset paragraphs — doar cu clase specifice */
.mmsc-mega-menu .mmsc-sidebar-subtitle {
    --wd-tags-mb: 0;
    margin-bottom: 0 !important;
}

/* Reset nav — doar sidebar nav */
.mmsc-mega-menu .mmsc-sidebar-nav {
    display: flex !important;
    flex-direction: column;
}

/* Override Woodmart dropdown padding pe mega menu */
.wd-dropdown-menu.wd-design-full-width .mmsc-mega-menu {
    padding-block: 0 !important;
}
.wd-dropdown-menu.wd-design-full-width:has(.mmsc-mega-menu) {
    padding-block: 0 !important;
}

/* ── CONTAINER ── */
.mmsc-mega-menu {
    position: relative;
    z-index: 100;
    font-family: var(--mmsc-font-body);
    line-height: 1.5;
    color: var(--mmsc-on-surface);
    -webkit-font-smoothing: antialiased;
}

.mmsc-panel {
    display: flex;
    width: 100%;
    background: var(--mmsc-primary-container);
    border: none;
    border-radius: var(--mmsc-radius);
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(25, 28, 29, 0.15);
    min-height: 560px;
    position: relative;
}

/* ══════════════════════════════════════════
   LEFT SIDEBAR
   ══════════════════════════════════════════ */
.mmsc-sidebar {
    flex: 0 0 310px;
    width: 310px;
    background: var(--mmsc-primary-container);
    display: flex;
    flex-direction: column;
    padding: 32px 24px 24px;
    overflow-y: auto;
    max-height: 560px;
}

/* ── Sidebar Header ── */
.mmsc-sidebar-header {
    margin-bottom: 24px;
    padding: 0 4px;
}

.mmsc-sidebar-header .mmsc-sidebar-title {
    font-family: var(--mmsc-font-title);
    font-size: 16px;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    margin: 0 0 2px 0;
    line-height: 1.25;
}

.mmsc-sidebar-header .mmsc-sidebar-subtitle {
    font-family: var(--mmsc-font-title);
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #C2EBDD;
    opacity: 0.6;
    margin: 0;
    line-height: 1.4;
}

/* ── Sidebar Nav ── */
.mmsc-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* ── Category Buttons ── */
.mmsc-cat-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--mmsc-radius);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
    line-height: 1.3;
    font-family: var(--mmsc-font-title);
}

.mmsc-cat-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

.mmsc-cat-btn.mmsc-active {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.mmsc-cat-btn-inner {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mmsc-cat-icon {
    flex-shrink: 0;
    width: 35px;
    height: 35px;
    padding: 5px;
    margin: 5px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

/* Icon font (Material Symbols) in sidebar */
.mmsc-cat-icon-font {
    flex-shrink: 0;
    font-size: 20px !important;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1;
}

.mmsc-cat-btn.mmsc-active .mmsc-cat-icon-font {
    color: #fff;
}

.mmsc-cat-name {
    flex: 1 1 auto;
    padding: 10px 0;
    text-align: left;
    font-size: 12px;
}

.mmsc-cat-arrow {
    flex-shrink: 0;
    stroke: rgba(255, 255, 255, 0.5);
    transition: stroke 0.25s ease;
}

.mmsc-cat-btn.mmsc-active .mmsc-cat-arrow {
    stroke: #fff;
}

/* ── Sidebar Footer ── */
.mmsc-sidebar-footer {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mmsc-sidebar-footer a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.55);
    font-family: var(--mmsc-font-title);
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.25s ease;
    padding: 5px 4px;
}

.mmsc-sidebar-footer a:hover {
    color: #fff;
}

/* ══════════════════════════════════════════
   RIGHT CONTENT AREA
   ══════════════════════════════════════════ */
.mmsc-content-area {
    flex: 1 1 auto;
    min-width: 0;
    padding: 32px 40px 8px;
    overflow-x: hidden;
    overflow-y: auto;
    max-height: 560px;
    background: #fff;
    border-left: 1px solid rgba(0, 0, 0, 0.08);
    position: relative;
}

.mmsc-content-area::after {
    content: none;
}

/* SVG overlay pe panel (nu scrollează) */
.mmsc-panel::after {
    content: '';
    position: absolute;
    right: -20px;
    bottom: -20px;
    width: 40%;
    height: 60%;
    background: url('https://verpackungscenter.de/wp-content/uploads/2026/03/mm-bg.svg') no-repeat right bottom;
    background-size: contain;
    opacity: 0.06;
    pointer-events: none;
    z-index: 0;
}

.mmsc-content-panel {
    display: none;
    position: relative;
    z-index: 1;
}

.mmsc-content-panel.mmsc-visible {
    display: block;
    animation: mmscFadeIn 0.2s ease;
}

@keyframes mmscFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ── Content Header ── */
.mmsc-content-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.mmsc-content-title {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    color: #E8A45C !important;
    font-family: var(--mmsc-font-title);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    line-height: 1.3;
}

.mmsc-show-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border: 1px solid #E8A45C;
    border-radius: var(--mmsc-radius);
    color: #E8A45C !important;
    font-size: 10px;
    font-weight: 700;
    text-decoration: none !important;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: all 0.25s ease;
    white-space: nowrap;
    font-family: var(--mmsc-font-title);
}

.mmsc-show-all-btn:hover {
    border-color: #d4893a;
    background: rgba(232, 164, 92, 0.08);
    color: #d4893a !important;
}

/* ══════════════════════════════════════════
   SUBCATEGORIES GRID (masonry cu CSS columns)
   ══════════════════════════════════════════ */
.mmsc-subcats-grid {
    column-count: 3;
    column-gap: 40px;
}

/* ── Subcategory Group ── */
.mmsc-subcat-group {
    min-width: 0;
    margin-bottom: 24px;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
}

.mmsc-subcat-group:last-child {
    margin-bottom: 0;
}

.mmsc-subcat-title {
    display: block;
    margin-bottom: 10px;
    color: #1a1a1a !important;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    line-height: 1.4;
    transition: color 0.25s ease;
}

.mmsc-subcat-title::before {
    content: none;
}

.mmsc-subcat-title:hover {
    color: #E8A45C !important;
}

/* ── Children list (nivel 3) ── */
.mmsc-children-list {
    list-style: none;
    margin: 8px 0 0 0;
    padding: 0 0 0 20px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    border-left: 1px solid rgba(0, 0, 0, 0.1);
}

.mmsc-children-list > li > a {
    display: block;
    padding: 4px 0 4px 12px;
    color: rgba(0, 0, 0, 0.65);
    font-size: 13px;
    font-weight: 400;
    text-decoration: none;
    transition: color 0.25s ease;
    line-height: 1.6;
}

.mmsc-children-list > li > a:hover {
    color: #1a1a1a;
}

/* ── Deep list (nivel 4) ── */
.mmsc-deep-list {
    list-style: none;
    margin: 4px 0 4px 0;
    padding: 0 0 0 14px;
    border-left: 1px solid rgba(0, 0, 0, 0.06);
}

.mmsc-deep-list li {
    margin-bottom: 1px;
}

.mmsc-deep-list a {
    display: block;
    padding: 2px 0;
    color: rgba(0, 0, 0, 0.45);
    font-size: 12px;
    font-weight: 400;
    text-decoration: none;
    transition: color 0.25s ease;
    line-height: 1.4;
}

.mmsc-deep-list a:hover {
    color: #1a1a1a;
}

/* ── "Alle anzeigen" link ── */
.mmsc-show-all-link a {
    display: inline-block;
    padding: 5px 0 0;
    color: rgba(0, 0, 0, 0.6);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.25s ease;
}

.mmsc-show-all-link a:hover {
    color: #1a1a1a;
}


/* ── Scroll hint ── */
.mmsc-scroll-hint {
    position: absolute;
    bottom: 10px;
    right: 16px;
    z-index: 3;
    color: rgba(0, 0, 0, 0.45);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.05em;
    cursor: pointer;
    pointer-events: auto;
}

.mmsc-scroll-hint svg {
    display: inline-block;
    vertical-align: middle;
    margin-left: 4px;
    transition: transform 0.3s ease;
    stroke: rgba(0, 0, 0, 0.45);
}

.mmsc-scroll-hint.mmsc-scroll-up svg {
    transform: rotate(180deg);
}

@keyframes mmscBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(3px); }
}

.mmsc-scroll-hint:not(.mmsc-scroll-up) svg {
    animation: mmscBounce 1.5s ease infinite;
}

/* ══════════════════════════════════════════
   RESPONSIVE - TABLET (max 1024px)
   ══════════════════════════════════════════ */
@media (max-width: 1024px) {
    .mmsc-sidebar {
        flex: 0 0 220px;
        width: 220px;
        padding: 20px 14px 14px;
        max-height: 460px;
    }

    .mmsc-content-area {
        padding: 24px 20px;
        max-height: 460px;
    }

    .mmsc-subcats-grid {
        column-count: 2;
        column-gap: 24px;
    }

    .mmsc-cat-btn {
        font-size: 10px;
        padding: 9px 10px;
    }
}

/* ══════════════════════════════════════════
   RESPONSIVE - MOBILE (max 768px)
   ══════════════════════════════════════════ */
@media (max-width: 768px) {
    .mmsc-panel {
        flex-direction: column;
        min-height: auto;
    }

    .mmsc-sidebar {
        flex: 0 0 auto;
        width: 100%;
        max-height: none;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 10px 12px;
        gap: 6px;
        -webkit-overflow-scrolling: touch;
    }

    .mmsc-sidebar-header,
    .mmsc-sidebar-footer {
        display: none;
    }

    .mmsc-sidebar-nav {
        flex-direction: row;
        gap: 6px;
    }

    .mmsc-cat-btn {
        flex: 0 0 auto;
        white-space: nowrap;
        padding: 8px 14px;
        font-size: 10px;
    }

    .mmsc-cat-arrow {
        display: none;
    }

    .mmsc-content-area {
        padding: 18px 14px;
        max-height: none;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .mmsc-content-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 18px;
    }

    .mmsc-subcats-grid {
        column-count: 1;
    }

    .mmsc-content-title {
        font-size: 11px;
    }
}

/* ══════════════════════════════════════════
   RESPONSIVE - SMALL MOBILE (max 480px)
   ══════════════════════════════════════════ */
@media (max-width: 480px) {
    .mmsc-content-area {
        padding: 14px 10px;
    }

    .mmsc-subcat-title {
        font-size: 13px;
    }

    .mmsc-children-list > li > a {
        font-size: 12px;
    }
}

/* ══════════════════════════════════════════
   ACCESSIBILITY
   ══════════════════════════════════════════ */
.mmsc-cat-btn:focus-visible,
.mmsc-show-all-btn:focus-visible,
.mmsc-subcat-title:focus-visible,
.mmsc-children-list a:focus-visible,
.mmsc-deep-list a:focus-visible {
    outline: var(--wd-otl-width, 2px) var(--wd-otl-style, dotted) var(--mmsc-primary-fixed);
    outline-offset: 2px;
}

/* ── Scrollbar ── */
.mmsc-sidebar::-webkit-scrollbar,
.mmsc-content-area::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.mmsc-sidebar::-webkit-scrollbar-track,
.mmsc-content-area::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.mmsc-sidebar::-webkit-scrollbar-thumb,
.mmsc-content-area::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.mmsc-sidebar::-webkit-scrollbar-thumb:hover,
.mmsc-content-area::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Firefox scrollbar */
.mmsc-sidebar,
.mmsc-content-area {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) rgba(255, 255, 255, 0.05);
}


/* ══════════════════════════════════════════
   WOODMART MOBILE SIDE MENU OVERRIDE
   ══════════════════════════════════════════ */

/* Force visibility inside Woodmart mobile side panel */
.wd-side-hidden .wd-mob-nav-html-block .mmsc-mega-menu,
.wd-side-hidden .wd-mob-nav-html-block .mmsc-mega-menu *,
.wd-side-hidden .menu-item-has-block .mmsc-mega-menu,
.wd-side-hidden .menu-item-has-block .mmsc-mega-menu * {
    visibility: visible !important;
}

.wd-side-hidden .wd-mob-nav-html-block .wd-dropdown,
.wd-side-hidden .wd-mob-nav-html-block .wd-dropdown-menu,
.wd-side-hidden .menu-item-has-block .wd-dropdown,
.wd-side-hidden .menu-item-has-block .wd-dropdown-menu {
    visibility: visible !important;
    opacity: 1 !important;
    position: static !important;
    transform: none !important;
    pointer-events: auto !important;
    box-shadow: none !important;
    width: 100% !important;
    min-height: auto !important;
}

/* Hide original panel layout on mobile */
.wd-side-hidden .mmsc-panel {
    display: none !important;
    max-height: 0 !important;
    overflow: hidden !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Kill all transitions on Woodmart wrappers around mega menu to prevent resize flash */
.wd-side-hidden .wd-mob-nav-html-block,
.wd-side-hidden .wd-mob-nav-html-block > *,
.wd-side-hidden .menu-item-has-block .wd-sub-menu {
    transition: none !important;
    animation: none !important;
}

.wd-side-hidden .mmsc-mega-menu {
    width: 100% !important;
}

/* ── DRILLDOWN CONTAINER ── */
.mmsc-drill-wrap {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.mmsc-drill-level {
    display: none;
    width: 100%;
    padding: 6px 0;
}

.mmsc-drill-level.mmsc-drill-active {
    display: block;
}

/* Slide animations - exiting level is absolute to prevent height flash */
.mmsc-drill-exit-left {
    display: block !important;
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    animation: mmscSlideOutLeft 0.25s ease forwards;
}
.mmsc-drill-enter-right {
    animation: mmscSlideInRight 0.25s ease forwards;
}
.mmsc-drill-exit-right {
    display: block !important;
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    animation: mmscSlideOutRight 0.25s ease forwards;
}
.mmsc-drill-enter-left {
    animation: mmscSlideInLeft 0.25s ease forwards;
}

@keyframes mmscSlideOutLeft {
    from { transform: translateX(0); opacity: 1; }
    to   { transform: translateX(-100%); opacity: 0; }
}
@keyframes mmscSlideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to   { transform: translateX(0); opacity: 1; }
}
@keyframes mmscSlideOutRight {
    from { transform: translateX(0); opacity: 1; }
    to   { transform: translateX(100%); opacity: 0; }
}
@keyframes mmscSlideInLeft {
    from { transform: translateX(-100%); opacity: 0; }
    to   { transform: translateX(0); opacity: 1; }
}

/* ── LEVEL 0: Category list ── */
.mmsc-drill-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    color: rgba(255, 255, 255, 0.85) !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.15s ease;
}

.mmsc-drill-item:hover,
.mmsc-drill-item:active {
    background: rgba(255, 255, 255, 0.06);
    color: #fff !important;
}

.mmsc-drill-item .mmsc-cat-icon {
    width: 22px !important;
    height: 22px !important;
    margin: 0 !important;
    padding: 0 !important;
    filter: brightness(0) invert(1) !important;
    flex-shrink: 0;
}

.mmsc-drill-label {
    flex: 1 1 auto;
}

.mmsc-drill-arrow {
    flex-shrink: 0;
    font-size: 20px;
    opacity: 0.4;
    font-weight: 300;
    line-height: 1;
}

/* ── LEVEL 1: Subcategories ── */
.mmsc-drill-back {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    color: rgba(255, 255, 255, 0.6) !important;
    text-decoration: none !important;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: color 0.15s ease;
}

.mmsc-drill-back:hover {
    color: #fff !important;
}

.mmsc-drill-back-arrow {
    font-size: 18px;
    line-height: 1;
}

.mmsc-drill-title {
    padding: 14px 16px 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.4);
}

.mmsc-drill-all-link {
    display: block;
    padding: 10px 16px;
    margin: 0 16px 10px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: background 0.15s ease;
}

.mmsc-drill-all-link:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* Simple subcats (no children) */
.mmsc-drill-subitem {
    display: block;
    padding: 12px 16px;
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 400;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.15s ease, color 0.15s ease;
}

.mmsc-drill-subitem:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff !important;
}

/* Groups with children */
.mmsc-drill-group {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mmsc-drill-group-title {
    display: flex;
    align-items: center;
    padding: 13px 16px;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.15s ease;
}

.mmsc-drill-group-title:hover {
    background: rgba(255, 255, 255, 0.05);
}

.mmsc-drill-group-title span:first-child {
    flex: 1 1 auto;
}

.mmsc-drill-chevron {
    flex-shrink: 0;
    font-size: 11px;
    opacity: 0.4;
    transition: transform 0.2s ease;
    margin-left: auto;
}

.mmsc-drill-group-open .mmsc-drill-chevron {
    transform: rotate(180deg);
}

/* Children links */
.mmsc-drill-children {
    padding: 0 16px 8px 32px;
    border-left: 2px solid rgba(255, 255, 255, 0.08);
    margin-left: 16px;
}

.mmsc-drill-child-link {
    display: block;
    padding: 8px 0;
    color: rgba(255, 255, 255, 0.6) !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 400;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: color 0.15s ease;
}

.mmsc-drill-child-link:hover {
    color: #fff !important;
}

.mmsc-drill-child-link:last-child {
    border-bottom: none;
}

/* Deep links (level 4) */
.mmsc-drill-deep-link {
    display: block;
    padding: 6px 0 6px 12px;
    color: rgba(255, 255, 255, 0.4) !important;
    text-decoration: none !important;
    font-size: 12px;
    font-weight: 400;
    transition: color 0.15s ease;
}

.mmsc-drill-deep-link:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}


/* ══════════════════════════════════════════
   SINGLE CATEGORY MODE (cat_id)
   ══════════════════════════════════════════ */
.mmsc-single-cat .mmsc-single-cat-panel {
    background: #fff;
    border-radius: var(--mmsc-radius);
    padding: 32px 40px;
    box-shadow: 0 24px 48px rgba(25, 28, 29, 0.15);
}

@media (max-width: 768px) {
    .mmsc-single-cat .mmsc-single-cat-panel {
        padding: 18px 14px;
    }

    .mmsc-single-cat .mmsc-subcats-grid {
        column-count: 1;
    }
}
