/* === EWR Subcategories Grid === */
.ewr-subcategories-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 36px;
    margin-top: 10px;
    justify-content: center;
}

.ewr-subcategory-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    text-decoration: none;
    transition: box-shadow 0.2s, border-color 0.2s;
    padding: 18px 10px 14px 10px;
    cursor: pointer;
    min-height: 220px;
    min-width: 180px;
    justify-content: space-between;
}

.ewr-subcategory-tile:hover {
    border-color: #00244f;
    box-shadow: 0 4px 16px rgba(0,36,79,0.10);
}

.ewr-subcategory-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    overflow: hidden;
    padding: 10px;
    margin: auto;
}

.ewr-subcategory-thumb img {
    max-width: 80px;
    object-fit: contain;
    display: block;
}

.ewr-subcategory-title {
    font-size: 1.08em;
    font-weight: 600;
    color: #00244f;
    margin-bottom: 6px;
    text-align: center;
}

.ewr-subcategory-count {
    font-size: 0.98em;
    color: #666;
    background: #f1f1f1;
    border-radius: 12px;
    padding: 2px 12px;
    margin-top: 2px;
    text-align: center;
}

@media (max-width: 600px) {
    .ewr-subcategories-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 14px;
    }
    .ewr-subcategory-tile {
        height: 140px;
        padding: 10px 4px 10px 4px;
        min-width: 150px;
    }

    .ewr-subcategory-thumb img {
        max-height: 80px;
    }
}