/* The shop uses the homepage network navigation without its page-wide styles. */
.helium-home-redesign .mc-home-shop-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); align-items:stretch; gap:20px; }
.helium-home-redesign #panel-mobile .mc-home-shop-grid { max-width:580px; margin-inline:auto; grid-template-columns:repeat(2,minmax(0,1fr)); }
.helium-home-redesign .mc-home-shop-grid > .miner-product-card { display:flex; flex-direction:column; width:100%; min-width:0; height:100% !important; margin:0; }
.helium-home-redesign .mc-home-shop-grid .miner-product-card__body { display:flex; flex:1; flex-direction:column; }
.helium-home-redesign .mc-home-shop-grid .miner-product-card__title { height:2.7em; min-height:2.7em; line-height:1.35; -webkit-line-clamp:2; }
.helium-home-redesign .mc-home-shop-grid .miner-product-card__price-row { margin-top:auto; padding-top:12px; }
.helium-home-redesign .mc-home-shop-grid .miner-product-card__actions { margin-top:0; }
@media (max-width:1100px) { .helium-home-redesign .mc-home-shop-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:600px) { .helium-home-redesign .mc-home-shop-grid, .helium-home-redesign #panel-mobile .mc-home-shop-grid { grid-template-columns:minmax(0,1fr); } }
.mc-iot-category-filter { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:12px; margin:0 auto 28px; padding:0 16px; }
.mc-iot-category-filter select { max-width:100%; padding:10px 14px; border:1px solid #cbd5e1; border-radius:8px; background:#fff; color:#0f172a; }
.mc-helium-catalog-nav.h-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: fit-content;
    max-width: calc(100% - 32px);
    margin: 28px auto 30px;
    padding: 6px;
    border: 1.5px solid #cbd5e1;
    border-radius: 32px;
    background: #f1f5f9;
    box-shadow: inset 0 1px 2px rgb(0 0 0 / 4%);
    box-sizing: border-box;
}
.mc-helium-catalog-nav .h-tab-btn {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 10px 24px;
    border: 1.5px solid transparent;
    border-radius: 9999px;
    color: #64748b;
    background: transparent;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;
    transition: background .2s, color .2s, border-color .2s;
}
.mc-helium-catalog-nav .h-tab-btn:hover { background: #fff; color: #0f172a; }
.mc-helium-catalog-nav .h-tab-btn:focus-visible { outline: 3px solid #047857; outline-offset: 3px; }
.mc-helium-catalog-nav .h-tab-btn.is-active {
    color: #065f46;
    background: #ecfdf5;
    border-color: #10b981;
    font-weight: 700;
    box-shadow: 0 3px 10px rgb(16 185 129 / 16%);
}
.mc-helium-catalog-nav .h-tab-btn__icon { display: inline-flex; }
.mc-helium-catalog-nav .h-tab-btn__badge {
    padding: 2px 8px;
    border-radius: 9999px;
    background: #e2e8f0;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}
.mc-helium-catalog-nav .is-active .h-tab-btn__badge { background: #10b981; color: #fff; }
.woocommerce-shop .woocommerce-no-products-found { max-width: 1200px; margin: 0 auto 40px; padding: 0 20px; }
/* Additional products continue onto new rows instead of losing the grid. */
.helium-home-redesign .h-product-grid:not(.count-1):not(.count-2):not(.count-3):not(.count-4) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) {
    .helium-home-redesign .h-product-grid:not(.count-1):not(.count-2):not(.count-3):not(.count-4) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .mc-helium-catalog-nav.h-tabs-nav { gap: 4px; border-radius: 22px; }
    .mc-helium-catalog-nav .h-tab-btn { gap: 6px; padding: 10px 12px; font-size: 13px; }
    .helium-home-redesign .h-product-grid:not(.count-1):not(.count-2):not(.count-3):not(.count-4) { grid-template-columns: minmax(0, 1fr); }
}
