/* Product Slider Styles - Splide alapú */

/* Slider wrapper */
.slider-wrapper {
    margin: 20px 0;
    font-family: 'Poppins', sans-serif;
    position: relative;
}

/* Splide slider container */
.product-slider {
    padding: 10px 0;
}

/* Slider product card */
.slider-product-card {
    background: #f5f5f5;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    padding: 15px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.slider-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* Slider image wrapper */
.slider-image-wrapper {
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 15px;
}

.slider-image-wrapper a {
    display: block;
    line-height: 0;
}

.slider-image-wrapper img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.slider-product-card:hover .slider-image-wrapper img {
    transform: scale(1.05);
}

/* No image placeholder */
.slider-no-image {
    width: 100%;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f1f1;
    color: #999;
    font-size: 14px;
    font-weight: 400;
}

/* Sale badge */
.slider-sale-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #ff1900;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 2;
}

/* Product details */
.slider-product-details {
    background-color: white;
    box-shadow: 0 7px 14px rgb(0 0 0 / 3%);
    border-radius: 10px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1;
    min-height: 275px;
}

/* Product category */
.slider-category {
    color: #7f8c8d;
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

/* Product name */
.slider-product-name {
    margin: 0px;
    font-size: 21px;
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
    margin-bottom: 10px;
}

.slider-product-name a {
    color: #0B2C13;
    text-decoration: none;
    transition: color 0.3s ease;
}

.slider-product-name a:hover {
    color: #3498db;
}

/* Product price */
.slider-product-price {
    margin-bottom: 20px;
    font-size: 17px;
    font-weight: 700;
    color: #0B2C13;
}

.slider-product-price del {
    color: #bdc3c7;
    font-weight: 400;
    margin-right: 8px;
}

.slider-product-price ins {
    color: #ff1900;
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
}

/* Product buttons */
.slider-product-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin-top: auto;
}

/* Cart wrapper */
.slider-cart-wrapper {
    display: flex;
}

.slider-cart-wrapper p.product.woocommerce.add_to_cart_inline {
    margin-bottom: 0px;
    width: 100%;
}

.slider-cart-wrapper .button,
.slider-cart-wrapper .single_add_to_cart_button,
.slider-cart-wrapper .ajax_add_to_cart {
    width: 100% !important;
    color: white !important;
    border: none !important;
    text-decoration: none !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    font-family: "Poppins", Sans-serif !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border-style: none !important;
    border-radius: 50px !important;
    padding: 15px 0px !important;
    background-color: #0B2C13 !important;
    border-color: #0B2C13 !important;
}

.slider-cart-wrapper .button:hover,
.slider-cart-wrapper .single_add_to_cart_button:hover,
.slider-cart-wrapper .ajax_add_to_cart:hover {
    background: #D7E4C9 !important;
    color: #0B2C13 !important;
    transform: translateY(-1px);
}

/* Details link */
.slider-details-link {
    display: inline-block;
    width: 100%;
    background: transparent;
    font-family: "Poppins", Sans-serif;
    color: #0B2C13;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.slider-details-link:hover {
    font-weight: 700;
}

/* No results message */
.slider-no-results {
    text-align: center;
    padding: 40px 20px;
    color: #7f8c8d;
    font-size: 16px;
    font-weight: 400;
    background: #f8f9fa;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
}

/* Splide navigation arrows */
.product-slider .splide__arrow {
    background: #0B2C13;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.product-slider .splide__arrow:hover {
    background: #D7E4C9;
    opacity: 1;
}

.product-slider .splide__arrow svg {
    fill: white;
    width: 16px;
    height: 16px;
}

.product-slider .splide__arrow:hover svg {
    fill: #0B2C13;
}

.product-slider .splide__arrow--prev {
    left: -15px;
}

.product-slider .splide__arrow--next {
    right: -15px;
}

.product-slider .splide__arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Slider Counter */
.slider-counter {
    text-align: center;
    margin-top: 25px;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #0B2C13;
}

.slider-counter .slider-current {
    font-weight: 700;
    font-size: 20px;
    color: #0B2C13;
}

.slider-counter .slider-separator {
    margin: 0 8px;
    color: #7f8c8d;
}

.slider-counter .slider-total {
    color: #7f8c8d;
}

/* Desktop Counter - visible on desktop/tablet */
.slider-desktop-counter {
    display: block;
}

/* Mobile Controls Container - hidden on desktop */
.slider-mobile-controls {
    display: none;
}

.slider-mobile-counter {
    margin: 0;
}

.slider-mobile-arrow {
    background: #0B2C13;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.slider-mobile-arrow svg {
    fill: white;
    width: 16px;
    height: 16px;
}

.slider-mobile-arrow:hover {
    background: #D7E4C9;
}

.slider-mobile-arrow:hover svg {
    fill: #0B2C13;
}

.slider-mobile-prev svg {
    transform: rotate(180deg);
}

/* Responsive design */
@media (max-width: 1024px) {
    .slider-image-wrapper img {
        height: 220px;
    }
    
    .product-slider .splide__arrow {
        width: 35px;
        height: 35px;
    }
    
    .product-slider .splide__arrow svg {
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 768px) {
    .slider-product-card {
        padding: 12px;
    }
    
    .slider-image-wrapper img {
        height: 200px;
    }
    
    .slider-product-details {
        padding: 15px;
        min-height: 250px;
    }
    
    .slider-product-name {
        font-size: 18px;
    }
    
    .slider-product-price {
        font-size: 16px;
    }
    
    .product-slider .splide__arrow {
        width: 30px;
        height: 30px;
    }
    
    .product-slider .splide__arrow svg {
        width: 12px;
        height: 12px;
    }
    
    .product-slider .splide__arrow--prev {
        left: -10px;
    }
    
    .product-slider .splide__arrow--next {
        right: -10px;
    }
}

@media (max-width: 480px) {
    .slider-product-card {
        padding: 10px;
    }
    
    .slider-image-wrapper img {
        height: 180px;
    }
    
    .slider-product-details {
        padding: 12px;
        min-height: 230px;
    }
    
    .slider-product-name {
        font-size: 16px;
    }
    
    .slider-product-price {
        font-size: 15px;
    }
    
    .slider-sale-badge {
        top: 10px;
        left: 10px;
        padding: 4px 10px;
        font-size: 11px;
    }
    
    /* Hide desktop arrows */
    .product-slider .splide__arrow {
        display: none !important;
    }
    
    /* Hide desktop counter */
    .slider-desktop-counter {
        display: none !important;
    }
    
    /* Show mobile controls */
    .slider-mobile-controls {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 20px;
        margin-top: 25px;
    }
    
    .slider-mobile-counter {
        display: block;
        margin: 0;
        font-size: 14px;
    }
    
    .slider-mobile-counter .slider-current {
        font-size: 18px;
    }
}



/* Loading animation */
.slider-cart-wrapper .loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-left: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
