/* CSS Override to turn circular category items into stunning gradient cards with pill labels */

/* Target the specific container or any element inside tm-product-category-carousel */
.tm-product-category-carousel .item,
.tm-product-category-carousel .category-item,
.tm-product-category-carousel .product-category,
.tm-product-category-carousel .tm-category-item {
    background: linear-gradient(180deg, #E02693 0%, #7B0E68 100%) !important;
    border-radius: 16px !important;
    padding: 20px 15px 30px 15px !important;
    position: relative !important;
    overflow: visible !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: space-between !important;
    aspect-ratio: 1 / 1.1 !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
    text-align: center !important;
    box-sizing: border-box !important;
}

/* Hover effects */
.tm-product-category-carousel .item:hover,
.tm-product-category-carousel .category-item:hover,
.tm-product-category-carousel .product-category:hover,
.tm-product-category-carousel .tm-category-item:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2) !important;
}

/* Reset circle styles on images and image containers */
.tm-product-category-carousel .category-image,
.tm-product-category-carousel .image,
.tm-product-category-carousel img,
.tm-product-category-carousel .category-thumb {
    border-radius: 12px !important;
    width: 85% !important;
    height: auto !important;
    max-height: 75% !important;
    object-fit: contain !important;
    background: transparent !important;
    border: none !important;
    transition: transform 0.3s ease !important;
}

.tm-product-category-carousel .item:hover img,
.tm-product-category-carousel .category-item:hover img,
.tm-product-category-carousel .product-category:hover img {
    transform: scale(1.06) !important;
}

/* Force layout wrappers to keep items well-proportioned */
.tm-product-category-carousel .swiper-slide,
.tm-product-category-carousel .slick-slide {
    padding: 10px 10px 25px 10px !important;
}

/* Category Title converted to Overlapping Pill Badge */
.tm-product-category-carousel .category-title,
.tm-product-category-carousel .title,
.tm-product-category-carousel h3,
.tm-product-category-carousel .woocommerce-loop-category__title {
    position: absolute !important;
    bottom: -10px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background: #E02693 !important;
    color: #FFFFFF !important;
    padding: 8px 20px !important;
    border-radius: 20px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2) !important;
    white-space: nowrap !important;
    z-index: 99 !important;
    margin: 0 !important;
    width: auto !important;
    max-width: 90% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* Hide count badges if any are present inside titles */
.tm-product-category-carousel .count,
.tm-product-category-carousel mark {
    display: none !important;
}
