/* ---------------------------------------------------------------------------
   Product category template V2 - Uses grid + Explore More
   Scoped to taxonomy-product-category-v2.php via the nm- prefix
   --------------------------------------------------------------------------- */

.nm-uses {
    margin: 8px auto 70px;
    padding: 0 20px;
}

.nm-uses-title {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: #1c2b5a;
    margin: 0 0 40px;
}

.nm-uses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 45px 30px;
}

.nm-use {
    text-align: center;
}

.nm-use-icon {
    margin-bottom: 18px;
}

.nm-use-icon img {
    width: auto;
    height: 84px;
    max-width: 100%;
    object-fit: contain;
    display: inline-block;
}

.nm-use-title {
    font-size: 17px;
    line-height: 1.4;
    color: #6b6b6b;
}

.nm-explore {
    border-top: 2px solid #e2e6ee;
    margin: 60px 0 40px;
    padding: 50px 0 10px;
}

.nm-explore-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    padding: 0 20px;
}

.nm-explore-title {
    flex: 0 0 220px;
    font-size: 22px;
    font-weight: 700;
    color: #1c2b5a;
    margin: 0;
}

.nm-explore-grid {
    flex: 1 1 480px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.nm-explore-card {
    display: flex;
    gap: 25px;
    text-decoration: none;
    color: inherit;
}

.nm-explore-image {
    flex: 0 0 260px;
    height: 155px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 4px;
}

.nm-explore-body {
    flex: 1 1 auto;
}

.nm-explore-tag {
    display: inline-block;
    background: #111;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    padding: 4px 14px;
    margin-bottom: 10px;
}

.nm-explore-name {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.35;
    color: #1c2b5a;
    margin-bottom: 8px;
}

.nm-explore-excerpt {
    font-size: 15px;
    line-height: 1.5;
    color: #7a7a7a;
}

.nm-explore-card:hover .nm-explore-name {
    text-decoration: underline;
}

@media only screen and (max-width: 900px) {
    .nm-uses-grid { grid-template-columns: repeat(2, 1fr); }
    .nm-explore-title { flex: 0 0 100%; }
}

@media only screen and (max-width: 600px) {
    .nm-uses-grid { grid-template-columns: repeat(2, 1fr); gap: 30px 18px; }
    .nm-explore-card { flex-direction: column; }
    .nm-explore-image { flex: 0 0 auto; width: 100%; height: 190px; }
}

/* The theme sets a global h2 { text-transform: uppercase } in style.css (~line 1748).
   This sheet loads on every product-category archive, so the override below applies
   to BOTH the original template and V2 - headings render exactly as typed. */

.tax-product-category h2 {
    text-transform: none;
}
/* Center the products grid (both templates): a partial row - e.g. a lone item -
   sits in the middle of the row instead of stuck to the edge. The theme lays the
   .products-repeater-in cards out floated 3-up; flex + justify-content:center
   overrides that without changing the per-card spacing. */
.tax-product-category .posts-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
}

/* Subcategory block keeps its own full-width row. */
.tax-product-category .posts-container > .children {
    flex: 0 0 100%;
    width: 100%;
}

/* Bottom text field: its own new row, centered. */
.tax-product-category .posts-container > .bottom-text {
    flex: 0 0 100%;
    width: 100%;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}
/* A partial last row (e.g. a lone card) carries the theme margin-right, which
   would nudge it off-centre. Zero it on the final card only - full rows end on
   an nth-child(3n) card whose margin-right is already 0, so they are unaffected. */
.tax-product-category .posts-container .products-repeater-in:last-child {
    margin-right: 0;
}