#main-content.product-categories-main {
    background:
        radial-gradient(circle at 15% 10%, rgba(15, 94, 66, 0.06) 0, rgba(15, 94, 66, 0) 35%),
        radial-gradient(circle at 85% 90%, rgba(15, 94, 66, 0.08) 0, rgba(15, 94, 66, 0) 32%),
        #f5f8f7;
    padding: 2.6rem 0 3rem !important;
}

#main-content.product-categories-main > .container {
    max-width: 1240px !important;
    width: min(1240px, 94vw) !important;
    margin: 0 auto !important;
    padding-inline: 0.35rem !important;
}

#main-content.product-categories-main .product-categories-section,
#main-content.product-categories-main .featured-products-section {
    background: #ffffff;
    border: 1px solid #e1ebe7;
    border-radius: 16px;
    padding: 1.35rem;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
    width: 100% !important;
    box-sizing: border-box;
}

#main-content.product-categories-main .featured-products-section {
    margin-top: 1.25rem;
}

#main-content.product-categories-main .section-header {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    border-bottom: 1px solid #dbe8e2;
    margin-bottom: 1.25rem;
    padding-bottom: 0.9rem;
}

#main-content.product-categories-main .section-header h2 {
    color: #0f172a !important;
    font-size: clamp(1.2rem, 2.1vw, 1.65rem);
    margin: 0;
}

#main-content.product-categories-main .product-categories-grid,
#main-content.product-categories-main .product-list-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 1rem !important;
    align-items: stretch;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

#main-content.product-categories-main .category-card,
#main-content.product-categories-main .product-card {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(2, 8, 23, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    display: flex !important;
    flex-direction: column;
    min-width: 0;
    width: 100% !important;
    height: 100% !important;
}

#main-content.product-categories-main .category-card:hover,
#main-content.product-categories-main .product-card:hover,
#main-content.product-categories-main .category-card:focus-within,
#main-content.product-categories-main .product-card:focus-within {
    transform: translateY(-4px);
    border-color: #bbd8cd;
    box-shadow: 0 12px 28px rgba(2, 8, 23, 0.12);
}

#main-content.product-categories-main .category-image-wrapper,
#main-content.product-categories-main .product-image-wrapper {
    height: 185px;
    background: #f1f5f9;
    flex: 0 0 185px;
}

#main-content.product-categories-main .category-image-wrapper img,
#main-content.product-categories-main .product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#main-content.product-categories-main .category-content,
#main-content.product-categories-main .product-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1 1 auto;
}

#main-content.product-categories-main .category-title,
#main-content.product-categories-main .product-title {
    color: #0f172a !important;
    font-size: 1.02rem;
    line-height: 1.35;
    margin-bottom: 0.6rem;
    min-height: 2.7em;
}

#main-content.product-categories-main .category-description p {
    color: #64748b;
    margin-bottom: 0.9rem;
}

#main-content.product-categories-main .category-link,
#main-content.product-categories-main .product-link,
#main-content.product-categories-main .view-all-link {
    color: #0f5e42;
    font-weight: 600;
    text-decoration: none;
}

#main-content.product-categories-main .product-link,
#main-content.product-categories-main .view-all-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.58rem 0.9rem;
    border: 1px solid #0f5e42;
    border-radius: 8px;
    background: #ffffff;
}

#main-content.product-categories-main .product-link {
    margin-top: auto;
}

#main-content.product-categories-main .product-link:hover,
#main-content.product-categories-main .product-link:focus,
#main-content.product-categories-main .view-all-link:hover,
#main-content.product-categories-main .view-all-link:focus {
    background: #0f5e42;
    color: #ffffff;
}

@media (max-width: 768px) {
    #main-content.product-categories-main {
        padding-top: 1.8rem;
    }

    #main-content.product-categories-main .product-categories-section,
    #main-content.product-categories-main .featured-products-section {
        padding: 1rem;
        border-radius: 12px;
    }

    #main-content.product-categories-main .product-categories-grid,
    #main-content.product-categories-main .product-list-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (min-width: 769px) and (max-width: 1100px) {
    #main-content.product-categories-main .product-categories-grid,
    #main-content.product-categories-main .product-list-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (min-width: 1101px) and (max-width: 1400px) {
    #main-content.product-categories-main .product-categories-grid,
    #main-content.product-categories-main .product-list-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}
