/* Homepage sections below the product rows: the hose adapter feature,
   "Pick Your Saw" insert chips, and the "What Customers Say About the Fit"
   review block.

   Review block.
   Sits inside .tc-home-catalog after the product rows and reuses their row,
   header, "view all" link and Splide arrow styles
   (components/sliders/homepage-products-splide.css). */

.tc-home-catalog .tc-home-reviews-header {
    align-items: flex-start;
    justify-content: space-between;
}

/* Same 40px row as the arrow pair (pinned top-right), so the link sits on
   the arrows' center line rather than the bottom of the two-line title. */
.tc-home-catalog .tc-home-reviews-header .tc-home-products-view-all {
    display: inline-flex;
    align-items: center;
    height: 40px;
    padding-block: 0;
}

/* The product rows reserve exactly the arrow pair's width (88px); leave a
   16px gap so "Read all reviews →" doesn't touch the previous arrow. */
.tc-home-catalog .tc-home-reviews.tc-home-product-carousel .tc-home-reviews-header {
    padding-right: calc(88px + var(--space-4));
}

.tc-home-catalog .tc-home-reviews-title {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    min-width: 0;
}

#wrapper .tc-home-catalog .tc-home-reviews-title h2 {
    margin: 0;
    color: var(--text-heading);
    font-family: var(--font-ui);
    font-size: var(--fs-20);
    font-weight: var(--fw-bold);
    line-height: var(--lh-snug);
}

.tc-home-catalog .tc-home-reviews-summary,
.tc-home-catalog .tc-home-reviews-summary:link,
.tc-home-catalog .tc-home-reviews-summary:visited {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
    color: var(--text-heading);
    font-size: var(--fs-14);
    line-height: 15px;
    text-decoration: none;
}

.tc-home-catalog .tc-home-reviews-summary .tc-rating-value {
    font-weight: var(--fw-bold);
}

.tc-home-catalog .tc-home-reviews-count {
    color: var(--text-muted);
}

.tc-home-catalog .tc-home-reviews-summary:hover .tc-home-reviews-count {
    text-decoration: underline;
}

.tc-home-catalog .tc-home-reviews-summary:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 2px;
}

/* No-JS layout: a plain grid. Splide swaps it for a row. */
.tc-home-catalog .tc-home-reviews-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-4);
    margin: 0;
    padding: 0;
    list-style: none;
}

.tc-home-catalog .tc-home-reviews .tc-home-reviews-list.splide__list {
    display: flex;
    gap: 0;
}

.tc-home-catalog .tc-home-review {
    display: flex;
    height: auto;
    margin: 0;
}

.tc-home-catalog .tc-home-review-card {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: var(--space-3);
    margin: 0;
    padding: var(--space-6);
    background: var(--surface-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06);
}

.tc-home-catalog .tc-home-review-card .star-rating {
    align-self: flex-start;
}

.tc-home-catalog .tc-home-review-text {
    margin: 0;
    padding: 0;
    border: 0;
}

.tc-home-catalog .tc-home-review-text p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: var(--text-heading);
    font-size: var(--fs-16);
    line-height: var(--lh-body);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
}

/* Name and product sit together at the card bottom, so names line up
   across the row and the name-to-product gap is the same on every card.
   Review length is kept to 70–180 characters (home-reviews.php) so cards
   come out close to the same height. */
.tc-home-catalog .tc-home-review-footer {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    margin-top: auto;
}

.tc-home-catalog .tc-home-review-meta {
    margin: 0;
    color: var(--text-muted);
    font-size: var(--fs-13);
}

.tc-home-catalog .tc-home-review-meta strong {
    color: var(--text-heading);
    font-weight: var(--fw-semibold);
}

.tc-home-catalog .tc-home-review-product,
.tc-home-catalog .tc-home-review-product:link,
.tc-home-catalog .tc-home-review-product:visited {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding-top: var(--space-3);
    color: var(--text-heading);
    border-top: 1px solid var(--line-soft);
    text-decoration: none;
}

.tc-home-catalog .tc-home-review-product:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 2px;
}

.tc-home-catalog .tc-home-review-thumb {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.tc-home-catalog .tc-home-review-product-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.tc-home-catalog .tc-home-review-product-name {
    font-size: var(--fs-14);
    line-height: var(--lh-snug);
}

.tc-home-catalog .tc-home-review-product-cta {
    color: var(--color-link);
    font-size: var(--fs-13);
    font-weight: var(--fw-semibold);
}

.tc-home-catalog .tc-home-review-product:hover .tc-home-review-product-cta {
    text-decoration: underline;
}

/* Phone-only "Read all N reviews" button and dot pagination
   (Splide adds the dots at the phone breakpoint only). */
.tc-home-catalog .tc-home-reviews-all-button {
    display: none;
}

.tc-home-catalog .tc-home-reviews .splide__pagination {
    position: static;
    gap: 6px;
    margin-top: var(--space-1);
    padding: 0;
}

.tc-home-catalog .tc-home-reviews .splide__pagination li {
    margin: 0;
    line-height: 0;
}

.tc-home-catalog .tc-home-reviews .splide__pagination__page {
    width: 8px;
    height: 8px;
    margin: 0;
    padding: 0;
    opacity: 1;
    background: var(--ink-100, #C4CBD4);
    border: 0;
    border-radius: 999px;
    transform: none;
}

.tc-home-catalog .tc-home-reviews .splide__pagination__page.is-active {
    background: var(--navy-700, #293042);
    transform: none;
}

.tc-home-catalog .tc-home-reviews .splide__pagination__page:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 3px;
}

@media all and (min-width: 768px) {
    .tc-home-catalog .tc-home-reviews-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media all and (min-width: 1024px) {
    .tc-home-catalog .tc-home-reviews-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: var(--space-5);
    }
}

@media all and (min-width: 1440px) {
    .tc-home-catalog .tc-home-reviews-list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media all and (max-width: 767px) {
    .tc-home-catalog .tc-home-reviews-header .tc-home-products-view-all {
        display: none;
    }

    /* No arrows on phones, so the heading gets the full width. */
    .tc-home-catalog .tc-home-reviews.tc-home-product-carousel .tc-home-reviews-header {
        padding-right: 0;
    }

    /* Splide appends the dots at the end of the section; order the button
       after them: header, card, dots, "Read all N reviews". The JS sizes the
       list to the card in view (no transition: a paused background tab
       would leave it stuck at the old height). */
    .tc-home-catalog .tc-home-reviews.tc-home-product-carousel {
        display: flex;
        flex-direction: column;
    }

    .tc-home-catalog .tc-home-reviews .tc-home-reviews-all-button {
        order: 2;
    }

    .tc-home-catalog .tc-home-reviews-all-button,
    .tc-home-catalog .tc-home-reviews-all-button:link,
    .tc-home-catalog .tc-home-reviews-all-button:visited {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 44px;
        margin-top: var(--space-4);
        color: var(--text-heading);
        background: var(--surface-card);
        border: 1px solid var(--border-control);
        border-radius: var(--radius-md, 8px);
        font-size: var(--fs-15, 15px);
        font-weight: var(--fw-semibold);
        text-decoration: none;
    }

    .tc-home-catalog .tc-home-reviews-all-button:focus-visible {
        outline: 2px solid var(--focus-ring);
        outline-offset: 2px;
    }

    .tc-home-catalog .tc-home-review-card {
        padding: var(--space-5);
    }

    /* Every card is 5 stars and the heading's rating line already says so;
       the phone design drops the per-card stars. */
    /* !important: components/icons.css sets .tc-star-rating
       display: inline-flex !important for every star row. */
    .tc-home-catalog .tc-home-review-card > .star-rating {
        display: none !important;
    }

    /* One card shows at a time, so let each size to its own review
       instead of stretching to the longest one. */
    .tc-home-catalog .tc-home-reviews .tc-home-reviews-list.splide__list {
        align-items: flex-start;
    }

    .tc-home-catalog .tc-home-review-footer {
        margin-top: var(--space-2);
    }
}

/* ── Feature sections (hose adapters, Pick Your Saw) ───────────────────── */

.tc-home-catalog .tc-home-feature {
    display: flex;
    flex-wrap: wrap;
    margin: 0 0 var(--space-8);
    overflow: hidden;
    background: var(--surface-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06);
}

#wrapper .tc-home-catalog .tc-home-feature h2 {
    margin: 0;
    color: var(--text-heading);
    font-family: var(--font-ui);
    font-weight: var(--fw-bold);
    letter-spacing: -0.01em;
}

.tc-home-catalog .tc-home-feature-link,
.tc-home-catalog .tc-home-feature-link:link,
.tc-home-catalog .tc-home-feature-link:visited {
    color: var(--color-link);
    font-size: var(--fs-14);
    font-weight: var(--fw-semibold);
}

.tc-home-catalog .tc-home-feature-link:focus-visible,
.tc-home-catalog .tc-home-feature-button:focus-visible,
.tc-home-catalog .tc-home-insert-chip:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 2px;
}

/* Hose adapter feature: photo left, copy right; stacks on phones. */
.tc-home-catalog .tc-home-feature-media {
    position: relative;
    flex: 1.2 1 480px;
    min-width: 0;
    min-height: 320px;
    background: var(--surface-sunken);
}

/* Fills its half of the card exactly, whatever height the copy sets. */
.tc-home-catalog .tc-home-feature-photo {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tc-home-catalog .tc-home-feature-body {
    display: flex;
    flex: 1 1 380px;
    flex-direction: column;
    justify-content: center;
    gap: var(--space-4);
    min-width: 0;
    padding: var(--space-8);
    box-sizing: border-box;
}

/* #wrapper: the theme's paragraph rule otherwise resets the weight to 400. */
#wrapper .tc-home-catalog .tc-home-feature-eyebrow {
    margin: 0;
    color: var(--orange-700);
    font-size: var(--fs-13);
    font-weight: var(--fw-bold);
    letter-spacing: var(--ls-eyebrow);
    text-transform: uppercase;
}

#wrapper .tc-home-catalog .tc-home-hose-feature h2 {
    font-size: 28px;
    line-height: 1.15;
}

.tc-home-catalog .tc-home-feature-lede {
    margin: 0;
    color: var(--text-body);
    font-size: var(--fs-16);
    line-height: var(--lh-body);
}

.tc-home-catalog .tc-home-feature-points {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--text-heading);
    font-size: var(--fs-15, 15px);
}

.tc-home-catalog .tc-home-feature-points li {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin: 0;
}

.tc-home-catalog .tc-home-feature-check {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    fill: var(--success-600);
}

.tc-home-catalog .tc-home-feature-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-4);
    margin-top: var(--space-1);
}

.tc-home-catalog .tc-home-feature-button,
.tc-home-catalog .tc-home-feature-button:link,
.tc-home-catalog .tc-home-feature-button:visited {
    display: inline-flex;
    align-items: center;
    height: 48px;
    padding: 0 var(--space-6);
    color: var(--color-primary-contrast);
    background: var(--color-primary);
    border-radius: var(--radius-md, 8px);
    font-size: var(--fs-16);
    font-weight: var(--fw-bold);
    text-decoration: none;
    transition: background-color var(--dur-fast) var(--ease-standard),
                transform var(--dur-fast) var(--ease-standard);
}

.tc-home-catalog .tc-home-feature-button:hover {
    color: var(--color-primary-contrast);
    background: var(--color-primary-hover);
    transform: translateY(-1px);
}

/* Pick Your Saw: product photo + chips named by saw. */
.tc-home-catalog .tc-home-insert-picker {
    align-items: center;
    gap: var(--space-6);
    padding: var(--space-6);
    box-sizing: border-box;
}

.tc-home-catalog .tc-home-insert-media {
    flex: 0 0 200px;
}

.tc-home-catalog .tc-home-insert-photo {
    display: block;
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius-md, 8px);
}

.tc-home-catalog .tc-home-insert-body {
    display: flex;
    flex: 1 1 480px;
    flex-direction: column;
    gap: var(--space-4);
    min-width: 0;
}

#wrapper .tc-home-catalog .tc-home-insert-picker h2 {
    font-size: var(--fs-22, 22px);
    line-height: var(--lh-snug);
}

.tc-home-catalog .tc-home-insert-lede {
    margin: var(--space-1) 0 0;
    color: var(--text-muted);
    font-size: var(--fs-15, 15px);
}

.tc-home-catalog .tc-home-insert-chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin: 0;
    padding: 0;
    list-style: none;
}

.tc-home-catalog .tc-home-insert-chips li {
    margin: 0;
}

.tc-home-catalog .tc-home-insert-chip,
.tc-home-catalog .tc-home-insert-chip:link,
.tc-home-catalog .tc-home-insert-chip:visited {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 var(--space-4);
    color: var(--text-heading);
    background: var(--surface-hover);
    border: 1px solid var(--border-control);
    border-radius: 999px;
    font-size: var(--fs-14);
    font-weight: var(--fw-medium);
    line-height: 1.2;
    text-decoration: none;
    box-sizing: border-box;
    transition: border-color var(--dur-fast) var(--ease-standard),
                background-color var(--dur-fast) var(--ease-standard);
}

/* Desktop shows each chip's full label on one line; phones show the
   brand/model tile instead (see the phone rules below). */
.tc-home-catalog .tc-home-insert-tile {
    display: none;
}

.tc-home-catalog .tc-home-insert-eyebrow {
    display: inline;
}

.tc-home-catalog .tc-home-insert-chip:hover {
    color: var(--text-heading);
    background: var(--surface-card);
    border-color: var(--secondary, var(--navy-700));
}

@media all and (max-width: 767px) {
    .tc-home-catalog .tc-home-feature-media {
        min-height: 210px;
    }

    .tc-home-catalog .tc-home-feature-body {
        padding: var(--space-5);
    }

    #wrapper .tc-home-catalog .tc-home-hose-feature h2 {
        font-size: 24px;
    }

    /* Pick Your Saw on phones: photo banner, eyebrow + "Pick Your Saw",
       a 2-column grid of saw tiles (brand over model), full-width button. */
    .tc-home-catalog .tc-home-insert-picker {
        gap: 0;
        padding: 0;
    }

    .tc-home-catalog .tc-home-insert-media {
        flex: 1 1 100%;
    }

    .tc-home-catalog .tc-home-insert-photo {
        width: 100%;
        height: 150px;
        border-radius: 0;
    }

    .tc-home-catalog .tc-home-insert-body {
        flex: 1 1 100%;
        gap: var(--space-4);
        padding: var(--space-5) var(--space-4) var(--space-5);
    }

    .tc-home-catalog .tc-home-insert-eyebrow {
        display: block;
        margin-bottom: var(--space-1);
        color: var(--orange-700);
        font-size: var(--fs-12, 12px);
        font-weight: var(--fw-bold);
        letter-spacing: var(--ls-eyebrow);
        line-height: 1.3;
        text-transform: uppercase;
    }

    .tc-home-catalog .tc-home-insert-sep {
        display: none;
    }

    #wrapper .tc-home-catalog .tc-home-insert-picker h2 {
        font-size: 24px;
        line-height: 1.15;
    }

    .tc-home-catalog .tc-home-insert-lede {
        margin-top: var(--space-2);
        font-size: var(--fs-14);
        line-height: var(--lh-body);
    }

    .tc-home-catalog .tc-home-insert-chips {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--space-2);
    }

    .tc-home-catalog .tc-home-insert-chip,
    .tc-home-catalog .tc-home-insert-chip:link,
    .tc-home-catalog .tc-home-insert-chip:visited {
        display: flex;
        align-items: center;
        width: 100%;
        height: 100%;
        min-height: 60px;
        padding: var(--space-2) var(--space-3);
        border-radius: var(--radius-md, 8px);
    }

    .tc-home-catalog .tc-home-insert-full {
        display: none;
    }

    .tc-home-catalog .tc-home-insert-tile {
        display: flex;
        flex-direction: column;
        gap: 2px;
        min-width: 0;
    }

    .tc-home-catalog .tc-home-insert-brand {
        color: var(--text-muted);
        font-size: 11px;
        font-weight: var(--fw-bold);
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }

    .tc-home-catalog .tc-home-insert-model {
        color: var(--text-heading);
        font-size: var(--fs-15, 15px);
        font-weight: var(--fw-semibold);
        line-height: 1.25;
    }

    .tc-home-catalog .tc-home-insert-picker .tc-home-feature-link,
    .tc-home-catalog .tc-home-insert-picker .tc-home-feature-link:link,
    .tc-home-catalog .tc-home-insert-picker .tc-home-feature-link:visited {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 44px;
        color: var(--navy-700, #293042);
        border: 1px solid var(--navy-700, #293042);
        border-radius: var(--radius-md, 8px);
        font-size: var(--fs-15, 15px);
        font-weight: var(--fw-bold);
        text-decoration: none;
    }

    /* Chips stack one per line on phones: show the top 6 sellers only;
       "See all N inserts" covers the rest. */
    .tc-home-catalog .tc-home-insert-chips li:nth-child(n+7) {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tc-home-catalog .tc-home-feature-button {
        transition: none;
    }

    .tc-home-catalog .tc-home-feature-button:hover {
        transform: none;
    }
}

.tc-home-catalog .tc-nowrap {
    white-space: nowrap;
}

/* ── Shop by Category + Shop by Tool Brand (top of the catalog) ─────────── */


.tc-home-catalog .tc-home-categories,
.tc-home-catalog .tc-home-brand-row {
    margin: 0 0 var(--space-8);
}

.tc-home-catalog .tc-home-category-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-3);
    margin: 0;
    padding: 0;
    list-style: none;
}

.tc-home-catalog .tc-home-category-grid li {
    display: flex;
    margin: 0;
}

.tc-home-catalog .tc-home-category,
.tc-home-catalog .tc-home-category:link,
.tc-home-catalog .tc-home-category:visited {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    overflow: hidden;
    color: var(--text-heading);
    background: var(--surface-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06);
    text-decoration: none;
    transition: border-color var(--dur-fast) var(--ease-standard),
                box-shadow var(--dur-base) var(--ease-out),
                transform var(--dur-base) var(--ease-out);
}

.tc-home-catalog .tc-home-category:hover,
.tc-home-catalog .tc-home-category:focus-visible {
    border-color: var(--border-control);
    box-shadow: var(--shadow-dropdown);
    transform: translateY(-2px);
}

.tc-home-catalog .tc-home-category:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 2px;
}

.tc-home-catalog .tc-home-category-media {
    display: block;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: var(--surface-sunken);
}

.tc-home-catalog .tc-home-category-photo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--dur-base) var(--ease-out);
}

.tc-home-catalog .tc-home-category:hover .tc-home-category-photo {
    transform: scale(1.03);
}

.tc-home-catalog .tc-home-category-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: var(--space-3) var(--space-3) var(--space-4);
}

.tc-home-catalog .tc-home-category-name {
    color: var(--text-heading);
    font-size: var(--fs-15, 15px);
    font-weight: var(--fw-bold);
    line-height: 1.25;
}

.tc-home-catalog .tc-home-category-blurb {
    display: none;
    color: var(--text-muted);
    font-size: var(--fs-14);
    line-height: 1.4;
}

.tc-home-catalog .tc-home-category-more {
    margin: var(--space-4) 0 0;
    color: var(--text-muted);
    font-size: var(--fs-14);
    line-height: 1.8;
}

.tc-home-catalog .tc-home-category-more a {
    font-weight: var(--fw-semibold);
}

/* Compact brand row: one row of short tiles on desktop, 5 across on phones
   (it was a 2-column stack of 64px tiles, almost a full phone screen). */
.tc-home-catalog .tc-brand-list--compact {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: var(--space-2);
    margin: 0;
    padding: 0;
    list-style: none;
}

.tc-home-catalog .tc-brand-list--compact li {
    margin: 0;
}

.tc-home-catalog .tc-brand-list--compact a,
.tc-home-catalog .tc-brand-list--compact a:link,
.tc-home-catalog .tc-brand-list--compact a:visited {
    min-height: 44px;
    padding: var(--space-2) 2px;
    border-radius: var(--radius-md, 8px);
    font-size: 13px;
    letter-spacing: 0;
}

.tc-home-catalog .tc-brand-list--compact a::after {
    height: 3px;
}

@media all and (min-width: 768px) {
    .tc-home-catalog .tc-home-category-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: var(--space-5);
    }

    .tc-home-catalog .tc-home-category-media {
        aspect-ratio: 4 / 3;
    }

    .tc-home-catalog .tc-home-category-text {
        padding: var(--space-4) var(--space-4) var(--space-5);
    }

    .tc-home-catalog .tc-home-category-name {
        font-size: var(--fs-18);
    }

    .tc-home-catalog .tc-home-category-blurb {
        display: block;
    }

    .tc-home-catalog .tc-brand-list--compact {
        grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
        gap: var(--space-3);
    }

    .tc-home-catalog .tc-brand-list--compact a,
    .tc-home-catalog .tc-brand-list--compact a:link,
    .tc-home-catalog .tc-brand-list--compact a:visited {
        min-height: 52px;
        font-size: var(--fs-18);
    }
}

@media (prefers-reduced-motion: reduce) {
    .tc-home-catalog .tc-home-category,
    .tc-home-catalog .tc-home-category-photo {
        transition: none;
    }

    .tc-home-catalog .tc-home-category:hover,
    .tc-home-catalog .tc-home-category:hover .tc-home-category-photo {
        transform: none;
    }
}

/* ── Hero: banner slider (70%, as before) + "Find parts for your tool" ──── */

.tc-home-content .tc-home-finder {
    order: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: var(--space-3);
    width: 100%;
    margin: var(--space-4) var(--space-4) var(--space-3);
}

#wrapper .tc-home-finder-eyebrow,
.tc-home-finder-eyebrow {
    /* The column's 12px gap is enough on its own; the theme's paragraph
       margin and line height were adding extra space under this line. */
    margin: 0 0 calc(-1 * var(--space-1));
    font-family: var(--font-ui);
    color: var(--orange-700);
    font-size: var(--fs-13);
    font-weight: 700;
    letter-spacing: var(--ls-eyebrow);
    line-height: 1.2;
    text-transform: uppercase;
}

.tc-home-finder-rating,
.tc-home-finder-rating:link,
.tc-home-finder-rating:visited {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
    color: var(--text-heading);
    font-size: var(--fs-14);
    line-height: 15px;
    text-decoration: none;
}

.tc-home-finder-rating .tc-rating-value {
    font-weight: var(--fw-bold);
}

.tc-home-finder-rating-count {
    /* Link color, so "from N reviews" reads as the link to /reviews/. */
    color: var(--color-link);
    font-weight: var(--fw-semibold);
}

.tc-home-finder-rating:hover .tc-home-finder-rating-count {
    color: var(--color-link-hover, var(--color-link));
}

.tc-home-finder-rating:hover .tc-home-finder-rating-count {
    text-decoration: underline;
}

.tc-home-finder-rating:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 2px;
}

.tc-home-finder-card {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    margin: 0;
    /* No card: the picker sits straight in the hero's right column (the
       owner removed the grey/grid box to give the controls more room). */
    padding: 0;
    background: none;
    box-sizing: border-box;
}

#wrapper .tc-home-finder-title {
    margin: 0;
    line-height: 1.2;
    color: var(--text-heading);
    font-family: var(--font-ui);
    font-size: var(--fs-20);
    font-weight: var(--fw-bold);
    line-height: var(--lh-snug);
}

.tc-home-finder-field {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    /* One height for the plain select and the searchable box, so the card
       doesn't move when the dropdown script arrives after the page. */
    height: 44px;
    margin: 0;
    color: var(--text-muted);
    font-size: var(--fs-13);
    font-weight: var(--fw-semibold);
}

.tc-home-finder-field select {
    width: 100%;
    height: 44px;
    padding: 0 var(--space-3);
    color: var(--text-heading);
    background-color: var(--surface-card);
    border: 1px solid var(--border-control);
    border-radius: var(--radius-md, 8px);
    font-family: var(--font-ui);
    font-size: var(--fs-16);
    font-weight: var(--fw-medium);
}

.tc-home-finder-field select:disabled {
    color: var(--text-muted);
    background-color: var(--surface-hover);
}

.tc-home-finder-field select:focus-visible,
.tc-home-finder-button:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 2px;
}

.tc-home-finder-button {
    height: 44px;
    margin-top: var(--space-2);
    color: var(--color-primary-contrast);
    background: var(--color-primary);
    border: 0;
    border-radius: var(--radius-md, 8px);
    font-family: var(--font-ui);
    font-size: var(--fs-16);
    font-weight: var(--fw-bold);
    cursor: pointer;
    transition: background-color var(--dur-fast) var(--ease-standard);
}

.tc-home-finder-button:hover:not(:disabled) {
    background: var(--color-primary-hover);
}

.tc-home-finder-button:disabled {
    cursor: default;
    opacity: 0.5;
}

.tc-home-finder-help {
    margin: 0;
    color: var(--text-muted);
    font-size: var(--fs-13);
    line-height: 1.45;
}

.tc-home-finder-help a {
    font-weight: var(--fw-semibold);
}

@media all and (min-width: 768px) {
    /* Takes the right-hand column the brand tiles used (28%), level with
       the banner (70%). */
    .tc-home-content .tc-home-finder {
        width: 28%;
        /* Same small bottom margin as the banner (below), so the card ends
           level with it. */
        margin: 0 0 8px auto;
    }

    /* The banner's dots sit inside the image now, so its old 40px "room for
       the dots" (homepage-splide.css) was just blank space. 8px here plus the
       trust row's 12px top margin puts its divider 20px below the banner, the
       same 20px as from the divider down to the trust text. */
    .tc-home-content .tc-main-carousel {
        margin-bottom: 8px;
    }
}

/* ── Trust row under the hero: icon in an orange circle, title, one line ── */

.tc-home-content .tc-home-trust {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-4);
    padding-top: var(--space-5);
    border-top: 1px solid var(--line-soft);
}

.tc-home-trust .tc-info-box {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
}

.tc-home-trust-icon {
    display: flex;
    flex: 0 0 40px;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--orange-700);
    background: var(--orange-050, #FFF4EC);
    border-radius: 999px;
}

.tc-home-trust .tc-home-trust-icon .icon,
.tc-home-trust .tc-home-trust-icon svg {
    float: none;
    width: 20px;
    height: 20px;
    margin: 0;
    fill: currentColor;
}

#wrapper .tc-home-trust .tc-info-title {
    margin: 0 0 2px;
    font-size: var(--fs-15, 15px);
    font-weight: var(--fw-bold);
}

.tc-home-trust .tc-info-content {
    padding: 0;
    color: var(--text-muted);
    font-size: var(--fs-13);
}

@media all and (min-width: 600px) {
    .tc-home-content .tc-home-trust {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media all and (min-width: 1024px) {
    .tc-home-content .tc-home-trust {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: var(--space-5);
    }
}

/* ── Hero picker dropdowns: WooCommerce selectWoo in the checkout's
   "floating card" style (checkout-layout.css, design A). The closed box is
   scoped to .tc-home-finder; the open menu is appended to <body> and
   carries .tc-finder-dropdown. ── */

.tc-home-finder-card {
    position: relative;
}

.tc-home-finder .select2-container {
    width: 100% !important;
}

.tc-home-finder .select2-container .select2-selection--single {
    height: 44px;
    background: var(--surface-card);
    border: 1px solid var(--border-control);
    border-radius: var(--radius-md, 8px);
    outline: 0;
    transition: border-color var(--dur-fast) var(--ease-standard);
}

.tc-home-finder .select2-container:not(.select2-container--focus):not(.select2-container--open) .select2-selection:hover {
    border-color: var(--ink-200, #9aa4b2);
}

.tc-home-finder .select2-container .select2-selection--single .select2-selection__rendered {
    padding: 0 40px 0 12px;
    color: var(--text-heading);
    font-family: var(--font-ui);
    font-size: var(--fs-16);
    font-weight: var(--fw-medium);
    line-height: 42px;
}

.tc-home-finder .select2-container .select2-selection__placeholder {
    color: var(--text-muted);
}

.tc-home-finder .select2-container--focus .select2-selection--single,
.tc-home-finder .select2-container--open .select2-selection--single {
    border-color: var(--color-link);
    box-shadow: 0 0 0 3px rgba(10, 116, 151, 0.18);
}

.tc-home-finder .select2-container--disabled .select2-selection--single {
    background: var(--surface-hover);
    cursor: default;
}

.tc-home-finder .select2-container--disabled .select2-selection__rendered {
    color: var(--text-muted);
}

/* One quiet chevron instead of a boxed-off arrow. */
.tc-home-finder .select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 1px;
    right: 4px;
    width: 40px;
    height: 42px;
    border-left: 0;
}

.tc-home-finder .select2-container--default .select2-selection--single .select2-selection__arrow b {
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    margin: -6px 0 0 -4px;
    border-color: var(--text-muted);
    border-style: solid;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    transition: transform 300ms ease, margin 300ms ease;
}

.tc-home-finder .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    margin-top: -2px;
    border-width: 0 2px 2px 0;
    border-color: var(--text-muted);
    transform: rotate(-135deg);
}

/* The open menu: a detached card with a search box. */
.select2-container .tc-finder-dropdown {
    box-sizing: border-box;
    min-width: 240px;
    padding: 8px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border-card) !important;
    border-radius: var(--radius-md, 8px) !important;
    box-shadow: 0 12px 32px -6px rgb(41 48 66 / 18%), 0 2px 6px rgb(41 48 66 / 6%);
}

.select2-container .tc-finder-dropdown.select2-dropdown--below {
    margin-top: 6px;
}

.select2-container .tc-finder-dropdown.select2-dropdown--above {
    margin-top: -6px;
}

.tc-finder-dropdown .select2-search--dropdown {
    padding: 0 0 6px;
}

.tc-finder-dropdown .select2-search--dropdown .select2-search__field {
    box-sizing: border-box;
    width: 100%;
    height: 40px;
    padding: 0 12px 0 36px;
    color: var(--text-heading);
    background: #f6f8fc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='7' cy='7' r='5.25' fill='none' stroke='%23687281' stroke-width='1.75'/%3E%3Cpath d='M11 11l3.5 3.5' stroke='%23687281' stroke-width='1.75' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat 12px center / 15px 15px;
    border: 1px solid var(--border-card);
    border-radius: 6px;
    font-family: var(--font-ui);
    font-size: 16px; /* under 16px, iPhone Safari zooms the page on focus */
    appearance: none;
}

.tc-finder-dropdown .select2-search--dropdown .select2-search__field::placeholder {
    color: var(--text-muted);
}

.tc-finder-dropdown .select2-search--dropdown .select2-search__field:focus {
    background-color: #fff;
    border-color: var(--color-link);
    box-shadow: 0 0 0 3px rgba(10, 116, 151, 0.18);
    outline: 0;
}

.tc-finder-dropdown .select2-results > .select2-results__options {
    max-height: 288px;
    overscroll-behavior: contain;
}

.tc-finder-dropdown .select2-results__options::-webkit-scrollbar {
    width: 10px;
}

.tc-finder-dropdown .select2-results__options::-webkit-scrollbar-thumb {
    background: var(--border-control);
    border: 3px solid #fff;
    border-radius: 999px;
}

.tc-finder-dropdown .select2-results__option {
    margin: 0;
    padding: 8px 10px;
    color: var(--text-heading);
    border-radius: 6px;
    font-family: var(--font-ui);
    font-size: 15px;
    line-height: 20px;
}

.tc-finder-dropdown .select2-results__option:focus {
    outline: 0;
}

/* Tool-type group labels (Router, Sander …). */
.tc-finder-dropdown .select2-results__group {
    padding: 10px 10px 2px;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: var(--fw-bold);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.tc-finder-dropdown .select2-results__option[role="group"] {
    padding: 0;
}

.tc-finder-dropdown .select2-results__option .select2-results__option {
    padding: 6px 10px;
}

/* No extra gap under each tool-type group. */
.tc-finder-dropdown .select2-results__option[role="group"] > .select2-results__options {
    margin: 0;
}

.tc-finder-dropdown .select2-results__option--highlighted,
.select2-container--default .tc-finder-dropdown .select2-results__option--highlighted[aria-selected],
.select2-container--default .tc-finder-dropdown .select2-results__option--highlighted[data-selected] {
    color: var(--text-heading);
    background: #eef4f7;
}

/* The chosen one: steel text and a check. selectWoo puts aria-selected on
   the highlighted row; data-selected marks the real choice. */
.select2-container--default .tc-finder-dropdown .select2-results__option[data-selected="true"] {
    padding-right: 34px;
    color: var(--color-link);
    background-color: transparent;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3.2L13 4.8' fill='none' stroke='%230a7497' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 14px 14px;
    font-weight: 600;
}

.select2-container--default .tc-finder-dropdown .select2-results__option--highlighted[data-selected="true"] {
    color: var(--color-link);
    background-color: #eef4f7;
}

.tc-finder-dropdown .select2-results__message {
    padding: 14px 12px;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 400;
}

/* A tool row: photo, then the name over its model numbers (small grey mono). */
.tc-finder-dropdown .tc-finder-option {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tc-finder-dropdown .tc-finder-option-thumb {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border-card);
    border-radius: 6px;
}

.tc-finder-dropdown .tc-finder-option-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tc-finder-dropdown .tc-finder-option-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.tc-finder-dropdown .tc-finder-option-name {
    line-height: 19px;
}

/* Model numbers · parts count, on one line under the tool name. */
.tc-finder-dropdown .tc-finder-option-meta {
    display: flex;
    align-items: baseline;
    gap: 6px;
    min-width: 0;
}

.tc-finder-dropdown .tc-finder-option-models + .tc-finder-option-parts::before {
    margin-right: 6px;
    color: var(--ink-100, #C4CBD4);
    content: "·";
}

.tc-finder-dropdown .tc-finder-option-parts {
    flex: 0 0 auto;
    color: var(--success-600, #16843E);
    font-size: 12px;
    font-weight: 700;
    line-height: 15px;
    white-space: nowrap;
}

.tc-finder-dropdown .tc-finder-option-models {
    overflow: hidden;
    color: var(--text-muted);
    font-family: var(--font-mono, ui-monospace, Menlo, monospace);
    font-size: 12px;
    font-weight: 500;
    line-height: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tc-finder-dropdown .select2-results__option[data-selected="true"] .tc-finder-option-models {
    color: var(--color-link);
}

/* The chosen tool in the closed Tool box: photo + name. */
.tc-home-finder .select2-container .select2-selection--single .select2-selection__rendered.has-thumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-right: 40px;
    padding-left: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tc-home-finder .tc-finder-selection-thumb {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    object-fit: contain;
    border-radius: 4px;
}

/* Parts preview: "N parts fit your <model>" and the top 3 parts. */
.tc-home-finder-preview {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    margin-top: var(--space-1);
    padding: var(--space-3);
    background: var(--surface-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md, 8px);
}

.tc-home-finder-preview[hidden] {
    display: none;
}

#wrapper .tc-home-finder-preview-head,
.tc-home-finder-preview-head {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    color: var(--text-heading);
    font-size: var(--fs-13);
    font-weight: var(--fw-bold);
    line-height: 1.3;
}

.tc-home-finder-preview-head::before {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 12 5 5 9-10' fill='none' stroke='%2316843E' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / 16px 16px;
    content: "";
}

.tc-home-finder-preview-loading {
    color: var(--text-muted);
    font-weight: var(--fw-medium);
}

.tc-home-finder-preview-loading::before {
    display: none;
}

.tc-home-finder-preview-parts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-2);
    margin: 0;
    padding: 0;
    list-style: none;
}

.tc-home-finder-preview-parts li {
    min-width: 0;
    margin: 0;
}

.tc-home-finder-part,
.tc-home-finder-part:link,
.tc-home-finder-part:visited {
    display: flex;
    flex-direction: column;
    gap: 3px;
    color: var(--text-heading);
    text-decoration: none;
}

.tc-home-finder-part img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border: 1px solid var(--border-card);
    border-radius: 6px;
}

.tc-home-finder-part-name {
    display: -webkit-box;
    overflow: hidden;
    color: var(--text-body);
    font-size: 12px;
    line-height: 1.25;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.tc-home-finder-part-price {
    font-size: var(--fs-13);
    font-weight: var(--fw-bold);
}

.tc-home-finder-part:hover .tc-home-finder-part-name {
    color: var(--color-link);
    text-decoration: underline;
}

.tc-home-finder-part:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 2px;
    border-radius: 6px;
}

/* Once a brand is chosen (and while a preview shows), the help line and
   the rating step aside to keep the column short. */
.tc-home-finder-card.has-brand .tc-home-finder-help,
.tc-home-finder-card.has-brand .tc-home-finder-rating,
.tc-home-finder-card.has-preview .tc-home-finder-help {
    display: none;
}

@media all and (min-width: 768px) {
    /* The banner keeps its own height (and its dots stay under the image)
       when a parts preview makes the picker column taller. */
    .tc-home-content .tc-main-carousel {
        align-self: flex-start;
    }
}

/* Rating at the foot of the picker, under the help line. */
.tc-home-finder-card .tc-home-finder-rating {
    margin-top: var(--space-1);
}

/* Room between the title and the first dropdown (the visible field labels
   are screen-reader only). */
.tc-home-finder-card .tc-home-finder-title + .tc-home-finder-field {
    margin-top: var(--space-1);
}

.tc-home-finder .select2-selection__rendered.has-thumb .tc-finder-selection-name {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Same 16px between the brand and tool boxes as between the tool box and
   the button (8px gap + 8px margin). */
.tc-home-finder-field + .tc-home-finder-field {
    margin-top: var(--space-2);
}

/* ── Sitewide grid page background (functions/core/page-grid.php) ─────────
   The homepage catalog wrappers paint the page colour themselves, so they
   go transparent to let the grid show through. */
body.home .tc-home-catalog,
body.home .tc-home-catalog .tc-home-product-row,
body.home .tc-home-catalog .woocommerce,
body.home .tc-home-catalog .tc-home-product-carousel .splide__track {
    background-color: transparent;
}

/* Closing panels: "Not sure what fits?" + email opt-in, side by side. */
.tc-home-catalog .tc-home-closing {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-5, 20px);
    margin: 0 0 var(--space-8);
}

.tc-home-catalog .tc-home-closing-card {
    display: flex;
    flex: 1 1 460px;
    flex-direction: column;
    gap: var(--space-3);
    min-width: 0;
    margin: 0;
    padding: 28px;
    box-sizing: border-box;
    background: var(--surface-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06);
}

#wrapper .tc-home-catalog .tc-home-closing-card h2 {
    margin: 0;
    color: var(--text-heading);
    font-family: var(--font-ui);
    font-size: 22px;
    font-weight: var(--fw-bold);
    line-height: 1.2;
}

.tc-home-catalog .tc-home-closing-card p {
    margin: 0;
    color: var(--text-body);
    font-size: var(--fs-15, 15px);
    line-height: var(--lh-body);
}

.tc-home-catalog .tc-home-closing-actions,
.tc-home-catalog .tc-home-signup-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: var(--space-1);
}

.tc-home-catalog .tc-home-closing-link,
.tc-home-catalog .tc-home-closing-link:link,
.tc-home-catalog .tc-home-closing-link:visited {
    display: inline-flex;
    align-items: center;
    height: 44px;
    padding: 0 var(--space-4);
    box-sizing: border-box;
    color: var(--text-heading);
    background: var(--surface-card);
    border: 1px solid var(--border-control);
    border-radius: var(--radius-md, 8px);
    font-size: var(--fs-15, 15px);
    font-weight: var(--fw-semibold, 600);
    text-decoration: none;
    transition: border-color var(--dur-fast) var(--ease-standard),
                background-color var(--dur-fast) var(--ease-standard);
}

.tc-home-catalog .tc-home-closing-link:hover {
    color: var(--text-heading);
    border-color: var(--border-control-hover);
    background: var(--surface-subtle, #f6f8fc);
}

.tc-home-catalog .tc-home-signup-field {
    display: flex;
    flex: 1 1 240px;
    min-width: 0;
    margin: 0;
}

.tc-home-catalog .tc-home-signup-field input {
    flex: 1;
    min-width: 0;
    height: 44px;
    margin: 0;
    padding: 0 14px;
    box-sizing: border-box;
    color: var(--text-heading);
    background: var(--surface-card);
    border: 1px solid var(--border-control);
    border-radius: var(--radius-md, 8px);
    font: inherit;
    font-size: 16px; /* 16px keeps iOS from zooming in on focus */
}

.tc-home-catalog .tc-home-signup-field input:hover {
    border-color: var(--border-control-hover);
}

.tc-home-catalog .tc-home-signup-field input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: var(--focus-ring);
}

.tc-home-catalog .tc-home-signup-field input[aria-invalid="true"] {
    border-color: var(--danger-500);
}

.tc-home-catalog .tc-home-signup-button {
    height: 44px;
    padding: 0 22px;
    color: var(--color-primary-contrast);
    background: var(--color-primary);
    border: 0;
    border-radius: var(--radius-md, 8px);
    font: inherit;
    font-size: var(--fs-15, 15px);
    font-weight: var(--fw-bold);
    cursor: pointer;
    transition: background-color var(--dur-fast) var(--ease-standard);
}

.tc-home-catalog .tc-home-signup-button:hover {
    background: var(--color-primary-hover);
}

.tc-home-catalog .tc-home-signup-button:disabled {
    opacity: 0.7;
    cursor: progress;
}

.tc-home-catalog .tc-home-signup-row[hidden] {
    display: none;
}

/* Off-screen, not display:none, so simple bots still fill it. */
.tc-home-catalog .tc-home-signup-trap {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.tc-home-catalog .tc-home-signup .tc-home-signup-status {
    font-weight: var(--fw-semibold, 600);
}

.tc-home-catalog .tc-home-signup .tc-home-signup-status.is-success {
    color: var(--success-700);
}

.tc-home-catalog .tc-home-signup .tc-home-signup-status.is-error {
    color: var(--danger-700);
}

@media all and (max-width: 767px) {
    .tc-home-catalog .tc-home-closing-card {
        flex-basis: 100%;
        padding: var(--space-5, 20px);
    }

    .tc-home-catalog .tc-home-closing-link {
        flex: 1 1 auto;
        justify-content: center;
    }

    .tc-home-catalog .tc-home-signup-button {
        flex: 1 1 100%;
    }
}

/* "Designed, made and shipped from one shop": the hose feature's card, with
   a shop photo (or its placeholder) and three figures. */
#wrapper .tc-home-catalog .tc-home-story h2 {
    font-size: 28px;
    line-height: 1.15;
}

/* Two separate halves: the category links on the page's grid background,
   and the story in its own card. */
.tc-home-catalog .tc-home-story {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-5, 20px);
    margin: 0 0 var(--space-8);
}

.tc-home-catalog .tc-home-story-card {
    flex: 1 1 460px;
    min-width: 0;
    margin: 0;
}

.tc-home-catalog .tc-home-story .tc-home-feature-body {
    flex: 1 1 auto;
    gap: var(--space-3);
    padding: 28px 32px;
}

/* Tighter story card, so it is about as tall as the category list. */
#wrapper .tc-home-catalog .tc-home-story .tc-home-feature-lede {
    font-size: var(--fs-15, 15px);
    line-height: 1.5;
}

.tc-home-catalog .tc-home-story .tc-home-story-figures {
    padding-top: 0;
}

.tc-home-catalog .tc-home-story .tc-home-feature-actions {
    margin-top: 0;
}

/* Left half: the categories the top tiles leave out, as compact links,
   straight on the card (no inset panel). */
.tc-home-catalog .tc-home-story-cats {
    display: flex;
    flex: 1 1 460px;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 0;
    box-sizing: border-box;
}

#wrapper .tc-home-catalog .tc-home-story-cats h3 {
    margin: 0 0 var(--space-4);
    color: var(--text-muted, #5b6573);
    font-family: var(--font-ui);
    font-size: var(--fs-13);
    font-weight: var(--fw-bold);
    letter-spacing: var(--ls-eyebrow);
    line-height: 1.2;
    text-transform: uppercase;
}

.tc-home-catalog .tc-home-story-cats ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tc-home-catalog .tc-home-story-cats li {
    min-width: 0;
    margin: 0;
}

.tc-home-catalog .tc-home-story-cat,
.tc-home-catalog .tc-home-story-cat:link,
.tc-home-catalog .tc-home-story-cat:visited {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    height: 100%;
    padding: 8px 12px 8px 8px;
    box-sizing: border-box;
    color: var(--text-heading);
    background: var(--surface-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md, 8px);
    text-decoration: none;
    transition: border-color var(--dur-fast) var(--ease-standard),
                box-shadow var(--dur-fast) var(--ease-standard);
}

.tc-home-catalog .tc-home-story-cat:hover {
    color: var(--text-heading);
    border-color: var(--border-control-hover);
    box-shadow: 0 2px 8px rgba(16, 24, 40, 0.08);
}

.tc-home-catalog .tc-home-story-cat:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 2px;
}

.tc-home-catalog .tc-home-story-cat-thumb {
    flex: none;
    width: 56px;
    height: 56px;
    object-fit: cover;
    background: var(--surface-sunken, #f2f4f7);
    border-radius: 6px;
}

.tc-home-catalog .tc-home-story-cat-text {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.tc-home-catalog .tc-home-story-cat-name {
    font-size: var(--fs-15, 15px);
    font-weight: var(--fw-semibold, 600);
    line-height: 1.25;
}

.tc-home-catalog .tc-home-story-cat-count {
    color: var(--text-muted, #5b6573);
    font-size: var(--fs-13);
}

.tc-home-catalog .tc-home-story-cat-arrow {
    flex: none;
    color: var(--text-muted, #5b6573);
}

.tc-home-catalog .tc-home-story-figures {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-4);
    margin: 0;
    padding-top: var(--space-2);
}

.tc-home-catalog .tc-home-story-figures div {
    min-width: 0;
}

.tc-home-catalog .tc-home-story-figures dt {
    margin: 0;
    color: var(--text-heading);
    /* The UI font with even-width digits: a mono font here would be fetched
       with the page (at top priority) just for these three numbers. */
    font-family: var(--font-ui);
    font-variant-numeric: tabular-nums;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.tc-home-catalog .tc-home-story-figures dd {
    margin: var(--space-1) 0 0;
    color: var(--text-muted, #5b6573);
    font-size: var(--fs-13);
    line-height: 1.35;
}

@media all and (max-width: 767px) {
    #wrapper .tc-home-catalog .tc-home-story h2 {
        font-size: 24px;
    }

    .tc-home-catalog .tc-home-story {
        gap: var(--space-6, 24px);
    }

    .tc-home-catalog .tc-home-story .tc-home-feature-body {
        padding: var(--space-5, 20px);
    }

    .tc-home-catalog .tc-home-story-cats ul {
        gap: 8px;
    }

    .tc-home-catalog .tc-home-story-cat,
    .tc-home-catalog .tc-home-story-cat:link,
    .tc-home-catalog .tc-home-story-cat:visited {
        gap: var(--space-2);
        padding: 6px;
    }

    .tc-home-catalog .tc-home-story-cat-thumb {
        width: 44px;
        height: 44px;
    }

    .tc-home-catalog .tc-home-story-cat-name {
        font-size: var(--fs-14);
    }

    .tc-home-catalog .tc-home-story-cat-arrow {
        display: none;
    }

    .tc-home-catalog .tc-home-story-figures dt {
        font-size: 20px;
    }
}

/* Best Sellers: one 5 × 2 grid (3 × 2 on tablets, 2 × 2 on phones) with category pills. */
.tc-home-catalog .tc-home-best {
    margin: 0 0 var(--space-8);
}

.tc-home-catalog .tc-home-best-header {
    justify-content: space-between;
    align-items: flex-end;
    gap: var(--space-4);
    min-height: 0;
    margin-bottom: var(--space-3);
}

#wrapper .tc-home-catalog .tc-home-best-header h2 {
    margin: 0;
    line-height: 1.2;
}

#wrapper .tc-home-catalog .tc-home-best .tc-home-best-sub {
    margin: 2px 0 0;
    line-height: 1.4;
    color: var(--text-muted, #5b6573);
    font-size: var(--fs-14);
}

.tc-home-catalog .tc-home-best-chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin: 0 0 var(--space-3);
}

.tc-home-catalog .tc-home-best-chip,
.tc-home-catalog .tc-home-best-chip:link,
.tc-home-catalog .tc-home-best-chip:visited {
    display: inline-flex;
    align-items: center;
    height: 40px;
    padding: 0 var(--space-4);
    box-sizing: border-box;
    color: var(--text-heading);
    background: var(--surface-card);
    border: 1px solid var(--border-control);
    border-radius: 999px;
    font-size: var(--fs-14);
    font-weight: var(--fw-semibold, 600);
    text-decoration: none;
    transition: background-color var(--dur-fast) var(--ease-standard),
                border-color var(--dur-fast) var(--ease-standard);
}

.tc-home-catalog .tc-home-best-chip:hover {
    color: var(--text-heading);
    border-color: var(--border-control-hover);
}

.tc-home-catalog .tc-home-best-chip.is-active,
.tc-home-catalog .tc-home-best-chip.is-active:link,
.tc-home-catalog .tc-home-best-chip.is-active:visited {
    color: #fff;
    background: #293042;
    border-color: #293042;
}

.tc-home-catalog .tc-home-best-chip:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 2px;
}

.tc-home-catalog .tc-home-best-panel[hidden] {
    display: none;
}

.tc-home-catalog .tc-home-best-panel ul.products {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
}

.tc-home-catalog .tc-home-best-panel ul.products::before,
.tc-home-catalog .tc-home-best-panel ul.products::after {
    content: none;
}

.tc-home-catalog .tc-home-best-panel ul.products li.product {
    float: none;
    width: auto;
    margin: 0;
}

@media all and (max-width: 1023px) {
    .tc-home-catalog .tc-home-best-panel ul.products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    /* 3 across would leave the second row short: show 6. */
    .tc-home-catalog .tc-home-best-panel ul.products li.product:nth-child(n+7) {
        display: none;
    }
}

@media all and (max-width: 767px) {
    /* One swipeable line of pills instead of wrapping onto two. */
    .tc-home-catalog .tc-home-best-chips {
        flex-wrap: nowrap;
        gap: 6px;
        margin-right: calc(var(--space-4) * -1);
        padding-right: var(--space-4);
        overflow-x: auto;
        scrollbar-width: none;
    }

    .tc-home-catalog .tc-home-best-chips::-webkit-scrollbar {
        display: none;
    }

    .tc-home-catalog .tc-home-best-chip {
        flex: none;
    }

    .tc-home-catalog .tc-home-best-chip,
    .tc-home-catalog .tc-home-best-chip:link,
    .tc-home-catalog .tc-home-best-chip:visited {
        height: 36px;
        padding: 0 var(--space-3);
        font-size: var(--fs-13);
    }

    .tc-home-catalog .tc-home-best-panel ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px; /* as the phone carousels */
    }

    /* Phones: a 2 × 2 grid, like the canvas. */
    .tc-home-catalog .tc-home-best-panel ul.products li.product:nth-child(n+5) {
        display: none;
    }
}

/* "Also:" links never break inside a name ("No Snag / Adapters"). */
.tc-home-catalog .tc-home-category-more a {
    white-space: nowrap;
}

/* While a pill's grid loads, dim the one still showing. */
.tc-home-catalog .tc-home-best[aria-busy="true"] .tc-home-best-panel:not([hidden]) {
    opacity: 0.55;
    transition: opacity var(--dur-fast) var(--ease-standard);
}

/* The searchable box fills its 44px field (it used to spill 4px below it). */
.tc-home-finder-field > .select2-container {
    height: 44px;
}

/* ── Homepage rhythm ─────────────────────────────────────────────────────
   One spacing system down the page (desktop measurements):
   - 44px of visible space between any two sections;
   - 20px from a section title to its content;
   - 16px between cards (set in the carousel scripts and the grids).
   Section boxes carry different built-in insets (slider rows reserve room
   below the cards, Pick Your Saw is padded), so each boundary's margin is
   tuned to land on the same visible 44px. */
.tc-home-catalog .tc-home-product-header {
    margin-bottom: 11px; /* the title sits centred in the 40px row of arrows */
}

/* Visible 44px between sections: margin = 44 minus the boxes' own insets. */
.tc-home-catalog .tc-home-categories {
    padding-top: 3px; /* 44px below the hero card (a margin would collapse) */
    margin-bottom: 36px; /* "Also:" line and the next title carry 4px each */
}

.tc-home-catalog .tc-home-brand-row,
.tc-home-catalog .tc-home-best,
.tc-home-catalog > .tc-home-feature,
.tc-home-catalog .tc-home-story {
    margin-bottom: 44px;
}

/* The reviews title block is the title plus its rating line: 20px from
   that line to the cards, like every other title. */
.tc-home-catalog .tc-home-product-header.tc-home-reviews-header {
    margin-bottom: 20px;
}

@media all and (min-width: 768px) {
    .tc-home-catalog .tc-home-category-grid {
        gap: 16px; /* the same as the product cards */
    }
}

/* Phones end the reviews with the "Read all reviews" button, which has no
   room below it: give that boundary the full 44px too. */
@media all and (max-width: 767px) {
    .tc-home-catalog .tc-home-reviews {
        margin-bottom: 44px;
    }
}
