.home-products-section {
    --product-green: #059669;
    --product-dark-green: #047857;
    --product-mint: #e5f7ef;
    --product-navy: #101b2e;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 72px 0 64px;
    background: #fff;
    color: #101828;
}

.home-products-section::before,
.home-products-section::after {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
    background: var(--product-mint);
    opacity: 0.65;
}

.home-products-section::before {
    width: 340px;
    height: 280px;
    top: -100px;
    left: -160px;
    border-radius: 0 0 70% 0;
    transform: rotate(-35deg);
}

.home-products-section::after {
    width: 420px;
    height: 460px;
    top: 130px;
    right: -300px;
    border-radius: 60% 0 0 50%;
    opacity: 0.35;
}

.home-products-section > .auto-container {
    max-width: 1200px;
    padding-right: 16px;
    padding-left: 16px;
}

.home-products-section .home-products-heading {
    max-width: 1150px;
    margin: 0 auto 24px;
    text-align: center;
}

.home-products-section .home-products-eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 16px;
    color: var(--product-dark-green);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.home-products-section .home-products-eyebrow::before,
.home-products-section .home-products-eyebrow::after {
    content: "";
    width: 56px;
    height: 1px;
    background: var(--product-green);
}

.home-products-section .home-products-heading h2 {
    margin: 0 0 12px;
    color: #101828;
    font-family: 'Abril Fatface', Georgia, serif;
    font-size: clamp(32px, 3.7vw, 56px);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.025em;
}

.home-products-section .home-products-heading p {
    margin: 0;
    color: #475467;
    font-size: 18px;
    line-height: 1.7;
}

.home-products-section .home-product-filters {
    display: flex;
    gap: 12px;
    width: max-content;
    max-width: 100%;
    margin: 0 auto 28px;
    padding: 6px 4px 12px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.home-products-section .home-product-filter {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 48px;
    padding: 10px 24px;
    border: 1px solid #d2ded8;
    border-radius: 999px;
    background: #fff;
    color: #101828;
    font: inherit;
    font-size: 15px;
    line-height: 1.5;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.home-products-section .home-product-filter.is-active {
    border-color: var(--product-green);
    background: var(--product-green);
    color: #fff;
    font-weight: 500;
    box-shadow: 0 5px 12px rgba(4, 120, 87, 0.1);
}

.home-products-section .home-product-filter:not(.is-active):hover {
    background: var(--product-mint);
}

.home-products-section .home-products-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.home-products-section .home-product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    overflow: hidden;
    border: 1px solid #e1e7e5;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 7px 20px rgba(16, 27, 46, 0.055);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home-products-section .home-product-card[hidden] {
    display: none;
}

.home-products-section .home-product-image::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 72px;
    height: 64px;
    border-radius: 0 0 0 90%;
    background: #d1fae5;
    pointer-events: none;
}

.home-products-section .home-product-image::before,
.home-products-section .home-product-image::after {
    z-index: 0;
    pointer-events: none;
}

.home-products-section .home-product-corner {
    position: absolute;
    z-index: 2;
    top: 8px;
    right: 14px;
    color: var(--product-dark-green);
    font-size: 22px;
    line-height: 1;
}

.home-products-section .home-product-image {
    position: relative;
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-width: 0;
    width: 100%;
    height: 280px;
    padding: 34px 18px 6px;
    overflow: hidden;
    border-radius: 15px 15px 0 0;
    background: #f2faf6;
}

.home-products-section .home-product-image::before {
    content: "";
    position: absolute;
    inset: 32% 0 0;
    border-radius: 65% 24% 24% 0;
    background: var(--product-mint);
    clip-path: polygon(0 24%, 55% 0, 100% 68%, 80% 100%, 0 100%);
}

.home-products-section .home-product-image img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.25s ease;
}

.home-products-section .home-product-fallback {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: #475467;
    font-size: 14px;
    text-align: center;
}

.home-products-section .home-product-fallback .flaticon-cockroach {
    color: var(--product-dark-green);
    font-size: 40px;
}

.home-products-section .home-product-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
    padding: 22px;
    background: #fff;
}

.home-products-section .home-product-content h3 {
    margin: 0 0 10px;
    color: #101828;
    font-family: 'Abril Fatface', Georgia, serif;
    font-size: 22px;
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: -0.02em;
    overflow-wrap: anywhere;
}

.home-products-section .home-product-content p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    margin: 0 0 20px;
    color: #475467;
    font-size: 14px;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.home-products-section .home-product-content h3 a {
    color: inherit;
}

.home-products-section .home-product-content h3 a:hover {
    color: var(--product-dark-green);
}

.home-products-section .home-product-details {
    display: inline-flex;
    align-items: stretch;
    justify-content: space-between;
    width: 100%;
    max-width: none;
    min-height: 46px;
    margin-top: auto;
    overflow: hidden;
    border-radius: 999px;
    background: var(--product-green);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    text-decoration: none;
    transition: background-color 0.25s ease;
}

.home-products-section .home-product-details > span:first-child {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    padding: 10px 8px;
    white-space: nowrap;
}

.home-products-section .home-product-arrow {
    display: flex;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    background: #d9f8e6;
    color: var(--product-dark-green);
    font-size: 20px;
}

.home-products-section .home-product-details:hover {
    background: var(--product-dark-green);
    color: #fff;
}

.home-products-section .home-product-details:active {
    background: #065f46;
}

.home-products-section .home-products-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    max-width: 1020px;
    margin: 36px auto 0;
}

.home-products-section .home-products-footer::before,
.home-products-section .home-products-footer::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #57c998;
}

.home-products-section .home-products-browse {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    gap: 22px;
    min-height: 54px;
    padding: 12px 30px;
    border-radius: 999px;
    background: var(--product-navy);
    color: #fff;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.5;
    box-shadow: 0 6px 14px rgba(16, 27, 46, 0.1);
    transition: background-color 0.2s ease;
}

.home-products-section .home-products-browse:hover {
    background: #203c5e;
    color: #fff;
}

.home-products-section .home-products-browse .flaticon-right-arrow {
    font-size: 24px;
}

.home-products-section :is(a, button):focus-visible {
    outline: 3px solid var(--product-dark-green) !important;
    outline-offset: 4px;
}

.home-products-section .home-product-image:focus-visible {
    outline-offset: -4px;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .home-products-section .home-product-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 26px rgba(16, 27, 46, 0.09);
    }

    .home-products-section .home-product-card:hover img {
        transform: scale(1.025);
    }
}

@media (max-width: 1023px) {
    .home-products-section .home-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .home-products-section .home-product-image {
        height: 250px;
    }

    .home-products-section .home-product-content {
        padding: 20px;
    }
}

@media (max-width: 767px) {
    .home-products-section {
        padding: 48px 0;
    }

    .home-products-section > .auto-container {
        padding-right: 16px;
        padding-left: 16px;
    }

    .home-products-section .home-products-eyebrow {
        gap: 14px;
        font-size: 14px;
    }

    .home-products-section .home-products-eyebrow::before,
    .home-products-section .home-products-eyebrow::after {
        width: 28px;
    }

    .home-products-section .home-products-heading p {
        font-size: 16px;
    }

    .home-products-section .home-product-filters {
        gap: 8px;
        margin-bottom: 20px;
    }

    .home-products-section .home-product-filter {
        min-height: 44px;
        padding: 9px 18px;
        font-size: 14px;
    }

    .home-products-section .home-products-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .home-products-section .home-product-content h3 {
        font-size: 20px;
    }

    .home-products-section .home-product-image {
        height: 260px;
    }

    .home-products-section .home-product-content {
        padding: 18px;
    }

    .home-products-section .home-product-details {
        min-height: 44px;
    }

    .home-products-section .home-products-footer {
        gap: 16px;
        margin-top: 28px;
    }

    .home-products-section .home-products-browse {
        gap: 16px;
        padding: 12px 24px;
        font-size: 16px;
    }
}

@media (max-width: 374px) {
    .home-products-section .home-product-image {
        height: 220px;
        padding: 28px 16px 6px;
    }

    .home-products-section .home-product-corner {
        top: 6px;
        font-size: 20px;
    }

    .home-products-section .home-product-content {
        padding: 16px;
    }

    .home-products-section .home-products-footer::before,
    .home-products-section .home-products-footer::after {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-products-section *,
    .home-products-section *::before,
    .home-products-section *::after {
        transition: none;
    }
}
