/* =========================================================================
   Product page — Editor section (page content with expand/collapse)
   ========================================================================= */

.product-editor {
  padding: 0 0 75px 0;
}

/* --- Box ------------------------------------------------------------------ */
.product-editor__box {
  position: relative;
  padding: 40px;
  border: 1px solid #EEEEEE;
  border-radius: 20px;
  box-sizing: border-box;
}

/* --- Content (collapsible) ------------------------------------------------ */
.product-editor__content {
  max-height: 250px;
  overflow: hidden;
  transition: max-height 0.5s ease;
}

/* --- Typography inside editor --------------------------------------------- */
.product-editor__content h1 {
  color: #293948;
  font-family: var(--font-hn);
  font-weight: 700;
  font-size: 30px;
  line-height: 136%;
  letter-spacing: 0.01em;
  margin: 0 0 16px;
}

.product-editor__content h2 {
  color: #424242;
  font-family: var(--font-hn);
  font-weight: 500;
  font-size: 20px;
  line-height: 138%;
  letter-spacing: 0.01em;
  margin: 0 0 12px;
}

.product-editor__content h3 {
  color: #424242;
  font-family: var(--font-hn);
  font-weight: 500;
  font-size: 18px;
  line-height: 138%;
  letter-spacing: 0.01em;
  margin: 0 0 12px;
}

.product-editor__content h4 {
  color: #424242;
  font-family: var(--font-hn);
  font-weight: 500;
  font-size: 16px;
  line-height: 138%;
  letter-spacing: 0.01em;
  margin: 0 0 10px;
}

.product-editor__content p,
.product-editor__content li,
.product-editor__content span,
.product-editor__content td,
.product-editor__content th {
  color: #424242;
  font-family: var(--font-hn);
  font-weight: 300;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: 0.01em;
}

.product-editor__content p {
  margin: 0 0 12px;
}

.product-editor__content ul,
.product-editor__content ol {
  margin: 0 0 12px;
  padding-left: 20px;
}

.product-editor__content li {
  margin-bottom: 6px;
}

.product-editor__content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.product-editor__content a {
  color: #D85401;
  text-decoration: underline;
}

.product-editor__content > *:last-child {
  margin-bottom: 0;
}

.product-editor__box.is-expanded .product-editor__content {
  max-height: none;
}

/* --- Fade overlay --------------------------------------------------------- */
.product-editor__fade {
  position: absolute;
  bottom: 60px;
  left: 1px;
  right: 1px;
  height: 80px;
  background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%);
  border-radius: 0 0 20px 20px;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.product-editor__box.is-expanded .product-editor__fade {
  opacity: 0;
}

.product-editor__box.no-overflow .product-editor__fade {
  display: none;
}

/* --- Toggle button -------------------------------------------------------- */
.product-editor__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  margin-top: 16px;
  padding: 0;
  border: none;
  background: transparent;
  color: #293948;
  font-family: var(--font-hn);
  font-weight: 500;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.product-editor__toggle-icon {
  transition: transform 0.3s ease;
}

.product-editor__box.is-expanded .product-editor__toggle-icon {
  transform: rotate(180deg);
}

.product-editor__box.no-overflow .product-editor__toggle {
  display: none;
}

/* --- Responsive ----------------------------------------------------------- */
@media screen and (max-width: 767px) {
  .product-editor {
    padding: 0 0 32px 0;
  }

  .product-editor__box {
    padding: 20px;
  }

  .product-editor__content {
    max-height: 200px;
  }

  .product-editor__content h1 {
    font-size: 22px;
    margin-bottom: 12px;
  }

  .product-editor__content h2 {
    font-size: 17px;
    margin-bottom: 10px;
  }

  .product-editor__content h3 {
    font-size: 16px;
  }

  .product-editor__content h4 {
    font-size: 15px;
  }

  .product-editor__content p,
  .product-editor__content li,
  .product-editor__content span,
  .product-editor__content td,
  .product-editor__content th {
    font-size: 14px;
  }

  .product-editor__toggle {
    font-size: 14px;
  }
}
