/* ==========================================================================
   ALEHAUS – PROFESJONALNY, CZYTELNY WYGLĄD (2026-11-13, wersja 3 - ulepszona nawigacja i kategorie)
   Ładowany PO custom.css (head.tpl) – zastępuje wygląd "moda / luxury" (Playfair, beż, złoto).
   Kolory z logo: granat #0b1a2c, pomarańcz #f28500 (tylko akcenty). Czcionka lokalna: Inter (ale-fonts.css).
   ========================================================================== */
:root {
  --al-primary: #0b1a2c;
  --al-secondary: #1d2b3d;
  --al-accent: #f28500;
  --al-accent-hover: #d97400;
  --al-accent-light: #fff4e6;
  --al-font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --al-font-serif: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --alx-navy: #0b1a2c;
  --alx-navy-2: #162a42;
  --alx-orange: #f28500;
  --alx-orange-d: #d97400;
  --alx-steel: #5b6b7c;
  --alx-text: #1f2a37;
  --alx-text-2: #3d4a59;
  --alx-line: #d5dde6;
  --alx-line-2: #eaeff4;
  --alx-bg: #f4f6f9;
}

html { scroll-behavior: smooth; }
body { font-family: var(--al-font) !important; color: var(--alx-text) !important; font-size: 15px; }
h1, h2, h3, h4, .h1, .h2, .h3, .h4,
.ale-product-title, .block-category h1, .ale-subcategories-heading {
  font-family: var(--al-font) !important;
  font-weight: 700 !important;
  letter-spacing: -0.015em !important;
  font-style: normal !important;
  text-transform: none !important;
}
.ale-metal, .ale-gpsr, .ale-desc { font-family: var(--al-font) !important; }

/* dostępność "Auf Lager" – zielona (czerwona tylko przy braku) */
#product-availability, .js-product-availability { color: #15803d !important; font-weight: 600 !important; }
#product-availability .material-icons, #product-availability .product-available { color: #15803d !important; }
#product-availability:has(.product-unavailable), #product-availability .product-unavailable { color: #b91c1c !important; }

/* przyciski motywu */
.btn-primary, .btn-primary:focus { background-color: var(--alx-navy) !important; border-color: var(--alx-navy) !important; color: #fff !important; }
.btn-primary:hover { background-color: #1d3550 !important; border-color: #1d3550 !important; color: #fff !important; }

/* ==========================================================================
   1. GŁÓWNE MENU KATEGORII W NAGŁÓWKU (MEGA-MENU PRZEMYSŁOWE)
   ========================================================================== */
@media (min-width: 768px) {
  #header .header-top { padding: 14px 0 0 0 !important; border-bottom: 1px solid var(--alx-line) !important; }
  #header .header-top > .container > .row { flex-wrap: wrap !important; align-items: center !important; }
  #header .header-top-right { display: contents !important; }
  #header #_desktop_logo { order: 1; padding-bottom: 12px; }
  #header #search_widget { order: 2; margin-left: 24px !important; padding-bottom: 12px; }
  #header .header-nav { height: 74px !important; }

  /* Pasek głównych kategorii na pełną szerokość kontenera */
  #header #_desktop_top_menu {
    order: 3;
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 4px 0 0 !important;
    padding: 8px 0 !important;
    border-top: 1px solid var(--alx-line-2) !important;
    position: relative !important;
  }

  .ale-top-menu-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
  }

  /* Przycisk "Sortiment & Kategorien" po lewej stronie paska */
  .ale-menu-all-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 7px;
    height: 40px;
    padding: 0 16px;
    border-radius: 8px;
    background: var(--alx-navy) !important;
    color: #ffffff !important;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none !important;
    letter-spacing: 0.01em;
    transition: background 0.18s ease, transform 0.18s ease;
    box-shadow: 0 2px 6px rgba(11, 26, 44, 0.12);
  }
  .ale-menu-all-btn i.material-icons {
    font-size: 18px;
    color: var(--alx-orange);
  }
  .ale-menu-all-btn:hover {
    background: var(--alx-navy-2) !important;
    color: #ffffff !important;
  }

  /* Lista głównych kategorii (depth=0) */
  #header #_desktop_top_menu .top-menu[data-depth="0"] {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 !important;
    padding: 0 !important;
  }
  #header #_desktop_top_menu .top-menu[data-depth="0"] > li {
    display: block !important;
    margin: 0 !important;
    position: relative !important;
  }
  #header #_desktop_top_menu .top-menu[data-depth="0"] > li > a,
  #header #_desktop_top_menu .top-menu[data-depth="0"] > li > a.dropdown-item {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 15px !important;
    border-radius: 8px !important;
    background: var(--alx-bg) !important;
    border: 1px solid var(--alx-line) !important;
    font-family: var(--al-font) !important;
    font-size: 14.5px !important;
    font-weight: 600 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    color: var(--alx-navy) !important;
    transition: all 0.18s ease !important;
  }

  /* Licznik podkategorii w przycisku menu */
  .ale-menu-subcount {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 99px;
    background: #e2e8f0;
    color: var(--alx-navy);
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1;
    transition: background 0.18s, color 0.18s;
  }

  /* Strzałka rozwijania tylko dla kategorii z podkategoriami */
  #header #_desktop_top_menu .top-menu[data-depth="0"] > li:not(.has-children) > a::after {
    display: none !important;
    content: none !important;
  }
  #header #_desktop_top_menu .top-menu[data-depth="0"] > li.has-children > a::after {
    content: "expand_more";
    font-family: "Material Icons";
    font-size: 18px;
    color: var(--alx-steel);
    margin-left: -2px;
    transition: transform 0.22s ease, color 0.18s ease;
  }

  /* Stan hover / aktywny na głównej kategorii (wspierany też przez klasę .ale-menu-open z JS) */
  #header #_desktop_top_menu .top-menu[data-depth="0"] > li:hover > a,
  #header #_desktop_top_menu .top-menu[data-depth="0"] > li.ale-menu-open > a,
  #header #_desktop_top_menu .top-menu[data-depth="0"] > li.current > a {
    background: #ffffff !important;
    border-color: var(--alx-navy) !important;
    color: var(--alx-navy) !important;
    box-shadow: 0 4px 12px rgba(11, 26, 44, 0.08) !important;
  }
  #header #_desktop_top_menu .top-menu[data-depth="0"] > li:hover > a .ale-menu-subcount,
  #header #_desktop_top_menu .top-menu[data-depth="0"] > li.ale-menu-open > a .ale-menu-subcount {
    background: var(--alx-orange);
    color: #ffffff;
  }
  #header #_desktop_top_menu .top-menu[data-depth="0"] > li:hover > a::after,
  #header #_desktop_top_menu .top-menu[data-depth="0"] > li.ale-menu-open > a::after {
    transform: rotate(180deg);
    color: var(--alx-orange);
  }

  /* Rozwijany panel Mega-Menu: otwiera się BEZPOŚREDNIO pod swoją kategorią (top: 100% danego <li>),
     dzięki czemu kursor z górnego wiersza wchodzi od razu w panel i nie przejeżdża przez dolny wiersz kategorii */
  #header #_desktop_top_menu .popover.sub-menu {
    top: calc(100% + 4px) !important;
    left: 0 !important;
    right: auto !important;
    width: 720px !important;
    max-width: calc(100vw - 32px) !important;
    border: 1px solid #cbd5e1 !important;
    border-top: 3px solid var(--alx-orange) !important;
    border-radius: 10px !important;
    box-shadow: 0 20px 45px rgba(11, 26, 44, 0.18) !important;
    padding: 18px 20px 20px !important;
    margin-top: 0 !important;
    background: #ffffff !important;
    z-index: 1080 !important;
  }
  /* Niewidoczny pomost nad panelem (6px), aby kursor nie tracił hovera przy przejściu z przycisku na panel */
  #header #_desktop_top_menu .popover.sub-menu::before {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    top: -10px !important;
    left: 0 !important;
    right: 0 !important;
    height: 12px !important;
    background: transparent !important;
    border: 0 !important;
  }
  /* Kontrola widoczności z hover-intent (.ale-menu-open ma pierwszeństwo, jeśli JS jest aktywny) */
  #header #_desktop_top_menu.ale-intent-ready .top-menu[data-depth="0"] > li:not(.ale-menu-open) > .popover.sub-menu {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
  #header #_desktop_top_menu.ale-intent-ready .top-menu[data-depth="0"] > li.ale-menu-open > .popover.sub-menu {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
  }

  /* Nagłówek wewnątrz Mega-Menu */
  .ale-mega-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 14px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--alx-line-2);
  }
  .ale-mega-title {
    display: flex;
    align-items: baseline;
    gap: 10px;
  }
  .ale-mega-eyebrow {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--alx-orange-d);
    background: var(--al-accent-light);
    padding: 3px 8px;
    border-radius: 4px;
  }
  .ale-mega-title strong {
    font-size: 18px;
    font-weight: 700;
    color: var(--alx-navy);
  }
  .ale-mega-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--alx-navy) !important;
    background: var(--alx-bg);
    padding: 7px 14px;
    border-radius: 6px;
    border: 1px solid var(--alx-line);
    text-decoration: none !important;
    transition: all 0.15s ease;
  }
  .ale-mega-all i.material-icons {
    font-size: 16px;
    color: var(--alx-orange);
  }
  .ale-mega-all:hover {
    background: var(--alx-navy);
    border-color: var(--alx-navy);
    color: #ffffff !important;
  }

  /* Siatka podkategorii w Mega-Menu (z prawdziwymi zdjęciami zamiast ikon mebli!) */
  #header #_desktop_top_menu .sub-menu > ul[data-depth="1"] {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 10px !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  #header #_desktop_top_menu .sub-menu > ul[data-depth="1"]::before {
    display: none !important;
    content: none !important;
  }
  #header #_desktop_top_menu .sub-menu > ul[data-depth="1"] > li {
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 8px !important;
    border: 1px solid var(--alx-line-2) !important;
    background: #fcfdfe !important;
    transition: all 0.16s ease !important;
  }
  #header #_desktop_top_menu .sub-menu > ul[data-depth="1"] > li:hover {
    background: #ffffff !important;
    border-color: var(--alx-navy) !important;
    box-shadow: 0 4px 12px rgba(11, 26, 44, 0.07) !important;
    transform: translateY(-1px);
  }

  /* Wyłączenie starych ikonek "chair" z custom.css */
  #header #_desktop_top_menu .sub-menu a[data-depth="1"]::before {
    display: none !important;
    content: none !important;
  }

  #header #_desktop_top_menu .sub-menu a[data-depth="1"] {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 10px 12px !important;
    font-family: var(--al-font) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: var(--alx-navy) !important;
    text-transform: none !important;
    white-space: normal !important;
    line-height: 1.3 !important;
  }

  .ale-menu-sub-thumb {
    flex: 0 0 54px;
    width: 54px;
    height: 54px;
    border-radius: 7px;
    border: 1px solid var(--alx-line-2);
    background: #ffffff;
    padding: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }
  .ale-menu-sub-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
  }
  .ale-menu-label {
    flex: 1 1 auto;
  }
  #header #_desktop_top_menu .sub-menu a[data-depth="1"]::after {
    content: "chevron_right";
    font-family: "Material Icons";
    font-size: 18px;
    color: #94a3b8;
    margin-left: auto;
    transition: transform 0.15s, color 0.15s;
  }
  #header #_desktop_top_menu .sub-menu > ul[data-depth="1"] > li:hover a[data-depth="1"]::after {
    color: var(--alx-orange);
    transform: translateX(2px);
  }
}
#_desktop_top_menu .sub-menu a, #_mobile_top_menu a { text-transform: none !important; letter-spacing: 0 !important; }

/* ==========================================================================
   2. STRONA GŁÓWNA: BANER HERO + PRZEJRZYSTA SIATKA KATEGORII I PODKATEGORII
   ========================================================================== */
#index #wrapper { padding-top: 0 !important; }
.alx-home {
  position: relative;
  width: calc(100vw - var(--ale-sbw, 0px));
  left: 50%;
  margin-left: calc(-50vw + var(--ale-sbw, 0px) / 2);
  background: #fff;
}
.alx-wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.alx-sec { padding: 36px 0; }
.alx-h2 { font-size: 26px !important; font-weight: 800 !important; line-height: 1.2 !important; color: var(--alx-navy) !important; margin: 0 !important; }
.alx-lead { color: var(--alx-steel); font-size: 15px; margin: 6px 0 0; }
.alx-head { margin-bottom: 22px; }
.alx-head-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--alx-line-2);
}
.alx-head-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.alx-more { display: inline-flex; align-items: center; gap: 2px; font-size: 14px; font-weight: 600; color: var(--alx-navy) !important;
  text-decoration: none !important; white-space: nowrap; }
.alx-more .material-icons { font-size: 18px; color: var(--alx-orange); }
.alx-more:hover { text-decoration: underline !important; }

/* Pigułki szybkiego skoku do kategorii */
.alx-cat-jumps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.alx-cat-jump {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: 99px;
  background: var(--alx-bg);
  border: 1px solid var(--alx-line);
  color: var(--alx-navy) !important;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  transition: all 0.16s ease;
}
.alx-cat-jump strong {
  background: #ffffff;
  color: var(--alx-steel);
  font-size: 11.5px;
  padding: 1px 7px;
  border-radius: 99px;
  border: 1px solid var(--alx-line-2);
}
.alx-cat-jump:hover {
  background: var(--alx-navy);
  border-color: var(--alx-navy);
  color: #ffffff !important;
}
.alx-cat-jump:hover strong {
  background: var(--alx-orange);
  border-color: var(--alx-orange);
  color: #ffffff;
}

/* ---------------------------------------------------------------- Baner Hero: krótki czytelny nagłówek + rozwijana lista kategorii + przesuwne rzędy */
.alx-hero {
  background: #f7f9fc;
  border-bottom: 1px solid var(--alx-line);
  padding: 24px 0 32px;
  margin-bottom: 18px;
}
.alx-hero-top {
  margin-bottom: 18px;
}
.alx-hero-header-full {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  background: #ffffff;
  border: 1px solid var(--alx-line);
  border-radius: 12px;
  padding: 18px 22px;
  box-shadow: 0 2px 8px rgba(11, 26, 44, 0.03);
}
.alx-hero-title-col {
  flex: 1 1 520px;
  min-width: 0;
}
.alx-hero-h1 {
  font-size: 26px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  color: var(--alx-navy) !important;
  margin: 0 0 4px !important;
  letter-spacing: -0.015em !important;
}
.alx-hero-sub {
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--alx-steel);
  margin: 0;
}

/* Jedno rozwijane pole z listą wszystkich kategorii */
.alx-hero-dropdown-wrap {
  position: relative;
  flex: 0 0 auto;
  box-sizing: border-box;
}
.alx-cat-dropdown {
  position: relative;
  box-sizing: border-box;
}
.alx-cat-dropdown-btn {
  box-sizing: border-box;
  list-style: none;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 230px;
  height: 42px;
  padding: 0 16px;
  background: var(--alx-bg);
  border: 1px solid var(--alx-line);
  border-radius: 8px;
  color: var(--alx-navy);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: all 0.16s ease;
}
.alx-cat-dropdown-btn::-webkit-details-marker {
  display: none;
}
.alx-cat-dropdown-btn i.material-icons {
  font-size: 20px;
  color: var(--alx-steel);
  transition: transform 0.2s ease, color 0.16s ease;
}
.alx-cat-dropdown-btn:hover,
.alx-cat-dropdown[open] .alx-cat-dropdown-btn {
  background: #ffffff;
  border-color: var(--alx-navy);
  box-shadow: 0 4px 12px rgba(11, 26, 44, 0.07);
}
.alx-cat-dropdown[open] .alx-cat-dropdown-btn i.material-icons {
  transform: rotate(180deg);
  color: var(--alx-orange);
}
.alx-cat-dropdown-menu {
  box-sizing: border-box;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: min(860px, calc(100vw - 32px));
  background: #ffffff;
  border: 1px solid var(--alx-line);
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: 0 16px 40px rgba(11, 26, 44, 0.14);
  z-index: 300;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.alx-dd-group {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.alx-dd-main {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--alx-navy) !important;
  text-decoration: none !important;
  padding-bottom: 6px;
  margin-bottom: 6px;
  border-bottom: 2px solid var(--alx-line-2);
}
.alx-dd-main:hover {
  color: var(--alx-orange-d) !important;
}
.alx-dd-subs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.alx-dd-subs li a {
  display: block;
  font-size: 13.5px;
  color: var(--alx-text-2) !important;
  text-decoration: none !important;
  padding: 3px 0;
  transition: color 0.14s ease;
}
.alx-dd-subs li a:hover {
  color: var(--alx-orange-d) !important;
}

/* Rzędy kategorii: jeden pod drugim (nagłówek na całą szerokość -> przesuwna lista ze zdjęciami -> na dole "Alle ansehen" bez strzałek) */
.alx-hero-rows {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.alx-hero-cat-block {
  background: #ffffff;
  border: 1px solid var(--alx-line);
  border-radius: 12px;
  padding: 16px 18px 14px;
  box-shadow: 0 2px 8px rgba(11, 26, 44, 0.03);
}
.alx-row-header {
  width: 100%;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--alx-line-2);
}
.alx-row-h2 {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.25 !important;
}
.alx-row-title {
  display: block;
  width: 100%;
  font-size: 18px !important;
  font-weight: 700 !important;
  color: var(--alx-navy) !important;
  text-decoration: none !important;
  transition: color 0.15s ease;
}
.alx-row-title:hover {
  color: var(--alx-orange-d) !important;
}

/* Przesuwna lista kategorii ze zdjęciem i nazwą (szerokość 156px) */
.alx-cat-slider {
  position: relative;
  width: 100%;
}
.alx-cat-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  list-style: none;
  margin: 0;
  padding: 2px 2px 10px;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}
.alx-cat-track::-webkit-scrollbar {
  height: 5px;
}
.alx-cat-track::-webkit-scrollbar-track {
  background: transparent;
}
.alx-cat-track::-webkit-scrollbar-thumb {
  background: #d1d9e2;
  border-radius: 99px;
}
.alx-cat-track::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}
.alx-slide-item {
  flex: 0 0 156px;
  width: 156px;
  scroll-snap-align: start;
  margin: 0;
  padding: 0;
}
.alx-slide-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  background: #ffffff;
  border: 1px solid var(--alx-line-2);
  border-radius: 10px;
  padding: 10px 10px 12px;
  text-decoration: none !important;
  color: var(--alx-navy) !important;
  text-align: center;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.alx-slide-card:hover {
  border-color: #b8c4d0;
  box-shadow: 0 6px 16px rgba(11, 26, 44, 0.07);
  transform: translateY(-2px);
}
.alx-slide-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: 8px;
  padding: 6px;
  margin-bottom: 8px;
  overflow: hidden;
}
.alx-slide-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.22s ease;
}
.alx-slide-card:hover .alx-slide-img img {
  transform: scale(1.04);
}
.alx-slide-name {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--alx-navy);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.alx-slide-card:hover .alx-slide-name {
  color: var(--alx-orange-d);
}

/* Pod spodem "Alle ansehen" bez strzałek */
.alx-row-footer {
  padding-top: 8px;
  margin-top: 4px;
  border-top: 1px solid var(--alx-line-2);
  display: flex;
  justify-content: flex-start;
}
.alx-row-ansehen {
  display: inline-block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--alx-steel) !important;
  text-decoration: none !important;
  padding: 2px 0;
  transition: color 0.15s ease;
}
.alx-row-ansehen:hover {
  color: var(--alx-navy) !important;
  text-decoration: underline !important;
}

/* ---------------------------------------------------------------- KATEGORIE I PODKATEGORIE NA STRONIE GŁÓWNEJ */
.alx-cats { padding: 38px 0 28px; background: #ffffff; }
.alx-cat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}
.alx-cat {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1.5px solid var(--alx-line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(11, 26, 44, 0.03);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  scroll-margin-top: 90px;
}
.alx-cat:hover {
  border-color: #94a3b8;
  box-shadow: 0 10px 28px rgba(11, 26, 44, 0.08);
}

/* Góra karty: wyraźny nagłówek kategorii głównej */
.alx-cat-top {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 16px;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border-bottom: 1.5px solid var(--alx-line);
  text-decoration: none !important;
  color: var(--alx-navy) !important;
  transition: background 0.18s ease;
}
.alx-cat-top:hover {
  background: #eef2f7;
}
.alx-cat-img {
  flex: 0 0 82px;
  width: 82px;
  height: 82px;
  border: 1px solid var(--alx-line);
  border-radius: 10px;
  padding: 6px;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(11, 26, 44, 0.04);
}
.alx-cat-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.alx-cat-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.alx-cat-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 5px;
}
.alx-cat-badge-n {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  background: var(--alx-navy);
  padding: 2px 7px;
  border-radius: 4px;
  line-height: 1.3;
}
.alx-cat-badge-s {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--alx-steel);
  background: #ffffff;
  border: 1px solid var(--alx-line);
  padding: 1px 6px;
  border-radius: 4px;
  line-height: 1.3;
}
.alx-cat-name {
  font-size: 17.5px;
  font-weight: 800;
  line-height: 1.22;
  color: var(--alx-navy);
}
.alx-cat-go {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--alx-orange-d);
  margin-top: 5px;
}
.alx-cat-go i.material-icons { font-size: 15px; }

/* Belka tytułowa listy podkategorii */
.alx-cat-subs-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 14px 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #7c8b9c;
  background: #ffffff;
}

/* Lista podkategorii wewnątrz karty */
.alx-cat-subs {
  list-style: none;
  margin: 0;
  padding: 6px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1 1 auto;
}
.alx-cat-subs li a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid var(--alx-line-2);
  background: #fbfcfe;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--alx-text) !important;
  text-decoration: none !important;
  transition: all 0.15s ease;
}
.alx-cat-subs li a:hover {
  background: #ffffff;
  border-color: var(--alx-navy);
  color: var(--alx-navy) !important;
  box-shadow: 0 3px 8px rgba(11, 26, 44, 0.06);
  transform: translateX(2px);
}
.alx-sub-thumb {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 7px;
  border: 1px solid var(--alx-line-2);
  background: #ffffff;
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.alx-sub-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.alx-sub-name {
  flex: 1 1 auto;
  line-height: 1.25;
  min-width: 0;
}
.alx-sub-count {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 700;
  color: var(--alx-steel);
  background: #edf2f7;
  padding: 2px 8px;
  border-radius: 99px;
  transition: background 0.15s, color 0.15s;
}
.alx-cat-subs li a:hover .alx-sub-count {
  background: var(--alx-orange);
  color: #ffffff;
}
.alx-sub-arr {
  font-size: 17px !important;
  color: #94a3b8;
  margin-left: -4px;
  transition: color 0.15s, transform 0.15s;
}
.alx-cat-subs li a:hover .alx-sub-arr {
  color: var(--alx-orange);
  transform: translateX(2px);
}

/* Stopka karty kategorii */
.alx-cat-foot {
  margin-top: auto;
  padding: 10px 12px 12px;
  border-top: 1px solid var(--alx-line-2);
  background: #fafbfc;
}
.alx-cat-all {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 8px 12px;
  border-radius: 7px;
  background: #ffffff;
  border: 1px solid var(--alx-line);
  color: var(--alx-navy) !important;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none !important;
  transition: all 0.16s ease;
}
.alx-cat-all i.material-icons {
  font-size: 16px;
  color: var(--alx-orange);
}
.alx-cat-all:hover {
  background: var(--alx-navy);
  border-color: var(--alx-navy);
  color: #ffffff !important;
}

/* ---------------------------------------------------------------- kafelek produktu (strona główna) */
.alx-grid { padding: 34px 0 26px; }
.alx-grid + .alx-grid { margin-top: 14px; padding-top: 38px; border-top: 1px solid var(--alx-line-2); }
.alx-grid:last-of-type { padding-bottom: 48px; }
.alx-pgrid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.alx-p { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--alx-line); border-radius: 10px; padding: 0 0 14px;
  text-decoration: none !important; color: var(--alx-text) !important; min-width: 0; transition: border-color .16s, box-shadow .16s, transform .16s; }
.alx-p:hover { border-color: #b9c3ce; box-shadow: 0 6px 18px rgba(11, 26, 44, .07); transform: translateY(-2px); }
.alx-p-img { position: relative; display: block; aspect-ratio: 1 / 1; padding: 10px; border-bottom: 1px solid var(--alx-line-2); margin-bottom: 10px; }
.alx-p-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.alx-badge { position: absolute; left: 8px; top: 8px; background: var(--alx-navy); color: #fff; font-size: 11px; font-weight: 600; line-height: 1;
  padding: 4px 7px; border-radius: 4px; }
.alx-p-title { font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--alx-navy); padding: 0 12px; }
.alx-p-specs { list-style: none; margin: 6px 0 0; padding: 0 12px; }
.alx-p-specs li { position: relative; font-size: 13px; line-height: 1.35; color: var(--alx-text-2); padding: 1px 0 1px 11px; }
.alx-p-specs li::before { content: ''; position: absolute; left: 0; top: .62em; width: 5px; height: 5px; border-radius: 1px; background: var(--alx-orange); }
.alx-p-price { margin-top: auto; padding: 10px 12px 0; font-size: 18px; font-weight: 700; color: var(--alx-navy); }
.alx-p-price small { font-size: 13px; font-weight: 500; color: var(--alx-steel); margin-right: 3px; }
.alx-p-tax { font-size: 11.5px; color: var(--alx-steel); padding: 1px 12px 0; }

/* ==========================================================================
   3. STRONY KATEGORII: PODKATEGORIE Z MINIATURAMI + DRZEWO BOCZNE
   ========================================================================== */
html body #subcategories.ale-subcategories-wrap {
  margin-bottom: 28px !important;
  background: #f8fafc !important;
  border: 1px solid var(--alx-line) !important;
  border-radius: 12px !important;
  padding: 18px 20px !important;
}
html body #subcategories .ale-subcategories-heading {
  font-size: 16px !important;
  font-weight: 800 !important;
  color: var(--alx-navy) !important;
  margin: 0 0 14px 0 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
}
html body #subcategories .ale-subcategories-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)) !important;
  gap: 12px !important;
}
html body #subcategories .ale-subcat-card {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 10px 14px !important;
  background: #ffffff !important;
  border: 1.5px solid var(--alx-line) !important;
  border-radius: 10px !important;
  height: auto !important;
  min-height: 74px !important;
  box-shadow: 0 2px 6px rgba(11, 26, 44, 0.03) !important;
  transition: all 0.18s ease !important;
}
html body #subcategories .ale-subcat-card:hover {
  border-color: var(--alx-navy) !important;
  box-shadow: 0 6px 16px rgba(11, 26, 44, 0.09) !important;
  transform: translateY(-2px) !important;
}
html body #subcategories .ale-subcat-img-wrap {
  display: flex !important;
  flex: 0 0 66px !important;
  width: 66px !important;
  height: 66px !important;
  border-radius: 8px !important;
  border: 1px solid var(--alx-line-2) !important;
  background: #ffffff !important;
  padding: 4px !important;
  overflow: hidden !important;
}
html body #subcategories .ale-subcat-img-wrap img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}
html body #subcategories .ale-subcat-info {
  padding: 0 !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
}
html body #subcategories .ale-subcat-title {
  font-size: 14.5px !important;
  font-weight: 700 !important;
  color: var(--alx-navy) !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  line-height: 1.25 !important;
  margin: 0 !important;
}
html body #subcategories .ale-subcat-cta {
  display: inline-flex !important;
  align-items: center !important;
  gap: 3px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: var(--alx-orange-d) !important;
}
html body #subcategories .ale-subcat-cta i.material-icons {
  font-size: 14px !important;
}

/* Drzewo kategorii w lewej kolumnie */
html body .ale-sidebar-categories {
  border-radius: 12px !important;
  padding: 18px !important;
  border: 1.5px solid var(--alx-line) !important;
}
html body .ale-sidebar-header {
  font-size: 15px !important;
  font-weight: 800 !important;
  color: var(--alx-navy) !important;
  padding-bottom: 12px !important;
  margin-bottom: 12px !important;
}
html body .ale-sidebar-header i {
  color: var(--alx-orange) !important;
}
.ale-cat-main-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
html body .ale-cat-link-main {
  flex: 1 1 auto;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  padding: 8px 10px !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: var(--alx-navy) !important;
}
html body .ale-cat-link-main:hover,
html body .ale-cat-link-main.active {
  background: var(--alx-bg) !important;
  color: var(--alx-orange-d) !important;
  padding-left: 10px !important;
}
.ale-cat-side-thumb {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 5px;
  border: 1px solid var(--alx-line-2);
  background: #fff;
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ale-cat-side-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
html body .ale-cat-toggle {
  position: static !important;
  padding: 4px !important;
  color: var(--alx-steel) !important;
}
html body .ale-cat-sublink {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 6px 10px 6px 22px !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  color: var(--alx-text-2) !important;
  border-radius: 6px !important;
}
.ale-cat-sub-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #cbd5e1;
  flex-shrink: 0;
}
html body .ale-cat-sublink:hover,
html body .ale-cat-sublink.active {
  background: #f8fafc !important;
  color: var(--alx-navy) !important;
  font-weight: 700 !important;
}
html body .ale-cat-sublink:hover .ale-cat-sub-dot,
html body .ale-cat-sublink.active .ale-cat-sub-dot {
  background: var(--alx-orange);
}

/* ---------------------------------------------------------------- listy produktów w kategoriach (miniatury PrestaShop) */
html body .product-miniature .product-description { text-align: left !important; padding: 10px 12px 12px !important; }
html body .product-miniature .product-title.alx-mt, html body .product-miniature .product-title.alx-mt a {
  font-size: 15px !important; font-weight: 600 !important; line-height: 1.3 !important; color: var(--alx-navy) !important;
  white-space: normal !important; text-transform: none !important; text-align: left !important; -webkit-line-clamp: 3 !important; }
html body .product-miniature .alx-specs { list-style: none; margin: 6px 0 8px; padding: 0; text-align: left; }
html body .product-miniature .alx-specs li { position: relative; font-size: 13px; line-height: 1.35; color: var(--alx-text-2); padding: 1px 0 1px 11px; }
html body .product-miniature .alx-specs li::before { content: ''; position: absolute; left: 0; top: .62em; width: 5px; height: 5px; border-radius: 1px;
  background: var(--alx-orange); }
html body .product-miniature .product-price-and-shipping { text-align: left !important; }
html body .product-miniature .product-price-and-shipping .price { font-size: 18px !important; font-weight: 700 !important; color: var(--alx-navy) !important; }
html body .product-miniature .alx-from { font-size: 13px; font-weight: 500; color: var(--alx-steel); margin-right: 3px; }
html body .product-miniature .ale-miniature-legal { text-align: left !important; }
html body .product-miniature .product-title { text-transform: none !important; }
html body .product-flags .product-flag.new { background: var(--alx-navy) !important; color: #fff !important; }

/* ---------------------------------------------------------------- karta produktu: beżowa paleta "fashion" -> stal */
html body .ale-prod-category-badge { background: #eef2f6 !important; color: var(--alx-steel) !important; }
html body .product-prices.js-product-prices { background: var(--alx-bg) !important; border-color: var(--alx-line) !important; }
html body .ale-price-shipping-bar { border-color: var(--alx-line) !important; }
html body .ale-short-hl-icon { background: #e6ebf1 !important; color: var(--alx-navy) !important; }
html body .ale-short-hl-warn .ale-short-hl-icon { background: #fff4e6 !important; color: #b45309 !important; }
html body .product-variants { background: var(--alx-bg) !important; border-color: var(--alx-line) !important; }
html body .ale-size-pill { background: #fff !important; border-color: #c9d2dc !important; color: var(--alx-text) !important; }
html body .ale-size-pill:hover { border-color: var(--alx-navy) !important; background: #fff !important; }
html body .ale-size-pill.active { border: 2px solid var(--alx-orange) !important; box-shadow: 0 3px 10px rgba(242, 133, 0, .2) !important; }
html body .ale-pill-more, html body .ale-attr-more button { border-color: #9aa8b6 !important; color: var(--alx-navy) !important; background: #fff !important; }
html body .ale-attr-tile.selected label { border-color: var(--alx-orange) !important; }
html body .bootstrap-touchspin { background: #fff !important; border-color: #c9d2dc !important; }
html body .btn-touchspin { background: #eef2f6 !important; }
html body .wishlist-button-product { background: #fff !important; border-color: #c9d2dc !important; }
html body .wishlist-button-product i.material-icons { color: var(--alx-navy) !important; }
html body .ale-versand-info-box { border-color: var(--alx-line) !important; }
html body .ale-similar-box { background: var(--alx-bg) !important; border-color: var(--alx-line) !important; }
html body .ale-similar-btn, html body .ale-similar-card { border-color: var(--alx-line) !important; }
html body .ale-metal table.ale-m-spec { border-color: var(--alx-line) !important; }
html body .ale-metal .ale-m-spec th { background: var(--alx-bg) !important; color: var(--alx-steel) !important; }
html body .ale-metal .ale-m-spec th, html body .ale-metal .ale-m-spec td { border-color: #e6ebf0 !important; }
html body .ale-metal h3, html body .ale-gpsr-h { color: var(--alx-steel) !important; }
html body details.ale-gpsr > summary { border-color: var(--alx-line) !important; }
html body details.ale-gpsr > summary::after { color: var(--alx-orange) !important; }
html body .ale-gpsr-card { background: var(--alx-bg) !important; }
html body #product-availability.js-product-availability { color: #15803d !important; }
html body #product-availability.js-product-availability i.material-icons { color: #15803d !important; }
html body#product .ale-prod-category-badge { background: #eef2f6 !important; color: var(--alx-steel) !important; }
html body#product .product-prices.js-product-prices, html body#product .product-information .product-prices {
  background: var(--alx-bg) !important; border-color: var(--alx-line) !important; }
html body#product .product-prices .ale-price-shipping-bar { border-color: var(--alx-line) !important; }
html body#product .product-quantity .bootstrap-touchspin, html body#product .bootstrap-touchspin.input-group {
  background: #fff !important; border-color: #c9d2dc !important; }
html body#product .product-quantity .btn-touchspin, html body#product .bootstrap-touchspin .btn-touchspin { background: #eef2f6 !important; }
html body#product .product-quantity .qty .input-group.bootstrap-touchspin { background: #fff !important; border-color: #c9d2dc !important; }
html body#product .product-quantity .qty .btn-touchspin { background: #eef2f6 !important; }
html body#product .product-quantity .qty .btn-touchspin:hover { background: #dde4ec !important; }
html body#product .product-quantity .wishlist-button-product, html body#product .wishlist-button-add.wishlist-button-product {
  background: #fff !important; border-color: #c9d2dc !important; }
html body#product .product-quantity .wishlist-button-product i.material-icons { color: var(--alx-navy) !important; }
html body#product .ale-product-title { font-size: 26px !important; line-height: 1.3 !important; text-transform: none !important; }

/* ---------------------------------------------------------------- karta produktu na komputerze: powiększone zdjęcie główne (720x720 px) */
@media (min-width: 992px) {
  html body#product #wrapper .container {
    max-width: 1520px !important;
  }
  html body#product .ale-product-gallery-col {
    width: 52% !important;
    max-width: 52% !important;
    flex: 0 0 52% !important;
    padding-right: 28px !important;
  }
  html body#product .ale-product-info-col {
    width: 48% !important;
    max-width: 48% !important;
    flex: 0 0 48% !important;
    padding-left: 10px !important;
  }
  html body#product .ale-main-cover-box,
  html body#product .MagicToolboxContainer .magic-slide[data-magic-slide="zoom"] {
    max-width: 720px !important;
    max-height: 720px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  html body#product .ale-thumbnails-wrap,
  html body#product .MagicToolboxSelectorsContainer {
    max-width: 720px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* ---------------------------------------------------------------- tablet / telefon */
@media (max-width: 1199px) {
  .alx-cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .alx-pgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
  .alx-cat-dropdown-menu { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .alx-pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .alx-wrap { padding: 0 12px; }
  .alx-sec { padding: 24px 0; }
  .alx-hero { padding: 16px 0 22px; margin-bottom: 10px; }
  .alx-hero-header-full { padding: 14px 16px; gap: 12px; }
  .alx-hero-h1 { font-size: 21px !important; }
  .alx-hero-sub { font-size: 13.5px; }
  .alx-hero-dropdown-wrap { width: 100%; box-sizing: border-box; }
  .alx-cat-dropdown { width: 100%; box-sizing: border-box; }
  .alx-cat-dropdown-btn { box-sizing: border-box !important; width: 100% !important; max-width: 100% !important; min-width: 0 !important; }
  .alx-cat-dropdown-menu { box-sizing: border-box !important; position: static; width: 100% !important; max-width: 100% !important; margin-top: 8px; grid-template-columns: 1fr; gap: 14px; box-shadow: none; }
  .alx-hero-cat-block { padding: 14px 14px 12px; }
  .alx-row-title { font-size: 16.5px !important; }
  .alx-slide-item { flex: 0 0 140px; width: 140px; }
  .alx-slide-card { padding: 8px 8px 10px; }
  .alx-slide-name { font-size: 12.5px; }
  .alx-h2 { font-size: 21px !important; }
  .alx-cats { padding: 24px 0 12px; }
  .alx-cat-grid { grid-template-columns: 1fr; gap: 14px; }
  .alx-cat-top { padding: 12px; }
  .alx-cat-img { flex: 0 0 68px; width: 68px; height: 68px; }
  .alx-cat-name { font-size: 16.5px; }
  .alx-pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .alx-p-title { font-size: 14px; padding: 0 10px; }
  .alx-p-specs { padding: 0 10px; }
  .alx-p-specs li { font-size: 12.5px; }
  .alx-p-price { padding: 8px 10px 0; font-size: 17px; }
  .alx-p-tax { padding: 1px 10px 0; }
  html body #subcategories .ale-subcategories-grid { grid-template-columns: 1fr !important; }
  html body#product .ale-product-title { font-size: 21px !important; }
}
