﻿/**
 * Product Carousel Styles
 * 
 * Custom styles for the product carousel shortcode
 */

/* Container */
.mc_product_carousel_container {
    position: relative;
    overflow: visible;
   
}

.mc_carousel_title {
    margin-bottom: 30px;
    font-size: 24px;
    font-weight: 600;
    color: #252525;
}

/* Carousel */
.mc_product_carousel {
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
}

/* Product Card */
.mc_product_card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;

    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
}

.mc_product_card:hover {
    transform: translateY(-5px);
    
}

/* Product Image */
.mc_product_image_container {
    position: relative;
    overflow: hidden;
    /* Usunięto padding-top: 100% zgodnie z wymaganiami */
    height: auto; /* Stała wysokość na PC */

}

.mc_product_image_link {
    position: relative; /* Zmieniono z absolute na relative */
    display: block;
    width: 100%;
    height: 100%;
}

.mc_product_image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.mc_product_image_link:hover .mc_product_image {
    transform: scale(1.05);
}

/* Product Content */
.mc_product_content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background: #F0F0F0; /* Zgodnie z wymaganiami */
}

.mc_product_category {
    color: #252525; /* var(--Foundation-Grey-grey-900) */
    font-family: "Red Hat Display";
    font-size: 20px;
    font-style: normal;
    font-weight: 800;
    line-height: normal;
    margin-bottom: 8px;
    display: inline-block;
    text-decoration: none;
}

.mc_product_category:hover {
    text-decoration: underline;
}

.mc_product_title {
    font-size: 12px;
    font-weight: 600;
    margin: 0 0 15px 0;
    line-height: 19px; /* 158.333% */
    font-family: "Red Hat Display";
    color: #252525; /* var(--Foundation-Grey-grey-900) */
    font-style: normal;
}

.mc_product_title a {
    color: #252525;
    text-decoration: none;
}

.mc_product_title a:hover {
    color: #EB8125;
}

/* Price */
.mc_product_price_container {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

/* Cena regularna (gdy nie ma promocji) */
.mc_product_regular_price {
    color: #575757; /* var(--Foundation-Grey-MAIN) */
    font-family: "Red Hat Display";
    font-size: 24px;
    font-style: normal;
    font-weight: 500;
    line-height: 21px; /* 87.5% */
}

/* Cena przekreślona (gdy jest promocja) */
.mc_product_price del {
    color: #575757; /* var(--Foundation-Grey-MAIN) */
    font-family: Montserrat;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 21px; /* 150% */
    text-decoration-line: line-through;
    display: block;
}

/* Cena promocyjna */
.mc_product_price ins {
    text-decoration: none;
    color: #575757; /* var(--Foundation-Grey-MAIN) */
    font-family: "Red Hat Display";
    font-size: 24px;
    font-style: normal;
    font-weight: 500;
    line-height: 21px; /* 87.5% */
    display: block;
}

/* Ukryj tekst dla czytników ekranowych */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Actions */
.mc_product_actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.mc_product_info_btn {
    color: #000;
    font-family: "Red Hat Display";
    font-size: 10px;
    font-style: normal;
    font-weight: 400;
    line-height: 19px; /* 190% */
    display: flex;
    padding: 4px 16px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 100px;
    border: 0.5px solid #575757; /* var(--Foundation-Grey-MAIN) */
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.mc_product_info_btn:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.mc_product_link_btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 100px;
    background-color: #EB8125;
    transition: background-color 0.2s ease;
}

.mc_product_link_btn:hover {
    background-color: #d06b15;
}

.mc_product_link_btn svg {
    width: 16px;
    height: 16px;
}

/* Pagination */
.mc_carousel_pagination {
    position: absolute !important;
    bottom: -50px !important;
    left: 0 !important;
    right: 0 !important;
    display: flex !important;
    justify-content: center;
    gap: 10px;
    z-index: 10;
}

.swiper-pagination-bullet {
    width: 10px !important;
    height: 10px !important;
    background: #FAFAFA !important;
    opacity: 1 !important;
    border-radius: 22px !important;
    flex-shrink: 0;
    transition: all 0.3s ease-in-out;
}

.swiper-pagination-bullet-active {
    background: #69BB82!important;
    width: 119px !important;
    height: 10px !important;
    border-radius: 100px !important;
}

#mc_slider_mobile .swiper-pagination{
    margin-bottom: 100px;
}

#mc_slider_mobile .elementor-button{
    margin-top:40px;
}

#mc_slider_mobile .elementor-slide-heading{
    max-width: 700px;
}

#mc_slider_mobile .elementor-slide-description{
     margin-top:20px;
}

#mc_slider_mobile .swiper-slide-contents{

    margin-bottom: 230px;
}

/* No products message */
.mc_no_products .swiper-pagination{
    padding: 30px;
    text-align: center;
    background-color: #f8f8f8;
    border-radius: 8px;
    color: #666;
}

/* Responsive */
@media (max-width: 1024px) {
    .mc_product_title {
        font-size: 12px;
    }
    
    .mc_product_content {
        padding: 15px;
    }
    
 
    .mc_product_category {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .mc_carousel_title {
        font-size: 20px;
    }
    
    .mc_product_actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .mc_product_link_btn {
        align-self: flex-end;
    }
    

    
    .mc_product_category {
        font-size: 16px;
    }
    
    .mc_product_regular_price,
    .mc_product_price ins {
        font-size: 20px;
    }
}