.professional-products {
    display: flex;
    justify-content: center;
    margin: 0 auto;
    padding: 0px;
    overflow: hidden;
    border-radius: 25px;
    background-color: #f5f5f5;
    margin: 20px;
}

.container-professional-products {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    width: 100%;
    max-width: 1500px;
    transition: transform 0.3s ease-in-out;
}

.carusel-professional-container {
    display: flex;
    justify-content: center;
    flex-direction: column;
    max-width: 1500px;
    margin: 0 auto;
    position: relative;
    width: 100%;
}

.wrapper-professional-title {
    text-align: left;
    margin-top: 40px;
    margin-bottom: 20px;
}

.professional-product-section-title {
    font-size: 1.75rem;
    font-weight: bold;
    color: #333;
    letter-spacing: 1px;
    margin-left: 40px;
}

.carousel-professional-arrow-left,
.carousel-professional-arrow-right {
    position: absolute;
    top: 40%;
    background-color: rgba(0, 0, 0, 0.1);
    padding: 5px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000;
    opacity: 0.7;
    transition: opacity 0.3s ease, background-color 0.3s ease;
}

.carousel-professional-arrow-left {
    left: -10px;
}

.carousel-professional-arrow-right {
    right: 20px;
}

.professional-product-section {
    display: flex;
    gap: 20px;
    width: 100%;
    overflow-x: hidden;
    padding: 20px 40px 40px 40px;
    align-items: flex-start;
    height: 680px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: none;
    touch-action: pan-y;
}

.professional-product-item-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: fit-content;
}

.professional-product-item {
    flex: 0 0 330px;
    height: 550px;
    box-sizing: border-box;
    border-radius: 8px;
    padding: 16px;
    background-color: white;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    cursor: pointer;
    min-height: 550px;
    width: 330px;
}

.prf-product-section-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    letter-spacing: 1px;
}

.professional-product-item:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 24px rgba(0, 0, 0, 0.12);
    z-index: 100;
    transform-origin: center center;
    height: 600px;
}

.professional-product-item.loading {
    pointer-events: none;
    opacity: 0.8;
}

.professional-product-item.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    z-index: 10;
}

.professional-product-item .status-label {
    background-color: transparent;
    display: inline-block;
    padding: 5px 10px;
    margin: 0;
}

.status-label {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #00c07f;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    z-index: 2;
}

.promocja-badge-pro {
    background-color: rgba(15, 169, 172, 0.8) !important;
    top: 10px;
    left: 10px;
}

.nowość-badge-pro {
    background-color: #e1001d;
    top: 10px;
    left: 110px;
}

.professional-product-item:not(:has(.promocja-badge-pro)) .nowość-badge-pro {
    left: 10px;
}

.professional-product-info {
    margin-top: 10px;
    transition: margin-top 0.3s ease;
    text-align: left;
}

.sku-professional {
    color: #4a5568;
    font-size: 0.875rem;
    margin: 3px 0px;
}

.professional-product-title {
    font-size: 1rem;
    line-height: 1.5rem;
    font-weight: 500;
    margin: 3px 0;
    color: #000;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3rem;
}

.line-professional-product {
    height: 1px;
    background-color: rgb(224, 224, 224);
    width: 100%;
    box-sizing: border-box;
    border-width: initial;
    border-style: none;
    border-color: initial;
    border-image: initial;
    margin: 10px -16px;
    width: calc(100% + 32px);
}

.professional-price {
    font-size: 1.05rem;
    font-weight: bold;
    color: #000;
    margin-top: 10px;
    min-height: 1.5rem;
}

.availability-container-professional {
    display: flex;
    align-items: center;
    font-weight: 500;
    color: #02816f;
    padding-top: 8px;
    min-height: 2rem;
}

.availability-label-professional {
    color: #6c757d;
    font-weight: normal;
    margin-right: 5px;
    font-size: 0.875rem;
}

.availability-text-professional {
    color: #02816f;
    font-weight: bold;
    font-size: 14px;
}

.shipping-icon-professional {
    width: 18.52px;
    height: 14px;
    opacity: 0.7;
}

.add-to-cart-button-rec-professional {
    background: linear-gradient(to right, #0d3c55, #00b894);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 5px 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 10px;
    width: 93%;
    display: none;
    margin-left: -2px;
}

.professional-product-item:hover .add-to-cart-button-rec-professional {
    display: block;
}

.shipping-info-professional {
    background-color: #f5f5f5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 500;
    color: #6c757d;
    border-radius: 9999px;
    margin-top: 10px;
    margin-left: 0px;
    width: 90%;
    min-height: 2rem;
}

.image-professional-slider {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: visible;
    margin-top: 30px;
    min-height: 200px;
}

.professional-product-item .image-professional-container {
    position: relative;
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
    min-height: 180px;
}

.professional-product-item .professional-product-image {
    width: 100%;
    max-width: 180px;
    height: auto;
    object-fit: contain;
    margin-bottom: 10px;
}

.prev-arrow-professional, 
.next-arrow-professional, 
.thumbnails-professional {
    display: none;
}

.professional-product-item:hover .prev-arrow-professional,
.professional-product-item:hover .next-arrow-professional,
.professional-product-item:hover .thumbnails-professional {
    display: flex;
}

.prev-arrow-professional, 
.next-arrow-professional {
    background-color: rgba(0, 0, 0, 0.1);
    border: none;
    color: #000;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    display: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.prev-arrow-professional {
    right: -8px;
}

.next-arrow-professional {
    left: -8px;
}

.prev-arrow-professional:hover, 
.next-arrow-professional:hover {
    background-color: rgba(0, 0, 0, 0.2);
}

.thumbnails-professional {
    display: flex;
    justify-content: flex-start;
    gap: 5px;
    margin-top: 10px;
    overflow-x: scroll;
    white-space: nowrap;
    scrollbar-width: none;
    display: none;
}

.thumbnails-professional:hover {
    display: flex;
}

.thumbnails-professional::-webkit-scrollbar {
    display: none;
}

.thumbnail-professional {
    width: 50px;
    height: 50px;
    border: 1px solid #ddd;
    cursor: pointer;
    object-fit: cover;
    flex-shrink: 0;
}

.thumbnail-professional:hover {
    border-color: #02816f;
}

.professional-product-item:hover .professional-product-info {
    margin-top: 5px;
}

.professional-product-item:hover .prev-arrow-professional, 
.professional-product-item:hover .next-arrow-professional {
    display: flex;
    margin-top: 15px;
}

.professional-product-image {
    transition: opacity 0.5s ease;
}

.professional-product-section {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: none;
    touch-action: pan-y;
}

.professional-product-section::-webkit-scrollbar {
    display: none;
}

@media (max-width: 992px) {
    .professional-product-section {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        touch-action: pan-x pan-y;
        scroll-snap-type: x mandatory;
        scroll-padding: 0 20px;
    }
    
    .professional-product-item {
        scroll-snap-align: center;
        flex: 0 0 calc(90% - 20px);
        max-width: 350px;
        margin: 0 auto;
    }
    
    .professional-product-item:first-child {
        margin-left: auto;
    }
    
    .professional-product-item:last-child {
        margin-right: auto;
    }

    .professional-product-item:hover .prev-arrow-professional,
    .professional-product-item:hover .next-arrow-professional,
    .professional-product-item:hover .thumbnails-professional {
        display: none;
    }

    .professional-product-item:hover {
        transform: none;
        box-shadow: none;
        height: 550px;
    }

    .professional-product-item:hover .professional-product-info {
        margin-top: 10px;
    }

    .add-to-cart-button-rec-professional {
        display: block;
        width: 100%;
    }
    
    .carousel-arrow-left-professional {
        left: 0;
    }
}

@media (max-width: 768px) {
    .professional-products {
        height: auto;
        min-height: 620px;
    }

    .container-professional-products {
        height: auto;
        min-height: 610px;
    }

    .carusel-professional-container {
        max-width: 100%;
        height: auto;
        min-height: 580px;
    }

    .professional-product-section {
        justify-content: flex-start;
        scroll-snap-type: x mandatory;
        padding: 20px 20px 40px 20px;
        gap: 15px;
    }

    .professional-product-item {
        flex: 0 0 80%;
        max-width: 300px;
        height: 550px;
        scroll-snap-align: center;
        margin: 0;
    }

    .professional-product-item:first-of-type {
        margin-left: 0;
    }

    .professional-product-item + .professional-product-item {
        margin-left: 0;
    }

    .add-to-cart-button-rec-professional {
        font-size: 0.85rem;
        width: 100%;
        padding: 10px 15px;
    }

    .wrapper-professional-title {
        text-align: center;
        margin-top: 0;
        margin-bottom: 0;
    }

    .professional-product-section-title {
        font-size: 1.4rem;
        margin: 20px 0px;
    }

    .carousel-professional-arrow-left {
        left: 5%;
        padding: 5px;
        z-index: 1001;
    }

    .carousel-professional-arrow-right {
        right: 5%;
        padding: 5px;
        z-index: 1001;
    }
}

@media (max-width: 600px) {
    .professional-product-item {
        flex: 0 0 85%;
        max-width: 280px;
    }
}

@media (max-width: 515px) {
    .professional-product-item {
        flex: 0 0 90%;
        max-width: 260px;
    }
    
    .carousel-professional-arrow-left {
        left: 3%;
    }
    
    .carousel-professional-arrow-right {
        right: 3%;
    }
}

@media (max-width: 460px) {
    .professional-product-item {
        flex: 0 0 95%;
        max-width: 240px;
    }

    .professional-product-item .professional-product-image {
        max-width: 160px;
    }
}

@media (max-width: 400px) {
    .professional-product-item {
        flex: 0 0 98%;
        max-width: 220px;
    }
    
    .availability-container-professional {
        flex-direction: column;
        align-items: flex-start;
        font-size: 0.875rem;
        margin-top: 10px;
    }
    
    .availability-label-professional {
        margin-bottom: 5px;
    }
    
    .icon-text-wrapper-professional {
        display: flex;
        align-items: center;
    }
    
    .check-icon-professional {
        width: 9px;
        height: 7px;
        margin-right: 5px;
    }
    
    .shipping-info-professional {
        font-size: 0.7rem;
        padding: 5px;
    }

    .sku-professional {
        font-size: 0.775rem;
    }

    .professional-product-item .professional-product-image {
        max-width: 140px;
    }
}

@media (max-width: 365px) {
    .professional-product-item {
        flex: 0 0 78%;
        max-width: 78%;
    }

    .professional-product-item:first-of-type {
        margin-right: 0;
    }
    
    .professional-product-item:not(:first-of-type) {
        margin-left: 7px;
    }
}

@media (max-width: 360px) {
    .professional-product-item {
        flex: 0 0 98%;
        max-width: 200px;
    }
    
    .add-to-cart-button-rec-professional {
        font-size: 12px;
        padding: 8px 12px;
    }
}

@media (max-width: 335px) {
    .add-to-cart-button-rec-professional {
        font-size: 11.5px;
    }

    .shipping-info-professional svg {
        display: none;
    }
    
    .availability-text-professional {
        font-size: 0.875rem;
    }
    
    .professional-product-item {
        flex: 0 0 80%;
        max-width: 80%;
    }

    .carousel-professional-arrow-left {
        left: 3%;
        padding: 0;
    }
}

@media (max-width: 320px) {
    .professional-product-item {
        flex: 0 0 83%;
        max-width: 83%;
    }
}

.professional-product-item.dimmed {
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.professional-product-item.highlighted {
    border: 2px solid #02816f;
    box-shadow: 0 0 0 4px rgba(2, 129, 111, 0.2);
}

@keyframes professional-shimmer {
    0% { background-position: -468px 0 }
    100% { background-position: 468px 0 }
}

.loading-placeholder-professional {
    animation: professional-shimmer 1.5s infinite linear;
    background: linear-gradient(to right, #eeeeee 8%, #dddddd 18%, #eeeeee 33%);
    background-size: 800px 104px;
}

@media (prefers-color-scheme: dark) {
    .professional-products {
        background-color: #2d3748;
    }
    
    .professional-product-item {
        background-color: #4a5568;
        color: #f7fafc;
    }
    
    .professional-product-title,
    .professional-price {
        color: #f7fafc;
    }
    
    .line-professional-product {
        background-color: #718096;
    }
    
    .shipping-info-professional {
        background-color: #2d3748;
    }
}

@media all and (-ms-high-contrast: none) {
    .professional-product-section {
        display: -ms-flexbox;
        -ms-flex-wrap: nowrap;
    }
    
    .professional-product-item {
        -ms-flex: 0 0 auto;
        width: 300px;
        margin-right: 20px;
    }
}

@-moz-document url-prefix() {
    .professional-product-section {
        scrollbar-width: none;
    }
}

.professional-product-item.hidden {
    display: none;
}

.professional-product-item.transitioning {
    transition: all 0.5s ease;
}

.debug-professional .professional-product-item {
    outline: 1px dashed rgba(255, 0, 0, 0.3);
}

.sr-only-professional {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.professional-product-item:active {
    transform: scale(0.98);
}

.add-to-cart-button-rec-professional:active {
    transform: translateY(1px);
}

.will-change-professional {
    will-change: transform, opacity;
}

@media print {
    .professional-products {
        display: none;
    }
}

.professional-product-image {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.professional-product-section {
    backface-visibility: hidden;
}

@media (prefers-reduced-motion: reduce) {
    .professional-product-item,
    .professional-product-image,
    .add-to-cart-button-rec-professional {
        transition: none !important;
        animation: none !important;
    }
}




/* Wyłączenie stylów dla ciemnego motywu */
@media (prefers-color-scheme: dark) {
    .professional-products {
        background-color: #f5f5f5; /* przywróć oryginalny kolor tła */
    }
    
    .professional-product-item {
        background-color: white; /* przywróć oryginalne tło elementów */
        color: initial; /* przywróć oryginalne kolory tekstu */
    }
    
    .professional-product-title,
    .professional-price {
        color: #000; /* przywróć oryginalny kolor tekstu */
    }
    
    .line-professional-product {
        background-color: rgb(224, 224, 224); /* przywróć oryginalny kolor linii */
    }
    
    .shipping-info-professional {
        background-color: #f5f5f5; /* przywróć oryginalne tło */
        color: #6c757d; /* przywróć oryginalny kolor tekstu */
    }
}