/* =====================================================================
   SOLET – produktų kortelės sąrašuose (parduotuvė, kategorijos, žymos, produkto puslapio „papildomi produktai“).
   Kraunama tik šiuose puslapiuose (inc/solet-assets.php). Temos style.css / app.css nekeičiami: taisyklės perrašo jas
   didesniu specifiškumu (#main). Kiekvieną bloką galima išjungti atskirai – tiesiog jį ištrinkite.
   Kortelės atitinka pagrindinio puslapio kortelių dizainą (assets/css/solet-landing.css).
   ===================================================================== */


/* 1. Paveikslėlis: vienodo dydžio rėmas visoms kortelėms, nuotrauka jame telpa nenukirpta (proporcija – --solet-card-ratio iš inc/solet-assets.php) */
body.post-type-archive-product #main .products .product .image,
body.tax-product_cat #main .products .product .image,
body.tax-product_tag #main .products .product .image,
body.single-product #main .products .product .image{aspect-ratio:var(--solet-card-ratio,1);margin-bottom:2.1rem}
body.post-type-archive-product #main .products .product .image img,
body.tax-product_cat #main .products .product .image img,
body.tax-product_tag #main .products .product .image img,
body.single-product #main .products .product .image img{display:block;width:100%;height:100%;object-fit:contain;background:transparent}

/* 2. „Sandėlyje“ / būsena: po paveikslėliu su taškeliu, o ne ant grafikos */
body.post-type-archive-product #main .products .product .image .status-label,
body.tax-product_cat #main .products .product .image .status-label,
body.tax-product_tag #main .products .product .image .status-label,
body.single-product #main .products .product .image .status-label{bottom:-1.85rem;left:0;padding:0 0 0 1.05rem;background:none;color:#5a6275;font-size:.8125rem;font-weight:600;line-height:1.2}
body.post-type-archive-product #main .products .product .image .status-label:before,
body.tax-product_cat #main .products .product .image .status-label:before,
body.tax-product_tag #main .products .product .image .status-label:before,
body.single-product #main .products .product .image .status-label:before{content:"";position:absolute;left:0;top:50%;width:.6rem;height:.6rem;margin-top:-.3rem;border-radius:50%;background:#c1c1c1}
body.post-type-archive-product #main .products .product .image .status-label.instock,
body.tax-product_cat #main .products .product .image .status-label.instock,
body.tax-product_tag #main .products .product .image .status-label.instock,
body.single-product #main .products .product .image .status-label.instock{background:none;color:#2f7d20}
body.post-type-archive-product #main .products .product .image .status-label.instock:before,
body.tax-product_cat #main .products .product .image .status-label.instock:before,
body.tax-product_tag #main .products .product .image .status-label.instock:before,
body.single-product #main .products .product .image .status-label.instock:before{background:#4f9b3b}

/* 3. Ženkliukas (nuolaidos procentą rašo inc/solet-assets.php) */
body.post-type-archive-product #main .products .product span.onsale,
body.tax-product_cat #main .products .product span.onsale,
body.tax-product_tag #main .products .product span.onsale,
body.single-product #main .products .product span.onsale{top:.75rem;padding:.5rem .65rem .45rem;font-size:.6875rem;letter-spacing:.02em}

/* 4. Pavadinimas ir kaina */
body.post-type-archive-product #main .products .product h2.woocommerce-loop-product__title,
body.tax-product_cat #main .products .product h2.woocommerce-loop-product__title,
body.tax-product_tag #main .products .product h2.woocommerce-loop-product__title,
body.single-product #main .products .product h2.woocommerce-loop-product__title{font-size:.9375rem;line-height:1.3;min-height:2.6em;margin-top:.1rem;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;transition:color .2s}
body.post-type-archive-product #main .products .product:hover h2.woocommerce-loop-product__title,
body.tax-product_cat #main .products .product:hover h2.woocommerce-loop-product__title,
body.tax-product_tag #main .products .product:hover h2.woocommerce-loop-product__title,
body.single-product #main .products .product:hover h2.woocommerce-loop-product__title{color:#f28021}
body.post-type-archive-product #main .products .product span.price,
body.tax-product_cat #main .products .product span.price,
body.tax-product_tag #main .products .product span.price,
body.single-product #main .products .product span.price{font-size:1.1875rem;font-weight:800;letter-spacing:-.01em}
body.post-type-archive-product #main .products .product:not(.product-category) .inner,
body.tax-product_cat #main .products .product:not(.product-category) .inner,
body.tax-product_tag #main .products .product:not(.product-category) .inner,
body.single-product #main .products .product:not(.product-category) .inner{transition:transform .2s ease;padding-bottom:2.5rem}
body.post-type-archive-product #main .products .product:not(.product-category):hover .inner,
body.tax-product_cat #main .products .product:not(.product-category):hover .inner,
body.tax-product_tag #main .products .product:not(.product-category):hover .inner,
body.single-product #main .products .product:not(.product-category):hover .inner{transform:translateY(-3px)}
body.post-type-archive-product #main .products .product.sale:not(.product-category) .inner,
body.tax-product_cat #main .products .product.sale:not(.product-category) .inner,
body.tax-product_tag #main .products .product.sale:not(.product-category) .inner,
body.single-product #main .products .product.sale:not(.product-category) .inner{padding-bottom:3.7rem}
body.post-type-archive-product #main .products .product.sale span.price,
body.tax-product_cat #main .products .product.sale span.price,
body.tax-product_tag #main .products .product.sale span.price,
body.single-product #main .products .product.sale span.price{padding-top:1.45rem}
body.post-type-archive-product #main .products .product.sale span.price del,
body.tax-product_cat #main .products .product.sale span.price del,
body.tax-product_tag #main .products .product.sale span.price del,
body.single-product #main .products .product.sale span.price del{font-size:.8125rem;font-weight:500;color:#8a93a3}
body.post-type-archive-product #main .products .product.sale span.price ins,
body.tax-product_cat #main .products .product.sale span.price ins,
body.tax-product_tag #main .products .product.sale span.price ins,
body.single-product #main .products .product.sale span.price ins{color:#121d33}

/* 5. Telefonas: 2 kortelės eilutėje */
@media (max-width:575.98px){
body.post-type-archive-product #main .products>.product,
body.tax-product_cat #main .products>.product,
body.tax-product_tag #main .products>.product,
body.single-product #main .products>.product{flex:0 0 50%;max-width:50%;margin-bottom:1.5rem}
body.post-type-archive-product #main .products .product h2.woocommerce-loop-product__title,
body.tax-product_cat #main .products .product h2.woocommerce-loop-product__title,
body.tax-product_tag #main .products .product h2.woocommerce-loop-product__title,
body.single-product #main .products .product h2.woocommerce-loop-product__title{font-size:.8125rem}
body.post-type-archive-product #main .products .product span.price,
body.tax-product_cat #main .products .product span.price,
body.tax-product_tag #main .products .product span.price,
body.single-product #main .products .product span.price{font-size:1rem}
body.post-type-archive-product #main .products .product .image .status-label,
body.tax-product_cat #main .products .product .image .status-label,
body.tax-product_tag #main .products .product .image .status-label,
body.single-product #main .products .product .image .status-label{font-size:.75rem}
body.post-type-archive-product #main .products .product span.onsale,
body.tax-product_cat #main .products .product span.onsale,
body.tax-product_tag #main .products .product span.onsale,
body.single-product #main .products .product span.onsale{top:.5rem;padding:.35rem .5rem .3rem;font-size:.625rem}
}
@media (hover:none){
body.post-type-archive-product #main .products .product:not(.product-category):hover .inner,
body.tax-product_cat #main .products .product:not(.product-category):hover .inner,
body.tax-product_tag #main .products .product:not(.product-category):hover .inner,
body.single-product #main .products .product:not(.product-category):hover .inner{transform:none}
}

/* ---- Atsiliepimų blokas (3 kortelės) katalogo ir produkto puslapyje; pačios kortelės – .review-card iš inc/solet-project-facts.php ---- */
.section.product-reviews{padding-top:3.5rem;padding-bottom:1rem}
.product-reviews-wrap{margin-top:1rem}
@media (min-width:576px) and (max-width:991.98px){
/* planšetėje 2 stulpeliai: trečia kortelė užima visą eilutę, kad nelaikytų tuščios vietos */
.product-reviews .reviews-grid>.review-card:nth-child(3):last-child{grid-column:1/-1}
}
