/* ===================================
   PRODUCT CATEGORY CARDS - COMPLETE FIX
   Neon Theme with Proper Styling
   =================================== */

/* Remove white backgrounds and borders */
.rtc-categories .product-category,
.rtc-categories li.product-category,
ul.products li.product-category,
.woocommerce ul.products li.product-category {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.9)) !important;
    border: 2px solid rgba(248, 187, 47, 0.4) !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
}

.rtc-categories .product-category:hover,
ul.products li.product-category:hover {
    border-color: #f8bb2f !important;
    transform: translateY(-10px) !important;
    box-shadow: 0 0 40px rgba(248, 187, 47, 0.7), 0 0 20px rgba(30, 56, 239, 0.5) !important;
}

/* Product Category Link - Remove default styling */
.rtc-categories .product-category a,
ul.products li.product-category a {
    text-decoration: none !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    color: inherit !important;
}

/* Image Container */
.rtc-categories .product-category img,
ul.products li.product-category img {
    width: 100% !important;
    height: 280px !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 0 !important;
    transition: transform 0.3s ease !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

.rtc-categories .product-category:hover img,
ul.products li.product-category:hover img {
    transform: scale(1.08) !important;
}

/* Title Container */
.rtc-categories .product-category h2,
.rtc-categories .product-category .woocommerce-loop-category__title,
ul.products li.product-category h2,
ul.products li.product-category .woocommerce-loop-category__title {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.95)) !important;
    color: #f8bb2f !important;
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    margin: 0 !important;
    padding: 25px 20px !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
    border-top: 2px solid rgba(248, 187, 47, 0.3) !important;
    line-height: 1.4 !important;
}

.rtc-categories .product-category:hover h2,
ul.products li.product-category:hover h2 {
    color: #ffd700 !important;
    text-shadow: 0 0 20px rgba(248, 187, 47, 0.9) !important;
    background: linear-gradient(135deg, rgba(30, 56, 239, 0.2), rgba(248, 187, 47, 0.2)) !important;
}

/* Product Count Badge */
.rtc-categories .product-category .count,
.rtc-categories .product-category mark.count,
ul.products li.product-category mark.count {
    display: inline-block !important;
    background: rgba(30, 56, 239, 0.3) !important;
    color: #1e38ef !important;
    padding: 6px 14px !important;
    border-radius: 25px !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    margin-left: 10px !important;
    border: 1px solid rgba(30, 56, 239, 0.5) !important;
    box-shadow: 0 0 10px rgba(30, 56, 239, 0.3) !important;
}

.rtc-categories .product-category:hover mark.count,
ul.products li.product-category:hover mark.count {
    background: rgba(30, 56, 239, 0.5) !important;
    color: #4361ee !important;
    box-shadow: 0 0 15px rgba(30, 56, 239, 0.6) !important;
}

/* Remove any conflicting WooCommerce styles */
.woocommerce ul.products li.product-category a {
    background: none !important;
    box-shadow: none !important;
}

.woocommerce ul.products li.product-category a::before,
.woocommerce ul.products li.product-category a::after {
    display: none !important;
}

/* Ensure proper spacing in grid */
.rtc-categories ul.products li.product-category {
    margin-bottom: 0 !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {

    .rtc-categories .product-category img,
    ul.products li.product-category img {
        height: 220px !important;
    }

    .rtc-categories .product-category h2,
    ul.products li.product-category h2 {
        font-size: 1.2rem !important;
        padding: 20px 15px !important;
    }

    .rtc-categories .product-category mark.count {
        font-size: 0.8rem !important;
        padding: 4px 10px !important;
    }
}