/* =========================================
   Latest Product Card
========================================= */

.latest-product-item {
    width: 100%;
    padding: 8px;
}

.latest-product-card {
    width: 100%;
    height: 100%;
}

.latest-product-image-box {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #fff;
    border: 4px solid var(--web-secondary);
    border-radius: 22px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .18);
    transition: transform .3s ease, box-shadow .3s ease;
}

.latest-product-image-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, .22);
}

.latest-product-image-link {
    display: block;
    width: 100%;
    text-decoration: none;
}

.latest-product-image {
    display: block;
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: center;
    background: #fff;
    transition: transform .35s ease;
}

.latest-product-image-box:hover .latest-product-image {
    transform: scale(1.04);
}

/* Discount */

.latest-product-discount {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 5;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 48px;
    min-height: 28px;
    padding: 4px 9px;

    color: #fff;
    background: var(--web-primary);
    border-radius: 7px;

    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    direction: ltr;

    box-shadow: 0 4px 10px rgba(0, 0, 0, .16);
}

html[dir="rtl"] .latest-product-discount {
    left: auto;
    right: 10px;
}

/* Quick View */

.latest-product-quick-view {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 6;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;
    padding: 0;

    color: var(--web-primary);
    background: #fff;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    outline: none;

    font-size: 17px;

    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);

    box-shadow: 0 4px 12px rgba(0, 0, 0, .18);

    transition:
        opacity .25s ease,
        visibility .25s ease,
        transform .25s ease,
        background .25s ease,
        color .25s ease;
}

.latest-product-image-box:hover .latest-product-quick-view {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.latest-product-quick-view:hover {
    color: #fff;
    background: var(--web-primary);
}

html[dir="rtl"] .latest-product-quick-view {
    right: auto;
    left: 10px;
}

/* Out of Stock */

.latest-product-out-of-stock {
    position: absolute;
    top: 45%;
    left: 50%;
    z-index: 5;

    transform: translate(-50%, -50%);

    min-width: 115px;
    padding: 8px 12px;

    color: #fff;
    background: rgba(0, 0, 0, .72);
    border-radius: 7px;

    font-size: 13px;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
}

/* Bottom Content */

.latest-product-content {
    min-height: 105px;
    padding: 10px 12px 12px;

    color: #fff;
    background: var(--web-secondary);
    text-align: center;
}

/* Rating */

.latest-product-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;

    min-height: 18px;
    margin-bottom: 5px;
}

.latest-product-stars {
    display: inline-flex;
    align-items: center;
    gap: 1px;
}

.latest-product-stars i {
    color: #ffc107;
    font-size: 12px;
}

.latest-product-review-count {
    color: rgba(255, 255, 255, .88);
    font-size: 11px;
}

/* Product Name */

.latest-product-name {
    display: -webkit-box;
    overflow: hidden;

    min-height: 40px;
    margin-bottom: 7px;

    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;

    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.latest-product-name:hover {
    color: #fff;
    text-decoration: none;
}

/* Price */

.latest-product-price {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;

    min-height: 22px;
    direction: ltr;
}

.latest-product-old-price {
    color: rgba(255, 255, 255, .75);
    font-size: 12px;
}

.latest-product-current-price {
    color: #fff;
    font-size: 16px;
    font-weight: 800;
}

/* =========================================
   Owl Carousel
========================================= */

.latest-product-slider .owl-stage {
    display: flex;
}

.latest-product-slider .owl-item {
    display: flex;
    height: auto;
}

.latest-product-slider .latest-product-item {
    width: 100%;
    height: 100%;
}

.latest-product-slider .owl-nav {
    margin-top: 20px;
    text-align: center;
}

.latest-product-slider .owl-prev,
.latest-product-slider .owl-next {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;
    margin: 0 5px !important;
    padding: 0 !important;

    color: #333 !important;
    background: #fff !important;
    border-radius: 50% !important;

    box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
}

.latest-product-slider .owl-prev:hover,
.latest-product-slider .owl-next:hover {
    color: #fff !important;
    background: var(--web-secondary) !important;
}

.latest-product-slider .owl-dots {
    display: none !important;
}

/* Laptop */

@media (min-width: 992px) and (max-width: 1199px) {
    .latest-product-image {
        height: 220px;
    }

    .latest-product-name {
        font-size: 14px;
    }
}

/* Tablet */

@media (min-width: 768px) and (max-width: 991px) {
    .latest-product-item {
        padding: 5px;
    }

    .latest-product-image-box {
        border-width: 3px;
        border-radius: 18px;
    }

    .latest-product-image {
        height: 190px;
    }

    .latest-product-content {
        min-height: 98px;
        padding: 9px 8px 10px;
    }

    .latest-product-name {
        min-height: 36px;
        font-size: 14px;
    }

    .latest-product-current-price {
        font-size: 15px;
    }

    .latest-product-quick-view {
        width: 34px;
        height: 34px;
        font-size: 15px;
        opacity: 1;
        visibility: visible;
        transform: none;
    }
}

/* Mobile */

@media (max-width: 767px) {
    .latest-product-item {
        padding: 3px;
    }

    .latest-product-image-box {
        border-width: 2px;
        border-radius: 14px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, .15);
    }

    .latest-product-image-box:hover {
        transform: none;
    }

    .latest-product-image {
        height: 145px;
    }

    .latest-product-content {
        min-height: 94px;
        padding: 7px 5px 9px;
    }

    .latest-product-rating {
        gap: 2px;
        margin-bottom: 4px;
    }

    .latest-product-stars i {
        font-size: 9px;
    }

    .latest-product-review-count {
        font-size: 9px;
    }

    .latest-product-name {
        min-height: 31px;
        margin-bottom: 4px;
        font-size: 11px;
        line-height: 1.35;
    }

    .latest-product-old-price {
        font-size: 9px;
    }

    .latest-product-current-price {
        font-size: 12px;
    }

    .latest-product-discount {
        top: 6px;
        left: 6px;

        min-width: 38px;
        min-height: 23px;
        padding: 3px 6px;

        font-size: 9px;
        border-radius: 5px;
    }

    html[dir="rtl"] .latest-product-discount {
        left: auto;
        right: 6px;
    }

    .latest-product-quick-view {
        top: 6px;
        right: 6px;

        width: 28px;
        height: 28px;

        font-size: 12px;

        opacity: 1;
        visibility: visible;
        transform: none;
    }

    html[dir="rtl"] .latest-product-quick-view {
        right: auto;
        left: 6px;
    }

    .latest-product-out-of-stock {
        min-width: 90px;
        padding: 6px 8px;
        font-size: 10px;
    }

    .latest-product-slider .owl-nav {
        display: none !important;
    }
}

/* Small Mobile */

@media (max-width: 480px) {
    .latest-product-item {
        padding: 2px;
    }

    .latest-product-image {
        height: 135px;
    }

    .latest-product-content {
        min-height: 90px;
        padding: 6px 4px 8px;
    }

    .latest-product-name {
        min-height: 30px;
        font-size: 10px;
    }

    .latest-product-current-price {
        font-size: 11px;
    }

    .latest-product-old-price {
        font-size: 8px;
    }
}

/* Reduce outer spacing and card width */
.latest-product-item {
    width: 100%;
    padding: 4px;
}

/* Smaller product image */
.latest-product-image {
    width: 100%;
    height: 190px;
    object-fit: cover;
}

/* Smaller bottom content */
.latest-product-content {
    min-height: 82px;
    padding: 7px 8px 8px;
}

/* Smaller name */
.latest-product-name {
    min-height: 32px;
    margin-bottom: 4px;
    font-size: 13px;
    line-height: 1.25;
}

/* Smaller prices */
.latest-product-current-price {
    font-size: 14px;
}

.latest-product-old-price {
    font-size: 10px;
}

/* Smaller rating */
.latest-product-stars i {
    font-size: 10px;
}

.latest-product-review-count {
    font-size: 9px;
}

/* Smaller border and radius */
.latest-product-image-box {
    border-width: 3px;
    border-radius: 16px;
}

/* Tablet */
@media (min-width: 768px) and (max-width: 991px) {
    .latest-product-image {
        height: 165px;
    }

    .latest-product-content {
        min-height: 78px;
        padding: 6px;
    }

    .latest-product-name {
        min-height: 30px;
        font-size: 12px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .latest-product-item {
        padding: 2px;
    }

    .latest-product-image {
        height: 110px;
    }

    .latest-product-content {
        min-height: 72px;
        padding: 5px 4px 6px;
    }

    .latest-product-name {
        min-height: 27px;
        margin-bottom: 3px;
        font-size: 10px;
        line-height: 1.25;
    }

    .latest-product-current-price {
        font-size: 11px;
    }

    .latest-product-old-price {
        font-size: 8px;
    }

    .latest-product-stars i {
        font-size: 8px;
    }

    .latest-product-review-count {
        font-size: 8px;
    }

    .latest-product-image-box {
        border-width: 2px;
        border-radius: 11px;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .latest-product-image {
        height: 100px;
    }

    .latest-product-content {
        min-height: 68px;
    }

    .latest-product-name {
        min-height: 25px;
        font-size: 9px;
    }
}