/* shogime-nav.css - Editorial header / navbar */

:root {
    --sh-green:      #000000;
    --sh-green-deep: #000000;
    --sh-yellow:     #EBB29F;
    --sh-cream:      #fdf0eb;
    --sh-paper:      #fff5f0;
}

/* ===== TICKER ===== */
.sh-ticker {
    background: var(--sh-green);
    color: #ffffff;
    padding: 10px 0;
    overflow: hidden;
    border-bottom: 1px solid var(--sh-green-deep);
    position: relative;
    z-index: 101;
}
.sh-ticker-track {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 56px;
    white-space: nowrap;
    animation: sh-scroll 40s linear infinite;
    will-change: transform;
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
}
.sh-ticker-item {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    align-items: center;
    gap: 56px;
    flex-shrink: 0;
}
.sh-ticker-item::after {
    content: '\2736';
    opacity: 0.55;
}
@keyframes sh-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ===== HEADER SHELL ===== */
.sh-header {
    background: transparent;
    border-bottom: 1px solid transparent;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background 0.35s ease, border-color 0.35s ease,
                box-shadow 0.35s ease, -webkit-backdrop-filter 0.35s ease,
                backdrop-filter 0.35s ease;
}
.sh-header.scrolled {
    background: rgba(255, 255, 255, 0.88);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
            backdrop-filter: blur(16px) saturate(1.4);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.08);
}
.sh-header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 48px;
    height: 70px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    gap: 36px;
}

/* ===== LOGO ===== */
.sh-logo {
    text-decoration: none !important;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -ms-flex-negative: 0;
        flex-shrink: 0;
    transition: opacity 0.25s;
}
.sh-logo:hover { opacity: 0.8; }
.sh-logo-img {
    height: 44px;
    width: auto;
    display: block;
    object-fit: contain;
}

/* ===== NAV ===== */
.sh-nav {
    -webkit-box-flex: 1;
        -ms-flex: 1;
            flex: 1;
}
.sh-nav-list {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    gap: 0;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.sh-nav-item {
    position: relative;
    list-style: none;
}
.sh-nav-link {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #000000 !important;
    text-decoration: none !important;
    padding: 8px 14px;
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    gap: 4px;
    position: relative;
    transition: opacity 0.25s;
    white-space: nowrap;
}
.sh-nav-link::after {
    content: '';
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 2px;
    height: 1px;
    background: #000000;
    transform: scaleX(0);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.sh-nav-link:hover { opacity: 0.6; }
.sh-nav-link:hover::after,
.sh-nav-link.active::after { transform: scaleX(1); }
.sh-nav-link.active { opacity: 1; }

/* ===== DROPDOWN ===== */
.sh-has-dropdown { position: relative; }
.sh-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.14);
    min-width: 200px;
    list-style: none !important;
    padding: 8px 0 !important;
    margin: 0 !important;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.2s, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    z-index: 200;
}
.sh-dropdown--right { left: auto; right: 0; }
.sh-has-dropdown:hover .sh-dropdown,
.sh-has-dropdown:focus-within .sh-dropdown {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}
.sh-dropdown-item {
    display: block;
    padding: 10px 20px;
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #000000 !important;
    text-decoration: none !important;
    transition: background 0.2s;
    list-style: none;
}
.sh-dropdown-item:hover { background: rgba(0, 0, 0, 0.05); }
.sh-dropdown-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
    margin: 4px 0;
    list-style: none;
}

/* ===== ACTIONS ===== */
.sh-header-actions {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    gap: 2px;
    -ms-flex-negative: 0;
        flex-shrink: 0;
}
.sh-action-btn-wrap { position: relative; }
.sh-action-btn {
    background: none !important;
    border: none !important;
    cursor: pointer;
    padding: 9px;
    color: #000000;
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    border-radius: 8px;
    transition: background 0.2s;
    line-height: 1;
}
.sh-action-btn:hover { background: rgba(0, 0, 0, 0.07) !important; }
.sh-action-btn svg { display: block; }

/* Basket */
.sh-basket-btn {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    gap: 8px;
    padding: 7px 10px;
    color: #000000 !important;
    text-decoration: none !important;
    border-radius: 8px;
    transition: background 0.2s;
    position: relative;
}
.sh-basket-btn:hover { background: rgba(0, 0, 0, 0.07); }
.sh-basket-icon-wrap {
    position: relative;
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
}
.sh-basket-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background: #EBB29F;
    color: #000000;
    font-family: 'DM Mono', monospace;
    font-size: 9px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    line-height: 1;
}
.sh-basket-total {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.04em;
    color: #000000;
}

/* Shop Now CTA pill */
.sh-nav-cta {
    background: #000000;
    color: #faf6ec !important;
    padding: 9px 20px;
    border-radius: 100px;
    text-decoration: none !important;
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    transition: background 0.25s, color 0.25s;
    margin-left: 8px;
    white-space: nowrap;
    display: inline-block;
}
.sh-nav-cta:hover {
    background: #333333;
    color: #ffffff !important;
}

/* ===== MOBILE TOGGLE ===== */
.sh-mobile-toggle {
    display: none;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
}
.sh-mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #000000;
    border-radius: 2px;
    transition: all 0.3s;
}
.sh-mobile-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.sh-mobile-toggle.active span:nth-child(2) { opacity: 0; }
.sh-mobile-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
    .sh-nav-cta { display: none; }
    .sh-header-inner { gap: 20px; }
}

@media (max-width: 820px) {
    /* Tighten header to keep all items within viewport */
    .sh-header-inner { padding: 0 16px; height: 60px; gap: 6px; }
    .sh-logo-img { height: 36px; }
    .sh-mobile-toggle { display: -webkit-box; display: -ms-flexbox; display: flex; flex-shrink: 0; }
    .sh-nav {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: #ffffff;
        border-bottom: 1px solid rgba(0, 0, 0, 0.12);
        padding: 12px 0 20px;
        z-index: 99;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    }
    .sh-nav.active { display: block; }
    .sh-nav-list {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
            -ms-flex-direction: column;
                flex-direction: column;
        gap: 0;
        padding: 0 24px !important;
        -webkit-box-align: start;
            -ms-flex-align: start;
                align-items: flex-start;
    }
    .sh-nav-link { padding: 14px 0; font-size: 12px; width: 100%; }
    .sh-nav-link::after { left: 0; right: 0; }
    .sh-dropdown {
        position: static;
        opacity: 1;
        pointer-events: all;
        transform: none;
        box-shadow: none;
        border: none;
        background: transparent;
        padding: 0 0 4px 16px !important;
    }
    .sh-basket-total { display: none; }
    .sh-ticker-track { font-size: 10px; }
    .sh-action-btn { padding: 12px; }
    .sh-basket-btn { padding: 10px 12px; }
}

/* Mobile-only account links in hamburger — hidden on desktop */
.sh-nav-item--mobile-account { display: none; }
.sh-nav-item--mobile-account:first-of-type { border-top: 1px solid rgba(0,0,0,0.08); margin-top: 8px; padding-top: 4px; }

/* On small phones hide search + account icons — accessible via hamburger menu */
@media (max-width: 480px) {
    .sh-header-inner { padding: 0 14px; gap: 4px; }
    .sh-action-btn { display: none !important; }
    .sh-action-btn-wrap { display: none !important; }
    .sh-nav-item--mobile-account { display: block; }
}

/* ============================================================
   THEME-ORIGINAL — restores green/yellow palette for catalogue,
   product detail, and about pages (applied via body.theme-original).
============================================================ */
body.theme-original {
    --sh-green:      #183a25;
    --sh-green-deep: #0f2818;
    --sh-yellow:     #f9ce1b;
    --sh-cream:      #f4ead5;
    --sh-paper:      #faf6ec;
}
body.theme-original .sh-nav-link { color: #183a25 !important; }
body.theme-original .sh-nav-link::after { background: #183a25; }
body.theme-original .sh-basket-badge { background: #f9ce1b; color: #183a25; }
body.theme-original .sh-basket-total { color: #183a25; }
body.theme-original .sh-nav-cta { background: #183a25; }
body.theme-original .sh-nav-cta:hover { background: #2d5a3d; }
body.theme-original .sh-mobile-toggle span { background: #183a25; }
body.theme-original .sh-header {
    background: #ffffff;
    border-bottom-color: rgba(24, 58, 37, 0.08);
}
body.theme-original .sh-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    border-bottom-color: rgba(24, 58, 37, 0.1);
    box-shadow: 0 2px 24px rgba(24, 58, 37, 0.08);
}
body.theme-original .sh-dropdown { border-color: rgba(24, 58, 37, 0.14); box-shadow: 0 8px 32px rgba(24, 58, 37, 0.12); }
body.theme-original .sh-dropdown-item:hover { background: rgba(24, 58, 37, 0.05); }
body.theme-original .sh-action-btn:hover { background: rgba(24, 58, 37, 0.07) !important; }
body.theme-original .sh-basket-btn:hover { background: rgba(24, 58, 37, 0.07); }
body.theme-original .sh-nav { border-bottom-color: rgba(24, 58, 37, 0.12); box-shadow: 0 8px 24px rgba(24, 58, 37, 0.08); }
