/* ======================================
   STC NAVIGATION ROOT
====================================== */
#stc_nav {
    width: 100%;
    font-family: "Open Sans", sans-serif;
    display: flex;
    justify-content: center;
    /* center nav horizontally */
}

/* ======================================
   NAV BAR
====================================== */
#stc_nav .stc-nav {
    /* background: var(--stc-surface-primary); */
    /* border-top: 1px solid var(--stc-border-soft); */
    width: 100%;
}

#stc_nav .stc-nav.stc-fixed-nav {
    position: fixed;
    left: 0;
    z-index: 9998;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* ======================================
   NAV INNER
====================================== */
#stc_nav .stc-nav-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 0 20px;
    position: relative;
    max-width: 1280px;
    /* constrain nav content */
    margin: 0 auto;
    /* center inside full-width navbar */
    width: 100%;
}

/* ======================================
   MENU ITEM
====================================== */
#stc_nav .stc-item {
    position: relative;
}

/* ======================================
   MAIN MENU LINK
====================================== */
#stc_nav .stc-main {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 14px 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--stc-text-primary) !important;
    /* black text */
    text-decoration: none !important;
    transition: var(--stc-transition-normal);
}

/* ======================================
   HOVER COLOR
====================================== */
#stc_nav .stc-main:hover {
    color: var(--stc-action-primary-hover) !important;
    /* bright hover color */
}

/* ======================================
   ACTIVE MENU
====================================== */
#stc_nav .stc-main.active {
    color: var(--stc-action-primary) !important;
}

/* ======================================
   REMOVE PRESTASHOP BLUE LINKS
====================================== */
#stc_nav a,
#stc_nav a:visited,
#stc_nav a:focus,
#stc_nav a:active {
    color: var(--stc-text-primary) !important;
    /* black text */
    text-decoration: none !important;
}

/* ======================================
   DROPDOWN MENU
====================================== */
#stc_nav .stc-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--stc-surface-secondary);
    min-width: 200px;
    display: none;
    flex-direction: column;
    padding: 10px 0;
    border-radius: var(--stc-radius-sm);
    box-shadow: var(--stc-shadow-lg);
    z-index: 999;
}

/* show dropdown on hover */
#stc_nav .stc-item:hover .stc-dropdown {
    display: flex;
}

/* dropdown links */
#stc_nav .stc-dropdown a {
    padding: 8px 16px;
    font-size: 13px;
    color: var(--stc-text-primary) !important;
    /* black text */
    transition: var(--stc-transition-fast);
}

/* dropdown hover */
#stc_nav .stc-dropdown a:hover {
    background: var(--stc-action-primary);
    color: var(--stc-text-inverse) !important;
    /* white text on hover */
}

/* ======================================
   HAMBURGER BUTTON BASE (Global)
====================================== */
.stc-hamburger {
    width: 30px;
    height: 22px;
    position: relative;
    border: none;
    background: transparent !important;
    cursor: pointer;
    display: none;
    /* Hidden by default */
    margin-left: 15px;
    padding: 0;
}

/* LINES */
.stc-hamburger span {
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--stc-text-primary);
    left: 0;
    transition: 0.3s ease;
    border-radius: 2px;
}

/* LINE POSITIONS */
.stc-hamburger span:nth-child(1) {
    top: 0;
}

.stc-hamburger span:nth-child(2) {
    top: 9px;
}

.stc-hamburger span:nth-child(3) {
    bottom: 0;
}

/* ANIMATION → X */
.stc-hamburger.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 10px;
    background: var(--stc-action-primary);
    /* optional flavor */
}

.stc-hamburger.active span:nth-child(2) {
    opacity: 0;
}

.stc-hamburger.active span:nth-child(3) {
    transform: rotate(-45deg);
    bottom: 10px;
    background: var(--stc-action-primary);
    /* optional flavor */
}

/* ======================================
   MOBILE MENU
====================================== */
#stc_nav .stc-mobile-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    width: 100%;
    left: 0;
    right: 0;
    background: var(--stc-surface-primary);
    border-top: 1px solid var(--stc-border-soft);
}

/* mobile open */
#stc_nav .stc-mobile-menu.open {
    display: flex;
}

/* mobile item */
#stc_nav .stc-mobile-item {
    border-bottom: 1px solid var(--stc-border-medium);
}

/* mobile main link */
#stc_nav .stc-mobile-main {
    display: flex;
    justify-content: space-between;
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--stc-text-primary) !important;
    /* black text */
}

/* mobile hover */
#stc_nav .stc-mobile-main:hover {
    background: var(--stc-surface-overlay);
}

/* ======================================
   MOBILE ACCORDION
====================================== */
#stc_nav .stc-accordion {
    display: none;
    flex-direction: column;
    background: var(--stc-surface-secondary);
}

/* open accordion */
#stc_nav .stc-accordion.open {
    display: flex;
}

/* accordion links */
#stc_nav .stc-accordion a {
    padding: 12px 35px;
    font-size: 13px;
    color: var(--stc-text-primary) !important;
    /* black text */
}

/* accordion hover */
#stc_nav .stc-accordion a:hover {
    background: var(--stc-action-primary);
    color: var(--stc-text-inverse) !important;
    /* white text on hover */
}

@media (max-width: 768px) {
    #stc_nav .stc-nav-inner {
        justify-content: space-between;
        flex-wrap: wrap;
        padding: 0;
        /* Remove padding if inner nav bar should collapse completely on mobile */
    }

    #stc_nav .stc-item {
        display: none;
    }

    /* Show hamburger inside top bar on mobile */
    .stc-hamburger {
        display: block;
    }
}