.catalog-category-meta-box {
     margin: auto;
}

.catalog-category-meta-box-title {
    padding: 0.5rem 1rem;
    border-left:4px solid #c90c0f;
}

.catalog-products-wrapper {
    background-color: white;
    padding: 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /* Responsive columns */
    gap: 1rem; /* Adds space between each card */
    width: 100%;
    box-sizing: border-box; /* Ensure padding doesn't affect width */
}

.product-card-wrapper {
    padding: 0.5rem 0rem 0rem 0rem;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center the content */
    justify-content: space-between; /* Space between title and image */
    height: 100%; /* Ensure card takes full height */
    box-sizing: border-box; /* Ensure padding doesn't affect width */
    border-top: 2px #c90c0f00 solid;
    border-left: 2px #c90c0f00 solid;
    border-right: 2px #c90c0f00 solid;
}

.product-card-wrapper:hover {
    /*box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;*/
    border-top: 2px #c90c0f solid ;
    border-left: 2px #c90c0f solid;
    border-right: 2px #c90c0f solid;
}

.product-card-image {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Ensure image doesn't overflow */
    height: 200px; /* Fixed height for image container */
}

.product-card-image > img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.product-title-wrapper {
    text-align: center;
    font-weight: bold;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap:1rem;
    border-bottom:2px solid #c90c0f;
    padding:0.5rem;
    text-transform: uppercase;
    font-weight: 300;
    width: 100%;
    min-height: 80px;
}

.product-title-wrapper img {
    height: 0.9rem;
}

.product-title-wrapper h3 {
    font-weight: 400;
}


.catalog-product-wrapper {
    background-color: white;
    padding: 1rem 1rem;
    width: 100%;
    margin-top:2rem;
}

.catalog-product-description {
    max-height: 18rem;
    overflow: hidden;
    transition: 0.4s ease-in-out;
}

.catalog-product-description-show-more {
    color:#c90c0f;
    display: flex;
    align-items: center;
    gap:0.5rem;
    border-bottom: 1px solid black;
    width: fit-content;
    margin: auto;
    padding:0.5rem 0rem;
    margin-top:0.5rem;
    cursor: pointer;
    font-weight: 300;
    transition: 300ms;
}

.catalog-product-description-show-more:hover {
    color:#000000;
    display: flex;
    align-items: center;
    gap:0.7rem;
    border-bottom: 1px solid #c90c0f;
    transition: 300ms;
}


#product_compatible {
    margin-top:1rem;
}

#product_compatible ul {
    list-style: none outside none;
    padding: 5px 0;
    margin: 0;
    margin-top:0.5rem;
}

#product_compatible li {
    display: inline-block;
    margin-bottom: 5px;
}

#product_compatible li > a {
    position: relative;
    display: inline-block;
    border: 1px solid #cd1919;
    background-color: white;
    color: gray;
    line-height: 22px;
    padding: 0 5px;
    text-decoration: none;
}

#product_compatible li.icon > a {
    border-left: 25px solid #cd1919;
}

#product_compatible li > a:hover {
    background-color: #cd1919;
    color: #ffffff;
}

#product_compatible li.icon > a > img {
    position: absolute;
    left: -25px;
    top: 50%;
    transform: translateY(-50%);
}

.catalog-product-inquiry-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    background-color: #cd1919;
    color:white;
    cursor: pointer;
    gap:1rem;
    margin-top:2rem;
}

.catalog-product-inquiry-button img {
    height: 0.7rem;
}

.catalog-product-inquiry-form {
    overflow: hidden;
    transition: 0.3s linear;
}

#contactForm {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap:0.5rem;
    margin-top:0.5rem;
}

#contactForm input {
    border:none;
    outline: none;
    background-color: #f4f4f4;
    padding: 0.5rem 1rem;
    width: 100%;
}

#contactForm textarea {
    border:none;
    outline: none;
    background-color: #f4f4f4;
    padding: 0.5rem 1rem;
    width: 100%;
}

#contactForm input[type="submit"] {
    border:none;
    outline: none;
    background-color: #cd1919;
    color:white;
    padding: 0.5rem 1rem;
    width: 100%;
    cursor: pointer;
}

.contact-form-message {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.5rem 1rem;
}

.catalog-product-files {
    margin-bottom:1rem;
    display: flex;
    flex-direction: column;
    gap:0.5rem;
    margin-top:1rem;
}

.catalog-product-files img {
    height: 2rem;
}

.catalog-product-files a {
    color:#cd1919;
    width: 100%;
    display: block;
    display: flex;
    align-items: center;
    gap:0.6rem;
}

.catalog-product-files a:hover {
    color:#000000;
    gap:0.8rem;
}

.catalog-product-files p{
    border-bottom:1px solid #cd1919;
    margin:0;
    padding: 0;
}

@media screen and (min-width:768px){
}



@media screen and (min-width:1024px){
    .catalog-category-meta-box {
        width: 60%;
        margin: auto;
    }

    .catalog-category-meta-box-title {
        padding: 1rem 2rem;
        border-left:6px solid #c90c0f;
        font-size:30px;
    }

    .catalog-category-meta-box-description {
        padding: 1rem 2rem;
    }

    .catalog-product-wrapper {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }

    .catalog-product-wrapper {
        padding: 3rem 4rem;
    }

    .catalog-product-inquiry-button {
        display: flex;
        align-items: center;
        justify-content: center;
        padding:1.5rem 2rem;
        background-color: #cd1919;
        color:white;
        cursor: pointer;
        gap:1rem;
        transition: 300ms;
    }

    .catalog-product-inquiry-button:hover {
        background-color: #000000;
        transition: 300ms;
    }
}

@media screen and (max-width:500px){
    .product-title-wrapper h3 {
        font-size: 14px;
    }
}