
/* ==========================================
   JAGADHATRI MEDICARE
   RECENT PRODUCTS - NEW DESIGN
========================================== */

.pd-recent-widget {
    width: 100%;
    padding: 18px;
    background: #ffffff;
    border: 1px solid #e8edf2;
    border-radius: 16px;
    box-sizing: border-box;
}

/* HEADING */

.pd-recent-widget .pd-sidebar-heading {
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid #edf0f4;
}

.pd-recent-widget .pd-sidebar-heading span {
    color: #079b9b;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
}

.pd-recent-widget .pd-sidebar-heading h2 {
    margin: 5px 0 0;
    color: #123b62;
    font-size: 23px;
    font-weight: 700;
}

/* SLIDER */

.pd-recent-widget .sidebar-slider {
    width: 100%;
    overflow: hidden;
}

.pd-recent-widget .slick-list {
    overflow: hidden;
}

.pd-recent-widget .slick-slide {
    height: auto;
}

.pd-recent-widget .slick-slide > div {
    height: 100%;
}

/* NEW CARD */

.pd-recent-widget .jm-rp-item {
    width: 100%;
    padding: 5px;
    box-sizing: border-box;
}

.pd-recent-widget .jm-rp-card {
    width: 100%;
    padding: 13px;
    background: #ffffff;
    border: 1px solid #e9eef3;
    border-radius: 13px;
    box-sizing: border-box;
    transition: .3s ease;
}

.pd-recent-widget .jm-rp-card:hover {
    border-color: #079b9b;
    box-shadow: 0 8px 24px rgba(18, 59, 98, .08);
}

/* IMAGE - COMPLETELY NEW WRAPPER */

.pd-recent-widget .jm-rp-image {
    width: 100%;
    height: 190px;
    padding: 10px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7fafc;
    border: 1px solid #edf1f5;
    border-radius: 9px;
    overflow: hidden;
    box-sizing: border-box;
}

.pd-recent-widget .jm-rp-image a {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.pd-recent-widget .jm-rp-image img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 165px;
    object-fit: contain;
    border: 0;
    border-radius: 0;
    outline: 0;
    box-shadow: none;
    background: transparent;
}

/* PRICE AND STOCK */

.pd-recent-widget .jm-rp-price-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 11px 8px;
    background: #f6f9fb;
    border-radius: 8px;
}

.pd-recent-widget .jm-rp-price-row span,
.pd-recent-widget .jm-rp-meta span {
    display: block;
    margin-bottom: 5px;
    color: #8998a7;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .7px;
}

.pd-recent-widget .jm-rp-price strong {
    color: #087f8c;
    font-size: 14px;
}

.pd-recent-widget .jm-rp-stock strong {
    display: block;
    font-size: 11px;
}

.pd-recent-widget .jm-rp-available {
    color: #16865b;
}

.pd-recent-widget .jm-rp-unavailable {
    color: #c34d4d;
}

/* PRODUCT TITLE */

.pd-recent-widget .jm-rp-title {
    padding: 14px 2px 10px;
}

.pd-recent-widget .jm-rp-title h3 {
    margin: 0 0 5px;
    color: #123b62;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
}

.pd-recent-widget .jm-rp-title p {
    margin: 0;
    color: #8995a2;
    font-size: 11px;
}

/* DETAILS BUTTON */

.pd-recent-widget .jm-rp-details {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 13px;
    color: #ffffff !important;
    background: #123b62;
    border-radius: 7px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .7px;
    text-decoration: none !important;
    transition: .3s ease;
}

.pd-recent-widget .jm-rp-details:hover {
    background: #079b9b;
    color: #ffffff !important;
}

.pd-recent-widget .jm-rp-details span {
    font-size: 17px;
}

/* COMPANY AND MODEL */

.pd-recent-widget .jm-rp-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding-top: 13px;
    margin-top: 13px;
    border-top: 1px solid #edf0f4;
}

.pd-recent-widget .jm-rp-meta strong {
    display: block;
    color: #526579;
    font-size: 11px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

/* HIDE SLIDER DOTS */

.pd-recent-widget .slick-dots {
    display: none !important;
}

/* MOBILE */

@media (max-width: 767px) {

    .pd-recent-widget {
        padding: 13px;
    }

    .pd-recent-widget .jm-rp-image {
        height: 175px;
    }

    .pd-recent-widget .jm-rp-image img {
        max-height: 150px;
    }

}
