/*
 * Catalog pages (frontend/product/list.blade.php): visible H1 + the category
 * editorial block. Moved out of the view's inline <style> in Nov 2026 (SEO
 * "text-to-HTML ratio"); the <link> sits where the <style> was, so the rules
 * apply in the same order as before.
 */

/* Visible H1 above the grid on the main catalog. */
.catalog-h1 { font-size: 28px; font-weight: 700; margin: 1rem 0 0; padding: 0 1rem; text-align: center; }
@media screen and (max-width: 767px) {
    .catalog-h1 { font-size: 22px; }
}

/*
 * Catalog category editorial block.
 *
 * Admin-authored copy (Quill) shown under the product grid. Scoped here
 * rather than in a global stylesheet, the same way the CMS legal pages do it.
 * Constrained to a readable measure and centred, so a paragraph does not run
 * the full width of the product column.
 */
.catalog-category-content {
    max-width: 860px;
    margin: 3rem auto 0;
    padding: 2.75rem 1rem 1rem;
    border-top: 1px solid #ececf1;
    color: #4f4f57;
    font-size: 1rem;
    line-height: 1.8;
    overflow-wrap: break-word;
}

.catalog-category-content > *:first-child { margin-top: 0; }
.catalog-category-content > *:last-child  { margin-bottom: 0; }

.catalog-category-content h2,
.catalog-category-content h3,
.catalog-category-content h4,
.catalog-category-content h5,
.catalog-category-content h6 {
    margin: 2rem 0 .85rem;
    color: #12121a;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -.01em;
}

/* Deliberately smaller than the site's page-title scale - this is a
   supporting block, not the headline of the page. */
.catalog-category-content h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); }
.catalog-category-content h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); }
.catalog-category-content h4 { font-size: 1.1rem; }
.catalog-category-content h5,
.catalog-category-content h6 { font-size: 1rem; }

.catalog-category-content p { margin: 0 0 1.1rem; }

.catalog-category-content a {
    color: #f90342;
    text-decoration: none;
}
.catalog-category-content a:hover,
.catalog-category-content a:focus {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.catalog-category-content ul,
.catalog-category-content ol { margin: 0 0 1.1rem; padding-left: 1.35rem; }
.catalog-category-content li { margin-bottom: .45rem; }

.catalog-category-content blockquote {
    margin: 1.5rem 0;
    padding: .35rem 0 .35rem 1.15rem;
    border-left: 3px solid #f90342;
    color: #3a3a42;
    font-style: italic;
}

/* Keep pasted media inside the column. */
.catalog-category-content img {
    max-width: 100%;
    height: auto;
    margin: .5rem 0;
    border-radius: 8px;
}
.catalog-category-content table {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0 0 1.1rem;
    overflow-x: auto;
    border-collapse: collapse;
}
.catalog-category-content th,
.catalog-category-content td {
    padding: .6rem .75rem;
    border: 1px solid #ececf1;
}

@media (max-width: 767.98px) {
    .catalog-category-content {
        margin-top: 2rem;
        padding: 2rem .25rem 0;
        line-height: 1.7;
    }
    .catalog-category-content h2 { margin-top: 1.5rem; }
}
