/* Shared product navigation and product page components. */

.catalog-search {
    max-width: 900px;
    margin-inline: auto;
    padding: 1rem 1.25rem;
    border: 1px solid var(--border-color);
    border-radius: 0.9rem;
    background: #fff;
}

.catalog-quote-hint {
    padding: 1rem 1.25rem;
    border-left: 4px solid var(--primary);
    border-radius: 0.5rem;
    background: #fff;
    color: var(--text-muted);
}

.catalog-item[hidden] {
    display: none !important;
}

.product-breadcrumbs {
    padding-top: 0.7rem;
    padding-bottom: 0.35rem;
    font-size: 0.875rem;
}

.product-breadcrumbs .breadcrumb {
    --bs-breadcrumb-divider: '›';
}

.product-breadcrumbs .breadcrumb-item a {
    color: var(--text-muted);
    text-decoration: none;
}

.product-breadcrumbs .breadcrumb-item a:hover,
.product-breadcrumbs .breadcrumb-item a:focus-visible {
    color: var(--primary);
    text-decoration: underline;
}

/* Family navigation shares the page palette while staying legible over decorative backgrounds. */
.sidebar-wrapper {
    position: relative;
    flex: 0 0 240px;
    width: 240px;
    max-width: 240px;
    min-height: calc(100vh - var(--navbar-height));
    background: var(--bg-light);
    border-right: 1px solid var(--border-color);
}

.sidebar {
    position: sticky;
    top: calc(var(--navbar-height) + 1rem);
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    max-height: calc(100vh - var(--navbar-height) - 2rem);
    overflow-y: auto;
    padding: 1.35rem 0.8rem;
}

.sidebar-brand {
    display: block;
    margin: 0 0 0.55rem;
    padding: 0 0.85rem 0.8rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--primary);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
}

.sidebar-brand > i {
    display: none;
}

.sidebar-link,
.sidebar-section-toggle {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.65rem;
    width: 100%;
    margin: 0;
    padding: 0.65rem 0.8rem;
    min-height: 44px;
    border: 0;
    border-radius: 0.35rem;
    border-left: 2px solid transparent;
    background: transparent;
    color: var(--primary);
    font-size: 0.94rem;
    font-weight: 500;
    line-height: 1.35;
    text-decoration: none;
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

.sidebar-link > i,
.sidebar-section-toggle > i {
    display: none;
}

.sidebar-link:hover,
.sidebar-section-toggle:hover,
.sidebar-section-toggle.active-section {
    background: rgba(18, 54, 75, 0.07);
    color: var(--primary);
}

.sidebar-link.active,
.sidebar-subitems li a.active {
    border-left-color: var(--accent-blue);
    background: #fff;
    color: var(--primary);
    font-weight: 700;
    box-shadow: 0 1px 3px rgba(18, 54, 75, 0.08);
}

.sidebar-subitems {
    margin: 0 0 0.4rem;
    padding: 0.15rem 0 0.15rem 0.65rem;
    list-style: none;
}

.sidebar-subitems li a {
    display: block;
    padding: 0.5rem 0.7rem;
    border-radius: 0.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-decoration: none;
}

.sidebar-subitems li a:hover {
    background: var(--accent-bg);
    color: var(--primary);
}

.sidebar-divider {
    display: none;
}

.sidebar-cta {
    display: none;
}

.sidebar-cta .btn-success {
    border: 1px solid var(--primary-light);
    background: #fff;
    color: var(--primary-light);
}

.sidebar-cta .btn-success:hover,
.sidebar-cta .btn-success:focus-visible {
    border-color: var(--primary-dark);
    background: var(--accent-bg);
    color: var(--primary-dark);
}

.sidebar-cta .btn-success i {
    color: #72d6a8;
}

.content-col {
    flex: 1 1 0;
    min-width: 0;
    background: transparent;
}

/* Remove the old wallpaper treatment from product pages. */
body.product-page {
    background-color: var(--bg-light) !important;
    background-image: none !important;
    background-attachment: scroll !important;
}

body.product-page::before {
    display: none !important;
}

/* Clean product headers; white-background catalog photos blend into the page. */
.content-col .hero {
    position: relative;
    z-index: 1;
    padding: clamp(2rem, 4vw, 3.25rem) 1rem;
    border-bottom: 1px solid var(--border-color);
    background: #fff;
    background-image: none !important;
    color: var(--text-dark);
}

.content-col .hero::before,
.content-col .hero::after {
    display: none !important;
}

.content-col .hero h1 {
    max-width: 900px;
    margin: 0 auto 0.55rem;
    color: var(--primary);
    font-size: clamp(1.9rem, 3.4vw, 2.65rem);
    font-weight: 650;
    letter-spacing: -0.035em;
    line-height: 1.14;
}

.content-col .hero p {
    max-width: 760px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: clamp(0.95rem, 1.4vw, 1.08rem);
    line-height: 1.6;
}

.content-col .hero.exhibitor-hero {
    padding: clamp(2.2rem, 5vw, 3.6rem) 1rem;
    border-bottom: 1px solid var(--border-color);
    background: #fff;
    text-align: left;
}

.content-col .hero.exhibitor-hero .container {
    max-width: 840px;
}

.content-col .hero.exhibitor-hero .eyebrow {
    margin-bottom: .7rem;
    color: var(--accent-blue);
}

.content-col .hero.exhibitor-hero h1 {
    margin-inline: 0;
}

.content-col .hero.exhibitor-hero p:not(.eyebrow) {
    margin-inline: 0;
}

/* Product family pages pair the existing copy with a real product image. */
.content-col .hero .product-hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(250px, 380px);
    align-items: center;
    gap: clamp(1.5rem, 4vw, 3.5rem);
    max-width: 1120px;
    text-align: left;
}

.content-col .hero .product-hero-copy h1 {
    margin: 0 0 0.7rem;
    color: var(--primary);
}

.content-col .hero .product-hero-copy p {
    margin: 0;
}

.content-col .product-hero-photo {
    display: block;
    width: 100%;
    height: clamp(175px, 22vw, 245px);
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    object-fit: contain;
    box-shadow: none;
    mix-blend-mode: normal;
}

/* WELTKIT uses an opaque white catalog photo, so the full hero shares its white canvas. */
.weltkit-hero {
    padding: clamp(2.4rem, 5vw, 4rem) 0;
    border-bottom: 1px solid var(--border-color);
    background: #fff;
}

.weltkit-hero h1 {
    margin: 0 0 0.55rem;
    color: var(--primary);
    font-size: clamp(1.9rem, 3.4vw, 2.65rem);
    font-weight: 650;
    letter-spacing: -0.035em;
    line-height: 1.14;
}

.weltkit-hero p {
    max-width: 760px;
    margin: 0 auto;
    color: var(--text-muted);
}

.weltkit-brand {
    display: block;
    width: min(160px, 40vw);
    margin: 0 auto 1rem;
}

.weltkit-brand img {
    display: block;
    width: 100%;
    height: auto;
}

.weltkit-hero-photo {
    display: block;
    width: min(100%, 800px);
    height: auto;
    margin: 1.25rem auto 0;
    object-fit: contain;
}

/* Temporary illustrations are intentionally easy to swap for final photos. */
.product-placeholder {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 220px;
    margin: 0;
    padding: 0.8rem;
    overflow: hidden;
    border: 1px solid #dbe8ed;
    border-radius: 0.8rem;
    background: #f4f7f8;
}

.product-placeholder::before,
.product-placeholder::after {
    position: absolute;
    z-index: 0;
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.product-placeholder::before {
    top: -3.5rem;
    right: -2rem;
    width: 9rem;
    height: 9rem;
    background: rgba(79, 130, 153, 0.09);
}

.product-placeholder::after {
    bottom: -4rem;
    left: -2.5rem;
    width: 10rem;
    height: 10rem;
    background: rgba(18, 54, 75, 0.06);
}

.product-placeholder img {
    position: relative;
    z-index: 1;
    display: block;
    width: min(100%, 330px);
    height: 170px;
    object-fit: contain;
}

.product-placeholder figcaption {
    position: relative;
    z-index: 1;
    margin-top: 0.15rem;
    color: #536875;
    font-size: 0.75rem;
    letter-spacing: 0.015em;
}

.product-icon-accent,
.product-shipping-icon {
    color: var(--accent-blue) !important;
}

.product-media-card {
    min-height: 220px;
}

.product-detail-image {
    width: 100%;
    max-height: 280px;
    object-fit: contain;
}

.product-category-thumbnail {
    max-height: 80px;
    width: auto;
    object-fit: contain;
}

.product-shipping-icon {
    font-size: 3rem;
}

.product-inline-divider {
    border-top: 1px solid var(--border-color);
}

.content-col .hero .product-hero-placeholder {
    display: block;
    width: 116px;
    height: 100px;
    margin: 0 auto 1rem;
    border-radius: 0;
    object-fit: contain;
    background: transparent;
}

.content-col .hero .product-hero-art {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto 1rem;
}

.content-col .hero .product-hero-art img {
    display: block;
    width: 116px;
    height: 100px;
    border-radius: 0;
    object-fit: contain;
    background: transparent;
}

.content-col .hero .product-hero-art span {
    margin-top: 0.45rem;
    color: var(--text-muted);
    font-size: 0.68rem;
}

/* Keep catalog images readable when their original proportions differ. */
.product-image {
    height: 220px;
    background: #fff;
    object-fit: contain !important;
}

.category-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 15px;
    border-radius: 20px;
    background: var(--primary);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 500;
}

.content-col .info-card {
    position: relative;
    z-index: 1;
    margin-bottom: 1.25rem;
    padding: clamp(1.2rem, 2vw, 1.75rem);
    border: 1px solid var(--border-color);
    border-radius: 0.65rem;
    background: #fff;
    box-shadow: 0 4px 16px rgba(16, 47, 67, 0.035);
}

/* Family landing cards use the same left-aligned rhythm whether a real photo exists or not. */
.family-grid-five {
    --bs-gutter-x: 1.25rem;
    row-gap: 0.25rem;
}

.family-grid-five > [class*="col-"] {
    display: flex;
}

.family-grid-five .info-card {
    display: flex;
    width: 100%;
    min-height: 15rem;
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 0;
    padding: 1.35rem;
    border-top: 3px solid var(--accent-blue);
    text-align: left !important;
}

.family-grid-five .info-card > i {
    display: none;
}

.family-grid-five .info-card h2 {
    margin: 0 0 0.65rem;
    font-size: 1.12rem;
}

.family-grid-five .info-card p {
    color: var(--text-muted);
    line-height: 1.55;
}

.family-grid-five .info-card .card-link {
    align-self: flex-start;
    margin-top: auto;
    padding-top: 0.7rem;
    color: var(--accent-blue);
    font-size: 0.92rem;
    font-weight: 650;
}

.family-grid-five .info-card .card-link:hover,
.family-grid-five .info-card .card-link:focus-visible {
    color: var(--primary-dark);
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.family-grid-five .product-category-image {
    height: 9rem;
    aspect-ratio: auto;
    margin: -0.15rem 0 1rem;
    background: transparent;
}

.pending-product-photo { margin: 0 0 1rem; overflow: hidden; border: 1px solid var(--border-color); border-radius: var(--radius-sm); background: #f4f8fa; }
.pending-product-photo img { display: block; width: 100%; height: 9rem; margin: 0 !important; object-fit: contain; }
.pending-product-photo figcaption { padding: .35rem .6rem; background: #e9f1f4; color: var(--text-muted); font-size: .75rem; font-weight: 600; text-align: center; }
.pending-product-photo-detail { width: min(100%, 320px); margin: 0 auto 1.25rem; }
.pending-product-photo-detail img { height: 11rem; }
.product-visual-frame { margin: 0 0 1rem; overflow: hidden; border: 1px solid var(--border-color); border-radius: var(--radius-sm); background: #f4f8fa; }
.product-visual-frame img { display: block; width: 100%; height: 9rem; margin: 0 !important; object-fit: contain; }
.product-visual-frame-detail { width: min(100%, 320px); margin: 0 auto 1.25rem; }
.product-visual-frame-detail img { height: 11rem; }
.product-visual-frame-banner { width: min(100%, 640px); margin: 0 auto 1.25rem; }
.product-visual-frame-banner img { height: auto; }

.content-col .info-card h2,
.content-col .info-card h3,
.content-col .info-card h4 {
    margin-bottom: 0.85rem;
    color: var(--primary);
    font-size: clamp(1.05rem, 1.4vw, 1.2rem);
    font-weight: 650;
    letter-spacing: -0.015em;
    line-height: 1.35;
}

.content-col .info-card p:last-child,
.content-col .info-card ul:last-child {
    margin-bottom: 0;
}

.product-page .accordion {
    width: 100%;
}

.product-page .accordion-item {
    margin-bottom: 0.5rem;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 0.65rem;
}

.product-page .accordion-button {
    font-size: 1rem;
    font-weight: 500;
}

.product-page .accordion-body {
    font-size: 0.95rem;
}

.content-col .step-circle {
    display: flex;
    flex: 0 0 2.35rem;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 50%;
    background: var(--accent-bg);
    color: var(--primary);
    font-size: 0.95rem;
    font-weight: 700;
}

.content-col .cta-section {
    padding: clamp(1.5rem, 3vw, 2.25rem);
    border: 0;
    border-radius: 0.8rem;
    background: var(--primary);
    color: #fff;
}

.content-col .cta-section h2,
.content-col .cta-section h3 {
    color: #fff;
}

.content-col .cta-section .btn-success {
    border-color: #fff;
    background: #fff;
    color: var(--primary);
}

.content-col .cta-section .btn-success:hover,
.content-col .cta-section .btn-success:focus-visible {
    border-color: #d9e3e7;
    background: #e9f1f4;
    color: var(--primary-dark);
}

.content-col .table {
    --bs-table-striped-bg: #f5f8fa;
    margin-bottom: 0;
}

@media (max-width: 991.98px) {
    .sidebar-wrapper {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
        min-height: 0;
        border-right: 0;
        border-bottom: 1px solid var(--border-color);
        background: var(--bg-light);
    }

    .content-col .hero .product-hero-layout {
        grid-template-columns: minmax(0, 1fr) minmax(210px, 300px);
        gap: 1.5rem;
    }

    .sidebar {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.2rem 0.35rem;
        max-height: none;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0.7rem 1rem 0.6rem;
        scrollbar-width: thin;
        white-space: nowrap;
    }

    .sidebar-brand {
        flex: 0 0 100%;
        margin: 0 0 0.15rem;
        padding: 0 0.1rem 0.55rem;
        font-size: 0.94rem;
    }

    .sidebar-link,
    .sidebar-section-toggle {
        flex: 0 0 auto;
        width: auto;
        min-height: 44px;
        padding: 0.55rem 0.7rem;
        border: 0;
        border-bottom: 2px solid transparent;
        border-radius: 0;
        background: transparent;
        color: var(--primary);
        font-size: 0.9rem;
        font-weight: 500;
    }

    .sidebar-wrapper.has-more-right::after,
    .sidebar-wrapper.has-more-left::before {
        position: absolute;
        z-index: 2;
        top: 50%;
        display: grid;
        width: 2.25rem;
        height: 2.7rem;
        place-items: center;
        transform: translateY(-50%);
        color: var(--primary);
        font-size: 1.5rem;
        font-weight: 700;
        pointer-events: none;
    }

    .sidebar-wrapper.has-more-right::after {
        right: 0;
        background: linear-gradient(90deg, transparent, var(--bg-light) 45%);
        content: "›";
    }

    .sidebar-wrapper.has-more-left::before {
        left: 0;
        background: linear-gradient(270deg, transparent, var(--bg-light) 45%);
        content: "‹";
    }

    .sidebar-link.active,
    .sidebar-subitems li a.active {
        border-bottom-color: var(--accent-blue);
        background: #fff;
        color: var(--primary);
    }

    .sidebar-divider,
    .sidebar-cta {
        display: none;
    }

    .content-col {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (max-width: 575.98px) {
    .content-col .hero {
        padding: 2rem 1rem;
    }

    .content-col .hero .product-hero-layout {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .content-col .hero .product-hero-copy h1,
    .content-col .hero .product-hero-copy p {
        text-align: center;
    }

    .content-col .product-hero-photo {
        width: min(100%, 340px);
        height: 175px;
        margin-inline: auto;
    }

    .content-col .info-card {
        border-radius: 0.85rem;
    }
}

@media (max-width: 767.98px) {
    .family-grid-five .info-card {
        min-height: 0;
    }
}

.selection-guide {
    padding: 1rem 1.25rem;
}

.selection-guide summary {
    color: var(--primary);
    cursor: pointer;
    font-weight: 650;
    line-height: 1.4;
}

.selection-guide summary:focus-visible {
    border-radius: 0.2rem;
    outline: 2px solid var(--accent-blue);
    outline-offset: 3px;
}

.selection-guide-content {
    padding-top: 0.85rem;
}

.selection-guide-content li + li {
    margin-top: 0.35rem;
}


.product-category-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    margin: 0 0 1rem;
    border: 0;
    border-radius: 0;
    background: #fff;
    object-fit: contain;
}

.product-photo {
    min-height: 250px;
    padding: 0;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    background: #fff;
    box-shadow: none;
}

.product-photo::before,
.product-photo::after {
    display: none;
}

.product-photo-pair {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.product-photo-pair img {
    width: calc(50% - 0.25rem);
    height: 165px;
}

.product-photo:not(.product-photo-pair) img {
    width: min(100%, 380px);
    height: clamp(220px, 25vw, 300px);
    object-fit: contain;
}

.product-photo-pair figcaption {
    flex-basis: 100%;
    text-align: center;
}

.product-hero-photo-art img {
    width: min(100%, 300px);
    height: 180px;
    object-fit: contain;
}

.content-col .hero .product-hero-art.product-hero-photo-art img {
    width: min(100%, 300px);
    height: 180px;
    background: transparent;
    mix-blend-mode: normal;
}

.content-col .hero .product-hero-mvq-photo {
    object-fit: cover;
    object-position: center 53%;
}

@media (min-width: 768px) {
    #norma-exhibidores {
        margin-left: 33.333333%;
    }

    .family-grid-center {
        justify-content: center;
    }

    .family-grid-five { justify-content: center; }
}
