.ai-recommendations-block {
    margin: 0 20px;
}

.ai-recommendations-slider-container {
    position: relative;
    margin: 20px 0;
    overflow: hidden;
    padding-bottom: 50px; /* Add space for dots */
}

.ai-recommendations-slider {
    display: flex;
    transition: transform 0.3s ease;
    width: 100%;
    align-items: stretch; /* Make all items same height */
}

.slider-item {
    flex: 0 0 auto;
    box-sizing: border-box;
    padding: 0 10px;
    width: 25%;
    min-width: 0;
    display: flex; /* Make it a flex container */
}

.slider-item .product-item-info {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 15px;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    width: 100%; /* Take full width of flex item */
    box-sizing: border-box; /* Ensure border is included in height calculation */
    margin-top: 2px; /* Add margin to compensate for hover transform */
}

.slider-item .product-item-info:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    border-color: #ccc;
}

.slider-navigation {
    position: absolute;
    top: 45%;
    width: 100%;
    z-index: 10;
    pointer-events: none;
}

.slider-btn {
    position: absolute;
    top: -20px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #333;
}

.slider-btn:hover {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.slider-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.slider-prev {
    left: 0;
}

.slider-next {
    right: 0;
}

.slider-dots {
    text-align: center;
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    z-index: 5;
}

.slider-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    margin: 0 5px;
    cursor: pointer;
    transition: background 0.3s ease;
    border: none;
    padding: 0;
}

.slider-dot.active {
    background: #007bdb;
}

.product-image-container-1 {
    width: 240px;
    height: auto;
    aspect-ratio: 240 / 300;
}

.product-image-container-1 span.product-image-wrapper {
    height: 100%;
    width: 100%;
}

@supports not (aspect-ratio: auto) {
    .product-image-container-1 span.product-image-wrapper {
        padding-bottom: 125%;
    }
}

/* Swatch styling */
.swatch-option {
    display: inline-block;
    width: 25px;
    height: 25px;
    margin: 2px;
    border: 2px solid #ccc;
    cursor: pointer;
    text-align: center;
    line-height: 26px !important;
    font-size: 12px;
    transition: all 0.2s ease;
}

.swatch-option:hover {
    border-color: #007bdb;
}

.swatch-option.selected {
    border-color: #007bdb;
    box-shadow: 0 0 0 2px rgba(0, 123, 219, 0.3);
}

.swatch-option.text {
    min-width: 30px;
    width: auto;
    padding: 0 8px;
    background: #f5f5f5;
}

.swatch-attribute {
    margin-bottom: 10px;
}

.swatch-attribute-options {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
}

.product-item-actions .tocart.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.product-item-actions .tocart:not(.disabled) {
    background-color: #007bdb;
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .slider-item {
        width: 100%;
    }

    .ai-recommendations-slider-container {
        padding-bottom: 60px; /* More space on mobile */
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .slider-item {
        width: 50%;
    }
}
