/* ==========================================
   Handicrafts BD Product Card
========================================== */

.hbd-product-card{
    background:#fff;
    border:1px solid #eeeeee;
    border-radius:18px;
    overflow:hidden;
    position:relative;
    display:flex;
    flex-direction:column;
    height:100%;
    transition:all .35s ease;
}

.hbd-product-card:hover{
    transform:translateY(-5px);
    box-shadow:0 15px 40px rgba(0,0,0,.08);
}

/* ==========================================
   Product Image
========================================== */

.hbd-product-image{
    position:relative;
    height:340px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#fff;
    overflow:hidden;
    padding:18px;
}

.hbd-product-image img{
    width:100%;
    height:100%;
    object-fit:contain;
    transition:transform .35s ease;
}

.hbd-product-card:hover .hbd-product-image img{
    transform:scale(1.06);
}

/* ==========================================
   Sale Badge
========================================== */

.hbd-sale-badge{
    position:absolute;
    top:16px;
    left:16px;
    background:#e53935;
    color:#fff;
    font-size:14px;
    font-weight:700;
    padding:7px 12px;
    border-radius:30px;
    z-index:20;
    box-shadow:0 8px 18px rgba(0,0,0,.15);
}

/* ==========================================
   Hover Overlay
========================================== */

.hbd-product-actions{
    position:absolute;
    inset:0;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:16px;

    background:rgba(0,0,0,.18);
    backdrop-filter:blur(2px);

    opacity:0;
    visibility:hidden;
    transition:.35s ease;
}

.hbd-product-card:hover .hbd-product-actions{
    opacity:1;
    visibility:visible;
}

/* ==========================================
   Action Buttons
========================================== */

.hbd-view,
.hbd-cart{

    width:48px;
    height:48px;

    border-radius:50%;

    background:#fff;

    display:flex;
    align-items:center;
    justify-content:center;

    color:#212121;

    text-decoration:none;

    box-shadow:0 8px 20px rgba(0,0,0,.15);

    transition:.3s ease;

}

.hbd-view:hover,
.hbd-cart:hover{

    background:#007536;
    color:#fff;

    transform:scale(1.08);

}

/* ==========================================
   Content
========================================== */

.hbd-product-content{

    flex:1;

    display:flex;
    flex-direction:column;

    padding:18px;

}

.hbd-product-title{

    font-size:16px;
    font-weight:600;
    line-height:1.5;

    margin:0 0 12px;

    min-height:48px;

}

.hbd-product-title a{

    color:#212121;
    text-decoration:none;

    display:-webkit-box;
    -webkit-box-orient:vertical;

    -webkit-line-clamp:2;
    line-clamp:2;

    overflow:hidden;

}

.hbd-product-title a:hover{

    color:#007536;

}

/* ==========================================
   Price
========================================== */

.hbd-product-price{

    margin-top:auto;
    margin-bottom:12px;

}

.hbd-product-price ins{

    color:#007536;
    font-size:24px;
    font-weight:700;

    text-decoration:none;

}

.hbd-product-price del{

    color:#999;
    font-size:13px;
    opacity:.75;

    margin-right:8px;

}

/* ==========================================
   Stock
========================================== */

.hbd-stock-status{

    font-size:14px;
    font-weight:600;

}

.hbd-stock-status .in-stock{

    color:#1ca64c;

}

.hbd-stock-status .out-stock{

    color:#d32f2f;

}

.hbd-stock-status .in-stock::before{

    content:"";
    display:inline-block;

    width:8px;
    height:8px;

    border-radius:50%;

    background:#1ca64c;

    margin-right:6px;

}

.hbd-stock-status .out-stock::before{

    content:"";
    display:inline-block;

    width:8px;
    height:8px;

    border-radius:50%;

    background:#d32f2f;

    margin-right:6px;

}

/* ==========================================
   Rating
========================================== */

.hbd-card-rating{

    margin-top:10px;

}

.hbd-card-rating .star-rating{

    margin:0;

}

.hbd-cart.loading{

    opacity:.6;

    pointer-events:none;

}

.hbd-cart.loading svg{

    animation:hbdSpin .8s linear infinite;

}

@keyframes hbdSpin{

    from{

        transform:rotate(0deg);

    }

    to{

        transform:rotate(360deg);

    }

}

/* ==========================================
   Out Of Stock Overlay
========================================== */

.hbd-out-stock-overlay{

    position:absolute;

    inset:0;

    display:flex;

    align-items:center;

    justify-content:center;

    background:rgba(0,0,0,.45);

    backdrop-filter:blur(2px);

    z-index:25;

}

.hbd-out-stock-text{

    background:#d32f2f;

    color:#fff;

    padding:12px 24px;

    border-radius:40px;

    font-size:18px;

    font-weight:700;

    letter-spacing:1px;

    text-transform:uppercase;

    box-shadow:0 8px 20px rgba(0,0,0,.25);

}

/* ==========================================
   Toast Notification
========================================== */

.hbd-toast{

    position:fixed;

    right:25px;
    bottom:25px;

    background:#212121;
    color:#fff;

    padding:14px 20px;

    border-radius:12px;

    display:flex;
    align-items:center;
    gap:12px;

    font-size:15px;
    font-weight:600;

    box-shadow:0 15px 35px rgba(0,0,0,.25);

    opacity:0;
    visibility:hidden;

    transform:translateY(20px);

    transition:.35s ease;

    z-index:99999;

}

.hbd-toast.show{

    opacity:1;
    visibility:visible;

    transform:translateY(0);

}

.hbd-toast-success{

    color:#43d854;

}
