@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,0,0');

/**
 * Custom menu styles - lazienkaplus.pl inspired mega menu
 * This file contains fixes for desktop menu layout
 */

/* Header bottom needs relative positioning for absolute mega menu */
.header-bottom {
    position: relative !important;
    z-index: 100;
}

/* Main menu needs static positioning */
.main-menu {
    position: static !important;
}

/* Main menu items need static positioning so mega menu can escape */
.main-menu__tree {
    position: static !important;
}

.main-menu__tree > li {
    position: static !important;
}

/* Main menu improvements */
.main-menu {
    order: -1;
    width: 100%;
    flex: 1 1 auto;
}

@media (min-width: 1200px) {
    .main-menu {
        order: 1;
        width: auto;
        flex: 1 1 auto;
    }
}

.main-menu__tree {
    display: flex !important;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style: none;
    height: 100%;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
}

.main-menu__tree > li {
    position: static;
    display: flex;
    align-items: center;
    height: auto;
    margin: 0;
    pointer-events: auto;
}

.main-menu__tree > li > a {
    display: inline-flex !important;
    align-items: center;
    height: auto;
    width: auto;
    align-self: center;
    padding: 1.25rem 0.15rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--header-color, #212529);
    text-decoration: none;
    outline-offset: -0.5rem;
    transition:
        color 0.2s ease,
        background-color 0.2s ease;
    white-space: nowrap;
    pointer-events: auto;
}

.main-menu__tree > li > a > .main-menu__tree__label {
    display: inline-block;
    padding: 0;
}

/* removed rogue pointer-events: auto rule */

.main-menu__tree > li > a:hover {
    color: var(--bs-primary) !important;
    text-decoration: none;
}

/* Mega menu: UKRYTY domyslnie, widoczny TYLKO gdy JS doda klase .show.
   BRAK regul :hover - calkowita kontrola przez JavaScript. */

.main-menu__tree > li .mega-menu {
  display: block !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  z-index: -1 !important;
  transform: none !important;
  /* Plynne pojawienie/znikanie */
  transition: opacity 0.2s ease, visibility 0s 0.2s !important;
}

/* JEDYNA regula pokazujaca menu - klasa .show dodawana przez JS */
.main-menu__tree > li .mega-menu.show {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  z-index: 1050 !important;
  transform: none !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12) !important;
  transition: opacity 0.2s ease, visibility 0s 0s !important;
}

/* Icon support for special menu items */
.main-menu__tree > li > a::before {
    content: "";
    display: inline-block;
    width: 24px;
    height: 24px;
    margin-right: 8px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: middle;
}

/* Specific icons for menu items - based on text content */
.main-menu__tree > li > a[href*="nowosci"]::before,
.main-menu__tree > li > a:is([href*="new"], [href*="nowosci"])::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23212529' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='23 6 13.5 15.5 8.5 10.5 1 18'%3E%3C/polyline%3E%3Cpolyline points='17 6 23 6 23 12'%3E%3C/polyline%3E%3C/svg%3E");
}

.main-menu__tree > li > a[href*="promocje"]::before,
.main-menu__tree
    > li
    > a:is([href*="promo"], [href*="sale"], [href*="outlet"])::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23e74c3c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3Cpolygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'%3E%3C/polygon%3E%3C/svg%3E");
}

.main-menu__tree > li > a[href*="hity-sprzedazy"]::before,
.main-menu__tree > li > a:is([href*="bestseller"], [href*="hit"])::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23f39c12' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'%3E%3C/polygon%3E%3C/svg%3E");
}

.main-menu__tree > li > a[href*="gratis"]::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2327ae60' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='8' width='18' height='13' rx='2' ry='2'%3E%3C/rect%3E%3Cpath d='M12 8V5a2 2 0 0 1 2-2v0a2 2 0 0 1 2 2v3'%3E%3C/path%3E%3Cpolyline points='8.5 14 10 15.5 13.5 12'%3E%3C/polyline%3E%3C/svg%3E");
}

/* Hover state - change icon color */
.main-menu__tree > li > a:hover::before {
    opacity: 0.8;
}

/* Remove icon from items without special markers */
.main-menu__tree
    > li:not([class*="special"])
    > a:not([href*="nowosci"]):not([href*="promocje"]):not([href*="hity"]):not(
        [href*="gratis"]
    ):not([href*="new"]):not([href*="promo"]):not([href*="sale"]):not(
        [href*="outlet"]
    ):not([href*="bestseller"]):not([href*="hit"])::before {
    display: none;
}

/* ===== MEGA MENU STYLES ===== */
.mega-menu {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    z-index: -1 !important;
    display: none !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none !important;
    background-color: #fff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    border-top: 1px solid #e0e0e0;
    transition:
        opacity 0.2s ease,
        visibility 0.2s ease;
}

.mega-menu.show {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    z-index: 1050 !important;
}

.main-menu__tree > li.js-menu-click-only .mega-menu.show {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.mega-menu .container {
    max-width: 1600px !important;
    margin: 0 auto !important;
    padding: 0 15px !important;
}

/* Mega menu wrapper - 3 column layout with FIXED height */
.mega-menu__wrapper {
    display: flex !important;
    position: relative;
    min-height: 550px;
    height: 550px;
}

/* Left sidebar with categories - FIXED width */
.mega-menu__sidebar {
    flex: 0 0 220px;
    background-color: #f5f5f5;
    border-right: 1px solid #e0e0e0;
    overflow-y: auto;
    height: 100%;
}

.mega-menu__sidebar-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mega-menu__sidebar-item {
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.2s ease;
}

.mega-menu__sidebar-item:hover,
.mega-menu__sidebar-item.active {
    background-color: #fff;
}

.mega-menu__sidebar-link {
    display: flex !important;
    align-items: center;
    padding: 14px 16px;
    color: #333 !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.mega-menu__sidebar-link:hover {
    color: var(--bs-primary, #0d6efd) !important;
}

.mega-menu__sidebar-icon {
    width: 28px;
    height: 28px;
    margin-right: 10px;
    object-fit: contain;
    visibility: visible !important;
}

.mega-menu__sidebar-icon-placeholder {
    display: inline-block;
    width: 28px;
    height: 28px;
    margin-right: 10px;
    background-color: #ddd;
    border-radius: 4px;
}

.mega-menu__sidebar-label {
    flex: 1;
}

.mega-menu__sidebar-arrow {
    font-size: 18px;
    color: #999;
    margin-left: auto;
}

/* Center content area - ABSOLUTE positioning for panels */
.mega-menu__content {
    flex: 1;
    position: relative;
    background-color: #fff;
    overflow: hidden;
}

/* All panels positioned absolutely in the same place */
.mega-menu__panel {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 25px 30px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.2s ease,
        visibility 0.2s ease;
    pointer-events: none;
}

.mega-menu.show .mega-menu__panel.active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto;
}

.mega-menu__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 25px 30px;
}

.mega-menu__column {
    min-width: 0;
}

.mega-menu__column-title {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #333 !important;
    text-decoration: none !important;
    margin-bottom: 12px;
    transition: color 0.2s ease;
}

.mega-menu__column-title:hover {
    color: var(--bs-primary, #0d6efd) !important;
}

.mega-menu__sublist {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mega-menu__sublist li {
    margin-bottom: 8px;
}

.mega-menu__sublist-link {
    display: block;
    font-size: 13px;
    color: #666 !important;
    text-decoration: none !important;
    transition:
        color 0.2s ease,
        padding-left 0.2s ease;
}

.mega-menu__sublist-link:hover {
    color: var(--bs-primary, #0d6efd) !important;
    padding-left: 4px;
}

.mega-menu__empty {
    padding: 40px 20px;
    text-align: center;
}

.mega-menu__view-all {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.mega-menu__view-all-link {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--bs-primary, #0d6efd) !important;
    text-decoration: none !important;
    transition: gap 0.2s ease;
    gap: 6px;
}

.mega-menu__view-all-link:hover {
    gap: 10px;
}

.mega-menu__view-all-link .material-icons {
    font-size: 18px;
}

/* Right featured product panel - FIXED width */
.mega-menu__featured {
    flex: 0 0 220px;
    padding: 20px 15px;
    background-color: #fafafa;
    border-left: 1px solid #e0e0e0;
    height: 100%;
}

.mega-menu__featured-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    background-color: #f0f0f0;
    border-radius: 8px;
    border: 2px dashed #ddd;
}

.mega-menu__featured-label {
    font-size: 14px;
    color: #999;
    font-weight: 500;
}

/* Show state when active */
.mega-menu.show {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Ensure container doesn't interfere */
.mega-menu .container {
    max-width: 100%;
}

/* Fix for nav full width container */
#displayNavFullWidth {
    position: relative;
}

/* Additional layout fixes */
.header-bottom__row {
    position: relative;
}

.header-bottom .col-auto.logo {
    order: 1;
}

.header-bottom .main-menu {
    order: 2;
}

@media (min-width: 1200px) {
    .header-bottom__row {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
    }

    .header-bottom .main-menu {
        flex: 1 1 auto;
        max-width: none;
    }
}

/* Mobile menu hide on desktop */
@media (max-width: 1199.98px) {
    .main-menu__tree {
        display: none !important;
    }
}

/* Desktop menu show */
@media (min-width: 1200px) {
    .main-menu__tree {
        display: flex !important;
    }

    /* Hide mobile menu toggle */
    .js-top-menu-mobile,
    .js-menu-mobile {
        display: none !important;
    }
}

/* Dropdown toggle styling */
.main-menu__tree > li > a.dropdown-toggle::after {
    display: none;
}

/* Fix any conflicting styles */
.main-menu__tree > li > a[data-depth="0"] {
    color: var(--header-color, #212529) !important;
    padding: 1.25rem 1rem !important;
    font-size: 0.875rem !important;
}

.main-menu__tree > li > a[data-depth="0"]:hover {
    color: var(--bs-primary) !important;
}

/* ── Search Autocomplete Position & Design Fixes ── */
.ui-autocomplete,
.ui-autocomplete.searchbar-autocomplete {
  position: absolute !important;
  top: 100% !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  right: auto !important;
  width: 950px !important;
  max-width: 95vw !important;
  background: #ffffff !important;
  border: 1px solid #e0e0e0 !important;
  border-radius: 8px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
  max-height: 500px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  z-index: 10000 !important;
  padding: 0.5rem 0 !important;
  margin-top: 5px !important;
  box-sizing: border-box !important;
}

.ui-autocomplete li,
.ui-autocomplete.searchbar-autocomplete li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border-bottom: 1px solid #f5f5f5 !important;
}

.ui-autocomplete li:last-child,
.ui-autocomplete.searchbar-autocomplete li:last-child {
  border-bottom: none !important;
}

.ui-autocomplete li a,
.ui-autocomplete.searchbar-autocomplete li a {
  display: flex !important;
  align-items: center !important;
  padding: 10px 15px !important;
  text-decoration: none !important;
  color: #333 !important;
  white-space: normal !important;
  word-break: break-word !important;
  overflow: hidden !important;
  transition: background-color 0.2s ease !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.ui-autocomplete li a:hover,
.ui-autocomplete.searchbar-autocomplete li a:hover,
.ui-autocomplete li a.ui-state-focus,
.ui-autocomplete.searchbar-autocomplete li a.ui-state-focus {
  background-color: #f5f7f8 !important;
  color: var(--sanitbuy-teal, #1a9e8a) !important;
  border: none !important;
}

.ui-autocomplete .autocomplete-thumbnail,
.ui-autocomplete.searchbar-autocomplete .autocomplete-thumbnail {
  width: 45px !important;
  height: 45px !important;
  object-fit: contain !important;
  margin-right: 12px !important;
  flex-shrink: 0 !important;
  background: #fff !important;
  border: 1px solid #eee !important;
  border-radius: 4px !important;
}

.ui-autocomplete .product,
.ui-autocomplete.searchbar-autocomplete .product {
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
}

/* ===== CUSTOM PRODUCERS MENU STYLES ===== */
.mega-menu--producers {
  min-height: 500px;
  max-height: 600px;
}

.mega-menu__producers-wrapper {
  display: flex !important;
  flex-direction: row;
  align-items: stretch;
  width: 100%;
  height: 500px;
}

/* Left sidebar - Alphabet */
.mega-menu__producers-alphabet {
  flex: 0 0 240px;
  background-color: #f8f9fa;
  border-right: 1px solid #e9ecef;
  padding: 20px 15px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-sizing: border-box;
}

.mega-menu__producers-alphabet .btn-alphabet[data-letter="popular"] {
  width: 100%;
  padding: 10px;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  border: 1px solid #dee2e6;
  background-color: #fff;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  color: #333;
}

.mega-menu__producers-alphabet .btn-alphabet[data-letter="popular"]:hover,
.mega-menu__producers-alphabet .btn-alphabet[data-letter="popular"].active {
  background-color: var(--bs-primary, #0d6efd);
  color: #fff;
  border-color: var(--bs-primary, #0d6efd);
}

.mega-menu__producers-alphabet .alphabet-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.mega-menu__producers-alphabet .btn-alphabet:not([data-letter="popular"]) {
  aspect-ratio: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid #dee2e6;
  background-color: #fff;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
  color: #495057;
  padding: 0;
  box-sizing: border-box;
}

.mega-menu__producers-alphabet .btn-alphabet:not([data-letter="popular"]):hover,
.mega-menu__producers-alphabet .btn-alphabet:not([data-letter="popular"]).active {
  background-color: var(--bs-primary, #0d6efd);
  color: #fff;
  border-color: var(--bs-primary, #0d6efd);
}

/* Right content panel */
.mega-menu__producers-content {
  flex: 1;
  padding: 20px 30px;
  overflow-y: auto;
  box-sizing: border-box;
  background-color: #fff;
}

.producers-panel {
  display: none;
}

.producers-panel.active {
  display: block !important;
}

.producers-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #212529;
  margin-top: 0;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid #f1f3f5;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Popular grid layout */
.producers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.producer-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 15px;
  text-decoration: none !important;
  background-color: #fff;
  transition: all 0.2s ease-in-out;
  min-height: 120px;
  box-sizing: border-box;
}

.producer-item:hover {
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
  border-color: #ced4da;
  transform: translateY(-2px);
}

.producer-logo-wrapper {
  height: 55px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.producer-logo {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.producer-name {
  font-size: 12px;
  font-weight: 700;
  color: #495057;
  text-transform: uppercase;
  text-align: center;
}

/* Filtered list grid layout */
.producers-list-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px 16px;
}

.producer-list-item {
  font-size: 13px;
  font-weight: 600;
  color: #495057 !important;
  text-decoration: none !important;
  padding: 8px 12px;
  border-radius: 6px;
  background-color: #f8f9fa;
  border: 1px solid #f1f3f5;
  transition: all 0.15s ease;
  box-sizing: border-box;
  text-transform: uppercase;
}

.producer-list-item:hover {
  background-color: var(--bs-primary, #0d6efd);
  color: #fff !important;
  border-color: var(--bs-primary, #0d6efd);
}

.no-producers {
  font-size: 14px;
  color: #868e96;
  grid-column: 1 / -1;
  margin: 0;
  padding: 10px 0;
}

/* ── Product Tabs Details Visibility Fix ── */
.product__infos-tabs .accordion-header {
  display: none !important;
}

.product__infos-tabs .accordion-collapse.collapse:not(.show),
.product__infos-tabs .accordion-collapse {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.product__infos-tabs .accordion-body {
  padding: 0 !important;
}

.product__infos-tabs .accordion-item {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* ── Technical Specifications & Features Table Style Override ── */
.product__infos-tabs .product__details-table,
.product__infos-tabs .product__features-table {
  width: 100% !important;
  border-collapse: collapse !important;
  margin-bottom: 2rem !important;
  border: none !important;
}

.product__infos-tabs .product__details-table tr,
.product__infos-tabs .product__features-table tr {
  border: none !important;
  transition: background-color 0.15s ease;
}

/* Zebra striping */
.product__infos-tabs .product__details-table tr:nth-of-type(odd),
.product__infos-tabs .product__features-table tr:nth-of-type(odd) {
  background-color: #f8f9fa !important;
}

.product__infos-tabs .product__details-table tr:nth-of-type(even),
.product__infos-tabs .product__features-table tr:nth-of-type(even) {
  background-color: #ffffff !important;
}

/* Hover state on rows */
.product__infos-tabs .product__details-table tr:hover,
.product__infos-tabs .product__features-table tr:hover {
  background-color: #f1f3f5 !important;
}

/* Label column styling (left side) */
.product__infos-tabs .product__details-table td:first-child,
.product__infos-tabs .product__features-table td:first-child {
  width: 45% !important;
  text-align: right !important;
  padding: 12px 24px 12px 12px !important;
  color: #5d6b82 !important;
  font-weight: 500 !important;
  border: none !important;
}

/* Value column styling (right side) */
.product__infos-tabs .product__details-table td:last-child,
.product__infos-tabs .product__features-table td:last-child {
  width: 55% !important;
  text-align: left !important;
  padding: 12px 12px 12px 24px !important;
  color: #1f2d3d !important;
  font-weight: 700 !important;
  border: none !important;
}

/* ── Shipping Cost Table Styling ── */
.shipping-cost-table {
  width: 100% !important;
  border-collapse: collapse !important;
  margin-top: 1rem !important;
  border: 1px solid #dee2e6 !important;
}

.shipping-cost-table th {
  background-color: var(--bs-primary, #1a9e8a) !important;
  color: #fff !important;
  font-weight: 700 !important;
  text-align: center !important;
  padding: 12px 16px !important;
  font-size: 0.95rem !important;
  border: 1px solid #dee2e6 !important;
  vertical-align: middle !important;
}

.shipping-cost-table th:first-child {
  background-color: #fff !important;
  border: none !important;
  border-right: 1px solid #dee2e6 !important;
  border-bottom: 1px solid #dee2e6 !important;
}

.shipping-cost-table td {
  text-align: center !important;
  padding: 12px 16px !important;
  font-size: 0.9rem !important;
  color: #2c3e50 !important;
  font-weight: 600 !important;
  border: 1px solid #dee2e6 !important;
  vertical-align: middle !important;
}

.shipping-cost-table td.category-name {
  background-color: #343a40 !important;
  color: #fff !important;
  font-weight: 500 !important;
  text-align: center !important;
  width: 35% !important;
  line-height: 1.4 !important;
  border-bottom: 1px solid #495057 !important;
}

.shipping-cost-table tr:hover td:not(.category-name) {
  background-color: #f8f9fa !important;
}

/* ── Mega Menu Custom Sidebar Icons ── */
.mega-menu__sidebar-custom-icon {
    font-family: 'Material Symbols Outlined' !important;
    font-size: 28px !important;
    font-variation-settings: 'FILL' 0, 'wght' 200, 'GRAD' 0, 'opsz' 28 !important;
    color: #4a5568 !important;
    margin-right: 12px !important;
    width: 28px !important;
    text-align: center !important;
    vertical-align: middle !important;
    transition: color 0.2s ease !important;
}

.mega-menu__sidebar-item.active .mega-menu__sidebar-custom-icon,
.mega-menu__sidebar-link:hover .mega-menu__sidebar-custom-icon {
    color: var(--bs-primary, #1a9e8a) !important;
}

/* ── Mega Menu Content Layout (lazienkaplus style) ── */
.mega-menu__panel-title {
    font-size: 1.5rem;
    color: #1f2937;
    margin-bottom: 1.5rem;
    font-weight: 400;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 0.5rem;
}

.mega-menu__grid--with-images {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.mega-menu__column--image-card {
    flex: 0 0 calc(25% - 1.5rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.mega-menu__column-image-link {
    display: block;
    width: 130px;
    height: 130px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Constrains the enlarged image to exactly this box so sides don't spill over */
    background: transparent;
}

.mega-menu__column-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply; /* Removes white background */
    transform: scale(1.8); /* Enlarges the image */
    transition: transform 0.2s ease;
}

.mega-menu__column-image-link:hover .mega-menu__column-image {
    transform: scale(1.8) translateY(-4px); /* Moving hover effect directly to the image prevents stacking context bug */
}

.mega-menu__column-image-placeholder {
    width: 100%;
    height: 100%;
    background-color: transparent;
}

.mega-menu__column--image-card .mega-menu__column-title {
    font-weight: 500;
    color: var(--bs-primary, #1a9e8a);
    font-size: 0.9rem;
}

.mega-menu__column--image-card .mega-menu__sublist {
    text-align: center;
    margin-top: 0.5rem;
}
