/* =========================================================
   RUDRASTU PRODUCT CAROUSEL
   CLEAN RESPONSIVE VERSION
   ========================================================= */


/* =========================================================
   MAIN CAROUSEL
   ========================================================= */

.rudrastu-product-carousel {
    width: 100%;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.rudrastu-product-carousel *,
.rudrastu-product-carousel *::before,
.rudrastu-product-carousel *::after {
    box-sizing: border-box;
}


/* =========================================================
   SWIPER
   ========================================================= */

.rudrastu-product-carousel .swiper-wrapper {
    display: flex;
    align-items: stretch;
}

.rudrastu-product-carousel .swiper-slide {
    height: auto;
    display: flex;
}


/* =========================================================
   PRODUCT CARD
   ========================================================= */

.rudrastu-product-carousel .rudrastu-product-card {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;

    background: #ffffff;

    border: 1px solid #eadfc7;
    border-radius: 12px;

    padding: 15px;

    overflow: hidden;

    text-align: center;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


/* Card hover */

.rudrastu-product-carousel .rudrastu-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.10);
}


/* =========================================================
   PRODUCT IMAGE AREA
   ========================================================= */

.rudrastu-product-carousel .rudrastu-product-image {
    width: 100%;
    height: 210px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 15px;

    overflow: hidden;
}


/* Image link */

.rudrastu-product-carousel .rudrastu-product-image a {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;
}


/* Product image */

.rudrastu-product-carousel .rudrastu-product-image img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 190px;

    object-fit: contain;

    display: block;
    margin: 0 auto;
}


/* =========================================================
   PRODUCT NAME
   ========================================================= */

.rudrastu-product-carousel .rudrastu-product-name {
    width: 100%;

    margin: 0 0 8px;

    text-align: center;

    font-size: 18px;
    line-height: 1.4;
    font-weight: 600;

    flex-shrink: 0;

    /*
     * Keeps product cards visually balanced.
     * Maximum 4 lines.
     */
    min-height: 96px;
    max-height: 96px;

    overflow: hidden;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    line-clamp: 4;
}


/* Product name link */

.rudrastu-product-carousel .rudrastu-product-name a {
    color: #2b1605;
    text-decoration: none;
}


/* Product name hover */

.rudrastu-product-carousel .rudrastu-product-name a:hover {
    color: #a87512;
}


/* =========================================================
   PRODUCT SKU
   ========================================================= */

.rudrastu-product-carousel .rudrastu-product-sku {
    width: 100%;

    margin-bottom: 8px;

    text-align: center;

    font-size: 13px;
    line-height: 1.4;

    color: #8b2e25;

    flex-shrink: 0;
}


/* =========================================================
   PRODUCT PRICE
   ========================================================= */

.rudrastu-product-carousel .rudrastu-product-price {
    width: 100%;

    margin-bottom: 15px;

    text-align: center;

    font-size: 16px;
    line-height: 1.4;
    font-weight: 600;

    color: #8c6415;

    flex-shrink: 0;
}


/* Price sale formatting */

.rudrastu-product-carousel .rudrastu-product-price del {
    color: #999999;
    font-weight: 400;
}

.rudrastu-product-carousel .rudrastu-product-price ins {
    text-decoration: none;
}


/* WooCommerce price elements */

.rudrastu-product-carousel .rudrastu-product-price .price {
    margin: 0;
}


/* =========================================================
   VIEW PRODUCT BUTTON
   ========================================================= */

.rudrastu-product-carousel .rudrastu-product-button {
    width: 100%;

    display: block;

    margin-top: auto;

    padding: 10px 18px;

    border: 1px solid #b8860b;
    border-radius: 5px;

    background: #ffffff;
    color: #8c6415;

    text-align: center;
    text-decoration: none;

    font-size: 13px;
    line-height: 1.3;
    font-weight: 600;

    transition:
        background-color 0.3s ease,
        color 0.3s ease;
}


/* Button hover */

.rudrastu-product-carousel .rudrastu-product-button:hover {
    background: #8c6415;
    color: #ffffff;
}


/* =========================================================
   NAVIGATION ARROWS
   ========================================================= */

.rudrastu-product-carousel .rudrastu-swiper-button-prev,
.rudrastu-product-carousel .rudrastu-swiper-button-next {
    width: 42px;
    height: 42px;

    position: absolute;

    top: 50%;

    transform: translateY(-50%);

    z-index: 20;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #b8860b;

    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
}


/* Previous */

.rudrastu-product-carousel .rudrastu-swiper-button-prev {
    left: 5px;
}


/* Next */

.rudrastu-product-carousel .rudrastu-swiper-button-next {
    right: 5px;
}


/* Arrow symbols */

.rudrastu-product-carousel .rudrastu-swiper-button-prev::after {
    content: "‹";

    color: #ffffff;

    font-size: 30px;
    line-height: 1;

    margin-top: -2px;
}

.rudrastu-product-carousel .rudrastu-swiper-button-next::after {
    content: "›";

    color: #ffffff;

    font-size: 30px;
    line-height: 1;

    margin-top: -2px;
}


/* Disabled arrows */

.rudrastu-product-carousel
.rudrastu-swiper-button-prev.swiper-button-disabled,
.rudrastu-product-carousel
.rudrastu-swiper-button-next.swiper-button-disabled {
    opacity: 0.35;
    cursor: default;
}


/* =========================================================
   TABLET
   768px - 1024px
   ========================================================= */

@media (min-width: 768px) and (max-width: 1024px) {

    /* Card */

    .rudrastu-product-carousel .rudrastu-product-card {
        padding: 14px;
    }


    /* Image */

    .rudrastu-product-carousel .rudrastu-product-image {
        height: 190px;
        margin-bottom: 13px;
    }

    .rudrastu-product-carousel .rudrastu-product-image img {
        max-height: 170px;
    }


    /* Product name */

    .rudrastu-product-carousel .rudrastu-product-name {
        font-size: 17px;
        line-height: 1.4;

        min-height: 95px;
        max-height: 95px;
    }


    /* SKU */

    .rudrastu-product-carousel .rudrastu-product-sku {
        font-size: 12px;
    }


    /* Price */

    .rudrastu-product-carousel .rudrastu-product-price {
        font-size: 15px;
    }


    /* Button */

    .rudrastu-product-carousel .rudrastu-product-button {
        font-size: 12px;
        padding: 9px 12px;
    }


    /* Arrows */

    .rudrastu-product-carousel .rudrastu-swiper-button-prev,
    .rudrastu-product-carousel .rudrastu-swiper-button-next {
        width: 38px;
        height: 38px;
    }

    .rudrastu-product-carousel .rudrastu-swiper-button-prev::after,
    .rudrastu-product-carousel .rudrastu-swiper-button-next::after {
        font-size: 27px;
    }

}


/* =========================================================
   MOBILE
   Up to 767px
   ========================================================= */

@media (max-width: 767px) {

    /* Card */

    .rudrastu-product-carousel .rudrastu-product-card {
        padding: 12px;
        border-radius: 10px;
    }


    /* Image */

    .rudrastu-product-carousel .rudrastu-product-image {
        height: 180px;
        margin-bottom: 12px;
    }

    .rudrastu-product-carousel .rudrastu-product-image img {
        max-height: 165px;
    }


    /* Product name */

    .rudrastu-product-carousel .rudrastu-product-name {
        font-size: 16px;
        line-height: 1.4;

        min-height: 90px;
        max-height: 90px;
    }


    /* SKU */

    .rudrastu-product-carousel .rudrastu-product-sku {
        font-size: 12px;
        margin-bottom: 7px;
    }


    /* Price */

    .rudrastu-product-carousel .rudrastu-product-price {
        font-size: 15px;
        margin-bottom: 12px;
    }


    /* Button */

    .rudrastu-product-carousel .rudrastu-product-button {
        font-size: 12px;
        padding: 9px 12px;
    }


    /* Arrows */

    .rudrastu-product-carousel .rudrastu-swiper-button-prev,
    .rudrastu-product-carousel .rudrastu-swiper-button-next {
        width: 36px;
        height: 36px;
    }


    .rudrastu-product-carousel .rudrastu-swiper-button-prev {
        left: 3px;
    }


    .rudrastu-product-carousel .rudrastu-swiper-button-next {
        right: 3px;
    }


    .rudrastu-product-carousel .rudrastu-swiper-button-prev::after,
    .rudrastu-product-carousel .rudrastu-swiper-button-next::after {
        font-size: 25px;
    }

}


/* =========================================================
   SMALL MOBILE
   Up to 480px
   ========================================================= */

@media (max-width: 480px) {

    /* Card */

    .rudrastu-product-carousel .rudrastu-product-card {
        padding: 10px;
    }


    /* Image */

    .rudrastu-product-carousel .rudrastu-product-image {
        height: 170px;
    }

    .rudrastu-product-carousel .rudrastu-product-image img {
        max-height: 155px;
    }


    /* Product name */

    .rudrastu-product-carousel .rudrastu-product-name {
        font-size: 15px;

        min-height: 84px;
        max-height: 84px;
    }


    /* SKU */

    .rudrastu-product-carousel .rudrastu-product-sku {
        font-size: 11px;
    }


    /* Price */

    .rudrastu-product-carousel .rudrastu-product-price {
        font-size: 14px;
    }


    /* Button */

    .rudrastu-product-carousel .rudrastu-product-button {
        font-size: 11px;
        padding: 8px 10px;
    }


    /* Arrows */

    .rudrastu-product-carousel .rudrastu-swiper-button-prev,
    .rudrastu-product-carousel .rudrastu-swiper-button-next {
        width: 34px;
        height: 34px;
    }


    .rudrastu-product-carousel .rudrastu-swiper-button-prev::after,
    .rudrastu-product-carousel .rudrastu-swiper-button-next::after {
        font-size: 23px;
    }

}