.woocommerce .site-main,
.woocommerce-page .site-main {
    padding: 56px 0;
}

.at-catalog-page {
    padding: clamp(42px, 6vw, 74px) 0 clamp(64px, 8vw, 104px);
    background:
        radial-gradient(circle at 50% 0, rgba(255, 255, 255, 0.055), transparent 34%),
        var(--at-color-bg);
}

.at-catalog-layout {
    display: grid;
    grid-template-columns: minmax(220px, 270px) minmax(0, 1fr);
    gap: clamp(18px, 2.8vw, 34px);
    align-items: start;
}

.at-catalog-sidebar {
    position: sticky;
    top: calc(var(--at-header-main-height) + 20px);
    overflow: hidden;
    border: 1px solid var(--at-color-line);
    border-radius: var(--at-radius-sm);
    background: rgba(255, 255, 255, 0.035);
    box-shadow: 0 18px 58px rgba(0, 0, 0, 0.18);
}

.at-catalog-sidebar__all,
.at-catalog-nav__summary,
.at-catalog-nav__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    min-height: 40px;
    padding: 10px 12px;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.055);
    color: var(--at-color-muted);
    background: transparent;
    font-family: 'Onest', sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0;
    text-align: left;
    cursor: pointer;
}

.at-catalog-nav__summary {
    list-style: none;
}

.at-catalog-nav__summary::-webkit-details-marker {
    display: none;
}

.at-catalog-sidebar__all:hover,
.at-catalog-sidebar__all:focus-visible,
.at-catalog-nav__summary:hover,
.at-catalog-nav__summary:focus-visible,
.at-catalog-nav__link:hover,
.at-catalog-nav__link:focus-visible,
.at-catalog-sidebar__all.is-active,
.at-catalog-nav__item.is-active > .at-catalog-nav__accordion > .at-catalog-nav__summary,
.at-catalog-nav__link[aria-current="page"] {
    color: var(--at-color-text);
    background: rgba(255, 255, 255, 0.055);
}

.at-catalog-sidebar__all.is-active {
    font-family: 'Onest', sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0;
}

.at-catalog-nav__summary-text {
    min-width: 0;
}

.at-catalog-nav__arrow {
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    opacity: 0.72;
    transform: rotate(45deg);
    transition: transform var(--at-transition), opacity var(--at-transition);
}

.at-catalog-nav__accordion[open] > .at-catalog-nav__summary .at-catalog-nav__arrow {
    transform: rotate(-135deg) translate(-2px, -2px);
    opacity: 1;
}

.at-catalog-nav__panel {
    background: rgba(0, 0, 0, 0.12);
}

.at-catalog-nav__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.at-catalog-nav__list--level-1 .at-catalog-nav__link,
.at-catalog-nav__list--level-1 .at-catalog-nav__summary {
    min-height: 36px;
    padding-left: 26px;
    color: var(--at-color-muted-2);
    font-weight: 500;
}

.at-catalog-nav__list--level-2 .at-catalog-nav__link,
.at-catalog-nav__list--level-2 .at-catalog-nav__summary {
    padding-left: 42px;
    font-size: 16px;
}

.at-catalog-nav__list--level-3 .at-catalog-nav__link,
.at-catalog-nav__list--level-3 .at-catalog-nav__summary {
    padding-left: 58px;
}

.at-catalog-nav__link--all {
    min-height: 36px;
    color: var(--at-color-muted-2);
    background: transparent;
    font-family: 'Onest', sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0;
}

.at-catalog-nav__list--level-0 > .at-catalog-nav__item > .at-catalog-nav__accordion > .at-catalog-nav__panel > .at-catalog-nav__link--all {
    padding-left: 26px;
}

.at-catalog-nav__list--level-1 > .at-catalog-nav__item > .at-catalog-nav__accordion > .at-catalog-nav__panel > .at-catalog-nav__link--all {
    padding-left: 42px;
}

.at-catalog-nav__link:hover,
.at-catalog-nav__link:focus-visible,
.at-catalog-nav__link--all:hover,
.at-catalog-nav__link--all:focus-visible {
    color: var(--at-color-text);
}

/* Keep active "all products in category" links visually identical to regular active category links. */
.at-catalog-nav__link[aria-current="page"],
.at-catalog-nav__link--all[aria-current="page"] {
    color: var(--at-color-text);
    background: rgba(255, 255, 255, 0.055);
    font-family: 'Onest', sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0;
}

.at-catalog-content {
    min-width: 0;
}

.at-catalog-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    margin-bottom: 16px;
    color: var(--at-color-muted);
}

.at-catalog-toolbar__label,
.at-catalog-toolbar__link {
    font-family: 'Onest', sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0;
}

.at-catalog-toolbar__label {
    color: var(--at-color-muted-2);
}

.at-catalog-toolbar__link {
    color: var(--at-color-muted);
    text-decoration: none;
}

.at-catalog-toolbar__link:hover,
.at-catalog-toolbar__link:focus-visible,
.at-catalog-toolbar__link.is-active {
    color: var(--at-color-text);
}

.at-catalog-toolbar__link.is-active {
    text-decoration-line: underline;
    text-decoration-style: dotted;
    text-decoration-offset: 10%;
    text-decoration-thickness: 10%;
    text-decoration-skip-ink: auto;
}

.woocommerce .products,
.woocommerce-page .products,
ul.products {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
.woocommerce ul.products li.product.at-product-card,
.woocommerce-page ul.products li.product.at-product-card {
    float: none;
    width: auto;
    margin: 0;
    padding: 0;
}

.woocommerce ul.products li.product.at-product-card,
.woocommerce-page ul.products li.product.at-product-card {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.045);
    border-radius: var(--at-radius-xs);
    background: rgba(255, 255, 255, 0.04);
    transition: transform var(--at-transition), border-color var(--at-transition), background-color var(--at-transition);
}

.woocommerce ul.products li.product.at-product-card:hover,
.woocommerce-page ul.products li.product.at-product-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.065);
}

.at-product-card__link {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    padding: clamp(14px, 1.7vw, 18px);
    color: var(--at-color-text);
}

.at-product-card__image-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1.3 / 1;
    margin-bottom: 14px;
    border-radius: var(--at-radius-xs);
    background: rgba(255, 255, 255, 0.018);
}

.woocommerce ul.products li.product .at-product-card__image,
.woocommerce ul.products li.product a img.at-product-card__image,
.at-product-card__image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    margin: 0;
    border-radius: 0;
    background: transparent;
}

.at-product-card__title {
    display: block;
    min-height: 3em;
    margin-bottom: 10px;
    color: var(--at-color-muted);
    font-family: 'Onest', sans-serif;
    font-size: 17px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0;
}

.at-product-card__price,
.woocommerce ul.products li.product .at-product-card__price,
.woocommerce ul.products li.product .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price {
    display: block;
    margin-top: auto;
    color: var(--at-color-text);
    font-family: 'Onest', sans-serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0;
}

.at-single-product-cart__price .woocommerce-Price-amount.amount {
    font-family: 'Onest', sans-serif;
    font-size: 32px !important;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0;
}

.woocommerce-Price-currencySymbol {
    font-family: 'Onest', sans-serif;
    font-size: 24px;
    font-weight: 300;
    line-height: 1;
    letter-spacing: 0;
}

.at-product-card__price del {
    opacity: 0.5;
}

.at-product-card__price ins {
    text-decoration: none;
}

.woocommerce nav.woocommerce-pagination {
    display: flex;
    justify-content: center;
    margin-top: clamp(28px, 4vw, 44px);
}

.woocommerce nav.woocommerce-pagination ul {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.065);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.028);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.045),
        0 18px 58px rgba(0, 0, 0, 0.18);
}

.woocommerce nav.woocommerce-pagination ul li {
    overflow: visible;
    border: 0;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 11px;
    border: 1px solid transparent;
    border-radius: 999px;
    color: var(--at-color-muted-2);
    background: transparent;
    font-family: 'Onest', sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    transition:
        color var(--at-transition),
        background-color var(--at-transition),
        border-color var(--at-transition),
        box-shadow var(--at-transition),
        transform var(--at-transition);
}

.woocommerce nav.woocommerce-pagination ul li a.prev,
.woocommerce nav.woocommerce-pagination ul li a.next,
.woocommerce nav.woocommerce-pagination ul li span.prev,
.woocommerce nav.woocommerce-pagination ul li span.next {
    min-width: 34px;
    padding: 0;
    font-size: 0;
}

.woocommerce nav.woocommerce-pagination ul li a.prev::before,
.woocommerce nav.woocommerce-pagination ul li span.prev::before,
.woocommerce nav.woocommerce-pagination ul li a.next::before,
.woocommerce nav.woocommerce-pagination ul li span.next::before {
    content: '';
    width: 8px;
    height: 8px;
    border-top: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
}

.woocommerce nav.woocommerce-pagination ul li a.prev::before,
.woocommerce nav.woocommerce-pagination ul li span.prev::before {
    transform: rotate(-135deg);
}

.woocommerce nav.woocommerce-pagination ul li a.next::before,
.woocommerce nav.woocommerce-pagination ul li span.next::before {
    transform: rotate(45deg);
}

.woocommerce nav.woocommerce-pagination ul li a:hover,
.woocommerce nav.woocommerce-pagination ul li a:focus-visible {
    color: var(--at-color-text);
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.055);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
    transform: translateY(-1px);
}

.woocommerce nav.woocommerce-pagination ul li a:focus-visible {
    outline: 0;
}

.woocommerce nav.woocommerce-pagination ul li span.current {
    color: var(--at-color-text);
    border-color: rgba(255, 255, 255, 0.11);
    background: rgba(255, 255, 255, 0.105);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.07),
        0 8px 24px rgba(0, 0, 0, 0.16);
}

.woocommerce nav.woocommerce-pagination ul li span.dots {
    min-width: 22px;
    padding: 0 2px;
    color: var(--at-color-muted-2);
    background: transparent;
    border-color: transparent;
}

@media (max-width: 560px) {
    .woocommerce nav.woocommerce-pagination {
        margin-top: 24px;
    }

    .woocommerce nav.woocommerce-pagination ul {
        gap: 4px;
        padding: 5px;
    }

    .woocommerce nav.woocommerce-pagination ul li a,
    .woocommerce nav.woocommerce-pagination ul li span {
        min-width: 32px;
        height: 32px;
        padding: 0 9px;
        font-size: 15px;
    }

    .woocommerce nav.woocommerce-pagination ul li a.prev,
    .woocommerce nav.woocommerce-pagination ul li a.next,
    .woocommerce nav.woocommerce-pagination ul li span.prev,
    .woocommerce nav.woocommerce-pagination ul li span.next {
        min-width: 32px;
    }
}

.woocommerce div.product {
    color: var(--at-color-muted);
}

.woocommerce div.product .product_title {
    color: var(--at-color-text);
    font-size: clamp(32px, 5vw, 58px);
    line-height: 1.05;
}

.woocommerce table.shop_table {
    border-color: var(--at-color-line);
    border-radius: var(--at-radius-sm);
    background: rgba(255, 255, 255, 0.03);
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
    border-color: var(--at-color-line);
}

.woocommerce .quantity .qty {
    min-height: 38px;
    color: var(--at-color-text);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--at-color-line);
    border-radius: var(--at-radius-xs);
}

.woocommerce-breadcrumb,
.woocommerce-result-count,
.woocommerce .woocommerce-ordering select {
    color: var(--at-color-muted);
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    border-top-color: var(--at-color-line-strong);
    color: var(--at-color-text);
    background: rgba(255, 255, 255, 0.05);
}

.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
    color: var(--at-color-text);
}

@media (max-width: 1100px) {
    .woocommerce .products,
    .woocommerce-page .products,
    ul.products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .at-catalog-layout {
        grid-template-columns: 1fr;
    }

    .at-catalog-sidebar {
        position: static;
    }

    .woocommerce .products,
    .woocommerce-page .products,
    ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .at-catalog-page {
        padding-top: 34px;
    }

    .woocommerce .products,
    .woocommerce-page .products,
    ul.products {
        grid-template-columns: 1fr;
    }

    .at-product-card__link {
        padding: 14px;
    }

    .at-product-card__image-wrap {
        aspect-ratio: 1.55 / 1;
    }
}
