/*
 * Νέο header (header.php) — Bootstrap 5, κίτρινα του site (όχι λευκό όπως στο mockup)
 * Όλα κάτω από .nsh / .nsh-offcanvas
 */

.nsh,
.nsh-offcanvas {
    --nsh-yellow: #feca0b;
    --nsh-yellow-soft: #fff6d6;
    --nsh-yellow-line: #e8b400;
    --nsh-dark: #141819;
    --nsh-text: #1d1d1b;
    --nsh-muted: #4b4f52;
    font-size: 15px;
    line-height: 1.4;
    color: var(--nsh-text);
}

/* Το style.less κρύβει το <header> στα κινητά (@xs display:none) */
header.nsh {
    display: block;
    position: relative;
    z-index: 1020;
    width: 100%;
    margin: 0;
    padding: 0;
    background: var(--nsh-yellow);
}

.nsh a,
.nsh-offcanvas a {
    color: inherit;
    text-decoration: none;
}

/* το style.css έχει a:hover = κίτρινο του site (@link-color-hover) → πάνω στην κίτρινη μπάρα χανόταν το link */
.nsh a:hover,
.nsh a:focus,
.nsh-offcanvas a:hover,
.nsh-offcanvas a:focus {
    color: var(--nsh-dark);
}

.nsh ul,
.nsh-offcanvas ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nsh :is(a, button, input):focus-visible,
.nsh-offcanvas :is(a, button, input):focus-visible {
    outline: 3px solid var(--nsh-dark);
    outline-offset: 2px;
}

.nsh-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    gap: 24px;
}

/* ---------- Πάνω γραμμή: λογότυπο, αναζήτηση, links, καλάθι ---------- */
.nsh-top {
    border-bottom: 3px solid var(--nsh-yellow-line);
}

.nsh-top > .nsh-container {
    min-height: 84px;
}

.nsh-logo {
    flex: 0 0 auto;
    display: block;
}

.nsh-logo img {
    display: block;
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.nsh-search {
    flex: 1 1 auto;
    max-width: 380px;
    display: flex;
    align-items: center;
    height: 46px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .12);
    border-radius: 999px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .06);
    overflow: hidden;
}

.nsh-search input {
    flex: 1;
    min-width: 0;
    height: 100%;
    padding: 0 8px 0 22px;
    border: 0;
    background: transparent;
    font-size: 15px;
    color: var(--nsh-text);
}

.nsh-search input:focus {
    outline: none;
}

.nsh-search:focus-within {
    box-shadow: 0 0 0 3px rgba(20, 24, 25, .25);
}

.nsh-search input::placeholder {
    color: #7a7f83;
}

.nsh-search button {
    flex: 0 0 auto;
    width: 52px;
    height: 100%;
    border: 0;
    background: transparent;
    font-size: 18px;
    color: var(--nsh-text);
}

.nsh-links ul {
    display: flex;
    align-items: center;
    gap: 22px;
}

.nsh-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    padding: 4px 0;
}

.nsh-link i {
    font-size: 18px;
}

.nsh-link:hover,
.nsh-link[aria-current="page"] {
    border-bottom-color: var(--nsh-dark);
}

.nsh-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.nsh-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    font-size: 24px;
    color: var(--nsh-text);
}

.nsh-icon:hover {
    background: rgba(255, 255, 255, .35);
}

/* Καλάθι */
.nsh-cart {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 4px 6px;
    border-radius: 12px;
}

.nsh-cart:hover {
    background: rgba(255, 255, 255, .35);
}

.nsh-cart-icon {
    position: relative;
    font-size: 30px;
    line-height: 1;
}

.nsh-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--nsh-dark);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
}

.nsh-cart-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    font-size: 13px;
}

.nsh-cart-text strong {
    font-size: 15px;
}

/* ---------- Μενού κατηγοριών (desktop) ---------- */
.nsh-bar {
    background: var(--nsh-yellow-soft);
    border-bottom: 1px solid rgba(0, 0, 0, .06);
}

.nsh-bar > .nsh-container {
    min-height: 52px;
}

/* μία γραμμή: Noto Sans condensed (font-stretch, βλ. Google Fonts wdth στο functions.php) */
.nsh-menu {
    display: flex;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 0 22px;
    flex: 1 1 auto;
}

.nsh-bar .nsh-menu-link {
    font-stretch: 75%;
    font-size: 15px;
    letter-spacing: .01em;
}

@media (max-width: 1199.98px) {
    .nsh-menu {
        gap: 0 14px;
    }

    .nsh-bar .nsh-menu-link {
        font-size: 14px;
    }
}

.nsh-menu-item {
    position: relative;
}

.nsh-menu-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 52px;
    font-weight: 600;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
}

/* βελάκι μόνο όπου υπάρχει υπομενού */
.nsh-menu-item:has(> .nsh-sub) > .nsh-menu-link::after {
    content: "\f107"; /* FontAwesome 4 angle-down */
    font-family: FontAwesome;
    font-weight: normal;
    font-size: 14px;
}

.nsh-menu-item:hover > .nsh-menu-link,
.nsh-menu-item:focus-within > .nsh-menu-link,
.nsh-menu-link.active {
    border-bottom-color: var(--nsh-yellow-line);
}

/* υπομενού: ανοίγει με hover και με πληκτρολόγιο (focus-within) */
.nsh-bar .nsh-sub {
    display: none;
    position: absolute;
    top: 100%;
    left: -16px;
    z-index: 1030;
    min-width: 240px;
    padding: 12px;
    background: #fff;
    border-radius: 0 0 12px 12px;
    border-top: 3px solid var(--nsh-yellow);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .14);
    grid-template-rows: repeat(10, auto);
    grid-auto-flow: column;
    grid-auto-columns: minmax(200px, auto);
    gap: 0 12px;
}

.nsh-bar .nsh-menu-item:hover > .nsh-sub,
.nsh-bar .nsh-menu-item:focus-within > .nsh-sub {
    display: grid;
}

.nsh-sub a {
    display: block;
    padding: 7px 10px;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
}

.nsh-sub a:hover,
.nsh-sub a.active {
    background: var(--nsh-yellow-soft);
}

/* ---------- Mobile ---------- */
@media (max-width: 991.98px) {
    .nsh-top > .nsh-container {
        min-height: 64px;
        gap: 8px;
    }

    .nsh-logo img {
        width: 48px;
        height: 48px;
    }

    .nsh-cart-text {
        display: none;
    }

    .nsh-cart-icon {
        font-size: 26px;
    }

    #nshSearchMobile .nsh-container {
        padding-bottom: 12px;
    }

    #nshSearchMobile .nsh-search {
        max-width: none;
    }
}

/* ---------- Mobile μενού (offcanvas) ---------- */
.nsh-offcanvas {
    --bs-offcanvas-width: min(360px, 88vw);
}

.nsh-offcanvas .offcanvas-header {
    background: var(--nsh-yellow);
    border-bottom: 3px solid var(--nsh-yellow-line);
}

.nsh-offcanvas .offcanvas-body {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.nsh-m-links li + li {
    border-top: 1px solid #eee;
}

.nsh-m-links .nsh-link {
    padding: 12px 4px;
    font-size: 15px;
}

.nsh-m-menu > li {
    border-bottom: 1px solid #eee;
}

.nsh-m-menu .nsh-menu-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.nsh-m-menu .nsh-menu-link {
    flex: 1;
    height: auto;
    padding: 12px 4px;
    border: 0;
}

.nsh-m-menu .nsh-menu-link::after {
    content: none !important;
}

.nsh-m-toggle {
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    font-size: 18px;
    transition: transform .15s;
}

.nsh-m-toggle[aria-expanded="true"] {
    transform: rotate(180deg);
}

.nsh-m-menu .nsh-sub {
    flex: 0 0 100%;
    padding: 0 0 8px 12px;
}

.nsh-m-menu .nsh-sub[hidden] {
    display: none;
}

.nsh-m-lang {
    display: flex;
    gap: 14px;
}

.nsh-m-lang a {
    font-weight: 600;
}

.nsh-m-lang .active a,
.nsh-m-lang a.active {
    text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
    .nsh-m-toggle {
        transition: none;
    }
}

/* ---------- Breadcrumb στην κορυφή περιεχομένου (λευκή περιοχή κατηγοριών, page-collections) — όπως στη σελίδα προϊόντος ---------- */
.site-bread {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
    font-size: 13px;
    color: #4b4f52;
    text-align: left;
}

.site-bread li {
    display: inline-flex;
    align-items: center;
}

.site-bread li + li::before {
    content: "›";
    margin: 0 8px;
}

.site-bread a {
    color: #4b4f52;
    text-decoration: none;
}

.site-bread a:hover,
.site-bread a:focus {
    color: #141819;
    text-decoration: underline;
}

.site-bread .ns-bread-home i {
    font-size: 17px;
    color: #141819;
}
