/* Shop card redesign for bw-petito — works with the overridden
   bzotech-templates/woocommerce/loop/grid/grid.php in this child theme. */

:root{
    --wpcr-orange:#f0924d;
    --wpcr-orange-dark:#e07f36;
    --wpcr-green:#1f6b3b;
    --wpcr-ink:#1c1c1c;
    --wpcr-muted:#8a8a8a;
    --wpcr-border:#eceff1;
}

.item-product{
    position:relative;
    background:#fff;
    border:1px solid var(--wpcr-border);
    border-radius:16px;
    overflow:hidden;
    box-shadow:0 2px 10px rgba(0,0,0,.04);
    transition:box-shadow .2s, transform .2s;
}
.item-product:hover{
    box-shadow:0 8px 22px rgba(0,0,0,.09);
    transform:translateY(-2px);
}

.item-product .product-thumb{ position:relative; }

.item-product .product-thumb img{
    width: 100% !important;
    height: 230px !important;
    object-fit: contain !important;
    padding: 10px;
    background: #fff;
    box-shadow: none;
}

.item-product .product-info{
    padding:0 10px;
}

.item-grid-product- .item-product {
    position: relative;
    border: 1px solid var(--wpcs-border);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    background: #fff;
    padding-bottom: 14px;
    overflow: hidden;
}

.item-product .wpcr-brand{
    margin:6px 0 0;
    font-size:13.5px;
    color:var(--wpcr-muted);
}

.item-product .product-title{
    margin: 0 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    font-family: Poppins, sans-serif;
}

.item-product .product-title {
    padding: 0 !important;
    white-space: wrap;
    text-overflow: unset !important;
}

.bzotech-row .item-product .product-title a.color-title,
.item-product .product-title a.color-title{
    color:var(--wpcr-orange) !important;
    text-decoration:none !important;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
}
.item-product .product-title a.color-title:hover{ text-decoration:underline !important; }

.bzotech-row .item-product .price,
.item-product .price{
    display:block;
    margin:10px 0 10px !important;
    font-size: 18px !important;
    font-weight:800 !important;
    color:var(--wpcr-green) !important;
}
.item-grid-product- .woocs_price_code span bdi {
    font-size: 18px !important;
}

.bzotech-row .item-product .price, .item-product .price {
    padding: 0;
}

.item-product .product-thumb {padding: 0;}
.item-product .price del{
    font-size:14px;
    font-weight:400;
    color:var(--wpcr-muted);
    margin-inline-end:8px;
}
.item-product .price ins{ text-decoration:none; color:var(--wpcr-green) !important; }

.item-product .wrap-rating{ margin:0 0 8px; }
.item-product .number-rate{ color:var(--wpcr-muted) !important; }

.item-product .stock{
    display:flex !important;
    align-items:center;
    gap:8px;
    margin:0 0 16px !important;
    font-size:14px !important;
    font-weight:600 !important;
    color:var(--wpcr-ink) !important;
}
.item-product .stock::before{
    content:'';
    width:8px;
    height:8px;
    border-radius:50%;
    background:#2e7d32;
    flex:0 0 auto;
}
.item-product .stock.out-of-stock{ color:#b3261e !important; }
.item-product .stock.out-of-stock::before{ background:#b3261e; }

.bzotech-row .item-product .wpcr-full-btn,
.item-product .wpcr-full-btn{
    display:flex !important;
    align-items:center;
    justify-content:center;
    gap:8px;
    width:100% !important;
    max-width:none !important;
    padding:15px 16px !important;
    margin:6px 0 0 !important;
    background:var(--wpcr-orange) !important;
    color:#fff !important;
    border:none !important;
    border-radius: 6px !important;
    font-size:15px !important;
    font-weight:700 !important;
    text-transform:none !important;
    text-decoration:none !important;
    box-sizing:border-box;
}
.item-product .wpcr-full-btn:hover{ background:var(--wpcr-orange-dark) !important; color:#fff !important; }

/* Wishlist + Quick view: small hover overlay in the top corner of the image */
.item-product .product-extra-link{
    position:absolute;
    top:12px;
    inset-inline-end:12px;
    opacity:0;
    transform:translateY(-4px);
    transition:opacity .2s, transform .2s;
}
.item-product:hover .product-extra-link{
    opacity:1;
    transform:translateY(0);
}
.item-product .grid-product-layout{
    display:flex;
    flex-direction:column;
    gap:8px;
}
.item-product .yith-wcwl-add-to-wishlist-button,
.item-product .product-quick-view{
    width:36px;
    height:36px;
    border-radius:50%;
    background:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    box-shadow:0 2px 8px rgba(0,0,0,.15);
    color:var(--wpcr-ink);
}
.item-product .product-quick-view span{ display:none; }

@media(max-width:720px){
    .item-product .product-thumb img{ height:170px; }
    .item-product .product-title{ font-size:15px; }
    .item-product .price{ font-size:18px; }
}
