/* Native WooCommerce product-tag and pa_szerzo archives only. */
body.wa-product-archive .site-main {
    box-sizing: border-box;
    width: 100%;
    max-width: 1280px;
    margin-inline: auto;
    padding: 36px 24px 60px;
    color: #15364a;
    font-family: Arial, Helvetica, sans-serif;
}
body.wa-product-archive .woocommerce-breadcrumb { margin-bottom: 20px; color: #526675; font-size: 13px; }
body.wa-product-archive .woocommerce-breadcrumb a { color: #526675; }
body.wa-product-archive .woocommerce-products-header h1 {
    margin: 0 0 20px;
    color: #15364a;
    font-size: clamp(28px, 3.5vw, 40px);
    line-height: 1.2;
    overflow-wrap: anywhere;
}
body.wa-product-archive .term-description { max-width: 800px; margin-bottom: 24px; color: #526675; line-height: 1.65; }
body.wa-product-archive .woocommerce-result-count { color: #526675; font-size: 14px; }
body.wa-product-archive .woocommerce-ordering select {
    box-sizing: border-box;
    max-width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #98a6ad;
    border-radius: 7px;
    background: #fff;
    color: #15364a;
    font: inherit;
    font-size: 14px;
}
body.wa-product-archive ul.products {
    display: grid;
    clear: both;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px 20px;
    width: 100%;
    margin: 28px 0 36px;
    padding: 0;
    list-style: none;
}
/* WooCommerce's float clearfix must not occupy grid cells. */
body.wa-product-archive ul.products::before,
body.wa-product-archive ul.products::after { display: none; }
body.wa-product-archive ul.products li.product {
    box-sizing: border-box;
    position: relative;
    display: flex;
    flex-direction: column;
    float: none !important;
    clear: none !important;
    width: auto !important;
    min-width: 0;
    margin: 0 !important;
    padding: 0 0 16px;
    overflow: hidden;
    border: 1px solid #d5e1eb;
    border-radius: 12px;
    background: #fff;
    color: #15364a;
    text-align: left;
}
body.wa-product-archive ul.products li.product .woocommerce-LoopProduct-link {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    color: #15364a;
    text-decoration: none;
}
body.wa-product-archive ul.products li.product .woocommerce-LoopProduct-link img {
    box-sizing: border-box;
    display: block;
    width: 100%;
    height: 280px;
    margin: 0 0 16px;
    padding: 16px;
    background: #f3f5f4;
    object-fit: contain;
    object-position: center;
}
body.wa-product-archive ul.products li.product .woocommerce-loop-product__title {
    margin: 0 0 10px;
    padding: 0 16px;
    color: #15364a;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.45;
    overflow-wrap: anywhere;
}
body.wa-product-archive ul.products li.product .price {
    display: block;
    margin: auto 0 0;
    padding: 0 16px;
    color: #15364a;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.6;
}
body.wa-product-archive ul.products li.product .price del { color: #526675; font-size: 14px; font-weight: 400; }
body.wa-product-archive ul.products li.product .price ins { background: transparent; color: #8d371c; font-weight: 700; text-decoration: none; }
body.wa-product-archive ul.products li.product .star-rating { margin: 0 16px 10px; color: #805600; }
body.wa-product-archive ul.products li.product > .button {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    float: none;
    width: calc(100% - 32px);
    min-height: 44px;
    margin: 16px 16px 0;
    padding: 10px 14px;
    border: 1px solid #15364a;
    border-radius: 7px;
    background: #15364a;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    white-space: normal;
    overflow-wrap: anywhere;
}
body.wa-product-archive ul.products li.product > .button:hover { background: #244f69; color: #fff; }
body.wa-product-archive ul.products li.product > .added_to_cart { margin: 10px 16px 0; color: #15364a; text-align: center; }
body.wa-product-archive ul.products li.product .onsale {
    position: absolute;
    z-index: 2;
    inset: 10px auto auto 10px;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 3px 7px;
    border: 1px solid #d4a33d;
    border-radius: 4px;
    background: #fff8e7;
    color: #805600;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
}
body.wa-product-archive .site-main :is(a, select):focus-visible { outline: 3px solid #226c9a; outline-offset: 3px; }
body.wa-product-archive ul.products li.product .woocommerce-LoopProduct-link:focus-visible { outline-offset: -3px; }
body.wa-product-archive .woocommerce-pagination ul { display: inline-flex; flex-wrap: wrap; gap: 8px; border: 0; }
body.wa-product-archive .woocommerce-pagination ul li { border: 0; }
body.wa-product-archive .woocommerce-pagination ul li :is(a, span) { padding: 9px 14px; border: 1px solid #98a6ad; border-radius: 6px; color: #15364a; }
body.wa-product-archive .woocommerce-pagination ul li .current { border-color: #15364a; background: #15364a; color: #fff; }
@media (max-width: 1099px) {
    body.wa-product-archive ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
    body.wa-product-archive .site-main { padding: 24px 16px 40px; }
    body.wa-product-archive ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
    body.wa-product-archive .woocommerce-result-count,
    body.wa-product-archive .woocommerce-ordering { float: none; width: 100%; margin: 0 0 14px; }
    body.wa-product-archive .woocommerce-ordering select { width: 100%; }
    body.wa-product-archive ul.products li.product .woocommerce-LoopProduct-link img { height: 250px; }
}
@media (max-width: 479px) {
    body.wa-product-archive ul.products { grid-template-columns: minmax(0, 1fr); }
    body.wa-product-archive ul.products li.product .woocommerce-LoopProduct-link img { height: 300px; }
}
