/* Bokifa Products Splide Styles 
 * Product Item Dimensions: Max Width 200px, Height 420px
 * Image Area: 200px x 250px
 * Content Area: 200px x 170px
 * Replicates exact Bokifa product design with hover functionality
 *
 * Uses Bokifa Theme Global CSS Variables:
 * --e-global-color-primary: #027A36 (primary green, buttons, links)
 * --e-global-color-secondary: #000 (secondary black, headings)
 * --e-global-color-text: #404040 (body text, descriptions)
 * --e-global-color-accent: #000 (accent color, emphasis)
 * --e-global-color-lighter: #9A9A9A (light text, muted content)
 * --e-global-color-dark: #000 (dark elements)
 * --e-global-color-border: #E2E2E2 (borders, dividers)
 * --e-global-color-backgroundfield: #F9F5F0 (light backgrounds)
 */

.bokifa-products-splide {
    /* Custom CSS variables for hover states and additional colors */
    --sale-color: #d63638; /* Sale badge color */
    --rating-color: #ffb900; /* Star rating color */
    --success-color: #00a32a; /* Success/progress color */
}

.elementor-widget-bokifa-products-splide {
    position: relative;
}

.elementor-widget-bokifa-products-splide .woocommerce {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.bokifa-products-splide-wrapper {
    position: relative;
    overflow: hidden;
}

.bokifa-products-splide {
    width: 100%;
    display: block !important;
    visibility: visible !important;
}

/* Ensure splide track and list are visible */
.bokifa-products-splide .splide__track {
    display: block !important;
    visibility: visible !important;
    overflow: visible;
}

.bokifa-products-splide .splide__list {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin: 0;
    padding: 0;
    list-style: none;
}

.bokifa-products-splide .splide__slide {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    flex-shrink: 0;
    position: relative;
    box-sizing: border-box;
    max-width: 200px;
    height: 520px;
    margin-right: 40px;
}

/* Ensure product blocks are visible */
/* .bokifa-products-splide .product-block {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: white;
    width: 100%;
    height: 100%;
    max-width: 200px;
    max-height: 420px;
    overflow: hidden;
    position: relative;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
} */

/* Product styling within slides */
.bokifa-products-splide .product {
    width: 100%;
    /* height: 100%; */
    max-width: 200px;
    max-height: 420px;
    display: flex;
    flex-direction: column;
}

.bokifa-products-splide .splide__track {
    overflow: visible;
}

.bokifa-products-splide .splide__list {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
}

.bokifa-products-splide .splide__slide {
    flex-shrink: 0;
    position: relative;
    box-sizing: border-box;
}

/* Product Block Hover Effect */
.bokifa-products-splide .product-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Product Transition Wrapper */
.bokifa-products-splide .product-transition {
    position: relative;
    overflow: hidden;
}

.bokifa-products-splide .product-image {
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    max-width: 200px;
    height: 300px;
}

.bokifa-products-splide .product-image img {
    width: 100%;
    height: 100%;
    max-width: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.bokifa-products-splide .product-block:hover .product-image img {
    transform: scale(1.05);
}

.bokifa-products-splide .product-content {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    max-width: 200px;
    max-height: 170px; /* 420 - 250 = 170px for content */
    overflow: hidden;
}

.bokifa-products-splide .woocommerce-loop-product__title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 8px 0;
    line-height: 1.3;
    max-height: 35px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.bokifa-products-splide .woocommerce-loop-product__title a {
    color: var(--e-global-color-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.bokifa-products-splide .woocommerce-loop-product__title a:hover {
    color: var(--e-global-color-primary);
}

/* Rating Styles */
.bokifa-products-splide .bokifa-wrapper-loop-rating {
    margin: 10px 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.bokifa-products-splide .star-rating {
    font-size: 14px;
    color: var(--rating-color);
}

.bokifa-products-splide .bokifa-wrapper-loop-rating span {
    font-size: 12px;
    color: var(--e-global-color-text);
}

/* Product Caption */
.bokifa-products-splide .product-caption {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Author Styles */
.bokifa-products-splide .product-author {
    margin: 5px 0;
    font-size: 12px;
}

.bokifa-products-splide .product-author a {
    color: var(--e-global-color-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.bokifa-products-splide .product-author a:hover {
    color: var(--e-global-color-primary);
}

/* Price Styles */
.bokifa-products-splide .price {
    font-weight: 600;
    margin: 8px 0;
    color: var(--e-global-color-primary);
}

.bokifa-products-splide .price del {
    color: var(--e-global-color-lighter);
    margin-right: 5px;
}

/* .bokifa-products-splide .price ins {
    text-decoration: none;
    color: var(--sale-color);
} */

/* Group Action Buttons (Hover Overlay) */
.bokifa-products-splide .group-action {
    position: absolute;
    top: 15px;
    right: 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 10;
}

.bokifa-products-splide .product-block:hover .group-action {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.bokifa-products-splide .shop-action {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bokifa-products-splide .shop-action button,
.bokifa-products-splide .shop-action a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--e-global-color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--e-global-color-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.bokifa-products-splide .shop-action button:hover,
.bokifa-products-splide .shop-action a:hover {
    background: var(--e-global-color-primary);
    color: white;
    transform: scale(1.1);
}

/* Quantity and Cart Section */
.bokifa-products-splide .quantity_cart {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.bokifa-products-splide .product-block:hover .quantity_cart {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Quantity Input */
.bokifa-products-splide .quantity input[type="number"] {
    width: 45px;
    height: 32px;
    text-align: center;
    border: 1px solid var(--e-global-color-border);
    border-radius: 4px;
    font-size: 12px;
}

/* Add to Cart Button */
.bokifa-products-splide .add_to_cart_button,
.bokifa-products-splide .product_type_simple {
    flex: 1;
    padding: 8px 12px;
    background: var(--e-global-color-primary);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bokifa-products-splide .add_to_cart_button:hover,
.bokifa-products-splide .product_type_simple:hover {
    background: var(--e-global-color-secondary);
    transform: translateY(-1px);
}

/* Sale Flash */
/* .bokifa-products-splide .onsale {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--sale-color);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    z-index: 5;
} */

/* Navigation Arrows */
.bokifa-products-splide .splide__arrows {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
}

.bokifa-products-splide .splide__arrow {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--e-global-color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.bokifa-products-splide .splide__arrow:hover {
    background: var(--e-global-color-primary);
    color: white;
    transform: scale(1.1);
}

.bokifa-products-splide .splide__arrow--prev {
    left: -20px;
}

.bokifa-products-splide .splide__arrow--next {
    right: -20px;
}

/* Pagination Dots */
.bokifa-products-splide .splide__pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 8px;
}

.bokifa-products-splide .splide__pagination__page {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--e-global-color-border);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.bokifa-products-splide .splide__pagination__page.is-active {
    background: var(--e-global-color-primary);
    transform: scale(1.2);
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .bokifa-products-splide .splide__slide {
        max-width: 190px;
    }
    
    .bokifa-products-splide .product-block,
    .bokifa-products-splide .product {
        max-width: 190px;
    }
    
    .bokifa-products-splide .product-image {
        max-width: 190px;
        height: 252px;
    }
    
    .bokifa-products-splide .product-image img {
        max-width: 190px;
        /* height: 240px; */
    }
    
    .bokifa-products-splide .product-content {
        max-width: 190px;
    }
}

@media (max-width: 1024px) {
    .bokifa-products-splide .splide__slide {
        margin-right: 40px;
        max-width: 180px;
    }
    
    .bokifa-products-splide .product-block,
    .bokifa-products-splide .product {
        max-width: 180px;
    }
    
    .bokifa-products-splide .product-image {
        max-width: 180px;
        height: 241px;
    }
    
    .bokifa-products-splide .product-image img {
        max-width: 180px;
        /* height: 220px; */
    }
    
    .bokifa-products-splide .product-content {
        max-width: 180px;
    }
}

@media (max-width: 768px) {
    .bokifa-products-splide .splide__slide {
        max-width: calc(50vw - 30px);
        margin-right: 30px;
        min-width: 160px;
    }
    
    .bokifa-products-splide .product-block,
    .bokifa-products-splide .product {
        max-width: calc(50vw - 30px);
        min-width: 160px;
        width: 100%;
    }
    
    .bokifa-products-splide .product-image {
        max-width: calc(50vw - 30px);
        min-width: 160px;
        width: 100%;
        height: 240px;
    }
    
    .bokifa-products-splide .product-image img {
        max-width: 100%;
        min-width: 160px;
        width: 100%;
        /* height: 200px; */
    }
    
    .bokifa-products-splide .product-content {
        max-width: calc(50vw - 30px);
        min-width: 160px;
        width: 100%;
        padding: 12px;
    }
}

@media (max-width: 600px) {
    .bokifa-products-splide .splide__slide {
        max-width: calc(50vw - 20px);
        min-width: 150px;
    }
    
    .bokifa-products-splide .product-block,
    .bokifa-products-splide .product {
        max-width: calc(50vw - 20px);
        min-width: 160px;
        width: 100%;
    }
    
    .bokifa-products-splide .product-image {
        max-width: calc(50vw - 20px);
        min-width: 150px;
        width: 100%;
        height: 240px;
    }
    
    .bokifa-products-splide .product-image img {
        max-width: 100%;
        min-width: 150px;
        width: 100%;
        /* height: 190px; */
    }
    
    .bokifa-products-splide .product-content {
        max-width: calc(50vw - 20px);
        min-width: 150px;
        width: 100%;
        padding: 10px;
    }
    
    .bokifa-products-splide .woocommerce-loop-product__title {
        font-size: 13px;
    }
    
    .bokifa-products-splide .price {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .bokifa-products-splide .splide__slide {
        max-width: calc(50vw - 15px);
        margin-right: 20px;
        min-width: 140px;
    }
    
    .bokifa-products-splide .product-block,
    .bokifa-products-splide .product {
        max-width: calc(50vw - 15px);
        min-width: 160px;
        width: 100%;
    }
    
    .bokifa-products-splide .product-image {
        max-width: calc(50vw - 15px);
        min-width: 140px;
        width: 100%;
        height: 240px;
    }
    
    .bokifa-products-splide .product-image img {
        max-width: 100%;
        min-width: 140px;
        width: 100%;
        /* height: 180px; */
    }
    
    .bokifa-products-splide .product-content {
        max-width: calc(50vw - 15px);
        min-width: 140px;
        width: 100%;
        padding: 8px;
    }
    
    .bokifa-products-splide .woocommerce-loop-product__title {
        font-size: 12px;
        margin: 0 0 6px 0;
    }
    
    .bokifa-products-splide .price {
        font-size: 15px;
        margin: 6px 0;
    }
    
    .bokifa-products-splide .product-author {
        font-size: 11px;
        margin: 3px 0;
    }
}

@media (max-width: 360px) {
    .bokifa-products-splide .splide__slide {
        max-width: calc(50vw - 10px);
        min-width: 130px;
    }
    
    .bokifa-products-splide .product-block,
    .bokifa-products-splide .product {
        max-width: calc(50vw - 10px);
        min-width: 160px;
        width: 100%;
    }
    
    .bokifa-products-splide .product-image {
        max-width: calc(50vw - 10px);
        min-width: 130px;
        width: 100%;
        height: 225px;
    }
    
    .bokifa-products-splide .product-image img {
        max-width: 100%;
        min-width: 130px;
        width: 100%;
        /* height: 170px; */
    }
    
    .bokifa-products-splide .product-content {
        max-width: calc(50vw - 10px);
        min-width: 130px;
        width: 100%;
        padding: 6px;
    }
    
    .bokifa-products-splide .woocommerce-loop-product__title {
        font-size: 11px;
        margin: 0 0 4px 0;
        max-height: 30px;
    }
    
    .bokifa-products-splide .price {
        font-size: 14px;
        margin: 4px 0;
    }
    
    .bokifa-products-splide .product-author {
        font-size: 10px;
        margin: 2px 0;
    }
}

.bokifa-products-splide .splide__track {
    overflow: visible;
}

.bokifa-products-splide .splide__list {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
}

.bokifa-products-splide .splide__slide {
    flex-shrink: 0;
    position: relative;
    box-sizing: border-box;
}

/* Product Item Styles (Inherit from existing product styles) */
.bokifa-products-splide .product-block {
    background: white;
    border-radius: 8px;
    /* overflow: hidden; */
    transition: all 0.3s ease;
    /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); */
    height: 100%;
    display: flex;
    flex-direction: column;
}

.bokifa-products-splide .product-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.bokifa-products-splide .product-block:hover .product-image img {
    transform: scale(1.05);
}

.bokifa-products-splide .product-content {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    max-width: 200px;
    max-height: 170px; /* 420 - 250 = 170px for content */
    overflow: hidden;
}

.bokifa-products-splide .woocommerce-loop-product__title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 8px 0;
    line-height: 1.3;
    max-height: 35px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.bokifa-products-splide .woocommerce-loop-product__title a {
    color: var(--e-global-color-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.bokifa-products-splide .woocommerce-loop-product__title a:hover {
    color: var(--e-global-color-primary);
}

.bokifa-products-splide .star-rating {
    margin: 0 0 10px 0;
    font-size: 14px;
}

.bokifa-products-splide .price {
    font-size: 18px;
    font-weight: 700;
    color: var(--e-global-color-primary);
    margin: 0 0 10px 0;
}

.bokifa-products-splide .price del {
    color: var(--e-global-color-lighter);
    font-weight: 400;
    margin-right: 5px;
}

.bokifa-products-splide .product-description {
    font-size: 14px;
    color: var(--e-global-color-text);
    line-height: 1.5;
    margin: 0 0 15px 0;
    flex-grow: 1;
}

.bokifa-products-splide .product-actions {
    margin-top: auto;
}

/* Sale and Featured Badges */
/* .bokifa-products-splide .onsale, */
.bokifa-products-splide span.featured {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--sale-color);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    z-index: 10;
}

.bokifa-products-splide span.featured {
    background: var(--rating-color);
    left: auto;
    right: 10px;
}

/* Splide Navigation Arrows */
/* .bokifa-products-splide .splide__arrows {
    position: relative;
} */

.bokifa-products-splide .splide__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--e-global-color-border);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.bokifa-products-splide .splide__arrow:hover {
    background: var(--e-global-color-primary);
    color: white;
    border-color: var(--e-global-color-primary);
    box-shadow: 0 4px 15px rgba(0, 124, 186, 0.3);
}

.bokifa-products-splide .splide__arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.bokifa-products-splide .splide__arrow--prev {
    left: -25px;
}

.bokifa-products-splide .splide__arrow--next {
    right: -25px;
}

.bokifa-products-splide .splide__arrow svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Splide Pagination */
.bokifa-products-splide .splide__pagination {
    position: relative;
    margin-top: 70px;
    text-align: center;
}

.bokifa-products-splide .splide__pagination__page {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin: 0 5px;
    border-radius: 50%;
    background: var(--e-global-color-border);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.bokifa-products-splide .splide__pagination__page.is-active,
.bokifa-products-splide .splide__pagination__page:hover {
    background: var(--e-global-color-primary);
    transform: scale(1.2);
}

/* Fraction Pagination */
.bokifa-products-splide .splide__pagination--fraction {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 10;
}

.bokifa-products-splide .splide__pagination__separator {
    margin: 0 5px;
    opacity: 0.7;
}

/* Progress Bar */
.bokifa-products-splide .splide__progress {
    position: relative;
    height: 4px;
    background: var(--e-global-color-backgroundfield);
    margin-top: 30px;
    border-radius: 2px;
    overflow: hidden;
}

.bokifa-products-splide .splide__progress__bar {
    height: 100%;
    background: var(--e-global-color-primary);
    transition: width 0.3s ease;
    border-radius: 2px;
}

/* Countdown Timer */
.bokifa-products-splide .sale-countdown {
    margin-top: 10px;
}

.bokifa-products-splide .countdown-timer {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
}

.bokifa-products-splide .countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--e-global-color-backgroundfield);
    padding: 5px 8px;
    border-radius: 4px;
    min-width: 35px;
}

.bokifa-products-splide .countdown-number {
    font-size: 14px;
    font-weight: 700;
    color: var(--sale-color);
    line-height: 1;
}

.bokifa-products-splide .countdown-label {
    font-size: 10px;
    color: var(--e-global-color-text);
    text-transform: uppercase;
    line-height: 1;
    margin-top: 2px;
}

.bokifa-products-splide .countdown-ended {
    color: var(--e-global-color-lighter);
    font-style: italic;
    text-align: center;
    display: block;
}

/* Deal Sold Progress */
.bokifa-products-splide .deal-sold {
    margin-top: 10px;
    position: relative;
}

.bokifa-products-splide .deal-sold-bar {
    height: 6px;
    background: var(--success-color);
    border-radius: 3px;
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}

.bokifa-products-splide .deal-sold-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 2s infinite;
}

.bokifa-products-splide .deal-sold-text {
    font-size: 12px;
    color: var(--e-global-color-text);
    margin-top: 5px;
    display: block;
    text-align: center;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .bokifa-products-splide .splide__arrow--prev {
        left: -20px;
    }
    
    .bokifa-products-splide .splide__arrow--next {
        right: -20px;
    }
}

@media (max-width: 768px) {
    .bokifa-products-splide .splide__arrow {
        width: 40px;
        height: 40px;
    }
    
    .bokifa-products-splide .splide__arrow--prev {
        left: -15px;
    }
    
    .bokifa-products-splide .splide__arrow--next {
        right: -15px;
    }
    
    .bokifa-products-splide .splide__arrow svg {
        width: 16px;
        height: 16px;
    }
    
    .bokifa-products-splide .woocommerce-loop-product__title {
        font-size: 14px;
    }
    
    .bokifa-products-splide .price {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .bokifa-products-splide .splide__arrow {
        display: none;
    }
    
    .bokifa-products-splide .countdown-item {
        min-width: 30px;
        padding: 4px 6px;
    }
    
    .bokifa-products-splide .countdown-number {
        font-size: 12px;
    }
    
    .bokifa-products-splide .countdown-label {
        font-size: 9px;
    }
}

/* Hide swiper elements (ensure no swiper styles conflict) */
.bokifa-products-splide .swiper,
.bokifa-products-splide .swiper-wrapper,
.bokifa-products-splide .swiper-slide,
.bokifa-products-splide .swiper-button-prev,
.bokifa-products-splide .swiper-button-next,
.bokifa-products-splide .swiper-pagination {
    display: none !important;
}

/* Loading State */
.bokifa-products-splide.loading {
    opacity: 0.6;
    pointer-events: none;
}

.bokifa-products-splide.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid var(--e-global-color-backgroundfield);
    border-top: 3px solid var(--e-global-color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 100;
}

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

/* Elementor Editor Compatibility */
.elementor-editor-active .bokifa-products-splide .splide__arrow {
    pointer-events: none;
}

/* Accessibility Improvements */
.bokifa-products-splide .splide__slide:focus,
.bokifa-products-splide .splide__arrow:focus,
.bokifa-products-splide .splide__pagination__page:focus {
    outline: 2px solid var(--e-global-color-primary);
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .bokifa-products-splide .product-block {
        border: 2px solid var(--e-global-color-secondary);
    }
    
    .bokifa-products-splide .splide__arrow {
        border: 2px solid var(--e-global-color-secondary);
        background: white;
        color: var(--e-global-color-secondary);
    }
    
    .bokifa-products-splide .splide__pagination__page {
        border: 1px solid var(--e-global-color-secondary);
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .bokifa-products-splide * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Infinite Loading Styles */
.bokifa-splide-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.bokifa-loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.bokifa-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--e-global-color-border);
    border-top: 3px solid var(--e-global-color-primary);
    border-radius: 50%;
    animation: bokifa-spin 1s linear infinite;
}

.bokifa-loading-spinner span {
    font-size: 14px;
    color: var(--e-global-color-text);
    font-weight: 500;
}

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

/* Loading state for splide container */
.bokifa-products-splide.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.bokifa-products-splide.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.5);
    z-index: 50;
}

/* AJAX Loading Skeleton Styles */
.bokifa-products-splide-loading .skeleton-item {
    pointer-events: none;
}

.bokifa-products-splide-loading .skeleton-placeholder {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: 4px;
}

.bokifa-products-splide-loading .skeleton-image {
    width: 100%;
    height: 300px;
    position: relative;
    background: #f0f0f0;
    border-radius: 8px 8px 0 0;
}

.bokifa-products-splide-loading .skeleton-image .skeleton-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 8px 8px 0 0;
}

.bokifa-products-splide-loading .skeleton-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bokifa-products-splide-loading .skeleton-title {
    height: 16px;
    width: 80%;
}

.bokifa-products-splide-loading .skeleton-price {
    height: 14px;
    width: 40%;
}

.bokifa-products-splide-loading .skeleton-author {
    height: 12px;
    width: 60%;
}

@keyframes skeleton-shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Loading skeleton responsive adjustments */

/* Skeleton responsive visibility using dynamic width-based calculation */
.bokifa-products-splide-loading .skeleton-slide {
    display: block;
    flex: 0 0 auto;
}

/* Desktop: All skeleton items visible by default */
.bokifa-products-splide-loading .splide__list {
    width: 100%;
    display: flex !important;
    gap: 60px; /* Match default Splide gap */
    overflow: hidden; /* Hide items that don't fit */
}

/* Disable Splide scrolling/dragging for skeleton */
.bokifa-products-splide-loading .splide__track {
    overflow: hidden !important;
    pointer-events: none; /* Prevent any interaction */
}

.bokifa-products-splide-loading .splide {
    overflow: hidden !important;
}

/* Hide navigation and pagination during skeleton loading */
.bokifa-products-splide-loading .splide__arrows,
.bokifa-products-splide-loading .splide__pagination {
    display: none !important;
}

/* Image loading optimizations */
.bokifa-products-splide .product-image {
    position: relative;
    overflow: hidden;
    background-color: #f8f8f8; /* Light background while loading */
}

.bokifa-products-splide .product-image img {
    transition: opacity 0.3s ease;
    width: 100%;
    height: auto;
}

/* Error state for broken images */
.bokifa-products-splide .product-image.image-error::before {
    content: "📷";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: #ccc;
    z-index: 1;
}

.bokifa-products-splide .product-image.image-error::after {
    content: "Image not available";
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    color: #999;
    text-align: center;
    z-index: 1;
}

.bokifa-products-splide-loading .skeleton-slide {
    width: 200px; /* Match default product width */
    min-width: 200px;
    max-width: 200px;
}

/* Tablet breakpoint: Adjust item size and gap */
@media (max-width: 1024px) {
    .bokifa-products-splide-loading .splide__list {
        gap: 40px; /* Match Splide tablet gap */
    }
    
    .bokifa-products-splide-loading .skeleton-slide {
        width: 190px;
        min-width: 190px;
        max-width: 190px;
    }
}

/* Large mobile: Calculate based on available width */
@media (max-width: 768px) {
    .bokifa-products-splide-loading .splide__list {
        gap: 30px; /* Match Splide mobile gap */
    }
    
    /* Calculate width: (100vw - container padding - gaps) / number of items that fit */
    /* For 2 items: (100vw - 60px - 30px) / 2 = calc((100vw - 90px) / 2) */
    .bokifa-products-splide-loading .skeleton-slide {
        width: calc((100vw - 90px) / 2);
        min-width: 140px; /* Minimum readable size */
        max-width: calc((100vw - 90px) / 2);
    }
    
    /* If calculated width is too small, show only 1 item */
    @media (max-width: 380px) {
        .bokifa-products-splide-loading .skeleton-slide:nth-child(n+2) {
            display: none;
        }
        
        .bokifa-products-splide-loading .skeleton-slide {
            width: calc(100vw - 60px); /* Full width minus padding */
            min-width: calc(100vw - 60px);
            max-width: calc(100vw - 60px);
        }
    }
    
    .bokifa-products-splide-loading .skeleton-image {
        height: 240px;
    }
    
    .bokifa-products-splide-loading .skeleton-content {
        padding: 12px;
        gap: 8px;
    }
    
    .bokifa-products-splide-loading .skeleton-title {
        height: 14px;
    }
    
    .bokifa-products-splide-loading .skeleton-price {
        height: 12px;
    }
    
    .bokifa-products-splide-loading .skeleton-author {
        height: 10px;
    }
}

/* Medium mobile: Optimize for 2 items if space allows */
@media (max-width: 600px) {
    .bokifa-products-splide-loading .splide__list {
        gap: 25px;
    }
    
    .bokifa-products-splide-loading .skeleton-slide {
        width: calc((100vw - 80px) / 2);
        min-width: 130px;
        max-width: calc((100vw - 80px) / 2);
    }
    
    /* If items would be too small, show only 1 */
    @media (max-width: 340px) {
        .bokifa-products-splide-loading .skeleton-slide:nth-child(n+2) {
            display: none;
        }
        
        .bokifa-products-splide-loading .skeleton-slide {
            width: calc(100vw - 50px);
            min-width: calc(100vw - 50px);
            max-width: calc(100vw - 50px);
        }
    }
}

/* Small mobile: Always show items that fit within screen */
@media (max-width: 480px) {
    .bokifa-products-splide-loading .splide__list {
        gap: 20px; /* Match Splide small gap */
    }
    
    /* Calculate for 2 items first */
    .bokifa-products-splide-loading .skeleton-slide {
        width: calc((100vw - 70px) / 2);
        min-width: 120px;
        max-width: calc((100vw - 70px) / 2);
    }
    
    /* If 2 items don't fit well, show 1 item */
    @media (max-width: 320px) {
        .bokifa-products-splide-loading .skeleton-slide:nth-child(n+2) {
            display: none;
        }
        
        .bokifa-products-splide-loading .skeleton-slide {
            width: calc(100vw - 40px);
            min-width: calc(100vw - 40px);
            max-width: calc(100vw - 40px);
        }
    }
    
    .bokifa-products-splide-loading .skeleton-image {
        height: 220px;
    }
    
    .bokifa-products-splide-loading .skeleton-content {
        padding: 10px;
        gap: 6px;
    }
}

/* Extra large screens: Show more items if configured */
@media (min-width: 1400px) {
    .bokifa-products-splide-loading .splide__list {
        gap: 80px;
    }
    
    .bokifa-products-splide-loading .skeleton-slide {
        width: 220px;
        min-width: 220px;
        max-width: 220px;
    }
}
