.product-slider {
    position: relative;
    width: 90%;
    margin: 0 auto;
    padding: 2rem;
    border-radius: 20px;
    overflow: hidden;
}

.product-slider::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 111, 89, 0.1) 0%, rgba(255, 111, 89, 0) 70%);
    z-index: 0;
}

.slides-container {
    position: relative;
    height: 500px;
    overflow: hidden;
    border-radius: 15px;
    z-index: 1;
}

.product-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s cubic-bezier(0.25, 0.8, 0.25, 1), visibility 0.8s;
    transform: translateX(50px);
}

.product-slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    transition: opacity 0.8s, transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1), visibility 0.8s;
}

.product-container {
    display: flex;
    height: 100%;
    padding: 2rem;
    gap: 5%;
    align-items: center;
}

.product-text {
    flex: 1;
    padding: 2.5rem;
    border-radius: 15px;
    max-width: 60%;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0s, opacity 0s;
}

.product-slide.active .product-text {
    transform: translateY(0);
    opacity: 1;
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.8s;
    transition-delay: 0.2s;
}

.product-text h1 {
    font-family: 'Fredoka One', cursive;
    font-size: 2.8rem;
    color: var(--gray);
    margin-bottom: 1rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

.product-text p {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--gray);
    margin: 1.5rem 0;
}

.product-img {
    width: 35%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.product-img-wrapper {
    position: relative;
    transform: translateX(40px) scale(0.9);
    opacity: 0;
    transition: transform 0s, opacity 0s;
}

.product-slide.active .product-img-wrapper {
    transform: translateX(0) scale(1);
    opacity: 1;
    transition: transform 0.9s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.8s;
    transition-delay: 0.4s;
}

.product-img img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 8px solid var(--accent);
    box-shadow: 0 15px 30px rgba(44, 48, 42, 0.18);
    transition: all 0.4s ease;
    transform-style: preserve-3d;
}

.product-img-wrapper:hover img {
    transform: scale(1.05) rotate(-2deg);
    box-shadow: 0 20px 40px rgba(44, 48, 42, 0.25);
}

@keyframes popKraal {
    0% { transform: scale(0); opacity: 0; }
    80% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.kralen-container {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2;
}

.kraal {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    opacity: 0;
    animation: popKraal 0.6s forwards, float 3s ease-in-out infinite;
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
}

.kraal:nth-child(1) {
    animation-delay: 1.2s, 2s;
    background: var(--primary);
}
.kraal:nth-child(2) {
    animation-delay: 1.5s, 2.3s;
    background: var(--secondary);
}
.kraal:nth-child(3) {
    animation-delay: 1.8s, 2.6s;
    background: var(--accent);
}
.kraal:nth-child(4) {
    animation-delay: 2.1s, 2.9s;
    background: var(--dark);
}
.kraal:nth-child(5) {
    animation-delay: 2.4s, 3.2s;
    background: var(--primary);
}

.slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 2rem;
    position: relative;
    z-index: 10;
}

.slider-indicators {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.indicator {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--accent);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.indicator.active {
    background-color: var(--secondary);
    transform: scale(1.4);
    box-shadow: 0 0 12px rgba(24, 169, 153, 0.5);
}

.indicator:hover {
    transform: scale(1.3);
    background-color: var(--primary);
}

.arrow-control {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.arrow-control:hover {
    background-color: var(--accent);
    transform: scale(1.1);
}

.arrow-control svg {
    width: 20px;
    height: 20px;
    fill: var(--gray);
}

.arrow-control:hover svg {
    fill: var(--dark);
}

@media (max-width: 1100px) {
    .product-container {
        flex-direction: column;
        gap: 30px;
    }

    .product-text, .product-img {
        max-width: 100%;
        width: 100%;
    }

    .product-img {
        order: -1;
    }

    .slides-container {
        height: auto;
        min-height: 700px;
    }
}

@media (max-width: 768px) {
    .product-slider {
        padding: 1.5rem;
        max-width: 95%;
        height: auto;
    }

    .product-text h1 {
        font-size: 2.2rem;
    }

    .product-text p {
        font-size: 1rem;
        line-height: 1.6;
    }

    .product-img img {
        width: 250px;
        height: 250px;
    }
}

@media (max-width: 480px) {
    .product-slider {
        padding: 1rem;
        width: 100%;
        height: auto;
    }

    .slides-container {
        min-height: 800px;
        height: auto;
    }

    .product-text h1 {
        font-size: 1.8rem;
    }

    .product-img img {
        width: 200px;
        height: 200px;
    }

    .kraal {
        width: 12px;
        height: 12px;
    }

    .slider-controls {
        margin-top: 1rem;
    }

    .indicator {
        width: 12px;
        height: 12px;
    }

    .arrow-control {
        width: 30px;
        height: 30px;
    }
}
