@charset "UTF-8";
/* ==========================================================================
   Emporio Beauty – vlastní styly
   --------------------------------------------------------------------------
   Rozcestník „Vlasová kosmetika podle značek“ (kategorie id 1321)
   Všechna pravidla jsou omezená na body.type-category.id-1321,
   takže neovlivní žádnou jinou stránku e-shopu.
   ========================================================================== */

/* 1) Skrytí hlášky „Produkty teprve připravujeme.“ + tlačítka „Zpět do obchodu“ */
body.type-category.id-1321 .empty-content-category {
  display: none !important;
}

/* 2) Úvodní text – lepší čitelnost */
body.type-category.id-1321 .category-top .category-perex {
  max-width: 820px;
}
body.type-category.id-1321 .category-top .category-perex p {
  margin-bottom: 12px;
}
body.type-category.id-1321 .category-top .category-perex a {
  color: #7d55a8;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: #c6adde;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition: color .2s ease, text-decoration-color .2s ease;
}
body.type-category.id-1321 .category-top .category-perex a:hover {
  color: #2c2a28;
  text-decoration-color: #2c2a28;
}

/* 3) Dlaždice značek
   Počet dlaždic na řádek se řídí skutečnou šířkou obsahu (container query):
   široký obsah = 5, střední = 3, úzký = 2. Starší prohlížeče = 3. */
body.type-category.id-1321 ul.subcategories {
  --rk-gap: 16px;
  --rk-cols: 3;
  container-type: inline-size;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: var(--rk-gap);
  margin: 36px 0 64px;
  padding: 0;
  list-style: none;
}
body.type-category.id-1321 ul.subcategories > li {
  flex: 0 0 calc((100% - (var(--rk-cols) - 1) * var(--rk-gap)) / var(--rk-cols));
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
}
body.type-category.id-1321 ul.subcategories > li > a {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
  min-height: 160px;
  padding: 28px 14px 24px;
  text-align: center;
  text-decoration: none;
  background: linear-gradient(160deg, #fbf8fe 0%, #f3ecfa 100%);
  border: 1px solid #ebe1f5;
  border-radius: 0;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease;
}
/* jemný proužek nahoře, objeví se při najetí */
body.type-category.id-1321 ul.subcategories > li > a::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #c6adde;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
body.type-category.id-1321 ul.subcategories > li > a:hover,
body.type-category.id-1321 ul.subcategories > li > a:focus-visible {
  background: #ffffff;
  border-color: #c6adde;
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -14px rgba(116, 75, 155, .35);
}
body.type-category.id-1321 ul.subcategories > li > a:hover::before,
body.type-category.id-1321 ul.subcategories > li > a:focus-visible::before {
  transform: scaleX(1);
}

/* obrázek značky – zástupná ikona složky se skryje, skutečné logo se zobrazí */
body.type-category.id-1321 ul.subcategories > li > a .image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100px;
  margin: 0 0 14px;
}
/* Shoptet generuje náhled 140×100 px – zobrazujeme v nativní velikosti, aby byl ostrý */
body.type-category.id-1321 ul.subcategories > li > a .image img {
  max-width: 140px;
  max-height: 100px;
  width: auto;
  height: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}
body.type-category.id-1321 ul.subcategories img[src*="folder.svg"],
body.type-category.id-1321 ul.subcategories img[data-src*="folder.svg"] {
  display: none;
}
body.type-category.id-1321 ul.subcategories .image:has(img[src*="folder.svg"]) {
  display: none;
}

/* název značky */
body.type-category.id-1321 ul.subcategories > li > a .text {
  width: 100%;
  max-width: none;
  max-height: none;
  padding: 0;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  text-align: center;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #2c2a28;
}

/* „Zobrazit produkty →“ místo malé šipky – vždy dole, ve všech dlaždicích na stejném řádku */
body.type-category.id-1321 ul.subcategories > li > a::after {
  content: "Zobrazit produkty\00a0\2192";
  position: static;
  display: block;
  width: 100%;
  margin-top: auto;
  padding-top: 12px;
  text-align: center;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #7d55a8;
  transform: none;
  transition: color .2s ease;
}
body.type-category.id-1321 ul.subcategories > li > a:hover::after {
  color: #2c2a28;
}

/* široký obsah – 5 dlaždic na řádek */
@container (min-width: 960px) {
  body.type-category.id-1321 ul.subcategories > li {
    --rk-cols: 5;
  }
}

/* úzký obsah (tablet se sidebarem, mobil) – 2 dlaždice na řádek */
@container (max-width: 559px) {
  body.type-category.id-1321 ul.subcategories > li {
    --rk-cols: 2;
  }
}

/* mobil – menší odsazení a písmo */
@media (max-width: 575px) {
  body.type-category.id-1321 ul.subcategories {
    --rk-gap: 12px;
    margin: 24px 0 40px;
  }
  body.type-category.id-1321 ul.subcategories > li > a {
    min-height: 130px;
    padding: 22px 10px 18px;
    border-radius: 0;
  }
  body.type-category.id-1321 ul.subcategories > li > a .image {
    height: 84px;
    margin-bottom: 10px;
  }
  body.type-category.id-1321 ul.subcategories > li > a .image img {
    max-width: 118px;
    max-height: 84px;
  }
  body.type-category.id-1321 ul.subcategories > li > a .text {
    font-size: 15px;
    letter-spacing: 1.5px;
  }
  body.type-category.id-1321 ul.subcategories > li > a::after {
    font-size: 11px;
    letter-spacing: 1px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.type-category.id-1321 ul.subcategories > li > a,
  body.type-category.id-1321 ul.subcategories > li > a::before,
  body.type-category.id-1321 ul.subcategories > li > a::after {
    transition: none;
  }
  body.type-category.id-1321 ul.subcategories > li > a:hover {
    transform: none;
  }
}
