button{
    outline: 0!important;
    border: 0!important;
}

@font-face {
    font-family: "Product Montserrat";
    src: url("../font/montserrat-reg.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Product Montserrat";
    src: url("../font/montserrat-b.ttf") format("truetype");
    font-style: normal;
    font-weight: 600;
    font-display: swap;
}

.product-catalog,
.product-catalog * {
    box-sizing: border-box;
    letter-spacing: 0;
}

.product-catalog {
    --catalog-accent: #7e308d;
    --catalog-text: #333;
    --catalog-muted: #677279;
    background: #f5f5f5;
    color: var(--catalog-text);
    font-family: "Product Montserrat", Arial, sans-serif;
    min-height: 720px;
    padding: 40px 30px 80px;
}

.product-catalog__layout {
    display: grid;
    grid-template-columns: 397px minmax(0, 1fr);
    gap: 40px;
    margin: 0 auto;
    max-width: 1600px;
}

.product-catalog__sidebar,
.product-catalog__content {
    min-width: 0;
}

.product-filter,
.product-contact {
    background: #fff;
    border-radius: 8px;
    padding: 24px 25px;
}

.product-filter__title,
.product-contact h2 {
    color: var(--catalog-accent);
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
}

.product-filter__toggle {
    display: none;
}

.product-filter__selected {
    margin-top: 22px;
}

.product-filter__selected[hidden] {
    display: none;
}

.product-filter__selected h2 {
    color: var(--catalog-accent);
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    margin: 0 0 8px;
}

.product-filter__selected-list {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.product-filter__selected-item,
.product-filter__clear {
    background: transparent;
    border: 0;
    cursor: pointer;
    font-family: inherit;
    letter-spacing: 0;
}

.product-filter__selected-item {
    align-items: flex-start;
    color: var(--catalog-muted);
    display: flex;
    align-items: center;
    font-size: 15px;
    gap: 10px;
    line-height: 22px;
    padding: 4px 0;
    text-align: left;
}

.product-filter__selected-remove {
    background: var(--catalog-accent);
    color: #fff;
    flex: 0 0 16px;
    font-size: 21px;
    font-weight: 400;
    line-height: 16px;
    text-align: center;
}

.product-filter__clear {
    /* color: var(--catalog-accent); */
    color: #677279;
    font-size: 14px;
    line-height: 20px;
    font-weight: bold;
    /* margin-top: 6px; */
    display: block;
    margin: 6px auto 0;
    padding: 0;
    /* text-decoration: underline; */
    text-underline-offset: 3px;
}

.product-filter__selected-item:hover,
.product-filter__clear:hover {
    color: var(--catalog-accent);
}

.product-filter__selected-item:focus-visible,
.product-filter__clear:focus-visible {
    outline: 2px solid var(--catalog-accent);
    outline-offset: 2px;
}

.product-filter__group {
    border: 0;
    margin: 22px 0 0;
    min-width: 0;
    padding: 0;
}

.product-filter__group legend {
    margin: 0 0 9px;
    padding: 0;
    width: 100%;
}

.product-filter__group-toggle {
    align-items: center;
    background: transparent;
    border: 0;
    color: var(--catalog-accent);
    cursor: pointer;
    display: flex;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    /* justify-content: space-between; */
    gap: 20px;
    line-height: 24px;
    padding: 0;
    text-align: left;
    width: 100%;
}

.product-filter__group-toggle::after {
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    content: "";
    flex: 0 0 8px;
    height: 8px;
    /* margin: 0 4px 5px 14px; */
    transform: rotate(225deg);
    transition: transform 180ms ease, margin 180ms ease;
    width: 8px;
}

.product-filter__group-toggle[aria-expanded="false"]::after {
    margin-bottom: 4px;
    transform: rotate(45deg);
}

.product-filter__group-toggle:focus-visible {
    outline: 2px solid var(--catalog-accent);
    outline-offset: 3px;
}

.product-filter__group-options[hidden] {
    display: none;
}

.product-filter__option {
    align-items: flex-start;
    color: var(--catalog-muted);
    cursor: pointer;
    display: flex;
    font-size: 15px;
    font-weight: 400;
    gap: 14px;
    line-height: 22px;
    margin: 0;
    padding: 5px 0;
}

.product-filter__option input {
    appearance: none;
    background: #fff;
    border: 1px solid #d4d6d8;
    border-radius: 2px;
    box-shadow: 0 1px 0 rgba(225, 227, 228, 0.4);
    flex: 0 0 16px;
    height: 16px;
    margin: 3px 0 0;
    position: relative;
    width: 16px;
}

.product-filter__option input:checked {
    background: var(--catalog-accent);
    border-color: var(--catalog-accent);
}

.product-filter__option input:checked::after {
    border: solid #fff;
    border-width: 0 2px 2px 0;
    content: "";
    height: 8px;
    left: 5px;
    position: absolute;
    top: 2px;
    transform: rotate(45deg);
    width: 4px;
}

.product-filter__option input:focus-visible {
    outline: 2px solid var(--catalog-accent);
    outline-offset: 2px;
}

.product-contact {
    margin-top: 24px;
}

.product-contact h2 {
    margin-bottom: 16px;
}

.product-contact a,
.product-contact p {
    color: #444;
    display: block;
    font-size: 14px;
    line-height: 21px;
    margin: 0 0 10px;
    overflow-wrap: anywhere;
    padding-left: 20px;
    position: relative;
}

.product-contact a::before,
.product-contact p::before {
    background: var(--catalog-accent);
    border-radius: 50%;
    content: "";
    height: 7px;
    left: 0;
    position: absolute;
    top: 7px;
    width: 7px;
}

.product-catalog__content {
    position: relative;
}

.product-catalog__grid {
    display: grid;
    gap: 23px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-card {
    background: #fff;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    min-height: 520px;
    min-width: 0;
    overflow: hidden;
    transition: box-shadow 180ms ease, transform 180ms ease;
}

.product-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.product-card__media {
    background: #eee;
    display: block;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.product-card__media::before {
    content: "";
    display: block;
    padding-top: 100%;
}

.product-card__media img {
    height: 100%;
    inset: 0;
    object-fit: cover;
    position: absolute;
    transition: transform 260ms ease;
    width: 100%;
}

.product-card:hover .product-card__media img {
    transform: scale(1.025);
}

.product-card__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 20px 20px 18px;
    text-align: center;
}

.product-card h2 {
    display: -webkit-box;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    margin: 0;
    min-height: 48px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.product-card h2 a {
    color: #333;
}

.product-card__summary {
    color: #666;
    display: -webkit-box;
    font-size: 14px;
    line-height: 21px;
    margin: 14px 0 0;
    min-height: 42px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.product-card__price {
    color: var(--catalog-accent);
    font-size: 18px;
    font-weight: 600;
    line-height: 26px;
    margin: auto 0 0;
    padding-top: 12px;
}

.product-card__details {
    align-items: center;
    border-top: 1px solid #dedede;
    color: #333;
    display: flex;
    flex: 0 0 60px;
    font-size: 15px;
    justify-content: center;
    line-height: 20px;
    position: relative;
}

.product-card__details::before {
    background: var(--catalog-accent);
    content: "";
    height: 2px;
    left: 50%;
    position: absolute;
    top: -1px;
    transform: translateX(-50%);
    transition: width 180ms ease;
    width: 0;
}

.product-card__details:hover {
    color: var(--catalog-accent);
}

.product-card__details:hover::before {
    width: 100%;
}

.product-pagination {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 40px;
}

.product-pagination__item {
    align-items: center;
    background: #fff;
    border: 1px solid #ebebeb;
    border-radius: 2px;
    color: #8a8a8a;
    display: flex;
    font-family: Arial, sans-serif;
    font-size: 14px;
    height: 30px;
    justify-content: center;
    width: 30px;
}

.product-pagination__item.is-current {
    background: var(--catalog-accent);
    border-color: var(--catalog-accent);
    color: #fff;
}

.product-pagination__item.is-disabled {
    color: #c0c4cc;
    cursor: default;
    pointer-events: none;
}

.product-catalog__loading {
    align-items: center;
    background: rgba(245, 245, 245, 0.72);
    display: none;
    inset: 0;
    justify-content: center;
    min-height: 200px;
    position: absolute;
    z-index: 5;
}

.product-catalog__loading::after {
    animation: product-catalog-spin 700ms linear infinite;
    border: 3px solid rgba(126, 48, 141, 0.22);
    border-radius: 50%;
    border-top-color: var(--catalog-accent);
    content: "";
    height: 34px;
    width: 34px;
}

.product-catalog__content.is-loading .product-catalog__loading {
    display: flex;
}

.product-catalog__status {
    clip: rect(0 0 0 0);
    height: 1px;
    margin: 0;
    overflow: hidden;
    position: absolute;
    width: 1px;
}

.product-catalog__empty {
    align-items: center;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 320px;
    padding: 40px;
    text-align: center;
}

.product-catalog__empty h2 {
    color: #333;
    font-size: 22px;
    margin: 0 0 10px;
}

.product-catalog__empty p {
    color: #777;
    font-size: 15px;
    margin: 0;
}

@keyframes product-catalog-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 1280px) {
    .product-catalog__layout {
        grid-template-columns: 300px minmax(0, 1fr);
        gap: 28px;
    }

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

@media (max-width: 767px) {
    .product-catalog {
        padding: 24px 15px 50px;
    }

    .product-catalog__layout {
        display: block;
    }

    .product-catalog__content {
        margin-top: 24px;
    }

    .product-filter {
        padding: 18px 20px;
    }

    .product-filter__heading {
        align-items: center;
        display: flex;
        justify-content: space-between;
    }

    .product-filter__title {
        display: none;
    }

    .product-filter__toggle {
        align-items: center;
        background: transparent;
        border: 0;
        color: var(--catalog-accent);
        display: flex;
        font-family: inherit;
        font-size: 18px;
        font-weight: 600;
        gap: 9px;
        justify-content: flex-start;
        padding: 0;
        width: 100%;
    }

    .product-filter__toggle::after {
        content: "+";
        font-size: 22px;
        font-weight: 400;
        margin-left: auto;
    }

    .product-filter__toggle[aria-expanded="true"]::after {
        content: "-";
    }

    .product-filter__body {
        display: none;
    }

    .product-filter__body.is-open {
        display: block;
    }

    .product-contact {
        display: none;
    }

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

    .product-card {
        min-height: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .product-card,
    .product-card__media img,
    .product-card__details::before {
        transition: none;
    }
}
