﻿.product-page-card {
    margin-bottom: 60px;
    box-shadow: 4px 0 16px 2px rgba(0, 0, 0, 0.05);
    --border-width: 1px;
    --radius: 12px;
    position: relative;
    border-radius: var(--radius);
    border: var(--border-width) solid transparent;
    width: calc(33% - 30px);
    padding: 25px;
    height: 475px;
}

.product-page-card img {
    margin-bottom: 10px;
    padding: 15px;
    height: 200px;
}

.product-page-card h3 {
    font-size: 18px;
    font-weight: 500;
    line-height: 24px;
}

.product-page-card p {
    font-size: 14px;
    line-height: 20px;
    font-weight: 400;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-page-card a, .product-page-card a:hover {
    background: #1b4962;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    width: 120px;
    height: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
}

.product-page-card .row .col-6:nth-of-type(2) a,
.product-page-card .row .col-6:nth-of-type(2) a:hover {
    background: #fff;
    border: 1px solid #1b4962;
    font-size: 14px;
    font-weight: 500;
    color: #1b4962;
    width: 120px;
    height: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
}

.custom-select-wrapper {
    position: relative;
    min-width: 300px;
    font-family: inherit;
    max-width: max-content;
}

.custom-select-trigger {
    cursor: pointer;
    position: relative;
}

.custom-select-options {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    max-height: 200px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
    list-style: none;
    margin-top: 10px;
}

.custom-select-options.show {
    display: block;
}

.custom-option {
    padding: 12px 20px;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 14px;
    max-width: max-content;
    margin-left: auto;
    text-align: end;
}

.custom-option:hover {
    background-color: #f0f0f0;
}

.custom-option.active {
    font-weight: bold;
}

#product-partial {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 30px;
    width: 100%;
    justify-content: center;
}

.filter-container {
    padding: 0 30px;
}

.trigger-name {
    font-size: 16px;
    font-weight: 500;
}

.product-buttons {
    bottom: 20px;
}

@media only screen and (min-width: 0px) and (max-width: 560px) {
    .product-page-card {
        width: calc(100%);
        margin-bottom: 30px;
    }

    .filter-container {
        flex-wrap: wrap;
    }

    .filter-container h3 {
        width: 100%;
        text-align: center;
        margin-bottom: 40px;
    }

    .custom-select-wrapper {
        width: 100%;
        margin-left: auto;
    }

    .trigger-name {
        font-size: 14px;
    }

    .custom-option {
        padding: 12px;
        font-size: 13px;
    }
}

