.woo-category-description-wrapper {
  position: relative;
  margin-bottom: 2rem;
  font-size: 16px;
  line-height: 1.6;
  color: #666;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 20px;
  padding-left: 32px;
  padding-right: 32px;
}

.woo-category-description-content {
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  will-change: max-height;
  width: 100%;
  position: relative;
}

.woo-category-description-content.collapsed {
  /* max-height bude nastavena dynamicky přes JavaScript */
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 1) 70%,
    rgba(0, 0, 0, 0.8) 85%,
    rgba(0, 0, 0, 0.4) 90%,
    rgba(0, 0, 0, 0) 95%
  );
  mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 1) 70%,
    rgba(0, 0, 0, 0.8) 85%,
    rgba(0, 0, 0, 0.4) 90%,
    rgba(0, 0, 0, 0) 95%
  );
}

.woo-category-description-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.1) 30%,
    rgba(255, 255, 255, 0.4) 60%,
    rgba(255, 255, 255, 0.8) 85%,
    rgba(255, 255, 255, 1) 100%
  );
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.woo-category-description-fade.visible {
  opacity: 1;
}

.woo-category-description-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 1rem;
  padding: 8px 16px;
  color: #56595a !important;
  background-color: transparent !important;
  border-color: #56595a !important;
  border-radius: 22px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.2s ease, transform 0.1s ease;
  z-index: 2;
  position: relative;
}

.woo-category-description-toggle:hover {
  /*background: #005a87;*/
  transform: translateY(-1px);
}

.woo-category-description-toggle:active {
  transform: translateY(0);
}

.toggle-icon {
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.woo-category-description-toggle[aria-expanded="true"] .toggle-icon {
  transform: rotate(180deg);
}

/* Responsivní design */
@media (max-width: 768px) {
  .woo-category-description-wrapper {
    font-size: 14px;
    margin-bottom: 1.5rem;
  }

  .woo-category-description-toggle {
    padding: 6px 12px;
    font-size: 13px;
  }

  .woo-category-description-fade {
    height: 100px;
  }
}

/* Optimalizace pro Core Web Vitals */
.woo-category-description-wrapper * {
  box-sizing: border-box;
}

/* Preload pro plynulou animaci */
.woo-category-description-content {
  contain: layout style;
}
