.mktk-product-carousel-section {
    margin: 60px 0;
    padding: 0 20px 40px 20px;
    overflow-x: hidden;
    max-width: 100%;
}

.mktk-carousel-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
    font-weight: 600;
    color: #333;
}

.mktk-product-carousel-container {
    max-width: 1200px;
    margin: 10px auto;
    position: relative;
    padding: 20px 50px 30px 50px;
}

.mktk-product-carousel {
    position: relative;
    width: 100%;
    min-height: 400px;
    overflow: hidden;
    padding: 45px 0;
}

.mktk-carousel-track {
    display: flex;
    min-height: 400px;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.mktk-carousel-slide {
    flex: 0 0 80%;
    min-height: 400px;
    padding: 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.mktk-slide-content {
    width: 100%;
    min-height: 350px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(0.85);
    opacity: 0.3;
    box-sizing: border-box;
}

.mktk-carousel-slide.active .mktk-slide-content {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.mktk-slide-text {
    flex: 1;
    padding-left: 40px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mktk-slide-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
    word-wrap: break-word;
}

.mktk-slide-description {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    word-wrap: break-word;
}

.mktk-slide-description p:last-child {
    margin-bottom: 0;
}

.mktk-slide-description p:first-child {
    margin-top: 0;
}

.mktk-slide-image {
    flex: 1;
    max-width: 400px;
    max-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.mktk-slide-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 10px;
    height: auto;
    width: auto;
}

.mktk-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 2px solid #f0f0f0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s ease;
    z-index: 10;
    color: #333;
    user-select: none;
}

.mktk-carousel-nav:hover {
    border-color: #ddd;
    background: #f9f9f9;
    transform: translateY(-50%) scale(1.1);
}

.mktk-carousel-nav:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

.mktk-carousel-nav.prev {
    left: 20px;
}

.mktk-carousel-nav.next {
    right: 20px;
}

.mktk-carousel-indicators {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.mktk-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    user-select: none;
}

.mktk-indicator:hover {
    background: #999;
}

.mktk-indicator:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

.mktk-indicator.active {
    background: #333;
    transform: scale(1.2);
}

/* Single slide layout */
.mktk-product-carousel[data-single-slide="true"] .mktk-carousel-track {
    justify-content: center;
}

.mktk-product-carousel[data-single-slide="true"] .mktk-carousel-slide {
    flex: 0 0 100%;
}

/* Desktop layout tuning */
@media (min-width: 1025px) {
    .mktk-product-carousel-section {
        margin: 50px 0;
        padding: 0 24px 24px 24px;
    }

    .mktk-carousel-title {
        margin-bottom: 24px;
    }

    .mktk-product-carousel-container {
        max-width: 1440px;
        padding: 10px 52px 24px 52px;
    }

    .mktk-product-carousel {
        min-height: 0;
        padding: 20px 0 34px 0;
    }

    .mktk-product-carousel::before,
    .mktk-product-carousel::after {
        content: "";
        position: absolute;
        top: 20px;
        bottom: 34px;
        width: 76px;
        pointer-events: none;
        z-index: 6;
    }

    .mktk-product-carousel::before {
        left: 0;
        background: linear-gradient(to right, #fff 0%, rgba(255, 255, 255, 0) 100%);
    }

    .mktk-product-carousel::after {
        right: 0;
        background: linear-gradient(to left, #fff 0%, rgba(255, 255, 255, 0) 100%);
    }

    .mktk-carousel-track {
        align-items: center;
        min-height: 0;
    }

    .mktk-carousel-slide {
        flex: 0 0 84%;
        align-items: center;
        min-height: 0;
    }

    .mktk-slide-content {
        min-height: 0;
        padding: 28px 42px;
        gap: 42px;
        justify-content: center;
    }

    .mktk-carousel-slide .mktk-slide-content {
        transform: scale(0.96);
        opacity: 0.45;
    }

    .mktk-carousel-slide.active .mktk-slide-content {
        transform: scale(1);
        opacity: 1;
    }

    .mktk-slide-image {
        flex: 0 0 32%;
        max-width: 320px;
        max-height: 260px;
    }

    .mktk-slide-text {
        flex: 1 1 auto;
        align-self: stretch;
        padding-left: 0;
        max-width: 840px;
    }

    .mktk-slide-title {
        font-size: 30px;
        margin-bottom: 16px;
    }

    .mktk-slide-description {
        line-height: 1.55;
    }

    .mktk-carousel-indicators {
        bottom: -24px;
    }
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .mktk-product-carousel-container {
        padding: 20px 30px 30px 30px;
    }
    
    .mktk-product-carousel {
        min-height: 350px;
    }
    
    .mktk-carousel-track {
        min-height: 350px;
    }
    
    .mktk-carousel-slide {
        flex: 0 0 92%;
        min-height: 350px;
    }
    
    .mktk-slide-content {
        padding: 30px;
        min-height: 300px;
    }

    .mktk-carousel-slide .mktk-slide-content {
        transform: scale(0.96);
        opacity: 0.45;
    }

    .mktk-carousel-slide.active .mktk-slide-content {
        transform: scale(1);
        opacity: 1;
    }

    .mktk-slide-title {
        font-size: 24px;
    }
    
    .mktk-slide-image {
        max-height: 300px;
    }
}

@media (max-width: 768px) {
    .mktk-product-carousel-section {
        margin: 40px 0;
        padding: 0 8px;
    }
    
    .mktk-carousel-title {
        font-size: 24px !important;
        margin-bottom: 30px;
    }
    
    .mktk-product-carousel-container {
        max-width: none;
        padding: 16px 6px 10px 6px;
        overflow: visible;
    }

    .mktk-product-carousel {
        height: auto;
        min-height: 0;
        overflow: visible;
        padding: 20px 0 44px 0;
    }

    .mktk-carousel-track {
        min-height: 0;
    }

    .mktk-carousel-slide {
        flex: 0 0 96%;
        min-height: 0;
    }

    .mktk-carousel-slide .mktk-slide-content {
        transform: scale(0.98);
        opacity: 0.35;
    }

    .mktk-slide-content {
        flex-direction: column;
        padding: 18px;
        text-align: center;
        min-height: auto;
    }
    
    .mktk-slide-image {
        order: -1;
        margin-bottom: 15px;
        max-width: 100%;
        height: 180px;
    }

    .mktk-slide-text {
        padding-left: 0;
        margin-bottom: 0;
    }

    .mktk-carousel-nav {
        top: auto;
        bottom: 0;
        transform: none;
        width: 36px;
        height: 36px;
        font-size: 18px;
        background: rgba(255, 255, 255, 0.92);
    }

    .mktk-carousel-nav:hover {
        transform: scale(1.05);
    }

    .mktk-carousel-nav.prev {
        left: 6px;
    }

    .mktk-carousel-nav.next {
        right: 6px;
    }

    .mktk-carousel-indicators {
        bottom: 13px;
    }
}

@media (max-width: 480px) {
    .mktk-product-carousel-section {
        margin: 30px 0;
        padding: 0 6px;
    }
    
    .mktk-product-carousel-container {
        padding: 14px 4px 8px 4px;
    }

    .mktk-carousel-slide {
        flex: 0 0 96%;
        padding: 0;
    }

    .mktk-slide-content {
        padding: 14px;
    }
    
    .mktk-carousel-title {
        font-size: 20px !important;
        margin-bottom: 20px;
    }

    .mktk-slide-title {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .mktk-slide-description {
        font-size: 14px;
        line-height: 1.4;
    }

    .mktk-carousel-nav {
        width: 34px;
        height: 34px;
        font-size: 16px;
    }

    .mktk-carousel-nav.prev {
        left: 4px;
    }

    .mktk-carousel-nav.next {
        right: 4px;
    }
    
    .mktk-slide-image {
        height: 150px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mktk-carousel-track,
    .mktk-slide-content,
    .mktk-carousel-nav,
    .mktk-indicator {
        transition: none !important;
    }
}
