/* --- Sekcja 1: Karty kategorii --- */
.mhb-cat-card {
  text-align: center;
  margin-bottom: 2.25rem;
  display: flex;
  height: 100%;
}
/* cały kafel jako link */
.mhb-cat-link {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  text-decoration: none;
  color: inherit;
}
.mhb-cat-link:focus { outline: none; }
.mhb-cat-link:focus-visible { outline: 2px solid #999; outline-offset: 4px; }

.mhb-cat-card .thumb {
  background: #f7f5f6;
  border-radius: 6px;
  padding: 22px;
  overflow: hidden;
}
.mhb-cat-card .thumb img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
/* hover działa dla całego linka */
.mhb-cat-link:hover .thumb img {
  transform: scale(1.05);
}

.mhb-cat-card .title {
  font-size: 2.5rem;
}

@media (max-width: 992px) {
  .mhb-cat-card .title {
    font-size: 1.75rem;
  }
}


.mhb-cat-card .title {
  line-height: 1.5;
  font-weight: 500;
  margin: 14px 0 12px;
  min-height: 45px;
}
.mhb-cat-link:hover .title {
  color: #aaaaaa !important;
  text-decoration: none !important;
}

.mhb-cat-card .pin {
  width: 28px;
  height: 28px;
  display: block;
  margin: 0 auto 20px auto; /* centrowanie i stała wysokość */
}


/* --- Sekcja 2: Kafelki produktowe --- */
.mhb-product-section {
    padding-top: 50px;
    padding-bottom: 50px;
}

/* Styl dla linku-kontenera kafelka */
.mhb-image-tile-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.mhb-image-tile-link:hover {
    text-decoration: none;
    color: inherit;
}

/* Styl dla pojedynczego kwadratowego kafelka */
.mhb-image-tile {
    position: relative;
    width: 100%;
    padding-top: 100%; /* Tworzy kwadrat o proporcjach 1:1 */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    transition: box-shadow 0.3s ease-in-out; /* Płynne przejście dla cienia */
}

/* Efekt cienia po najechaniu na link */
.mhb-image-tile-link:hover .mhb-image-tile {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* Styl dla etykiety z tekstem */
.mhb-image-tile .tile-label {
    position: absolute;
    bottom: 0;
    left: 0;
    background-color: white;
    padding: 1rem 1.5rem;
}

/* Styl dla tekstu w etykiecie */
.mhb-image-tile .tile-label h3 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 300;
    color: #333;
}

/* Klasa do przesunięcia prawej kolumny w dół na większych ekranach */
.mhb-right-column-offset {
    margin-top: 5rem; /* Wartość przesunięcia */
}

/* Media query dla urządzeń mobilnych */
@media (max-width: 767.98px) {
    .mhb-right-column-offset {
        margin-top: 0; /* Usuwamy przesunięcie na mobile */
    }
    .mhb-image-tile-link {
        margin-bottom: 1.5rem; /* Dodajemy margines dolny między kafelkami w widoku mobilnym */
    }
     .left-column .mhb-image-tile-link:last-child {
         margin-bottom: 1.5rem;
    }
}