.catalog-banner {
    display: grid;
    isolation: isolate;
    padding-top: calc(var(--header-height) + 1px);
    color: white;
}

.catalog-banner > *,
.catalog-banner::before {
    grid-area: 1 / 1;
}

.catalog-banner > picture {
    display: block;
    min-width: 0;
}

.catalog-banner img {
    width: 100%;
    height: auto;
}

.catalog-banner::before {
    z-index: 1;
    background: linear-gradient(90deg, rgb(12 68 79 / 82%), rgb(34 110 125 / 58%) 26%,
        rgb(83 184 202 / 10%) 46%, transparent 63%);
    content: '';
    pointer-events: none;
}

.catalog-banner .page-banner-copy {
    z-index: 2;
    align-self: center;
}

.catalog-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px 28px;
    margin-bottom: clamp(24px, 4vw, 52px);
}

.catalog-all-categories {
    margin-inline-start: auto;
}

.product-list-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-bottom: 14px;
}

.catalog-search {
    display: flex;
    width: min(100%, 254px);
    min-height: 44px;
    margin-inline-start: auto;
    border: 1px solid var(--line);
    border-radius: 4px;
}

.catalog-search:focus-within {
    border-color: var(--accent);
}

.catalog-search input {
    flex: 1;
    min-width: 0;
    padding-inline: 12px;
    border: 0;
    border-radius: inherit;
    background: transparent;
}

.catalog-search button {
    display: grid;
    flex: 0 0 44px;
    place-items: center;
    padding: 0;
    border: 0;
    background: none;
}

.catalog-search button:hover {
    color: var(--accent);
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(24px, 3vw, 44px) clamp(12px, 2vw, 30px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.catalog-card {
    display: block;
}

.catalog-card-media {
    display: block;
    overflow: hidden;
    aspect-ratio: 1;
    border-radius: 8px;
    background: #f2f5f6;
}

.catalog-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .55s cubic-bezier(.22, 1, .36, 1);
}

.catalog-card:is(:hover, :focus-visible) img {
    transform: scale(1.055);
}

.catalog-card-copy {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 44px;
    padding-top: 10px;
    font: 300 clamp(1rem, 1.45vw, 1.2rem)/1.35 var(--light-font);
}

.catalog-card:hover .catalog-card-copy {
    color: var(--accent);
}

.catalog-card-copy small {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: .875rem;
}

.catalog-card-arrow {
    display: grid;
    flex: 0 0 36px;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid #cfd3d3;
    border-radius: 50%;
    color: #5c6264;
    font: 400 18px/1 Arial, sans-serif;
    transition: background-color .35s, border-color .35s, color .35s, transform .35s;
}

.catalog-card:is(:hover, :focus-visible) .catalog-card-arrow {
    transform: translateX(4px);
    border-color: #53b8ca;
    background-color: #53b8ca;
    color: #153e45;
}

.product-breadcrumb {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px 12px;
    padding-block: 18px;
    color: var(--muted);
    font-size: .875rem;
}

.product-breadcrumb a:hover {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.product-breadcrumb [aria-current] {
    color: var(--ink);
}

.product-list-section {
    padding-top: clamp(22px, 4vw, 58px);
}

.product-list-layout {
    display: grid;
    grid-template-columns: minmax(180px, .85fr) minmax(0, 3fr);
    gap: clamp(20px, 3vw, 48px);
}

.product-list-layout:has(.product-filters[hidden]) {
    grid-template-columns: minmax(0, 1fr);
}

.product-list-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.catalog-card--model img {
    object-fit: contain;
    padding: 12%;
    mix-blend-mode: multiply;
}

.catalog-card--model .catalog-card-copy {
    align-items: start;
}

.catalog-model-arrow {
    flex: none;
    color: #4ebbca;
    font-size: 17px;
}

.product-filters {
    align-self: start;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.product-filters summary {
    min-height: 44px;
    padding: 14px 16px;
    font-weight: 500;
    cursor: pointer;
}

.product-filter-form {
    padding: 4px 16px 16px;
}

.product-filter-form fieldset {
    display: grid;
    margin: 0;
    padding: 14px 0 0;
    border: 0;
}

.product-filter-form legend {
    padding: 0;
}

.product-filter-form label {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    color: var(--muted);
    font-size: .875rem;
    cursor: pointer;
}

.product-filter-form input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--accent);
}

.product-filter-form button {
    min-height: 44px;
    margin-top: 8px;
    padding: 0;
    border: 0;
    color: var(--accent);
    background: none;
}

.product-filter-form button:hover {
    text-decoration: underline;
}

.product-count {
    color: var(--muted);
    font-size: .875rem;
}

.product-details {
    padding-top: var(--header-height);
}

.product-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
    align-items: center;
    gap: clamp(24px, 6vw, 100px);
    padding-block: clamp(16px, 3vw, 45px) clamp(40px, 7vw, 100px);
}

.product-photo {
    position: relative;
    display: block;
    aspect-ratio: 1.16;
    overflow: hidden;
    border-radius: 8px;
    background: #f3f6f7;
    cursor: zoom-in;
}

.product-photo img {
    width: 100%;
    height: 100%;
    padding: 10%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.product-photo > span {
    position: absolute;
    right: 14px;
    bottom: 14px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: white;
    font-size: 1.35rem;
}

.product-intro h1 {
    margin: 0;
    overflow-wrap: anywhere;
    font: 300 clamp(2rem, 4.2vw, 3.75rem)/1.15 var(--light-font);
    letter-spacing: -.035em;
}

.product-intro p {
    margin-block: 12px 18px;
    color: var(--muted);
    font-size: clamp(1rem, 1.6vw, 1.25rem);
}

.product-parameters {
    background: var(--soft);
}

.product-parameters dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 36px;
    margin: 24px 0 0;
}

.product-parameters dl > div {
    display: grid;
    grid-template-columns: minmax(86px, .55fr) minmax(0, 1fr);
    gap: 8px 20px;
    padding-block: 16px;
    border-top: 1px solid var(--line);
}

.product-parameters dt {
    color: var(--muted);
}

.product-parameters dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.product-image-dialog {
    width: min(800px, calc(100% - 32px));
    padding: 54px 16px 16px;
    overscroll-behavior: contain;
}

.product-image-dialog img {
    width: 100%;
    height: min(70dvh, 680px);
    object-fit: contain;
}

html:has(.product-image-dialog[open]) {
    overflow: hidden;
}

@media (max-width: 760px) {
    .catalog-banner::before {
        background: linear-gradient(90deg, rgb(12 68 79 / 84%), rgb(34 110 125 / 60%) 48%, transparent 87%);
    }

    .catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-list-layout,
    .product-intro,
    .product-parameters dl {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 380px) {
    .catalog-search {
        width: 100%;
    }
}
