/* Product listing: search / sort / tags + home-style product cards */

.product-finder .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}
.product-finder__toolbar {
    display: flex;
    gap: 16px;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.product-finder__search,
.product-finder__tag-search {
    position: relative;
    display: flex;
    align-items: center;
    margin: 0;
}
.product-finder__search { flex: 1 1 280px; max-width: 420px; }
.product-finder__search svg,
.product-finder__tag-search svg {
    position: absolute;
    left: 14px;
    color: #8a8a8a;
    pointer-events: none;
}
.product-finder input[type="search"],
.product-finder select {
    width: 100%;
    height: 44px;
    padding: 0 14px 0 40px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    background: #fff;
    font: inherit;
    font-size: 15px;
    color: #333;
    outline: none;
}
.product-finder select {
    padding-left: 14px;
    min-width: 210px;
    cursor: pointer;
}
.product-finder input[type="search"]:focus,
.product-finder select:focus { border-color: #123759; }
.product-finder__panel {
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    margin-bottom: 24px;
    background: #fff;
}
.product-finder__panel-head,
.product-finder__group-head {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    border: 0;
    background: none;
    font: inherit;
    font-size: 17px;
    font-weight: 500;
    color: #1a1a1a;
    cursor: pointer;
    text-align: left;
}
.product-finder__panel-head svg,
.product-finder__group-head svg { flex: none; transition: transform .2s; }
.is-open > .product-finder__panel-head svg,
.is-open > .product-finder__group-head svg { transform: rotate(180deg); }
.product-finder__count { font-size: 14px; color: #777; font-weight: 400; }
.product-finder__panel-body,
.product-finder__group-body { display: none; }
.product-finder__panel.is-open > .product-finder__panel-body { display: block; padding: 0 20px 20px; }
.product-finder__group.is-open > .product-finder__group-body { display: block; padding: 0 16px 16px; }
.product-finder__groups {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
}
.product-finder__group { border: 1px solid #e3e3e3; border-radius: 8px; }
.product-finder__group-head { padding: 14px 16px; font-size: 16px; }
.product-finder__tag-search input[type="search"] { height: 40px; font-size: 14px; }
.product-finder__tags {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
    max-height: 220px;
    overflow-y: auto;
}
.product-finder__tags li[hidden] { display: none; }
.product-finder__tags label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 2px;
    margin: 0;
    font-size: 15px;
    line-height: 1.3;
    color: #333;
    cursor: pointer;
}
.product-finder__tags input {
    width: 17px;
    height: 17px;
    margin: 0;
    accent-color: #123759;
    flex: none;
}
.product-finder__actions { display: flex; justify-content: flex-end; margin-top: 12px; }
.product-finder__actions:has(> [hidden]) { display: none; }
.product-finder__clear {
    border: 0;
    background: none;
    padding: 0;
    font: inherit;
    font-size: 14px;
    color: #123759;
    text-decoration: underline;
    cursor: pointer;
}
.product-finder__clear[hidden] { display: none; }
.product-finder__result { margin: 0 0 16px; font-size: 14px; color: #777; }
.product-finder__item { min-width: 0; }
.product-finder__item[hidden] { display: none !important; }
.product-finder__empty { margin: 24px 0 0; text-align: center; font-size: 16px; color: #777; }
.product-finder__empty[hidden] { display: none; }

.gt-products.product-finder .gt-products-filter {
    font: inherit;
}
.gt-products.product-finder .gt-products__grid.js-finder-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}
.gt-products.product-finder.is-list .gt-products__grid.js-finder-grid {
    grid-template-columns: 1fr;
}

/* Design = home card layout; hover = old View All product hover */
.gt-products--home-cards .home-photo-card--product {
    position: relative;
    height: 100%;
    background: #fff;
    border: 1px solid rgba(18, 55, 89, 0.1);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(18, 55, 89, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.gt-products--home-cards .home-photo-card--product:hover {
    transform: translateY(-8px);
    border-color: #136e9d;
    box-shadow: 0 22px 44px rgba(19, 110, 157, 0.16);
}
.gt-products--home-cards .home-photo-card--product .home-photo-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0;
    color: inherit;
    text-decoration: none;
}
.gt-products--home-cards .home-photo-card--product .home-photo-card__media {
    position: relative;
    aspect-ratio: 4 / 3;
    height: auto;
    min-height: 210px;
    padding: 0;
    background: #e8eef4;
    overflow: hidden;
}
.gt-products--home-cards .home-photo-card--product .home-photo-card__media::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(0, 38, 59, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}
.gt-products--home-cards .home-photo-card--product:hover .home-photo-card__media::after {
    opacity: 1;
}
.gt-products--home-cards .home-photo-card--product .home-photo-card__media img {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
    transform: scale(1);
    transition: transform 0.45s ease;
    filter: none;
}
.gt-products--home-cards .home-photo-card--product:hover .home-photo-card__media img {
    transform: scale(1.06);
    filter: none;
}
.gt-products--home-cards .home-photo-card__badge {
    position: absolute;
    top: 14px;
    inset-inline-start: 14px;
    z-index: 3;
    padding: 6px 12px;
    border-radius: 999px;
    background: #123759;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.2;
    text-transform: uppercase;
    box-shadow: 0 6px 16px rgba(18, 55, 89, 0.25);
}
.gt-products--home-cards .home-photo-card__go {
    display: none;
}
.gt-products--home-cards .home-photo-card--product .home-photo-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 10px;
    padding: 20px 18px 18px;
    text-align: start;
    background: #fff;
}
.gt-products--home-cards .home-photo-card--product .home-photo-card__title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    margin: 0;
    color: #123759;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
}
.gt-products--home-cards .home-photo-card--product .home-photo-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 0;
    color: #136e9d;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
}
.gt-products--home-cards .home-photo-card--product .home-photo-card__category {
    color: #123759;
}
.gt-products--home-cards .home-photo-card--product .home-photo-card__meta-sep {
    color: #9aa6b2;
    font-weight: 500;
}
.gt-products--home-cards .home-photo-card--product .home-photo-card__brand {
    margin: 0;
    color: #136e9d;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}
.gt-products--home-cards .home-photo-card__text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    margin: 0;
    min-height: 2.8em;
    color: #66727e;
    font-size: 13.5px;
    line-height: 1.5;
}
.gt-products--home-cards .home-photo-card__cta {
    display: inline-flex;
    align-items: center;
    align-self: stretch;
    justify-content: center;
    gap: 8px;
    margin-top: auto;
    padding: 11px 16px;
    border: 1px solid #136e9d;
    border-radius: 12px;
    background: #fff;
    color: #136e9d;
    font-size: 13px;
    font-weight: 700;
    box-shadow: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, gap 0.2s ease;
}
.gt-products--home-cards .home-photo-card--product:hover .home-photo-card__cta {
    gap: 12px;
    background: #136e9d;
    border-color: #136e9d;
    color: #fff;
    box-shadow: none;
}
.gt-products--home-cards .home-photo-card__cta svg path {
    stroke: currentColor;
}

/* List view */
.gt-products--home-cards.is-list .home-photo-card--product .home-photo-card__link {
    flex-direction: row;
    align-items: stretch;
}
.gt-products--home-cards.is-list .home-photo-card--product .home-photo-card__media {
    width: 280px;
    flex: 0 0 280px;
    min-height: 200px;
    aspect-ratio: auto;
}
.gt-products--home-cards.is-list .home-photo-card--product .home-photo-card__body {
    justify-content: center;
    padding: 24px 28px;
}
.gt-products--home-cards.is-list .home-photo-card--product:hover {
    transform: translateY(-4px);
}

@media (max-width: 1199.98px) {
    .gt-products.product-finder .gt-products__grid.js-finder-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (max-width: 991.98px) {
    .product-finder__groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gt-products.product-finder .gt-products__grid.js-finder-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 767.98px) {
    .gt-products--home-cards.is-list .home-photo-card--product .home-photo-card__link {
        flex-direction: column;
    }
    .gt-products--home-cards.is-list .home-photo-card--product .home-photo-card__media {
        width: 100%;
        flex: none;
        min-height: 220px;
        aspect-ratio: 4 / 3;
    }
    .gt-products--home-cards.is-list .home-photo-card--product .home-photo-card__body {
        border-inline-start: 0;
        border-top: 1px solid #d5e3ec;
    }
}
@media (max-width: 575.98px) {
    .product-finder__toolbar { flex-direction: column; }
    .product-finder__search { flex-basis: auto; max-width: none; }
    .product-finder__groups { grid-template-columns: 1fr; }
    .gt-products.product-finder .gt-products__grid.js-finder-grid {
        grid-template-columns: 1fr;
    }
}
