body.post-type-archive-product,
body.tax-product_cat {
    background-color: #f4f7fb;
}

body.post-type-archive-product .site-main,
body.tax-product_cat .site-main {
    padding-top: 40px;
    padding-bottom: 60px;
}

body.post-type-archive-product .woocommerce-result-count,
body.tax-product_cat .woocommerce-result-count {
    font-size: 13px;
    color: #6b7280;
}

body.post-type-archive-product .woocommerce-ordering select,
body.tax-product_cat .woocommerce-ordering select {
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    padding: 6px 12px;
    font-size: 13px;
}

.woocommerce ul.products li.product {
    background: #ffffff;
    border-radius: 22px;
    padding: 16px 16px 18px;
    border: 1px solid rgba(64, 217, 228, 0.08);
    box-shadow:
        0 16px 40px rgba(15, 23, 42, 0.08),
        0 1px 0 rgba(255, 255, 255, 0.7) inset;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease,
        background-color 0.25s ease;
}

.woocommerce ul.products li.product::before {
    content: "";
    position: absolute;
    inset: 0;
    height: 3px;
    background: linear-gradient(90deg, #40d9e4, #23bace);
    opacity: 0.9;
}

.woocommerce ul.products li.product a.woocommerce-LoopProduct-link img {
    border-radius: 16px;
    margin-bottom: 12px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
}

.woocommerce ul.products li.product .price {
    font-size: 14px;
    font-weight: 600;
    color: #40d9e4;
    margin-bottom: 8px;
}

.woocommerce ul.products li.product .star-rating {
    margin-bottom: 6px;
}

.woocommerce ul.products li.product .button {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    border-radius: 999px;
    padding: 9px 16px;
    background: #40d9e4;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: none;
    box-shadow:
        0 14px 30px rgba(64, 217, 228, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    transition:
        background-color 0.2s ease,
        transform 0.15s ease,
        box-shadow 0.2s ease;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-6px);
    box-shadow:
        0 22px 55px rgba(15, 23, 42, 0.16),
        0 0 0 1px rgba(64, 217, 228, 0.16);
    border-color: rgba(64, 217, 228, 0.26);
    background-color: #f9fbff;
}

.woocommerce ul.products li.product:hover a.woocommerce-LoopProduct-link img {
    transform: scale(1.03);
}

/* hover кнопки */
.woocommerce ul.products li.product .button:hover {
    background: #23bace;
    transform: translateY(-1px);
    box-shadow:
        0 18px 40px rgba(64, 217, 228, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.25) inset;
}

body.post-type-archive-product #secondary .ast-woo-sidebar-widget,
body.tax-product_cat #secondary .ast-woo-sidebar-widget {
    background: #ffffff;
    border-radius: 20px;
    padding: 18px 18px 20px;
    border: 1px solid rgba(64, 217, 228, 0.08);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    margin-bottom: 18px;
}

body.post-type-archive-product .widget-title,
body.tax-product_cat .widget-title {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #111827;
    margin-bottom: 10px;
}

body.post-type-archive-product .widget ul li,
body.tax-product_cat .widget ul li {
    font-size: 14px;
    color: #374151;
}

.widget_price_filter .price_slider_amount {
    font-size: 13px;
}

@media (max-width: 1024px) {
    .woocommerce ul.products li.product {
        border-radius: 20px;
        padding: 14px 14px 16px;
    }

    body.post-type-archive-product .site-main,
    body.tax-product_cat .site-main {
        padding-top: 24px;
        padding-bottom: 40px;
    }
}

@media (max-width: 768px) {
    .woocommerce ul.products li.product {
        margin-bottom: 18px;
    }

    body.post-type-archive-product .widget,
    body.tax-product_cat .widget {
        margin-top: 10px;
    }
}
