/* HookahGang: compact illustrated category tiles · 2026-11-13 */
body.hg-ux-v1 .hg-ux-subcategories {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)) !important;
  gap: 10px !important;
  overflow: visible !important;
  padding: 3px 0 12px !important;
  margin: 10px 0 0 !important;
}

body.hg-ux-v1 .hg-ux-subcategories > li {
  width: auto !important;
  min-width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

body.hg-ux-v1 #content .hg-ux-subcategories > li > a {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  min-height: 126px !important;
  height: 100% !important;
  padding: 4px 4px 7px !important;
  border: 1px solid #e6e1d8 !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: 0 4px 14px rgb(25 26 24 / 5%) !important;
  color: #191a18 !important;
  text-decoration: none !important;
  white-space: normal !important;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease !important;
}

body.hg-ux-v1 #content .hg-ux-subcategories > li > a:hover {
  transform: translateY(-2px);
  border-color: #d5c8b2 !important;
  box-shadow: 0 8px 20px rgb(25 26 24 / 9%) !important;
}

body.hg-ux-v1 .hg-ux-subcategories .image {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 88px !important;
  margin: 0 0 5px !important;
  padding: 0 !important;
  overflow: hidden !important;
  border-radius: 10px !important;
  background: transparent !important;
}

body.hg-ux-v1 .hg-ux-subcategories .image img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  object-fit: contain !important;
  object-position: center !important;
  transform: none !important;
}

/* Transparent category cutouts uploaded specifically for these tiles. */
body.hg-ux-v1:not(.hg-preview) .hg-ux-subcategories > li:nth-child(1) .image img {
  content: url('/user/documents/upload/hg-category-hadice-20261113.png');
}

body.hg-ux-v1:not(.hg-preview) .hg-ux-subcategories > li:nth-child(2) .image img {
  content: url('/user/documents/upload/hg-category-hms-20261113.png');
}

body.hg-ux-v1:not(.hg-preview) .hg-ux-subcategories > li:nth-child(3) .image img {
  content: url('/user/documents/upload/hg-category-kleste-20261113.png');
}

body.hg-ux-v1:not(.hg-preview) .hg-ux-subcategories > li:nth-child(4) .image img {
  content: url('/user/documents/upload/hg-category-naustky-20261113.png');
}

body.hg-ux-v1:not(.hg-preview) .hg-ux-subcategories > li:nth-child(5) .image img {
  content: url('/user/documents/upload/hg-category-podlozky-20261113.png');
}

body.hg-ux-v1:not(.hg-preview) .hg-ux-subcategories > li:nth-child(6) .image img {
  content: url('/user/documents/upload/hg-category-pokery-20261113.png');
}

body.hg-ux-v1:not(.hg-preview) .hg-ux-subcategories > li:nth-child(7) .image img {
  content: url('/user/documents/upload/hg-category-tarbuse-20261113.png');
}

body.hg-ux-v1:not(.hg-preview) .hg-ux-subcategories > li:nth-child(8) .image img {
  content: url('/user/documents/upload/hg-category-zhavice-20261113.png');
}

body.hg-ux-v1:not(.hg-preview) .hg-ux-subcategories > li:nth-child(9) .image img {
  content: url('/user/documents/upload/hg-category-zachytavac-20261113.png');
}

body.hg-ux-v1 .hg-ux-subcategories a > .text,
body.hg-ux-v1 .hg-ux-subcategories a > span:not(.image) {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 1 1 auto !important;
  min-height: 28px !important;
  padding: 0 3px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  text-align: center !important;
  text-wrap: balance;
}

body.hg-ux-v1 .hg-ux-subcategories-toggle {
  display: none !important;
}

@media (max-width: 767px) {
  body.hg-ux-v1 .hg-ux-subcategories {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  body.hg-ux-v1 #content .hg-ux-subcategories > li > a {
    min-height: 116px !important;
    padding: 4px 4px 6px !important;
    border-radius: 12px !important;
  }

  body.hg-ux-v1 .hg-ux-subcategories .image {
    height: 78px !important;
    margin-bottom: 4px !important;
  }

  body.hg-ux-v1 .hg-ux-subcategories a > .text,
  body.hg-ux-v1 .hg-ux-subcategories a > span:not(.image) {
    font-size: 11px !important;
  }
}

@media (max-width: 390px) {
  body.hg-ux-v1 .hg-ux-subcategories {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.hg-ux-v1 #content .hg-ux-subcategories > li > a {
    transition: none !important;
  }
}
