/* ===== VR MEGA MENU ===== */
.vr-megamenu { display: flex; align-items: center; gap: 0; position: relative; }

/* All categories button */
.vr-megamenu__allcat { position: relative; flex: 0 0 auto; }
.vr-megamenu__allcat-btn {
    display: flex; align-items: center; gap: 6px;
    background: none; border: none; padding: 12px 16px;
    font-size: 0.9rem; font-weight: 600; color: #2c3e50;
    cursor: pointer; border-right: 1px solid #e9ecef; white-space: nowrap;
}
.vr-megamenu__allcat-btn:hover,
.vr-megamenu__allcat-btn--active { color: #ee881a; }
.vr-megamenu__arrow { font-size: 18px; transition: transform 0.2s; }
.vr-megamenu__allcat-btn--active .vr-megamenu__arrow { transform: rotate(180deg); }

/* Dropdown container - full width */
.vr-megamenu__dropdown {
    display: none; position: fixed; top: auto; left: 0; right: 0;
    width: 100vw; background: #fff;
    border-top: 3px solid #ee881a;
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
    z-index: 1050;
}
.vr-megamenu__dropdown--open { display: block; }
.vr-megamenu__dropdown-inner { display: flex; min-height: 350px; }

/* Left panel - main categories */
.vr-megamenu__cats {
    list-style: none; margin: 0; padding: 8px 0;
    flex: 0 0 260px; border-right: 1px solid #e9ecef;
    overflow-y: auto; max-height: 450px;
}
.vr-megamenu__cat-link {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 20px; color: #2c3e50; text-decoration: none;
    font-size: 0.9rem; transition: all 0.15s;
}
.vr-megamenu__cat-link i { font-size: 18px; color: #ccc; }
.vr-megamenu__cat-item:hover .vr-megamenu__cat-link,
.vr-megamenu__cat-item--active .vr-megamenu__cat-link {
    background: #f8f9fa; color: #ee881a; padding-left: 24px;
}
.vr-megamenu__cat-item--active .vr-megamenu__cat-link {
    border-left: 3px solid #ee881a;
}
.vr-megamenu__cat-item--active .vr-megamenu__cat-link i { color: #ee881a; }

/* Right panel - subcategories */
.vr-megamenu__subcats {
    display: none; position: absolute; top: 0; left: 260px;
    right: 0; bottom: 0; padding: 24px 30px;
    background: #fff; border-radius: 0 0 6px 0;
}
.vr-megamenu__cat-item--active .vr-megamenu__subcats { display: block; }

.vr-megamenu__subcats-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid #e9ecef;
}
.vr-megamenu__subcats-header h3 { font-size: 1.1rem; font-weight: 700; color: #2c3e50; margin: 0; }
.vr-megamenu__showall {
    display: flex; align-items: center; gap: 4px;
    color: #ee881a; text-decoration: none; font-size: 0.85rem; font-weight: 500;
}
.vr-megamenu__showall:hover { text-decoration: underline; }
.vr-megamenu__showall i { font-size: 16px; }

.vr-megamenu__subcats-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 16px;
}
.vr-megamenu__subcat-link {
    display: block; padding: 8px 12px; color: #495057;
    text-decoration: none; font-size: 0.88rem; border-radius: 4px;
    transition: all 0.15s;
}
.vr-megamenu__subcat-link:hover { background: #f8f9fa; color: #ee881a; }

/* Menu links (manual items) */
.vr-megamenu__links {
    display: flex; align-items: center; list-style: none;
    margin: 0; padding: 0; gap: 0; flex: 1;
}
.vr-megamenu__links li a {
    display: block; padding: 12px 18px; color: #2c3e50;
    text-decoration: none; font-size: 0.9rem; font-weight: 500;
    white-space: nowrap; transition: color 0.2s;
}
.vr-megamenu__links li a:hover { color: #ee881a; }

/* Menu items with mega dropdown */
.vr-megamenu__links { position: static; }
.vr-megamenu__link-item { position: static; }
.vr-megamenu__link-item--has-children > a { display: flex; align-items: center; gap: 2px; }
.vr-megamenu__mega-dropdown {
    display: none; position: fixed; top: auto; left: 0; right: 0;
    width: 100vw;
    background: #fff;
    border-top: 3px solid #ee881a;
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
    z-index: 1050; padding: 0;
}
.vr-megamenu__link-item--has-children:hover .vr-megamenu__mega-dropdown { display: block; }

/* Mega dropdown inner - left/right panels (same as Wszystkie kategorie) */
.vr-megamenu__mega-inner { display: flex; min-height: 300px; position: relative; }

/* Left panel */
.vr-megamenu__mega-left {
    list-style: none; margin: 0; padding: 8px 0;
    flex: 0 0 240px; border-right: 1px solid #e9ecef;
}
.vr-megamenu__mega-left-item { position: relative; }
.vr-megamenu__mega-left-item > a {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 20px; color: #2c3e50; text-decoration: none;
    font-size: 0.9rem; transition: all 0.15s;
}
.vr-megamenu__mega-left-item > a i { font-size: 18px; color: #ccc; }
.vr-megamenu__mega-left-item:hover > a,
.vr-megamenu__mega-left-item--active > a {
    background: #f8f9fa; color: #ee881a; border-left: 3px solid #ee881a; padding-left: 17px;
}
.vr-megamenu__mega-left-item:hover > a i,
.vr-megamenu__mega-left-item--active > a i { color: #ee881a; }

/* Right panel */
.vr-megamenu__mega-right {
    display: none; position: absolute; top: 0; left: 240px;
    right: 0; bottom: 0; padding: 24px 30px; background: #fff;
}
.vr-megamenu__mega-left-item:hover .vr-megamenu__mega-right { display: block; }
.vr-megamenu__mega-right-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid #e9ecef;
}
.vr-megamenu__mega-right-header h3 { font-size: 1.1rem; font-weight: 700; color: #2c3e50; margin: 0; }
.vr-megamenu__mega-right-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 16px;
}
.vr-megamenu__mega-right-grid a {
    display: block; padding: 8px 12px; color: #495057;
    text-decoration: none; font-size: 0.88rem; border-radius: 4px; transition: all 0.15s;
}
.vr-megamenu__mega-right-grid a:hover { background: #f8f9fa; color: #ee881a; }

/* Mobile */
@media (max-width: 992px) {
    .vr-megamenu { flex-wrap: wrap; }
    .vr-megamenu__dropdown { min-width: 100%; left: 0; right: 0; }
    .vr-megamenu__dropdown-inner { flex-direction: column; }
    .vr-megamenu__cats { flex: none; border-right: none; border-bottom: 1px solid #e9ecef; max-height: none; }
    .vr-megamenu__subcats { position: static; display: block !important; padding: 12px 16px; }
    .vr-megamenu__subcats-grid { grid-template-columns: repeat(2, 1fr); }
    .vr-megamenu__links { overflow-x: auto; flex-wrap: nowrap; }
}
