.mh-gategory-page {
    width: 100%;
}

.mh-gategory-wrapper {
    display: grid;
    gap: 20px;
    padding: 10px;
    grid-template-columns: repeat(3, 1fr);
}

@media(min-width: 768px) {
    .mh-gategory-wrapper {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media(min-width: 1024px) {
    .mh-gategory-wrapper {
        grid-template-columns: repeat(5, 1fr);
    }
}

.mh-gategory-item {
    text-align: center;
    text-decoration: none !important;
    color: #222;
}

.mh-gategory-circle {
    width: 90px;
    height: 90px;
    margin: 0 auto 8px auto;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.mh-gategory-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mh-gategory-name {
    font-size: 14px;
    font-weight: 600;
}

.mh-products-grid {
    display: grid;
    gap: 20px;
    margin-top: 20px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media(min-width: 768px){
    .mh-products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media(min-width: 1024px){
    .mh-products-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

.mh-product-item,
.mh-gategory-item {
    min-width: 0;
}

.mh-product-thumb img,
.mh-product-item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.mh-loading {
    text-align: center;
    padding: 20px;
    font-size: 18px;
}

#mh-category-loader,
#mh-product-loader {
    text-align: center;
    padding: 18px;
    font-size: 15px;
    color: #444;
}

#mh-category-sentinel,
#mh-products-sentinel {
    width: 100%;
    height: 1px;
}

.mh-bottom-actions {
    text-align: center;
    margin: 25px 0 35px;
}

.mh-load-more-btn,
#mh-load-more,
.mh-back-btn {
    background: linear-gradient(180deg, #f6f6f6 0%, #d9d9d9 100%);
    color: #222;
    border: 1px solid #ccc;
    border-radius: 25px;
    padding: 10px 28px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease-in-out;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    display: inline-block;
    margin: 10px auto;
}

.mh-load-more-btn:hover,
#mh-load-more:hover,
.mh-back-btn:hover {
    background: linear-gradient(180deg, #4a4a4a 0%, #353535 100%);
    transform: translateY(-2px);
    color: #fff;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.4);
}

.mh-load-more-btn:active,
#mh-load-more:active,
.mh-back-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.mh-load-more-btn:disabled,
#mh-load-more:disabled,
.mh-back-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
    transform: none;
}

.mh-product-item a.mh-product-link {
    display: block;
    text-align: center;
    text-decoration: none !important;
    color: #222;
}

.mh-product-item a.mh-product-link h4.mh-product-title {
    font-size: 13px !important;
    line-height: 1.4 !important;
    font-weight: 600 !important;
    color: #222 !important;
    margin: 10px 0 !important;
}

.mh-product-price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 8px 0;
    font-size: 14px;
    color: #444;
    flex-wrap: wrap;
}

.mh-product-price del {
    color: #d32f2f;
    font-size: 14px;
    text-decoration: line-through;
    padding: 2px 6px;
    border: 2px solid #d32f2f;
    border-radius: 50px;
}

.mh-product-price ins {
    font-weight: bold;
    background: #fff;
    padding: 2px 8px;
    text-decoration: none;
    font-size: 15px;
}

.mh-out-of-stock {
    color: #b00020;
    font-size: 13px;
    margin-top: 8px;
}
.mh-product-actions {
    margin-top: 12px;
    width: 100%;
}

.mh-product-actions .button {
    display: block;
    width: 100%;
    padding: 11px 14px;
    border: 0;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    box-sizing: border-box;
}

.mh-product-actions .added_to_cart {
    display: block;
    margin-top: 8px;
    text-align: center;
    text-decoration: none;
}
