/* ==========================================================================
   Navigation — Header, search, mega menu, mobile drawer, footer (Dark Industrial Theme)
   ========================================================================== */

/* ---- Header ---- */
.nc-header {
    position: sticky;
    top: 0;
    z-index: var(--nc-z-sticky, 200);
    background: rgba(13, 13, 13, 0.95);
    border-bottom: 1px solid #3a3a3a;
    transition: box-shadow 0.25s ease, background 0.25s ease;
    backdrop-filter: blur(10px);
}

.nc-header--scrolled {
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.1);
}

.nc-header--transparent {
    position: absolute;
    width: 100%;
    background: transparent;
    border-bottom: none;
}

.nc-header--transparent.nc-header--scrolled {
    position: sticky;
    background: rgba(13, 13, 13, 0.95);
    border-bottom: 1px solid #3a3a3a;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.1);
}

.nc-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 1.5rem;
}

.nc-header__brand {
    flex-shrink: 0;
}

.nc-header__brand .custom-logo-link img {
    max-height: 50px;
    width: auto;
}

.nc-header__site-name {
    font-family: var(--nc-font-heading, system-ui);
    font-size: var(--nc-text-xl, 1.25rem);
    font-weight: var(--nc-weight-bold, 700);
    color: #e8e8e8;
    text-decoration: none;
    letter-spacing: -0.025em;
}

.nc-header__site-name:hover {
    color: #3DA8CC;
    text-shadow: 0 0 10px rgba(61, 168, 204, 0.3);
}

.nc-header__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

/* ---- Search toggle ---- */
.nc-header__search-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    color: #e8e8e8;
    border-radius: var(--nc-radius-md, 0.5rem);
    transition: color 0.15s ease, background 0.15s ease;
}

.nc-header__search-toggle:hover {
    color: #3DA8CC;
    background: rgba(61, 168, 204, 0.1);
}

/* ---- Search bar (slide down) ---- */
.nc-header__search {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: rgba(42, 42, 42, 0.8);
    border-top: 1px solid #3a3a3a;
}

.nc-header__search[aria-hidden="false"] {
    max-height: 80px;
    padding: 0.75rem 0;
}

.nc-search-form {
    display: flex;
    gap: 0.5rem;
    max-width: 600px;
    margin: 0 auto;
}

.nc-search-form__input {
    flex: 1;
    padding: 0.625rem 1rem;
    border: 1px solid #3a3a3a;
    border-radius: var(--nc-radius-md, 0.5rem);
    font-size: 0.875rem;
    background: #1e1e1e;
    color: #e8e8e8;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.nc-search-form__input:focus {
    border-color: #3DA8CC;
    box-shadow: 0 0 12px rgba(61, 168, 204, 0.3);
}

.nc-search-form__input::placeholder {
    color: #8a8a8a;
}

.nc-search-form__submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    background: linear-gradient(135deg, #3DA8CC 0%, #00D4FF 100%);
    color: #0d0d0d;
    border: none;
    border-radius: var(--nc-radius-md, 0.5rem);
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.2);
}

.nc-search-form__submit:hover {
    background: linear-gradient(135deg, #00D4FF 0%, #3DA8CC 100%);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.4);
}

/* ---- Cart icon ---- */
.nc-header__cart {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #e8e8e8;
    border-radius: var(--nc-radius-md, 0.5rem);
    transition: color 0.15s ease, background 0.15s ease;
}

.nc-header__cart:hover {
    color: #3DA8CC;
    background: rgba(61, 168, 204, 0.1);
}

.nc-header__cart-count {
    position: absolute;
    top: 2px;
    right: 0;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    background: linear-gradient(135deg, #3DA8CC 0%, #00D4FF 100%);
    color: #0d0d0d;
    border-radius: 9999px;
    padding: 0 4px;
    line-height: 1;
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.4);
}

/* ---- Hamburger toggle ---- */
.nc-header__toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nc-hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 24px;
}

.nc-hamburger span {
    display: block;
    height: 2px;
    background: #e8e8e8;
    border-radius: 1px;
    transition: all 0.25s ease;
    transform-origin: center;
}

.nc-header__toggle:hover .nc-hamburger span {
    background: #3DA8CC;
}

.nc-header__toggle[aria-expanded="true"] .nc-hamburger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nc-header__toggle[aria-expanded="true"] .nc-hamburger span:nth-child(2) {
    opacity: 0;
}

.nc-header__toggle[aria-expanded="true"] .nc-hamburger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ---- Desktop Navigation ---- */
.nc-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nc-nav__list {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nc-nav__item {
    position: relative;
}

.nc-nav__link {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0.875rem;
    font-size: var(--nc-text-sm, 0.875rem);
    font-weight: var(--nc-weight-medium, 500);
    color: #e8e8e8;
    text-decoration: none;
    border-radius: var(--nc-radius-md, 0.5rem);
    transition: color 0.15s ease, background 0.15s ease;
    white-space: nowrap;
}

.nc-nav__link:hover,
.nc-nav__item--has-children:hover > .nc-nav__link {
    color: #3DA8CC;
    background: rgba(61, 168, 204, 0.1);
}

.nc-nav__arrow {
    transition: transform 0.15s ease;
}

.nc-nav__item--has-children:hover > .nc-nav__link .nc-nav__arrow {
    transform: rotate(180deg);
}

/* ---- Dropdown ---- */
.nc-nav__sub {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: rgba(30, 30, 30, 0.95);
    border: 1px solid #3a3a3a;
    border-radius: var(--nc-radius-lg, 0.75rem);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(61, 168, 204, 0.1);
    padding: 0.5rem;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.25s ease;
    z-index: var(--nc-z-dropdown, 100);
    backdrop-filter: blur(10px);
}

.nc-nav__item--has-children:hover > .nc-nav__sub,
.nc-nav__item--mega:hover > .nc-nav__sub {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nc-nav__sub .nc-nav__link {
    padding: 0.5rem 0.75rem;
    font-size: var(--nc-text-sm, 0.875rem);
    border-radius: var(--nc-radius-md, 0.5rem);
    color: #e8e8e8;
}

.nc-nav__sub .nc-nav__link:hover {
    background: rgba(61, 168, 204, 0.15);
    color: #3DA8CC;
}

/* ---- Mega Menu ---- */
.nc-nav__mega {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    min-width: 600px;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    padding: 1.5rem;
    gap: 1.5rem;
}

.nc-nav__item--mega:hover > .nc-nav__mega {
    transform: translateX(-50%) translateY(0);
}

.nc-nav__mega-col > .nc-nav__link {
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #00D4FF;
    pointer-events: none;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #3a3a3a;
    margin-bottom: 0.5rem;
}

/* ---- Mobile Drawer ---- */
.nc-drawer {
    position: fixed;
    inset: 0;
    z-index: var(--nc-z-drawer, 300);
    pointer-events: none;
}

.nc-drawer[aria-hidden="false"] {
    pointer-events: auto;
}

.nc-drawer__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.nc-drawer[aria-hidden="false"] .nc-drawer__overlay {
    opacity: 1;
}

.nc-drawer__panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 320px;
    max-width: 85vw;
    height: 100%;
    background: #0d0d0d;
    border-left: 1px solid #3a3a3a;
    transform: translateX(100%);
    transition: transform 0.4s ease;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.nc-drawer[aria-hidden="false"] .nc-drawer__panel {
    transform: translateX(0);
}

.nc-drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #3a3a3a;
    flex-shrink: 0;
}

.nc-drawer__title {
    font-family: var(--nc-font-heading, system-ui);
    font-weight: 700;
    font-size: var(--nc-text-lg, 1.125rem);
    color: #e8e8e8;
}

.nc-drawer__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: var(--nc-radius-md, 0.5rem);
    transition: background 0.15s ease;
    color: #e8e8e8;
}

.nc-drawer__close:hover {
    background: rgba(61, 168, 204, 0.1);
    color: #3DA8CC;
}

.nc-drawer__nav {
    padding: 1rem;
    flex: 1;
}

.nc-drawer__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nc-drawer__list li {
    border-bottom: 1px solid #2a2a2a;
}

.nc-drawer__list a {
    display: block;
    padding: 0.75rem 1rem;
    color: #e8e8e8;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s ease;
}

.nc-drawer__list a:hover {
    background: rgba(61, 168, 204, 0.1);
    color: #3DA8CC;
    padding-left: 1.25rem;
}

.nc-drawer__list .sub-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nc-drawer__list .sub-menu a {
    padding-left: 2rem;
    font-size: 0.875rem;
    font-weight: 400;
    color: #b0b0b0;
}

.nc-drawer__list .sub-menu a:hover {
    color: #3DA8CC;
}

.nc-drawer__list .sub-menu .sub-menu a {
    padding-left: 3rem;
}

/* ---- WC Archive Toolbar ---- */
.woocommerce-notices-wrapper:empty { display: none; }

.nc-wc-archive__header {
    margin-bottom: 1.5rem;
}

.nc-wc-archive__content > .woocommerce-result-count,
.nc-wc-archive__content > .woocommerce-ordering,
.nc-wc-archive__content > .nc-wc-view-toggle {
    /* Collected into a virtual row by the toolbar wrapper below */
}

/* Toolbar: result count + ordering + view toggle in one row */
.nc-wc-toolbar {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.nc-wc-toolbar .woocommerce-result-count {
    margin: 0;
    font-size: 0.875rem;
    color: #8a8a8a;
}

.nc-wc-toolbar .woocommerce-ordering {
    margin: 0;
}

.nc-wc-toolbar .nc-wc-view-toggle {
    margin-left: auto;
}

/* ---- Footer ---- */
.nc-footer {
    background: #0d0d0d;
    color: #b0b0b0;
    border-top: 1px solid #3a3a3a;
}

.nc-footer a {
    color: #b0b0b0;
    transition: color 0.15s ease;
}

.nc-footer a:hover {
    color: #3DA8CC;
    text-shadow: 0 0 8px rgba(61, 168, 204, 0.3);
}

.nc-footer__main {
    padding: 3.5rem 0 2.5rem;
}

.nc-footer__grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(auto-fit, minmax(160px, 1fr));
    gap: 2.5rem;
}

.nc-footer__col--brand {
    max-width: 320px;
}

.nc-footer__logo {
    font-family: var(--nc-font-heading, system-ui);
    font-size: 1.25rem;
    font-weight: 700;
    color: #e8e8e8;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 0.75rem;
}

.nc-footer__logo:hover {
    color: #3DA8CC;
}

.nc-footer__col--brand .custom-logo-link img {
    max-height: 40px;
    width: auto;
    margin-bottom: 0.75rem;
}

.nc-footer__tagline {
    font-size: 0.875rem;
    line-height: 1.6;
    opacity: 0.8;
    margin: 0;
    color: #8a8a8a;
}

.nc-footer__heading {
    color: #e8e8e8;
    font-family: var(--nc-font-heading, system-ui);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.nc-footer__links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nc-footer__links li {
    margin-bottom: 0.5rem;
}

.nc-footer__links a {
    font-size: 0.875rem;
    text-decoration: none;
}

/* Footer widget overrides */
.nc-footer .nc-widget__title {
    color: #e8e8e8;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom-color: rgba(61, 168, 204, 0.2);
}

.nc-footer__bottom {
    border-top: 1px solid #2a2a2a;
    padding: 1.25rem 0;
}

.nc-footer__bottom-inner {
    display: flex;
    align-items: center;
    justify-content: center;
}

.nc-footer__copy {
    font-size: 0.8125rem;
    margin: 0;
    opacity: 0.6;
    color: #8a8a8a;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .nc-nav {
        display: none;
    }

    .nc-header__toggle {
        display: flex;
    }

    .nc-header__inner {
        height: 60px;
    }
}

@media (max-width: 768px) {
    .nc-footer__grid {
        grid-template-columns: 1fr;
    }

    .nc-footer__col--brand {
        max-width: none;
    }

    .nc-wc-toolbar {
        gap: 0.75rem;
    }

    .nc-footer__bottom-inner {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}
