/* Bio Herbal Farm - home page sections (ecommerce theme) */

.bhf-section {
    --bhf-green: #2D4A22;
    --bhf-green-deep: #1C2E15;
    --bhf-green-ink: #16210F;
    --bhf-gold: #A47E3B;
    --bhf-gold-light: #D9B872;
    --bhf-cream: #F6F1DE;
    --bhf-text: #2C3E50;
    --bhf-muted: #5F6B62;
    --bhf-line: #E3E8DD;
    padding: 88px 0;
    background-color: #fff;
    color: var(--bhf-text);
    font-family: 'Roboto', sans-serif;
}

.bhf-section ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.bhf-section a {
    text-decoration: none;
}

.bhf-section a:focus-visible,
.bhf-section button:focus-visible,
.bhf-section input:focus-visible,
.bhf-section ul:focus-visible {
    outline: 2px solid var(--bhf-gold);
    outline-offset: 3px;
}

.bhf-section h2 {
    margin: 0;
    color: var(--bhf-green-deep);
    font-size: clamp(26px, 2.6vw, 36px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.bhf-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px 32px;
    margin-bottom: 36px;
}

.bhf-section-head p {
    max-width: 38em;
    margin: 10px 0 0;
    color: var(--bhf-muted);
    font-size: 16px;
    line-height: 1.7;
}

.bhf-link {
    flex: none;
    color: var(--bhf-green);
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--bhf-gold);
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
    transition: color 0.2s;
}

a.bhf-link:hover,
a:hover .bhf-link {
    color: var(--bhf-gold);
}

/* ---------- features band ---------- */

.bhf-features {
    padding: 0;
    border-bottom: 1px solid var(--bhf-line);
}

.bhf-features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.bhf-features-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 28px 24px;
    color: var(--bhf-green-deep);
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-transform: capitalize;
}

.bhf-features-list li + li {
    border-left: 1px solid var(--bhf-line);
}

.bhf-features-list li:first-child {
    padding-left: 0;
}

.bhf-features-list i {
    flex: none;
    width: 28px;
    color: var(--bhf-gold);
    font-size: 24px;
    text-align: center;
}

/* ---------- intro ---------- */

.bhf-intro {
    background-color: #FAFAF7;
}

.bhf-intro-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: end;
    gap: 64px;
}

.bhf-intro-label {
    margin: 0 0 14px;
    color: var(--bhf-gold);
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 600;
}

.bhf-section.bhf-intro h2 {
    max-width: 16em;
    font-size: clamp(28px, 3.2vw, 44px);
    line-height: 1.18;
}

.bhf-intro-body p {
    margin: 0 0 26px;
    color: var(--bhf-muted);
    font-size: 17px;
    line-height: 1.8;
}

/* ---------- categories ---------- */

.bhf-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 24px;
}

.bhf-category {
    display: block;
    border: 1px solid var(--bhf-line);
    border-bottom: 3px solid var(--bhf-green);
    background-color: #fff;
    transition: border-color 0.2s;
}

.bhf-category:hover {
    border-color: var(--bhf-gold);
}

.bhf-category-image {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background-color: #F1F4EC;
}

.bhf-category-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.bhf-category:hover .bhf-category-image img {
    transform: scale(1.05);
}

.bhf-category-info {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px;
}

.bhf-category-name {
    color: var(--bhf-green-deep);
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 700;
}

.bhf-category-count {
    flex: none;
    color: var(--bhf-muted);
    font-size: 14px;
}

/* ---------- product cards ---------- */

.bhf-featured {
    background-color: #FAFAF7;
}

.bhf-product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px 24px;
}

.bhf-product {
    display: block;
    text-align: left;
}

.bhf-product-image {
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border: 1px solid var(--bhf-line);
    background-color: #fff;
    transition: border-color 0.2s;
}

.bhf-product-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.bhf-product:hover .bhf-product-image {
    border-color: var(--bhf-green);
}

.bhf-product:hover .bhf-product-image img {
    transform: scale(1.05);
}

.bhf-product-name {
    display: block;
    margin-top: 14px;
    color: var(--bhf-green-deep);
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
    transition: color 0.2s;
}

.bhf-product:hover .bhf-product-name {
    color: var(--bhf-gold);
}

.bhf-product-meta {
    display: block;
    margin-top: 2px;
    color: var(--bhf-muted);
    font-size: 14px;
}

/* ---------- statistics ---------- */

.bhf-stats {
    padding: 64px 0;
    background-color: var(--bhf-cream);
}

.bhf-stats-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 32px 24px;
}

.bhf-stats-list li {
    padding-left: 20px;
    border-left: 2px solid var(--bhf-gold);
}

.bhf-stats-number {
    display: block;
    color: var(--bhf-green);
    font-family: 'Poppins', sans-serif;
    font-size: clamp(34px, 4vw, 52px);
    font-weight: 700;
    line-height: 1.1;
}

.bhf-stats-label {
    display: block;
    margin-top: 6px;
    color: var(--bhf-text);
    font-size: 15px;
    text-transform: capitalize;
}

/* ---------- catalog: filter + product cards ---------- */

.bhf-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 36px;
}

.bhf-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px 10px 20px;
    border: 1px solid var(--bhf-line);
    border-radius: 40px;
    background-color: #fff;
    color: var(--bhf-green-deep);
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.bhf-filter-btn span {
    min-width: 30px;
    padding: 4px 8px;
    border-radius: 20px;
    background-color: #EEF1EA;
    color: var(--bhf-muted);
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    transition: background-color 0.2s, color 0.2s;
}

.bhf-filter-btn:hover {
    border-color: var(--bhf-green);
    color: var(--bhf-green);
}

.bhf-filter-btn:focus-visible {
    outline: 2px solid var(--bhf-gold);
    outline-offset: 2px;
}

.bhf-filter-btn.is-active {
    border-color: var(--bhf-green);
    background-color: var(--bhf-green);
    color: #fff;
}

.bhf-filter-btn.is-active span {
    background-color: var(--bhf-gold-light);
    color: var(--bhf-green-ink);
}

.bhf-pcard-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.bhf-pcard-grid.is-switching .bhf-pcard-item {
    animation: bhf-pcard-in 0.35s ease both;
}

@keyframes bhf-pcard-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.bhf-pcard-item[hidden] {
    display: none;
}

.bhf-pcard {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--bhf-line);
    border-radius: 14px;
    background-color: #fff;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.bhf-pcard-image {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background-color: #fff;
}

.bhf-pcard-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

/* green veil with the call to action, revealed on hover */
.bhf-pcard-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(28, 46, 21, 0.82), rgba(28, 46, 21, 0) 62%);
    opacity: 0;
    transition: opacity 0.3s;
}

.bhf-pcard-view {
    position: absolute;
    right: 16px;
    bottom: 14px;
    left: 16px;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s, transform 0.3s;
}

.bhf-pcard-view i {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--bhf-gold-light);
    color: var(--bhf-green-ink);
    font-size: 12px;
}

.bhf-pcard-body {
    display: block;
    padding: 16px 18px 18px;
    border-top: 1px solid var(--bhf-line);
}

.bhf-pcard-cat {
    display: block;
    margin-bottom: 4px;
    color: var(--bhf-gold);
    font-size: 13px;
    font-weight: 500;
}

.bhf-pcard-name {
    display: block;
    color: var(--bhf-green-deep);
    font-family: 'Poppins', sans-serif;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.3;
    transition: color 0.2s;
}

.bhf-pcard:hover,
.bhf-pcard:focus-visible {
    border-color: var(--bhf-green);
    box-shadow: 0 18px 34px -18px rgba(28, 46, 21, 0.45);
    transform: translateY(-6px);
}

.bhf-pcard:focus-visible {
    outline: 2px solid var(--bhf-gold);
    outline-offset: 2px;
}

.bhf-pcard:hover .bhf-pcard-image img,
.bhf-pcard:focus-visible .bhf-pcard-image img {
    transform: scale(1.08);
}

.bhf-pcard:hover .bhf-pcard-image::after,
.bhf-pcard:focus-visible .bhf-pcard-image::after {
    opacity: 1;
}

.bhf-pcard:hover .bhf-pcard-view,
.bhf-pcard:focus-visible .bhf-pcard-view {
    opacity: 1;
    transform: none;
}

.bhf-pcard:hover .bhf-pcard-name {
    color: var(--bhf-green);
}

.bhf-catalog-more {
    margin: 40px 0 0;
    text-align: center;
}

@media (prefers-reduced-motion: reduce) {
    .bhf-pcard,
    .bhf-pcard-image img,
    .bhf-pcard-view {
        transition: none;
    }

    .bhf-pcard:hover,
    .bhf-pcard:focus-visible {
        transform: none;
    }

    .bhf-pcard-grid.is-switching .bhf-pcard-item {
        animation: none;
    }
}
/* ---------- testimonials ---------- */

.bhf-testimonials {
    background-color: #FAFAF7;
}

.bhf-testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.bhf-testimonial {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
    padding: 30px;
    border: 1px solid var(--bhf-line);
    border-top: 3px solid var(--bhf-gold);
    background-color: #fff;
}

.bhf-testimonial-text {
    margin: 0;
    color: var(--bhf-text);
    font-size: 17px;
    line-height: 1.7;
}

.bhf-testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.bhf-testimonial-author img {
    flex: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.bhf-testimonial-name {
    display: block;
    color: var(--bhf-green-deep);
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
}

.bhf-testimonial-rank {
    display: block;
    color: var(--bhf-muted);
    font-size: 14px;
}

/* ---------- call to action ---------- */

.bhf-cta {
    padding: 64px 0;
    background-color: var(--bhf-green);
}

.bhf-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px 48px;
}

.bhf-section.bhf-cta h2 {
    color: #fff;
}

.bhf-cta p {
    margin: 10px 0 0;
    color: rgba(246, 241, 222, 0.86);
    font-size: 17px;
}

.bhf-cta .bhf-btn {
    flex: none;
}

/* ---------- partners ---------- */

.bhf-partners {
    padding: 48px 0;
    border-top: 1px solid var(--bhf-line);
}

.bhf-partners-inner {
    display: flex;
    align-items: center;
    gap: 24px 48px;
}

.bhf-section.bhf-partners h2 {
    flex: none;
    color: var(--bhf-muted);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0;
}

.bhf-partners-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px 40px;
}

.bhf-partners-list img {
    display: block;
    max-height: 72px;
    width: auto;
}

/* ---------- responsive ---------- */

@media (max-width: 991px) {
    .bhf-section {
        padding: 64px 0;
    }

    .bhf-features,
    .bhf-section.bhf-features {
        padding: 0;
    }

    .bhf-features-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bhf-features-list li,
    .bhf-features-list li:first-child {
        padding: 20px 16px;
    }

    .bhf-features-list li + li {
        border-left: 0;
    }

    .bhf-features-list li:nth-child(even) {
        border-left: 1px solid var(--bhf-line);
    }

    .bhf-features-list li:nth-child(n + 3) {
        border-top: 1px solid var(--bhf-line);
    }

    .bhf-intro-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .bhf-product-grid,
    .bhf-pcard-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .bhf-stats,
    .bhf-cta {
        padding: 52px 0;
    }

    .bhf-cta-inner {
        flex-direction: column;
        align-items: flex-start;
    }

}

@media (max-width: 600px) {
    .bhf-section {
        padding: 52px 0;
    }

    .bhf-section.bhf-features {
        padding: 0;
    }

    .bhf-section.bhf-partners {
        padding: 40px 0;
    }

    .bhf-section-head {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 26px;
    }

    .bhf-features-list li,
    .bhf-features-list li:first-child {
        gap: 10px;
        padding: 16px 10px;
        font-size: 14px;
    }

    .bhf-features-list i {
        width: 22px;
        font-size: 18px;
    }

    .bhf-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .bhf-category-info {
        flex-direction: column;
        gap: 2px;
        padding: 14px;
    }

    .bhf-category-name {
        font-size: 17px;
    }

    .bhf-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px 14px;
    }

    .bhf-product-name {
        font-size: 15px;
    }

    .bhf-pcard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .bhf-pcard-body {
        padding: 12px 12px 14px;
    }

    .bhf-pcard-name {
        font-size: 15px;
    }

    /* phones have no hover: one scrolling row of filters, details label always readable */
    .bhf-filter {
        flex-wrap: nowrap;
        margin-right: -16px;
        margin-bottom: 24px;
        padding-right: 16px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .bhf-filter::-webkit-scrollbar {
        display: none;
    }

    .bhf-filter-btn {
        flex: none;
        padding: 8px 10px 8px 16px;
        font-size: 14px;
    }

    .bhf-partners-inner {
        flex-direction: column;
        align-items: flex-start;
    }

}
