.wbc-compare-wrapper {
    position: relative;
    display: inline-block;
    margin-left: 10px;
    vertical-align: middle;
}
.wbc-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #fff;
    color: #f57c00;
    border: 1px solid #f57c00;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    user-select: none;
}
.wbc-dropdown-toggle:hover {
    background: #fff3e0;
}
.wbc-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 5px;
    background: #fff;
    min-width: 200px;
    border-radius: 6px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
    padding: 6px 0;
    display: flex;
    flex-direction: column;
}
.wbc-compare-wrapper:hover .wbc-dropdown-menu,
.wbc-compare-wrapper.wbc-mobile-open .wbc-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.wbc-dropdown-item {
    background: none !important;
    border: none !important;
    text-align: left !important;
    padding: 10px 16px !important;
    font-size: 14px !important;
    color: #333 !important;
    cursor: pointer !important;
    width: 100% !important;
    transition: 0.2s !important;
    border-radius: 0 !important;
    line-height: 1.3 !important;
    text-transform: none !important;
}
.wbc-dropdown-item:hover {
    background: #f5f5f5 !important;
    color: #f57c00 !important;
}
.wbc-dropdown-item.wbc-remove-btn:hover {
    background: #fff3e0 !important;
    color: #e65100 !important;
}
.wbc-count {
    background: #f57c00;
    color: #fff;
    padding: 2px 7px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    line-height: 1.2;
}

/* Утиліта для правильного приховування з урахуванням !important */
.wbc-hidden {
    display: none !important;
}

/* Модернізація нативної кнопки 'Додати в кошик' */
.woocommerce div.product form.cart .button,
.woocommerce div.product form.cart .single_add_to_cart_button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 10px 24px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    border-radius: 4px !important;
    transition: all 0.2s ease !important;
    text-transform: none !important;
    line-height: 1.2 !important;
    background: #f57c00 !important;
    color: #fff !important;
    border: none !important;
    margin-right: 15px; /* Відступ від кількості */
}
.woocommerce div.product form.cart .button:hover,
.woocommerce div.product form.cart .single_add_to_cart_button:hover {
    background: #e65100 !important;
    box-shadow: 0 4px 12px rgba(245,124,0,0.3);
}

/* Модальне вікно оверлей */
.wbc-modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 999999;
}
.wbc-modal-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(3px);
}
.wbc-modal-content {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    padding: 20px;
    width: 98%;
    max-width: 1400px;
    max-height: 95vh;
    overflow-y: auto;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}
.wbc-modal-close {
    position: absolute;
    top: 10px; right: 15px;
    background: transparent;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #444;
    transition: 0.2s;
}
.wbc-modal-close:hover {
    color: #ff4d4d;
}

/* УЛЬТРА-КОМПАКТНА ТАБЛИЦЯ ПОРІВНЯННЯ */
.wbc-mini-list-table-wrapper {
    overflow-x: auto;
    width: 100%;
    margin-top: 15px;
}
.wbc-mini-list-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px; /* Зменшуємо розмір шрифту */
}
.wbc-mini-list-table th, .wbc-mini-list-table td {
    border: 1px solid #ddd;
    padding: 6px 8px; /* Мінімізуємо інтервали */
    vertical-align: middle;
}
.wbc-mini-list-table th {
    background: #f0f0f0;
    font-weight: 600;
    text-align: center;
    white-space: nowrap; /* Шапка в один рядок */
}

/* Сортування */
.wbc-mini-list-table th.wbc-sortable {
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
}
.wbc-mini-list-table th.wbc-sortable:hover {
    background: #e4e4e4;
}
.wbc-mini-list-table th span {
    font-size: 11px;
    color: #888;
    margin-left: 5px;
}
.wbc-mini-list-table th.asc span, .wbc-mini-list-table th.desc span {
    color: #000;
    font-weight: bold;
}

/* Вузькі колонки для чисел */
.wbc-col-min {
    width: 1%; /* Стиснення по контенту */
}
.wbc-center {
    text-align: center;
    white-space: nowrap;
}

/* Колонка Назви та Міні-кнопок */
.wbc-name-cell-td {
    background: #fdfdfd;
    position: sticky;
    left: 0;
    z-index: 2;
    padding: 6px 8px !important;
}
.wbc-name-cell {
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: left;
    font-weight: 600;
    min-width: 180px;
}
.wbc-product-title {
    line-height: 1.25;
}

/* Мініатюрні іконки замість кнопок */
.wbc-product-actions {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-shrink: 0;
}
.wbc-icon-btn, .wbc-cart-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px; 
    height: 26px;
    border-radius: 4px;
    font-size: 14px !important;
    cursor: pointer;
    text-decoration: none !important;
    border: 1px solid #ddd !important;
    line-height: 1;
    padding: 0;
    transition: all 0.2s ease;
    background: #f9f9f9 !important;
    box-shadow: none !important;
}
.wbc-icon-btn {
    color: #888 !important;
}
.wbc-icon-btn:hover {
    background: #ffebee !important;
    border-color: #ffcdd2 !important;
    color: #d32f2f !important;
}
.wbc-cart-icon-btn {
    color: #666 !important;
}
.wbc-cart-icon-btn:hover {
    background: #e3f2fd !important;
    border-color: #bbdefb !important;
    color: #1976d2 !important;
}

/* Текстові колонки */
.wbc-desc-cell {
    font-size: 12px;
    text-align: left;
    vertical-align: top;
    min-width: 220px;
    line-height: 1.35;
}
.wbc-desc-cell p { margin: 0 0 5px 0; }
.wbc-desc-cell p:last-child { margin: 0; }

/* Нижні кнопки модалки */
.wbc-mini-list-actions {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}
