/* Product grid cards on shop/category/tag archives. Scoped to .parnad-shop-grid
   so it never collides with the single-product related-products loop or other
   generic .product/.price/.button rules elsewhere on the site. */

/* page.css already defines this font-face, but that file only loads on single
   product pages — redeclare here so the cart glyph works on the shop grid too. */
@font-face {
    font-family: "vorwerk-icons";
    src: url("../fonts/vorwerk-icons.woff") format("woff");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

.parnad-shop-grid {
    max-width: 1150px;
    margin-left: auto !important;
    margin-right: auto !important;
}

.parnad-shop-grid ul.products {
    align-items: stretch !important;
    display: flex !important;
    flex-wrap: wrap;
    list-style: none;
    margin: -5px -5px 50px !important;
    padding: 0;
}

@media (min-width: 768px) {
    .parnad-shop-grid ul.products {
        margin: -12px -12px 60px !important;
    }
}

.parnad-shop-grid ul.products li.product {
    background-color: #fff;
    border: 1px solid #d9dada;
    border-radius: 10px;
    box-sizing: border-box;
    margin: 5px !important;
    padding: 10px !important;
    width: calc(50% - 10px) !important;
    display: flex;
    flex-direction: column;
    float: none;
}

@media (min-width: 640px) {
    .parnad-shop-grid ul.products li.product {
        width: calc(33.333% - 10px) !important;
    }
}

@media (min-width: 768px) {
    .parnad-shop-grid ul.products li.product {
        margin: 12px !important;
        padding: 32px !important;
        width: calc(33.333% - 24px) !important;
    }
}

.parnad-shop-grid ul.products li.product a {
    color: #4b4a4b;
    position: relative;
    text-decoration: none;
}

.parnad-shop-grid ul.products li.product a.woocommerce-loop-product__link {
    display: flex !important;
    flex: 1 1 auto;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.parnad-shop-grid ul.products li.product img {
    display: block;
    margin: 0 0 20px !important;
    width: 100%;
    height: auto;
}

.parnad-shop-grid ul.products li.product .onsale {
    display: none !important;
}

.parnad-shop-grid ul.products li.product .your-savings-price {
    display: none;
}

.parnad-shop-grid ul.products li.product .woocommerce-loop-product__title {
    color: #009a3b !important;
    font-family: "Source Sans Pro", sans-serif !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    letter-spacing: 0;
    line-height: 1.2;
    margin: 5px 0 !important;
    min-height: 38px;
    text-align: left !important;
}

.parnad-shop-grid ul.products li.product .product-short-description {
    color: #4b4a4b !important;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    font-family: "Source Sans Pro", sans-serif !important;
    font-size: 11px !important;
    line-height: 16px !important;
    height: 48px !important;
    margin: 0 0 16px;
    overflow: hidden;
    text-align: left !important;
}

.parnad-shop-grid ul.products li.product .price {
    align-items: center;
    color: #4b4a4b !important;
    display: flex !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    justify-content: flex-end;
    line-height: 22px;
    margin-top: auto;
    text-align: right;
}

.parnad-shop-grid ul.products li.product .price del {
    color: #999;
    font-weight: 400 !important;
    margin: 0 10px 0 0;
    opacity: .7 !important;
}

.parnad-shop-grid ul.products li.product .price ins {
    font-weight: 600 !important;
    text-decoration: none;
}

.parnad-shop-grid ul.products li.product .stock_vat_wrap {
    color: #4b4a4b !important;
    font-family: "Source Sans Pro", sans-serif !important;
    font-size: 11px !important;
    line-height: 16px !important;
    margin-top: 4px;
    text-align: right;
}

.parnad-shop-grid ul.products li.product .stock_vat_wrap p {
    margin: 0;
    font-size: 11px !important;
    line-height: 16px !important;
}

.parnad-shop-grid ul.products li.product .stock.available span,
.parnad-shop-grid ul.products li.product .stock.unavailable span {
    display: inline-block;
    padding-left: 10px;
    position: relative;
}

.parnad-shop-grid ul.products li.product .stock.available span::before,
.parnad-shop-grid ul.products li.product .stock.unavailable span::before {
    border-radius: 4px;
    content: "";
    height: 8px;
    left: 0;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
}

.parnad-shop-grid ul.products li.product .stock.available span::before {
    background: #009a3b;
}

.parnad-shop-grid ul.products li.product .stock.unavailable span::before {
    background: #ff4a4a;
}

.parnad-shop-grid ul.products li.product .add_to_cart_button,
.parnad-shop-grid ul.products li.product .button {
    background-color: #009a3d !important;
    border: none;
    border-radius: 8px;
    border-top-right-radius: 0;
    color: #fff !important;
    display: block;
    font-size: 12px;
    font-weight: 600;
    line-height: 18px;
    margin-top: 16px !important;
    padding: 8px;
    text-align: center;
    width: 100%;
    transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out;
}

.parnad-shop-grid ul.products li.product .add_to_cart_button:before,
.parnad-shop-grid ul.products li.product .button:before {
    content: "\f178";
    font-family: "vorwerk-icons" !important;
    margin: 0 6px 0 0;
    font-weight: normal;
}

@media (min-width: 768px) {
    .parnad-shop-grid ul.products li.product .add_to_cart_button,
    .parnad-shop-grid ul.products li.product .button {
        font-size: 16px;
        line-height: 24px;
    }
}

.parnad-shop-grid ul.products li.product .add_to_cart_button:hover,
.parnad-shop-grid ul.products li.product .button:hover {
    background-color: #048a39 !important;
    border-color: #048a39 !important;
    color: #fff !important;
}

