/* Carpathia Herbarium homepage v12 — load after shoptet-homepage.css. */
#ch-home #ch-potreby.ch-needs {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(64px, 6.5vw, 104px) max(24px, calc((100% - 1252px) / 2));
  background: #213c2c;
  color: #f7f5ed;
}

#ch-home #ch-potreby .ch-section-heading {
  align-items: end;
  margin-bottom: 38px;
}
#ch-home #ch-potreby .ch-needs-heading-copy {
  max-width: 740px;
}
#ch-home #ch-potreby .ch-needs-eyebrow {
  margin: 0 0 16px;
  color: #c9d5b8;
  font: 600 11px/1.4 CHManrope, Arial, sans-serif;
  letter-spacing: .16em;
  text-transform: uppercase;
}
#ch-home #ch-potreby h2 {
  max-width: 760px;
  margin: 0;
  color: #f7f5ed;
  font-size: clamp(38px, 4.4vw, 64px);
  line-height: 1.08;
}
#ch-home #ch-potreby .ch-needs-intro {
  max-width: 540px;
  margin: 20px 0 0;
  color: #d3ddce;
  font: 400 15px/1.6 CHManrope, Arial, sans-serif;
}
#ch-home #ch-potreby .ch-section-heading > .ch-text-link {
  flex: none;
  color: #f7f5ed;
  border-color: currentColor;
}
#ch-home #ch-potreby .ch-needs-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
#ch-home #ch-potreby .ch-need,
#ch-home #ch-potreby .ch-need:last-child {
  position: relative;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  min-width: 0;
  min-height: 236px;
  padding: 24px 20px 25px;
  overflow: hidden;
  border: 1px solid rgba(247,245,237,.35);
  border-radius: 0;
  background: rgba(247,245,237,.055);
  color: #f7f5ed;
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
#ch-home #ch-potreby .ch-need::before {
  position: absolute;
  top: 22px;
  left: 20px;
  color: #b8c9aa;
  font: 600 11px/1 CHManrope, Arial, sans-serif;
  letter-spacing: .12em;
}
#ch-home #ch-potreby .ch-need:nth-child(1)::before { content: '01 / 05'; }
#ch-home #ch-potreby .ch-need:nth-child(2)::before { content: '02 / 05'; }
#ch-home #ch-potreby .ch-need:nth-child(3)::before { content: '03 / 05'; }
#ch-home #ch-potreby .ch-need:nth-child(4)::before { content: '04 / 05'; }
#ch-home #ch-potreby .ch-need:nth-child(5)::before { content: '05 / 05'; }
#ch-home #ch-potreby .ch-need::after {
  content: '↗';
  position: absolute;
  top: 16px;
  right: 18px;
  color: #f7f5ed;
  font: 400 21px/1 Georgia, serif;
  transition: transform .2s ease;
}
#ch-home #ch-potreby .ch-need > .ch-need-title {
  display: block;
  max-width: 190px;
  margin-bottom: 10px;
  color: #f7f5ed;
  font: 400 clamp(25px, 2.05vw, 32px)/1.12 Georgia, serif;
}
#ch-home #ch-potreby .ch-need > span:not(.ch-need-title) {
  max-width: 190px;
  color: #d3ddce;
  font: 400 13px/1.45 CHManrope, Arial, sans-serif;
}
@media (hover: hover) and (pointer: fine) {
  #ch-home #ch-potreby .ch-need:hover {
    background: #345440;
    border-color: #d3ddce;
    transform: translateY(-4px);
  }
  #ch-home #ch-potreby .ch-need:hover::after { transform: translate(3px,-3px); }
}
#ch-home #ch-potreby .ch-need:focus-visible {
  outline: 2px solid #f7f5ed;
  outline-offset: 3px;
}

/* Two 4:3 gallery photographs in the original card frame. */
#ch-home #ch-produkty .ch-product-image {
  position: relative;
  display: block;
  overflow: hidden;
  background: #f1eee6;
}
#ch-home #ch-produkty .ch-product-image .ch-pack,
#ch-home #ch-produkty .ch-product-image .ch-lifestyle {
  position: absolute;
  inset: 0;
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  padding: 0;
  object-fit: cover;
  object-position: center;
  transform: none;
  transition: opacity .35s ease;
}
#ch-home #ch-produkty .ch-product-image .ch-pack { z-index: 1; opacity: 1; }
#ch-home #ch-produkty .ch-product-image .ch-lifestyle { z-index: 2; opacity: 0; }
@media (hover: hover) and (pointer: fine) {
  #ch-home #ch-produkty .ch-product-image:hover .ch-lifestyle { opacity: 1; }
}
#ch-home #ch-produkty .ch-product-image:focus-visible .ch-lifestyle { opacity: 1; }
@media (hover: none) {
  #ch-home #ch-produkty .ch-product-image .ch-lifestyle { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  #ch-home #ch-potreby .ch-need,
  #ch-home #ch-potreby .ch-need::after,
  #ch-home #ch-produkty .ch-product-image img { transition: none; }
}
@media (max-width: 1080px) {
  #ch-home #ch-potreby .ch-needs-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  #ch-home #ch-potreby .ch-need,
  #ch-home #ch-potreby .ch-need:last-child { grid-column: auto; min-height: 200px; }
}
@media (max-width: 700px) {
  #ch-home #ch-potreby.ch-needs {
    padding: 60px 20px 64px;
  }
  #ch-home #ch-potreby .ch-section-heading { gap: 26px; margin-bottom: 28px; }
  #ch-home #ch-potreby h2 { font-size: 39px; }
  #ch-home #ch-potreby .ch-needs-intro { font-size: 14px; margin-top: 16px; }
  #ch-home #ch-potreby .ch-needs-grid { grid-template-columns: 1fr; gap: 9px; }
  #ch-home #ch-potreby .ch-need,
  #ch-home #ch-potreby .ch-need:last-child {
    grid-column: auto;
    min-height: 0;
    padding: 22px 55px 20px 54px;
  }
  #ch-home #ch-potreby .ch-need::before { top: 28px; left: 16px; font-size: 10px; }
  #ch-home #ch-potreby .ch-need::after { top: 25px; right: 17px; }
  #ch-home #ch-potreby .ch-need > .ch-need-title { max-width: none; margin-bottom: 5px; font-size: 26px; }
  #ch-home #ch-potreby .ch-need > span:not(.ch-need-title) { max-width: none; font-size: 12px; }
}
