/* =========================================================
   AZZ Store - WooCommerce Product Category Archive
   Phase 2A
   ========================================================= */

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

/*
 * Use the available theme content width.
 * Do not impose another narrow Bootstrap-style container.
 */
.azc-category-archive > .container {
    width: 100%;
    max-width: none;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}


/* =========================================================
   Breadcrumbs
   ========================================================= */

.azc-category-header {
    margin-bottom: 24px;
}

.azc-category-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    margin: 0 0 12px;
    padding: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #777;
}

.azc-category-breadcrumbs a {
    color: #777;
    text-decoration: none;
}

.azc-category-breadcrumbs a:hover {
    color: #111;
    text-decoration: none;
}

.azc-category-breadcrumb-separator {
    display: inline-block;
    margin: 0 7px;
    color: #aaa;
}

.azc-category-breadcrumb-current {
    color: #222;
    font-weight: 500;
}


/* =========================================================
   Category heading
   ========================================================= */

.azc-category-title {
    margin: 0 0 18px;
    font-size: 28px;
    line-height: 1.25;
    font-weight: 600;
}

.azc-category-description {
    margin: -8px 0 20px;
    color: #666;
    line-height: 1.6;
}


/* =========================================================
   Main category selector
   ========================================================= */

.azc-main-category-switcher {
    margin: 0 0 28px;
}

.azc-main-category-switcher label {
    display: block;
    margin: 0 0 7px;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 600;
    color: #222;
}

.azc-main-category-select {
    display: block;
    width: 100%;
    max-width: 360px;
    min-height: 42px;
    padding: 8px 38px 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    background-color: #fff;
    color: #222;
    font-size: 13px;
    line-height: 1.4;
    cursor: pointer;
}

.azc-main-category-select:focus {
    outline: none;
    border-color: #999;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.04);
}


/* =========================================================
   Subcategory section
   ========================================================= */

.azc-subcategory-section {
    margin-top: 0;
}

.azc-subcategory-heading {
    margin: 0 0 16px;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 600;
}


/* =========================================================
   Category cards
   ========================================================= */

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

.azc-subcategory-card {
    display: block;
    overflow: hidden;
    min-width: 0;
    background: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 6px;
    color: inherit;
    text-decoration: none;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease;
}

.azc-subcategory-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.07);
    text-decoration: none;
}

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

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

.azc-subcategory-card:hover .azc-subcategory-image img {
    transform: scale(1.03);
}

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

.azc-subcategory-content {
    padding: 10px 8px 12px;
    text-align: center;
}

.azc-subcategory-name {
    margin: 0 0 4px;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 600;
}

.azc-subcategory-count {
    display: block;
    margin: 0;
    color: #777;
    font-size: 12px;
    line-height: 1.35;
}


/* =========================================================
   Empty state
   ========================================================= */

.azc-category-empty {
    padding: 20px;
    border: 1px solid #eee;
    background: #fafafa;
    text-align: center;
    color: #666;
}


/* =========================================================
   Tablet
   ========================================================= */

@media (max-width: 991px) {

    .azc-subcategory-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 15px;
    }

    .azc-category-title {
        font-size: 25px;
    }
}


/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 767px) {

    .azc-category-archive > .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .azc-category-title {
        font-size: 23px;
    }

    .azc-subcategory-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .azc-subcategory-content {
        padding: 9px 7px 11px;
    }

    .azc-subcategory-name {
        font-size: 14px;
    }

    .azc-subcategory-count {
        font-size: 11px;
    }

    .azc-main-category-select {
        max-width: 100%;
    }
}