/*
Theme Name: Plantiemoji Product Child
Description: Product-page update for the Plantiemoji theme.
Version: 3.3.38
Template: plantiemoji-home-v3-theme
*/

@import url("../plantiemoji-home-v3-theme/style.css");

/* Keep the primary navigation focused on the storefront. This applies to
   both the desktop header and the slide-out mobile menu. */
.site-header .menu a[href*="facebook.com"],
.site-header .menu a[href*="apps.apple.com"],
.site-header nav.nav a[href*="facebook.com"],
.site-header nav.nav a[href*="apps.apple.com"],
#mobileMenu a[href*="facebook.com"],
#mobileMenu a[href*="apps.apple.com"] {
    display: none !important;
}

/* The app is not yet offered from the homepage product card. */
article.product-card img[alt="Plantalk AI App"] ~ a.pill {
    display: none !important;
}

/* Live WooCommerce cart quantity badge used by every header variant. */
.pm-cart-link {
    position: relative !important;
}

.pm-cart-count {
    position: absolute;
    top: -9px;
    right: -11px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #e32626;
    color: #fff;
    font: 700 11px/1 Arial, sans-serif;
    box-shadow: 0 0 0 2px #fff;
    z-index: 4;
}

.pm-cart-count[hidden] {
    display: none !important;
}

/* Compact footer shared by every non-homepage template. */
.site-footer {
    min-height: 0 !important;
    padding: 82px 0 34px !important;
}

.site-footer .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    max-width: 760px;
    gap: 40px 72px !important;
}

.site-footer .footer-meta {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 48px !important;
    padding-top: 20px;
    border-top: 1px solid #536359;
}

.site-footer .footer-locales {
    display: flex;
    justify-content: flex-end;
    gap: 26px;
}

.pm-footer-identity {
    max-width: 720px;
    margin: 10px 0 0;
    color: #b9c4bd;
    font-size: 12px;
    line-height: 1.5;
}

.contact-secondary {
    margin-top: 14px;
    color: #5d665f;
    font-size: 13px;
    line-height: 1.55;
}

/* The homepage is static HTML, so these selectors compact its matching footer. */
main > section.newsletter,
body.home main > section.community,
.footer .footer-grid > div:first-child,
.footer .footer-grid > div:last-child,
.footer .payment-icons,
.footer .app-badge {
    display: none !important;
}

/* Remove the community link from the static homepage footer as well. */
.footer .footer-grid > div:nth-child(2) ul li:last-child {
    display: none !important;
}

.footer {
    height: auto !important;
    min-height: 0 !important;
    padding-bottom: 36px !important;
}

.footer .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    max-width: 760px;
    margin: 0 auto;
}

.footer .footer-bottom {
    display: block !important;
    max-width: 760px;
    margin: 48px auto 0 !important;
}

.footer .locales {
    margin-top: 22px !important;
}

@media (max-width: 800px) {
    .site-footer {
        padding: 70px 0 28px !important;
    }

    .site-footer .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 28px 24px !important;
    }

    .site-footer .footer-meta {
        align-items: flex-start;
        flex-direction: column;
        margin-top: 38px !important;
    }

    .site-footer .footer-locales {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .footer {
        padding-bottom: 26px !important;
    }

    .footer .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 34px 24px !important;
    }

    .footer .footer-bottom {
        margin-top: 38px !important;
    }
}
