/* Mobil: úplné názvy produktů v sekci Nejoblíbenější */
@media (max-width: 767px) {
  #kd-favorites > a > strong {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }

  #kd-favorites > a > strong em {
    display: block;
    overflow: visible;
    min-height: 0;
    font-size: 15px;
    line-height: 1.25;
    overflow-wrap: anywhere;
    -webkit-box-orient: initial;
    -webkit-line-clamp: unset;
  }

  #kd-favorites > a > strong i {
    padding-top: 1px;
    font-size: 13px;
  }
}

/* Výraznější klikací tlačítko v závěrečné sekci */
#kd-home-inspiration > a {
  position: relative;
  border: 1px solid #332b25;
  box-shadow: 0 9px 22px rgba(51, 43, 37, .16);
  text-decoration: none !important;
  transition:
    transform .25s ease,
    background-color .25s ease,
    box-shadow .25s ease;
}

@media (hover: hover) {
  #kd-home-inspiration > a:hover {
    background: #a4775f;
    border-color: #a4775f;
    color: #fff !important;
    box-shadow: 0 14px 30px rgba(51, 43, 37, .24);
    transform: translateY(-3px);
  }
}

#kd-home-inspiration > a:focus-visible {
  outline: 3px solid rgba(164, 119, 95, .35);
  outline-offset: 4px;
}

#kd-home-inspiration > a:active {
  box-shadow: 0 5px 13px rgba(51, 43, 37, .18);
  transform: translateY(1px) scale(.985);
}

@media (max-width: 767px) {
  #kd-home-inspiration > a {
    width: min(100%, 340px);
    justify-content: center;
    padding: 16px 22px;
  }
}

/* Horní systémová navigace: odlišení od informačního proužku */
body.kd-home-ready .top-navigation-bar {
  border-bottom: 1px solid #eadfd4 !important;
  background: #f8f3ee !important;
  color: #332b25 !important;
}

body.kd-home-ready .top-navigation-bar a,
body.kd-home-ready .top-navigation-bar span,
body.kd-home-ready .top-navigation-bar strong {
  color: #332b25 !important;
}

/*
 * Zabrání krátkému zobrazení původní homepage.
 * Hlavička zůstává po celou dobu viditelná.
 */
body.type-index:not(.kd-home-ready) #content {
  visibility: hidden !important;
}

body.type-index.kd-home-ready #content {
  visibility: visible !important;
}

/* Výhody přímo pod bannerem a ve stejné šířce */
#kd-homepage-hero {
  margin-bottom: 0 !important;
}

#kd-home-benefits {
  width: min(1320px, calc(100% - 48px)) !important;
  margin: 14px auto 70px !important;
  gap: 10px !important;
}

#kd-home-benefits article {
  min-height: 132px;
  padding: 16px 17px !important;
  gap: 12px !important;
  border-radius: 16px !important;
}

#kd-home-benefits article i {
  flex: 0 0 40px !important;
  width: 40px !important;
  height: 40px !important;
  font-size: 15px !important;
}

#kd-home-benefits article strong {
  margin-bottom: 5px !important;
  font-size: 17px !important;
  line-height: 1.15 !important;
}

#kd-home-benefits article p {
  font-size: 12px !important;
  line-height: 1.4 !important;
}

@media (max-width: 767px) {
  #kd-homepage-hero {
    margin-bottom: 0 !important;
  }

  #kd-home-benefits {
    width: calc(100% - 28px) !important;
    margin: 10px auto 45px !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  #kd-home-benefits article {
    min-height: 0;
    padding: 14px 15px !important;
    border-radius: 14px !important;
  }

  #kd-home-benefits article i {
    flex-basis: 38px !important;
    width: 38px !important;
    height: 38px !important;
  }

  #kd-home-benefits article strong {
    font-size: 16px !important;
  }

  #kd-home-benefits article p {
    font-size: 11px !important;
  }
}

/* Skrytí technické kategorie z menu */
#categories li:has(a[href="/produkty-podle-odstinu/"]),
#categories li:has(a[href="/sk/produkty-podla-odtiena/"]),
nav li:has(a[href="/produkty-podle-odstinu/"]),
nav li:has(a[href="/sk/produkty-podla-odtiena/"]),
#categories a[href="/produkty-podle-odstinu/"],
#categories a[href="/sk/produkty-podla-odtiena/"],
nav a[href="/produkty-podle-odstinu/"],
nav a[href="/sk/produkty-podla-odtiena/"] {
  display: none !important;
}

/* Horní informační proužek */
#kd-top-strip {
  box-sizing: border-box;
  width: 100%;
  padding: 10px 20px;
  background: #332b25;
  color: #fff;
  text-align: center;
  font: 600 12px/1.4 "Exo 2", Arial, sans-serif;
  letter-spacing: .08em;
}

#kd-top-strip b {
  padding: 0 10px;
  color: #b99a82;
}

/* Barevný filtr v bočním panelu kategorií */
body.type-category.kd-side .box-categories {
  padding: 12px 6px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #fff !important;
  box-shadow: none !important;
}

body.type-category.kd-side .box-categories .skip-link__wrapper,
body.type-category.kd-side .box-topProducts {
  display: none !important;
}

.kd-shade-title {
  margin: 0 0 18px;
  color: #222;
  font: 700 20px/1.3 "Exo 2", sans-serif;
  text-align: left;
}

.kd-shade-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

#categories .kd-shade-link {
  display: flex !important;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 46px;
  padding: 7px 8px !important;
  border-radius: 8px;
  background: #fff;
  color: #222 !important;
  font: 600 14px/1.3 "Exo 2", sans-serif;
  text-decoration: none !important;
  transition: background-color .2s ease, box-shadow .2s ease;
}

#categories .kd-shade-link::before,
#categories .kd-shade-link::after {
  display: none !important;
}

#categories .kd-shade-link:hover {
  background: #f8f4ef;
}

#categories .kd-shade-link.is-active {
  background: #fff;
  box-shadow: inset 0 0 0 2px #b99a82;
}

.kd-shade-circle {
  display: block;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(0, 0, 0, .12);
  border-radius: 50%;
  background-color: var(--kd-color);
  box-shadow: 0 2px 6px rgba(80, 60, 45, .12);
}

@media (min-width: 992px) {
  body.type-category.kd-side .box-categories {
    position: sticky;
    top: 110px;
  }
}

/* Květinové novinky – stejné provedení jako Nejoblíbenější */
#kd-news-section {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 78px 0 88px;
  background: #fff;
}

.kd-news-heading,
#kd-news {
  width: min(1320px, calc(100% - 48px));
  margin-right: auto;
  margin-left: auto;
}

.kd-news-heading {
  margin-bottom: 42px;
  text-align: center;
}

.kd-news-heading p {
  margin: 0 0 14px;
  color: #a4775f;
  font: 700 12px/1 Arial, sans-serif;
  letter-spacing: .18em;
}

.kd-news-heading h2 {
  margin: 0;
  color: #332b25;
  font: 400 58px/1.05 Georgia, "Times New Roman", serif;
}

/* Sjednocená, klidnější velikost hlavních nadpisů produktových sekcí */
#kd-favorites-section > .homepage-group-title,
.kd-news-heading h2 {
  font-size: 46px !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-style: normal !important;
  font-weight: 400 !important;
  line-height: 1.08 !important;
}

#kd-news {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

#kd-news > a {
  display: block;
  min-width: 0;
  color: #332b25;
  text-decoration: none !important;
  transition: transform .35s ease;
}

#kd-news > a > span {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 22px;
  background: #eee7df;
  box-shadow: 0 10px 30px rgba(66, 49, 37, .08);
  transition: box-shadow .35s ease;
}

#kd-news img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform .7s cubic-bezier(.2, .65, .25, 1);
}

#kd-news b {
  position: absolute;
  z-index: 2;
  top: 16px;
  left: 16px;
  padding: 8px 13px;
  border-radius: 99px;
  background: #fff;
  color: #795f50;
  font: 700 10px Arial, sans-serif;
  letter-spacing: .12em;
}

#kd-news strong {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  margin: 16px 0 5px;
  font: 400 20px/1.25 Georgia, "Times New Roman", serif;
}

/* Názvy novinek používají stejné písmo jako karty Nejoblíbenější */
#kd-news strong em {
  min-width: 0;
  color: #332b25;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: inherit;
  font-style: normal !important;
  font-weight: 400 !important;
  line-height: inherit;
}

#kd-news strong i {
  color: #332b25;
  font: 700 15px/1.35 "Exo 2", Arial, sans-serif;
  white-space: nowrap;
}

#kd-news small {
  color: #8a7f76;
  font: 400 13px/1.4 "Exo 2", Arial, sans-serif;
}

@media (hover: hover) {
  #kd-news > a:hover {
    color: #332b25;
    transform: translateY(-7px);
  }

  #kd-news > a:hover > span {
    box-shadow: 0 22px 44px rgba(66, 49, 37, .16);
  }

  #kd-news > a:hover img {
    transform: scale(1.035);
  }
}

@media (max-width: 767px) {
  #kd-favorites-section > .homepage-group-title,
  .kd-news-heading h2 {
    font-size: 34px !important;
    line-height: 1.1 !important;
  }
  #kd-top-strip {
    padding: 8px 10px;
    font-size: 10px;
    letter-spacing: .04em;
  }

  #kd-top-strip b {
    padding: 0 5px;
  }

  #kd-news-section {
    padding: 52px 0 58px;
  }

  .kd-news-heading,
  #kd-news {
    width: calc(100% - 28px);
  }

  .kd-news-heading {
    margin-bottom: 28px;
  }

  .kd-news-heading h2 {
    font-size: 40px;
  }

  #kd-news {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 14px;
  }

  #kd-news > a > span {
    border-radius: 17px;
  }

  #kd-news b {
    top: 10px;
    left: 10px;
    padding: 6px 9px;
    font-size: 8px;
  }

  #kd-news strong {
    display: block;
    margin-top: 11px;
    font-size: 16px;
  }

  #kd-news strong i {
    display: block;
    margin-top: 4px;
    font-size: 13px;
  }
}
