﻿.section-title {
    position: relative;
    overflow: hidden;
    background-color: var(--clr-blue);
    color: #fff;
    @media (width >= 992px) {
        padding-top: 126px;
    }
}

.category-custom-banner {
    height: initial !important;
}

.category-desc {
    font-family: 'Open Sans', sans-serif;    
    color: #163764;
}

.category-items-title {
    font-family: 'Oswald', sans-serif;
    font-size: 25px;
    color: #303030;
    text-transform: uppercase;
    margin-bottom: .75em;
}

.product-title-row {
    background-color: rgba(56, 75, 84, .6);
    color: white;
    text-shadow: 0 0 5px #000;
}

.product-col {
    font-family: 'Oswald', sans-serif;
}

.breadcrumb-row {
    background-color: #52748d;
}

.breadcrumb-col {
    font-size: 0.75rem;
}

.breadcrumb-text {
    color: white;
}

.product-detail-row {
    margin: 0 10rem;
}

.category-products-ul {
    display: grid;
    grid-template-columns: 1fr;
    flex-wrap: wrap;
    padding: 0;
    gap: 1rem;
    @media (width >= 390px) {
        grid-template-columns: repeat(2, 1fr);
    }
    @media (width >= 576px) {
        grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    }
    @media (width >= 1400px) {
        grid-template-columns: repeat(5, 1fr);
    }
}

.product-li {
    width: initial !important;
    border: 2px solid #ccc;
    border-radius: .5rem;
    list-style: none;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.product-image-cont {
    position: relative;
    overflow: hidden;
    background: transparent;
    margin: 0;
    display: block;
    aspect-ratio: 4/3;
    padding: 1rem;

    > img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
}

.product-info-content {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    padding: 1rem;
    background-color: #f3f5f6;
    flex-grow: 1;
    @media (width >= 390px) {
        padding: 1.25rem;
    }
}

.product-name {
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: -0.02em;
    @media (width >= 576px) {
        font-size: 1.125rem;
    }
}
.product-name-link {
    color: #333;
    text-decoration: none;
    transition: all .2s;
    &:hover {
        color: var(--clr-lightblue);
    }
}

.product-category-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--clr-text);
    text-transform: uppercase;
}

.img-inside {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    outline: none;
    border: none;
    padding: 1rem;
    transition: opacity 0.5s ease-in-out;
    opacity: 0;
}

.img-outside {
    transition: opacity 0.3s ease-in-out;
    opacity: 1;
}

.img-cont {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-image-cont:has(.img-inside):hover .img-inside {
    opacity: 1;
}

.product-image-cont:has(.img-inside):hover .img-outside {
    opacity: 0;
}

.category-slides{
    position:relative;
}

.category-banner-text {
    position: relative;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 20;
    color: white;
}

.product-abs-truncate {
    display: -webkit-box;
    -webkit-line-clamp: 4; /* Limit to 4 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 12px;
    text-align: left;

    > p {
        margin: 0;
    }
}