/* ==========================================================================
   TTPixel Category Carousel - Premium Elementor Stylesheet
   ========================================================================== */

/* Wrapper & Container */
.ttpixel-cat-carousel-wrapper {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 0 25px 0;
}

.ttpixel-cat-carousel-wrapper .swiper {
    width: 100%;
    height: 100%;
    padding: 10px 5px 35px 5px !important;
    overflow: hidden;
}

/* Category Card Base */
.ttpixel-cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none !important;
    position: relative;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-sizing: border-box;
    overflow: visible;
    height: 100%;
    padding: 10px 5px;
}

.ttpixel-cat-carousel-wrapper.has-hover-lift .ttpixel-cat-card:hover {
    transform: translateY(-5px);
}

/* Badge Styling */
.ttpixel-cat-badge {
    position: absolute;
    top: 0px;
    right: 5px;
    z-index: 5;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Thumbnail Wrapper */
.ttpixel-cat-thumb-wrapper {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.35s ease;
}

.ttpixel-cat-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.ttpixel-cat-card:hover .ttpixel-cat-thumb {
    transform: scale(1.08);
}

/* Title & Count Info */
.ttpixel-cat-info {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.ttpixel-cat-title {
    margin: 0;
    padding: 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    color: #1e293b;
    transition: color 0.25s ease;
}

.ttpixel-cat-count {
    font-size: 12px;
    font-weight: 400;
    color: #64748b;
    display: block;
}

/* Layout 1: Circle Top */
.layout-circle_top .ttpixel-cat-card {
    padding: 10px 5px;
}

.layout-circle_top .ttpixel-cat-thumb-wrapper {
    width: 95px;
    height: 95px;
    border-radius: 50%;
    background-color: #f1f5f9;
    border: 2px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.35s ease;
}

.layout-circle_top .ttpixel-cat-thumb-wrapper img {
    border-radius: 50%;
}

.layout-circle_top .ttpixel-cat-card:hover .ttpixel-cat-thumb-wrapper {
    border-color: #2563eb;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.25);
    transform: scale(1.05);
}

/* Layout 2: Rounded Box */
.layout-rounded_box .ttpixel-cat-card {
    padding: 10px 5px;
}

.layout-rounded_box .ttpixel-cat-thumb-wrapper {
    width: 100%;
    height: 120px;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

/* Layout 3: Overlay Box */
.layout-overlay_box .ttpixel-cat-card {
    min-height: 160px;
    border-radius: 16px;
    padding: 0;
    justify-content: flex-end;
    align-items: flex-start;
    text-align: left;
    overflow: hidden;
}

.layout-overlay_box .ttpixel-cat-thumb-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 16px;
}

.layout-overlay_box .ttpixel-cat-thumb-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.1) 60%);
    transition: opacity 0.3s ease;
}

.layout-overlay_box .ttpixel-cat-info {
    position: relative;
    z-index: 2;
    padding: 14px;
    margin-top: 0;
}

.layout-overlay_box .ttpixel-cat-title {
    color: #ffffff;
}

.layout-overlay_box .ttpixel-cat-count {
    color: rgba(255, 255, 255, 0.8);
}

/* Swiper Navigation Buttons */
.ttpixel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #ffffff;
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    transition: all 0.25s ease;
    border: 1px solid rgba(226, 232, 240, 0.9);
}

.ttpixel-nav-btn:hover {
    background-color: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
}

.ttpixel-swiper-prev {
    left: -5px;
}

.ttpixel-swiper-next {
    right: -5px;
}

.ttpixel-swiper-pagination {
    bottom: 0px !important;
}

.ttpixel-swiper-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background-color: #cbd5e1;
    opacity: 1;
    transition: all 0.3s ease;
    margin: 0 4px !important;
}

.ttpixel-swiper-pagination .swiper-pagination-bullet-active {
    background-color: #2563eb;
    width: 22px;
    border-radius: 5px;
}

@media (max-width: 768px) {
    .ttpixel-nav-btn {
        width: 30px;
        height: 30px;
    }
    .ttpixel-nav-btn svg {
        width: 15px;
        height: 15px;
    }
    .layout-circle_top .ttpixel-cat-thumb-wrapper {
        width: 75px;
        height: 75px;
    }
    .ttpixel-cat-title {
        font-size: 13px;
    }
}
