/* The Flooring District Pro v1.0 — mobile homepage only */

/* Smart Slider typography */
.home .n2-ss-slider h1,
.home .n2-ss-slider h2,
.home .n2-ss-slider h3,
.home .n2-ss-slider .n2-ss-text,
.home .n2-ss-slider [class*="n2-ss-text"] {
    line-height: 1.1 !important;
    overflow-wrap: break-word !important;
}
.home .n2-ss-slider h1 { font-size: 29px !important; }
.home .n2-ss-slider h2 { font-size: 26px !important; }
.home .n2-ss-slider h3 { font-size: 21px !important; }

/* General mobile homepage H1 */
.home h1,
.home .entry-title,
.home .page-title,
.home .site-main > h1,
.home .entry-content > h1 {
    font-size: 33px !important;
    line-height: 1.12 !important;
    letter-spacing: -.025em !important;
}

/* Collections heading inserted immediately after Smart Slider */
.home .tfd-collections-title {
    margin: 28px 14px 16px !important;
    color: #222 !important;
    font-size: 27px !important;
    font-weight: 750 !important;
    line-height: 1.15 !important;
    letter-spacing: -.02em !important;
    text-align: center !important;
}

/* Two-column WooCommerce category grid */
.home ul.products,
.home .woocommerce ul.products,
.home .wc-block-product-categories-list,
.home .wp-block-woocommerce-product-categories ul {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-flow: row !important;
    gap: 13px !important;
    margin: 0 14px 30px !important;
    padding: 0 !important;
}
.home ul.products::before,
.home ul.products::after,
.home .woocommerce ul.products::before,
.home .woocommerce ul.products::after {
    display: none !important;
    content: none !important;
}
.home ul.products li.product-category,
.home .woocommerce ul.products li.product-category,
.home .wc-block-product-categories-list-item,
.home .wp-block-woocommerce-product-categories li {
    float: none !important;
    clear: none !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    overflow: hidden !important;
    border: 1px solid #e3e3e3 !important;
    border-radius: 9px !important;
    background: #fff !important;
    box-shadow: 0 4px 14px rgba(0,0,0,.055) !important;
    text-align: center !important;
}
.home ul.products li.product-category > a,
.home .woocommerce ul.products li.product-category > a,
.home .wc-block-product-categories-list-item > a {
    display: block !important;
    color: #222 !important;
    text-decoration: none !important;
}
.home ul.products li.product-category img,
.home .woocommerce ul.products li.product-category img,
.home .wc-block-product-categories-list-item img,
.home .wp-block-woocommerce-product-categories img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    margin: 0 !important;
    object-fit: cover !important;
    background: #f6f6f6 !important;
}
.home ul.products li.product-category h2,
.home .woocommerce ul.products li.product-category h2,
.home .wc-block-product-categories-list-item__name,
.home .wp-block-woocommerce-product-categories .wc-block-product-categories-list-item__name {
    display: flex !important;
    min-height: 49px !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 8px 7px !important;
    color: #222 !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    line-height: 1.22 !important;
    text-transform: none !important;
}
.home ul.products li.product-category .count,
.home .woocommerce ul.products li.product-category .count,
.home .wc-block-product-categories-list-item-count {
    display: none !important;
}

/* Learn More appears directly after the Premium Porcelain Tiles intro paragraph. */
.home .tfd-mobile-learn-more {
    margin: 4px 0 24px !important;
}
.home .tfd-mobile-learn-more-toggle {
    display: inline-flex !important;
    min-height: 42px !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 10px 0 4px !important;
    padding: 11px 20px !important;
    border: 1px solid #a32020 !important;
    border-radius: 999px !important;
    background: #fff !important;
    color: #a32020 !important;
    box-shadow: none !important;
    font-size: 14px !important;
    font-weight: 750 !important;
    line-height: 1 !important;
    cursor: pointer !important;
}
.home .tfd-mobile-learn-more-toggle::after {
    content: "\2304";
    margin-left: 8px;
    font-size: 15px;
    transform: translateY(-1px);
}
.home .tfd-mobile-learn-more.is-open .tfd-mobile-learn-more-toggle::after {
    content: "\2303";
    transform: translateY(2px);
}
.home .tfd-mobile-learn-more-content {
    display: none !important;
    padding-top: 14px !important;
}
.home .tfd-mobile-learn-more.is-open .tfd-mobile-learn-more-content {
    display: block !important;
}
.home .tfd-mobile-learn-more-content > :first-child {
    margin-top: 0 !important;
}

/* Compact footer */
.site-footer {
    padding-top: 28px !important;
    padding-bottom: 28px !important;
}
.site-footer .widget_pages,
.site-footer .widget_nav_menu,
.site-footer .widget_meta,
.site-footer .widget_categories,
.site-footer iframe,
.site-footer .wp-block-embed,
.site-footer [class*="map"] iframe {
    display: none !important;
}
.site-footer .widget { margin-bottom: 20px !important; }
.site-footer .footer-widgets,
.site-footer .col-full {
    padding-left: 18px !important;
    padding-right: 18px !important;
}

@media (max-width: 390px) {
    .home h1,
    .home .entry-title,
    .home .page-title,
    .home .site-main > h1,
    .home .entry-content > h1 { font-size: 30px !important; }
    .home .n2-ss-slider h1 { font-size: 26px !important; }
    .home .n2-ss-slider h2 { font-size: 23px !important; }
    .home .n2-ss-slider h3 { font-size: 19px !important; }
    .home .tfd-collections-title { font-size: 25px !important; }
    .home ul.products,
    .home .woocommerce ul.products,
    .home .wc-block-product-categories-list,
    .home .wp-block-woocommerce-product-categories ul {
        gap: 10px !important;
        margin-left: 10px !important;
        margin-right: 10px !important;
    }
    .home ul.products li.product-category h2,
    .home .woocommerce ul.products li.product-category h2,
    .home .wc-block-product-categories-list-item__name {
        min-height: 47px !important;
        font-size: 12px !important;
    }
}
