/* Kalama Description Builder - shop description (kalama.pl, Hummingbird). Scoped to .kdb-description only. */
.kdb-description {
  --kdb-gap: clamp(1.25rem, 3vw, 2.5rem);
  --kdb-text: var(--bs-body-color, #222);
  --kdb-muted: var(--bs-gray-700, #555);
  background: #fff;
  color: var(--kdb-text);
  font-size: 1rem;
  line-height: 1.65;
  display: flex;
  flex-direction: column;
  gap: var(--kdb-gap);
  margin: 0;
  padding: 0;
}
.kdb-description .kdb-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--kdb-gap);
  align-items: center;
  margin: 0;
  padding: 0;
  background: transparent;
}
.kdb-description .kdb-row--top { align-items: start; }
@media (min-width: 768px) {
  .kdb-description .kdb-row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.kdb-description .kdb-col,
.kdb-description .text-item,
.kdb-description .image-item { min-width: 0; margin: 0; padding: 0; background: transparent; }
.kdb-description .kdb-row--text .kdb-col--text { max-width: 52rem; }
.kdb-description .kdb-row--image .kdb-col--image { text-align: center; }

.kdb-description .kdb-figure { margin: 0; display: flex; justify-content: center; }
.kdb-description .kdb-figure img {
  display: block;
  max-width: 100%;
  height: auto;          /* keep the original proportions, never crop */
  object-fit: contain;
  border-radius: 4px;
  background: #fff;
}
.kdb-description .kdb-row--image .kdb-figure img { max-height: 900px; width: auto; }

.kdb-description h2,
.kdb-description h3 {
  color: var(--kdb-text);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 .75rem;
  letter-spacing: -.01em;
}
.kdb-description h2 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.65rem); }
.kdb-description h3 { font-size: clamp(1.1rem, 1rem + .4vw, 1.25rem); }
.kdb-description p { margin: 0 0 .85rem; color: var(--kdb-text); }
.kdb-description .text-item > :last-child { margin-bottom: 0; }
.kdb-description ul,
.kdb-description ol { margin: 0 0 .85rem; padding-left: 1.35rem; }
.kdb-description li { margin: .25rem 0; }
.kdb-description li::marker { color: var(--kdb-muted); }
.kdb-description b,
.kdb-description strong { font-weight: 700; }
.kdb-description a { color: var(--bs-link-color, #0d6efd); text-decoration: underline; text-underline-offset: 2px; }

/* preserved legacy HTML */
.kdb-description .kdb-html { overflow-x: auto; }
.kdb-description .kdb-html img { max-width: 100%; height: auto; }
.kdb-description .kdb-html table { width: 100%; border-collapse: collapse; margin: 0 0 1rem; }
.kdb-description .kdb-html td,
.kdb-description .kdb-html th { border: 1px solid #e5e5e5; padding: .45rem .6rem; text-align: left; vertical-align: top; }
