/*
Theme Name: SCDev Theme Deluxe
Theme URI: https://scdev.local
Description: A flexible layout theme with Box, Wide, and Full layout options
Version: 1.0.0
Author: scdev
Author URI: https://scdev.local
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: scdev-theme-deluxe
*/

/* Always show footer fresh submenus */
.footer-fresh-menu .sub-menu {
    display: block !important;
}
/* --- FORCE FOOTER FRESH MENU SUBMENU TO MATCH HEADER --- */
.footer-fresh-menu li {
    position: relative;
}
/* (Removed duplicate/overriding display:none for .footer-fresh-menu .sub-menu) */
.footer-fresh-menu li:hover > .sub-menu,
.footer-fresh-menu li:focus-within > .sub-menu {
    display: block;
}
.footer-fresh-menu .sub-menu li {
    position: relative;
}
.footer-fresh-menu .sub-menu .sub-menu {
    left: 100%;
    top: 0;
    border-radius: 0 8px 8px 0;
    box-shadow: 4px 0 16px rgba(0,0,0,0.13);
}
.footer-fresh-menu .sub-menu a {
    padding: 10px 18px;
    color: #fff;
    background: none;
    border-radius: 0;
    display: block;
    font-size: 15px;
    text-align: left;
}
.footer-fresh-menu .sub-menu a:hover {
    background: #34495e;
}
/* Footer Fresh Menu - Match Header Dropdown Styles */
.footer-fresh-menu {
    display: flex;
    gap: 24px;
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 10;
}
.footer-fresh-menu li {
    position: relative;
}
.footer-fresh-menu .sub-menu {
    position: absolute;
    left: 0;
    top: 100%;
    min-width: 180px;
    background: #2c3e50;
    box-shadow: 0 4px 16px rgba(0,0,0,0.13);
    border-radius: 0 0 8px 8px;
    padding: 8px 0;
    display: none;
    z-index: 1000;
}
.footer-fresh-menu li:hover > .sub-menu,
.footer-fresh-menu li:focus-within > .sub-menu {
    display: block;
}
.footer-fresh-menu .sub-menu li {
    display: block;
    margin: 0;
}
.footer-fresh-menu .sub-menu a {
    padding: 10px 18px;
    color: #fff;
    background: none;
    border-radius: 0;
    display: block;
    font-size: 15px;
    text-align: left;
}
.footer-fresh-menu .sub-menu a:hover {
    background: #34495e;
}
/* Fresh Footer Submenu Styling */
.footer-fresh-menu li {
    position: relative;
}
.footer-fresh-menu .sub-menu {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    min-width: 180px;
    background: #222;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.13);
    padding: 8px 0;
    z-index: 100;
}
.footer-fresh-menu li.menu-item-has-children:hover > .sub-menu,
.footer-fresh-menu li.menu-item-has-children:focus-within > .sub-menu {
    display: block;
}
.footer-fresh-menu .sub-menu li a {
    padding: 8px 16px;
    color: #fff;
    display: block;
    border-radius: 0;
}
.footer-fresh-menu .sub-menu li a:hover {
    background: #34495e;
}
/* Fresh Footer Clear Modal Styles */
.footer-fresh-clear-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.45);
    align-items: center;
    justify-content: center;
}
.footer-fresh-clear-modal-content {
    background: #34495e;
    border-radius: 12px;
    padding: 32px 24px 24px 24px;
    min-width: 260px;
    max-width: 90vw;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    position: relative;
    color: #fff;
}
.footer-fresh-clear-modal-close {
    position: absolute;
    top: 10px;
    right: 16px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
}
.footer-fresh-clear-confirm {
    margin-top: 16px;
    padding: 8px 20px;
    background: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}
.footer-fresh-clear-confirm:hover {
    background: #c0392b;
}
/* Fresh Footer Nav Styles */
.footer-fresh-nav {
    margin-top: 12px;
    display: flex;
    justify-content: center;
}
.footer-fresh-menu {
    display: flex;
    gap: 24px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-fresh-menu > li {
    position: relative;
}
.footer-fresh-menu a {
    color: #fff;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
    transition: background 0.2s;
    font-weight: 500;
}
.footer-fresh-menu a:hover {
    background: #2980b9;
}
.footer-fresh-menu .fresh-sub-menu {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    min-width: 160px;
    background: #222;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.13);
    padding: 8px 0;
    z-index: 100;
}
.footer-fresh-menu .has-fresh-sub:hover > .fresh-sub-menu,
.footer-fresh-menu .has-fresh-sub:focus-within > .fresh-sub-menu {
    display: block;
}
.footer-fresh-menu .fresh-sub-menu li a {
    padding: 8px 16px;
    color: #fff;
    display: block;
    border-radius: 0;
}
.footer-fresh-menu .fresh-sub-menu li a:hover {
    background: #34495e;
}
/* Footer submenu shows on hover/focus */
.footer-menu li.menu-item-has-children:hover > .footer-sub-menu,
.footer-menu li.menu-item-has-children:focus-within > .footer-sub-menu {
    display: block;
}
/* .footer-menu li ul {
    display: none !important;
}
.footer-sub-menu {
    display: none !important;
}
/* Always hide footer submenus by default, even in modal */
.footer-sub-menu {
    display: none;
}
.menu-item-has-children.open > .footer-sub-menu {
    display: block;
} */
/* Footer Submenu Modal Styles */
.footer-submenu-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.45);
    align-items: center;
    justify-content: center;
}
.footer-submenu-modal-content {
    background: #34495e;
    border-radius: 12px;
    padding: 32px 24px 24px 24px;
    min-width: 260px;
    max-width: 90vw;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    position: relative;
    color: #fff;
}
.footer-submenu-modal-close {
    position: absolute;
    top: 10px;
    right: 16px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    z-index: 2;
}
.footer-modal-menu {
    margin: 0;
    padding: 0;
}
.footer-menu .footer-sub-menu,
.ytc-pf-nav .sub-menu {
    position: fixed !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    bottom: 70px !important; /* Adjust to match your footer height */
    top: auto !important;
    min-width: 220px !important;
    background: #34495e !important;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18) !important;
    border-radius: 12px !important;
    padding: 12px 0 !important;
    display: none;
    z-index: 3000 !important;
}

/* Custom Footer Menu Dropdowns */
.ytc-pf-nav li {
    position: relative;
}
.ytc-pf-nav .sub-menu {
    position: absolute;
    left: 0;
    bottom: 100%;
    top: auto;
    min-width: 180px;
    background: #34495e;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.13);
    border-radius: 8px 8px 0 0;
    padding: 8px 0;
    display: none;
    z-index: 2000;
}
.ytc-pf-nav .sub-menu a {
    color: #fff;
    background: none;
    border-radius: 0;
    display: block;
    font-size: 15px;
    text-align: left;
    padding: 10px 18px;
}
.theme-footer {
    overflow: visible !important;
}
.footer-menu .footer-sub-menu {
    z-index: 2000;
}
.footer-menu {
    margin-bottom: -8px;
}
/* Footer Dropdown Submenu Styling */
.footer-menu {
    position: relative;
    z-index: 10;
}

.footer-menu .footer-sub-menu {
    position: absolute;
    left: 0;
    bottom: 100%;
    top: auto;
    min-width: 180px;
    background: #34495e;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.13);
    border-radius: 8px 8px 0 0;
    padding: 8px 0;
    display: none;
    z-index: 1001;
}

.footer-menu .menu-item-has-children.open > .footer-sub-menu {
    display: block;
}

.footer-menu .menu-item-has-children.open > .footer-sub-menu {
    display: block;
}
.footer-menu .footer-sub-menu a {
    color: #fff;
    background: none;
    border-radius: 0;
    display: block;
    font-size: 15px;
    text-align: left;
    padding: 10px 18px;
}
.footer-menu li {
    position: relative;
}
/* Header Dropdown Submenu Styling */
.menu li {
    position: relative;
}
.menu .sub-menu {
    position: absolute;
    left: 0;
    top: 100%;
    min-width: fit-content;
    max-width: 380px;
    width: max-content;
    background: #2c3e50;
    box-shadow: 0 4px 16px rgba(0,0,0,0.13);
    border-radius: 0 0 8px 8px;
    padding: 8px 0;
    display: none;
    z-index: 1000;
}
.menu li:hover > .sub-menu,
.menu li:focus-within > .sub-menu {
    display: block;
}
.menu .sub-menu li {
    display: block;
    margin: 0;
}
.menu .sub-menu a {
    padding: 10px 18px;
    color: #fff;
    background: none;
    border-radius: 0;
    display: block;
    font-size: 15px;
    text-align: left;
}
.menu .sub-menu a:hover {
    background: #34495e;
}
/*
Theme Name: scdev-theme-deluxe
Theme URI: https://scdev.local
Description: A flexible layout theme with Box, Wide, and Full layout options
Version: 1.0.0
Author: scdev
Author URI: https://scdev.local
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: scdev-theme-deluxe
Domain Path: /languages
*/

:root {
    --header-height: 60px;
    --footer-height: 60px;
    --header-footer-margin: 0px;
    --sidebar-width: 300px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #f5f5f5;
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
}

.theme-wrapper {
    display: flex;
    flex-direction: column;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
}

/* Header */
.theme-header {
    width: 1320px !important;
    height: var(--header-height, 60px);
    background-color: #2c3e50;
    color: white;
    display: flex;
    align-items: center;
    padding: 0 10px;
    position: fixed !important;
    top: var(--header-footer-margin, 0px) !important;
    z-index: 999 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
}

.header-left {
    width: 25%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
}

.header-center {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
}

.header-center h1 {
    margin: 0;
}

.header-right {
    width: 25%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
}

/* Logo styling */
.header-logo {
    max-width: 140px !important;
    max-height: 70px !important;
    width: auto !important;
    height: auto !important;
    object-fit: cover !important;
    display: block;
    padding: 5px !important;
}


.social-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    font-size: 14px;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s, transform 0.2s;
    color: inherit;
}

.social-button svg {
    width: 18px;
    height: 18px;
}

.social-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

/* Navigation menu styling */
nav ul,
.menu {
    display: flex !important;
    gap: 0px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: center !important;
    flex-wrap: wrap !important;
}

nav li,
.menu li {
    margin: 0 !important;
    padding: 0 !important;
    display: inline-block !important;
}

nav a,
.menu a {
    display: inline-block !important;
    color: white !important;
    text-decoration: none !important;
    padding: 4px 8px !important;
    line-height: 1.0 !important;
    transition: background-color 0.3s !important;
}

nav a:hover,
.menu a:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

/* Main Content Area */
.theme-main {
    display: flex;
    gap: var(--element-gap, 10px);
    padding: var(--element-gap, 10px) 16px;
    justify-content: center;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    flex-wrap: wrap !important;
    margin-top: var(--header-height, 60px) !important;
    margin-bottom: var(--footer-height, 60px) !important;
    height: auto !important;
    flex-shrink: 0 !important;
    transition: margin 0.3s ease !important;
}

/* Adjust main container margins when header/footer are hidden */
body.header-hidden .theme-main {
    margin-top: 20px !important;
}

body.footer-hidden .theme-main {
    margin-bottom: 20px !important;
}

body.header-hidden.footer-hidden .theme-main {
    margin-top: 20px !important;
    margin-bottom: 20px !important;
}

/* Sidebars */
.theme-sidebar {
    width: var(--sidebar-width, 300px) !important;
    max-width: var(--sidebar-width, 300px) !important;
    background-color: #ecf0f1;
    padding: 10px 16px;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    flex-shrink: 0 !important;
    height: calc(100vh - var(--header-height, 60px) - var(--footer-height, 60px) - (var(--element-gap, 10px) * 2)) !important;
    transition: height 0.3s ease !important;
}

/* Sidebar expansion when header/footer are hidden */
body.header-hidden .theme-sidebar {
    height: calc(100vh - var(--footer-height, 60px) - (var(--element-gap, 10px) * 2)) !important;
}

body.footer-hidden .theme-sidebar {
    height: calc(100vh - var(--header-height, 60px) - (var(--element-gap, 10px) * 2)) !important;
}

body.header-hidden.footer-hidden .theme-sidebar {
    height: calc(100vh - (var(--element-gap, 10px) * 2)) !important;
}

.theme-sidebar-left {
    order: 1;
}

.theme-sidebar-right {
    order: 3;
}

.sidebar-content h2 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #2c3e50;
}

.sidebar-content p {
    color: #7f8c8d;
    font-size: 14px;
}

/* Content Area - Default Box Layout */
.theme-content {
    width: var(--content-width, 600px) !important;
    max-width: var(--content-width, 600px) !important;
    background-color: white;
    padding: 10px 15px;
    order: 2;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex-shrink: 0 !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    height: calc(100vh - var(--header-height, 60px) - var(--footer-height, 60px) - (var(--element-gap, 10px) * 2)) !important;
    position: relative !important;
    transition: height 0.3s ease !important;
}

/* Content expansion when header/footer are hidden */
body.header-hidden .theme-content {
    height: calc(100vh - var(--footer-height, 60px) - (var(--element-gap, 10px) * 2)) !important;
}

body.footer-hidden .theme-content {
    height: calc(100vh - var(--header-height, 60px) - (var(--element-gap, 10px) * 2)) !important;
}

body.header-hidden.footer-hidden .theme-content {
    height: calc(100vh - (var(--element-gap, 10px) * 2)) !important;
}

.content-inner h2 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #2c3e50;
}

.content-inner p {
    color: #555;
    line-height: 1.2;
}

/* Layout Variants */

/* Full/Wide Layout: Percentage-based (25% + 50% + 25% = 100%) */
body.layout-full .theme-sidebar {
    width: 25% !important;
    max-width: 300px !important;
    min-width: unset !important;
    flex: 0 0 25% !important;
    flex-shrink: 0 !important;
}

body.layout-full .theme-content {
    width: 50% !important;
    max-width: 900px !important;
    min-width: 0 !important;
    flex: 1 1 50% !important;
    flex-shrink: 1 !important;
}

body.layout-full .theme-main {
    flex-wrap: nowrap !important;
    width: 100% !important;
    max-width: 100% !important;
    align-items: flex-start !important;
}

/* Full Layout handled by body.layout-full rules above */

/* Cap fluid content width on 14" and smaller screens */
@media (max-width: 1440px) {
    .layout-full .theme-content {
        max-width: 620px !important;
    }
}

/* Full layout mobile responsiveness */
@media (max-width: 1199px) {
    .layout-full .theme-content {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 300px !important;
    }

    .theme-header.header-width-full, .theme-footer.footer-width-full {
    display:none !important;
} 

}

@media (max-width: 768px) {
    .layout-full .theme-content {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 280px !important;
    }
    
    .theme-header.header-width-full, 
    .theme-footer.footer-width-full {
        display: none !important;
    }    
    /* Fixed left/right padding on mobile - HARDCODED, DO NOT CHANGE, NEVER FROM CUSTOMIZER */
    .theme-content,
    .content-inner {
        padding-left: 5px !important;
        padding-right: 5px !important;
    }
}

/* Footer */
.theme-footer {
    width: 1320px !important;
    height: var(--footer-height, 60px);
    background-color: #2c3e50;
    color: white;
    display: flex;
    align-items: center;
    padding: 0 10px;
    position: fixed !important;
    bottom: var(--header-footer-margin, 0px) !important;
    z-index: 999 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
}

.footer-content {
    width: 100%;
    font-size: 14px;
    line-height: 1.0;
    padding: 4px 8px;
}

.footer-content p {
    margin: 0;
    font-size: 14px;
}

/* Footer sections */
.footer-left {
    width: 25%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
}

.footer-center {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
}

.footer-center h3 {
    font-size: 14px;
    margin: 0;
}

.footer-right {
    width: 25%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 1199px) {
    body:not(.layout-full) .theme-main {
        flex-wrap: wrap !important;
    }
}

/* Header/Footer Width Classes */
.theme-header.header-width-1190,
.theme-footer.footer-width-1190 {
    width: 1190px !important;
}

.theme-header.header-width-1320,
.theme-footer.footer-width-1320 {
    width: 1320px !important;
}

/* Box mode: use dynamic CSS variable */
.layout-box .theme-header,
.layout-box .theme-footer {
    width: var(--header-footer-width, 1190px) !important;
}

.theme-header.header-width-full,
.theme-footer.footer-width-full {
    width: 100% !important;
    left: 0 !important;
    transform: none !important;
}


/* Scroll to Top Button */
.scroll-to-top {
    position: sticky !important;
    bottom: 10px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background-color: rgba(180, 180, 180, 0.35) !important;
    color: #2ecc71 !important;
    border: 1px solid rgba(180, 180, 180, 0.4) !important;
    font-size: 18px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 1000 !important;
    transition: background-color 0.2s ease !important;
    line-height: 1 !important;
    margin: 0 auto !important;
}


.scroll-to-top.show {
    display: flex !important;
    opacity: 1 !important;
}

.scroll-to-top:hover {
    background-color: rgba(180, 180, 180, 0.6) !important;
}

/* Night Mode Toggle Button */
.night-mode-toggle {
    position: fixed;
    right: 5px;
    top: 40px;
    width: 40px;
    height: 40px;
    background-color: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
    transition: transform 0.3s;
    z-index: 1000;
}

.night-mode-toggle:hover {
    transform: scale(1.2);
}

/* Night Mode Styles */
body.night-mode,
html.night-mode body {
    background-color: #1a1a1a !important;
    color: #e0e0e0 !important;
}

body.night-mode .theme-header,
html.night-mode body .theme-header,
body.night-mode .theme-footer,
html.night-mode body .theme-footer {
    background-color: #0d0d0d !important;
    color: #e0e0e0 !important;
}

body.night-mode .theme-sidebar {
    background-color: #2a2a2a !important;
    color: #e0e0e0 !important;
}

body.night-mode .theme-content {
    background-color: #1a1a1a !important;
    color: #e0e0e0 !important;
}

body.night-mode a {
    color: #64b5f6 !important;
}

body.night-mode h1,
body.night-mode h2,
body.night-mode h3,
body.night-mode h4,
body.night-mode h5,
body.night-mode h6 {
    color: #e0e0e0 !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    /* Hide toggle buttons on mobile */
    .toggle-left-sidebar,
    .toggle-right-sidebar,
    .toggle-header,
    .toggle-footer,
    .toggle-left-extra,
    .toggle-right-extra,
    .toggle-left-blue,
    .toggle-all {
        display: none !important;
    }

    /* Hide sidebars on mobile by default - handled by mobile layout order classes */

    /* Make content full width */
    .theme-content {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        flex: 1 1 100% !important;
        flex-shrink: 1 !important;
        order: 1 !important;
        padding: 10px 6px !important;
        height: auto !important;
        min-height: calc(100vh - var(--header-height, 60px) - var(--footer-height, 60px)) !important;
    }

    /* Stack layout on mobile */
    .theme-main {
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        padding: 0 6px !important;
        gap: 8px !important;
    }

    /* Show sidebars when mobile layout requires them */
    .mobile-layout-content-left .theme-sidebar-left,
    .mobile-layout-left-content .theme-sidebar-left,
    .mobile-layout-content-left-right .theme-sidebar-left,
    .mobile-layout-left-content-right .theme-sidebar-left,
    .mobile-layout-left-right-content .theme-sidebar-left {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        overflow-y: visible !important;
    }

    .mobile-layout-content-right .theme-sidebar-right,
    .mobile-layout-right-content .theme-sidebar-right,
    .mobile-layout-content-left-right .theme-sidebar-right,
    .mobile-layout-left-content-right .theme-sidebar-right,
    .mobile-layout-left-right-content .theme-sidebar-right {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        overflow-y: visible !important;
    }

    /* Content Only */
    .mobile-layout-content-only .theme-sidebar {
        display: none !important;
    }

    /* Content | Left */
    .mobile-layout-content-left .theme-content {
        order: 1 !important;
    }
    .mobile-layout-content-left .theme-sidebar-left {
        order: 2 !important;
    }
    .mobile-layout-content-left .theme-sidebar-right {
        display: none !important;
    }

    /* Content | Right */
    .mobile-layout-content-right .theme-content {
        order: 1 !important;
    }
    .mobile-layout-content-right .theme-sidebar-right {
        order: 2 !important;
    }
    .mobile-layout-content-right .theme-sidebar-left {
        display: none !important;
    }

    /* Left | Content */
    .mobile-layout-left-content .theme-sidebar-left {
        order: 1 !important;
    }
    .mobile-layout-left-content .theme-content {
        order: 2 !important;
    }
    .mobile-layout-left-content .theme-sidebar-right {
        display: none !important;
    }

    /* Right | Content */
    .mobile-layout-right-content .theme-sidebar-right {
        order: 1 !important;
    }
    .mobile-layout-right-content .theme-content {
        order: 2 !important;
    }
    .mobile-layout-right-content .theme-sidebar-left {
        display: none !important;
    }

    /* Content | Left | Right */
    .mobile-layout-content-left-right .theme-content {
        order: 1 !important;
    }
    .mobile-layout-content-left-right .theme-sidebar-left {
        order: 2 !important;
    }
    .mobile-layout-content-left-right .theme-sidebar-right {
        order: 3 !important;
    }

    /* Left | Content | Right (default) */
    .mobile-layout-left-content-right .theme-sidebar-left {
        order: 1 !important;
    }
    .mobile-layout-left-content-right .theme-content {
        order: 2 !important;
    }
    .mobile-layout-left-content-right .theme-sidebar-right {
        order: 3 !important;
    }

    /* Left | Right | Content */
    .mobile-layout-left-right-content .theme-sidebar-left {
        order: 1 !important;
    }
    .mobile-layout-left-right-content .theme-sidebar-right {
        order: 2 !important;
    }
    .mobile-layout-left-right-content .theme-content {
        order: 3 !important;
    }

    /* Adjust header/footer for mobile */
    .theme-header,
    .theme-footer {
        padding: 0 10px !important;
    }

    .header-left,
    .header-center,
    .header-right,
    .footer-left,
    .footer-center,
    .footer-right {
        width: 100% !important;
        justify-content: center !important;
    }

    /* Adjust night mode button */
    .night-mode-toggle {
        right: 50px !important;
    }

    /* Scroll to Top Button on Mobile */
    .scroll-to-top {
        position: fixed !important;
        bottom: 70px !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        width: 36px !important;
        height: 36px !important;
        font-size: 18px !important;
    }
}


/* User Profile Header Item */
.user-profile-header-item {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.user-profile-toggle {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid #999;
    background-color: transparent;
    cursor: pointer;
    padding: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s, border-color 0.3s;
}

.user-profile-toggle:hover {
    transform: scale(1.1);
    border-color: #666;
}

.user-profile-toggle img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
}

.user-profile-menu {
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    display: none;
    z-index: 1001;
    overflow: hidden;
}

.user-profile-menu.show {
    display: block;
}

.user-profile-header {
    padding: 8px 10px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    color: #333;
}

.user-profile-buttons {
    display: flex;
    flex-direction: column;
}

.user-profile-btn {
    padding: 10px 12px;
    text-decoration: none;
    color: #333;
    border: none;
    background: none;
    cursor: pointer;
    text-align: left;
    font-size: 16px;
    transition: background-color 0.2s;
    border-bottom: 1px solid #eee;
}

.user-profile-btn:last-child {
    border-bottom: none;
}

.user-profile-btn:hover {
    background-color: #f5f5f5;
}

.user-profile-btn.logout {
    color: #e74c3c;
}

.user-profile-btn.logout:hover {
    background-color: #ffe6e6;
}

.user-profile-login-btn {
    padding: 8px 10px;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    transition: background-color 0.3s;
    display: inline-block;
}

.user-profile-login-btn:hover {
    background-color: #2980b9;
}

/* Custom Login Icon - Standalone Style */
.scdev-header-login-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    color: inherit;
    transition: opacity 0.2s ease;
    text-decoration: none;
}

.scdev-header-login-icon:hover {
    opacity: 0.7;
}

.scdev-header-login-icon svg {
    display: block;
}

/* Night mode styles for user profile */
body.night-mode .user-profile-menu {
    background-color: #2a2a2a;
    border-color: #444;
    color: #e0e0e0;
}

body.night-mode .user-profile-header {
    border-bottom-color: #444;
    color: #e0e0e0;
}

body.night-mode .user-profile-btn {
    color: #e0e0e0;
    border-bottom-color: #444;
}

body.night-mode .user-profile-btn:hover {
    background-color: #3a3a3a;
}

body.night-mode .user-profile-btn.logout {
    color: #ff6b6b;
}

body.night-mode .user-profile-btn.logout:hover {
    background-color: #4a2a2a;
}

body.night-mode .user-profile-login-btn {
    background-color: #2980b9;
}

body.night-mode .user-profile-login-btn:hover {
    background-color: #1e5fa0;
}

body.night-mode .scdev-header-login-icon {
    color: #e0e0e0;
}

body.night-mode .scdev-header-login-icon:hover {
    opacity: 0.5;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .user-profile-tab {
        right: 60px;
    }

    .user-profile-menu {
        min-width: 180px;
    }

    .user-profile-login {
        right: 60px;
    }

    .user-profile-header-item {
        gap: 5px;
    }

    .user-profile-login-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}


/* Night Mode Toggle in Menu */
.night-mode-toggle-menu {
    border-top: 1px solid #eee !important;
}

/* Mobile-only night mode button in user menu */
.mobile-only-night-mode {
    display: none !important;
}

@media (max-width: 768px) {
    .mobile-only-night-mode {
        display: block !important;
    }
}

/* Toggle Buttons - Base Styles */
.toggle-header,
.toggle-footer,
.toggle-left-sidebar,
.toggle-right-sidebar,
.toggle-left-blue {
    position: fixed !important;
    width: 25px !important;
    height: 25px !important;
    font-size: 10px !important;
    padding: 0 !important;
  /*  background-color: #3498db !important; */
    color: rgb(104, 105, 111) !important;
    border: none !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    z-index: 997 !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

.toggle-header:hover,
.toggle-footer:hover,
.toggle-left-sidebar:hover,
.toggle-right-sidebar:hover,
.toggle-left-blue:hover {
    background-color: #2980b9 !important;
    transform: scale(1.1) !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3) !important;
}

/* LEFT SIDE BUTTONS - Centered Vertically */
.toggle-header {
    left: 2px !important;
    top: 50% !important;
    transform: translateY(-50px) !important;
    right: auto !important;
}

.toggle-header:hover {
    transform: translateY(-50px) scale(1.1) !important;
}

.toggle-left-sidebar {
    left: 2px !important;
    top: 50% !important;
    transform: translateY(0px) !important;
    right: auto !important;
}

.toggle-left-sidebar:hover {
    transform: translateY(0px) scale(1.1) !important;
}

.toggle-footer {
    left: 2px !important;
    top: 50% !important;
    transform: translateY(50px) !important;
    right: auto !important;
}

.toggle-footer:hover {
    transform: translateY(50px) scale(1.1) !important;
}

/* RIGHT SIDE BUTTONS - Centered Vertically */
.toggle-right-sidebar {
    right: 2px !important;
    top: 50% !important;
    transform: translateY(-25px) !important;
    left: auto !important;
    bottom: auto !important;
}

.toggle-right-sidebar:hover {
    transform: translateY(-25px) scale(1.1) !important;
}

.toggle-left-blue {
    right: 2px !important;
    top: 50% !important;
    transform: translateY(25px) !important;
    left: auto !important;
    bottom: auto !important;
}

.toggle-left-blue:hover {
    transform: translateY(25px) scale(1.1) !important;
}

/* Night mode styling for toggle buttons */
body.night-mode .toggle-header,
body.night-mode .toggle-footer,
body.night-mode .toggle-left-sidebar,
body.night-mode .toggle-right-sidebar,
body.night-mode .toggle-left-blue {
    background-color: #2c3e50 !important;
}

body.night-mode .toggle-header:hover,
body.night-mode .toggle-footer:hover,
body.night-mode .toggle-left-sidebar:hover,
body.night-mode .toggle-right-sidebar:hover,
body.night-mode .toggle-left-blue:hover {
    background-color: #34495e !important;
}


/* Night Mode Toggle Button - Consistent with Toggle Buttons */
#night-mode-toggle {
    position: fixed !important;
    top: auto !important;
    right: 12px !important;
    bottom: 14px !important;
    width: 34px !important;
    height: 34px !important;
    font-size: 12px !important;
    padding: 2px 2px !important;
    background-color: rgba(0, 0, 0, 0.7) !important;
    color: white !important;
    border: none !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    z-index: 1000 !important;
    transition: background-color 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#night-mode-toggle:hover {
    background-color: rgba(0, 0, 0, 0.9) !important;
}


/* Remove blue background from sidebar toggle buttons */
/* Commented out - using blue theme color instead
.toggle-left-sidebar,
.toggle-right-sidebar {
    background-color: rgba(0, 0, 0, 0.7) !important;
}

.toggle-left-sidebar:hover,
.toggle-right-sidebar:hover {
    background-color: rgba(0, 0, 0, 0.9) !important;
}
*/


/* Mobile Responsive Styles */
/* Hide mobile header/footer on desktop */
.mobile-header,
.mobile-footer,
.mobile-user-modal {
    display: none !important;
}

@media (max-width: 768px) {
    /* HIDE DESKTOP HEADER AND FOOTER ON MOBILE - covers all width variants */
    .theme-header,
    .theme-header.header-width-full,
    .theme-header.header-width-1190,
    .theme-header.header-width-1320,
    .theme-footer,
    .theme-footer.footer-width-full,
    .theme-footer.footer-width-1190,
    .theme-footer.footer-width-1320 {
        display: none !important;
    }
    
    /* SHOW MOBILE ELEMENTS */
    .mobile-header,
    .mobile-footer {
        display: flex !important;
    }
    
    /* Mobile menu toggle button */
    .mobile-menu-toggle {
        display: none !important;
    }
    
    /* MOBILE HEADER — flex-start so leading controls + avatar layout correctly (title centered via absolute in layout block below) */
    .mobile-header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: 60px !important;
        background-color: #2c3e50 !important;
        align-items: center !important;
        justify-content: flex-start !important;
        flex-wrap: nowrap !important;
        overflow-x: visible !important;
        z-index: 999 !important;
        padding: 0 10px !important;
    }
    
    /* Mobile User Menu Modal */
    .mobile-user-modal {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        background: rgba(0,0,0,0.5) !important;
        display: none !important;
        align-items: center !important;
        justify-content: center !important;
        z-index: 10000 !important;
        padding: 10px !important;
    }
    
    .mobile-user-modal.show {
        display: flex !important;
    }
    
    .mobile-user-modal-content {
        background: #4b5563 !important;
        border-radius: 12px !important;
        padding: 0 !important;
        width: 90% !important;
        max-width: 320px !important;
        box-shadow: 0 8px 24px rgba(0,0,0,0.3) !important;
        overflow: hidden !important;
    }
    
    .mobile-user-modal-header {
        padding: 10px !important;
        border-bottom: 1px solid rgba(255,255,255,0.18) !important;
        text-align: center !important;
        background: #4b5563 !important;
    }
    
    .mobile-user-modal-header strong {
        font-size: 18px !important;
        color: #ffffff !important;
    }
    
    .mobile-user-modal-buttons {
        padding: 0 !important;
    }
    
    .mobile-user-modal-buttons a {
        display: block !important;
        padding: 10px !important;
        color: #ffffff !important;
        text-decoration: none !important;
        border-bottom: 1px solid rgba(255,255,255,0.18) !important;
        font-size: 16px !important;
        text-align: center !important;
        background: #4b5563 !important;
    }
    
    .mobile-user-modal-buttons a:last-child {
        border-bottom: none !important;
    }
    
    .mobile-user-modal-buttons a:hover {
        background: rgba(255,255,255,0.08) !important;
    }
    
    .mobile-user-modal-buttons a.logout {
        color: #ffffff !important;
        background: #6b7280 !important;
    }
    
    .mobile-user-modal-close {
        position: absolute !important;
        top: 15px !important;
        right: 15px !important;
        background: transparent !important;
        border: none !important;
        font-size: 24px !important;
        color: #666 !important;
        cursor: pointer !important;
        padding: 5px !important;
        line-height: 1 !important;
    }

    body.night-mode .mobile-user-modal-content {
        background: #4b5563 !important;
        color: #ffffff !important;
    }

    body.night-mode .mobile-user-modal-header {
        background: #4b5563 !important;
        border-bottom-color: rgba(255,255,255,0.18) !important;
    }

    body.night-mode .mobile-user-modal-header strong,
    body.night-mode .mobile-user-modal-buttons a,
    body.night-mode .mobile-user-modal-close {
        color: #ffffff !important;
    }

    body.night-mode .mobile-user-modal-buttons a {
        border-bottom-color: rgba(255,255,255,0.18) !important;
    }

    body.night-mode .mobile-user-modal-buttons a:hover {
        background: rgba(255,255,255,0.08) !important;
    }

    body.night-mode .mobile-user-modal-buttons a.logout {
        color: #ffffff !important;
        background: #6b7280 !important;
    }

    body.night-mode .mobile-user-modal .user-profile-header {
        padding: 10px !important;
        text-align: center !important;
        background: #4b5563 !important;
        border-bottom: 1px solid rgba(255,255,255,0.18) !important;
    }

    body.night-mode .mobile-user-modal .user-profile-header strong {
        color: #ffffff !important;
        font-size: 18px !important;
        font-weight: 600 !important;
    }

    body.night-mode .mobile-user-modal .user-profile-buttons {
        padding: 0 !important;
        background: #4b5563 !important;
    }

    body.night-mode .mobile-user-modal .user-profile-btn {
        display: block !important;
        width: 100% !important;
        color: #ffffff !important;
        background: #4b5563 !important;
        border-bottom: 1px solid rgba(255,255,255,0.18) !important;
        border-radius: 0 !important;
        text-align: center !important;
    }

    body.night-mode .mobile-user-modal .user-profile-btn:hover {
        background: rgba(255,255,255,0.08) !important;
    }

    body.night-mode .mobile-user-modal .user-profile-btn.logout {
        color: #ffffff !important;
        background: #6b7280 !important;
        border-bottom: none !important;
        border-radius: 12px !important;
    }

    body.night-mode .mobile-user-modal .mobile-only-night-mode {
        color: #ffffff !important;
        background: #4b5563 !important;
    }
    
    /* MOBILE FOOTER - Three sections */
    .mobile-footer {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: 60px !important;
        background-color: #2c3e50 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        z-index: 999 !important;
        padding: 0 10px !important;
    }
    
    .mobile-footer-left,
    .mobile-footer-center,
    .mobile-footer-right {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex: 1 !important;
    }
    
    .mobile-footer-left {
        justify-content: flex-start !important;
    }
    
    .mobile-footer-center {
        justify-content: center !important;
    }
    
    .mobile-footer-right {
        justify-content: flex-end !important;
    }
    
    .mobile-footer-left .section-content,
    .mobile-footer-center .section-content {
        font-size: 12px !important;
        color: white !important;
        line-height: 1.2 !important;
    }
    
    .mobile-footer-left .section-content a,
    .mobile-footer-center .section-content a {
        color: white !important;
        text-decoration: none !important;
        font-size: 12px !important;
    }
    
    .mobile-footer-left .social-buttons,
    .mobile-footer-center .social-buttons {
        display: flex !important;
        gap: 8px !important;
    }
    
    .mobile-footer-left .social-button,
    .mobile-footer-center .social-button {
        width: 24px !important;
        height: 24px !important;
    }
    
    /* Mobile header social buttons - smaller and closer */
    .mobile-header-left .social-buttons {
        display: flex !important;
        gap: 4px !important;
    }
    
    .mobile-header-left .social-button {
        width: 20px !important;
        height: 20px !important;
        font-size: 14px !important;
    }
    
    .mobile-footer-left .header-logo,
    .mobile-footer-center .header-logo {
        max-height: 40px !important;
        width: auto !important;
    }
    
    .mobile-footer-left h1,
    .mobile-footer-left h3,
    .mobile-footer-center h1,
    .mobile-footer-center h3 {
        font-size: 14px !important;
        margin: 0 !important;
        color: white !important;
        line-height: 1.2 !important;
    }
    
    .mobile-menu-toggle {
        background: transparent !important;
        border: 2px solid white !important;
        border-radius: 6px !important;
        color: white !important;
        font-size: 24px !important;
        cursor: pointer !important;
        padding: 2px 4px !important;
        line-height: 1 !important;
    }

    .mobile-night-mode-toggle {
        background: transparent !important;
        border: none !important;
        color: white !important;
        font-size: 20px !important;
        cursor: pointer !important;
        padding: 4px !important;
        line-height: 1 !important;
        transition: transform 0.2s ease !important;
    }

    .mobile-night-mode-toggle:hover {
        transform: scale(1.2) !important;
    }
    
    /* Adjust content for fixed mobile header/footer */
    .theme-main {
        margin-top: var(--header-height, 60px) !important;
        margin-bottom: var(--footer-height, 60px) !important;
    }
}

/* User profile menu - ALWAYS VISIBLE on desktop and mobile */
.user-profile-header-item {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
}

.user-profile-toggle {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.user-profile-login-btn {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Force user profile to show on ALL screen sizes */
@media (max-width: 768px) {
    .user-profile-header-item {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .user-profile-toggle {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .user-profile-login-btn {
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}


/* User Profile Menu */
.user-profile-header-item {
    position: relative;
    display: flex;
    align-items: center;
}

.user-profile-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    border-radius: 50%;
    overflow: hidden;
}

.user-profile-toggle img {
    width: 28px;
    height: 28px;
    max-width: 28px !important;
    max-height: 28px !important;
    border-radius: 50%;
    display: block;
}

#footer-night-mode-toggle {
    display: none !important;
}

.user-profile-login-btn {
    padding: 8px 10px;
    background: #3498db;
    color: white !important;
    text-decoration: none !important;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 400;
}

.user-profile-login-btn:hover {
    background: #2980b9 !important;
}

.user-profile-menu {
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 200px;
    display: none;
    z-index: 1000;
}

.user-profile-menu.active {
    display: block;
}

.user-profile-header {
    padding: 8px 10px;
    border-bottom: 1px solid #eee;
    color: #333;
}

.user-profile-buttons {
    padding: 5px;
}

.user-profile-btn {
    display: block;
    padding: 15px 10px 0;
    color: #333 !important;
    text-decoration: none !important;
    border-radius: 4px;
    margin-bottom: 2px;
    transition: background 0.2s;
}

.user-profile-btn:hover {
    background: #f5f5f5 !important;
}

.user-profile-btn.logout {
    color: #e74c3c !important;
}

.user-profile-btn.logout:hover {
    background: #fee !important;
}


/* ========================================
   USER MENU - ABSOLUTE PRIORITY - NO CONDITIONS
   ======================================== */
.user-profile-header-item {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
}

.user-profile-toggle {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.user-profile-login-btn {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.user-profile-menu {
    position: absolute !important;
    top: 50px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background: white !important;
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    min-width: 200px !important;
    z-index: 999999 !important;
    display: none !important;
}

.user-profile-menu.show,
.user-profile-menu.active {
    display: block !important;
}

.user-profile-menu * {
    visibility: visible !important;
    opacity: 1 !important;
}

/* MOBILE - FORCE USER MENU DROPDOWN */
@media (max-width: 768px) {
    .user-profile-menu {
        position: fixed !important;
        top: 60px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        max-width: 90% !important;
        z-index: 999999 !important;
    }
}


body.night-mode .mobile-footer {
    background-color: #1a1a1a !important;
}

body.night-mode .mobile-footer-left .section-content,
body.night-mode .mobile-footer-center .section-content {
    color: #e0e0e0 !important;
}

body.night-mode .mobile-footer-left .section-content a,
body.night-mode .mobile-footer-center .section-content a {
    color: #64b5f6 !important;
}

body.night-mode .mobile-footer-left h1,
body.night-mode .mobile-footer-left h3,
body.night-mode .mobile-footer-center h1,
body.night-mode .mobile-footer-center h3 {
    color: #e0e0e0 !important;
}

/* Cart Badge on User Menu */
.user-profile-header-item {
    position: relative !important;
}

.cart-badge {
    position: absolute !important;
    top: -5px !important;
    right: -5px !important;
    background: #e74c3c !important;
    color: white !important;
    border-radius: 50% !important;
    width: 20px !important;
    height: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 11px !important;
    font-weight: bold !important;
    line-height: 1 !important;
    border: 2px solid white !important;
    z-index: 1000 !important;
}

.user-profile-toggle {
    position: relative !important;
}

body.night-mode .cart-badge {
    border-color: #2c3e50 !important;
}

/* Night mode for user profile dropdown */
body.night-mode .user-profile-menu {
    background-color: #2a2a2a !important;
    border-color: #444 !important;
}

body.night-mode .user-profile-header {
    border-bottom-color: #444 !important;
    color: #e0e0e0 !important;
}

body.night-mode .user-profile-btn {
    color: #e0e0e0 !important;
    border-bottom-color: #444 !important;
}

body.night-mode .user-profile-btn:hover {
    background-color: #3a3a3a !important;
}

body.night-mode .user-profile-btn.logout {
    color: #ff6b6b !important;
}

body.night-mode .user-profile-btn.logout:hover {
    background-color: #4a2a2a !important;
}

/* Cart Icon Styles */
.cart-icon-wrapper {
    position: relative;
    display: inline-block;
    margin-right: 15px;
}

.cart-icon-toggle {
    background: transparent;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s;
    display:none
}

.cart-icon-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.cart-icon-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    z-index: 1;
}

.cart-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 320px;
    max-width: 400px;
    display: none;
    z-index: 1000;
    color: #333;
}

.cart-dropdown.active {
    display: block;
}

.cart-dropdown-header {
    padding: 15px;
    border-bottom: 1px solid #eee;
    font-size: 16px;
}

.cart-dropdown-items {
    max-height: 400px;
    overflow-y: auto;
}

.cart-dropdown-item {
    padding: 12px 15px;
    border-bottom: 1px solid #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cart-item-info a {
    color: #333 !important;
    text-decoration: none;
    font-size: 14px;
}

.cart-item-info a:hover {
    color: #0073aa !important;
}

.cart-item-price {
    font-size: 13px;
    color: #666;
    font-weight: bold;
}

.cart-item-remove {
    background: transparent;
    border: none;
    color: #999;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.cart-item-remove:hover {
    background: #f5f5f5;
    color: #e74c3c;
}

.cart-dropdown-total {
    padding: 15px;
    border-top: 2px solid #eee;
    display: flex;
    justify-content: space-between;
    font-size: 16px;
}

.cart-dropdown-actions {
    padding: 15px;
    display: flex;
    gap: 10px;
}

.cart-dropdown-actions a {
    flex: 1;
    padding: 10px;
    text-align: center;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.cart-dropdown-actions .cart-btn {
    background: #f5f5f5;
    color: #333 !important;
}

.cart-dropdown-actions .cart-btn:hover {
    background: #e0e0e0;
}

.cart-dropdown-actions .checkout-btn {
    background: #3498db;
    color: white !important;
}

.cart-dropdown-actions .checkout-btn:hover {
    background: #2980b9;
}

.cart-empty {
    padding: 30px 15px;
    text-align: center;
    color: #999;
}

.user-profile-header-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Night Mode - Cart Icon Styles */
body.night-mode .cart-icon-toggle {
    color: #e0e0e0;
}

body.night-mode .cart-icon-toggle:hover {
    background: rgba(255, 255, 255, 0.05);
}

body.night-mode .cart-dropdown {
    background: #2a2a2a;
    border-color: #444;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    color: #e0e0e0;
}

body.night-mode .cart-dropdown-header {
    border-bottom-color: #444;
}

body.night-mode .cart-dropdown-item {
    border-bottom-color: #333;
}

body.night-mode .cart-item-info a {
    color: #e0e0e0 !important;
}

body.night-mode .cart-item-info a:hover {
    color: #64b5f6 !important;
}

body.night-mode .cart-item-price {
    color: #aaa;
}

body.night-mode .cart-item-remove {
    color: #999;
}

body.night-mode .cart-item-remove:hover {
    background: #333;
    color: #e74c3c;
}

body.night-mode .cart-dropdown-total {
    border-top-color: #444;
}

body.night-mode .cart-dropdown-actions .cart-btn {
    background: #333;
    color: #e0e0e0 !important;
}

body.night-mode .cart-dropdown-actions .cart-btn:hover {
    background: #444;
}

body.night-mode .cart-dropdown-actions .checkout-btn {
    background: #2980b9;
    color: white !important;
}

body.night-mode .cart-dropdown-actions .checkout-btn:hover {
    background: #3498db;
}

body.night-mode .cart-empty {
    color: #666;
}

/* SCDev Cart Dropdown Styles - Isolated from theme overrides */
.scdev-cart-dropdown {
    position: absolute !important;
    top: calc(100% + 10px) !important;
    right: 0 !important;
    background: white !important;
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    min-width: 320px !important;
    max-width: 400px !important;
    display: none !important;
    z-index: 1000 !important;
    color: #333 !important;
}

.scdev-cart-dropdown.active {
    display: block !important;
}

.scdev-cart-dropdown-header {
    padding: 15px !important;
    border-bottom: 1px solid #eee !important;
    font-size: 16px !important;
    color: inherit !important;
}

.scdev-cart-dropdown-items {
    max-height: 400px !important;
    overflow-y: auto !important;
}

.scdev-cart-dropdown-item {
    padding: 12px 15px !important;
    border-bottom: 1px solid #f5f5f5 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
}

.scdev-cart-item-info {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
}

.scdev-cart-item-info a {
    color: #333 !important;
    text-decoration: none !important;
    font-size: 14px !important;
}

.scdev-cart-item-info a:hover {
    color: #0073aa !important;
}

.scdev-cart-item-price {
    font-size: 13px !important;
    color: #666 !important;
    font-weight: bold !important;
}

.scdev-cart-item-remove {
    background: transparent !important;
    border: none !important;
    color: #999 !important;
    font-size: 24px !important;
    cursor: pointer !important;
    padding: 0 !important;
    width: 24px !important;
    height: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 4px !important;
    transition: all 0.2s !important;
}

.scdev-cart-item-remove:hover {
    background: #f5f5f5 !important;
    color: #e74c3c !important;
}

.scdev-cart-dropdown-total {
    padding: 15px !important;
    border-top: 2px solid #eee !important;
    display: flex !important;
    justify-content: space-between !important;
    font-size: 16px !important;
    color: inherit !important;
}

.scdev-cart-dropdown-actions {
    padding: 15px !important;
    display: flex !important;
    gap: 10px !important;
}

.scdev-cart-dropdown-actions a {
    flex: 1 !important;
    padding: 10px !important;
    text-align: center !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    transition: all 0.2s !important;
}

.scdev-cart-btn {
    background: #f5f5f5 !important;
    color: #333 !important;
}

.scdev-cart-btn:hover {
    background: #e0e0e0 !important;
}

.scdev-checkout-btn {
    background: #3498db !important;
    color: white !important;
}

.scdev-checkout-btn:hover {
    background: #2980b9 !important;
}

.scdev-cart-empty {
    padding: 30px 15px !important;
    text-align: center !important;
    color: #999 !important;
}

/* Night mode for SCDev cart */
body.night-mode .scdev-cart-toggle {
    color: #e0e0e0 !important;
}

body.night-mode .scdev-cart-toggle:hover {
    background: rgba(255, 255, 255, 0.05) !important;
}

body.night-mode .scdev-cart-dropdown {
    background: #2a2a2a !important;
    border-color: #444 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
    color: #e0e0e0 !important;
}

body.night-mode .scdev-cart-dropdown-header {
    border-bottom-color: #444 !important;
}

body.night-mode .scdev-cart-dropdown-item {
    border-bottom-color: #333 !important;
}

body.night-mode .scdev-cart-item-info a {
    color: #e0e0e0 !important;
}

body.night-mode .scdev-cart-item-info a:hover {
    color: #64b5f6 !important;
}

body.night-mode .scdev-cart-item-price {
    color: #aaa !important;
}

body.night-mode .scdev-cart-item-remove {
    color: #999 !important;
}

body.night-mode .scdev-cart-item-remove:hover {
    background: #333 !important;
    color: #e74c3c !important;
}

body.night-mode .scdev-cart-dropdown-total {
    border-top-color: #444 !important;
}

body.night-mode .scdev-cart-btn {
    background: #333 !important;
    color: #e0e0e0 !important;
}

body.night-mode .scdev-cart-btn:hover {
    background: #444 !important;
}

body.night-mode .scdev-checkout-btn {
    background: #2980b9 !important;
    color: white !important;
}

body.night-mode .scdev-checkout-btn:hover {
    background: #3498db !important;
}

body.night-mode .scdev-cart-empty {
    color: #666 !important;
}

/* Floating Action Buttons Container */
.scdev-floating-actions {
    position: fixed;
    bottom: 10px;
    right: 80px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 99998;
    pointer-events: none;
}

.scdev-floating-actions > * {
    pointer-events: auto;
}

/* Mobile positioning - centered at bottom */
@media (max-width: 768px) {
    .scdev-floating-actions {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        flex-direction: row;
        bottom: 10px;
    }
}

/* Social Media Icons - Brand Colors */
.social-buttons {
    display: flex;
    gap: 5px;
    align-items: center;
}

.social-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 24px !important;
    height: 24px !important;
    border-radius: 4px !important;
    transition: transform 0.2s, opacity 0.2s !important;
    text-decoration: none !important;
}

.social-button:hover {
    transform: scale(1.1) !important;
    opacity: 0.9 !important;
}

.social-button svg {
    width: 20px !important;
    height: 20px !important;
}

/* TikTok - Cyan/Pink gradient colors */
.tiktok-icon {
    fill: #00C4CC;
}

body.night-mode .tiktok-icon {
    fill: #9B59B6;
}

/* X (Twitter) - Black on light mode, White on night mode */
.x-icon {
    fill: #000000;
}

body.night-mode .x-icon {
    fill: #FFFFFF;
}

/* TinyMCE Columns - Frontend Styles */
.scdev-columns {
    display: flex;
    gap: 0; /* No gaps between columns */
    margin: 0; /* No top/bottom margin - use single column for spacing */
}

/* Single column - centered with resizable width */
.scdev-cols-1 {
    justify-content: center;
    gap: 0;
}

.scdev-cols-1 .scdev-col {
    width: 100%; /* Full width */
    resize: both;
    overflow: auto;
    min-width: 200px;
    min-height: 10px; /* Minimum 10px height */
    border: 1px solid #ddd; /* Visible border for resize handle */
}

.scdev-cols-2 .scdev-col {
    flex: 1;
    resize: both;
    overflow: auto;
    min-width: 100px;
    min-height: 20px;
    border: 1px solid #ddd; /* Visible border for resize handle */
}

.scdev-cols-3 .scdev-col {
    flex: 1;
    resize: both;
    overflow: auto;
    min-width: 100px;
    min-height: 20px;
    border: 1px solid #ddd; /* Visible border for resize handle */
}

.scdev-cols-25-75 .scdev-col:first-child {
    flex: 0 0 25%;
    resize: both;
    overflow: auto;
    min-width: 100px;
    min-height: 20px;
    border: 1px solid #ddd; /* Visible border for resize handle */
}

.scdev-cols-25-75 .scdev-col:last-child {
    flex: 1;
    resize: both;
    overflow: auto;
    min-width: 100px;
    min-height: 20px;
    border: 1px solid #ddd; /* Visible border for resize handle */
}

.scdev-cols-75-25 .scdev-col:first-child {
    flex: 1;
    resize: both;
    overflow: auto;
    min-width: 100px;
    min-height: 20px;
    border: 1px solid #ddd; /* Visible border for resize handle */
}

.scdev-cols-75-25 .scdev-col:last-child {
    flex: 0 0 25%;
    resize: both;
    overflow: auto;
    min-width: 100px;
    min-height: 20px;
    border: 1px solid #ddd; /* Visible border for resize handle */
}

.scdev-col {
    padding: 10px;
}

/* Responsive columns - stack on mobile */
@media (max-width: 768px) {
    .scdev-columns {
        flex-direction: column;
    }
    
    .scdev-cols-25-75 .scdev-col:first-child,
    .scdev-cols-75-25 .scdev-col:last-child {
        flex: 1;
    }
}

/* TinyMCE Buttons - Frontend Styles */
.scdev-button {
    display: inline-block;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    margin: 5px;
    transition: all 0.3s ease;
}

.scdev-btn-primary {
    background: #0073aa;
    color: white;
}

.scdev-btn-primary:hover {
    background: #005a87;
    color: white;
}

.scdev-btn-secondary {
    background: #f9fafb;
    color: rgb(96, 96, 98);
}

.scdev-btn-secondary:hover {
    background: #545b62;
    color: white;
}

.scdev-btn-success {
    background: #28a745;
    color: white;
}

.scdev-btn-success:hover {
    background: #218838;
    color: white;
}

.scdev-btn-danger {
    background: #dc3545;
    color: white;
}

.scdev-btn-danger:hover {
    background: #c82333;
    color: white;
}

.scdev-btn-warning {
    background: #ffc107;
    color: #333;
}

.scdev-btn-warning:hover {
    background: #e0a800;
    color: #333;
}

.scdev-btn-info {
    background: #17a2b8;
    color: white;
}

.scdev-btn-info:hover {
    background: #138496;
    color: white;
}

.scdev-btn-small {
    padding: 5px 15px;
    font-size: 14px;
}

.scdev-btn-medium {
    padding: 10px 20px;
    font-size: 16px;
}

.scdev-btn-large {
    padding: 15px 30px;
    font-size: 18px;
}

/* New Column Layouts - Tall + Short combinations */
.scdev-cols-tall-left,
.scdev-cols-tall-right {
    gap: 0;
}

.scdev-col-tall {
    flex: 1;
    resize: both;
    overflow: auto;
    min-width: 100px;
    min-height: 20px;
    border: 1px solid #ddd;
}

.scdev-col-stack {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.scdev-col-short {
    flex: 1;
    resize: both;
    overflow: auto;
    min-width: 100px;
    min-height: 20px;
    border: 1px solid #ddd;
}

/* Column Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes slideDown {
    from { transform: translateY(-30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes slideLeft {
    from { transform: translateX(30px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideRight {
    from { transform: translateX(-30px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    60% { transform: translateY(-10px); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.scdev-animate-fadeIn { animation: fadeIn 0.8s ease-in-out; }
.scdev-animate-slideUp { animation: slideUp 0.8s ease-out; }
.scdev-animate-slideDown { animation: slideDown 0.8s ease-out; }
.scdev-animate-slideLeft { animation: slideLeft 0.8s ease-out; }
.scdev-animate-slideRight { animation: slideRight 0.8s ease-out; }
.scdev-animate-zoomIn { animation: zoomIn 0.8s ease-out; }
.scdev-animate-bounce { animation: bounce 1s ease-in-out; }
.scdev-animate-pulse { animation: pulse 1.5s ease-in-out infinite; }

/* Text FX Animations */
.scdev-textfx {
    display: inline-block;
}

.scdev-textfx .scdev-letter {
    display: inline-block;
    opacity: 0;
}

/* Speed variations */
.scdev-textfx-slow .scdev-letter { animation-duration: 1.5s !important; }
.scdev-textfx-normal .scdev-letter { animation-duration: 0.8s !important; }
.scdev-textfx-fast .scdev-letter { animation-duration: 0.4s !important; }

/* Split from Sides */
@keyframes splitLeft {
    from { transform: translateX(-100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes splitRight {
    from { transform: translateX(100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.scdev-textfx-split .scdev-split-left {
    animation: splitLeft forwards;
}

.scdev-textfx-split .scdev-split-right {
    animation: splitRight forwards;
}

/* Typewriter */
@keyframes typewriter {
    from { opacity: 0; }
    to { opacity: 1; }
}

.scdev-textfx-typewriter .scdev-letter {
    animation: typewriter forwards;
}

/* Wave Bounce */
@keyframes waveBounce {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(-20px); }
}

.scdev-textfx-wave .scdev-letter {
    animation: waveBounce forwards;
    opacity: 1;
}

/* Glitch */
@keyframes glitch {
    0% { transform: translate(0); opacity: 0; }
    20% { transform: translate(-2px, 2px); opacity: 0.5; }
    40% { transform: translate(2px, -2px); opacity: 0.7; }
    60% { transform: translate(-1px, 1px); opacity: 0.9; }
    80% { transform: translate(1px, -1px); opacity: 1; }
    100% { transform: translate(0); opacity: 1; }
}

.scdev-textfx-glitch .scdev-letter {
    animation: glitch forwards;
}

/* Fade In Letters */
@keyframes fadeInLetter {
    from { opacity: 0; }
    to { opacity: 1; }
}

.scdev-textfx-fadeletters .scdev-letter {
    animation: fadeInLetter forwards;
}

/* Rotate In */
@keyframes rotateIn {
    from { transform: rotate(-180deg) scale(0); opacity: 0; }
    to { transform: rotate(0) scale(1); opacity: 1; }
}

.scdev-textfx-rotate .scdev-letter {
    animation: rotateIn forwards;
}

/* Scale Up */
@keyframes scaleUp {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.scdev-textfx-scale .scdev-letter {
    animation: scaleUp forwards;
}

/* Color Shift */
@keyframes colorShift {
    0% { color: #ff0000; opacity: 0; }
    25% { color: #00ff00; opacity: 0.5; }
    50% { color: #0000ff; opacity: 0.75; }
    75% { color: #ff00ff; opacity: 0.9; }
    100% { color: inherit; opacity: 1; }
}

.scdev-textfx-colorshift .scdev-letter {
    animation: colorShift forwards;
}

/* Blur In */
@keyframes blurIn {
    from { filter: blur(10px); opacity: 0; }
    to { filter: blur(0); opacity: 1; }
}

.scdev-textfx-blur .scdev-letter {
    animation: blurIn forwards;
}

/* Flip In */
@keyframes flipIn {
    from { transform: rotateY(90deg); opacity: 0; }
    to { transform: rotateY(0); opacity: 1; }
}

.scdev-textfx-flip .scdev-letter {
    animation: flipIn forwards;
    transform-style: preserve-3d;
}

/* Responsive Embed Styles */
.scdev-embed {
    margin: 20px auto;
}

.scdev-embed-center {
    margin-left: auto;
    margin-right: auto;
}

.scdev-embed-left {
    margin-right: auto;
}

.scdev-embed-right {
    margin-left: auto;
}

.scdev-embed-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
}

.scdev-embed-container iframe,
.scdev-embed-container object,
.scdev-embed-container embed,
.scdev-embed-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Responsive - stack on mobile */
@media (max-width: 768px) {
    .scdev-embed {
        width: 100% !important;
    }
}

/* Comments Section - Day/Night Mode Responsive */
.comments-section {
    border-top: 2px solid var(--border-color, #e0e0e0);
  /*  background: var(--bg-primary, #ffffff); */
    color: var(--text-primary, #333333);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* CSS Variables for Day/Night Mode */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-card: #ffffff;
    --text-primary: #333333;
    --text-secondary: #6c757d;
    --text-accent: #2c3e50;
    --border-color: #e1e5e9;
    --shadow-light: rgba(0,0,0,0.05);
    --shadow-medium: rgba(0,0,0,0.1);
    --accent-color: #007cba;
    --accent-hover: #005a87;
}

/* Dark mode variables - Use theme's night mode class */
body.night-mode {
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --bg-card: #2d2d2d;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-accent: #ffffff;
    --border-color: #404040;
    --shadow-light: rgba(0,0,0,0.3);
    --shadow-medium: rgba(0,0,0,0.4);
    --accent-color: #4a9eff;
    --accent-hover: #357abd;
}

.comments-area {
    max-width: 100%;
}

.comments-title {
    font-size: 24px;
    margin-bottom: 25px;
    color: var(--text-accent);
    font-weight: 600;
}

/* Scrollable Comments Container */
.comments-scroll-container {
    max-height: 500px;
    overflow-y: auto;
    padding-right: 10px;
    margin-bottom: 20px;
    border-radius: 12px;
  /*  background: var(--bg-secondary); */
    padding: 15px;
}

/* Custom scrollbar for webkit browsers */
.comments-scroll-container::-webkit-scrollbar {
    width: 8px;
}

.comments-scroll-container::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 4px;
}

.comments-scroll-container::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.comments-scroll-container::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment-list .comment {
    margin-bottom: 20px;
    padding: 20px;
  /*  background: var(--bg-card); */
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 4px var(--shadow-light);
    position: relative;
    transition: all 0.3s ease;
}

.comment-list .comment:hover {
    box-shadow: 0 4px 8px var(--shadow-medium);
    transform: translateY(-1px);
}

.comment-list .comment .comment-author {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.comment-list .comment .comment-author .avatar {
    border-radius: 50% !important;
    margin-right: 12px;
    border: 2px solid var(--border-color);
}

.comment-list .comment .comment-author .fn {
    font-weight: 600;
    font-size: 16px;
    color: var(--text-accent);
    text-decoration: none;
}

.comment-list .comment .comment-author .fn:hover {
    color: var(--accent-color);
}

.comment-list .comment .comment-author .says {
    display: none; /* Hide "says:" text */
}

.comment-list .comment .comment-meta {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.4;
}

.comment-list .comment .comment-meta a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.comment-list .comment .comment-meta a:hover {
    color: var(--accent-color);
}

.comment-list .comment .comment-content {
    line-height: 1.6;
    color: var(--text-primary);
    font-size: 15px;
}

.comment-list .comment .comment-content p {
    margin-bottom: 15px;
}

.comment-list .comment .comment-content p:last-child {
    margin-bottom: 0;
}

.comment-list .children {
    margin-left: 40px;
    margin-top: 20px;
}

.comment-list .children .comment {
    border-left: 3px solid var(--accent-color);
    background: var(--bg-secondary);
}

/* Hide reply links */
.comment-list .comment .reply {
    display: none !important;
}

/* Comment Form */
.comment-form {
    margin: 40px auto;
    padding: 30px;
   /* background: var(--bg-card); */
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 4px var(--shadow-light);
    max-width: 800px;
    text-align: center;
    transition: all 0.3s ease;
}

.comment-form h3 {
    margin-bottom: 25px;
    color: var(--text-accent);
    font-size: 22px;
    font-weight: 600;
    text-align: center;
}

.comment-form .comment-form-comment {
    margin-bottom: 25px;
    text-align: center;
}

.comment-form textarea {
    width: 100%;
    min-height: 80px;
    max-height: 80px;
    padding: 20px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    line-height: 1.5;
    resize: vertical;
    transition: all 0.2s ease;
    box-sizing: border-box;
    background: var(--bg-primary);
    color: var(--text-primary);
}

.comment-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(74, 158, 255, 0.1);
}

.comment-form textarea::placeholder {
    color: var(--text-secondary);
}

.comment-form .form-submit {
    margin: 0;
    text-align: center;
}

.comment-form input[type="submit"] {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: background-color 0.2s ease;
    display: inline-block;
}

.comment-form input[type="submit"]:hover {
    background: var(--accent-hover);
}

.no-comments {
    font-style: italic;
    color: var(--text-secondary);
    text-align: center;
    padding: 30px;
    background: var(--bg-secondary);
    border-radius: 8px;
    margin: 20px 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .comments-scroll-container {
        max-height: 400px;
        padding: 10px;
    }
    
    .comment-list .children {
        margin-left: 20px;
    }
    
    .comment-form {
        margin: 20px 10px;
        padding: 20px;
    }
}
/* Inline Comment Editing */
.comment-edit-form {
    margin-top: 15px;
    padding: 15px;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.comment-edit-textarea {
    width: 100%;
    min-height: 80px;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    line-height: 1.5;
    resize: vertical;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.comment-edit-textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(74, 158, 255, 0.1);
}

.comment-edit-actions {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    justify-content: flex-start;
}

.save-comment-btn,
.cancel-edit-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.save-comment-btn {
    background: var(--accent-color);
    color: white;
}

.save-comment-btn:hover:not(:disabled) {
    background: var(--accent-hover);
}

.save-comment-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.cancel-edit-btn {
    background: var(--bg-primary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.cancel-edit-btn:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.edit-comment-link {
    cursor: pointer;
}

.edit-comment-link:hover {
    color: var(--accent-color) !important;
}
/* Comment Success Message */
.comment-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 6px;
    padding: 8px 12px;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 500;
}

@media (prefers-color-scheme: dark) {
    .comment-success {
        background: #1e4d2b;
        color: #a3d9a5;
        border-color: #2d5a34;
    }
}

/* Content Area Padding */
article {
    padding: 4px;
}

.entry-content {
    padding-left: 0;
    padding-right: 0;
}

.entry-header,
.entry-footer {
    padding-left: 0;
    padding-right: 0;
}
/* Archive Page Styles */
.archive-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px 0;
}

.archive-header {
    text-align: center;
    margin-bottom: 40px;
}

.archive-title {
    font-size: 32px;
    color: var(--text-accent);
    margin-bottom: 10px;
}

.archive-description {
    color: var(--text-secondary);
    font-size: 16px;
}

/* Archive Grid - 2 cards per row */
.archive-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0px;
    margin-bottom: 40px;
}

/* Archive Card */
.archive-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px var(--shadow-light);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.archive-card:hover {
    box-shadow: 0 8px 24px var(--shadow-medium);
    transform: translateY(-4px);
}

/* Card Image - 250px height */
.card-image {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.archive-featured-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.archive-card:hover .archive-featured-image {
    transform: scale(1.05);
}

/* Placeholder for posts without featured image */
.card-placeholder {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #3498db 0%, #f39c12 50%, #9b59b6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.archive-icon {
    font-size: 64px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Card Content */
.card-content {
    padding: 20px;
}

.card-title {
    margin: 0 0 15px 0;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
}

.card-title a {
    color: var(--text-accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

.card-title a:hover {
    color: var(--accent-color);
}

/* Card Meta */
.card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    font-size: 13px;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.meta-author {
    display: flex;
    align-items: center;
    gap: 6px;
}

.meta-author .avatar {
    border-radius: 50%;
    width: 24px;
    height: 24px;
}

.author-name {
    font-weight: 500;
}

.meta-separator {
    color: var(--border-color);
}

.meta-category a {
    color: var(--accent-color);
    text-decoration: none;
}

.meta-category a:hover {
    text-decoration: underline;
}

/* Card Excerpt */
.card-excerpt {
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 14px;
}

.card-excerpt p {
    margin: 0;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.page-numbers {
    padding: 10px 15px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.page-numbers:hover,
.page-numbers.current {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .archive-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .archive-container {
        padding: 15px 0;
    }
    
    .archive-title {
        font-size: 24px;
    }
    
    .card-content {
        padding: 15px;
    }
    
    .card-title {
        font-size: 18px;
    }
    
    .card-meta {
        font-size: 12px;
        gap: 6px;
    }
}

/* Archive Grid - Responsive Update */
.archive-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 0px !important;
    margin-bottom: 40px !important;
}

/* Archive Card - Border Radius Update */
.archive-card {
    border-radius: 8px !important;
}
/* Archive Image Width Update */
.archive-featured-image {
    width: 100% !important;
}

.card-placeholder {
    width: 100% !important;
}
/* Force archive image width override */
.archive-card .card-image img {
    width: 100% !important;
    max-width: none !important;
    height: 250px !important;
    object-fit: cover !important;
}
/* Archive Grid - Fix for theme content width */
.archive-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 6px !important;
    margin-bottom: 40px !important;
}

/* Ensure cards fit in narrow content area */
.archive-card {
    min-width: 0 !important;
    width: 100% !important;
}
/* Archive Grid - Force 2 columns with higher specificity */
.archive-container .archive-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    width: 100% !important;
}

.archive-container .archive-grid .archive-card {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    flex: none !important;
}/* Archive Fixes - Clean Implementation */
.archive-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    margin-bottom: 40px !important;
}

.archive-card {
    border-radius: 8px !important;
    min-width: 0 !important;
    width: 100% !important;
}

.archive-card .card-image img {
    width: 100% !important;
    height: 250px !important;
    object-fit: cover !important;
}

.card-placeholder {
    width: 100% !important;
}
/* FINAL ARCHIVE OVERRIDE - HIGHEST PRIORITY */
body .theme-content .archive-container .archive-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0px !important;
    margin-bottom: 40px !important;
    width: 100% !important;
}

body .theme-content .archive-container .archive-grid .archive-card {
    border-radius: 8px !important;
    min-width: 0 !important;
    width: 100% !important;
    max-width: none !important;
}

body .theme-content .archive-container .archive-grid .archive-card .card-image img {
    width: 100% !important;
    height: 250px !important;
    object-fit: cover !important;
}

body .theme-content .archive-container .archive-grid .archive-card .card-placeholder {
    width: 100% !important;
}
/* Archive Page Styles */
.archive-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px 0;
}

.archive-header {
    text-align: center;
    margin-bottom: 40px;
}

.archive-title {
    font-size: 32px;
    color: var(--text-accent);
    margin-bottom: 10px;
}

.archive-description {
    color: var(--text-secondary);
    font-size: 16px;
}

/* Archive Grid - 2 cards per row */
.archive-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0px;
    margin-bottom: 40px;
}

/* Archive Card */
.archive-card {
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px var(--shadow-light);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.archive-card:hover {
    box-shadow: 0 8px 24px var(--shadow-medium);
    transform: translateY(-4px);
}

/* Card Image - 250px height */
.card-image {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.archive-featured-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.archive-card:hover .archive-featured-image {
    transform: scale(1.05);
}

/* Placeholder for posts without featured image */
.card-placeholder {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #3498db 0%, #f39c12 50%, #9b59b6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.archive-icon {
    font-size: 64px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Card Content */
.card-content {
    padding: 20px;
}

.card-title {
    margin: 0 0 15px 0;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
}

.card-title a {
    color: var(--text-accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

.card-title a:hover {
    color: var(--accent-color);
}

/* Card Meta */
.card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    font-size: 13px;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.meta-author {
    display: flex;
    align-items: center;
    gap: 6px;
}

.meta-author .avatar {
    border-radius: 50%;
    width: 24px;
    height: 24px;
}

.author-name {
    font-weight: 500;
}

.meta-separator {
    color: var(--border-color);
}

.meta-category a {
    color: var(--accent-color);
    text-decoration: none;
}

.meta-category a:hover {
    text-decoration: underline;
}

/* Card Excerpt */
.card-excerpt {
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 14px;
}

.card-excerpt p {
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .archive-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .archive-container {
        padding: 15px 0;
    }
    
    .archive-title {
        font-size: 24px;
    }
    
    .card-content {
        padding: 15px;
    }
    
    .card-title {
        font-size: 18px;
    }
    
    .card-meta {
        font-size: 12px;
        gap: 6px;
    }
}
/* Archive Updates - Stacked Layout */
.archive-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0px !important;
    margin-bottom: 40px !important;
}

.archive-card {
    max-width: 600px !important;
    margin: 0 auto !important;
}

/* Wider and longer images, centered */
.card-image {
    height: 350px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.archive-featured-image {
    width: 100% !important;
    height: 350px !important;
}

.card-placeholder {
    width: 100% !important;
    height: 350px !important;
}

/* All meta in ONE line */
.card-meta {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
    overflow: hidden !important;
}
/* Override post placeholder styles */
.post-card .post-placeholder {
    width: 100% !important;
    height: 220px !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 96px !important;
    color: white !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3) !important;
}

/* Override posts wrapper padding */
.posts-wrapper {
    padding: 15px 10px !important;
}

@media (max-width: 768px) {
    .posts-wrapper {
        padding: 15px 5px !important;
    }
    
    .post-card .post-placeholder {
        height: 250px !important;
    }
}

/* ── scdev-quick-chat: frontend admin inbox ── */
.theme-content:has(.scdev-chat-admin-shell) {
    overflow-x: visible !important;
    overflow-y: visible !important;
    height: auto !important;
    min-height: calc(100vh - var(--header-height, 60px) - var(--footer-height, 60px) - (var(--element-gap, 10px) * 2));
}

.scdev-chat-admin-shell {
    width: 100%;
    box-sizing: border-box;
}

/* Hide Share/Comments entry meta footer buttons */
.entry-meta-footer {
    display: none !important;
}

/* scdev-chat-messages: shift trigger left on mobile to avoid overlap */
@media (max-width: 768px) {
    .scdev-messenger-trigger {
        right: 350px !important;
    }
}

/* scdev-fcommerce: cart icon mobile position - far right */
@media (max-width: 768px) {
    #fc-floating-cart {
        top: 8px !important;
        right: 50px !important;
    }
}

/* ── scdev-quick-chat: vertical stack layout in theme-deluxe ── */
.theme-content .scdev-chat-admin-app {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    min-height: 0 !important;
    gap: 12px !important;
}

/* Sidebar (conversations list) on top, fixed height with scroll */
.theme-content .scdev-chat-admin-sidebar {
    max-height: 220px !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

/* Thread panel below, auto height */
.theme-content .scdev-chat-admin-thread {
    min-height: 400px !important;
    height: auto !important;
    flex: 1 1 auto !important;
}

/* Messages area scrollable */
.theme-content .scdev-chat-admin-messages {
    min-height: 200px !important;
    max-height: 400px !important;
    overflow-y: auto !important;
}

/* Conversation item: name + meta on one line */
.theme-content .scdev-chat-admin-item {
    padding: 10px 16px !important;
}

.theme-content .scdev-chat-admin-item strong,
.theme-content .scdev-chat-admin-item span {
    display: inline !important;
}

.theme-content .scdev-chat-admin-item strong::after {
    content: ' · ';
    color: #aaa;
    font-weight: normal;
}

.theme-content .scdev-chat-admin-item .scdev-chat-admin-unread-dot {
    display: inline-block !important;
    margin-right: 4px !important;
}

/* ── scdev-quick-chat: fit within theme content area ── */
.theme-content:has(.scdev-chat-admin-shell) {
    overflow-y: auto !important;
    height: calc(100vh - var(--header-height, 60px) - var(--footer-height, 60px) - (var(--element-gap, 10px) * 2)) !important;
    display: flex !important;
    flex-direction: column !important;
}

.theme-content .scdev-chat-admin-shell {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

.theme-content .scdev-chat-admin-app {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: auto !important;
}

/* Blog post avatar */
.rounded-avatar {
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    object-fit: cover !important;
}

/* Single post title */
.entry-title {
    font-size: 24px;
    font-weight: 700;
    margin: 12px 0;
    display: block !important;
    visibility: visible !important;
    color: inherit;
}

/* Comments layout */
.comments-scroll-container {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 4px;
}

.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.scdev-comment {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.scdev-comment-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.scdev-comment-meta-line {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.scdev-comment-author {
    font-weight: 600;
    font-size: 14px;
}

.scdev-comment-time {
    color: #888;
    font-size: 12px;
}

.scdev-comment-edit a {
    font-size: 12px;
    color: #aaa;
}

.scdev-comment-body {
    padding-left: 46px;
    font-size: 14px;
    line-height: 1.6;
    color: #444;
}

/* Page content typography */
.page-content h1, .page-content h2, .page-content h3,
.page-content h4, .page-content h5, .page-content h6 {
    margin-top: 1.4em;
    margin-bottom: 0.5em;
    line-height: 1.3;
}

.page-content p {
    margin-bottom: 1em;
    line-height: 1.7;
}

.page-content ul, .page-content ol {
    margin: 0.5em 0 1em 1.5em;
    padding: 0;
}

.page-content li {
    margin-bottom: 0.4em;
    line-height: 1.6;
}

.page-content strong {
    font-weight: 600;
}

.page-content a {
    color: #0073aa;
    text-decoration: underline;
}

/* Hide nav menus in mobile footer - mobile has its own navigation panel */
@media (max-width: 768px) {
	.mobile-footer nav,
	.mobile-footer .menu,
	.mobile-footer ul.menu {
		display: none !important;
	}
	
	.mobile-header-logo img {
		max-height: 40px;
		width: auto;
	}
	
	.mobile-header-title {
		font-size: 18px;
		font-weight: bold;
		color: #fff;
		text-decoration: none;
	}
	
	.mobile-header-center {
		display: flex;
		align-items: center;
		justify-content: center;
	}
	
	/* Style night mode button in user dropdown */
	.mobile-user-night-mode-btn {
		background: none;
		border: none;
		color: inherit;
		font-size: inherit;
		padding: 0;
		cursor: pointer;
		width: 100%;
		text-align: center;
	}
}


/* Mobile footer: stack vertically - desktop footer hidden on mobile via earlier rule */

/* Mobile user menu (Profile, Logout, etc.) */
.mobile-user-menu {
    display: none;
}

@media (max-width: 768px) {
    /* Keep icons/text readable on the fixed dark bar (avoid inheriting body text color). */
    .mobile-header {
        color: #fff;
    }
    .mobile-user-menu {
        display: none;
        background-color: inherit;
        border-top: 1px solid rgba(255,255,255,0.1);
        padding: 8px 0;
    }
    .mobile-user-menu.open {
        display: block;
    }
    /* Mobile user menu uses desktop classes, no custom styling needed */
}

/* Mobile cart menu */
.mobile-cart-menu {
    display: none;
}

@media (max-width: 768px) {
    .mobile-cart-menu {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background-color: #34495E;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding: 12px 16px;
        z-index: 998;
        max-height: 200px;
        overflow-y: auto;
        display: none;
    }
    .mobile-cart-menu.open {
        display: block;
    }
    .cart-menu-header {
        margin-bottom: 8px;
        font-weight: 600;
        color: white;
    }
    .cart-menu-content {
        font-size: 14px;
        color: rgba(255,255,255,0.9);
    }
    .cart-menu-content p {
        margin: 0 0 8px 0;
        color: rgba(255,255,255,0.8);
    }
    .cart-menu-content .user-profile-btn {
        display: inline-block;
        padding: 6px 12px;
        background: #3498db;
        color: white !important;
        text-decoration: none !important;
        border-radius: 4px;
        font-size: 12px;
        margin-top: 8px;
    }
    .cart-menu-content .user-profile-btn:hover {
        background: #2980b9 !important;
    }
}

/* Mobile header nav bar */
.mobile-header-nav {
    display: block;
}

@media (max-width: 768px) {
    .mobile-header-nav {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        background-color: inherit;
        border-top: 1px solid rgba(255,255,255,0.1);
        scrollbar-width: none;
    }
    .mobile-header-nav.open {
        display: block;
    }
    .mobile-header-nav::-webkit-scrollbar {
        display: none;
    }
    .mobile-header-nav-menu {
        display: flex;
        flex-direction: row;
        list-style: none;
        margin: 0;
        padding: 0 8px;
        gap: 4px;
        white-space: nowrap;
    }
    .mobile-header-nav-menu li {
        flex-shrink: 0;
    }
    .mobile-header-nav-menu li a {
        display: block;
        padding: 8px 12px;
        font-size: 13px;
        font-weight: 500;
        text-decoration: none;
        color: inherit;
        border-radius: 4px;
        transition: opacity 0.2s;
    }
    .mobile-header-nav-menu li a:hover {
        opacity: 0.75;
    }
    .mobile-header-nav-menu li.current-menu-item > a {
        font-weight: 700;
        border-bottom: 2px solid currentColor;
    }
}

/* Mobile header layout: social + hamburger | title (viewport-centered) | cart | avatar (margin-left: auto) */
@media (max-width: 768px) {
    .mobile-header {
        display: flex !important;
        align-items: center;
        gap: 8px;
        padding: 6px 12px;
        position: relative;
    }
    .mobile-header-left {
        order: 0;
        flex-shrink: 0;
        position: relative;
        z-index: 5;
    }
    .mob-nav-toggle {
        order: 1;
        flex-shrink: 0;
        position: relative;
        z-index: 5;
    }
    .mobile-header-cart {
        order: 120 !important;
        flex-shrink: 0;
        position: relative;
        z-index: 6;
        box-sizing: border-box;
        background: transparent !important;
        border: none !important;
        padding: 2px 6px !important;
        margin: 0 !important;
        cursor: pointer;
        display: flex !important;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        min-height: 44px;
        -webkit-tap-highlight-color: transparent;
        color: #fff !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    .mobile-header-cart-inner {
        display: flex;
        align-items: center;
        justify-content: center;
        pointer-events: none;
    }
    .mobile-header-cart-icon-wrap {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        width: 34px;
        height: 34px;
    }
    .mobile-header-cart-svg {
        display: block;
        width: 24px;
        height: 24px;
        color: #fff;
        stroke: #fff;
    }
    .mobile-header-cart-badge {
        position: absolute;
        top: -3px;
        right: -6px;
        min-width: 18px;
        height: 18px;
        padding: 0 5px;
        box-sizing: border-box;
        background: #ff4444;
        color: #fff !important;
        border-radius: 9px;
        font-size: 11px;
        font-weight: 700;
        line-height: 18px;
        text-align: center;
        align-items: center;
        justify-content: center;
    }
    /* Title/logo: true viewport center (not flex-column center next to social icons) */
    .mobile-header-center {
        position: absolute !important;
        left: 0 !important;
        right: 0 !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        margin-left: auto !important;
        margin-right: auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex: none !important;
        order: 50;
        text-align: center !important;
        max-width: min(260px, calc(100vw - 200px)) !important;
        width: max-content !important;
        z-index: 3;
        pointer-events: none;
    }
    .mobile-header-center a,
    .mobile-header-center img {
        pointer-events: auto;
    }
    .mobile-header-avatar {
        flex-shrink: 0;
        background: none;
        border: none;
        cursor: pointer;
        padding: 4px;
        display: flex;
        align-items: center;
        justify-content: center;
        order: 100;
        margin-left: auto !important;
        position: relative;
        z-index: 5;
    }
    .mobile-header-avatar img {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        object-fit: cover;
    }
}

/* === Mobile Nav Panel === */
.mob-nav-toggle {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.6);
    border-radius: 6px;
    color: white;
    font-size: 20px;
    line-height: 1;
    padding: 2px 7px;
    cursor: pointer;
}

.mob-nav-modal {
    display: none;
    position: fixed;
    bottom: 60px;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #2c3e50;
    border-radius: 14px 14px 0 0;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.35);
    padding: 12px 0 8px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.mob-nav-modal.closed {
    display: block;
}

.mob-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0 12px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}

.mob-nav-menu li {
    border: 1px solid #ffeb3b;
    flex: 0 1 auto;
    border-radius: 8px;
}

.mob-nav-menu a {
    display: block;
    padding: 4px 8px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.mob-nav-menu a:hover,
.mob-nav-menu a:active {
    background: rgba(255,255,255,0.1);
}

body.night-mode .mob-nav-modal {
    background: #1a1a2e;
}

.mob-nav-modal.closed { display: block; }

/* === Header Nav Modal === */
.hdr-nav-modal {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #2c3e50;
    border-radius: 0 0 14px 14px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.35);
    padding: 8px 0 12px;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
}

@media (max-width: 768px) {
    .hdr-nav-modal {
        display: none;
    }
    .hdr-nav-modal.closed {
        display: block;
    }
}

.hdr-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.hdr-nav-menu li {
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.hdr-nav-menu li:last-child {
    border-bottom: none;
}

.hdr-nav-menu a {
    display: block;
    padding: 14px 24px;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
}

.hdr-nav-menu a:hover,
.hdr-nav-menu a:active {
    background: rgba(255,255,255,0.1);
}

body.night-mode .hdr-nav-modal {
    background: #1a1a2e;
}

/* === Header Nav Modal - Sub-menus === */
.hdr-nav-menu .menu-item-has-children > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hdr-nav-menu .menu-item-has-children > a::after {
    content: '›';
    font-size: 20px;
    transition: transform 0.2s;
    margin-left: 8px;
}

.hdr-nav-menu .menu-item-has-children.open > a::after {
    transform: rotate(90deg);
    display: inline-block;
}

.hdr-nav-menu .sub-menu {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
    background: rgba(0,0,0,0.2);
}

.hdr-nav-menu .menu-item-has-children.open > .sub-menu {
    display: block;
}

.hdr-nav-menu .sub-menu a {
    padding: 11px 24px 11px 40px;
    font-size: 14px;
    color: rgba(255,255,255,0.8);
}

/* Hide toggle buttons on mobile - must be last to override fixed positioning */
@media (max-width: 768px) {
    .toggle-left-sidebar,
    .toggle-right-sidebar,
    .toggle-header,
    .toggle-footer,
    .toggle-left-extra,
    .toggle-right-extra,
    .toggle-left-blue,
    .toggle-all {
        display: none !important;
    }

    /* Footer Menu Icons - Mobile */
    .footer-menu-icons {
        display: flex;
        gap: 12px;
        align-items: center;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .footer-menu-icon {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        font-size: 28px;
        color: white;
        text-decoration: none;
        border-radius: 4px;
        transition: all 0.2s ease;
        position: relative;
    }

    .footer-menu-icon:hover {
        background: rgba(255, 255, 255, 0.1);
        transform: scale(1.1);
    }

    .footer-menu-icon-label {
        position: absolute;
        bottom: -24px;
        font-size: 11px;
        white-space: nowrap;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
        color: white;
        background: rgba(0, 0, 0, 0.7);
        padding: 2px 6px;
        border-radius: 3px;
    }

    .footer-menu-icon:hover .footer-menu-icon-label {
        opacity: 1;
    }

    /* Night mode styles for footer menu icons */
    body.night-mode .footer-menu-icon {
        color: #e0e0e0;
    }

    body.night-mode .footer-menu-icon:hover {
        background: rgba(255, 255, 255, 0.15);
    }

    body.night-mode .footer-menu-icon-label {
        background: rgba(0, 0, 0, 0.9);
        color: #e0e0e0;
    }
}


/* ══════════════════════════════════════════════════════════════════════════
   LOGIN PAGE OVERRIDES
   ══════════════════════════════════════════════════════════════════════════ */

/* Make theme content transparent on login page */
body.scdev-login-hero-page .theme-content {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
}

/* Hide all buttons and links on login page for testing */
body.scdev-login-hero-page .btn-submit,
body.scdev-login-hero-page .btn-show-login,
body.scdev-login-hero-page button,
body.scdev-login-hero-page input[type="submit"],
body.scdev-login-hero-page a {
    display: none !important;
}

/* Blog Featured Image - Single Post */
.blog-featured-image {
    margin: 0 0 20px 0;
    overflow: hidden;
    border-radius: 12px;
}

.blog-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

/* Night Mode Button - Show on Mobile */
@media (max-width: 768px) {
    /* Mobile User Avatar - Round */
    .mobile-header-avatar {
        border-radius: 50% !important;
        overflow: hidden !important;
        width: 36px !important;
        height: 36px !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .mobile-header-avatar img {
        border-radius: 50% !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
    
    /* Night Mode Button in User Menu - Responsive */
    .user-profile-btn-night-mode {
        font-size: 24px !important;
        padding: 8px !important;
        text-align: center !important;
        min-height: 44px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    /* Footer Night Mode Button - Mobile Positioning */
    .footer-night-mode-toggle {
        display: block !important;
        position: fixed !important;
        bottom: 70px !important;
        left: 8px !important;
        top: auto !important;
        transform: none !important;
        background: rgba(0, 0, 0, 0.7) !important;
        border-radius: 50% !important;
        width: 44px !important;
        height: 44px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        z-index: 999 !important;
        font-size: 22px !important;
    }
    
    .footer-night-mode-toggle:hover {
        transform: scale(1.1) !important;
        background: rgba(0, 0, 0, 0.9) !important;
    }
    
    body.night-mode .footer-night-mode-toggle {
        background: rgba(255, 255, 255, 0.2) !important;
    }
    
    body.night-mode .footer-night-mode-toggle:hover {
        background: rgba(255, 255, 255, 0.3) !important;
    }
}



/* Mobile Footer Icon Menu */
@media (max-width: 768px) {
    .mobile-footer-left {
        flex: 1;
        display: flex;
        justify-content: flex-start;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
    }
    
    .mobile-footer-left .scdev-footer-icon-menu {
        width: 100%;
    }
    
    .mobile-footer-left .footer-icon-menu-list {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        padding: 0 4px;
        gap: 2px;
    }
    
    .mobile-footer-left .footer-icon-menu-item {
        flex-shrink: 0;
    }
}

/* Mobile Footer Icon Menu - Scrollable */
@media (max-width: 768px) {
    .mobile-footer-left {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
    }
    
    .mobile-footer-left .footer-icon-menu-list {
        flex-wrap: nowrap;
        gap: 4px;
    }
    
    .mobile-footer-left .footer-icon-menu-item {
        flex-shrink: 0;
    }
    
    /* Hide text labels on mobile - show ONLY icons */
    .mobile-footer-left .footer-label {
        display: none !important;
    }
    
    .mobile-footer-left .footer-icon {
        font-size: 28px !important;
    }
}

/* Mobile Content Padding - Fixed 10px */
@media (max-width: 768px) {
    .theme-content,
    .content-inner {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
}
