@import url(/style/color-scheme.css);

.product-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, 1fr);
}

.product-card {
    background: white;
    border: 1px solid var(--clr-EMLightGray);
    padding: 1rem;
    border-radius: 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    height: 100%;
    line-height: 0;
    box-sizing: border-box;
}

.product-card h3{
    line-height: 1.8!important;
    margin-top: 0;
    margin-bottom: 0.8em;
}

.product-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 0;
}

.product-type {
    font-size: 0.9rem;
    color: var(--clr-EMBrown);
    margin-top: 1em;
}

.product-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--clr-EMBrown);
    margin-bottom: 0;
}

.product-subtitle {
    font-size: 1rem;
    color: var(--clr-EMLightbrown);
    top: 0;
}

.product-description {
    font-size: 0.9rem;
    color: var(--clr-EMBrown);
    margin: 0.5rem 0;
    flex-grow: 1;
    line-height: 1.6em;
}

.product-footer-strip{
    margin-top: 2em;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 3px;
    row-gap: 18px;
    width: 100%;
    align-items: center;
}

.pfs-left{
    justify-self: start;
}

.pfs-right{
    justify-self: end;
}

.product-price {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--clr-EMBrown);
}

.quantity-container{
    display: inline-block;
}

.product-actions input {
    width: 50px;
    text-align: center;
    border: 1px solid var(--clr-EMLightGray);
    border-radius: 0;
}

.product-actions button {
    background: var(--clr-EMBrown);
    color: var(--clr-EMWhite);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0;
    cursor: pointer;
}

.product-actions button:hover {
    background: var(--clr-EMLightbrown);
}

.usr-elem-group > *{
    width: auto!important;
    line-height: 2em;
    margin-bottom: 0.6em;
    height: 2.5em;
}

.empty-result{
    width: 100%;
}

@media (max-width: 1000px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    .product-card {
        padding: 0.8rem;
    }
    .shop-pg > .product-card:nth-child(n+3) {
        display: none;
    }
    .product-title {
        font-size: 1rem;
    }
    
    .product-subtitle {
        font-size: 0.9rem;
    }
    .product-footer-strip{
        margin-top: 2em;
        display: grid;
        grid-template-columns: 1fr;
        column-gap: 3px;
        row-gap: 18px;
        width: 100%;
        align-items: center;
    }
    .product-footer-strip *{
        justify-self: start;
    }
    .product-description {
        max-height: calc(1.6em * 12);

        overflow: auto;
        scrollbar-color: #73542D #e0e0e0;
        scrollbar-width: thin;
    }
    .usr-elem-group > *{
        width: 100%!important;
        margin-bottom: 0.6em;
        height: 2.5em;
    }
}