.listing-logo {
    height: 40px;
    margin-bottom: 60px;
}
a:has(.listing-logo) {
    display: block;
    width: fit-content;
}

.title-underline::after {
    background-color: var(--category-color);
}

.category-subtitle {
    display: block;
    font-weight: 600;
    font-size: 2.4rem;
    margin-bottom: 40px;
}

.inline-navigation {
    margin-bottom: 20px;
}
.inline-navigation > ul {
    display:flex;
    flex-wrap: wrap;
    row-gap: 4px;
}
.inline-navigation > ul > li > a {
    font-size: 3rem;
    font-weight: 500;
    color: var(--category-color);
}
.inline-navigation > ul > li {
    border-right: 1px solid grey;
    padding: 2px 10px;
}
.inline-navigation > ul > li:last-child {
    border-color: transparent
}

.products-banner {
    transition: 500ms ease-in-out;
    margin-bottom: 20px;
}
.products-banner:hover {
    transform:scale(101%);
}

.flex-side-by-side {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start;
}

.text-container {
    flex-basis: 400px;
    flex-grow: 1;
    padding-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;

}
.applications-container {
    flex-basis: 400px;
    flex-grow: 1;
    box-shadow: 0px 0px 2px rgb(0, 0, 0, 0.5);
    border-radius: 20px;
    padding: 24px;
    border: 2px solid rgb(255, 255, 255, 0);
    transition: 100ms ease-in-out;
}

.applications-container:hover {
    border-color: grey;
    background-color: #FAFAFA;
}

.title-small {
    font-size: 3rem;
    line-height: calc(3rem * 1.3);
    margin-bottom: 10px;
}
.applications-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.applications-list strong {
    font-weight: 600;
    font-size: 2rem;
    line-height: calc(2rem * 1.3);
}

.category-list-feature {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    column-gap: 40px;
    margin-bottom: 60px;
    
}
.category-list-feature:last-child {
    margin-bottom: 0;
}
.category-list-feature > figcaption {
    flex-basis: 500px;
    flex-grow: 1;
}
.category-list-feature>figcaption > p {
    margin-bottom: 20px;
}
.category-list-feature>figcaption > p:last-child {
    margin-bottom: 0;
}
.category-list-feature>figcaption > p > strong {
    display: block;
    font-weight: 600;
}
.category-list-feature > img {
    width: 260px;
    border-radius: 4px;
    transition: 500ms ease-in-out;
}
.category-list-feature > img:hover {
    transform: scale(102%);
}

.feature-title {
    display: block;
    font-weight: 500;
    font-size: 1.6rem;
    line-height: calc(1.6rem * 1.5);
}

.product-listing {
    box-shadow: 0px 0px 2px rgb(0, 0, 0, 0.5);
    border-radius: 20px;
    padding: 24px;
    border: 2px solid rgb(255, 255, 255, 0);
    transition: 100ms ease-in-out;
    margin: 40px 0px;
}
.product-listing:hover > .product-body > img {
    transform: scale(102%);
}

.product-body {
    display: grid;
    grid-template-columns: 3fr 5fr;
    gap: 10px;
    align-items: center;
}

.product-body > img {
    transition: 500ms ease-in-out;
    justify-self: center;
    max-height: 400px;
    filter: drop-shadow(0px 0px 2px rgb(0 0 0 / 0.2));
}

.product-listing:hover {
    border-color: grey;
    background-color: #FAFAFA;
}

.product-title {
    color: var(--category-color);
    font-size: 4.0rem;
    line-height: calc(4.0rem * 1.4);
    font-weight: 800;
    margin: 0;
}

.product-sub-title {
    font-size: 2.0rem;
    line-height: calc(2.0rem * 1.4);
    font-weight: 700;
    margin: 0;
    display: block;
    margin-bottom: 20px;
}

.product-description {
    margin-bottom: 10px;
}

.product-specs {
    margin-bottom: 20px;
    font-size: 1.6rem;
    line-height: calc(1.6rem * 1.3);
    width: 100%;
    
}

.product-specs th {

    text-align: left;
    flex-grow: 1;
    font-weight: 600;
    padding-left: 4px;
}

.product-specs tr {
    display: grid;
    grid-template-columns: 1fr 2fr;
    
    margin: 10px 0px;
    column-gap: 12px;
    align-items: center;
    position: relative;
}

.product-specs tr::after {
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, rgb(from var(--category-color) r g b), rgb(from var(--category-color) r g b / 0) 100%);
    content: "";
    display: block;
    border-radius: 4px;
    position: absolute;
    bottom: -5px;
}

.product-text > figure {
    margin-bottom: 32px;
}

.product-text > figure > img {
    border-radius: 4px;
    max-height: 300px;
}

.product-text > figure > figcaption {
    font-size: 2.4rem;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--category-color);
    margin-bottom: 4px;
    margin-left: 20px;
}

.product-form-button, .download-button {
    display: block;
    background-color: #FFFFFF;
    width: fit-content;
    border-radius: 2px;
    font-size: 1.8rem;
    font-weight: 600;
    padding: 6px 0px;
    transition: 100ms ease-in-out;
    border: 1px solid var(--category-color);
    box-shadow: 0px 0px 2px rgb(from var(--category-color) r g b / 0.5);
    text-transform: uppercase;
    width: 200px;
    text-align: center;
    margin-top: 16px;
    cursor: pointer;
}

.product-form-button-large {
    font-size: 2rem;
    width: 220px;
    margin-top: 30px;
}

.download-button>img {
    height: 18px;
    display: inline;
    vertical-align: text-bottom;
    margin-left: 2px;
    margin-right: 4px;
}

:is(.product-form-button, .download-button):hover, :is(.product-form-button, .download-button):focus {
    background-color: #EEEEEE;
}

.justify-center {
    justify-self: center;
}


@media only screen and (max-width: 950px) {
    .listing-logo {
        height: 30px;
        margin-bottom: 40px;
    }
    .inline-navigation>ul>li>a {
        font-size: 2.6rem;
    }

    .category-subtitle {
        text-align: center;
        font-size: 2rem;
    }

    .title-small {
        font-size: 2.8rem;
        line-height: calc(2.8rem * 1.3);
        margin-bottom: 10px;
    }
    .applications-list {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    .applications-list strong {
        font-weight: 600;
        font-size: 1.8rem;
        line-height: calc(1.8rem * 1.3);
    }

    .category-list-feature {
        flex-direction: column;
    }
    .category-list-feature > figcaption {
        flex-basis: unset;
        text-align: center;
    }

    .feature-title {
        font-size: 1.4rem;
        line-height: calc(1.4rem * 1.5);
    }

    .product-title,
    .installation-title {
        font-size: 3rem;
        line-height: calc(3rem * 1.4);
        text-align: center;
    }

    .product-sub-title,
    .installation-sub-title {
        font-size: 1.8rem;
        line-height: calc(1.8rem * 1.4);
        text-align: center;
    }

    .product-body {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .product-body > img {
        max-height: 280px;
    }

    .product-text {
        width: 100%;
    }

    .product-description {
        font-size: 1.4rem;
        line-height: calc(1.4rem * 1.5);
    }

    .product-specs {
        font-size: 1.2rem;
        line-height: calc(1.2rem * 1.3);
        display: block;
        margin-top: 20px;
    }

    .product-specs tr {
        align-items: center;
        grid-template-columns: 1fr 1fr;
    }

    .product-specs tr:after {
        background: linear-gradient(to right, rgb(from var(--category-color) r g b / 0) 0%, rgb(from var(--category-color) r g b) 50%, rgb(from var(--category-color) r g b / 0) 100%);

    }

    .product-specs :is(th, td) {
        text-align: center;
    }

    .product-text > figure {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .product-text > figure > figcaption {
        font-size: 2rem;
        text-align: center;
    }

    .download-button {
        font-size: 1.6rem;
        justify-self: center;
        width: 160px;
    }

    .product-form-button {
        justify-self: center;
        font-size: 1.6rem;
        width: 160px;
    }

    .product-form-button-large {
        font-size: 1.8rem;
        width: 200px;
    }

    .installation-figure>figcaption {
        text-align: center;
    }

    .installation-figure>img {
        width: 100%;
        max-height: 300px;
    }
}