/**
 * Product Slider Styles
 *
 * @package EntourancePlugin
 */

.entourance-product-slider {
    position: relative;
    overflow: hidden;
}

.slider-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
}

.slider-wrapper {
    overflow: hidden;
    position: relative;
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 1.5rem;
}

.slider-card {
    flex: 0 0 calc(33.333% - 1rem);
    min-width: 0;
    display: flex;
    align-items: stretch;
}

/* Controlli di navigazione */
.slider-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #dee2e6;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.slider-control:hover {
    background: #fff;
    border-color: #007bff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

.slider-prev {
    left: -20px;
}

.slider-next {
    right: -20px;
}

/* Indicatori */
.slider-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.slider-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #dee2e6;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-indicator.active {
    background: #007bff;
    transform: scale(1.2);
}

/* Stili delle card (stessi della product list) */
.entourance-product-slider .card-link {
    width: 100%;
    height: 100%;
    display: block;
    text-decoration: none;
    color: inherit;
}

.entourance-product-slider .card-link:hover {
    text-decoration: none;
    color: inherit;
}

.entourance-product-slider .card {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    height: 100%;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    position: relative;
    min-height: 400px; /* Altezza minima uniforme */
}

.entourance-product-slider .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.entourance-product-slider .card-img-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
}

.entourance-product-slider .card-img-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.entourance-product-slider .card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 1.25rem;
}

.entourance-product-slider .card-meta {
    font-size: 0.9rem;
    color: #666;
    min-height: 1.5em; /* Altezza uniforme per meta */
    display: flex;
    align-items: center;
}

.entourance-product-slider .card-meta i {
    margin-right: 0.25rem;
}

.entourance-product-slider .card-title {
    margin-bottom: 0.75rem;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.4em; /* Altezza uniforme per titoli */
}

.entourance-product-slider .card-footer {
    padding: 1rem 1.25rem;
    background-color: #fff;
    margin-top: auto; /* Spinge il footer in basso */
    min-height: 60px; /* Altezza minima uniforme */
    display: flex;
    align-items: center;
}

.entourance-product-slider .card:after {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background-color: transparent;
}

.entourance-product-slider .badges-wrapper {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: space-between;
    align-items: flex-start;
}

.entourance-product-slider .type-badge {
    font-size: 0.8rem;
    padding: 0.5em 1em;
    background-color: #007bff;
    color: white;
    border-radius: 4px;
    display: inline-block;
    white-space: nowrap;
    flex-shrink: 0;
}

.entourance-product-slider .category-badge {
    font-size: 0.8rem;
    padding: 0.5em 1em;
    background-color: transparent;
    color: #007bff;
    border: 1px solid #007bff;
    border-radius: 4px;
    display: inline-block;
    white-space: nowrap;
    flex-shrink: 0;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-img-placeholder {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 0.375rem;
}

/* Responsive */
@media (max-width: 991.98px) {
    .slider-card {
        flex: 0 0 calc(50% - 0.75rem);
    }
}

@media (max-width: 575.98px) {
    .slider-card {
        flex: 0 0 100%;
    }
    
    .slider-control {
        width: 35px;
        height: 35px;
    }
    
    .slider-prev {
        left: -17.5px;
    }
    
    .slider-next {
        right: -17.5px;
    }
} 