/* assets/css/filterable_carousel.css */

.sds-filter-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
    list-style: none;
    padding: 0;
}

.sds-filter-nav li {
    margin: 0;
}

.sds-filter-btn {
    background-color: transparent;
    color: #666;
    border: 2px solid #eee;
    padding: 10px 25px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: capitalize;
    outline: none;
}

.sds-filter-btn:hover {
    border-color: #00808a;
    color: #00808a;
}

.sds-filter-btn.active {
    background-color: #00808a;
    color: #fff;
    border-color: #00808a;
    box-shadow: 0 4px 10px rgba(0, 128, 138, 0.3);
}

.sds-filterable-carousel {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    margin: 0 -15px; /* offset the slide margin */
}

.sds-filterable-carousel.slick-initialized {
    opacity: 1;
    visibility: visible;
}

/* Slick adjustments */
.sds-filterable-carousel .slick-track {
    display: flex;
    align-items: stretch;
}

.sds-filterable-carousel .slick-slide {
    height: auto;
    margin: 0 15px;
    display: flex;
}

.sds-filterable-carousel .tft-popular-single-item {
    width: 100%;
}

.sds-filterable-carousel .slick-arrow {
    background: #fff;
    border: 1px solid #eee;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    color: #333;
    transition: all 0.3s;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.sds-filterable-carousel .slick-arrow:hover {
    background: #00808a;
    color: #fff;
    border-color: #00808a;
}

.sds-filterable-carousel .slick-prev {
    left: -10px;
}
.sds-filterable-carousel .slick-next {
    right: -10px;
}

/* Inherit design correctly */
.sds-filterable-carousel .tft-popular-single-item-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.sds-filterable-carousel .tft-popular-thumbnail {
    position: relative;
}

.sds-filterable-carousel .tft-popular-thumbnail img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.sds-filterable-carousel .tft-popular-item-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.sds-filterable-carousel .tft-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 10px;
    color: #333;
}
.sds-filterable-carousel a {
    text-decoration: none;
}

.sds-filterable-carousel .tft-popular-sub-info {
    margin-bottom: 15px;
}

.sds-filterable-carousel .tft-content {
    font-size: 14px;
    color: #777;
    margin: 0 0 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sds-filterable-carousel .tft-popular-item-price {
    margin-top: auto;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.sds-filterable-carousel .tft-pricing-info {
    display: flex;
    flex-direction: column;
}

.sds-filterable-carousel .tft-pricing {
    font-size: 20px;
    font-weight: bold;
    color: #2b4bd9;
}
