/* =========================================================
   AZZ Store - Product Category Directory
   ========================================================= */

.azc-category-directory {
    width: 100%;
    margin: 0 auto;
}

.azc-category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
}

.azc-category-card {
    display: block;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.azc-category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    text-decoration: none;
}

.azc-category-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f7f7f7;
}

.azc-category-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.azc-category-card:hover .azc-category-image img {
    transform: scale(1.04);
}

.azc-category-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 20px;
    text-align: center;
    font-size: 15px;
    color: #777;
}

.azc-category-content {
    padding: 16px 14px 18px;
    text-align: center;
}

.azc-category-name {
    margin: 0 0 6px;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 600;
}

.azc-category-count {
    display: block;
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
    color: #777;
}

/* Tablet */
@media (max-width: 991px) {
    .azc-category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 20px;
    }

    .azc-category-name {
        font-size: 17px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .azc-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 15px;
    }

    .azc-category-content {
        padding: 13px 10px 15px;
    }

    .azc-category-name {
        font-size: 16px;
    }

    .azc-category-count {
        font-size: 13px;
    }
}