/* =========================================================
   CFPS - Custom Filterable Product Slider Styles
   ========================================================= */

.cfps-wrapper {
    background-color: #1a1a1a;
    color: #ffffff;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    padding: 40px 20px 30px 20px;
    width: 100%;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.cfps-wrapper *,
.cfps-wrapper *::before,
.cfps-wrapper *::after {
    box-sizing: border-box;
}

/* ============================================== */
/* FILTERS (DESKTOP)                              */
/* ============================================== */
.cfps-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.cfps-filter-btn {
    background: none;
    border: none;
    color: #a0a0a0;
    font-size: 16px;
    cursor: pointer;
    position: relative;
    padding-bottom: 5px;
    font-family: inherit;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.cfps-filter-btn sup {
    font-size: 10px;
    margin-left: 2px;
    top: -0.8em;
    position: relative;
}

.cfps-filter-btn:hover,
.cfps-filter-btn.active {
    color: #ffffff;
    background: #DD7210;
    padding: 5px 10px;
    border-radius: 4px;
}

.cfps-filter-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #ffffff;
    opacity: 0;
}

/* ============================================== */
/* SLIDER CONTAINER                               */
/* ============================================== */
.cfps-slider-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    padding: 0 60px;
}

.cfps-swiper {
    overflow: hidden;
    padding-bottom: 10px;
}

.cfps-wrapper .swiper-wrapper {
    display: flex;
    align-items: stretch;
}

.cfps-wrapper .swiper-slide {
    height: auto;
    display: flex;
    flex-shrink: 0;
}

.cfps-wrapper .swiper-slide.cfps-hidden {
    display: none !important;
}

.cfps-item {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.cfps-item-link {
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease;
    width: -webkit-fill-available;
}

.cfps-wrapper .swiper-slide:not(.swiper-slide-active) a {
    width: -webkit-fill-available;
}

.cfps-item-link:hover {
    transform: translateY(-5px);
}

.cfps-img-wrapper {
    position: relative;
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
    height: 0;
    padding-bottom: 100%;
    margin-bottom: 15px;
    min-height: 261px;
    min-width: 261px;
}

.cfps-img-wrapper img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 95%;
    max-height: 95%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: opacity 0.4s ease;
}

.cfps-img-wrapper img.secondary-img {
    opacity: 0;
    z-index: 2;
}

.cfps-item-link:hover .cfps-img-wrapper img.secondary-img {
    opacity: 1;
}

.cfps-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #e67e22;
    color: #ffffff;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 3px;
    z-index: 3;
    letter-spacing: 0.5px;
}

.cfps-cats {
    font-size: 10px;
    color: #888888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    text-align: center;
}

.cfps-title {
    font-size: 17px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 10px 0;
    text-align: center;
    line-height: 1.3;
    min-height: 27px;
    transition: color 0.3s ease;
}

.cfps-item-link:hover .cfps-title {
    color: #e67e22;
}

.cfps-price {
    font-size: 15px;
    text-align: center;
    margin: 0;
}

.cfps-price del {
    color: #888888;
    text-decoration: line-through;
    margin-right: 8px;
    font-weight: normal;
    opacity: 0.8;
}

.cfps-price ins {
    color: #ff7d00 !important;
    text-decoration: none;
    font-weight: bold;
    background: #000000;
}

/* ============================================== */
/* NAVIGATION ARROWS                              */
/* ============================================== */
.cfps-nav-btn {
    position: absolute;
    top: 30%;
    transform: translateY(-50%);
    width: 19px;
    height: 58px;
    background-color: #1a1a1a;
    border: 1px solid #555;
    border-radius: 50%;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s ease;
}

.cfps-nav-btn:hover {
    background-color: #e67e22;
    border-color: #e67e22;
    transform: translateY(-50%) scale(1.1);
}

.cfps-nav-btn svg {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px;
    min-height: 22px;
    fill: #ffffff !important;
    display: block !important;
}

.cfps-nav-prev { left: 0; }
.cfps-nav-next { right: 0; }

/* ============================================== */
/* PAGINATION BULLETS                             */
/* ============================================== */
.cfps-wrapper .swiper-pagination {
    position: relative !important;
    bottom: auto !important;
    margin-top: 20px;
    text-align: center;
    line-height: 0;
    width: 100%;
}

.cfps-wrapper .swiper-pagination .swiper-pagination-bullet,
.cfps-wrapper .swiper-pagination-bullet {
    width: 12px !important;
    height: 12px !important;
    background: #555555 !important;
    opacity: 1 !important;
    margin: 0 5px !important;
    border-radius: 50% !important;
    transition: all 0.3s ease !important;
    display: inline-block !important;
    padding: 0 !important;
}

.cfps-wrapper .swiper-pagination .swiper-pagination-bullet-active,
.cfps-wrapper .swiper-pagination-bullet-active {
    background: #e67e22 !important;
    transform: scale(1.25) !important;
}

.cfps-nav-btn.cfps-nav-next,.cfps-nav-btn.cfps-nav-prev,.cfps-nav-btn.cfps-nav-prev.swiper-button-disabled {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    min-height: 30px !important;
    padding: 5px !important;
}

/* ============================================================== */
/* RESPONSIVE - TABLET (max-width: 1024px)                        */
/* ============================================================== */
@media (max-width: 1024px) {
    .cfps-slider-container { padding: 0 40px; }
    .cfps-img-wrapper { min-height: 200px; min-width: 200px; }
    .cfps-title { font-size: 15px; min-height: 42px; }
}

/* ============================================================== */
/* RESPONSIVE - MOBILE (max-width: 768px)                         */
/* ============================================================== */
@media (max-width: 768px) {
    .cfps-wrapper { padding: 25px 10px 20px 10px; }

    .cfps-filters {
        display: flex;
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 15px;
        margin-bottom: 25px;
        padding: 5px 10px 15px 10px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .cfps-filters::-webkit-scrollbar { display: none; }

    .cfps-filter-btn {
        font-size: 14px;
        padding: 6px 14px;
        background: #2a2a2a;
        border-radius: 20px;
        flex-shrink: 0;
        border: 1px solid #444;
    }

    .cfps-filter-btn.active {
        background: #DD7210;
        border-color: #DD7210;
        padding: 6px 14px;
    }

    .cfps-filter-btn.active::after { display: none; }

    .cfps-filter-btn:hover { background: #DD7210; padding: 6px 14px; }

    .cfps-filter-btn sup { font-size: 9px; }

    .cfps-slider-container { padding: 0 10px; }
    .cfps-swiper { padding-bottom: 5px; }
    .cfps-img-wrapper { min-height: 180px; min-width: 180px; padding-bottom: 100%; }
    .cfps-badge { top: 10px; right: 10px; font-size: 9px; padding: 3px 6px; }
    .cfps-cats { font-size: 9px; margin-bottom: 6px; }
    .cfps-title { font-size: 14px; min-height: 40px; margin-bottom: 8px; }
    .cfps-price { font-size: 13px; }

    .cfps-nav-btn { display: none; }

    .cfps-wrapper .swiper-pagination { margin-top: 15px; }

    .cfps-wrapper .swiper-pagination .swiper-pagination-bullet,
    .cfps-wrapper .swiper-pagination-bullet {
        width: 8px !important;
        height: 8px !important;
        margin: 0 4px !important;
    }
}

/* ============================================================== */
/* RESPONSIVE - SMALL MOBILE (max-width: 480px)                   */
/* ============================================================== */
@media (max-width: 480px) {
    .cfps-img-wrapper { min-height: 150px; min-width: 150px; }
    .cfps-title { font-size: 13px; min-height: 20px; }
    .cfps-filter-btn { font-size: 13px; padding: 5px 12px; }
}