/* ==========================================================================
 * UI/UX Polish — 2026-11-27
 * Фиксы адаптивности, выравнивания, контраста и единого стиля кнопок.
 * ========================================================================== */

/* 1. Убираем горизонтальный скролл и срыв ширины слайдера на мобильных */
html,
body {
    overflow-x: hidden;
    overflow-x: clip;
}

#page.royal-shop-site {
    overflow-x: hidden;
    overflow-x: clip;
}

@media (max-width: 1024px) {
    #wzta-single-slider,
    .slides,
    .disable-left-sidebar #wzta-single-slider,
    .disable-right-sidebar #wzta-single-slider,
    .front .disable-left-sidebar .slides,
    .wzta-slider-section .wzta-slide-wrap {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* 2. Шапка: воздух справа у пилла корзины и неразрывный телефон */
@media (min-width: 1025px) {
    header .main-header-bar .main-header-col3 .wzta-icon-market {
        padding: 5px 16px 5px 10px !important;
    }
    header .main-header-bar .main-header-col3 #top-cart {
        padding-right: 4px !important;
    }
}

.header-contacts-clean a[href^="tel:"] {
    white-space: nowrap;
}

@media (max-width: 600px) {
    .header-contacts-clean {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 4px 12px !important;
    }
}

#royal-shop-mobile-bar,
#royal-shop-mobile-bar ul {
    background: #ffffff !important;
}

/* 3. Контраст активного пункта главного меню */
ul.royal-shop-menu > li.current-menu-item > a,
ul.royal-shop-menu > li.current-menu-ancestor > a {
    color: #1a1a1a !important;
    font-weight: 700 !important;
}

/* 4. Сайдбар категорий: убираем дублирующую стрелку и сжатие иконок */
.toggle-cat-wrap .toggle-icon::before {
    content: none !important;
    display: none !important;
}

.wzta-product-cat-list > li.cat-item > a img {
    flex-shrink: 0 !important;
}

.wzta-product-cat-list > li.cat-item > a:not(:has(img))::before {
    content: "\f013";
    font-family: "FontAwesome";
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
    color: #f5c800;
    font-size: 15px;
    flex-shrink: 0;
}

/* 5. Карточка товара: жёлтая линия под ценой на всю ширину суммы */
.woocommerce .wzta-woo-product-list .price::after {
    width: 100% !important;
    min-width: 48px;
}

/* 6. Каталог: убираем вторую (фоновую) стрелку у select сортировки */
.woocommerce-ordering select.orderby {
    background-image: none !important;
    padding-right: 12px !important;
}

/* 7. Каталог и "Популярные товары": кнопка "В корзину" всегда видна в едином стиле */
.woocommerce ul.products .wzta-product .wzta-product-hover,
.wzta-product-slide-section .wzta-product .wzta-product-hover,
.wzta-product-tab-section .wzta-product .wzta-product-hover {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    margin-top: 10px !important;
    padding: 0 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px !important;
    box-shadow: none !important;
    border: none !important;
    background: transparent !important;
}

.woocommerce ul.products .wzta-product .wzta-product-hover .button,
.woocommerce ul.products .wzta-product .wzta-product-hover .add_to_cart_button,
.wzta-product-slide-section .wzta-product .wzta-product-hover .button,
.wzta-product-tab-section .wzta-product .wzta-product-hover .button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #fbd80a !important;
    color: #1a1a1a !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    padding: 8px 16px !important;
    border-radius: 40px !important;
    border: none !important;
    text-transform: uppercase !important;
    letter-spacing: 0.4px !important;
    box-shadow: 0 4px 12px rgba(251, 216, 10, 0.25) !important;
    margin: 0 !important;
    flex: 1 1 auto !important;
    transition: background 0.2s ease, transform 0.2s ease !important;
}

.woocommerce ul.products .wzta-product .wzta-product-hover .button:hover,
.woocommerce ul.products .wzta-product .wzta-product-hover .add_to_cart_button:hover,
.wzta-product-slide-section .wzta-product .wzta-product-hover .button:hover,
.wzta-product-tab-section .wzta-product .wzta-product-hover .button:hover {
    background: #f5c800 !important;
    color: #000 !important;
    transform: translateY(-1px);
}

/* Единый стиль кнопки "Показать еще" в каталоге */
.lmp_load_more_button.br_lmp_button_settings .lmp_button {
    background-color: #fbd80a !important;
    color: #1a1a1a !important;
    border-radius: 40px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    padding: 12px 32px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 4px 14px rgba(251, 216, 10, 0.3) !important;
    transition: background-color 0.2s ease, transform 0.2s ease !important;
}

.lmp_load_more_button.br_lmp_button_settings .lmp_button:hover {
    background-color: #f5c800 !important;
    color: #000 !important;
    transform: translateY(-2px);
}

/* 8. Скрываем дублирующую кнопку #move-to-top и разводим Jivo с мобильным таб-баром */
#move-to-top {
    display: none !important;
}

@media (max-width: 767px) {
    body jdiv,
    body #jivo-iframe-container {
        bottom: 64px !important;
    }
}

/* 9. Страница /sertifikaty/: выравнивание карточек и масштаба логотипов */
.page-id-13835 .wp-block-columns {
    align-items: stretch;
    margin-bottom: 24px;
}

.page-id-13835 .wp-block-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page-id-13835 .wp-block-column h2 {
    margin: 12px 0 14px !important;
    font-size: 22px !important;
    line-height: 1.3 !important;
}

.page-id-13835 .wp-block-column figure.wp-block-image {
    margin: 0 0 12px !important;
    height: 110px;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.page-id-13835 .wp-block-column figure.wp-block-image img {
    max-height: 100% !important;
    max-width: 220px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
}

.page-id-13835 .wp-block-column p {
    margin-top: auto !important;
    margin-bottom: 0 !important;
}

/* 10. Корзина и оформление заказа: убираем text-transform: capitalize */
.woocommerce table.shop_table td,
.woocommerce table.shop_table th,
.woocommerce #order_review table tfoot th {
    text-transform: none !important;
}

.woocommerce-cart .cart_totals .woocommerce-shipping-destination,
.woocommerce-cart .cart_totals form.woocommerce-shipping-calculator {
    text-align: left !important;
}

.woocommerce-cart table.cart td.product-name a {
    color: #1e293b !important;
}

@media (max-width: 767px) {
    .woocommerce-cart .woocommerce:not([class*="dgwt-wcas"]) {
        grid-template-columns: minmax(0, 1fr) !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .woocommerce-cart form.woocommerce-cart-form,
    .woocommerce-cart .cart-collaterals,
    .woocommerce-cart .cart_totals {
        max-width: 100% !important;
        min-width: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden;
    }

    .woocommerce-cart .cart_totals table.shop_table,
    .woocommerce-cart .cart_totals table.shop_table tbody {
        display: block !important;
        width: 100% !important;
    }

    .woocommerce-cart .cart_totals table.shop_table tr {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
    }

    .woocommerce-cart .cart_totals table.shop_table tr.shipping th,
    .woocommerce-cart .cart_totals table.shop_table tr.shipping td {
        display: block !important;
        width: 100% !important;
        text-align: left !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .woocommerce-cart .cart_totals table.shop_table tr.shipping td::before {
        display: none !important;
    }

    .woocommerce-cart table.cart td[data-title]::before {
        margin-right: 8px !important;
    }
}

/* 11. Страница "Оплата и возврат": адаптивная таблица реквизитов и иконки */
.page-payment-return .wp-block-table {
    overflow-x: auto !important;
    max-width: 100% !important;
}

.page-payment-return img.emoji {
    width: 1.25em !important;
    height: 1.25em !important;
    flex-shrink: 0 !important;
}

@media (max-width: 768px) {
    .page-payment-return .wp-block-table table {
        width: 100% !important;
        table-layout: fixed !important;
    }
    .page-payment-return .wp-block-table td {
        word-break: break-word !important;
    }
}

/* 12. Блог: скрываем лишний бейдж "Комментарии отключены" */
.category-blog .comments-link,
.archive .comments-link {
    display: none !important;
}

/* 13. Фильтры каталога WOOF + Chosen (современный фирменный вид) */
.woof.woof_sid_auto_shortcode {
    background: #ffffff !important;
    border: 1.5px solid #eceef2 !important;
    border-top: 4px solid #fbd80a !important;
    border-radius: 14px !important;
    padding: 16px 18px !important;
    margin-bottom: 24px !important;
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.05) !important;
    box-sizing: border-box !important;
}

.woof.woof_sid_auto_shortcode .woof_redraw_zone {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px 12px !important;
    align-items: flex-start !important;
}

.woof.woof_sid_auto_shortcode .woof_container {
    flex: 1 1 210px !important;
    min-width: 190px !important;
    max-width: 100% !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
}

.woof.woof_sid_auto_shortcode .woof_container_inner {
    margin: 0 !important;
    padding: 0 !important;
}

.woof.woof_sid_auto_shortcode .chosen-container.chosen-container-multi {
    width: 100% !important;
    font-family: inherit !important;
    font-size: 13.5px !important;
}

.woof.woof_sid_auto_shortcode .chosen-container-multi .chosen-choices {
    background: #f8fafc !important;
    background-image: none !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 10px !important;
    padding: 6px 34px 6px 12px !important;
    min-height: 42px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 5px !important;
    box-shadow: none !important;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease !important;
    position: relative !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
}

.woof.woof_sid_auto_shortcode .chosen-container-multi .chosen-choices::after {
    content: "▾";
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    color: #64748b;
    pointer-events: none;
    transition: transform 0.2s ease, color 0.2s ease;
}

.woof.woof_sid_auto_shortcode .chosen-container-multi:hover .chosen-choices {
    border-color: #cbd5e1 !important;
    background: #ffffff !important;
}

.woof.woof_sid_auto_shortcode .chosen-container-multi.chosen-container-active .chosen-choices {
    border-color: #fbd80a !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(251, 216, 10, 0.22) !important;
}

.woof.woof_sid_auto_shortcode .chosen-container-multi.chosen-container-active .chosen-choices::after {
    transform: translateY(-50%) rotate(180deg);
    color: #1a1a1a;
}

.woof.woof_sid_auto_shortcode .chosen-container-multi .chosen-choices li.search-field {
    flex: 1 1 90px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.woof.woof_sid_auto_shortcode .chosen-container-multi .chosen-choices li.search-field input[type="text"] {
    color: #475569 !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    font-family: inherit !important;
    height: 26px !important;
    line-height: 26px !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    min-width: 80px !important;
    background: transparent !important;
    box-shadow: none !important;
}

.woof.woof_sid_auto_shortcode .chosen-container-multi .chosen-choices li.search-choice {
    background: #fbd80a !important;
    background-image: none !important;
    border: none !important;
    border-radius: 20px !important;
    color: #1a1a1a !important;
    font-weight: 700 !important;
    font-size: 12.5px !important;
    line-height: 1.2 !important;
    padding: 5px 24px 5px 10px !important;
    margin: 1px 0 !important;
    box-shadow: 0 2px 6px rgba(251, 216, 10, 0.25) !important;
}

.woof.woof_sid_auto_shortcode .chosen-container-multi .chosen-choices li.search-choice .search-choice-close {
    top: 50% !important;
    right: 7px !important;
    transform: translateY(-50%) !important;
    opacity: 0.75;
}

.woof.woof_sid_auto_shortcode .chosen-container-multi .chosen-choices li.search-choice .search-choice-close:hover {
    opacity: 1;
}

.woof.woof_sid_auto_shortcode .chosen-container .chosen-drop {
    border: 1.5px solid #e2e8f0 !important;
    border-top: 1px solid #f1f5f9 !important;
    border-radius: 0 0 12px 12px !important;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12) !important;
    margin-top: 2px !important;
    padding: 6px 0 !important;
    background: #ffffff !important;
    overflow: hidden !important;
}

.woof.woof_sid_auto_shortcode .chosen-container .chosen-results {
    margin: 0 !important;
    padding: 0 4px !important;
    max-height: 260px !important;
}

.woof.woof_sid_auto_shortcode .chosen-container .chosen-results li {
    padding: 8px 12px !important;
    font-size: 13.5px !important;
    color: #1e293b !important;
    border-radius: 8px !important;
    margin: 2px 0 !important;
    transition: background-color 0.15s ease, color 0.15s ease !important;
}

.woof.woof_sid_auto_shortcode .chosen-container .chosen-results li.highlighted {
    background: #fef08a !important;
    background-image: none !important;
    color: #0f172a !important;
    font-weight: 600 !important;
}

.woof.woof_sid_auto_shortcode .woof_submit_search_form_container {
    flex: 1 1 100% !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    margin: 4px 0 0 !important;
}

.woof.woof_sid_auto_shortcode .woof_submit_search_form_container:empty {
    display: none !important;
}

.woof.woof_sid_auto_shortcode .woof_reset_search_form,
.woof.woof_sid_auto_shortcode .woof_submit_search_form {
    border-radius: 30px !important;
    padding: 8px 18px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    border: 1.5px solid #e2e8f0 !important;
    background: #f8fafc !important;
    color: #1e293b !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.woof.woof_sid_auto_shortcode .woof_reset_search_form:hover {
    background: #fee2e2 !important;
    border-color: #fca5a5 !important;
    color: #b91c1c !important;
}

.woof_products_top_panel {
    margin: 0 0 16px !important;
}

.woof_products_top_panel li a {
    background: #fef9c3 !important;
    border: 1px solid #fbd80a !important;
    border-radius: 20px !important;
    padding: 4px 12px !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    color: #1a1a1a !important;
    text-decoration: none !important;
}

@media (max-width: 600px) {
    .woof.woof_sid_auto_shortcode {
        padding: 12px !important;
        border-radius: 12px !important;
    }
    .woof.woof_sid_auto_shortcode .woof_container {
        flex: 1 1 100% !important;
        min-width: 0 !important;
    }
}

/* 14. Карточки товаров в каталоге (современная ровная сетка) */
.woocommerce ul.products:not(.wzta-list-view) {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 16px !important;
    margin: 0 0 24px !important;
    padding: 0 !important;
}

.woocommerce ul.products:not(.wzta-list-view)::before,
.woocommerce ul.products:not(.wzta-list-view)::after {
    display: none !important;
    content: none !important;
}

.woocommerce ul.products:not(.wzta-list-view) li.wzta-woo-product-list {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    clear: none !important;
    display: flex !important;
    flex-direction: column !important;
}

.woocommerce ul.products:not(.wzta-list-view) li.wzta-woo-product-list .wzta-product-wrap {
    height: 100% !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
}

.woocommerce ul.products:not(.wzta-list-view) li.wzta-woo-product-list .wzta-product {
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    background: #ffffff !important;
    border: 1.5px solid #f2d235 !important;
    border-radius: 14px !important;
    padding: 14px !important;
    margin: 0 !important;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.07) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease !important;
    box-sizing: border-box !important;
}

.woocommerce ul.products:not(.wzta-list-view) li.wzta-woo-product-list .wzta-product:hover {
    border-color: #eab308 !important;
    box-shadow: 0 10px 26px rgba(251, 216, 10, 0.25) !important;
    transform: translateY(-2px);
}

.wzta-product-slide-section .wzta-product,
.wzta-product-tab-section .wzta-product {
    border: 1.5px solid #f2d235 !important;
    border-radius: 14px !important;
    padding: 14px !important;
    background: #ffffff !important;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.07) !important;
}

/* Бейдж категории в карточке */
.woocommerce ul.products:not(.wzta-list-view) .wzta-categories-prod {
    display: block !important;
    margin: 0 0 8px !important;
    max-width: 100% !important;
}

.woocommerce ul.products:not(.wzta-list-view) .wzta-categories-prod a {
    display: inline-block !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    background: #fef9c3 !important;
    border: 1px solid #fde047 !important;
    color: #1a1a1a !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.4px !important;
    padding: 3px 10px !important;
    border-radius: 20px !important;
    text-decoration: none !important;
    line-height: 1.3 !important;
}

/* Фиксированная высота заголовка (2 строки) для ровной линии картинок */
.woocommerce ul.products:not(.wzta-list-view) .woocommerce-loop-product__title {
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    height: 40px !important;
    margin: 0 0 10px !important;
    padding: 0 !important;
    color: #1e293b !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
}

/* Контейнер фото — без обрезания краёв */
.woocommerce ul.products:not(.wzta-list-view) .wzta-product-image {
    height: 180px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #fafafa !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    margin: 0 0 12px !important;
    position: relative !important;
}

.woocommerce ul.products:not(.wzta-list-view) .wzta-product-image img {
    max-height: 100% !important;
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    transition: transform 0.35s ease !important;
}

.woocommerce ul.products:not(.wzta-list-view) .wzta-product:hover .wzta-product-image img {
    transform: scale(1.04);
}

.woocommerce ul.products:not(.wzta-list-view) .wzta-product-image span.onsale {
    position: absolute !important;
    top: 8px !important;
    left: 8px !important;
    right: auto !important;
    background: #ef4444 !important;
    color: #ffffff !important;
    font-size: 10.5px !important;
    font-weight: 700 !important;
    padding: 4px 10px !important;
    border-radius: 20px !important;
    line-height: 1.2 !important;
    z-index: 4 !important;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3) !important;
}

/* Цена прижата к нижней группе */
.woocommerce ul.products:not(.wzta-list-view) .wzta-product > a:has(.price) {
    margin-top: auto !important;
    text-decoration: none !important;
}

.woocommerce ul.products:not(.wzta-list-view) .price {
    display: inline-block !important;
    font-size: 19px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 0 0 10px !important;
    padding-bottom: 4px !important;
}

.woocommerce ul.products:not(.wzta-list-view) .price del {
    font-size: 13.5px !important;
    font-weight: 500 !important;
    color: #94a3b8 !important;
    margin-right: 6px !important;
}

.woocommerce ul.products:not(.wzta-list-view) .price ins {
    color: #dc2626 !important;
    font-weight: 800 !important;
    background: transparent !important;
    text-decoration: none !important;
}

/* Нижняя панель действий: В корзину + Избранное + Сравнить */
.woocommerce ul.products:not(.wzta-list-view) .wzta-product-hover {
    margin-top: 0 !important;
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
}

.woocommerce ul.products:not(.wzta-list-view) .wzta-product-hover .add_to_cart_button,
.woocommerce ul.products:not(.wzta-list-view) .wzta-product-hover .added_to_cart {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    height: 38px !important;
    padding: 0 12px !important;
    font-size: 12.5px !important;
    border-radius: 20px !important;
    white-space: nowrap !important;
}

.woocommerce ul.products:not(.wzta-list-view) .wzta-product-hover .wzta-wishlist,
.woocommerce ul.products:not(.wzta-list-view) .wzta-product-hover .woosc-btn {
    flex: 0 0 auto !important;
    margin: 0 !important;
}

.woocommerce ul.products:not(.wzta-list-view) .wzta-product-hover .woosw-btn,
.woocommerce ul.products:not(.wzta-list-view) .wzta-product-hover .woosc-btn {
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    background: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0 !important;
    transition: background-color 0.2s ease, border-color 0.2s ease !important;
}

.woocommerce ul.products:not(.wzta-list-view) .wzta-product-hover .woosw-btn:hover,
.woocommerce ul.products:not(.wzta-list-view) .wzta-product-hover .woosc-btn:hover {
    background: #fef9c3 !important;
    border-color: #fbd80a !important;
}

.woocommerce ul.products:not(.wzta-list-view) .wzta-product-hover .woosc-btn::before {
    content: "\f0ec" !important;
    font-family: "FontAwesome" !important;
    font-size: 14px !important;
    color: #334155 !important;
    line-height: 1 !important;
    display: inline-block !important;
    margin: 0 !important;
}

.woocommerce ul.products:not(.wzta-list-view) .wzta-product-hover .woosc-btn.woosc-added {
    background: #fef08a !important;
    border-color: #eab308 !important;
}

/* Адаптив сетки: планшет 3 колонки, мобильный 2 колонки */
@media (max-width: 1199px) {
    .woocommerce ul.products:not(.wzta-list-view) {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 767px) {
    .woocommerce ul.products:not(.wzta-list-view) {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }
    .woocommerce ul.products:not(.wzta-list-view) li.wzta-woo-product-list .wzta-product {
        padding: 10px !important;
        border-radius: 12px !important;
    }
    .woocommerce ul.products:not(.wzta-list-view) .wzta-product-image {
        height: 135px !important;
        margin-bottom: 8px !important;
    }
    .woocommerce ul.products:not(.wzta-list-view) .woocommerce-loop-product__title {
        font-size: 13px !important;
        height: 36px !important;
    }
    .woocommerce ul.products:not(.wzta-list-view) .wzta-product-hover {
        flex-wrap: wrap !important;
    }
    .woocommerce ul.products:not(.wzta-list-view) .wzta-product-hover .add_to_cart_button {
        flex: 1 1 100% !important;
        height: 36px !important;
        font-size: 12px !important;
    }
}
