/* ═══════════════════════════════════════════
   Kokken Category Navigation
   Minimal, premium e-shop sidebar navigation
   ═══════════════════════════════════════════ */

/* ── Reset & Base ── */
.kk-nav {
    font-family: inherit;
    margin: 0 0 32px;
    padding: 0;
}

.kk-nav *,
.kk-nav *::before,
.kk-nav *::after {
    box-sizing: border-box;
}

/* ── Header (shop page) ── */
.kk-nav__header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid #1a1a1a;
}

.kk-nav__title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #1a1a1a;
}

/* ── Breadcrumb trail ── */
.kk-nav__trail {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    margin-bottom: 12px;
    font-size: 11px;
}

.kk-nav__trail-link {
    color: #999;
    text-decoration: none;
    transition: color .2s;
}

.kk-nav__trail-link:hover {
    color: #1a1a1a;
}

.kk-nav__trail-sep {
    color: #ccc;
    font-size: 10px;
}

/* ── Back button — pill με κύκλο-βελάκι ── */
.kk-nav__back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 100px;
    padding: 7px 18px 7px 7px;
    margin-bottom: 20px;
    text-decoration: none;
    transition: background .15s, border-color .15s;
}

.kk-nav__back:hover {
    background: #ebebeb;
    border-color: #ccc;
}

/* Κύκλος με βελάκι */
.kk-nav__back::before {
    content: '';
    display: inline-flex;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #1a1a1a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 2L3.5 5l3 3'/%3E%3C/svg%3E") center / 10px no-repeat;
    flex-shrink: 0;
}

/* Label stack — το PHP χρειάζεται να βγάζει δύο spans */
.kk-nav__back-stack {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.kk-nav__back-hint {
    font-size: 10px;
    color: #999;
    letter-spacing: .05em;
    text-transform: uppercase;
    line-height: 1;
    font-weight: 600;
}

.kk-nav__back-name {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.2;
}

/* ── Current category heading ── */
.kk-nav__current-heading {
    margin: 0 0 16px;
}

.kk-nav__current-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    text-decoration: none;
    line-height: 1.3;
    display: block;
}

.kk-nav__current-title:hover {
    color: #444;
}

/* ── List ── */
.kk-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* ── Items ── */
.kk-nav__item {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #f0f0f0;
}

.kk-nav__item:last-child {
    border-bottom: none;
}

/* ── Links ── */
.kk-nav__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    transition: color .2s, padding-left .15s;
    line-height: 1.4;
}

.kk-nav__link:hover {
    color: #000;
    padding-left: 4px;
}

.kk-nav__link--current {
    color: #000;
    font-weight: 700;
}

/* ── Current indicator bar ── */
.kk-nav__item--current > .kk-nav__link::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 14px;
    background: #1a1a1a;
    border-radius: 2px;
    margin-right: 10px;
    flex-shrink: 0;
}

/* ── Ancestor ── */
.kk-nav__item--ancestor > .kk-nav__link {
    color: #000;
}

/* ── Count badge ── */
.kk-nav__count {
    font-size: 11px;
    font-weight: 500;
    color: #aaa;
    background: #f5f5f5;
    border-radius: 100px;
    padding: 2px 8px;
    min-width: 22px;
    text-align: center;
    flex-shrink: 0;
    margin-left: 8px;
}

/* ── Children list ── */
.kk-nav__children {
    list-style: none;
    margin: 0;
    padding: 0 0 6px 14px;
    border-left: 2px solid #f0f0f0;
    margin-left: 6px;
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
}

.kk-nav__children--open {
    max-height: 2000px;
}

.kk-nav__children .kk-nav__item {
    border-bottom: 1px solid #f7f7f7;
}

.kk-nav__children .kk-nav__link {
    font-size: 12px;
    font-weight: 400;
    color: #555;
    padding: 7px 0;
}

.kk-nav__children .kk-nav__link:hover {
    color: #000;
}

/* ── Siblings label ── */
.kk-nav__siblings-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #aaa;
    margin: 20px 0 8px;
}

/* ── Depth variations ── */
.kk-nav__item--depth-1 > .kk-nav__link {
    font-size: 12px;
    padding: 7px 0;
}

.kk-nav__item--depth-2 > .kk-nav__link {
    font-size: 11px;
    color: #777;
}

/* ── Shop page variation ── */
.kk-nav--shop .kk-nav__children {
    max-height: 0;
    overflow: hidden;
}

.kk-nav--shop .kk-nav__children--open {
    max-height: 2000px;
}

/* ── Mobile ── */
@media ( max-width: 768px ) {
    .kk-nav { margin-bottom: 20px; }
    .kk-nav__link { padding: 12px 0; font-size: 14px; }
    .kk-nav__children .kk-nav__link { font-size: 13px; padding: 10px 0; }
    .kk-nav__back { padding: 8px 20px 8px 8px; }
}