/**
 * Product Carousel Styles
 * 
 * Custom styles for the product carousel shortcode
 */

/* Container */
.mc_product_carousel_container {
    margin: 40px 0;
    position: relative;
}

.mc_carousel_title {
    margin-bottom: 30px;
    font-size: 24px;
    font-weight: 600;
    color: #252525;
}

/* Carousel */
.mc_product_carousel {
    position: relative;
    overflow: hidden;
    /* Usunięto padding-bottom, ponieważ paginacja jest teraz pod kartami */
}

/* Product Card */
.mc_product_card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
}

.mc_product_card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Product Image */
.mc_product_image_container {
    position: relative;
    overflow: hidden;
    /* Usunięto padding-top: 100% zgodnie z wymaganiami */
    height: 225px; /* 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;
}

.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: "Plus Jakarta Sans";
    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: "Plus Jakarta Sans";
    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: "Plus Jakarta Sans";
    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: "Plus Jakarta Sans";
    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: "Plus Jakarta Sans";
    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: relative; /* Zmieniono z absolute na relative */
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px; /* Zwiększono odstęp od kart */
    padding-bottom: 20px;
}

.swiper-pagination-bullet {
    width: 13px !important;
    height: 13px !important;
    background: #CBCBCB !important;
    opacity: 1 !important;
    border-radius: 6.5px !important;
}

.swiper-pagination-bullet-active {
    background: #EB8125 !important;
}

/* No products message */
.mc_no_products {
    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_image_container {
        height: 180px; /* Zmniejszona wysokość na tabletach */
    }
    
    .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_image_container {
        height: 143px; /* Wysokość na komórce zgodnie z wymaganiami */
    }
    
    .mc_product_category {
        font-size: 16px;
    }
    
    .mc_product_regular_price,
    .mc_product_price ins {
        font-size: 20px;
    }
}