/* Simple Modern Shop Category Styling */
/* FORCE BORDER AND BORDER-RADIUS - Add this at the end if needed */
.woocommerce ul.products li.product.product-category {
    border: 1px solid #ffffff !important;
    border-radius: 8px !important;
}

.woocommerce ul.products li.product.product-category:hover {
    border: 1px solid #f3f3f3 !important;
    border-radius: 8px !important;
    background: #e9e9e9 !important;
}
/* Product count styling - moved below title */
.woocommerce-loop-category__title .count {
    display: none !important;
}
.products li:nth-child(5) {
    display: none;
}

/* Simple card layout for product categories - HIGHLY SPECIFIC SELECTORS */
.woocommerce ul.products li.product.product-category,
.woocommerce-page ul.products li.product.product-category,
.ast-woocommerce-container ul.products li.product.product-category,
body.woocommerce ul.products li.product.product-category,
body.woocommerce-page ul.products li.product.product-category {
    position: relative !important;
    text-align: center !important;
    height: auto !important;
    min-height: 380px !important;
    display: flex !important;
    flex-direction: column !important;
    background: #f3f3f3 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    border: 1px solid #ffffff !important;
    transition: all 0.3s ease !important;
    box-sizing: border-box !important;
}

/* Simple hover effects - HIGHLY SPECIFIC SELECTORS */
.woocommerce ul.products li.product.product-category:hover,
.woocommerce-page ul.products li.product.product-category:hover,
.ast-woocommerce-container ul.products li.product.product-category:hover,
body.woocommerce ul.products li.product.product-category:hover,
body.woocommerce-page ul.products li.product.product-category:hover {
    background: #e0e0e0 !important;
    border: 1px solid #eaeaea !important;
    border-radius: 8px !important;
}

/* Link container */
.product-category a {
    display: flex !important;
    flex-direction: column !important;
    text-decoration: none !important;
    position: relative !important;
    align-items: center !important;
    height: 100% !important;
    flex: 1 !important;
    color: inherit !important;
}

/* Image styling */
.product-category img {
    width: 100% !important;
    height: 260px !important;
    object-fit: contain !important;
    display: block !important;
    order: 1 !important;
    flex: 0 0 auto !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 20px !important;
    margin: 0 !important;
    transition: all 0.3s ease !important;
}

/* Simple image hover effect */
.product-category:hover img {
    opacity: 0.9 !important;
}

/* Simple typography */
.product-category .woocommerce-loop-category__title {
    position: relative !important;
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 20px 15px 15px 15px !important;
    margin: 0 !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #333 !important;
    text-align: center !important;
    display: block !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    width: 100% !important;
    order: 2 !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    line-height: 1.4 !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 80px !important;
    transition: all 0.3s ease !important;
}

/* Simple hover effect for title */
.product-category:hover .woocommerce-loop-category__title {
    color: #222 !important;
}

/* Simple count hover effect */
.product-category:hover .woocommerce-loop-category__title .count {
    background: #d8d8d8 !important;
    color: #000000 !important;
}

/* Ensure proper spacing and consistent grid */
.products.columns-3 .product-category {
    margin-bottom: 30px !important;
    box-sizing: border-box !important;
}

/* Override any absolute positioning */
.product-category h2 {
    position: relative !important;
    transform: none !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
}

/* Responsive design */
@media (max-width: 1024px) {
    .product-category {
        min-height: 350px !important;
    }
    
    .product-category img {
        height: 220px !important;
    }
    
    .product-category .woocommerce-loop-category__title {
        font-size: 14px !important;
        padding: 18px 12px 12px 12px !important;
        letter-spacing: 0.8px !important;
    }
}

@media (max-width: 768px) {
    .product-category {
        min-height: 320px !important;
    }
    
    .product-category img {
        height: 200px !important;
    }
    
    .product-category .woocommerce-loop-category__title {
        font-size: 13px !important;
        padding: 16px 10px 10px 10px !important;
        letter-spacing: 0.6px !important;
        min-height: 70px !important;
    }
    
    .woocommerce-loop-category__title .count {
        font-size: 13px !important;
        padding: 7px 14px !important;
    }
}

@media (max-width: 480px) {
    .product-category {
        min-height: 280px !important;
    }
    
    .product-category img {
        height: 180px !important;
    }
    
    .product-category .woocommerce-loop-category__title {
        font-size: 12px !important;
        padding: 14px 8px 8px 8px !important;
        letter-spacing: 0.4px !important;
    }
}