.catalog-container { width: min(100% - 64px, 1280px); margin-inline: auto; }
.catalog-section { padding: 96px 0 112px; background: #f8fafc; }
.catalog-title { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 0 0 64px; color: #1e293b; font-size: 36px; font-weight: 700; line-height: 40px; }
.catalog-title::before, .catalog-title::after { content: ''; flex: 1; height: 1px; max-width: 192px; background: rgb(112 112 112 / 30%); }
.catalog-breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px 12px; margin-bottom: 32px; font-size: 14px; line-height: 20px; }
.catalog-breadcrumbs a, .catalog-back { color: var(--primary); }
.catalog-breadcrumbs a:hover, .catalog-back:hover { text-decoration: underline; }
.catalog-intro { max-width: 768px; margin: 0 auto 48px; text-align: center; color: var(--text-muted); line-height: 24px; }
.catalog-category-grid, .catalog-family-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.catalog-category-card { display: block; overflow: hidden; border-radius: 12px; background: #fff; box-shadow: 0 10px 15px -3px #0000001a, 0 4px 6px -4px #0000001a; }
.catalog-family-card:hover { transform: translateY(-8px); }
.catalog-category-thumb { height: 128px; background: #f3f4f6; }
.catalog-category-card img { display: block; width: 100%; height: 100%; object-fit: contain; }
.catalog-category-copy { padding: 32px; }
.catalog-category-card h2 { font-size: 20px; line-height: 28px; margin-bottom: 12px; }
.catalog-category-card p, .catalog-family-card p { color: var(--text-muted); line-height: 24px; }
.catalog-index .catalog-title { font-size: 30px; line-height: 36px; }

/* ==========================================================================
   Catalog Top Toolbar
   ========================================================================== */
.catalog-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 24px;
    background: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 16px;
    margin-bottom: 36px;
    box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.04);
}
.catalog-toolbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #252525;
}
.catalog-toolbar-count {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}
.catalog-toolbar-count strong {
    color: #0f172a;
    font-weight: 700;
}
.catalog-pulse-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.2);
}
.catalog-toolbar-divider {
    display: inline-block;
    width: 1px;
    height: 16px;
    background: #e2e8f0;
}
.catalog-toolbar-cat {
    font-weight: 600;
    color: #1e293b;
}
.catalog-toolbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
}
.catalog-toolbar-phone {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: #0f172a;
    text-decoration: none;
    transition: color .2s ease;
}
.catalog-toolbar-phone:hover {
    color: var(--primary);
}

/* ==========================================================================
   Alternating Product Card List (Zig-Zag Modern Layout)
   ========================================================================== */
.catalog-products-list {
    display: flex;
    flex-direction: column;
    gap: 36px;
    margin-bottom: 48px;
}

.catalog-feature-card {
    position: relative;
    background: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 24px;
    padding: 36px;
    box-shadow: 0 6px 24px -4px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(15, 23, 42, 0.03);
}

.catalog-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 44px;
    align-items: center;
}

/* Alternating behavior on Desktop: default is Visual Left, Info Right */
.catalog-card-visual {
    order: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}
.catalog-card-info {
    order: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

/* Reversed card: Info Left, Visual Right */
.catalog-feature-card.is-reversed .catalog-card-visual {
    order: 2;
}
.catalog-feature-card.is-reversed .catalog-card-info {
    order: 1;
}

/* Visual Showcase Container */
.catalog-visual-frame {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border: 1px solid #edf2f7;
    border-radius: 18px;
    padding: 36px 28px;
    min-height: 330px;
    overflow: hidden;
    text-align: center;
}
.catalog-visual-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}
.catalog-visual-img {
    max-width: 100%;
    max-height: 270px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.07));
}
.catalog-visual-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(226, 232, 240, 0.85);
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 600;
    color: #252525;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    pointer-events: none;
    z-index: 2;
}
.catalog-visual-tag i {
    color: var(--primary);
    font-size: 11px;
}
.catalog-visual-zoom {
    position: absolute;
    bottom: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 50%;
    color: #64748b;
    font-size: 13px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    z-index: 2;
}
.catalog-visual-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 240px;
    color: #cbd5e1;
    font-size: 48px;
}

/* Card Info Column Details */
.catalog-card-badge-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}
.catalog-badge-cat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-dark);
    background: #f0fdf4;
    border: 1px solid rgba(79, 143, 58, 0.22);
    padding: 4px 12px;
    border-radius: 9999px;
}

.catalog-card-title {
    margin: 0 0 10px;
    font-size: 25px;
    font-weight: 700;
    line-height: 1.3;
    color: #0f172a;
    letter-spacing: -0.02em;
}
.catalog-card-title a {
    color: inherit;
    text-decoration: none;
}

/* Rating / Quality Bar */
.catalog-card-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    font-size: 13px;
}
.catalog-rating-stars {
    display: inline-flex;
    gap: 3px;
    color: #f59e0b;
    font-size: 12px;
}
.catalog-rating-caption {
    color: #252525;
    font-weight: 500;
}

/* Feature Chips */
.catalog-feature-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}
.catalog-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 500;
    color: #252525;
    line-height: 1.2;
}
.catalog-chip i {
    color: var(--primary);
    font-size: 11px;
}

/* Pill Action Buttons (like "Contact for pricing" in example) */
.catalog-card-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: auto;
}
.catalog-btn-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 18px;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    max-width: 100%;
    white-space: normal;
    text-align: center;
}
.catalog-btn-pill--dark {
    background: #0f172a;
    color: #ffffff;
    border: 1.5px solid #0f172a;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}
.catalog-btn-pill--outline {
    background: #ffffff;
    color: #1e293b;
    border: 1.5px solid #cbd5e1;
}
.catalog-btn-pill--wa {
    width: 44px;
    height: 44px;
    padding: 0;
    background: #25d366;
    color: #ffffff;
    border: 1.5px solid #25d366;
    font-size: 18px;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.2);
}

/* ==========================================================================
   Bottom CTA Banner (Matching the modern contact banner in sample image)
   ========================================================================== */
.catalog-cta-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 36px 44px;
    background: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 20px;
    margin-bottom: 48px;
    box-shadow: 0 6px 25px -4px rgba(15, 23, 42, 0.05);
}
.catalog-cta-content {
    flex: 1 1 420px;
}
.catalog-cta-content h3 {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
}
.catalog-cta-content p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #252525;
}
.catalog-cta-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
}
.catalog-cta-contact {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.catalog-cta-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #252525;
}
.catalog-cta-val {
    font-size: 14.5px;
    font-weight: 600;
    color: #0f172a;
    text-decoration: none;
    transition: color .2s ease;
}
.catalog-cta-val:hover {
    color: var(--primary);
}
.catalog-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    background: #0f172a;
    color: #ffffff;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all .25s ease;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.15);
}
.catalog-cta-btn:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 143, 58, 0.3);
}

/* ==========================================================================
   Legacy Catalog Richtext & Other Views
   ========================================================================== */
.catalog-richtext { padding: 36px; margin-bottom: 48px; background: #fff; border: 1px solid #eef2f6; border-radius: 20px; box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04); color: #252525; line-height: 26px; }
.catalog-richtext p, .catalog-richtext li { color: #252525; }
.catalog-richtext h2 { font-size: 24px; line-height: 32px; color: #0f172a; margin: 0 0 16px; font-weight: 700; }
.catalog-richtext h3, .catalog-richtext h4 { margin: 0 0 12px; font-size: 18px; line-height: 26px; color: #1e293b; font-weight: 600; }
.catalog-richtext ul, .catalog-richtext ol { padding-left: 24px; }
.catalog-richtext p:has(>br:only-child) { min-height: 24px; }
.catalog-gallery { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; margin: 0 0 48px; padding: 32px; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; box-shadow: 0 10px 15px -3px #0000001a, 0 4px 6px -4px #0000001a; }
.catalog-gallery-card { display: block; position: relative; aspect-ratio: 1; background: #f3f4f6; border-radius: 8px; overflow: hidden; }
.catalog-gallery-images { display: flex; align-items: center; justify-content: center; height: 100%; }
.catalog-gallery-images img { min-width: 0; width: 100%; height: 100%; object-fit: contain; }
.catalog-gallery-card p { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 12px; background: #4f8f3acc; color: #fff; text-align: center; font-size: 14px; line-height: 1.375; opacity: 0; transition: opacity .2s; pointer-events: none; }
.catalog-gallery-card:hover p, .catalog-gallery-card:focus-visible p { opacity: 1; }
.catalog-gallery-heading { font-size: 24px; line-height: 32px; margin: 32px 0 20px; color: #0f172a; font-weight: 700; }
.catalog-detail-section { padding: 64px 0; min-height: calc(100vh - 80px); background: #f9fafb; }
.catalog-detail-container { max-width: 1152px; }
.catalog-detail-card { overflow: hidden; background: #fff; border-radius: 12px; box-shadow: 0 10px 15px -3px #0000001a, 0 4px 6px -4px #0000001a; }
.catalog-detail-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 32px; padding: 32px; }
.catalog-detail-grid h1,
.catalog-detail-title { font-size: 30px; line-height: 36px; margin-bottom: 16px; text-wrap: balance; word-break: normal; overflow-wrap: break-word; }
.catalog-detail-title.is-long { font-size: 24px; line-height: 32px; }
.catalog-detail-title.is-very-long { font-size: 20px; line-height: 28px; letter-spacing: -0.01em; }
.catalog-detail-grid p { color: #252525; line-height: 26px; }
.catalog-family-photo { display: flex; align-items: center; justify-content: center; min-height: 200px; background: #f3f4f6; border-radius: 8px; }
.catalog-family-photo img { max-height: 320px; object-fit: contain; }
.catalog-product-photos { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; align-content: start; }
.catalog-product-photos a { display: flex; align-items: center; justify-content: center; padding: 12px; background: #f3f4f6; border-radius: 8px; }
.catalog-product-photos a:first-child { grid-column: 1 / -1; min-height: 300px; }
.catalog-product-photos img { max-height: 128px; object-fit: contain; }
.catalog-product-photos a:first-child img { max-height: 400px; }
.catalog-detail-content { margin-top: 24px; color: #252525; }
.catalog-detail-content p, .catalog-detail-content li { color: #252525; }
.catalog-detail-content ul { padding-left: 20px; }
.catalog-enquiry { margin-top: 24px; }
.catalog-measurements, .catalog-tables { border-top: 1px solid #e5e7eb; padding: 32px; }
.catalog-measurements h2 { font-size: 24px; margin-bottom: 24px; }
.catalog-measurement-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; gap: 24px; }
.catalog-measurement-grid img { max-height: 560px; object-fit: contain; border: 1px solid #e5e7eb; border-radius: 8px; }
.catalog-table-scroll { overflow-x: auto; margin-top: 24px; }
.catalog-table-scroll table { border-collapse: collapse; width: 100%; font-size: 14px; }
.catalog-table-scroll caption { text-align: left; font-weight: 700; padding-bottom: 12px; }
.catalog-table-scroll th, .catalog-table-scroll td { padding: 10px; border: 1px solid #e5e7eb; text-align: left; }
.catalog-table-scroll th { background: #f3f4f6; }
.catalog-back { display: inline-block; margin-top: 24px; }
.catalog-empty { padding: 40px 0; text-align: center; }
.catalog-families { padding: 80px 0 112px; }
.catalog-families .catalog-title { font-size: 30px; line-height: 36px; }
.catalog-family-card { border-radius: 8px; overflow: hidden; background: #fff; box-shadow: 0 10px 15px -3px #0000001a, 0 4px 6px -4px #0000001a; transition: transform .3s; }
.catalog-family-thumb { height: 128px; background: #f3f4f6; margin-bottom: 24px; }
.catalog-family-thumb img { width: 100%; height: 100%; object-fit: contain; }
.catalog-family-copy { padding: 0 32px 32px; }
.catalog-family-copy h3 { font-size: 20px; line-height: 28px; margin-bottom: 12px; }
.site-services-page > .site-services { padding: 112px 0 0; }
.site-services-page .site-section-title { font-size: 36px; line-height: 40px; font-weight: 700; margin-bottom: 64px; gap: 16px; }
.site-services-page .site-service-card { border: 0; border-radius: 8px; box-shadow: 0 10px 15px -3px #0000001a, 0 4px 6px -4px #0000001a; }
.site-services-page .site-service-card h3 { line-height: 28px; }
.catalog-pdf-container, .site-about-page .catalog-container { max-width: 1024px; }
.catalog-pdf-container .catalog-title { margin-bottom: 32px; }
.catalog-pdf { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 15px -3px #0000001a, 0 4px 6px -4px #0000001a; }
.catalog-pdf-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px; border-bottom: 1px solid #e5e7eb; background: #f9fafb; font-size: 14px; }
.catalog-pdf-toolbar .site-button { min-height: 36px; padding: 8px 16px; gap: 8px; font-weight: 500; }
.catalog-pdf iframe { display: block; width: 100%; height: 80vh; min-height: 600px; border: 0; }
.site-about-page { background: #4a4a4a; padding: 112px 0; }
.site-about-page h1 { font-size: 36px; line-height: 40px; color: #fff; margin-bottom: 32px; }
.site-about-copy { color: #d1d5db; font-size: 18px; line-height: 1.625; }
.site-about-copy strong { color: #66b966; }
.site-about-copy > strong:first-child, .site-about-copy p:nth-of-type(3) strong { font-size: 24px; }
.catalog-lightbox { padding: 48px 24px 24px; max-width: min(1100px,95vw); max-height: 95vh; border: 0; border-radius: 12px; }
.catalog-lightbox::backdrop { background: #000b; }
.catalog-lightbox img { display: block; max-height: 80vh; max-width: 100%; object-fit: contain; }
.catalog-lightbox button { position: absolute; top: 6px; right: 12px; border: 0; background: transparent; font-size: 28px; }

/* ==========================================================================
   Shared catalog modules — editorial visual language used across category and
   product detail templates.
   ========================================================================== */
.catalog-category-page,
.catalog-detail-section {
    --catalog-ink: #171d21;
    --catalog-copy: #394147;
    --catalog-line: #dfe5df;
    --catalog-soft: #f5f7f5;
    background: #fff;
}

.catalog-category-page { padding: 80px 0 104px; }
.catalog-detail-section { padding: 80px 0 96px; }
.catalog-detail-container { max-width: 1240px; }

.catalog-module-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    max-width: 820px;
}

.catalog-module-header.is-centered {
    align-items: center;
    margin-inline: auto;
    text-align: center;
}

.catalog-module-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--primary-dark, #3f752c);
    font-size: .78rem;
    font-weight: 750;
    letter-spacing: .105em;
    line-height: 1.4;
    text-transform: uppercase;
}

.catalog-module-eyebrow > span {
    width: 28px;
    height: 2px;
    background: var(--primary, #4f8f3a);
}

.catalog-module-eyebrow.is-on-dark { color: #a9d89a; }
.catalog-module-eyebrow.is-on-dark > span { background: #75b75e; }

.catalog-module-title {
    margin: 0;
    color: var(--catalog-ink);
    font-size: clamp(2rem, 3.4vw, 3rem);
    font-weight: 750;
    letter-spacing: -.045em;
    line-height: 1.1;
    text-wrap: balance;
}

.catalog-module-description {
    max-width: 760px;
    margin: 0;
    color: var(--catalog-copy);
    font-size: 1.02rem;
    line-height: 1.75;
}

/* Category introduction and product count */
.catalog-category-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 48px;
    align-items: end;
    margin-bottom: 48px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--catalog-line);
}

.catalog-category-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 9px;
    width: max-content;
    max-width: 100%;
}

.catalog-category-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 36px;
    padding: 8px 13px;
    border: 1px solid var(--catalog-line);
    border-radius: 3px;
    background: var(--catalog-soft);
    color: #343c41;
    font-size: .78rem;
    font-weight: 650;
}

.catalog-category-meta span::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
}

.catalog-products-list { gap: 28px; margin-bottom: 56px; }
.catalog-feature-card {
    padding: 30px;
    border-color: #e2e7e2;
    border-radius: 5px;
    box-shadow: 0 14px 40px rgb(24 32 25 / 6%);
}
.catalog-visual-frame {
    min-height: 350px;
    border-color: #e6ebe6;
    border-radius: 4px;
    background: linear-gradient(145deg, #f8faf8, #f1f4f1);
}
.catalog-visual-tag,
.catalog-badge-cat { border-radius: 3px; }
.catalog-card-title { font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -.035em; }
.catalog-chip { border-radius: 3px; background: #f6f8f5; }
.catalog-btn-pill { border-radius: 3px; }
.catalog-whatsapp-label { display: none; }

.catalog-card-title,
.catalog-category-page .catalog-module-title {
    text-wrap: wrap;
    overflow-wrap: break-word;
}
.catalog-chip,
.catalog-badge-cat { max-width: 100%; }
.catalog-chip { line-height: 1.5; }
.catalog-chip > span { min-width: 0; overflow-wrap: break-word; }
.catalog-chip i,
.catalog-badge-cat i,
.catalog-btn-pill i,
.catalog-category-meta span::before { flex-shrink: 0; }
.catalog-visual-tag { max-width: calc(100% - 28px); text-align: left; }

/* Shared trust strip */
.catalog-trust-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0 0 88px;
    border-block: 1px solid var(--catalog-line);
}

.catalog-trust-item {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 106px;
    padding: 22px 24px;
    border-right: 1px solid var(--catalog-line);
}

.catalog-trust-item:last-child { border-right: 0; }
.catalog-trust-item > i { color: var(--primary); font-size: 1.25rem; }
.catalog-trust-item > span { display: flex; flex-direction: column; gap: 3px; color: #5b6368; font-size: .76rem; line-height: 1.45; }
.catalog-trust-item strong { color: var(--catalog-ink); font-size: .9rem; font-weight: 720; }

/* Category editorial content */
.catalog-category-content { margin-bottom: 88px; }
.catalog-category-content .catalog-module-header { margin-bottom: 34px; }
.catalog-category-content .catalog-richtext {
    margin: 0;
    padding: 42px 48px;
    border-color: var(--catalog-line);
    border-radius: 4px;
    background: var(--catalog-soft);
    box-shadow: none;

}
.catalog-category-content .catalog-richtext h2,
.catalog-category-content .catalog-richtext h3,
.catalog-category-content .catalog-richtext h4 { break-after: avoid; }
.catalog-category-content .catalog-richtext p,
.catalog-category-content .catalog-richtext ul { break-inside: avoid; }

.catalog-category-content .catalog-richtext > :first-child { margin-top: 0; }
.catalog-category-content .catalog-richtext > :last-child { margin-bottom: 0; }
.catalog-category-content .catalog-richtext p,
.catalog-category-content .catalog-richtext ul,
.catalog-category-content .catalog-richtext ol { margin: 0 0 20px; }
.catalog-category-content .catalog-richtext h2,
.catalog-category-content .catalog-richtext h3,
.catalog-category-content .catalog-richtext h4 { margin-top: 28px; }

/* Product detail hero */
.catalog-product-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
    gap: clamp(42px, 6vw, 76px);
    align-items: start;
    margin-bottom: 72px;
}

.catalog-detail-media { min-width: 0; }
.catalog-detail-main-photo {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 530px;
    padding: 44px;
    overflow: hidden;
    border: 1px solid #e1e7e1;
    border-radius: 5px;
    background: linear-gradient(145deg, #f8faf8, #f0f3f0);
}
.catalog-detail-main-photo::before {
    content: '';
    position: absolute;
    inset: 18px;
    border: 1px solid rgb(79 143 58 / 12%);
    pointer-events: none;
}
.catalog-detail-main-photo img {
    position: relative;
    max-width: 100%;
    max-height: 440px;
    object-fit: contain;
    filter: drop-shadow(0 20px 24px rgb(27 34 27 / 10%));
    transition: transform .35s ease;
}
.catalog-detail-main-photo:hover img { transform: scale(1.025); }
.catalog-detail-main-photo > span {
    position: absolute;
    right: 18px;
    bottom: 18px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 11px;
    border: 1px solid #dce3dc;
    border-radius: 3px;
    background: rgb(255 255 255 / 92%);
    color: #41494e;
    font-size: .72rem;
    font-weight: 650;
}

.catalog-detail-thumbnails {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
}
.catalog-detail-thumbnails a {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1.45;
    padding: 10px;
    border: 1px solid #e1e7e1;
    border-radius: 4px;
    background: #f8faf8;
    transition: border-color .2s, transform .2s;
}
.catalog-detail-thumbnails a:hover { transform: translateY(-2px); border-color: #a9c1a2; }
.catalog-detail-thumbnails img { width: 100%; height: 100%; object-fit: contain; }
.catalog-detail-media-empty { display: grid; min-height: 500px; place-items: center; background: var(--catalog-soft); color: #a7afa8; font-size: 3rem; }

.catalog-product-summary { display: flex; flex-direction: column; align-items: flex-start; padding-top: 8px; }
.catalog-detail-category {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 22px;
    color: var(--primary-dark);
    font-size: .79rem;
    font-weight: 700;
}
.catalog-detail-category:hover { color: var(--primary); }
.catalog-detail-title {
    margin: 14px 0 18px;
    color: var(--catalog-ink);
    font-size: clamp(2.35rem, 4.3vw, 4rem);
    font-weight: 760;
    letter-spacing: -.052em;
    line-height: 1.02;
    text-wrap: balance;
}
.catalog-detail-lead {
    margin: 0 0 26px;
    color: var(--catalog-copy);
    font-size: 1.02rem;
    line-height: 1.72;
}

.catalog-detail-features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    border-top: 1px solid var(--catalog-line);
    border-left: 1px solid var(--catalog-line);
}
.catalog-detail-feature {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 68px;
    padding: 12px 14px;
    border-right: 1px solid var(--catalog-line);
    border-bottom: 1px solid var(--catalog-line);
    color: #30383d;
    font-size: .78rem;
    font-weight: 660;
    line-height: 1.35;
}
.catalog-detail-feature i { width: 20px; color: var(--primary); text-align: center; font-size: .92rem; }
.catalog-detail-feature:last-child:nth-child(odd) { grid-column: 1 / -1; }
.catalog-detail-feature span { min-width: 0; overflow-wrap: anywhere; }

.catalog-detail-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.catalog-detail-primary,
.catalog-detail-phone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    padding: 12px 20px;
    border: 1px solid #1c2428;
    border-radius: 3px;
    font-size: .86rem;
    font-weight: 700;
    transition: transform .2s, background .2s, border-color .2s, color .2s;
}
.catalog-detail-primary { background: #1c2428; color: #fff; }
.catalog-detail-phone { background: #fff; color: #1c2428; }
.catalog-detail-primary:hover,
.catalog-detail-phone:hover { transform: translateY(-2px); border-color: var(--primary-dark); background: var(--primary-dark); color: #fff; }
.catalog-detail-assurance {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--catalog-line);
    color: #667068;
    font-size: .77rem;
    line-height: 1.5;
}
.catalog-detail-assurance i { margin-top: 3px; color: var(--primary); }
.catalog-detail-assurance span { display: flex; flex-direction: column; }
.catalog-detail-assurance strong { color: #30383d; font-size: .82rem; }

/* Detail content and technical drawings */
.catalog-detail-module { margin: 0 0 88px; }
.catalog-detail-module .catalog-module-header { margin-bottom: 34px; }
.catalog-detail-content {
    margin: 0;
    padding: 38px 42px;
    border: 1px solid var(--catalog-line);
    border-radius: 4px;
    background: var(--catalog-soft);
    color: var(--catalog-copy);
    line-height: 1.75;
}
.catalog-detail-content > :first-child { margin-top: 0; }
.catalog-detail-content > :last-child { margin-bottom: 0; }
.catalog-detail-module.catalog-measurements { padding: 0; border: 0; }
.catalog-detail-module .catalog-measurement-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.catalog-detail-module .catalog-measurement-grid a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 360px;
    padding: 28px;
    border: 1px solid var(--catalog-line);
    border-radius: 4px;
    background: #f8faf8;
}
.catalog-detail-module .catalog-measurement-grid img { max-height: 520px; border: 0; border-radius: 0; }
.catalog-detail-module .catalog-measurement-grid a:only-child { grid-column: 1 / -1; }
.catalog-detail-module .catalog-measurement-grid a:only-child img { max-height: 700px; }

/* Shared dark contact module */
.catalog-contact-cta {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 48px;
    align-items: center;
    margin: 0 0 34px;
    padding: 48px 52px;
    overflow: hidden;
    border-radius: 5px;
    background: #182023;
    color: #fff;
}
.catalog-contact-cta::after {
    content: '';
    position: absolute;
    right: -90px;
    bottom: -140px;
    width: 320px;
    height: 320px;
    border: 1px solid rgb(117 183 94 / 22%);
    border-radius: 50%;
}
.catalog-contact-cta-copy { position: relative; z-index: 1; max-width: 720px; }
.catalog-contact-cta h2 {
    margin: 14px 0 12px;
    color: #fff;
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    font-weight: 720;
    letter-spacing: -.04em;
    line-height: 1.12;
}
.catalog-contact-cta p { margin: 0; color: #cbd3d0; font-size: .96rem; line-height: 1.7; }
.catalog-contact-cta-actions { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 10px; min-width: 205px; }
.catalog-cta-primary,
.catalog-cta-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 46px;
    padding: 11px 18px;
    border: 1px solid #75b75e;
    border-radius: 3px;
    font-size: .84rem;
    font-weight: 700;
    transition: transform .2s, background .2s, color .2s;
}
.catalog-cta-primary { background: #75b75e; color: #132016; }
.catalog-cta-secondary { color: #fff; }
.catalog-back { display: inline-flex; align-items: center; gap: 8px; margin-top: 0; font-size: .84rem; font-weight: 650; }

/* Responsive Rules */
@media (max-width: 991px) {
    .catalog-category-intro,
    .catalog-product-hero,
    .catalog-contact-cta { grid-template-columns: minmax(0, 1fr); }
    .catalog-category-meta { justify-content: flex-start; width: auto; }
    .catalog-product-hero { gap: 38px; }
    .catalog-detail-main-photo { min-height: 440px; }
    .catalog-trust-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .catalog-trust-item:nth-child(2) { border-right: 0; }
    .catalog-trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--catalog-line); }
    .catalog-contact-cta-actions { flex-direction: row; min-width: 0; }
    .catalog-feature-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }
    .catalog-card-visual,
    .catalog-feature-card.is-reversed .catalog-card-visual {
        order: 1 !important;
    }
    .catalog-card-info,
    .catalog-feature-card.is-reversed .catalog-card-info {
        order: 2 !important;
    }
    .catalog-feature-card {
        padding: 24px;
        border-radius: 18px;
    }
    .catalog-visual-frame {
        min-height: 260px;
        padding: 24px;
    }
    .catalog-visual-img {
        max-height: 220px;
    }
    .catalog-cta-card {
        padding: 28px;
        gap: 20px;
    }
}

@media (max-width: 767px) {
    .catalog-container { width: calc(100% - 32px); }
    .catalog-section, .site-about-page { padding: 60px 0; }
    .catalog-title { font-size: 28px; line-height: 34px; margin-bottom: 40px; }
    .catalog-title::before, .catalog-title::after { max-width: 60px; }
    .catalog-toolbar {
        flex-direction: column;
        align-items: flex-start;
        padding: 14px 16px;
        gap: 12px;
    }
    .catalog-toolbar-right {
        width: 100%;
        justify-content: space-between;
    }
    .catalog-card-title {
        font-size: 21px;
    }
    .catalog-card-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .catalog-btn-pill {
        width: 100%;
    }
    .catalog-btn-pill--wa {
        width: 100%;
        height: 42px;
        border-radius: 9999px;
    }
    .catalog-cta-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }
    .catalog-cta-btn {
        width: 100%;
    }
    .catalog-category-grid, .catalog-family-grid, .catalog-detail-grid, .catalog-measurement-grid { grid-template-columns: minmax(0,1fr); }
    .catalog-gallery { grid-template-columns: repeat(2,minmax(0,1fr)); padding: 24px; }
    .catalog-richtext { padding: 24px; border-radius: 16px; }
    .catalog-detail-section { padding: 48px 0; min-height: calc(100vh - 64px); }
    .catalog-detail-grid h1,
    .catalog-detail-title { font-size: 24px; line-height: 32px; }
    .catalog-detail-title.is-long { font-size: 20px; line-height: 26px; }
    .catalog-detail-title.is-very-long { font-size: 17px; line-height: 24px; }
    .catalog-families { padding-bottom: 80px; }
    .site-services-page > .site-services { padding-top: 80px; }
    .site-services-page .site-section-title, .site-about-page h1 { font-size: 30px; line-height: 36px; }
    .catalog-category-page,
    .catalog-detail-section { padding: 56px 0 72px; }
    .catalog-category-intro { gap: 28px; margin-bottom: 32px; padding-bottom: 30px; }
    .catalog-category-meta { gap: 7px; }
    .catalog-category-meta span { min-height: 32px; padding: 6px 9px; font-size: .7rem; }
    .catalog-feature-card { padding: 16px; border-radius: 4px; }
    .catalog-btn-pill--wa { border-radius: 3px; font-size: .875rem; }
    .catalog-whatsapp-label { display: inline; }
    .catalog-visual-frame { min-height: 260px; }
    .catalog-trust-strip { grid-template-columns: minmax(0, 1fr); margin-bottom: 64px; }
    .catalog-trust-item { min-height: 88px; padding: 18px 12px; border-right: 0; border-bottom: 1px solid var(--catalog-line); }
    .catalog-trust-item:nth-child(3) { border-bottom: 1px solid var(--catalog-line); }
    .catalog-trust-item:last-child { border-bottom: 0; }
    .catalog-category-content { margin-bottom: 64px; }
    .catalog-category-content .catalog-richtext { padding: 26px 22px; columns: auto; }
    .catalog-product-hero { margin-bottom: 52px; }
    .catalog-detail-main-photo { min-height: 340px; padding: 28px; }
    .catalog-detail-main-photo::before { inset: 10px; }
    .catalog-detail-main-photo img { max-height: 290px; }
    .catalog-detail-main-photo > span { right: 10px; bottom: 10px; }
    .catalog-detail-title { font-size: clamp(2.1rem, 12vw, 3rem); }
    .catalog-detail-features { grid-template-columns: minmax(0, 1fr); }
    .catalog-detail-actions { width: 100%; flex-direction: column; }
    .catalog-detail-primary,
    .catalog-detail-phone { width: 100%; }
    .catalog-detail-module { margin-bottom: 64px; }
    .catalog-detail-content { padding: 26px 22px; }
    .catalog-detail-module .catalog-measurement-grid { grid-template-columns: minmax(0, 1fr); }
    .catalog-detail-module .catalog-measurement-grid a { min-height: 260px; padding: 18px; }
    .catalog-contact-cta { gap: 28px; padding: 34px 24px; }
    .catalog-contact-cta-actions { width: 100%; flex-direction: column; }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .catalog-gallery { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
