#header {
    background-color: var(--stc-surface-glass);
    backdrop-filter: blur(5px);
    box-shadow: black 0px 0px 5px;
    z-index: 999999;
}

/* ==============================
   TOP BAR
============================== */

#stc-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
}

#stc-navigation .stc-navigation-topbar {
    /* background: var(--stc-surface-primary); */
    /* border-bottom: 1px solid var(--stc-border-soft); */
    padding: 25px 20px;
    width: 100%;
    max-width: 1280px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;

    transition: var(--stc-transition-normal);
}

#stc-navigation.stc-fixed {
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    z-index: 9999;
}

/* ==============================
   LOGO
============================== */

#stc-navigation .stc-header-logo {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.stc-logo-symbol-wrap {
    position: relative;
    width: auto;
    height: 45px;
}


.stc-logo-symbol-wrap svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
}


#stc-navigation .stc-header-logo img {
    height: 45px;
    max-height: 100%;
    width: auto;
}


/* ==============================
   SEARCH BAR
============================== */

#stc-navigation .stc-header-search-bar {
    flex: 1;
    max-width: 600px;
}

#stc-navigation .stc-header-search-bar form {
    display: flex;
    width: 100%;
    border-radius: var(--stc-radius-sm);
    overflow: hidden;
    border: 1px solid var(--stc-border-soft);
}

#stc-navigation .stc-header-search-bar input {
    flex: 1;
    padding: 10px 14px;
    border: none;
    outline: none;
    background: var(--stc-surface-card);
    color: var(--stc-text-primary);
    font-size: 14px;
}

#stc-navigation .stc-header-search-bar button {
    background: var(--stc-action-primary);
    border: none;
    padding: 0 18px;
    cursor: pointer;
    color: var(--stc-text-inverse);
    transition: var(--stc-transition-fast);
}

#stc-navigation .stc-header-search-bar button:hover {
    background: var(--stc-action-primary-hover);
}

/* ==============================
   HEADER ACTIONS
============================== */

#stc-navigation .stc-header-actions {
    display: flex;
    align-items: center;
    gap: 22px;
    /* width: 100vw; */
}

/* ==============================
   HEADER ITEM
============================== */

#stc-navigation .stc-header-action {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
    color: var(--stc-text-primary) !important;
}

#stc-navigation .stc-header-action svg {
    stroke: var(--stc-text-primary);
}

/* ==============================
   TEXT
============================== */

#stc-navigation .stc-header-action .stc-header-action-text-label {
    font-size: 11px;
    color: var(--stc-text-primary);
}

#stc-navigation .stc-header-action .stc-header-action-text-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--stc-text-primary);
}

/* ==============================
   LINK OVERRIDE
============================== */

#stc-navigation a {
    color: var(--stc-text-primary) !important;
    text-decoration: none !important;
}

#stc-navigation a:hover {
    color: var(--stc-action-primary-hover) !important;
}

/* ==============================
   REMOVE PRESTASHOP BLUE LINKS
============================== */

#stc-navigation a:visited,
#stc-navigation a:focus,
#stc-navigation a:active {
    color: var(--stc-text-primary) !important;
}

/* ==============================
   CART COUNT
============================== */

#stc-navigation .stc-header-cart-count {
    background: var(--stc-action-primary);
    color: var(--stc-text-inverse);
    font-size: 11px;
    border-radius: 20px;
    padding: 2px 6px;
}


/* CART WRAPPER */
.stc-cart-wrapper {
    position: relative;
    display: inline-block;
}

/* RED BADGE */
#stc-navigation .stc-header-cart-count {
    position: absolute;
    top: -6px;
    right: -8px;

    background: red;
    color: white;

    font-size: 10px;
    font-weight: 600;

    min-width: 18px;
    height: 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    padding: 2px 5px;

    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    animation: stc-pulse 2s infinite;
}

@keyframes stc-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 0, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0);
    }
}

/* ==============================
   MOBILE RESPONSIVE FIX
============================== */

/* ==============================
   MOBILE HEADER ICON MODE
============================== */

/* ==============================
   SMART MOBILE HEADER TEXT HANDLING
============================== */

@media (max-width: 768px) {

    /* keep structure stable */
    #stc-navigation .stc-header-action {
        position: relative;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-width: 42px;
    }

    /* hide text visually but NOT permanently */
    #stc-navigation .stc-header-action-text {
        position: absolute;
        top: 40px;

        background: var(--stc-surface-primary);
        padding: 6px 10px;
        border-radius: 6px;

        font-size: 11px;
        white-space: nowrap;

        opacity: 0;
        visibility: hidden;
        transform: translateY(-5px);
        transition: 0.2s ease;

        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
        z-index: 999;
    }

    /* show text on tap/hover */
    #stc-navigation .stc-header-action:active .stc-header-action-text,
    #stc-navigation .stc-header-action:focus .stc-header-action-text {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    /* icon stays clean */
    #stc-navigation .stc-header-action svg {
        width: 22px;
        height: 22px;
    }
}

/* ==============================
   HIDE DEFAULT PRESTASHOP HEADER (Classic Theme)
============================== */
#header .header-nav {
    display: none !important;
}

#header .header-top #_desktop_logo,
#header .header-top .hidden-sm-down#_desktop_logo,
#_mobile_logo {
    display: none !important;
}

#header .header-top {
    padding: 0 !important;
}

#header .header-top>.container {
    max-width: 100% !important;
    padding: 0 !important;
    width: 100% !important;
}

#header .header-top>.container>.row {
    margin: 0 !important;
}

#header .header-top .col-md-10.col-sm-12.position-static {
    width: 100%;
    padding: 0;
    max-width: 100%;
    flex: 0 0 100%;
}

/* ==============================
   MOBILE SEARCH TOGGLE
   Add this to your stylee_header.css
============================== */

@media (max-width: 768px) {

    /* Hide the search bar by default on mobile */
    #stc-navigation .stc-header-search-bar {
        display: none;
        width: 100%;
        order: 10;
        /* pushes it below the topbar row */
        padding: 8px 12px;
        background: var(--stc-surface-primary);
        border-top: 1px solid var(--stc-border-soft);
    }

    /* When active (JS toggles this class), show it as a full-width row */
    #stc-navigation .stc-header-search-bar.stc-search-open {
        display: flex;
    }

    /* Make the topbar wrap so search bar can appear on its own line */
    #stc-navigation .stc-navigation-topbar {
        flex-wrap: wrap;
    }

    /* Show a magnifier-only toggle button on mobile */
    .stc-mobile-search-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        cursor: pointer;
        padding: 6px;
        color: var(--stc-text-primary);
    }

    .stc-mobile-search-toggle svg {
        stroke: var(--stc-text-primary);
        width: 22px;
        height: 22px;
    }

    /* Active state — tint the icon when search is open */
    .stc-mobile-search-toggle.active svg {
        stroke: var(--stc-action-primary);
    }

    /* Expand input to fill the row */
    #stc-navigation .stc-header-search-bar form {
        width: 100%;
    }
}

/* On desktop: always show bar, hide the toggle button */
@media (min-width: 769px) {
    .stc-mobile-search-toggle {
        display: none;
    }

    /* Ensure desktop search bar is never hidden */
    #stc-navigation .stc-header-search-bar {
        display: flex !important;
    }
}

/*cart check*/
@keyframes stc-bounce {
    0% {
        transform: scale(1);
    }

    20% {
        transform: scale(1.6) rotate(-10deg);
    }

    40% {
        transform: scale(0.8) rotate(10deg);
    }

    60% {
        transform: scale(1.2) rotate(-5deg);
    }

    80% {
        transform: scale(0.95) rotate(0deg);
    }

    100% {
        transform: scale(1);
    }
}

.stc-bounce {
    animation: stc-bounce 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}