/* Cart Product Carousel Styles */

.fvDoplnek.fvDoplnek-upsell {
    position: relative;
    padding: 40px 0;
    background: #fafafa;
}

.fvDoplnek.fvDoplnek-upsell h4 {
    font-size: 28px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 32px 0;
    text-align: center;
    letter-spacing: -0.02em;
}

.fvDoplnek-category {
    position: relative;
    overflow: hidden;
    padding: 0 50px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.fvDoplnek-category.carousel-ready {
    opacity: 1;
}

/* Carousel Container */
.fvDoplnek-carousel-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.fvDoplnek-carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 20px;
}

/* Product Items - Modern Card Style */
.fvDoplnek-produkt {
    flex: 0 0 calc(25% - 15px);
    min-width: calc(25% - 15px);
    margin-bottom: 0 !important;
    padding: 0;
    background: #fff;
    border: none;
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    position: relative;
}

.fvDoplnek-produkt:hover {
    box-shadow: 0 12px 32px rgba(0,0,0,0.16);
    transform: translateY(-6px) scale(1.02);
}

.fvDoplnek-produkt form {
    flex-direction: column !important;
    align-items: stretch;
    height: 100%;
}

.fvDoplnek-produkt img {
    display: block !important;
    width: 100% !important;
    height: 280px !important;
    object-fit: cover;
    margin: 0 !important;
    border-radius: 0;
    transition: transform 0.4s ease;
}

.fvDoplnek-produkt:hover img {
    transform: scale(1.05);
}

.fvDoplnek-produkt .fvcontent {
    display: block !important;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.02));
}

.fvDoplnek-produkt .header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    position: relative;
}

.fvDoplnek-produkt .header input[type="checkbox"] {
    position: absolute;
    top: -260px;
    right: 12px;
    margin: 0;
    width: 24px;
    height: 24px;
    cursor: pointer;
    z-index: 5;
    appearance: none;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #ddd;
    border-radius: 6px;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.fvDoplnek-produkt .header input[type="checkbox"]:checked {
    background: #8b7355;
    border-color: #8b7355;
}

.fvDoplnek-produkt .header input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.fvDoplnek-produkt .header input[type="checkbox"]:hover {
    border-color: #8b7355;
    transform: scale(1.1);
}

.fvDoplnek-produkt .fvDoplnek-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.fvDoplnek-produkt .name {
    font-size: 15px;
    font-weight: 500;
    color: #1a1a1a;
    line-height: 1.4;
    min-height: 42px;
    display: block;
    text-align: left;
    letter-spacing: -0.01em;
}

.fvDoplnek-produkt .price {
    font-size: 18px;
    font-weight: 700;
    color: #8b7355;
    letter-spacing: -0.02em;
}

/* Navigation Arrows - Modern Style */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    color: #1a1a1a;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 300;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    backdrop-filter: blur(10px);
}

.carousel-nav:hover {
    background: #fff;
    color: #8b7355;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 28px rgba(0,0,0,0.2);
}

.carousel-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-nav.prev {
    left: 10px;
}

.carousel-nav.next {
    right: 10px;
}

.carousel-nav:disabled {
    opacity: 0.25;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.6);
}

.carousel-nav:disabled:hover {
    transform: translateY(-50%);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    color: #1a1a1a;
}

/* Dot Indicators - Minimalist Style */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 28px;
    padding: 12px 0;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.15);
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
}

.carousel-dot:hover {
    background: rgba(0, 0, 0, 0.35);
    transform: scale(1.3);
}

.carousel-dot.active {
    background: #8b7355;
    width: 32px;
    border-radius: 4px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .fvDoplnek-produkt {
        flex: 0 0 calc(33.333% - 14px);
        min-width: calc(33.333% - 14px);
    }

    .fvDoplnek-produkt img {
        height: 260px !important;
    }
}

@media (max-width: 768px) {
    .fvDoplnek.fvDoplnek-upsell {
        padding: 30px 0;
    }

    .fvDoplnek.fvDoplnek-upsell h4 {
        font-size: 24px;
        margin: 0 0 24px 0;
    }

    .fvDoplnek-category {
        padding: 0 50px;
    }

    .fvDoplnek-produkt {
        flex: 0 0 calc(50% - 10px);
        min-width: calc(50% - 10px);
    }

    .fvDoplnek-produkt img {
        height: 240px !important;
    }

    .fvDoplnek-produkt .fvcontent {
        padding: 16px;
    }

    .carousel-nav {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .fvDoplnek.fvDoplnek-upsell {
        padding: 24px 0;
    }

    .fvDoplnek.fvDoplnek-upsell h4 {
        font-size: 20px;
        margin: 0 0 20px 0;
    }

    .fvDoplnek-category {
        padding: 0 45px;
    }

    .fvDoplnek-produkt {
        flex: 0 0 100%;
        min-width: 100%;
    }

    .fvDoplnek-produkt img {
        height: 320px !important;
    }

    .fvDoplnek-produkt .header input[type="checkbox"] {
        top: -300px;
    }

    .carousel-nav {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }

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

    .carousel-nav.next {
        right: 4px;
    }
}

/* Smooth transitions */
.fvDoplnek-carousel-track.no-transition {
    transition: none;
}

/* Auto-play indicator */
.carousel-autoplay-indicator {
    text-align: center;
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    font-style: italic;
}

/* Loading state */
.fvDoplnek-category.loading {
    opacity: 0.6;
    pointer-events: none;
}
