/* ==========================================================================
   Products overview page  (/products.html)
   --------------------------------------------------------------------------
   The interactive finder plus the family hub cards. Hero, heading and CTA come
   from inner-pages.css; shared furniture from category-page.css.
   ========================================================================== */

.sd-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* --------------------------------------------------------------------------
   Search bar and filter chips
   -------------------------------------------------------------------------- */

.sd-find__bar {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.sd-find__search {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1 1 340px;
}

.sd-find__search > i {
    position: absolute;
    left: 18px;
    font-size: 15px;
    color: var(--sd-muted);
    pointer-events: none;
}

.sd-find__search input {
    width: 100%;
    padding: 15px 46px 15px 46px;
    border: 1px solid var(--sd-line);
    border-radius: 50px;
    background: #fff;
    font-family: inherit;
    font-size: 16px;
    color: var(--sd-navy);
    transition: border-color .2s ease, box-shadow .2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.sd-find__search input::placeholder {
    color: #9AA8BE;
}

.sd-find__search input:focus {
    outline: none;
    border-color: var(--sd-blue);
    box-shadow: 0 0 0 3px rgba(18, 74, 154, .12);
}

/* The browser's own clear affordance duplicates ours. */
.sd-find__search input::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
}

.sd-find__clear {
    position: absolute;
    right: 12px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: rgba(18, 74, 154, .08);
    color: var(--sd-navy);
    font-size: 12px;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

.sd-find__clear:hover {
    background: var(--sd-orange);
    color: #fff;
}

.sd-find__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sd-find__count {
    margin: 0 0 20px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--sd-muted);
    min-height: 1.2em;
}

/* --------------------------------------------------------------------------
   Category result cards
   -------------------------------------------------------------------------- */

.sd-find__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.sd-find__card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--sd-line);
    border-radius: 14px;
    background: #fff;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(16, 38, 73, .05);
    transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.sd-find__card:hover {
    border-color: rgba(232, 106, 56, .45);
    box-shadow: 0 14px 30px rgba(16, 38, 73, .1);
    transform: translateY(-3px);
}

.sd-find__card[hidden] {
    display: none;
}

.sd-find__thumb {
    flex: 0 0 68px;
    width: 68px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: var(--sd-tint);
    overflow: hidden;
}

.sd-find__thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.sd-find__body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.sd-find__fam {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--sd-muted);
}

.sd-find__name {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--sd-navy);
}

.sd-find__card:hover .sd-find__name {
    color: var(--sd-orange-ink);
}

.sd-find__meta {
    font-size: 12.5px;
    font-weight: 600;
    color: #8494AB;
}

.sd-find__go {
    margin-left: auto;
    font-size: 13px;
    color: var(--sd-orange);
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity .2s ease, transform .2s ease;
}

.sd-find__card:hover .sd-find__go,
.sd-find__card:focus-visible .sd-find__go {
    opacity: 1;
    transform: none;
}

/* --------------------------------------------------------------------------
   Model results
   -------------------------------------------------------------------------- */

.sd-find__models {
    margin-top: 30px;
    padding-top: 26px;
    border-top: 1px dashed var(--sd-line);
}

.sd-find__models[hidden] {
    display: none;
}

.sd-find__models-title {
    margin: 0 0 16px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--sd-muted);
}

.sd-find__models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 10px;
}

.sd-find__model {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 13px 16px;
    border: 1px solid var(--sd-line);
    border-radius: 10px;
    background: #fff;
    text-decoration: none;
    transition: border-color .2s ease, background .2s ease;
}

.sd-find__model:hover {
    border-color: rgba(232, 106, 56, .5);
    background: #FFFBF9;
}

.sd-find__model[hidden] {
    display: none;
}

.sd-find__model-name {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--sd-navy);
}

.sd-find__model:hover .sd-find__model-name {
    color: var(--sd-orange-ink);
}

.sd-find__model-cat {
    font-size: 12px;
    color: var(--sd-muted);
}

.sd-find__empty {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin: 26px 0 0;
    padding: 18px 20px;
    border-left: 3px solid var(--sd-orange);
    border-radius: 0 10px 10px 0;
    background: var(--sd-tint);
    font-size: 15px;
    line-height: 1.6;
    color: var(--sd-muted);
}

.sd-find__empty[hidden] {
    display: none;
}

.sd-find__empty i {
    margin-top: 3px;
    color: var(--sd-orange);
}

.sd-find__empty a {
    color: var(--sd-blue);
    font-weight: 700;
    text-decoration: none;
}

.sd-find__empty a:hover {
    color: var(--sd-orange);
}

/* --------------------------------------------------------------------------
   Family hub cards
   -------------------------------------------------------------------------- */

.sd-fam__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.sd-fam {
    display: flex;
    flex-direction: column;
    padding: 30px 26px 26px;
    border: 1px solid var(--sd-line);
    border-radius: 16px;
    background: #fff;
    text-decoration: none;
    box-shadow: 0 6px 22px rgba(16, 38, 73, .06);
    transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.sd-fam:hover {
    border-color: rgba(232, 106, 56, .4);
    box-shadow: 0 18px 40px rgba(16, 38, 73, .12);
    transform: translateY(-4px);
}

.sd-fam__icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    border-radius: 13px;
    background: var(--sd-orange);
    color: #fff;
    font-size: 19px;
}

.sd-fam__title {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 800;
    color: var(--sd-navy);
}

.sd-fam:hover .sd-fam__title {
    color: var(--sd-orange-ink);
}

.sd-fam__desc {
    margin: 0 0 18px;
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--sd-muted);
}

.sd-fam__list {
    margin: 0 0 22px;
    padding: 16px 0 0;
    border-top: 1px dashed var(--sd-line);
    list-style: none;
}

.sd-fam__list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 5px 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--sd-navy);
    font-weight: 500;
}

.sd-fam__list li i {
    flex: 0 0 13px;
    margin-top: 5px;
    font-size: 10.5px;
    color: var(--sd-orange);
}

.sd-fam__more {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: auto;
    color: var(--sd-blue);
    font-size: 15px;
    font-weight: 700;
}

.sd-fam__more i {
    font-size: 12px;
    transition: transform .25s ease;
}

.sd-fam:hover .sd-fam__more {
    color: var(--sd-orange);
}

.sd-fam:hover .sd-fam__more i {
    transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 991.98px) {
    .sd-fam__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .sd-find__bar {
        gap: 14px;
    }
}

@media (max-width: 767.98px) {
    .sd-find__grid,
    .sd-find__models-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .sd-find__search {
        flex: 1 1 100%;
    }

}

@media (prefers-reduced-motion: reduce) {

    .sd-find__card,
    .sd-find__go,
    .sd-find__model,
    .sd-fam,
    .sd-fam__more i {
        transition: none !important;
    }

    .sd-find__card:hover,
    .sd-fam:hover {
        transform: none;
    }
}
