/**
 * Stealth Header & Footer - Widget Styles
 */

:root {
    --shf-primary: #6366f1;
    --shf-text: #1f2937;
    --shf-text-light: #6b7280;
    --shf-border: #e5e7eb;
    --shf-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shf-radius: 12px;
    --shf-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   TEMPLATE SYSTEM
   ============================================ */

/* Remove default body margin/padding when using custom header */
body.shf-has-header {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Hide header in Elementor editor to prevent editing issues */
.elementor-editor-active #shf-header,
.elementor-editor-preview #shf-header {
    display: none !important;
}

.shf-site-header {
    position: relative;
    z-index: 1000;
    margin: 0;
    padding: 0;
}

/* Aggressive Theme Header Suppression */
body.shf-has-header>header:not(#shf-header),
body.shf-has-header>div>header:not(#shf-header),
body.shf-has-header .site-header:not(#shf-header),
body.shf-has-header #masthead:not(#shf-header),
body.shf-has-header .elementor-location-header:not(#shf-header) {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
}

body.shf-has-footer>footer:not(#shf-footer),
body.shf-has-footer>div>footer:not(#shf-footer),
body.shf-has-footer .site-footer:not(#shf-footer),
body.shf-has-footer #colophon:not(#shf-footer),
body.shf-has-footer .elementor-location-footer:not(#shf-footer) {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
}

.shf-site-header.shf-sticky-header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 99999;
}

.shf-has-sticky-header {
    scroll-padding-top: 80px;
}

.shf-site-header.shf-transparent-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: transparent !important;
    z-index: 99999;
}

.shf-site-header.shf-transparent-header.shf-sticky-header {
    position: fixed;
}

.shf-site-header.shf-transparent-header.shf-header-solid {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.shf-site-header.shf-shrunk {
    padding-top: 5px !important;
    padding-bottom: 5px !important;
}

.shf-site-header.shf-shrunk .shf-logo img {
    max-height: 35px;
    transition: max-height 0.3s ease;
}

.shf-site-header.shf-header-hidden {
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.shf-site-header:not(.shf-header-hidden) {
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.shf-site-footer[data-reveal="1"] {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    z-index: 99998;
}

.shf-site-footer.shf-footer-revealed {
    transform: translateY(0);
}

.shf-site-footer {
    margin-top: auto;
}

/* ============================================
   ACCOUNT BUTTON WIDGET
   ============================================ */
/* ============================================
   ACCOUNT BUTTON WIDGET
   ============================================ */
.shf-account-btn,
.shf-account-pill,
.shf-cart-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    /* Default fallback only - allows Elementor override */
    background-color: var(--shf-primary);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: var(--shf-transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: none;
    cursor: pointer;
    line-height: 1.2;
}

.shf-cart-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    /* Allow hover color override */
}

.shf-account-btn img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

/* Status Dot - Was missing! */
.shf-status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #00ffaa;
    margin-right: 8px;
    box-shadow: 0 0 5px rgba(0, 255, 170, 0.5);
    flex-shrink: 0;
}

.shf-status-dot.offline {
    background-color: #666;
    box-shadow: none;
    opacity: 0.5;
}

/* Account Dropdown */
.shf-account-dropdown {
    position: relative;
    display: inline-block;
}

.shf-account-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: transparent;
    border: 1px solid var(--shf-border);
    border-radius: 50px;
    cursor: pointer;
    transition: var(--shf-transition);
    font-size: 14px;
    font-weight: 500;
}

.shf-account-trigger:hover {
    border-color: var(--shf-primary);
    background: rgba(99, 102, 241, 0.05);
}

.shf-account-trigger img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.shf-account-name {
    color: var(--shf-text);
}

.shf-chevron {
    transition: var(--shf-transition);
    color: var(--shf-text-light);
}

.shf-account-dropdown:hover .shf-chevron {
    transform: rotate(180deg);
}

.shf-account-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    background: #fff;
    border-radius: var(--shf-radius);
    box-shadow: var(--shf-shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--shf-transition);
    padding: 8px;
    z-index: 1000;
}

.shf-account-dropdown:hover .shf-account-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.shf-account-menu a {
    display: block;
    padding: 10px 16px;
    color: var(--shf-text);
    font-size: 14px;
    text-decoration: none;
    border-radius: 6px;
    transition: var(--shf-transition);
}

.shf-account-menu a:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--shf-primary);
}

/* Social Login Wrapper */
.shf-social-login-wrapper {
    display: flex;
    gap: 8px;
}

.shf-social-login-wrapper .nsl-container {
    display: flex;
    gap: 8px;
}

.shf-social-login-wrapper .nsl-button {
    border-radius: 8px !important;
}

/* Google Login Button - Visual Effects Only */
.shf-google-btn {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    transition: var(--shf-transition);
    /* Layout (padding, width) controlled by Elementor */
}

.shf-google-btn:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.shf-google-btn .shf-google-icon {
    margin-right: 8px;
}

/* Custom Content Container - Visual Effects Only */
.shf-custom-content {
    display: block;
    /* Layout controlled by Elementor container settings */
}


/* ============================================
   ANNOUNCEMENT BAR WIDGET
   ============================================ */
.shf-announcement {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    position: relative;
}

.shf-announcement-content {
    flex: 1;
}

.shf-announcement a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.shf-announcement a:hover {
    opacity: 0.9;
}

.shf-announcement-close {
    position: absolute;
    right: 16px;
    background: transparent;
    border: none;
    color: inherit;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.7;
    transition: var(--shf-transition);
    padding: 4px 8px;
    line-height: 1;
}

.shf-announcement-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Hidden state */
.shf-announcement.shf-hidden {
    display: none;
}

/* ============================================
   LOGO WIDGET
   ============================================ */
.shf-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.shf-logo img {
    max-height: 50px;
    width: auto;
    display: block;
}

.shf-logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--shf-text);
}

.shf-gradient-text {
    background: linear-gradient(135deg, var(--shf-primary), #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   NAVIGATION MENU WIDGET
   ============================================ */
.shf-nav-wrapper {
    display: flex;
    align-items: center;
}

.shf-nav-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 24px;
    align-items: center;
}

.shf-nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px;
}

/* Horizontal menu - ensure center alignment */
.shf-nav-horizontal,
.shf-nav-menu:not(.shf-nav-vertical) {
    align-items: center;
}

.shf-nav-horizontal ul,
.shf-nav-menu:not(.shf-nav-vertical) ul {
    align-items: center;
}

.shf-nav-vertical {
    flex-direction: column;
    align-items: flex-start;
}

/* Force vertical menu and ALL children to stack vertically */
.shf-nav-vertical,
.shf-nav-vertical ul,
.shf-nav-vertical>li,
.shf-nav-vertical .sub-menu {
    flex-direction: column !important;
    align-items: flex-start !important;
}

.shf-nav-vertical ul {
    gap: 4px;
}

.shf-nav-menu li {
    position: relative;
    list-style: none;
}

.shf-nav-menu>li>a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    color: var(--shf-text);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    transition: var(--shf-transition);
    /* Colors handled by Elementor controls */
}

.shf-nav-menu>li>a:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--shf-primary);
}

/* Submenu indicator */
.shf-has-indicator .menu-item-has-children>a::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    margin-left: 4px;
    opacity: 0.5;
    transition: var(--shf-transition);
}

.shf-has-indicator .menu-item-has-children:hover>a::after {
    transform: rotate(180deg);
}

/* Submenu (horizontal layout) */
.shf-nav-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: #fff;
    border-radius: var(--shf-radius);
    box-shadow: var(--shf-shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--shf-transition);
    list-style: none;
    padding: 8px;
    margin: 0;
    z-index: 100000;
    flex-direction: column;
}

.shf-nav-menu li:hover>.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.shf-nav-menu .sub-menu a {
    display: block;
    padding: 10px 16px;
    color: var(--shf-text);
    font-size: 14px;
    text-decoration: none;
    border-radius: 6px;
    transition: var(--shf-transition);
}

.shf-nav-menu .sub-menu a:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--shf-primary);
}

/* Vertical submenu - always visible, indented */
.shf-nav-vertical .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    padding-left: 16px;
    background: transparent;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .shf-account-name {
        display: none;
    }

    .shf-nav-menu {
        flex-direction: column;
        align-items: flex-start;
    }

    .shf-nav-menu .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding-left: 16px;
    }
}

/* ============================================
   MEGA MENU WIDGET
   ============================================ */
.shf-mega-nav {
    display: flex;
    overflow: visible;
}

/* Prevent Elementor containers from clipping menu dropdowns.
   Without this, position:absolute submenus get clipped by parent overflow. */
.elementor-widget-shf_mega_menu .elementor-widget-container,
.elementor-widget-shf_nav_menu .elementor-widget-container {
    overflow: visible !important;
}

/* Also prevent Elementor section/container ancestors from clipping dropdowns */
.shf-site-header .elementor-container,
.shf-site-header .elementor-column-wrap,
.shf-site-header .elementor-widget-wrap,
.shf-site-header .elementor-element,
.shf-site-header .e-con,
.shf-site-header .e-con-inner,
#shf-header .elementor-container,
#shf-header .e-con,
#shf-header .e-con-inner {
    overflow: visible !important;
}

.shf-nav-container {
    overflow: visible;
}

.shf-mega-menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 4px;
}

.shf-mega-item {
    position: relative;
}

.shf-mega-menu>li>a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    color: var(--shf-text);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    transition: var(--shf-transition);
}

.shf-mega-menu>li>a:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--shf-primary);
}

.shf-mega-arrow {
    transition: var(--shf-transition);
    opacity: 0.5;
}

.shf-mega-item:hover .shf-mega-arrow {
    transform: rotate(180deg);
}

.shf-mega-panel {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 600px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: var(--shf-transition);
    z-index: 100001;
}

.shf-mega-item:hover .shf-mega-panel {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* ============================================
   ADD TO CART WIDGET
   ============================================ */
.shf-add-to-cart-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.shf-atc-price {
    font-size: 24px;
    font-weight: 700;
}

.shf-atc-price del {
    opacity: 0.5;
    font-weight: 400;
}

.shf-atc-form {
    display: flex;
    align-items: center;
    gap: 12px;
}

.shf-qty-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid var(--shf-border);
    border-radius: 8px;
    overflow: hidden;
}

.shf-qty-btn {
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: var(--shf-text);
    transition: var(--shf-transition);
}

.shf-qty-btn:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--shf-primary);
}

.shf-qty-input {
    width: 50px;
    height: 36px;
    border: none;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    -moz-appearance: textfield;
    appearance: textfield;
}

.shf-qty-input::-webkit-outer-spin-button,
.shf-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.shf-atc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--shf-primary);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--shf-transition);
}

.shf-atc-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.shf-atc-btn.shf-loading .shf-atc-text,
.shf-atc-btn.shf-loading .shf-atc-icon {
    display: none;
}

.shf-atc-btn .shf-atc-loading {
    display: none;
}

.shf-atc-btn.shf-loading .shf-atc-loading {
    display: inline-flex;
}

.shf-atc-btn.shf-added {
    background: #10b981;
}

/* ============================================
   AJAX SEARCH WIDGET
   ============================================ */
.shf-search-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.shf-search-icon {
    position: absolute;
    left: 12px;
    color: var(--shf-text-light);
    pointer-events: none;
    z-index: 1;
}

.shf-search-input {
    padding: 10px 16px 10px 40px;
    border: 1px solid var(--shf-border);
    border-radius: 8px;
    font-size: 14px;
    transition: var(--shf-transition);
    outline: none;
}

.shf-search-input:focus {
    border-color: var(--shf-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.shf-search-input.shf-expand-focus {
    width: 200px;
}

.shf-search-input.shf-expand-focus:focus {
    width: 300px;
    max-width: calc(100vw - 40px);
}

.shf-search-loading {
    position: absolute;
    right: 12px;
    color: var(--shf-primary);
}

.shf-search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    min-width: 300px;
    max-height: 400px;
    overflow-y: auto;
    background: #fff;
    border-radius: var(--shf-radius);
    box-shadow: var(--shf-shadow);
    z-index: 1000;
    display: none;
}

.shf-search-results.shf-has-results {
    display: block;
}

.shf-search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--shf-text);
    border-bottom: 1px solid var(--shf-border);
    transition: var(--shf-transition);
}

.shf-search-result-item:last-child {
    border-bottom: none;
}

.shf-search-result-item:hover {
    background: rgba(99, 102, 241, 0.05);
}

.shf-search-result-item img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
}

.shf-search-result-title {
    font-weight: 500;
}

.shf-search-result-price {
    font-size: 13px;
    color: var(--shf-text-light);
}

.shf-search-no-results {
    padding: 20px;
    text-align: center;
    color: var(--shf-text-light);
}

/* ============================================
   MOBILE MENU WIDGET
   ============================================ */
.shf-mobile-wrapper {
    display: inline-block;
}

.shf-mobile-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.shf-mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--shf-text);
    border-radius: 2px;
    transition: var(--shf-transition);
}

.shf-mobile-toggle.shf-toggle-dots {
    flex-direction: row;
    gap: 4px;
}

.shf-mobile-toggle.shf-toggle-dots .shf-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--shf-text);
}

.shf-mobile-toggle.shf-active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.shf-mobile-toggle.shf-active span:nth-child(2) {
    opacity: 0;
}

.shf-mobile-toggle.shf-active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.shf-mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: var(--shf-transition);
    z-index: 9998;
}

.shf-mobile-overlay.shf-active {
    opacity: 1;
    visibility: visible;
}

.shf-mobile-panel {
    position: fixed;
    top: 0;
    height: 100%;
    width: min(300px, 85vw);
    background: #fff;
    box-shadow: var(--shf-shadow);
    transform: translateX(100%);
    transition: var(--shf-transition);
    z-index: 9999;
    overflow-y: auto;
}

.shf-panel-left {
    left: 0;
    transform: translateX(-100%);
}

.shf-panel-right {
    right: 0;
    transform: translateX(100%);
}

.shf-mobile-panel.shf-active {
    transform: translateX(0);
}

.shf-mobile-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--shf-text);
    transition: var(--shf-transition);
}

.shf-mobile-close:hover {
    color: var(--shf-primary);
}

.shf-mobile-menu {
    list-style: none;
    margin: 60px 0 0;
    padding: 0;
}

.shf-mobile-menu li {
    border-bottom: 1px solid var(--shf-border);
}

.shf-mobile-menu a {
    display: block;
    padding: 14px 20px;
    color: var(--shf-text);
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--shf-transition);
}

.shf-mobile-menu a:hover {
    color: var(--shf-primary);
    background: rgba(99, 102, 241, 0.05);
}

.shf-mobile-menu .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0 0 0 20px;
    background: #f9fafb;
}

.shf-mobile-menu .sub-menu a {
    font-size: 14px;
    font-weight: 400;
}

/* ============================================
   FIX: MENU DIVIDERS - Centered & Inline
   ============================================ */
.shf-has-divider>li {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.shf-has-divider>li:not(:last-child)::after {
    content: '/';
    display: inline-block;
    margin-left: 12px;
    margin-right: 4px;
    color: rgba(255, 255, 255, 0.3);
    font-weight: 300;
    pointer-events: none;
    line-height: inherit;
    /* FIX: Match parent line-height */
}

/* ============================================
   HAMBURGER TOGGLE STYLES
   ============================================ */
.shf-mobile-toggle {
    display: none;
    /* Hidden on desktop */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    z-index: 100002;
    margin-right: 15px;
    /* Spacing from logo if needed */
}

.shf-toggle-bar {
    display: block;
    width: 24px;
    min-height: 2px !important;
    height: 2px !important;
    background-color: var(--shf-text, #fff);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Active Hamburger Animation */
.shf-mobile-toggle.shf-active .shf-toggle-bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.shf-mobile-toggle.shf-active .shf-toggle-bar:nth-child(2) {
    opacity: 0;
}

.shf-mobile-toggle.shf-active .shf-toggle-bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* ============================================
   MOBILE RESPONSIVENESS & HAMBURGER MENU
   ============================================ */
@media (max-width: 768px) {

    /* Show Hamburger */
    .shf-mobile-toggle {
        display: flex;
    }

    /* Mobile Menu Container (Drawer) */
    .shf-nav-wrapper {
        position: fixed;
        top: 70px !important;
        /* Adjust based on header height, can be dynamic */
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: #000;
        /* Fallback */
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 40px 20px;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
        z-index: 99999;
        overflow-y: auto;
        visibility: hidden;
    }

    /* Active State (Open) */
    .shf-nav-wrapper.shf-active {
        transform: translateX(0);
        visibility: visible;
    }

    /* Force Menu Items Column Layout */
    .shf-nav-menu,
    .menu {
        flex-direction: column !important;
        width: 100%;
        gap: 0 !important;
    }

    .shf-nav-menu>li,
    .menu>li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        opacity: 0;
        transform: translateY(10px);
        transition: all 0.3s ease;
    }

    /* Staggered Animation for Items */
    .shf-nav-wrapper.shf-active .shf-nav-menu>li {
        opacity: 1;
        transform: translateY(0);
    }

    .shf-nav-wrapper.shf-active .shf-nav-menu>li:nth-child(1) {
        transition-delay: 0.1s;
    }

    .shf-nav-wrapper.shf-active .shf-nav-menu>li:nth-child(2) {
        transition-delay: 0.15s;
    }

    .shf-nav-wrapper.shf-active .shf-nav-menu>li:nth-child(3) {
        transition-delay: 0.2s;
    }

    .shf-nav-wrapper.shf-active .shf-nav-menu>li:nth-child(4) {
        transition-delay: 0.25s;
    }

    .shf-nav-wrapper.shf-active .shf-nav-menu>li:nth-child(5) {
        transition-delay: 0.3s;
    }

    .shf-nav-menu>li>a,
    .menu>li>a {
        padding: 16px 0 !important;
        font-size: 18px !important;
        justify-content: space-between;
    }

    /* Hide Dividers in Mobile Menu */
    .shf-has-divider>li::after {
        display: none !important;
    }

    /* Submenus */
    .sub-menu {
        position: static !important;
        background: rgba(255, 255, 255, 0.03) !important;
        padding-left: 20px !important;
        display: none;
        width: 100%;
        box-shadow: none !important;
        margin-top: 5px !important;
        transform: none !important;
    }

    .shf-submenu-open>.sub-menu {
        display: block !important;
    }

    /* Chevron Icon for Submenu Toggle */
    .menu-item-has-children>a::after {
        content: '';
        width: 10px;
        height: 10px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(45deg);
        margin-left: auto;
        transition: transform 0.3s ease;
    }

    .menu-item-has-children.shf-submenu-open>a::after {
        transform: rotate(225deg);
        margin-top: 5px;
    }

    /* Fix: Mega menu panel overflow on mobile */
    .shf-mega-panel {
        min-width: 100% !important;
        max-width: 100vw !important;
        left: 0 !important;
        right: 0 !important;
        transform: none !important;
        border-radius: 0 !important;
        position: fixed !important;
    }

    /* ============================================
       FIX: MOBILE CART VISIBILITY & LAYOUT
       ============================================ */
    .shf-cart-wrapper {
        position: relative;
        z-index: 100003;
        /* Above menu */
    }

    /* Ensure cart dropdown is visible and not cut off */
    .shf-mini-cart {
        position: fixed !important;
        top: auto !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 20px 20px 0 0 !important;
        max-height: 80vh !important;
        transform: translateY(110%) !important;
        padding-bottom: env(safe-area-inset-bottom, 20px) !important;
        visibility: visible !important;
        transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1) !important;
        z-index: 100000 !important;
    }

    .shf-mini-cart.shf-active,
    .shf-cart-wrapper:hover .shf-mini-cart {
        /* Keep hover for testing/non-touch */
        transform: translateY(0) !important;
    }
}

/* ============================================
   FIX: REDUCE CONTAINER PADDING
   ============================================ */
.shf-nano-header,
.shf-nano-footer,
[class*="shf-"][class*="-header"],
[class*="shf-"][class*="-footer"] {
    padding-left: 15px !important;
    padding-right: 15px !important;
}

@media (min-width: 769px) {

    .shf-nano-header,
    .shf-nano-footer,
    [class*="shf-"][class*="-header"],
    [class*="shf-"][class*="-footer"] {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}

/* ============================================
   FIX: ACCOUNT BUTTON COLOR (Force Specificity)
   ============================================ */
.shf-account-btn.shf-custom-style,
.shf-account-pill.shf-custom-style,
.elementor-widget-shf_account_button .shf-account-btn,
.elementor-widget-shf_account_button .shf-account-pill {
    background-color: var(--shf-account-bg, rgba(255, 255, 255, 0.05));
    /* Fallback */
}

/* Ensure Elementor's inline styles win */
.elementor-element .shf-account-btn[style*="background-color"],
.elementor-element .shf-account-pill[style*="background-color"] {
    background-color: inherit !important;
    /* This allows the inline style from controls to override */
}

/* ============================================
   FIX: SUBMENU AUTO-EXPANSION
   ============================================ */
/* Ensure submenus are hidden by default even if active class is present from WP */
.shf-nav-menu .sub-menu,
.shf-nav-menu .children {
    display: none;
}

/* Only show on hover (desktop) or toggle (mobile) */
@media (min-width: 769px) {
    .shf-nav-menu li:hover>.sub-menu {
        display: block;
        animation: shf-fade-in 0.2s ease;
    }
}

/* ============================================
   FIX: STANDARD CART ICON
   ============================================ */
.shf-cart-icon.shf-cart-style-standard {
    display: inline-flex;
    align-items: center;
    position: relative;
    justify-content: center;
}

.shf-cart-icon.shf-cart-style-standard svg {
    display: block;
    /* Size controlled by Elementor, but ensure defaults */
    width: 24px;
    height: 24px;
}

/* Fix bubble alignment on standard icon */
.shf-cart-icon.shf-cart-style-standard .shf-cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    font-size: 10px;
}

/* ============================================
   FIX: DIVIDER ALIGNMENT
   ============================================ */
.shf-has-divider>li {
    /* Ensure flex alignment affects the pseudo-element */
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}

.shf-has-divider>li::after {
    /* Reset line-height to match text for alignment */
    line-height: inherit;
    height: auto;
    position: relative;
    /* top: 1px; REMOVED: Rely on flex centering */
}

/* ============================================
   FIX: VISUAL POLISH (Logo, Cart Hover, Overflow)
   ============================================ */

/* 1. Mobile Logo Size - Reduce visual weight */
@media (max-width: 768px) {

    .elementor-widget-shf_logo .shf-logo-text,
    .shf-logo-text {
        font-size: 14px !important;
        /* Force Small! */
        white-space: nowrap !important;
        word-break: keep-all !important;
        line-height: 1 !important;
        display: inline-block !important;
        width: auto !important;
        flex-shrink: 0 !important;
        max-width: 50vw;
        /* Prevent total takeover */
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 60vw;
        /* Prevent huge text from pushing everything */
    }

    .shf-logo {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center;
        max-width: 100%;
        overflow: hidden;
        min-width: 0;
        /* Allow flex shrink */
    }

    .shf-nano-left {
        min-width: 0;
        /* Allow flex shrink for logo container */
        flex: 0 1 auto;
    }

    .elementor-widget-shf_logo .shf-logo img,
    .shf-logo img {
        max-height: 28px !important;
        /* Smaller icon */
        flex-shrink: 0 !important;
        margin-right: 8px !important;
    }

    /* FIX: Mobile Cart Pill Padding & Wrapping */
    .shf-cart-pill,
    .shf-nano-cart,
    .shf-cart-link {
        padding: 5px 12px !important;
        font-size: 12px !important;
        height: auto !important;
        min-height: 30px;
        line-height: normal !important;
        white-space: nowrap !important;
        /* FORCE SINGLE LINE */
        width: auto !important;
        max-width: none !important;
        display: inline-flex !important;
        flex-direction: row !important;
        /* Ensure side-by-side */
        align-items: center !important;
    }

    /* Force "Cart (3)" to be on one line */
    .shf-cart-pill span,
    .shf-nano-cart span {
        white-space: nowrap !important;
        display: inline-block !important;
    }

    /* FIX: Site Title Widget (User is using this instead of SHF Logo) */
    .elementor-widget-site-title .elementor-heading-title,
    .elementor-widget-heading .elementor-heading-title {
        font-size: 14px !important;
        line-height: 1 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 60vw !important;
        display: block !important;
    }

    /* FIX: Force Container Vertical Alignment */
    .shf-nano-header,
    .elementor-location-header .elementor-container,
    .shf-mobile-wrapper {
        align-items: center !important;
    }

    /* =============================================
       MOBILE LAYOUT - MINIMAL OVERRIDES
       Let Elementor control sizing. Only fix display issues.
       ============================================= */

    /* Ensure flex containers don't break */
    .elementor-location-header .elementor-container,
    .shf-nano-header {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
    }

    /* Prevent text wrapping in header elements */
    .shf-logo-text,
    .shf-cart-pill,
    .shf-account-btn,
    .shf-account-pill {
        white-space: nowrap !important;
    }

    /* Status Dot styling (visual effect only) */
    .shf-status-dot {
        display: inline-block;
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background-color: #00ffaa;
        margin-right: 6px;
        box-shadow: 0 0 5px rgba(0, 255, 170, 0.5);
    }

    /* FIX: Account pill overflow on mobile - constrain pill only, NOT the header */
    .shf-account-pill,
    .shf-account-btn {
        max-width: 140px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        flex-shrink: 1 !important;
    }

    .shf-account-pill .shf-account-name,
    .shf-account-btn .shf-account-name {
        max-width: 80px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        display: inline-block !important;
        vertical-align: middle !important;
    }
}

/* 2. Disable Standard Cart Hover Animation */
/*Only disable lift for the standard icon style, pill buttons can still animate if desired*/
.elementor-widget-shf_cart_icon .shf-cart-icon.shf-cart-style-standard:hover,
.shf-cart-icon.shf-cart-style-standard:hover,
.shf-cart-icon.shf-cart-style-standard:hover svg,
.shf-cart-link:hover .shf-cart-icon.shf-cart-style-standard {
    transform: none !important;
    box-shadow: none !important;
}

/* 3. Overflow Prevention */
/* Ensure widgets don't break out of boxed containers */
.elementor-widget-shf_nav_menu,
.elementor-widget-shf_search,
.elementor-widget-shf_account_button,
.elementor-widget-shf_cart_icon {
    max-width: 100%;
}

/* Global safeguards for plugin elements */
.shf-nav-wrapper,
.shf-cart-wrapper,
.shf-search-wrapper {
    max-width: 100vw;
    box-sizing: border-box;
}

/* Prevent horizontal scroll on mobile menu specifically */
.shf-nav-wrapper.shf-active {
    overflow-x: hidden;
}

/* Cart V2 uses inline styles - no CSS needed here */