/**
 * HivePress Knowledge Base Styles
 * Version: 3.0.1
 * Свои стили, независимые от других плагинов
 */

/* ===================================
   Крошки KB
   =================================== */

.hpkb-breadcrumb-container {
    padding: 10px 0;
}

.hpkb-breadcrumb-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.hpkb-breadcrumb-left {
    flex: 1 1 auto;
    min-width: 0;
}

.hpkb-breadcrumb-right {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.hpkb-breadcrumb {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    opacity: .85;
    background: #f2f2f2;
    padding: 10px 15px;
    border-radius: 10px;
}

.hpkb-breadcrumb__link {
    text-decoration: underline;
    color: #3e4655;
    transition: color 0.2s ease;
}

.hpkb-breadcrumb__link:hover {
    text-decoration: none;
    color: #767676;
}

.hpkb-breadcrumb__separator {
    margin: 0 4px;
    color: #999;
}

.hpkb-breadcrumb__current {
    color: #3e4655;
}

.hpkb-breadcrumb__link:first-of-type {
    position: relative;
    padding-left: 20px;
}

.hpkb-breadcrumb__link:first-of-type::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 14px;
    height: 14px;
    transform: translateY(-50%);
    background-repeat: no-repeat;
    background-size: 14px 14px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23222' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='3' width='18' height='18' rx='2' ry='2'/><path d='M9 7h.01M9 12h.01M9 17h.01M15 7h.01M15 12h.01M15 17h.01'/><path d='M3 21h18'/></svg>");
}

/* Счётчик статей */
.hpkb-counter {
    display: inline-block;
    background: #f2f2f2;
    padding: 10px 15px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.6;
    color: #3e4655;
}

/* ===================================
   Корзина WooCommerce
   =================================== */

.hpkb-cart {
    display: inline-flex;
    align-items: center;
    background: #f2f2f2;
    padding: 10px 15px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.hpkb-cart:hover {
    background: #e8e8e8;
}

.hpkb-cart__link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #3e4655;
    font-size: 14px;
    line-height: 1.6;
}

.hpkb-cart__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hpkb-cart__icon svg {
    display: block;
    color: #3e4655;
}

.hpkb-cart__badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #e74c3c;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    padding: 3px 5px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.hpkb-cart__total {
    font-size: 14px;
    color: #3e4655;
    white-space: nowrap;
}

.hpkb-cart--empty {
    opacity: 0.7;
}

.hpkb-cart--empty:hover {
    opacity: 1;
}

/* ===================================
   Теги категорий — по центру
   =================================== */

.hpkb-category-tags {
    text-align: center !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    margin-top: 12px;
}

/* ===================================
   Адаптивность
   =================================== */

@media (max-width: 768px) {
    .hpkb-breadcrumb-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .hpkb-breadcrumb-left,
    .hpkb-breadcrumb-right {
        flex: 1 1 auto;
    }

    .hpkb-counter,
    .hpkb-cart {
        width: 100%;
        justify-content: center;
    }

    .hpkb-breadcrumb {
        font-size: 13px;
        padding: 8px 12px;
    }
}

@media (max-width: 480px) {
    .hpkb-breadcrumb {
        font-size: 12px;
    }
}
