/* OMAS product archives */
.post-type-archive-product .col-full,
.tax-product_cat .col-full,
.tax-product_tag .col-full {
    max-width: none;
    margin: 0;
    padding: 0;
}

.omas-collection {
    width: 100%;
    color: #303030;
    background: #fff;
}

.omas-collection__header {
    padding: 68px 34px 58px;
    text-align: center;
}

.omas-collection__title {
    margin: 0;
    color: #303030;
    font-size: clamp(38px, 4.1vw, 58px);
    line-height: 1.05;
    font-weight: 400;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.omas-collection__description {
    max-width: 720px;
    margin: 22px auto 0;
    color: #666;
    font-size: 15px;
    line-height: 1.7;
}

.omas-collection__description > :last-child {
    margin-bottom: 0;
}

.omas-collection__toolbar {
    display: grid;
    grid-template-columns: minmax(130px, 1fr) auto minmax(230px, 1fr);
    align-items: center;
    min-height: 64px;
    padding: 0 34px;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    text-transform: uppercase;
}

.omas-collection__filter {
    justify-self: start;
}

.omas-filter {
    position: relative;
}

.omas-filter summary {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 22px 0;
    color: #222;
    font-size: 11px;
    line-height: 1;
    font-weight: 600;
    letter-spacing: .16em;
    cursor: pointer;
    list-style: none;
}

.omas-filter summary::-webkit-details-marker {
    display: none;
}

.omas-filter summary::after {
    width: 6px;
    height: 6px;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    content: "";
    transform: translateY(-2px) rotate(45deg);
    transition: transform .2s ease;
}

.omas-filter[open] summary::after {
    transform: translateY(2px) rotate(225deg);
}

.omas-filter__panel {
    position: absolute;
    z-index: 20;
    top: calc(100% + 1px);
    left: -18px;
    width: min(340px, calc(100vw - 36px));
    padding: 24px;
    border: 1px solid #ddd;
    background: #fff;
    box-shadow: 0 14px 35px rgb(0 0 0 / 8%);
    text-transform: none;
}

.omas-filter__panel .widget {
    margin: 0 0 24px;
}

.omas-filter__panel .widget:last-child {
    margin-bottom: 0;
}

.omas-collection__count {
    color: #777;
    font-size: 10px;
    line-height: 1.3;
    letter-spacing: .13em;
    text-align: center;
}

.omas-collection__count .woocommerce-result-count {
    float: none;
    margin: 0;
}

.omas-collection__sorting {
    display: flex;
    align-items: center;
    justify-self: end;
    gap: 11px;
}

.omas-collection__sort-label {
    color: #222;
    font-size: 11px;
    line-height: 1;
    font-weight: 600;
    letter-spacing: .14em;
    white-space: nowrap;
}

.omas-collection__sorting .woocommerce-ordering {
    float: none;
    margin: 0;
}

.omas-collection__sorting select {
    max-width: 190px;
    min-height: auto;
    padding: 8px 27px 8px 9px;
    border: 0;
    border-radius: 0;
    color: #555;
    background-color: transparent;
    font: inherit;
    font-size: 11px;
    line-height: 1.2;
    text-transform: none;
    box-shadow: none;
    cursor: pointer;
}

.omas-collection ul.products {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 42px 24px;
    margin: 0;
    padding: 48px 34px 72px;
}

.omas-collection ul.products::before,
.omas-collection ul.products::after {
    display: none;
}

.omas-collection ul.products li.product.omas-collection-card {
    float: none;
    width: auto;
    margin: 0;
    padding: 0;
    text-align: center;
}

.omas-collection-card__image {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.omas-collection ul.products li.product .omas-collection-card__image img {
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: contain;
    transition: transform .45s cubic-bezier(.22, .61, .36, 1);
}

.omas-collection-card__badge {
    position: absolute;
    z-index: 1;
    top: 13px;
    left: 13px;
    padding: 7px 9px;
    color: #fff;
    background: #303030;
    font-size: 9px;
    line-height: 1;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.omas-collection-card__info {
    padding: 15px 5px 0;
}

.omas-collection ul.products li.product .omas-collection-card__title {
    margin: 0 0 7px;
    padding: 0;
    color: #343434;
    font-size: 14px;
    line-height: 1.45;
    font-weight: 400;
}

.omas-collection-card__title a {
    color: inherit;
    text-decoration: none;
}

.omas-collection ul.products li.product .omas-collection-card__price {
    display: block;
    margin: 0;
    color: #111;
    font-size: 13px;
    line-height: 1.45;
    font-weight: 400;
}

.omas-collection-card__price del {
    color: #888;
    opacity: 1;
}

.omas-collection-card__price ins {
    margin-left: 5px;
    color: #9b1c1c;
    font-weight: 400;
    text-decoration: none;
}

.omas-collection__pagination {
    padding: 0 34px 72px;
}

.omas-collection__pagination .woocommerce-pagination {
    float: none;
    text-align: center;
}

.omas-collection__pagination .woocommerce-pagination ul.page-numbers {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    border: 0;
}

.omas-collection__pagination .woocommerce-pagination ul.page-numbers li {
    border: 0;
}

.omas-collection__pagination .page-numbers li .page-numbers {
    display: grid;
    width: 38px;
    height: 38px;
    padding: 0;
    place-items: center;
    border: 1px solid transparent;
    color: #555;
    background: transparent;
    font-size: 12px;
    text-decoration: none;
}

.omas-collection__pagination .page-numbers li .page-numbers.current {
    border-color: #303030;
    color: #111;
    background: transparent;
}

@media (hover: hover) and (pointer: fine) {
    .omas-collection-card__image:hover img {
        transform: scale(1.025);
    }

    .omas-collection-card__title a:hover {
        text-decoration: underline;
        text-underline-offset: 3px;
    }
}

@media (min-width: 768px) and (max-width: 980px) {
    .omas-collection__header {
        padding: 56px 28px 48px;
    }

    .omas-collection__toolbar {
        padding: 0 28px;
    }

    .omas-collection ul.products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 34px 18px;
        padding: 40px 28px 64px;
    }
}

@media (max-width: 767px) {
    .omas-collection__header {
        padding: 42px 18px 36px;
    }

    .omas-collection__title {
        font-size: clamp(29px, 9vw, 38px);
        line-height: 1.12;
    }

    .omas-collection__description {
        margin-top: 16px;
        font-size: 14px;
        line-height: 1.6;
    }

    .omas-collection__toolbar {
        grid-template-columns: minmax(64px, 1fr) minmax(150px, auto);
        min-height: 56px;
        padding: 0 18px;
    }

    .omas-collection__count {
        display: none;
    }

    .omas-filter summary {
        padding: 19px 0;
    }

    .omas-collection__sort-label {
        font-size: 10px;
    }

    .omas-collection__sorting {
        gap: 4px;
    }

    .omas-collection__sorting select {
        width: 122px;
        padding-right: 18px;
        font-size: 10px;
    }

    .omas-collection ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px 12px;
        padding: 30px 18px 54px;
    }

    .omas-collection-card__info {
        padding-top: 11px;
    }

    .omas-collection ul.products li.product .omas-collection-card__title,
    .omas-collection ul.products li.product .omas-collection-card__price {
        font-size: 12px;
    }

    .omas-collection-card__badge {
        top: 9px;
        left: 9px;
        padding: 6px 7px;
        font-size: 8px;
    }

    .omas-collection__pagination {
        padding: 0 18px 54px;
    }
}

@media (max-width: 480px) {
    .omas-collection__header {
        padding-top: 36px;
        padding-bottom: 30px;
    }

    .omas-collection__toolbar {
        padding-right: 12px;
        padding-left: 12px;
    }

    .omas-collection ul.products {
        column-gap: 10px;
        padding-right: 12px;
        padding-left: 12px;
    }
}
