/* Product description rich-text content
   Format HTML pasted from external editors (ChatGPT/Notion/etc.)
   Loaded via Magento_Catalog/layout/catalog_product_view.xml */

.product.attribute.description .value,
.product.attribute.description .addReadMore,
.product.attribute.overview .value,
.product.attribute.overview .addReadMore,
.product.attribute.overview .addReadMore__content {
    line-height: 1.6;
}

.product.attribute.description p,
.product.attribute.description .addReadMore p,
.product.attribute.overview .value p,
.product.attribute.overview .addReadMore p {
    margin: 0 0 1em;
}

.product.attribute.description h2,
.product.attribute.description h3,
.product.attribute.description h4,
.product.attribute.description h5,
.product.attribute.description .addReadMore h2,
.product.attribute.description .addReadMore h3,
.product.attribute.description .addReadMore h4,
.product.attribute.description .addReadMore h5,
.product.attribute.overview .addReadMore h2,
.product.attribute.overview .addReadMore h3,
.product.attribute.overview .addReadMore h4,
.product.attribute.overview .addReadMore h5 {
    margin: 1.2em 0 .4em;
    font-weight: 700;
    color: #2b2b2b;
}

.product.attribute.description h3,
.product.attribute.description .addReadMore h3,
.product.attribute.overview .addReadMore h3 {
    font-size: 18px;
    line-height: 26px;
}

.product.attribute.description h4,
.product.attribute.description .addReadMore h4,
.product.attribute.overview .addReadMore h4 {
    font-size: 16px;
    line-height: 24px;
}

.product.attribute.description ul,
.product.attribute.description ol,
.product.attribute.description .addReadMore ul,
.product.attribute.description .addReadMore ol,
.product.attribute.overview .addReadMore ul,
.product.attribute.overview .addReadMore ol {
    margin: 0 0 1em 1.5em;
    padding: 0;
}

.product.attribute.description ul,
.product.attribute.description .addReadMore ul,
.product.attribute.overview .addReadMore ul {
    list-style: disc outside;
}

.product.attribute.description ol,
.product.attribute.description .addReadMore ol,
.product.attribute.overview .addReadMore ol {
    list-style: decimal outside;
}

.product.attribute.description li,
.product.attribute.description .addReadMore li,
.product.attribute.overview .addReadMore li {
    margin-bottom: .4em;
    line-height: 1.6;
}

.product.attribute.description li > p,
.product.attribute.description .addReadMore li > p,
.product.attribute.overview .addReadMore li > p {
    margin: 0;
}

.product.attribute.description strong,
.product.attribute.description b,
.product.attribute.description .addReadMore strong,
.product.attribute.description .addReadMore b,
.product.attribute.overview .addReadMore strong,
.product.attribute.overview .addReadMore b {
    font-weight: 700;
}

.product.attribute.description em,
.product.attribute.description i,
.product.attribute.description .addReadMore em,
.product.attribute.description .addReadMore i,
.product.attribute.overview .addReadMore em,
.product.attribute.overview .addReadMore i {
    font-style: italic;
}

.product.attribute.description hr,
.product.attribute.description .addReadMore hr,
.product.attribute.overview .addReadMore hr {
    border: 0;
    border-top: 1px solid rgba(0, 0, 0, .15);
    margin: 1.5em 0;
}

.product.attribute.description table,
.product.attribute.description .addReadMore table,
.product.attribute.overview .addReadMore table {
    width: 100%;
    margin: 1em 0 1.5em;
    border-collapse: collapse;
}

.product.attribute.description table td,
.product.attribute.description table th,
.product.attribute.description .addReadMore table td,
.product.attribute.description .addReadMore table th,
.product.attribute.overview .addReadMore table td,
.product.attribute.overview .addReadMore table th {
    padding: 8px 12px;
    vertical-align: top;
    border-bottom: 1px solid rgba(0, 0, 0, .08);
    text-align: left;
}

.product.attribute.description table tr:first-child td,
.product.attribute.description table th,
.product.attribute.description .addReadMore table tr:first-child td,
.product.attribute.description .addReadMore table th,
.product.attribute.overview .addReadMore table tr:first-child td,
.product.attribute.overview .addReadMore table th {
    background: #f7f3ec;
    font-weight: 700;
}

.product.attribute.description a,
.product.attribute.description .addReadMore a,
.product.attribute.overview .addReadMore a {
    color: #a8ad00;
    text-decoration: underline;
}

/* "Ver más / Ver menos" toggle — preserves HTML while clipping by height */
.addReadMore {
    position: relative;
}

.addReadMore .addReadMore__content {
    overflow: hidden;
}

.addReadMore.showlesscontent .addReadMore__content {
    max-height: 160px;
    mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
}

.addReadMore.showmorecontent .addReadMore__content {
    max-height: none;
}

.addReadMore .readMore,
.addReadMore .readLess {
    display: inline-block;
    margin-top: .5em;
    font-weight: 700;
    color: #a8ad00;
    cursor: pointer;
    user-select: none;
}

.addReadMore .readMore:hover,
.addReadMore .readLess:hover {
    text-decoration: underline;
}

.addReadMore.showlesscontent .readLess {
    display: none;
}

.addReadMore.showmorecontent .readMore {
    display: none;
}
