/* 
 * Demis Header Builder Styles
 * Handles sticky logic, transparent headers, and mobile nav toggle.
 */

 /* ── Sticky Header ────────────────────────────────────────────────────────── */
 .demis-header-sticky-wrap {
     position: relative;
     width: 100%;
     z-index: 999;
     transition: background-color 0.3s ease, box-shadow 0.3s ease;
 }
 
 #demis-site-header.demis-header-sticky-enabled .demis-header-sticky-wrap.is-sticky,
.demis-header-sticky-enabled .demis-header-sticky-wrap.is-sticky,
.demis-custom-header.demis-header-sticky-enabled .demis-header-sticky-wrap.is-sticky,
.demis-advanced-header--sticky-enabled.is-sticky {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    background-color: var(--demis-sticky-bg, #ffffff);
    z-index: 99999 !important;
}

/* Glassmorphism Sticky Header */
.demis-header-sticky-wrap.is-sticky.has-glassmorphism,
.demis-sticky-element.is-sticky.has-glassmorphism,
.is-sticky.has-glassmorphism {
    backdrop-filter: blur(var(--demis-sticky-blur, 16px)) saturate(180%) !important;
    -webkit-backdrop-filter: blur(var(--demis-sticky-blur, 16px)) saturate(180%) !important;
}

/* Explicit Zero-Blur at Top of Page (Non-Sticky State) */
.whb-header:not(.whb-sticked) .whb-row,
.whb-header:not(.whb-sticked) .whb-row:before,
.whb-header:not(.whb-sticked) .whb-col,
.whb-header:not(.whb-sticked) .whb-col:before,
.whb-row:not(.is-sticky):not(.whb-sticked),
.whb-row:not(.is-sticky):not(.whb-sticked):before,
.whb-row:not(.is-sticky):not(.whb-sticked) .whb-col,
.whb-row:not(.is-sticky):not(.whb-sticked) .whb-col:before,
.whb-row.whb-sticky-container:not(.is-sticky):not(.whb-sticked),
.whb-row.whb-sticky-full:not(.is-sticky):not(.whb-sticked),
.whb-row.has-glassmorphism:not(.is-sticky):not(.whb-sticked) {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Ensure inner container does not block glass backdrop blur */
.is-sticky.has-glassmorphism .e-con-inner,
.is-sticky.has-glassmorphism > .elementor-container,
.whb-sticky-row.is-sticky.has-glassmorphism .whb-row-inner,
.whb-sticky-row.whb-sticked.has-glassmorphism .whb-row-inner,
.whb-header.whb-sticked .whb-sticky-row .whb-col.whb-transparent-on-scroll,
.whb-sticky-row.is-sticky .whb-col.whb-transparent-on-scroll,
.whb-sticky-row.whb-sticked .whb-col.whb-transparent-on-scroll {
    background-color: transparent !important;
    background: transparent !important;
}

/* Shrink Sticky Header */
.demis-header-sticky-wrap.is-sticky.has-shrink,
.demis-sticky-element.is-sticky.has-shrink {
    padding-top: var(--demis-sticky-padding, 6px) !important;
    padding-bottom: var(--demis-sticky-padding, 6px) !important;
    transition: padding 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}
.demis-header-sticky-wrap.is-sticky.has-shrink .demis-logo-img,
.demis-sticky-element.is-sticky.has-shrink .demis-logo-img {
    max-height: 38px !important;
    transition: max-height 0.3s ease;
}

/* Sticky Shadows */
.demis-header-sticky-wrap.is-sticky.sticky-shadow-none,
.demis-sticky-element.is-sticky.sticky-shadow-none {
    box-shadow: none !important;
}
.demis-header-sticky-wrap.is-sticky.sticky-shadow-light,
.demis-sticky-element.is-sticky.sticky-shadow-light {
    box-shadow: 0 4px 16px rgba(0,0,0,0.06) !important;
}
.demis-header-sticky-wrap.is-sticky.sticky-shadow-medium,
.demis-sticky-element.is-sticky.sticky-shadow-medium {
    box-shadow: 0 6px 24px rgba(0,0,0,0.12) !important;
}
.demis-header-sticky-wrap.is-sticky.sticky-shadow-strong,
.demis-sticky-element.is-sticky.sticky-shadow-strong {
    box-shadow: 0 10px 32px rgba(0,0,0,0.18) !important;
}

/* Sticky Border Bottom */
.demis-header-sticky-wrap.is-sticky,
.demis-sticky-element.is-sticky {
    border-bottom: 1px solid var(--demis-sticky-border-color, transparent);
}

@keyframes demis-slide-down {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}
 
 /* Sticky Logo Swap (Handled via JavaScript) */
 
 /* ── Transparent Header ───────────────────────────────────────────────────── */
 #demis-site-header.demis-header-transparent-enabled .demis-header-sticky-wrap:not(.is-sticky),
 .demis-header-transparent-enabled .demis-header-sticky-wrap:not(.is-sticky),
 .demis-header-transparent-enabled.demis-sticky-element:not(.is-sticky),
 .demis-sticky-element.demis-header-transparent-enabled:not(.is-sticky) {
     position: absolute !important;
     top: 0 !important;
     left: 0 !important;
     right: 0 !important;
     width: 100% !important;
     background-color: transparent !important;
     box-shadow: none !important;
     z-index: 999 !important;
 }
 
 /* When transparent header becomes sticky (and not glassmorphism) */
 #demis-site-header.demis-header-transparent-enabled .demis-header-sticky-wrap.is-sticky:not(.has-glassmorphism),
 .demis-header-transparent-enabled .demis-header-sticky-wrap.is-sticky:not(.has-glassmorphism),
 .demis-header-transparent-enabled.demis-sticky-element.is-sticky:not(.has-glassmorphism),
 .demis-sticky-element.demis-header-transparent-enabled.is-sticky:not(.has-glassmorphism) {
     position: fixed !important;
     top: 0 !important;
     left: 0 !important;
     right: 0 !important;
     background-color: var(--demis-sticky-bg, #ffffff);
 }

 /* ── Responsive Desktop / Mobile Header Visibility ───────────────────────── */
 .demis-header-single-wrap {
     display: block !important;
     width: 100%;
 }
 
 /* Only apply responsive swap when BOTH Desktop and Mobile headers are active */
 #demis-site-header.demis-has-dual-header .demis-header-desktop-wrap {
     display: block;
     width: 100%;
 }
 #demis-site-header.demis-has-dual-header .demis-header-mobile-wrap {
     display: none;
     width: 100%;
 }
 
 @media (max-width: 1024px) {
     #demis-site-header.demis-has-dual-header .demis-header-desktop-wrap {
         display: none !important;
     }
     #demis-site-header.demis-has-dual-header .demis-header-mobile-wrap {
         display: block !important;
     }
 }
 
 /* ── Search Modal & Popup ─────────────────────────────────────────────────── */
body.demis-search-modal-active {
    overflow: hidden !important;
}

.demis-search-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    box-sizing: border-box;
    vertical-align: middle;
}

.demis-search-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    color: inherit;
    line-height: 1;
    font-size: 15px;
    box-sizing: border-box;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.demis-search-icon-btn svg,
.demis-search-icon-btn i {
    display: inline-block;
    vertical-align: middle;
    width: 1.15em;
    height: 1.15em;
    font-size: 1.15em;
    stroke: currentColor;
    transition: stroke 0.2s ease, color 0.2s ease;
}

.demis-search-form {
    display: flex;
    flex-direction: column;
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.demis-search-form-bar {
    width: 100%;
}

.demis-search-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    z-index: 99999999 !important;
    display: none;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 20px;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
}

.demis-search-modal.is-open {
    display: flex !important;
}

.demis-search-modal-backdrop {
    position: fixed !important;
    inset: 0 !important;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.demis-search-modal-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 640px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    padding: 24px;
    animation: demisModalPop 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
    margin: auto;
}

/* Dedicated top bar preventing close-button collision */
.demis-search-modal-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
    width: 100%;
}

.demis-search-modal-headings {
    flex: 1;
    min-width: 0;
}

.demis-search-modal-title {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
}

.demis-search-modal-subtitle {
    margin: 4px 0 0 0;
    font-size: 13px;
    color: #64748b;
}

.demis-search-modal-close {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    background: #f1f5f9;
    border: none;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.demis-search-modal-close:hover {
    background: #fee2e2;
    color: #ef4444;
    transform: rotate(90deg);
}

/* Fullscreen Overlay Mode */
.demis-search-modal-fullscreen .demis-search-modal-container {
    background: transparent;
    box-shadow: none;
    max-width: 800px;
    padding: 0;
    width: 100%;
    padding: 0 16px;
    box-sizing: border-box;
    margin-top: max(80px, calc(env(safe-area-inset-top) + 68px)) !important;
    margin-bottom: 24px !important;
    position: relative;
    z-index: 2;
}

@media (min-width: 768px) and (min-height: 701px) {
    .demis-search-modal-fullscreen .demis-search-modal-container {
        margin: auto !important;
    }
}

.demis-search-modal-fullscreen .demis-search-modal-top-bar {
    border-bottom: none;
    margin-bottom: 28px;
    justify-content: center;
    text-align: center;
}

.demis-search-modal-fullscreen .demis-search-modal-title {
    color: #ffffff;
    font-size: 26px;
    text-align: center;
}

.demis-search-modal-fullscreen .demis-search-modal-subtitle {
    color: #cbd5e1;
    font-size: 15px;
    text-align: center;
}

.demis-search-modal-fullscreen .demis-fullscreen-close-btn {
    position: fixed !important;
    top: 24px !important;
    left: 24px !important;
    right: auto !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    top: max(16px, env(safe-area-inset-top)) !important;
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    cursor: pointer !important;
    z-index: 999999999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

[dir="rtl"] .demis-search-modal-fullscreen .demis-fullscreen-close-btn {
    left: 24px !important;
    left: 20px !important;
    right: auto !important;
}

[dir="ltr"] .demis-search-modal-fullscreen .demis-fullscreen-close-btn,
body:not([dir="rtl"]) .demis-search-modal-fullscreen .demis-fullscreen-close-btn {
    right: 20px !important;
    left: auto !important;
}

.demis-search-modal-fullscreen .demis-fullscreen-close-btn:hover {
    background: #ef4444 !important;
    color: #ffffff !important;
    transform: rotate(90deg) !important;
    background: #ef4444;
    color: #ffffff;
    transform: rotate(90deg);
}

/* Search Inner Form Elements */
.demis-search-inner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
}

.demis-search-input-wrap {
    position: relative;
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
}

.demis-search-input {
    width: 100%;
    height: 46px;
    padding: 8px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    background: #f8fafc;
    color: #1e293b;
    font-family: inherit;
    line-height: normal;
}

[dir="rtl"] .demis-search-input {
    padding-left: 40px;
    padding-right: 16px;
}

[dir="ltr"] .demis-search-input,
body:not([dir="rtl"]) .demis-search-input {
    padding-right: 40px;
    padding-left: 16px;
}

.demis-search-input::placeholder {
    color: #94a3b8;
    opacity: 1;
}

.demis-search-input:focus {
    background: #ffffff;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3.5px rgba(59, 130, 246, 0.12);
}

.demis-search-modal-fullscreen .demis-search-input {
    background: #ffffff;
    height: 60px;
    font-size: 18px;
    border-radius: 14px;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.35);
}

/* Spinner inside search input */
.demis-search-spinner {
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: demisSearchSpin 0.65s linear infinite;
    pointer-events: none;
    z-index: 3;
    box-sizing: border-box;
}

[dir="rtl"] .demis-search-spinner {
    left: 14px;
    right: auto;
}

[dir="ltr"] .demis-search-spinner,
body:not([dir="rtl"]) .demis-search-spinner {
    right: 14px;
    left: auto;
}

.demis-search-input-wrap.is-loading .demis-search-spinner {
    display: block;
}

@keyframes demisSearchSpin {
    0% { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
}

.demis-search-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 46px;
    padding: 0 20px;
    background: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    flex-shrink: 0;
    box-sizing: border-box;
    font-family: inherit;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.demis-search-submit-btn svg,
.demis-search-submit-btn i {
    width: 17px;
    height: 17px;
    font-size: 17px;
    stroke: currentColor;
    flex-shrink: 0;
}

.demis-search-modal-fullscreen .demis-search-submit-btn {
    height: 60px;
    padding: 0 28px;
    font-size: 16px;
    border-radius: 14px;
}

.demis-search-submit-btn:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.26);
}

.demis-search-submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

/* ── Ajax Live Search Dropdown & Results ───────────────────────────────────── */
.demis-ajax-search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 9999999;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 16px 36px -8px rgba(15, 23, 42, 0.16), 0 2px 8px rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
    overflow: hidden;
    animation: demisFadeDown 0.2s ease-out;
    display: none;
    flex-direction: column;
    max-height: min(480px, calc(100dvh - 120px), calc(100vh - 120px));
}

.demis-ajax-search-results.is-visible,
.demis-ajax-search-results[style*="display: block"],
.demis-ajax-search-results[style*="display: flex"] {
    display: flex !important;
}

/* Dropup support when space below input is tight */
.demis-ajax-search-results.demis-results-dropup {
    top: auto !important;
    bottom: calc(100% + 8px) !important;
    box-shadow: 0 -16px 36px -8px rgba(15, 23, 42, 0.16), 0 -2px 8px rgba(0, 0, 0, 0.04) !important;
    animation: demisFadeUp 0.2s ease-out !important;
}

@keyframes demisFadeUp {
    0% { opacity: 0; transform: translateY(6px); }
    100% { opacity: 1; transform: translateY(0); }
}

.demis-search-modal-fullscreen .demis-ajax-search-results {
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.45);
    border-radius: 14px;
}

@keyframes demisFadeDown {
    0% { opacity: 0; transform: translateY(-6px); }
    100% { opacity: 1; transform: translateY(0); }
}

.demis-ajax-results-list {
    flex: 1 1 auto;
    min-height: 0;
    max-height: 380px;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 4px 0;
    margin: 0;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.demis-ajax-results-list::-webkit-scrollbar {
    width: 6px;
}

.demis-ajax-results-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 6px;
}

.demis-ajax-results-list::-webkit-scrollbar-track {
    background: transparent;
}

/* Ajax Result Item */
.demis-ajax-item {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    border-bottom: 1px solid #f1f5f9;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.15s ease;
    cursor: pointer;
    box-sizing: border-box;
    outline: none;
}

.demis-ajax-item:last-child {
    border-bottom: none;
}

.demis-ajax-item:hover,
.demis-ajax-item.is-selected {
    background-color: #f8fafc;
    text-decoration: none;
}

/* Item Thumbnail */
.demis-ajax-thumb {
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: 8px;
    overflow: hidden;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-inline-end: 12px;
    flex-shrink: 0;
}

.demis-ajax-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.demis-ajax-thumb-fallback {
    width: 20px;
    height: 20px;
    stroke: #94a3b8;
    color: #94a3b8;
}

/* Item Info Area */
.demis-ajax-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.demis-ajax-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

/* Item Title */
.demis-ajax-title {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
    flex: 1;
    transition: color 0.15s ease;
}

.demis-ajax-item:hover .demis-ajax-title,
.demis-ajax-item.is-selected .demis-ajax-title {
    color: #2563eb;
}

/* Matching Text Highlight */
.demis-ajax-title mark {
    background: rgba(37, 99, 235, 0.12);
    color: #1d4ed8;
    font-weight: 700;
    border-radius: 3px;
    padding: 0 3px;
}

/* Badge (Category / Post Type) */
.demis-ajax-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    padding: 2px 7px;
    border-radius: 5px;
    background: #eff6ff;
    color: #2563eb;
    line-height: 1.3;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Excerpt snippet */
.demis-ajax-excerpt {
    font-size: 12px;
    color: #64748b;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

/* Bottom Meta Row */
.demis-ajax-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 2px;
}

/* Product Price */
.demis-ajax-price {
    font-size: 13px;
    font-weight: 700;
    color: #059669;
    line-height: 1.2;
}

.demis-ajax-price del {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 400;
    margin-inline-end: 4px;
}

.demis-ajax-price ins {
    text-decoration: none;
}

/* Date */
.demis-ajax-date {
    font-size: 11px;
    color: #94a3b8;
    white-space: nowrap;
}

/* ── Ajax Live Search Pagination ───────────────────────────────────────────── */
.demis-ajax-pagination {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 12px;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
    box-sizing: border-box;
    font-size: 12px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.demis-ajax-pagination-info {
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
    white-space: nowrap;
}

.demis-ajax-page-controls {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: nowrap;
}

.demis-ajax-page-numbers {
    display: flex;
    align-items: center;
    gap: 3px;
}

.demis-ajax-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 6px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    line-height: 1;
    font-family: inherit;
    box-sizing: border-box;
    outline: none;
    flex-shrink: 0;
}

.demis-ajax-page-btn:hover:not(:disabled) {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #1e293b;
}

.demis-ajax-page-btn.is-active {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
    font-weight: 700;
    cursor: default;
}

.demis-ajax-page-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    background: #f8fafc;
    border-color: #e2e8f0;
}

.demis-ajax-page-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    color: #94a3b8;
    font-size: 11px;
    user-select: none;
}

.demis-ajax-page-nav {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0 8px;
    font-size: 11px;
}

.demis-ajax-page-nav svg,
.demis-ajax-page-nav i {
    width: 12px;
    height: 12px;
    stroke: currentColor;
    flex-shrink: 0;
}

.demis-ajax-page-nav.is-icon-only {
    padding: 0;
    width: 28px;
    min-width: 28px;
    justify-content: center;
}

/* Responsive Pagination for Mobile Screens */
@media (max-width: 480px) {
    .demis-ajax-pagination {
        justify-content: center;
        padding: 8px 6px;
        gap: 6px;
    }
    .demis-ajax-pagination-info {
        width: 100%;
        text-align: center;
        order: -1;
        font-size: 11px;
        margin-bottom: 2px;
    }
    .demis-ajax-page-controls {
        width: 100%;
        justify-content: center;
        gap: 3px;
    }
    /* Auto-compact Prev/Next text on mobile to prevent clipping */
    .demis-ajax-page-nav:not(.is-text-only) span {
        display: none !important;
    }
    .demis-ajax-page-nav:not(.is-text-only) {
        padding: 0;
        width: 28px;
        min-width: 28px;
        justify-content: center;
    }
    .demis-ajax-page-btn {
        min-width: 26px;
        height: 26px;
        padding: 0 4px;
        font-size: 11px;
    }
}

/* Compact layout for narrow dropdown containers */
.demis-search-dropdown-box .demis-ajax-pagination {
    justify-content: center;
    padding: 8px 6px;
    gap: 6px;
}
.demis-search-dropdown-box .demis-ajax-pagination-info {
    width: 100%;
    text-align: center;
    order: -1;
    font-size: 11px;
    margin-bottom: 2px;
}
.demis-search-dropdown-box .demis-ajax-page-controls {
    width: 100%;
    justify-content: center;
    gap: 3px;
}
.demis-search-dropdown-box .demis-ajax-page-nav:not(.is-text-only) span {
    display: none !important;
}
.demis-search-dropdown-box .demis-ajax-page-nav:not(.is-text-only) {
    padding: 0;
    width: 28px;
    min-width: 28px;
    justify-content: center;
}

.demis-ajax-results-list.is-page-loading {
    opacity: 0.45;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

/* View All Footer */
.demis-ajax-view-all {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 16px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    text-decoration: none;
    color: #2563eb;
    font-size: 13px;
    font-weight: 600;
    transition: background-color 0.15s ease, color 0.15s ease;
    box-sizing: border-box;
    outline: none;
    flex-shrink: 0;
}

.demis-ajax-view-all:hover,
.demis-ajax-view-all:focus {
    background: #f1f5f9;
    color: #1d4ed8;
    text-decoration: none;
}

.demis-ajax-view-all-icon {
    transition: transform 0.2s ease;
}

[dir="rtl"] .demis-ajax-view-all-icon {
    transform: rotate(0deg);
}

[dir="ltr"] .demis-ajax-view-all-icon,
body:not([dir="rtl"]) .demis-ajax-view-all-icon {
    transform: rotate(180deg);
}

/* Empty State */
.demis-ajax-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 30px 16px;
    color: #64748b;
    font-size: 13px;
    text-align: center;
}

.demis-ajax-empty-icon {
    width: 32px;
    height: 32px;
    color: #94a3b8;
    stroke: currentColor;
}

/* Dropdown Search Box */
.demis-search-dropdown-box {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 320px;
    max-width: 90vw;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.14);
    padding: 14px;
    z-index: 99999;
    box-sizing: border-box;
}

[dir="rtl"] .demis-search-dropdown-box {
    right: 0;
    left: auto;
}

[dir="ltr"] .demis-search-dropdown-box {
    left: 0;
    right: auto;
}

/* ── Mobile Form Layout Variations ────────────────────────────────────────── */
/* 1. Mobile Column (Vertical: field on top, full-width button below) */
@media (max-width: 767px) {
    .demis-mobile-layout-column .demis-search-inner,
    .demis-search-inner.demis-mobile-layout-column {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }
    .demis-mobile-layout-column .demis-search-submit-btn,
    .demis-search-inner.demis-mobile-layout-column .demis-search-submit-btn {
        width: 100% !important;
        justify-content: center !important;
        height: 48px !important;
    }
}

/* 2. Mobile Row (Horizontal inline layout) */
@media (max-width: 767px) {
    .demis-mobile-layout-row .demis-search-inner,
    .demis-search-inner.demis-mobile-layout-row {
        flex-direction: row !important;
    }
    .demis-mobile-layout-row .demis-search-input-wrap,
    .demis-search-inner.demis-mobile-layout-row .demis-search-input-wrap {
        flex: 1 !important;
    }
}

/* 3. Mobile Compact (Compact icon button inside input field) */
@media (max-width: 767px) {
    .demis-mobile-layout-compact .demis-search-inner,
    .demis-search-inner.demis-mobile-layout-compact {
        position: relative !important;
        flex-direction: row !important;
        gap: 0 !important;
    }
    .demis-mobile-layout-compact .demis-submit-btn-text,
    .demis-search-inner.demis-mobile-layout-compact .demis-submit-btn-text {
        display: none !important;
    }
    .demis-mobile-layout-compact .demis-search-submit-btn,
    .demis-search-inner.demis-mobile-layout-compact .demis-search-submit-btn {
        position: absolute !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        left: 5px !important;
        right: auto !important;
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        padding: 0 !important;
        border-radius: 8px !important;
        z-index: 2 !important;
    }
    [dir="rtl"] .demis-mobile-layout-compact .demis-search-input,
    [dir="rtl"] .demis-search-inner.demis-mobile-layout-compact .demis-search-input {
        padding-left: 48px !important;
    }
    [dir="ltr"] .demis-mobile-layout-compact .demis-search-submit-btn,
    [dir="ltr"] .demis-search-inner.demis-mobile-layout-compact .demis-search-submit-btn {
        right: 5px !important;
        left: auto !important;
    }
    [dir="ltr"] .demis-mobile-layout-compact .demis-search-input,
    [dir="ltr"] .demis-search-inner.demis-mobile-layout-compact .demis-search-input {
        padding-right: 48px !important;
    }
}

/* 4. Mobile Auto (Adaptive layout: becomes column on narrow screens) */
@media (max-width: 540px) {
    .demis-mobile-layout-auto .demis-search-inner,
    .demis-search-inner.demis-mobile-layout-auto {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }
    .demis-mobile-layout-auto .demis-search-submit-btn,
    .demis-search-inner.demis-mobile-layout-auto .demis-search-submit-btn {
        width: 100% !important;
        justify-content: center !important;
    }
}

/* 5. Hide button text in mobile */
@media (max-width: 767px) {
    .demis-mobile-hide-btn-text .demis-submit-btn-text {
        display: none !important;
    }
    .demis-mobile-hide-btn-text .demis-search-submit-btn {
        padding: 0 14px !important;
    }
}

/* 6. Inline Bar mobile collapse to icon trigger */
@media (max-width: 767px) {
    .demis-search-style-bar.demis-mobile-bar-collapse .demis-search-form-bar {
        display: none !important;
    }
    .demis-search-style-bar.demis-mobile-bar-collapse .demis-search-bar-mobile-trigger {
        display: inline-flex !important;
    }
    .demis-search-dropdown-box {
        position: fixed !important;
        top: 72px !important;
        left: 16px !important;
        right: 16px !important;
        min-width: auto !important;
        width: auto !important;
        max-width: none !important;
        max-height: calc(100dvh - 88px) !important;
        max-height: calc(100vh - 88px) !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        box-shadow: 0 20px 48px rgba(0,0,0,0.22) !important;
    }
}

/* ── Mobile & Short Screen Search Results & Modal Adaptations ──────────────── */
@media (max-width: 767px), (max-height: 700px) {
    /* Modal container docks near top to maximize vertical room for results */
    .demis-search-modal {
        align-items: flex-start !important;
        padding: 12px 10px 24px 10px !important;
    }
    .demis-search-modal-container {
        margin-top: max(10px, env(safe-area-inset-top)) !important;
        margin-bottom: 24px !important;
        padding: 16px 14px !important;
        max-height: calc(100dvh - 20px) !important;
        max-height: calc(100vh - 20px) !important;
    }
    .demis-search-modal-top-bar {
        margin-bottom: 12px !important;
        padding-bottom: 8px !important;
    }

    /* Fullscreen mode adjustments */
    .demis-search-modal-fullscreen {
        padding: 12px 10px !important;
    }
    .demis-search-modal-fullscreen .demis-fullscreen-close-btn {
        top: max(14px, env(safe-area-inset-top)) !important;
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
    }
    .demis-search-modal-fullscreen .demis-search-modal-container {
        margin-top: 36px !important;
        margin-top: max(72px, calc(env(safe-area-inset-top) + 60px)) !important;
        margin-bottom: 20px !important;
    }
    .demis-search-modal-fullscreen .demis-search-modal-title {
        font-size: 20px !important;
    }
    .demis-search-modal-fullscreen .demis-search-input {
        height: 48px !important;
        font-size: 15px !important;
    }
    .demis-search-modal-fullscreen .demis-search-submit-btn {
        height: 48px !important;
        padding: 0 18px !important;
    }

    /* Results list and items sizing on mobile / short screens */
    .demis-ajax-search-results {
        max-height: min(420px, calc(100dvh - 110px), calc(100vh - 110px));
    }
    .demis-ajax-results-list {
        max-height: none; /* Flex child dynamically fills available space */
    }
    .demis-ajax-item {
        padding: 8px 10px;
    }
    .demis-ajax-thumb {
        width: 40px;
        height: 40px;
        min-width: 40px;
        margin-inline-end: 10px;
    }
    .demis-ajax-title {
        font-size: 13px;
    }
    .demis-ajax-pagination {
        padding: 6px 8px;
    }
    .demis-ajax-view-all {
        padding: 9px 12px;
        font-size: 12px;
    }
}

/* Extreme Short Screens (Mobile landscape or virtual keyboard open: height <= 520px) */
@media (max-height: 520px) {
    .demis-search-modal {
        padding: 6px !important;
    }
    .demis-search-modal-container {
        margin-top: 4px !important;
        margin-bottom: 12px !important;
        padding: 10px 12px !important;
    }
    .demis-search-modal-top-bar {
        margin-bottom: 6px !important;
        padding-bottom: 4px !important;
    }
    .demis-search-modal-title {
        font-size: 14px !important;
    }
    .demis-search-modal-subtitle {
        display: none !important;
    }
    .demis-search-modal-close {
        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;
    }
    .demis-search-input {
        height: 38px !important;
        font-size: 13px !important;
        padding: 4px 12px !important;
    }
    .demis-search-submit-btn {
        height: 38px !important;
        padding: 0 12px !important;
        font-size: 13px !important;
    }
    .demis-ajax-search-results {
        max-height: calc(100dvh - 72px) !important;
        max-height: calc(100vh - 72px) !important;
    }
    .demis-ajax-thumb {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
    }
    .demis-ajax-excerpt {
        display: none !important;
    }
    .demis-ajax-item {
        padding: 6px 8px !important;
    }
    .demis-ajax-view-all {
        padding: 7px 10px !important;
    }
    .demis-ajax-pagination {
        padding: 4px 6px !important;
    }
    .demis-search-modal-fullscreen .demis-fullscreen-close-btn {
        top: 8px !important;
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
    }
    .demis-search-modal-fullscreen .demis-search-modal-container {
        margin-top: 48px !important;
        margin-bottom: 12px !important;
    }
}

@keyframes demisModalPop {
    0% { opacity: 0; transform: scale(0.92) translateY(10px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}
 
 /* ── Mobile Hamburger & Navigation ────────────────────────────────────────── */
.demis-hamburger-wrap {
    display: none;
    align-items: center;
    width: 100%;
}

.demis-hamburger-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px 10px;
    border-radius: 6px;
    color: inherit;
    line-height: 1;
    transition: background-color 0.2s, color 0.2s;
}

.demis-hamburger-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.demis-hamburger-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 22px;
    height: 16px;
}

.demis-hamburger-icon span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: currentColor;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Animated X when active */
.demis-hamburger-btn.is-active .demis-hamburger-icon span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.demis-hamburger-btn.is-active .demis-hamburger-icon span:nth-child(2) {
    opacity: 0;
}
.demis-hamburger-btn.is-active .demis-hamburger-icon span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.demis-hamburger-text {
    font-size: 14px;
    font-weight: 600;
}

/* ── Dropdown Mobile Menu ─────────────────────────────────────────────────── */
.demis-mobile-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    border-top: 1px solid #f1f5f9;
    z-index: 99999;
    padding: 12px 0;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
}

.demis-mobile-dropdown-menu.is-open {
    display: block !important;
    animation: demisDropdownSlideDown 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes demisDropdownSlideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Offcanvas Drawer Mobile Menu ─────────────────────────────────────────── */
.demis-offcanvas-drawer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999999 !important;
    visibility: hidden;
    pointer-events: none;
    transition: visibility 0.3s ease;
}

.demis-offcanvas-drawer.is-open {
    visibility: visible;
    pointer-events: auto;
}

.demis-offcanvas-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.demis-offcanvas-drawer.is-open .demis-offcanvas-backdrop {
    opacity: 1;
}

.demis-offcanvas-panel {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 320px;
    max-width: 85vw;
    height: 100%;
    background: #ffffff;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    z-index: 2;
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

/* Slide from right (RTL default) */
.demis-offcanvas-side-right .demis-offcanvas-panel {
    right: 0;
    left: auto;
    transform: translateX(100%);
}
.demis-offcanvas-side-right.is-open .demis-offcanvas-panel {
    transform: translateX(0);
}

/* Slide from left */
.demis-offcanvas-side-left .demis-offcanvas-panel {
    left: 0;
    right: auto;
    transform: translateX(-100%);
}
.demis-offcanvas-side-left.is-open .demis-offcanvas-panel {
    transform: translateX(0);
}

.demis-offcanvas-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
    background: #f8fafc;
}

.demis-offcanvas-title {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
}

.demis-offcanvas-close-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    color: #64748b;
    padding: 4px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: color 0.2s, background-color 0.2s;
}

.demis-offcanvas-close-btn:hover {
    color: #ef4444;
    background-color: #fee2e2;
}

.demis-offcanvas-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    display: flex;
    flex-direction: column;
}

/* ── Mobile Drawer Search ─────────────────────────────────────────────────── */
.demis-drawer-search {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    background: #ffffff;
}

.demis-drawer-search-form {
    display: flex;
    align-items: center;
    position: relative;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.demis-drawer-search-form:focus-within {
    border-color: #0284c7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
    background: #ffffff;
}

.demis-drawer-search-input {
    flex: 1;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    padding: 10px 14px !important;
    font-size: 13px !important;
    color: #1e293b !important;
    box-shadow: none !important;
    min-width: 0;
}

.demis-drawer-search-input::placeholder {
    color: #94a3b8;
}

.demis-drawer-search-btn {
    background: transparent;
    border: none;
    padding: 10px 14px;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.demis-drawer-search-btn:hover {
    color: #0284c7;
}

/* ── Mobile Drawer Tabs Nav ───────────────────────────────────────────────── */
.demis-drawer-tabs-nav {
    display: flex;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.demis-drawer-tabs-nav .demis-tab-btn {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: transparent;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    text-align: center;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}

.demis-drawer-tabs-nav .demis-tab-btn:hover {
    color: #0f172a;
    background: #f1f5f9;
}

.demis-drawer-tabs-nav .demis-tab-btn.is-active {
    color: #0284c7;
    border-bottom-color: #0284c7;
    background: #ffffff;
}

.demis-drawer-tabs-content .demis-tab-pane {
    display: none;
}

.demis-drawer-tabs-content .demis-tab-pane.is-active {
    display: block;
}

/* ── Mobile Drawer Account Bar ────────────────────────────────────────────── */
.demis-drawer-account {
    border-top: 1px solid #f1f5f9;
    padding: 14px 20px;
    background: #f8fafc;
    margin-top: auto;
}

.demis-drawer-account-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #1e293b;
    transition: color 0.2s;
}

.demis-drawer-account-link:hover {
    color: #0284c7;
}

.demis-drawer-account-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.demis-drawer-account-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.demis-drawer-account-name {
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.3;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.demis-drawer-account-sub {
    font-size: 11px;
    color: #64748b;
    line-height: 1.2;
}

/* When submenu_action is 'item', make parent menu item link cursor pointer */
[data-submenu-action="item"] .demis-mobile-nav-list li.menu-item-has-children > .demis-mobile-item-wrap > a,
[data-submenu-action="item"] .demis-mobile-nav-list li.demis-mega-menu-item > .demis-mobile-item-wrap > a {
    cursor: pointer;
}

/* Prevent body scrolling when offcanvas is open */
body.demis-offcanvas-active {
    overflow: hidden !important;
}

/* ── Mobile Menu Items & Accordions ───────────────────────────────────────── */
.demis-mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.demis-mobile-nav-list li {
    position: relative;
    border-bottom: 1px solid #f1f5f9;
}

.demis-mobile-item-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.demis-mobile-nav-list li a {
    flex: 1;
    display: block;
    padding: 12px 20px;
    color: #1e293b;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s, background-color 0.2s;
}

.demis-mobile-nav-list li a:hover,
.demis-mobile-nav-list li.current-menu-item > a {
    color: #0284c7;
    background-color: #f0f9ff;
}

.demis-submenu-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 12px 16px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.demis-submenu-toggle svg {
    transition: transform 0.25s ease;
}

.demis-submenu-toggle:hover {
    color: #0284c7;
}

.demis-submenu-toggle.is-active svg {
    transform: rotate(180deg);
}

.demis-mobile-nav-list .sub-menu,
.demis-mobile-nav-list .demis-mega-menu-dropdown {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0 0 0 16px;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
}

[dir="rtl"] .demis-mobile-nav-list .sub-menu,
[dir="rtl"] .demis-mobile-nav-list .demis-mega-menu-dropdown {
    padding: 0 16px 0 0;
}

.demis-mobile-nav-list .sub-menu.is-open,
.demis-mobile-nav-list .demis-mega-menu-dropdown.is-open {
    display: block;
}

.demis-mobile-nav-list .sub-menu li a {
    padding: 10px 20px;
    font-size: 13px;
    color: #475569;
}

/* ==========================================================================
   Demis Header Builder - Fixed Base Widget Styles & Responsive Layout
   ========================================================================== */

/* ── Global Header Container ──────────────────────────────────────────────── */
.whb-header {
    position: relative;
    width: 100%;
    z-index: 500;
    font-family: inherit;
    box-sizing: border-box;
    background-color: transparent;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.whb-header *,
.whb-header *::before,
.whb-header *::after {
    box-sizing: border-box;
}

/* Hide native theme header when Demis Header is active */
body.has-demis-header #site-header,
body.has-demis-header .site-header:not(.whb-header),
body.has-demis-header header.elementor-theme-builder-header:not(.whb-header) {
    display: none !important;
}

/* ── Overlap & Boxed Layout ───────────────────────────────────────────────── */
.whb-header.whb-overcontent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 500;
    background-color: transparent;
}

/* ── Unified Container & Boxed Sizing System ─────────────────────────────── */
:root {
    --whb-container-width: var(--wd-container-w, 1240px);
    --whb-boxed-width: var(--wd-container-w, 1240px);
    --whb-boxed-gutter: 15px;
    --whb-boxed-top-offset: 15px;
    --whb-boxed-radius: 15px;
    --whb-sticky-container-radius: 15px;
}

@media (max-width: 768px) {
    :root {
        --whb-boxed-gutter: 10px;
        --whb-boxed-top-offset: 10px;
    }
}

.whb-header.whb-boxed:not(.whb-full-width),
.whb-header.whb-overcontent.whb-boxed:not(.whb-full-width) {
    width: min(var(--whb-container-width, 1240px), calc(100% - (2 * var(--whb-boxed-gutter, 15px)))) !important;
    max-width: var(--whb-container-width, 1240px) !important;
    margin-inline: auto !important;
    left: 0 !important;
    right: 0 !important;
    box-sizing: border-box !important;
    transition: top 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                max-width 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.whb-header.whb-overcontent.whb-boxed:not(.whb-full-width) {
    top: var(--whb-boxed-top-offset, 15px);
}

.whb-header.whb-overcontent.whb-boxed:not(.whb-full-width) .whb-row,
.whb-header.whb-boxed:not(.whb-full-width) .whb-row {
    border-radius: var(--whb-boxed-radius, 15px);
}

body.admin-bar .whb-header.whb-overcontent.whb-boxed:not(.whb-full-width) {
    top: calc(32px + var(--whb-boxed-top-offset, 15px));
}

@media (max-width: 782px) {
    body.admin-bar .whb-header.whb-overcontent.whb-boxed:not(.whb-full-width) {
        top: calc(46px + var(--whb-boxed-top-offset, 10px));
    }
}

@media (max-width: 768px) {
    .whb-header.whb-boxed:not(.whb-full-width),
    .whb-header.whb-overcontent.whb-boxed:not(.whb-full-width) {
        width: min(var(--whb-container-width, 1240px), calc(100% - (2 * var(--whb-boxed-gutter, 10px)))) !important;
        max-width: var(--whb-container-width, 1240px) !important;
    }
    .whb-header.whb-overcontent.whb-boxed:not(.whb-full-width) {
        top: var(--whb-boxed-top-offset, 10px);
    }
}

/* ── Full Width Header Overrides (Unscrolled and Sticky) ─────────────────── */
.whb-header.whb-full-width,
.whb-header.whb-full-width.whb-boxed,
.whb-header:not(.whb-boxed),
.whb-header.whb-overcontent:not(.whb-boxed) {
    max-width: 100% !important;
    width: 100% !important;
    left: 0 !important;
    right: 0 !important;
    margin-inline: 0 !important;
    top: 0 !important;
    border-radius: 0 !important;
}

.whb-header.whb-full-width .whb-row:not(.is-sticky):not(.whb-sticked):not(.whb-sticky-container),
.whb-header:not(.whb-boxed) .whb-row:not(.is-sticky):not(.whb-sticked):not(.whb-sticky-container),
.whb-header.whb-overcontent:not(.whb-boxed) .whb-row:not(.is-sticky):not(.whb-sticked):not(.whb-sticky-container) {
    border-radius: 0 !important;
}

/* ── Main Navigation Structure ────────────────────────────────────────────── */
.whb-mainnav {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* ── Rows ─────────────────────────────────────────────────────────────────── */
.whb-row {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    background-color: transparent;
    transition: background 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                background-color 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                border-radius 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                min-height 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                height 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                top 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                width 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                padding 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                margin 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                -webkit-backdrop-filter 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                backdrop-filter 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.whb-row-inner,
.whb-row .container,
.whb-row-inner.container {
    width: 100%;
    max-width: var(--whb-container-width, 1240px);
    margin-inline: auto;
    padding-inline: 0 !important;
    box-sizing: border-box;
    transition: max-width 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                padding 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                min-height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.whb-row.whb-sticky-container {
    width: min(var(--whb-container-width, 1240px), calc(100% - (2 * var(--whb-boxed-gutter, 15px)))) !important;
    max-width: var(--whb-container-width, 1240px) !important;
    margin-inline: auto !important;
    border-radius: var(--whb-sticky-container-radius, 15px) !important;
    box-sizing: border-box !important;
    transition: backdrop-filter 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                -webkit-backdrop-filter 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                background-color 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                min-height 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 768px) {
    .whb-row.whb-sticky-container {
        width: min(var(--whb-container-width, 1240px), calc(100% - (2 * var(--whb-boxed-gutter, 10px)))) !important;
        max-width: var(--whb-container-width, 1240px) !important;
    }
}

.whb-row.whb-sticky-container .whb-row-inner,
.whb-header.whb-boxed .whb-row-inner {
    max-width: 100% !important;
    width: 100% !important;
    margin-inline: auto !important;
    padding-inline: 0 !important;
    box-sizing: border-box !important;
}

.whb-full-width .whb-row:not(.whb-sticky-container) .whb-row-inner,
.whb-row.whb-full-width:not(.whb-sticky-container) .whb-row-inner {
    max-width: 100% !important;
    width: 100% !important;
    padding-inline: 0 !important;
}

/* ── Flex Row & Column Layout ─────────────────────────────────────────────── */
.whb-flex-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: var(--whb-row-gap, 16px);
    min-height: inherit;
    box-sizing: border-box;
    transition: min-height 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                gap 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.whb-col {
    display: flex;
    align-items: center;
    flex: 0 1 auto;
    min-width: 0;
    height: 100%;
    min-height: inherit;
    box-sizing: border-box;
    transition: background 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                background-color 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                border-radius 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                min-height 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                padding 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                margin 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.whb-sticked .whb-transparent-on-scroll,
.is-sticky .whb-transparent-on-scroll {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
}

.whb-col.whb-transparent-on-scroll {
    transition: background 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                background-color 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                border-radius 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.whb-col-inner {
    display: flex;
    align-items: center;
    gap: var(--whb-col-gap, 16px);
    width: 100%;
    height: 100%;
    min-height: inherit;
    flex-wrap: nowrap;
    box-sizing: border-box;
}

.whb-col-element {
    display: inline-flex;
    align-items: center;
    box-sizing: border-box;
    max-height: 100%;
    vertical-align: middle;
    flex-shrink: 0;
}

/* Alignment within columns */
.whb-col-left {
    justify-content: flex-start;
    margin-inline-end: auto !important;
}

.whb-col-left .whb-col-inner {
    justify-content: flex-start;
}

.whb-col-center {
    justify-content: center;
    margin-inline: auto !important;
    flex: 1 1 auto;
}

.whb-col-center .whb-col-inner {
    justify-content: center;
}

.whb-col-right {
    justify-content: flex-end;
    margin-inline-start: auto !important;
}

.whb-col-right .whb-col-inner {
    justify-content: flex-end;
}

/* ── Flex Layout Options ──────────────────────────────────────────────────── */
.whb-flex-middle .whb-col-left,
.whb-flex-middle .whb-col-right {
    flex: 0 1 auto;
}
.whb-flex-middle .whb-col-center {
    flex: 1 1 auto;
}

.whb-equal-sides .whb-col-left,
.whb-equal-sides .whb-col-right {
    flex: 1 1 0%;
}
.whb-equal-sides .whb-col-center {
    flex: 0 1 auto;
}

.whb-flex-content .whb-col-left,
.whb-flex-content .whb-col-right {
    flex: 0 1 auto;
}
.whb-flex-content .whb-col-center {
    flex: 0 1 auto;
    margin-inline: auto !important;
    justify-content: center;
}

.whb-flex-content .whb-col-left {
    justify-content: flex-start;
    margin-inline-end: auto !important;
}
.whb-flex-content .whb-col-left .whb-col-inner {
    justify-content: flex-start;
}

.whb-flex-content .whb-col-right {
    justify-content: flex-end;
    margin-inline-start: auto !important;
}
.whb-flex-content .whb-col-right .whb-col-inner {
    justify-content: flex-end;
}

.whb-flex-content .whb-col-center .whb-col-inner {
    justify-content: center;
}

.whb-flex-content .whb-flex-row {
    justify-content: space-between;
}

/* ── Row Columns Layout Options ─────────────────────────────────────────────── */
@media (min-width: 1025px) {
    .whb-col-1 .whb-column-desktop {
        flex: 1 1 100% !important;
        max-width: 100% !important;
        justify-content: center !important;
    }
    .whb-col-2 .whb-column-desktop {
        flex: 1 1 50% !important;
        max-width: 50% !important;
    }
    .whb-col-2 .whb-column-desktop:first-child {
        justify-content: flex-start !important;
    }
    .whb-col-2 .whb-column-desktop:last-child {
        justify-content: flex-end !important;
    }
    .whb-flex-content.whb-col-2 .whb-column-desktop {
        flex: 0 1 auto !important;
        max-width: none !important;
    }
    .whb-flex-content.whb-col-2 .whb-column-desktop:first-child {
        justify-content: flex-start !important;
        margin-inline-end: auto !important;
    }
    .whb-flex-content.whb-col-2 .whb-column-desktop:last-child {
        justify-content: flex-end !important;
        margin-inline-start: auto !important;
    }
}

@media (max-width: 1024px) {
    .whb-mobile-col-1 .whb-column-mobile {
        flex: 1 1 100% !important;
        max-width: 100% !important;
        justify-content: center !important;
    }
    .whb-mobile-col-2 .whb-column-mobile {
        flex: 1 1 50% !important;
        max-width: 50% !important;
    }
    .whb-mobile-col-2 .whb-column-mobile:first-child {
        justify-content: flex-start !important;
    }
    .whb-mobile-col-2 .whb-column-mobile:last-child {
        justify-content: flex-end !important;
    }
    .whb-flex-content.whb-mobile-col-2 .whb-column-mobile {
        flex: 0 1 auto !important;
        max-width: none !important;
    }
    .whb-flex-content.whb-mobile-col-2 .whb-column-mobile:first-child {
        justify-content: flex-start !important;
        margin-inline-end: auto !important;
    }
    .whb-flex-content.whb-mobile-col-2 .whb-column-mobile:last-child {
        justify-content: flex-end !important;
        margin-inline-start: auto !important;
    }
}

/* ── Color Schemes ────────────────────────────────────────────────────────── */
.whb-color-dark {
    color: #1e293b;
}

.whb-color-dark a {
    color: #1e293b;
    transition: color 0.15s ease;
}

.whb-color-dark a:hover {
    color: #0284c7;
}

.whb-color-dark svg {
    stroke: currentColor;
}

.whb-color-light {
    color: #ffffff;
}

.whb-color-light a {
    color: #ffffff;
    transition: color 0.15s ease;
}

.whb-color-light a:hover {
    color: #38bdf8;
}

.whb-color-light svg {
    stroke: currentColor;
}

@media (max-width: 1024px) {
    .whb-mobile-color-dark,
    .whb-mobile-color-dark a {
        color: #1e293b !important;
    }
    .whb-mobile-color-dark a:hover {
        color: #0284c7 !important;
    }
    .whb-mobile-color-dark svg {
        stroke: currentColor !important;
    }

    .whb-mobile-color-light,
    .whb-mobile-color-light a {
        color: #ffffff !important;
    }
    .whb-mobile-color-light a:hover {
        color: #38bdf8 !important;
    }
    .whb-mobile-color-light svg {
        stroke: currentColor !important;
    }
}

/* ── Responsive Column Visibility ─────────────────────────────────────────── */
@media (min-width: 1025px) {
    .whb-col.whb-column-mobile,
    .whb-col[class*="column_mobile"],
    .whb-hidden-desktop,
    .whb-row.whb-hidden-desktop {
        display: none !important;
    }

    .whb-col.whb-column-desktop,
    .whb-col:not([class*="column_mobile"]):not(.whb-column-mobile) {
        display: flex !important;
    }
}

@media (max-width: 1024px) {
    .whb-col.whb-column-desktop,
    .whb-col:not([class*="column_mobile"]):not(.whb-column-mobile),
    .whb-hidden-mobile,
    .whb-row.whb-hidden-mobile {
        display: none !important;
    }

    .whb-col.whb-column-mobile,
    .whb-col[class*="column_mobile"] {
        display: flex !important;
    }
}

/* ── Sticky Header Styles ─────────────────────────────────────────────────── */
.whb-sticky-placeholder {
    display: none;
    width: 100%;
    pointer-events: none;
    box-sizing: border-box;
}

.whb-row,
.whb-sticky-row {
    transition: background-color 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                background 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                border-radius 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                min-height 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                height 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                padding 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                margin 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                top 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                width 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                backdrop-filter 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                -webkit-backdrop-filter 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.whb-header.whb-sticky-shadow.whb-sticked,
.whb-sticky-row.is-sticky {
    box-shadow: var(--whb-sticky-shadow, 0 4px 20px rgba(0, 0, 0, 0.08));
}

.whb-sticky-row.is-sticky {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 9999 !important;
}

/* Seamless sticky rows - pure CSS property transitions, zero keyframe animations or jumps */
@keyframes demis-smooth-slide {
    from { opacity: 1; transform: none; }
    to { opacity: 1; transform: none; }
}

@keyframes demis-sticky-container-reveal {
    from { opacity: 1; transform: none; }
    to { opacity: 1; transform: none; }
}

@keyframes demis-sticky-fade-in {
    from { opacity: 1; }
    to { opacity: 1; }
}

.whb-header.whb-scroll-slide .whb-sticky-row.is-sticky,
.whb-header.whb-scroll-fade .whb-sticky-row.is-sticky,
.whb-sticky-row.is-sticky,
.whb-header .whb-sticky-row.is-sticky {
    animation: none !important;
    transform: none !important;
}

/* ── Container-mode Sticky & Boxed-mode Sticky: Boxed/Floating row that stays centered on scroll ── */
.whb-header.whb-boxed:not(.whb-full-width) .whb-sticky-row.is-sticky:not(.whb-sticky-full),
.whb-sticky-row.whb-sticky-container.is-sticky:not(.whb-sticky-full),
.whb-sticky-row.whb-sticky-container.whb-sticked:not(.whb-sticky-full),
.whb-header .whb-sticky-row.whb-sticky-container.is-sticky:not(.whb-sticky-full),
.whb-header .whb-sticky-row.whb-sticky-container.whb-sticked:not(.whb-sticky-full),
.whb-header .whb-row.whb-sticky-container.is-sticky:not(.whb-sticky-full),
.whb-header .whb-row.whb-sticky-container.whb-sticked:not(.whb-sticky-full),
.whb-header.whb-sticked .whb-sticky-row.whb-sticky-container:not(.whb-sticky-full) {
    top: var(--whb-boxed-top-offset, 15px) !important;
    left: 0 !important;
    right: 0 !important;
    margin-inline: auto !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    width: min(var(--whb-container-width, 1240px), calc(100% - (2 * var(--whb-boxed-gutter, 15px)))) !important;
    max-width: var(--whb-container-width, 1240px) !important;
    min-width: 0 !important;
    border-radius: var(--whb-sticky-container-radius, 15px) !important;
    box-shadow: var(--whb-sticky-shadow, 0 10px 30px -5px rgba(0, 0, 0, 0.08), 0 4px 10px -2px rgba(0, 0, 0, 0.04)) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    animation: none !important;
    transform: none !important;
    box-sizing: border-box !important;
}

@media (max-width: 768px) {
    .whb-header.whb-boxed:not(.whb-full-width) .whb-sticky-row.is-sticky:not(.whb-sticky-full),
    .whb-sticky-row.whb-sticky-container.is-sticky:not(.whb-sticky-full),
    .whb-sticky-row.whb-sticky-container.whb-sticked:not(.whb-sticky-full),
    .whb-header .whb-sticky-row.whb-sticky-container.is-sticky:not(.whb-sticky-full),
    .whb-header .whb-sticky-row.whb-sticky-container.whb-sticked:not(.whb-sticky-full),
    .whb-header .whb-row.whb-sticky-container.is-sticky:not(.whb-sticky-full),
    .whb-header .whb-row.whb-sticky-container.whb-sticked:not(.whb-sticky-full),
    .whb-header.whb-sticked .whb-sticky-row.whb-sticky-container:not(.whb-sticky-full) {
        width: min(var(--whb-container-width, 1240px), calc(100% - (2 * var(--whb-boxed-gutter, 10px)))) !important;
        max-width: var(--whb-container-width, 1240px) !important;
        top: var(--whb-boxed-top-offset, 10px) !important;
    }
}

/* Sticky Frosted Glass State: visual styling without altering layout width */
.whb-sticky-row.is-sticky.has-glassmorphism,
.whb-sticky-row.whb-sticked.has-glassmorphism,
.whb-header.whb-sticked .whb-sticky-row.has-glassmorphism {
    backdrop-filter: blur(var(--demis-sticky-blur, 16px)) saturate(180%) !important;
    -webkit-backdrop-filter: blur(var(--demis-sticky-blur, 16px)) saturate(180%) !important;
    background-color: var(--demis-sticky-bg, rgba(255, 255, 255, 0.65)) !important;
    box-shadow: var(--whb-sticky-shadow, 0 10px 30px -5px rgba(0, 0, 0, 0.08), 0 4px 10px -2px rgba(0, 0, 0, 0.04)) !important;
    color: #0f172a !important;
}

/* Sticky Frosted Glass / Granite State: Ensure High-Contrast Text and Icons */
.whb-sticky-row.is-sticky a,
.whb-sticky-row.whb-sticked a,
.whb-header.whb-sticked .whb-sticky-row a,
.whb-sticky-row.is-sticky .whb-main-nav > ul > li > a,
.whb-sticky-row.whb-sticked .whb-main-nav > ul > li > a,
.whb-header.whb-sticked .whb-main-nav > ul > li > a {
    color: #0f172a !important;
}

.whb-sticky-row.is-sticky a:hover,
.whb-sticky-row.whb-sticked a:hover,
.whb-header.whb-sticked .whb-sticky-row a:hover,
.whb-sticky-row.is-sticky .whb-main-nav > ul > li:hover > a,
.whb-sticky-row.whb-sticked .whb-main-nav > ul > li:hover > a,
.whb-header.whb-sticked .whb-main-nav > ul > li:hover > a {
    color: #0284c7 !important;
}

.whb-sticky-row.is-sticky svg,
.whb-sticky-row.whb-sticked svg,
.whb-header.whb-sticked .whb-sticky-row svg,
.whb-sticky-row.is-sticky .whb-search svg,
.whb-sticky-row.whb-sticked .whb-search svg,
.whb-sticky-row.is-sticky .whb-cart svg,
.whb-sticky-row.whb-sticked .whb-cart svg,
.whb-sticky-row.is-sticky .whb-burger svg,
.whb-sticky-row.whb-sticked .whb-burger svg,
.whb-sticky-row.is-sticky .whb-col-element,
.whb-sticky-row.whb-sticked .whb-col-element {
    stroke: #0f172a !important;
    color: #0f172a !important;
}

/* ── Full-Width Sticky Rows (spans 100% viewport edge-to-edge) ── */
.whb-header.whb-full-width .whb-sticky-row.is-sticky,
.whb-header:not(.whb-boxed) .whb-sticky-row.is-sticky:not(.whb-sticky-container),
.whb-sticky-row.is-sticky.whb-sticky-full,
.whb-sticky-row.whb-sticked.whb-sticky-full {
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    border-radius: var(--whb-sticky-row-radius, 0) !important;
    transform: none !important;
    box-sizing: border-box !important;
}

/* Sticky row inner content width rules */
.whb-header.whb-full-width .whb-sticky-row.is-sticky .whb-row-inner,
.whb-sticky-row.is-sticky.whb-sticky-full.whb-full-width .whb-row-inner,
.whb-header.whb-boxed:not(.whb-full-width) .whb-sticky-row.is-sticky:not(.whb-sticky-full) .whb-row-inner,
.whb-sticky-row.whb-sticky-container.is-sticky .whb-row-inner {
    max-width: 100% !important;
    width: 100% !important;
    padding-inline: 0 !important;
    box-sizing: border-box !important;
}

/* Default header (not full width, not boxed): content MUST stay centered at container width in sticky state */
.whb-header:not(.whb-boxed):not(.whb-full-width) .whb-sticky-row.is-sticky:not(.whb-sticky-container) .whb-row-inner {
    max-width: var(--whb-container-width, 1240px) !important;
    width: 100% !important;
    margin-inline: auto !important;
    padding-inline: 0 !important;
    box-sizing: border-box !important;
}

/* WordPress Admin Bar Compatibility */
body.admin-bar .whb-sticky-row.is-sticky:not(.whb-sticky-container) {
    top: 32px !important;
}

body.admin-bar .whb-header.whb-boxed:not(.whb-full-width) .whb-sticky-row.is-sticky:not(.whb-sticky-full),
body.admin-bar .whb-sticky-row.whb-sticky-container.is-sticky:not(.whb-sticky-full) {
    top: calc(32px + var(--whb-boxed-top-offset, 15px)) !important;
    margin-top: 0 !important;
}

@media (max-width: 782px) {
    body.admin-bar .whb-sticky-row.is-sticky:not(.whb-sticky-container) {
        top: 46px !important;
    }
    body.admin-bar .whb-header.whb-boxed:not(.whb-full-width) .whb-sticky-row.is-sticky:not(.whb-sticky-full),
    body.admin-bar .whb-sticky-row.whb-sticky-container.is-sticky:not(.whb-sticky-full) {
        top: calc(46px + var(--whb-boxed-top-offset, 10px)) !important;
        margin-top: 0 !important;
    }
}

.whb-header.whb-scroll-hide,
.whb-header.whb-scroll-hide .whb-sticky-row.is-sticky,
.whb-sticky-row.is-sticky.whb-scroll-hide {
    transform: translateY(calc(-100% - 35px)) !important;
    transition: transform 0.35s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

/* ── Responsive Sticky Row Controls ───────────────────────────────────────── */
@media (max-width: 1024px) {
    .whb-sticky-row.whb-sticky-desktop-only,
    .whb-sticky-row.whb-sticky-desktop-only.is-sticky,
    .whb-sticky-row.whb-sticky-desktop-only.whb-sticked {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        z-index: auto !important;
    }
}

@media (min-width: 1025px) {
    .whb-sticky-row.whb-sticky-mobile-only,
    .whb-sticky-row.whb-sticky-mobile-only.is-sticky,
    .whb-sticky-row.whb-sticky-mobile-only.whb-sticked {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        z-index: auto !important;
    }
}

/* ── Fixed Base Widget Styles ─────────────────────────────────────────────── */

/* 1. Logo Element */
.whb-logo,
.demis-header-logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.whb-logo .demis-logo-link,
.demis-header-logo .demis-logo-link {
    display: inline-flex;
    align-items: center;
    line-height: 1;
    text-decoration: none;
    color: inherit;
}

.whb-logo .demis-main-logo,
.demis-header-logo .demis-main-logo {
    display: block;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: max-width 0.25s ease;
}

.whb-logo .demis-site-title,
.demis-header-logo .demis-site-title {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: inherit;
    white-space: nowrap;
}

/* 2. Navigation Menus & Dropdowns */
.whb-menu,
.whb-mainmenu,
.demis-header-menu,
.demis-header-mainmenu {
    display: inline-flex;
    align-items: center;
}

.whb-secondary-nav,
.whb-main-nav,
.demis-secondary-nav,
.demis-nav {
    display: inline-flex;
    align-items: center;
}

.whb-secondary-nav ul,
.whb-main-nav ul,
.demis-header-menu ul,
.demis-header-mainmenu ul,
.demis-navigation,
.demis-nav-secondary {
    display: flex;
    flex-direction: row;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 24px;
}

.whb-secondary-nav > ul > li,
.whb-main-nav > ul > li,
.demis-header-menu > nav > ul > li,
.demis-header-mainmenu > nav > ul > li {
    display: inline-flex;
    align-items: center;
    position: relative;
    margin: 0;
    padding: 0;
}

.whb-secondary-nav > ul > li > a,
.whb-main-nav > ul > li > a,
.demis-header-menu > nav > ul > li > a,
.demis-header-mainmenu > nav > ul > li > a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 0;
    color: inherit;
    position: relative;
    transition: color 0.15s ease;
    white-space: nowrap;
}

/* Main Menu Hover Underline Indicator */
.demis-header-mainmenu .whb-main-nav > ul > li > a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: currentColor;
    transition: width 0.2s ease;
}

.demis-header-mainmenu .whb-main-nav > ul > li:hover > a::after {
    width: 100%;
}

/* Dropdown Submenus */
.whb-main-nav li .sub-menu,
.whb-secondary-nav li .sub-menu,
.demis-header-mainmenu li .sub-menu,
.demis-header-menu li .sub-menu,
.demis-navigation li .sub-menu,
.demis-nav-secondary li .sub-menu,
.whb-main-nav li .children,
.demis-navigation li .children {
    position: absolute;
    top: 100%;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background-color: #ffffff;
    color: #1e293b;
    border-radius: 10px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 10px 0;
    min-width: 220px;
    z-index: 1000;
    list-style: none;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

[dir="rtl"] .whb-main-nav li .sub-menu,
[dir="rtl"] .whb-secondary-nav li .sub-menu,
[dir="rtl"] .demis-header-mainmenu li .sub-menu,
[dir="rtl"] .demis-header-menu li .sub-menu,
[dir="rtl"] .demis-navigation li .sub-menu,
[dir="rtl"] .demis-nav-secondary li .sub-menu,
[dir="rtl"] .whb-main-nav li .children,
[dir="rtl"] .demis-navigation li .children {
    left: auto;
    right: 0;
}

.whb-main-nav li:hover > .sub-menu,
.whb-secondary-nav li:hover > .sub-menu,
.demis-header-mainmenu li:hover > .sub-menu,
.demis-header-menu li:hover > .sub-menu,
.demis-navigation li:hover > .sub-menu,
.demis-nav-secondary li:hover > .sub-menu,
.whb-main-nav li:hover > .children,
.demis-navigation li:hover > .children {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.whb-main-nav li .sub-menu li,
.whb-secondary-nav li .sub-menu li,
.demis-header-mainmenu li .sub-menu li,
.demis-header-menu li .sub-menu li {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
}

.whb-main-nav li .sub-menu li a,
.whb-secondary-nav li .sub-menu li a,
.demis-header-mainmenu li .sub-menu li a,
.demis-header-menu li .sub-menu li a {
    display: flex;
    align-items: center;
    padding: 9px 20px;
    font-size: 13.5px;
    font-weight: 500;
    color: #334155 !important;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease, padding-inline-start 0.15s ease;
    white-space: nowrap;
}

.whb-main-nav li .sub-menu li a:hover,
.whb-secondary-nav li .sub-menu li a:hover,
.demis-header-mainmenu li .sub-menu li a:hover,
.demis-header-menu li .sub-menu li a:hover {
    background-color: #f1f5f9;
    color: #0284c7 !important;
    padding-inline-start: 24px;
}

/* 3. Search Form Widget */
.whb-search form,
.demis-header-search form,
.demis-search-form {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
    min-width: 260px;
    max-width: 520px;
}

.whb-search .demis-search-input,
.demis-header-search .demis-search-input,
.demis-search-form .demis-search-input {
    width: 100%;
    height: 44px;
    padding-inline-start: 16px;
    padding-inline-end: 46px;
    border: 1.5px solid rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    background-color: #ffffff;
    color: #1e293b;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.whb-search .demis-search-input:focus,
.demis-header-search .demis-search-input:focus,
.demis-search-form .demis-search-input:focus {
    border-color: #0284c7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.whb-search .demis-search-submit,
.demis-header-search .demis-search-submit,
.demis-search-form .demis-search-submit {
    position: absolute;
    inset-inline-end: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: none;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    border-radius: 6px;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.whb-search .demis-search-submit:hover,
.demis-header-search .demis-search-submit:hover,
.demis-search-form .demis-search-submit:hover {
    color: #0284c7;
    background-color: #f1f5f9;
}

.whb-search.mode-icon,
.demis-header-search.mode-icon,
.whb-search.mode-full_screen,
.demis-header-search.mode-full_screen {
    display: inline-flex;
    align-items: center;
}

.whb-search .demis-search-icon-trigger,
.demis-header-search .demis-search-icon-trigger,
.demis-mobile-search .demis-search-icon-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    background: transparent;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.whb-search .demis-search-icon-trigger:hover,
.demis-header-search .demis-search-icon-trigger:hover,
.demis-mobile-search .demis-search-icon-trigger:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: #0284c7;
}

.whb-color-dark .whb-search .demis-search-icon-trigger:hover,
.whb-color-dark .demis-header-search .demis-search-icon-trigger:hover,
.whb-color-dark .demis-mobile-search .demis-search-icon-trigger:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.demis-search-modal .demis-search-form {
    max-width: 100%;
    min-width: 100%;
    width: 100%;
}

/* Responsive display switching when desktop is form and mobile is icon */
@media (max-width: 1024px) {
    .demis-header-search.responsive-mobile-icon .demis-search-mobile-toggle {
        display: inline-flex !important;
    }
    .demis-header-search.responsive-mobile-icon > form.demis-search-desktop-form {
        display: none !important;
    }
    .demis-header-search.responsive-mobile-icon {
        display: inline-flex !important;
        align-items: center;
    }
}
@media (min-width: 1025px) {
    .demis-header-search.responsive-mobile-icon .demis-search-mobile-toggle,
    .demis-header-search.responsive-mobile-icon .demis-search-modal {
        display: none !important;
    }
    .demis-header-search.responsive-mobile-icon > form.demis-search-desktop-form {
        display: flex !important;
    }
}

/* 4. Categories Menu Widget */
.whb-categories,
.demis-header-categories {
    display: inline-flex;
    align-items: center;
    position: relative;
}

.whb-categories .demis-categories-btn,
.demis-header-categories .demis-categories-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background-color: #0284c7;
    color: #ffffff !important;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.whb-categories .demis-categories-btn:hover,
.demis-header-categories .demis-categories-btn:hover {
    background-color: #0369a1;
}

.demis-categories-icon {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.demis-categories-title {
    white-space: nowrap;
}

/* 5. Cart Widget */
.whb-cart,
.demis-header-cart {
    display: inline-flex;
    align-items: center;
    position: relative;
}

.whb-cart .demis-cart-link,
.demis-header-cart .demis-cart-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
    position: relative;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.whb-cart .demis-cart-link:hover,
.demis-header-cart .demis-cart-link:hover {
    opacity: 0.85;
}

.demis-cart-icon-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.demis-cart-svg {
    display: block;
}

.demis-cart-count {
    position: absolute;
    top: -8px;
    inset-inline-end: -10px;
    background-color: #ef4444;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    border-radius: 9999px;
    padding: 0 4px;
    box-shadow: 0 2px 5px rgba(239, 68, 68, 0.4);
}

.demis-cart-totals {
    display: inline-flex;
    align-items: center;
    font-size: 13.5px;
    font-weight: 600;
    white-space: nowrap;
}

/* 6. User Account Widget */
.whb-account,
.demis-header-account {
    display: inline-flex;
    align-items: center;
}

.whb-account .demis-account-link,
.demis-header-account .demis-account-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
    font-size: 13.5px;
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.15s ease;
}

.whb-account .demis-account-link:hover,
.demis-header-account .demis-account-link:hover {
    color: #0284c7;
}

.demis-account-text {
    white-space: nowrap;
}

/* 7. Wishlist & Compare Widgets */
.whb-wishlist,
.whb-compare,
.demis-header-wishlist,
.demis-header-compare {
    display: inline-flex;
    align-items: center;
    position: relative;
}

.whb-wishlist .demis-wishlist-link,
.whb-compare .demis-compare-link,
.demis-header-wishlist .demis-wishlist-link,
.demis-header-compare .demis-compare-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: inherit;
    position: relative;
    cursor: pointer;
    transition: color 0.15s ease;
}

.whb-wishlist .demis-wishlist-link:hover,
.whb-compare .demis-compare-link:hover,
.demis-header-wishlist .demis-wishlist-link:hover,
.demis-header-compare .demis-compare-link:hover {
    color: #0284c7;
}

.demis-wishlist-count,
.demis-compare-count {
    position: absolute;
    top: -7px;
    inset-inline-end: -9px;
    background-color: #0284c7;
    color: #ffffff;
    font-size: 9.5px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    border-radius: 9999px;
    padding: 0 3px;
}

/* 8. Mobile Burger Trigger Widget */
.whb-burger,
.demis-header-burger {
    display: inline-flex;
    align-items: center;
}

.whb-burger .demis-burger-trigger,
.demis-header-burger .demis-burger-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
    padding: 6px;
    cursor: pointer;
}

.demis-burger-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 22px;
    height: 16px;
}

.demis-burger-icon .line {
    display: block;
    width: 100%;
    height: 2px;
    background-color: currentColor;
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.demis-burger-label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* 9. Social Icons Widget */
.whb-social,
.demis-header-social {
    display: inline-flex;
    align-items: center;
}

.whb-social .demis-social-icons,
.demis-header-social .demis-social-icons {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.whb-social .demis-social-icon,
.demis-header-social .demis-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.whb-social .demis-social-icon:hover,
.demis-header-social .demis-social-icon:hover {
    opacity: 0.85;
    transform: scale(1.1);
}

/* 10. Divider Widget */
.whb-divider,
.demis-header-divider {
    display: inline-flex;
    align-items: center;
    align-self: center;
    height: 100%;
    padding-inline: 4px;
}

.whb-divider .demis-divider-line,
.demis-header-divider .demis-divider-line {
    display: block;
    width: 1px;
    height: 16px;
    background-color: currentColor;
    opacity: 0.18;
}

/* 11. Text Widget */
.whb-text,
.demis-header-text {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    line-height: 1.4;
    color: inherit;
}

/* 12. Spacing Widget */
.whb-space,
.demis-header-space {
    display: inline-block;
    flex-shrink: 0;
}



