/* ==========================================================================
   SHARED GLOBALS (Variables from Theme Options)
   ========================================================================== */
:root {
    --dd-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --dd-shadow-premium: 0 15px 45px rgba(0,0,0,0.12);
}

/* ==========================================================================
   ELEMENT 1: ACCOUNT (Premium Advanced)
   ========================================================================== */

.header-account {
    position: relative;
    display: inline-flex;
    align-items: center;
    transition: var(--dd-transition);
}

.header-account > a,
.auth-separate-wrapper {
    display: flex;
    align-items: center;
    text-decoration: none !important;
    color: var(--theme-text, #333);
    font-size: 14px;
    font-weight: 600;
    gap: 10px;
    transition: var(--dd-transition);
}

.header-account:hover > a {
    color: var(--theme-primary, #FF7130);
}

/* --- ICONS & AVATAR --- */
.header-account .account-icon,
.header-account .user-avatar {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-account .account-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.header-account:hover .account-icon img {
    transform: translateY(-3px) scale(1.1);
}

.header-account .user-avatar img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--theme-border, #eee);
    transition: var(--dd-transition);
}

.header-account:hover .user-avatar img {
    border-color: var(--theme-primary);
}

/* --- AUTH SEPARATE LAYOUT --- */
.auth-layout-separate {
    display: flex;
    align-items: center;
    font-weight: 700;
}
.auth-layout-separate .sep-text {
    margin: 0 6px;
    opacity: 0.4;
    font-weight: 300;
}

/* --- ALIGNMENT LOGIC --- */
.header-account.align-left > a { flex-direction: row; }
.header-account.align-right > a { flex-direction: row-reverse; }

/* STACKED MODE */
.header-account.align-center > a,
.header-account.align-center .auth-separate-wrapper {
    flex-direction: column;
    text-align: center;
    gap: 4px;
}
.header-account.align-center .account-text {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- DROPDOWN MENU --- */
.account-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 240px;
    background: #fff;
    border-radius: var(--border-radius, 8px);
    box-shadow: var(--dd-shadow-premium);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: var(--dd-transition);
    z-index: 1000;
    border: 1px solid rgba(0,0,0,0.05);
    margin-top: 10px;
}

.header-account:hover .account-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.account-dropdown ul { list-style: none; margin: 0; padding: 0; }
.account-dropdown li a {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #444;
}
.account-dropdown li a:hover {
    background-color: #f8f9fa;
    color: var(--theme-primary);
    padding-left: 25px;
}

/* ==========================================================================
   ELEMENT 2: ADDRESS (Universal Advanced)
   ========================================================================== */

.header-address {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: var(--dd-transition);
}

.header-address .contact-link {
    display: flex;
    align-items: center;
    text-decoration: none !important;
    color: var(--theme-text, #333);
    gap: inherit;
    transition: inherit;
}

.header-address:hover .contact-link {
    color: var(--theme-primary, #FF7130);
}

/* --- ICON STYLING --- */
.header-address .contact-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    transition: var(--dd-transition);
}

.header-address .contact-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.header-address:hover .contact-icon {
    transform: scale(1.15) rotate(5deg);
}

/* --- TEXT CONTENT --- */
.header-address .contact-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.header-address .header-address-label {
    font-size: 0.85em;
    font-weight: 400;
    opacity: 0.7;
}

.header-address .header-address-address {
    font-weight: 600;
}

/* --- DYNAMIC DISPLAY STYLES --- */
/* Match classes from header-classic.php */
.header-address.wishlist-icon_only .contact-text { display: none !important; }
.header-address.wishlist-text_only .contact-icon { display: none !important; }

/* ALIGNMENT: STACKED (CENTER) */
.header-address.wishlist-align-center .contact-link {
    flex-direction: column;
    text-align: center;
    gap: 4px;
}

/* ALIGNMENT: RIGHT */
.header-address.wishlist-align-right .contact-link {
    flex-direction: row-reverse;
}

/* ==========================================================================
   UNIVERSAL DARK MODE & RESPONSIVE
   ========================================================================== */

/* Dark Mode */
body.dark-mode .header-account a,
body.dark-mode .header-address .contact-link { color: #fff; }

body.dark-mode .account-dropdown { background: #1a1a1a; border-color: #333; }
body.dark-mode .account-dropdown li a { color: #ccc; }

.icon-dark { display: none !important; }
body.dark-mode .icon-light { display: none !important; }
body.dark-mode .icon-dark { display: block !important; }

/* Mobile Optimization */
@media (max-width: 768px) {
    .header-account .account-text,
    .header-address .header-address-label { 
        display: none !important; 
    }
    .header-address .header-address-address { font-size: 12px; }
}

/* ==========================================================================
   ELEMENT: BUTTON (Ultra Advanced)
   ========================================================================== */

.header-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    font-weight: 700;
    border-radius: var(--border-radius, 5px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    white-space: nowrap;
    border: 2px solid transparent;
}

/* SIZES */
.btn-extra-small { padding: 5px 12px; font-size: 11px; }
.btn-small { padding: 8px 16px; font-size: 13px; }
.btn-medium { padding: 12px 24px; font-size: 14px; }
.btn-large { padding: 15px 32px; font-size: 16px; }
.btn-extra-large { padding: 18px 40px; font-size: 18px; }

/* COLORS */
.btn-primary { background: var(--theme-primary); color: #fff; }
.btn-primary:hover { opacity: 0.9; transform: translateY(-2px); }

.btn-secondary { background: var(--theme-secondary); color: #fff; }
.btn-secondary:hover { opacity: 0.9; transform: translateY(-2px); }

.btn-white { background: transparent; border-color: #fff; color: #fff; }
.btn-white:hover { background: #fff; color: #000; }

.btn-dark { background: #111; color: #fff; }
.btn-dark:hover { background: #333; }

/* SHADOWS */
.shadow-soft { box-shadow: 0 4px 15px rgba(0,0,0,0.08); }
.shadow-hard { box-shadow: 0 8px 25px rgba(0,0,0,0.15); }

/* ALIGNMENT: STACKED */
.header-btn.align-center {
    flex-direction: column;
    padding-top: 15px;
    padding-bottom: 15px;
}
.header-btn.align-center .btn-icon-wrap { margin: 0 0 5px 0 !important; }

/* ICON STYLING */
.btn-icon-wrap {
    width: 1.2em;
    height: 1.2em;
    display: flex;
    align-items: center;
    justify-content: center;
}
.btn-icon-wrap img { width: 100%; height: 100%; object-fit: contain; }

/* HOVER ANIMATION: Button Push */
.header-btn:active { transform: scale(0.96); }

/* DARK MODE */
body.dark-mode .btn-white { border-color: #555; color: #eee; }
body.dark-mode .btn-white:hover { background: #eee; color: #000; }

/* ==========================================================================
   ELEMENT: COUNTDOWN BANNER (Advanced Layouts)
   ========================================================================== */

.header-countdown-banner {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    padding: 10px;
    background: rgba(var(--theme-primary-rgb), 0.05); /* Soft Tint Background */
    border-radius: 8px;
    transition: all 0.3s ease;
}

.countdown-title {
    font-weight: 800;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--theme-text);
}

/* TIMER WRAPPER */
.countdown-timer-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.timer-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 35px;
}

.timer-unit .number {
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
}

.timer-unit .label {
    font-size: 9px;
    text-transform: uppercase;
    font-weight: 700;
    opacity: 0.6;
    margin-top: 2px;
}

/* STYLE: BOXED & ROUNDED */
.timer-style-boxed .timer-unit,
.timer-style-rounded .timer-unit {
    background: #fff;
    padding: 5px 8px;
    border: 1px solid #eee;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.timer-style-boxed .timer-unit { border-radius: 4px; }
.timer-style-rounded .timer-unit { border-radius: 50%; min-width: 45px; min-height: 45px; justify-content: center; }

/* STYLE: MINIMAL SEP */
.timer-sep { font-weight: 900; font-size: 18px; opacity: 0.3; }

/* ACTION BUTTON */
.countdown-btn {
    background: var(--theme-primary);
    color: #fff;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.countdown-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(var(--theme-primary-rgb), 0.3);
}

.countdown-btn .btn-icon { width: 14px; height: 14px; }

/* DARK MODE */
body.dark-mode .timer-style-boxed .timer-unit,
body.dark-mode .timer-style-rounded .timer-unit { background: #1a1a1a; border-color: #333; }

/* ==========================================================================
   ELEMENT: DARK MODE TOGGLE (Premium Adaptive)
   ========================================================================== */

.dodigitals-dark-mode-toggle {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
}

/* 1. ICON WRAPPER & ANIMATIONS */
.dm-icon-wrapper {
    width: 24px;
    height: 24px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dm-icon-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: absolute;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Rotate Animation */
.anim-rotate.active-dark .dm-icon-wrapper img { transform: rotate(360deg); }
/* Flip Animation */
.anim-flip .light-mode-icon { backface-visibility: hidden; }
.anim-flip.active-dark .dm-icon-wrapper { transform: rotateY(180deg); }

/* 2. LABEL TEXT */
.dm-label-text {
    margin-left: 8px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 3. iOS STYLE SWITCH (The Pro Version) */
.display-switch .dm-switch-track {
    width: 48px;
    height: 26px;
    background: #eee;
    border-radius: 50px;
    position: relative;
    padding: 3px;
    transition: background 0.4s ease;
    border: 1px solid #ddd;
}

.display-switch .dm-switch-handle {
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.display-switch .dm-switch-handle img { width: 12px; height: 12px; }

/* 4. ACTIVE STATES (Triggered by JS toggle) */
body.dark-mode .light-mode-icon,
body.dark-mode .label-light { display: none !important; }
body.dark-mode .dark-mode-icon,
body.dark-mode .label-dark { display: block !important; }

/* Switch Active State */
body.dark-mode .display-switch .dm-switch-track { background: var(--theme-primary); border-color: var(--theme-primary); }
body.dark-mode .display-switch .dm-switch-handle { transform: translateX(22px); }
body.dark-mode .display-switch .icon-light { display: none !important; }
body.dark-mode .display-switch .icon-dark { display: block !important; }

/* Hover Effects */
.dodigitals-dark-mode-toggle:hover .dm-icon-wrapper { transform: scale(1.1); }

/* ==========================================================================
   ELEMENT: DATE & TIME (Ultra Advanced)
   ========================================================================== */

.header-datetime {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--theme-text, #333);
    font-weight: 600;
    transition: all 0.3s ease;
}

.datetime-icon {
    width: 1.3em;
    height: 1.3em;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
}

.datetime-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.datetime-content {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.datetime-prefix {
    font-size: 0.8em;
    font-weight: 400;
    opacity: 0.6;
}

/* ALIGNMENT: STACKED */
.header-datetime.align-center {
    flex-direction: column;
    text-align: center;
    gap: 4px;
}

/* ALIGNMENT: RIGHT */
.header-datetime.align-right {
    flex-direction: row-reverse;
}

/* HOVER EFFECT */
.header-datetime:hover {
    color: var(--theme-primary);
}
.header-datetime:hover .datetime-icon {
    transform: scale(1.1);
    opacity: 1;
}

/* DARK MODE */
body.dark-mode .header-datetime { color: #fff; }

/* ==========================================================================
   ELEMENT: DIVIDER (Ultra Clean & Responsive)
   ========================================================================== */

.header-divider {
    position: relative;
    flex-shrink: 0; /* डिवाइडर दबे नहीं (Don't shrink) */
    transition: all 0.3s ease;
    opacity: 0.8; /* थोड़ा सॉफ्ट लुक देने के लिए */
}

/* 1. VERTICAL DIVIDER (डिब्बे के बीच की लकीर) */
.div-vertical {
    display: inline-block;
    vertical-align: middle;
}

/* अगर Full Height चुना है, तो फ्लेक्सबॉक्स के साथ स्ट्रेच होगा */
.header-row .row .div-vertical {
    align-self: center; 
}

/* 2. HORIZONTAL DIVIDER (ऊपर-नीचे की लकीर) */
.div-horizontal {
    display: block;
    width: 100%; /* डिफ़ॉल्ट चौड़ाई */
    clear: both;
}

/* 3. PREMIUM TOUCH: HOVER EFFECT */
.header-divider:hover {
    opacity: 1;
    transform: scale(1.05); /* हल्का सा ज़ूम */
}

/* 4. DARK MODE HANDLING */
/* अगर एडमिन ने डार्क कलर सेट किया है, तो डार्क मोड में वो धुंधला न हो जाए */
body.dark-mode .header-divider {
    border-color: rgba(255, 255, 255, 0.15) !important;
    /* अगर बैकग्राउंड कलर यूज़ हो रहा है तो: */
    background-color: rgba(255, 255, 255, 0.2) !important;
}

/* 5. RESPONSIVE: MOBILE OPTIMIZATION */
@media (max-width: 768px) {
    /* मोबाइल पर वर्टिकल डिवाइडर अक्सर अच्छे नहीं लगते, उन्हें छोटा कर देते हैं */
    .div-vertical {
        height: 15px !important; /* मोबाइल पर फिक्स्ड छोटी हाइट */
        margin-left: 8px !important;
        margin-right: 8px !important;
    }
    
    /* अगर मोबाइल पर डिवाइडर छुपाना हो (Optional) */
    .hide-on-mobile {
        display: none !important;
    }
}

/* 6. UTILITY: DASHED/DOTTED STYLE (अगर एडमिन क्लास डाले) */
.header-divider.dashed {
    background-color: transparent !important;
    border-left: 1px dashed #ccc;
}

.header-divider.dotted {
    background-color: transparent !important;
    border-left: 2px dotted #ccc;
}

/* ==========================================================================
   ELEMENT: EMAIL (Universal Advanced)
   ========================================================================== */

.header-email {
    display: inline-flex;
    align-items: center;
    transition: var(--dd-transition);
}

.header-email a {
    display: flex;
    align-items: center;
    text-decoration: none !important;
    color: var(--theme-text, #333);
    gap: 10px;
    transition: inherit;
}

.header-email:hover a {
    color: var(--theme-primary);
}

/* ICON STYLING */
.header-email .contact-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--dd-transition);
}

.header-email .contact-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.header-email:hover .contact-icon {
    transform: translateY(-2px);
}

/* TEXT STYLING */
.header-email .contact-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.header-email .header-email-label {
    font-size: 0.85em;
    font-weight: 400;
    opacity: 0.6;
}

.header-email .header-email-email {
    font-weight: 700;
}

/* ALIGNMENT: STACKED */
.header-email.align-center a {
    flex-direction: column;
    text-align: center;
    gap: 4px;
}

/* ALIGNMENT: RIGHT */
.header-email.align-right a {
    flex-direction: row-reverse;
}

/* DARK MODE */
body.dark-mode .header-email a { color: #fff; }

/* RESPONSIVE */
@media (max-width: 768px) {
    .header-email .header-email-label { display: none !important; }
}

/* Logo Preview Premium Styles */
.logo-preview-container {
    position: relative;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px;
    background: #fff;
    margin-bottom: 10px;
}

.logo-preview-box {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    margin-bottom: 10px;
    overflow: hidden;
    border: 1px dashed #ccc;
}

.logo-preview-box img {
    max-width: 90%;
    max-height: 80px;
    object-fit: contain;
}

.logo-preview-box span {
    font-size: 24px;
    color: #bbb;
    font-weight: 300;
}

.logo-action-btns {
    display: flex;
    gap: 5px;
}

/* Remove Button Logic */
.remove-logo-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 22px;
    height: 22px;
    background: #d63638;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 10;
}

.remove-logo-btn:hover {
    background: #b32d2e;
    transform: scale(1.1);
}
/* ==========================================================================
   ELEMENT: MAIN MENU PRO (Mega & Advanced Dropdowns)
   ========================================================================== */

.dodigitals-nav-pro {
    display: flex;
    align-items: center;
    width: 100%;
}

.dd-menu-list {
    display: flex;
    list-style: none;
    margin: 0; padding: 0;
}

.dd-menu-list > li {
    padding: 0 calc(var(--nav-gap) / 2);
    position: relative;
}

.dd-menu-list > li > a {
    display: block;
    padding: 20px 0;
    font-size: var(--nav-fs);
    font-weight: var(--nav-fw);
    color: var(--nav-color);
    text-transform: var(--nav-tt);
    text-decoration: none !important;
    transition: color 0.3s ease;
}

.dd-menu-list > li:hover > a {
    color: var(--nav-hover);
}

/* --- MEGA MENU ENGINE --- */
/* If a menu item has the class 'mega-menu' in WordPress Settings */
.type-mega .dd-menu-list > li.mega-menu {
    position: static; /* Required for full width */
}

.type-mega .dd-menu-list > li.mega-menu > .sub-menu {
    width: 100%;
    left: 0;
    right: 0;
    display: flex;
    flex-wrap: wrap;
    padding: 30px;
    background: var(--sub-bg);
    box-shadow: 0 15px 50px rgba(0,0,0,0.1);
}

/* --- CLASSIC DROPDOWN --- */
.dd-menu-list .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--sub-bg);
    list-style: none;
    padding: 15px 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.dd-menu-list li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Sub-menu Items */
.dd-menu-list .sub-menu li a {
    padding: 10px 25px;
    display: block;
    color: #555;
    font-size: 13px;
    text-decoration: none !important;
}

.dd-menu-list .sub-menu li a:hover {
    background: rgba(var(--theme-primary-rgb), 0.05);
    color: var(--nav-hover);
    padding-left: 30px;
}

/* --- HOVER EFFECTS --- */
.hover-underline .item-text { position: relative; }
.hover-underline .item-text::after {
    content: ''; position: absolute; bottom: -4px; left: 0;
    width: 0; height: 2px; background: var(--nav-hover);
    transition: width 0.3s ease;
}
.dd-menu-list li:hover .item-text::after { width: 100%; }

/* DARK MODE */
body.dark-mode .dd-menu-list > li > a { color: #fff; }
body.dark-mode .dd-menu-list .sub-menu { background: #1a1a1a; }
body.dark-mode .dd-menu-list .sub-menu li a { color: #ccc; }
/* ==========================================================================
   ELEMENT: MOBILE MENU (Off-canvas Master)
   ========================================================================== */

.dodigitals-mobile-trigger {
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.dodigitals-mobile-trigger:hover { transform: scale(1.1); }
.dodigitals-mobile-trigger img { width: 100%; height: auto; }

/* PANEL BASE */
.dd-mobile-panel {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 99999;
    visibility: hidden;
    pointer-events: none;
}

.dd-mobile-panel.is-active {
    visibility: visible;
    pointer-events: auto;
}

/* OVERLAY */
.panel-overlay {
    position: absolute;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.is-active .panel-overlay { opacity: 1; }

/* CONTENT AREA */
.panel-content {
    position: absolute;
    width: var(--panel-w);
    height: 100%;
    background: var(--panel-bg);
    box-shadow: 0 0 40px rgba(0,0,0,0.2);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    padding: 20px;
    display: flex;
    flex-direction: column;
}

/* ANIMATIONS */
.anim-slide-left .panel-content { left: 0; transform: translateX(-100%); }
.anim-slide-right .panel-content { right: 0; transform: translateX(100%); }
.anim-fade .panel-content { left: 50%; top: 50%; transform: translate(-50%, -50%) scale(0.9); opacity: 0; width: 90%; height: auto; border-radius: 12px; }
.anim-fullscreen .panel-content { width: 100%; height: 100%; transform: translateY(100%); }

.is-active.anim-slide-left .panel-content,
.is-active.anim-slide-right .panel-content { transform: translateX(0); }
.is-active.anim-fade .panel-content { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.is-active.anim-fullscreen .panel-content { transform: translateY(0); }

/* MENU INSIDE PANEL */
.mobile-actual-menu {
    list-style: none;
    margin: 40px 0 0; padding: 0;
}
.mobile-actual-menu li a {
    display: block;
    padding: 12px 0;
    font-size: var(--panel-fs);
    font-weight: 600;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.panel-close {
    align-self: flex-end;
    background: none; border: none;
    font-size: 32px; cursor: pointer;
}

/* DARK MODE */
body.dark-mode .panel-content { background: #1a1a1a !important; }
body.dark-mode .mobile-actual-menu li a { color: #fff; border-color: #333; }
body.dark-mode .panel-close { color: #fff; }

/* ==========================================================================
   ELEMENT: PHONE (Advanced Logic)
   ========================================================================== */

.header-phone {
    display: inline-flex;
    align-items: center;
    transition: var(--dd-transition);
}

.header-phone .contact-link {
    display: flex;
    align-items: center;
    text-decoration: none !important;
    color: var(--theme-text, #333);
    gap: 12px;
    transition: inherit;
}

.header-phone:hover .contact-link {
    color: var(--theme-primary);
}

.header-phone .contact-icon {
    width: 22px; height: 22px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.header-phone:hover .contact-icon {
    transform: scale(1.15) rotate(-10deg);
}

.header-phone .contact-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.header-phone-label { font-size: 0.8em; opacity: 0.6; font-weight: 400; }
.header-phone-number { font-weight: 700; }

/* STACKED & ALIGNMENT */
.header-phone.align-center .contact-link { flex-direction: column; text-align: center; gap: 4px; }
.header-phone.align-right .contact-link { flex-direction: row-reverse; }

/* MOBILE */
@media (max-width: 768px) {
    .header-phone-label { display: none !important; }
}
img, svg {
    vertical-align: middle;
    width: 100%;
}

/* ==========================================================================
   ELEMENT: SEARCH ENGINE PRO
   ========================================================================== */

.header-search-engine {
    display: inline-flex;
    align-items: center;
}

.search-trigger-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 700;
    transition: var(--dd-transition);
    color: var(--theme-text, #333);
}

.search-trigger-btn:hover {
    color: var(--theme-primary);
}

.search-trigger-btn img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.search-trigger-btn:hover img {
    transform: scale(1.15);
}

/* ALIGNMENT LOGIC */
.header-search-engine.align-right .search-trigger-btn { flex-direction: row-reverse; }
.header-search-engine.align-center .search-trigger-btn { flex-direction: column; text-align: center; gap: 4px; }
.header-search-engine.align-center .search-trigger-btn span { font-size: 11px; text-transform: uppercase; }

/* SEARCH FORM STYLE (In-line) */
.dd-search-form-wrapper {
    position: relative;
    width: 100%;
    min-width: 250px;
}

.ajax-search-form {
    display: flex;
    background: #f5f5f5;
    border-radius: 50px;
    padding: 0 15px;
    border: 1px solid transparent;
}

.ajax-search-form input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 5px;
    outline: none;
}

.ajax-search-form button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

/* SEARCH SUGGESTIONS */
.search-suggestions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    font-size: 12px;
    color: #888;
}

.search-suggestions a {
    color: var(--theme-text);
    text-decoration: none;
    border-bottom: 1px dashed #ccc;
}

.search-suggestions a:hover {
    color: var(--theme-primary);
    border-color: var(--theme-primary);
}
/* ==========================================================================
   ADVANCED SEARCH INTERACTION UI (Modal, Side-Panel, Full-screen)
   ========================================================================== */

/* 1. OVERLAY BASE (The Backdrop) */
.dd-search-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1000000;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.dd-search-overlay.is-active {
    visibility: visible;
    pointer-events: auto;
}

.search-overlay-bg {
    position: absolute;
    width: 100%; height: 100%;
    background: rgba(15, 15, 15, 0.85); /* Deep Dark Overlay */
    backdrop-filter: blur(8px); /* Premium Glass Effect */
    opacity: 0;
    transition: opacity 0.4s ease;
}

.dd-search-overlay.is-active .search-overlay-bg {
    opacity: 1;
}

/* 2. PANEL CONTAINER (The Actual Box) */
.search-panel-container {
    position: absolute;
    background: #fff;
    box-shadow: var(--dd-shadow-premium);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* --- STYLE: MODAL POPUP --- */
.mode-popup .search-panel-container {
    top: 45%; left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%; max-width: 650px;
    border-radius: 20px;
    padding: 40px;
    opacity: 0;
}

.is-active.mode-popup .search-panel-container {
    top: 50%;
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

/* --- STYLE: OFF-CANVAS (Side Panel) --- */
.mode-offcanvas .search-panel-container {
    top: 0; height: 100%;
    width: 100%; max-width: 450px;
    padding: 30px;
}

.pos-right .search-panel-container { right: 0; transform: translateX(100%); }
.pos-left .search-panel-container { left: 0; transform: translateX(-100%); }
.pos-top .search-panel-container { top: 0; left: 0; width: 100%; height: auto; transform: translateY(-100%); padding: 50px; }

.is-active.pos-right .search-panel-container,
.is-active.pos-left .search-panel-container,
.is-active.pos-top .search-panel-container {
    transform: translate(0, 0);
}

/* --- STYLE: FULL SCREEN --- */
.mode-fullscreen .search-panel-container {
    top: 0; left: 0; width: 100%; height: 100%;
    background: transparent;
    justify-content: center;
    align-items: center;
    padding: 10% 5%;
}

.mode-fullscreen .search-panel-header { display: none; }
.mode-fullscreen .input-wrap input {
    font-size: 60px;
    color: #fff;
    text-align: center;
    border-bottom: 2px solid rgba(255,255,255,0.2);
}

/* 3. INTERNAL ELEMENTS (Header, Input, Results) */
.search-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.search-panel-header h3 {
    margin: 0; font-size: 22px; font-weight: 800;
    text-transform: uppercase; letter-spacing: 1px;
}

.search-close-btn {
    background: #f5f5f5; border: none;
    width: 40px; height: 40px; border-radius: 50%;
    font-size: 24px; cursor: pointer;
    transition: all 0.3s ease;
}

.search-close-btn:hover { background: #000; color: #fff; transform: rotate(90deg); }

.input-wrap { position: relative; width: 100%; }
.input-wrap input {
    width: 100%;
    padding: 15px 50px 15px 0;
    font-size: 24px;
    font-weight: 600;
    border: none;
    border-bottom: 2px solid #eee;
    outline: none;
    background: transparent;
    transition: border-color 0.3s ease;
}

.input-wrap input:focus { border-color: var(--theme-primary); }

.search-btn-icon {
    position: absolute; right: 0; top: 50%;
    transform: translateY(-50%);
    background: none; border: none; font-size: 20px; cursor: pointer;
}

/* 4. AJAX RESULTS STYLING */
.ajax-live-results {
    margin-top: 30px;
    max-height: 450px;
    overflow-y: auto;
}

.ajax-live-results ul { list-style: none; padding: 0; margin: 0; }

.ajax-live-results li a {
    display: flex; align-items: center; gap: 15px;
    padding: 12px; border-radius: 12px;
    text-decoration: none; color: inherit;
    transition: background 0.3s ease;
}

.ajax-live-results li a:hover { background: #f9f9f9; }

.ajax-live-results img {
    width: 50px; height: 50px; border-radius: 8px; object-fit: cover;
    background: #eee;
}

.res-info { display: flex; flex-direction: column; gap: 2px; }
.res-title { font-weight: 700; font-size: 15px; }
.res-price { color: var(--theme-primary); font-weight: 800; font-size: 13px; }

/* 5. DARK MODE OVERRIDES */
body.dark-mode .search-panel-container { background: #121212; color: #fff; }
body.dark-mode .input-wrap input { color: #fff; border-color: #333; }
body.dark-mode .ajax-live-results li a:hover { background: #1a1a1a; }
body.dark-mode .search-close-btn { background: #222; color: #fff; }
/* ==========================================================================
   ELEMENT: SOCIAL BUTTONS PRO (Master Styles)
   ========================================================================== */

/* 1. MASTER WRAPPER */
.header-social {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px; /* डिफ़ॉल्ट गैप */
}

/* 2. BASE BUTTON STYLING */
.header-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    color: #fff; /* डिफ़ॉल्ट आइकन कलर */
}

.header-social .social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.header-social .social-icon img {
    width: 1.2em;
    height: 1.2em;
    object-fit: contain;
}

.header-social .social-text {
    font-weight: 700;
    font-size: 13px;
    margin: 0 10px;
    white-space: nowrap;
}

/* 3. SIZES CONTROL */
.header-social.size-small a  { width: 32px; height: 32px; font-size: 14px; }
.header-social.size-medium a { width: 40px; height: 40px; font-size: 18px; }
.header-social.size-large a  { width: 48px; height: 48px; font-size: 22px; }

/* If text is present, auto width */
.header-social.style-icon_text a,
.header-social.style-text a {
    width: auto !important;
    padding: 0 15px;
}

/* 4. SHAPES LOGIC */
.header-social.shape-circle a  { border-radius: 50%; }
.header-social.shape-rounded a { border-radius: 8px; }
.header-social.shape-square a  { border-radius: 0; }

/* 5. COLOR MODES */

/* Mode: Theme Mono (Neutral) */
.header-social.mode-theme a {
    background: #f0f0f0;
    color: #333;
}
.header-social.mode-theme a:hover {
    background: var(--theme-primary);
    color: #fff;
}

/* Mode: Brand Colors (Official Brands) */
.header-social.mode-brand .btn-facebook { background: #1877F2; }
.header-social.mode-brand .btn-twitter, 
.header-social.mode-brand .btn-x { background: #000000; }
.header-social.mode-brand .btn-instagram { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.header-social.mode-brand .btn-linkedin { background: #0A66C2; }
.header-social.mode-brand .btn-youtube { background: #FF0000; }
.header-social.mode-brand .btn-whatsapp { background: #25D366; }
.header-social.mode-brand .btn-pinterest { background: #E60023; }
.header-social.mode-brand .btn-telegram { background: #0088cc; }

/* 6. HOVER ANIMATIONS */

/* Zoom Effect */
.header-social.hover-zoom a:hover {
    transform: scale(1.15);
}

/* Float Up Effect */
.header-social.hover-float a:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* 3D Flip Effect */
.header-social.hover-flip a:hover {
    transform: rotateY(360deg);
}

/* 7. ALIGNMENT (For Icon + Text) */
.header-social.style-icon_text .social-icon { order: 1; }
.header-social.style-icon_text .social-text { order: 2; }

/* Right Align Case: Text | Icon */
.header-social.align-right.style-icon_text .social-icon { order: 2; }
.header-social.align-right.style-icon_text .social-text { order: 1; }

/* 8. DARK MODE SUPPORT */
body.dark-mode .header-social.mode-theme a {
    background: #222;
    color: #eee;
}

/* 9. MOBILE OPTIMIZATION */
@media (max-width: 768px) {
    .header-social .social-text {
        display: none !important; /* मोबाइल पर सिर्फ आइकन दिखाएँ */
    }
    .header-social a {
        width: 30px !important;
        height: 30px !important;
        padding: 0 !important;
    }
}
/* ==========================================================================
   FIX: OFFICIAL BRAND COLORS FOR SOCIAL BUTTONS
   ========================================================================== */

/* जब 'Official Brand' सिलेक्ट हो (mode-brand) */
.header-social.mode-brand a {
    color: #ffffff !important; /* आइकन हमेशा सफेद दिखेगा */
    border: none !important;
}

/* --- Facebook --- */
.header-social.mode-brand a[class*="facebook"],
.header-social.mode-brand a[href*="facebook.com"] {
    background-color: #1877F2 !important;
}

/* --- Twitter / X --- */
.header-social.mode-brand a[class*="twitter"],
.header-social.mode-brand a[class*="x-social"],
.header-social.mode-brand a[href*="twitter.com"],
.header-social.mode-brand a[href*="x.com"] {
    background-color: #000000 !important;
}

/* --- Instagram --- */
.header-social.mode-brand a[class*="instagram"],
.header-social.mode-brand a[href*="instagram.com"] {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important;
}

/* --- YouTube --- */
.header-social.mode-brand a[class*="youtube"],
.header-social.mode-brand a[href*="youtube.com"] {
    background-color: #FF0000 !important;
}

/* --- LinkedIn --- */
.header-social.mode-brand a[class*="linkedin"],
.header-social.mode-brand a[href*="linkedin.com"] {
    background-color: #0A66C2 !important;
}

/* --- WhatsApp --- */
.header-social.mode-brand a[class*="whatsapp"],
.header-social.mode-brand a[href*="wa.me"],
.header-social.mode-brand a[href*="whatsapp.com"] {
    background-color: #25D366 !important;
}

/* --- Pinterest --- */
.header-social.mode-brand a[class*="pinterest"],
.header-social.mode-brand a[href*="pinterest.com"] {
    background-color: #E60023 !important;
}

/* --- Telegram --- */
.header-social.mode-brand a[class*="telegram"],
.header-social.mode-brand a[href*="t.me"] {
    background-color: #0088cc !important;
}

/* आइकन को सफेद करने के लिए अगर वो Image है */
.header-social.mode-brand a img {
    filter: brightness(0) invert(1) !important;
    width: 18px;
    height: 18px;
}

/* Hover करने पर हल्का सा चमक (Glow) */
.header-social.mode-brand a:hover {
    filter: brightness(1.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
/* ==========================================================================
   ELEMENT: SMART SPACER (Responsive)
   ========================================================================== */

.header-spacer {
    display: inline-block;
    flex-shrink: 0; /* ताकि फ्लेक्स बॉक्स में स्पेस दबे नहीं */
    transition: var(--dd-transition);
}

.spacer-vertical {
    display: block;
    width: 100%;
}

/* RESPONSIVE OVERRIDES USE CSS VARIABLES FROM PHP */
@media (max-width: 991px) {
    .header-spacer {
        width: var(--tablet-space, auto);
        height: var(--tablet-space, auto);
    }
    .hide-tablet { display: none !important; }
}

@media (max-width: 767px) {
    .header-spacer {
        width: var(--mobile-space, auto);
        height: var(--mobile-space, auto);
    }
    .hide-mobile { display: none !important; }
}
/* ==========================================================================
   ELEMENT: PREMIUM SHOPPING CART MASTER
   ========================================================================== */

.header-cart { position: relative; display: inline-flex; align-items: center; }

.cart-contents {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none !important;
    color: var(--theme-text, #333);
    transition: all 0.3s ease;
}

.cart-icon-wrap { position: relative; display: flex; align-items: center; }
.cart-icon-img { width: 26px; height: 26px; object-fit: contain; transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }

/* --- BADGE DESIGNS --- */
.cart-count {
    position: absolute;
    background: var(--theme-primary, #FF7130);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 2;
}

/* design1: Floating Top Right */
.design-design1 .cart-count { top: -8px; right: -10px; }

/* design2: Subtle Bottom Right */
.design-design2 .cart-count { bottom: -5px; right: -5px; top: auto; background: #000; border-color: #eee; }

/* design3: Minimal Text (Beside Icon) */
.design-design3 .cart-count { position: static; margin-left: 5px; border: none; background: transparent; color: inherit; font-size: 14px; }

/* --- CART INFO (Text & Price) --- */
.cart-info-wrapper { display: flex; flex-direction: column; line-height: 1.2; }
.cart-text { font-size: 12px; opacity: 0.6; font-weight: 600; text-transform: uppercase; }
.cart-total-price { font-size: 14px; font-weight: 800; color: var(--theme-primary); }

/* --- SIDE DRAWER (Mini-Cart) --- */
.dd-cart-drawer {
    position: fixed; top: 0; right: 0; width: 100%; height: 100%;
    z-index: 9999999; visibility: hidden; transition: all 0.4s ease;
}
.dd-cart-drawer.is-active { visibility: visible; }

.drawer-overlay {
    position: absolute; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7); backdrop-filter: blur(4px);
    opacity: 0; transition: 0.4s;
}
.is-active .drawer-overlay { opacity: 1; }

.drawer-content {
    position: absolute; right: 0; top: 0; width: 400px; max-width: 90%; height: 100%;
    background: #fff; transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex; flex-direction: column; box-shadow: -5px 0 30px rgba(0,0,0,0.1);
}
.is-active .drawer-content { transform: translateX(0); }

/* --- DRAWER HEADER --- */
.drawer-header {
    padding: 20px 25px; border-bottom: 1px solid #eee;
    display: flex; justify-content: space-between; align-items: center;
}
.drawer-header h3 { margin: 0; font-size: 18px; font-weight: 800; text-transform: uppercase; }
.close-drawer { background: #f5f5f5; border: none; width: 35px; height: 35px; border-radius: 50%; cursor: pointer; font-size: 20px; transition: 0.3s; }
.close-drawer:hover { background: #000; color: #fff; }

/* --- PROGRESS BAR --- */
.shipping-progress { padding: 20px 25px; background: #fff8f5; border-bottom: 1px solid #ffece5; }
.shipping-progress p { margin: 0 0 10px; font-size: 13px; font-weight: 700; color: #444; }
.progress-track { width: 100%; height: 8px; background: #eee; border-radius: 10px; overflow: hidden; }
.progress-bar { height: 100%; background: var(--theme-primary); border-radius: 10px; transition: width 1s ease; }

/* --- MINI CART LIST --- */
.widget_shopping_cart_content { flex: 1; overflow-y: auto; padding: 25px; }
.woocommerce-mini-cart { list-style: none; padding: 0; margin: 0; }
.woocommerce-mini-cart-item { display: flex; gap: 15px; margin-bottom: 20px; border-bottom: 1px solid #f9f9f9; padding-bottom: 15px; }
.woocommerce-mini-cart-item img { width: 60px; height: 60px; border-radius: 8px; object-fit: cover; }

/* --- ANIMATIONS --- */
@keyframes bump {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}
.bump-anim { animation: bump 0.4s ease; }

/* DARK MODE */
body.dark-mode .drawer-content { background: #1a1a1a; color: #fff; }
body.dark-mode .drawer-header, body.dark-mode .shipping-progress { border-color: #333; background: #111; }


/* ==========================================================================
   ELEMENT: COMPARE BUTTON & BADGE
   ========================================================================== */

/* 1. Main Wrapper */
.header-compare {
    display: inline-flex;
    align-items: center;
    position: relative;
    z-index: 10;
}

/* 2. Link/Trigger Area */
.compare-contents {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
    color: var(--theme-text, #333);
    cursor: pointer;
    transition: all 0.3s ease;
}

/* 3. Icon Wrapper & Animation */
.compare-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.compare-icon-img, 
.default-compare-icon i {
    font-size: 22px;
    width: 24px;
    height: 24px;
    display: block;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Hover Effect: Jiggle/Rotate */
.header-compare:hover .compare-icon-img, 
.header-compare:hover .default-compare-icon i {
    transform: rotate(15deg) scale(1.1);
    color: var(--theme-primary, #FF7130);
}

/* 4. BADGE DESIGNS (Bubble, Corner, etc.) */
.compare-count {
    position: absolute;
    background: var(--theme-primary, #FF7130);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff; /* White border for clean look */
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    z-index: 2;
    line-height: 1;
}

/* Design 1: Floating Top-Right */
.design-design1 .compare-count {
    top: -8px;
    right: -10px;
}

/* Design 2: Corner Bottom-Right */
.design-design2 .compare-count {
    bottom: -5px;
    right: -5px;
    top: auto;
    background: #000;
    border-color: #fff;
}

/* Design 3: Inline Text */
.design-design3 .compare-count {
    position: static;
    margin-left: 6px;
    background: transparent;
    color: inherit;
    border: none;
    box-shadow: none;
    font-size: 14px;
    width: auto;
    height: auto;
}

/* Alignment Support */
.align-right .compare-contents {
    flex-direction: row-reverse;
}


/* ==========================================================================
   ELEMENT: COMPARE BUTTON & BADGE (UPDATED)
   ========================================================================== */

.header-compare {
    display: inline-flex;
    align-items: center;
    position: relative;
    z-index: 10;
}

.compare-contents {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
    color: var(--theme-text, #333);
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Icon Animation */
.compare-icon-wrap { position: relative; display: flex; align-items: center; }
.compare-icon-img, .default-compare-icon i { font-size: 22px; width: 24px; transition: 0.3s ease; }

.header-compare:hover .compare-icon-img, 
.header-compare:hover .default-compare-icon i {
    transform: rotate(15deg) scale(1.1);
    color: var(--theme-primary, #FF7130);
}

/* Badge Styles */
.compare-count {
    position: absolute;
    background: var(--theme-primary, #FF7130);
    color: #fff;
    font-size: 10px; font-weight: 800;
    min-width: 17px; height: 17px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    z-index: 2;
}
.design-design1 .compare-count { top: -8px; right: -10px; }
.design-design2 .compare-count { bottom: -5px; right: -5px; top: auto; background: #000; border-color: #fff; }
.design-design3 .compare-count { position: static; margin-left: 5px; background: transparent; color: inherit; border: none; box-shadow: none; font-size: 14px; }

/* Alignment */
.align-right .compare-contents { flex-direction: row-reverse; }


/* ==========================================================================
   COMPARE PANEL MASTER (FIXED & ADVANCED)
   ========================================================================== */

/* 1. MAIN WRAPPER (Fixed on Screen) */
.dd-compare-panel {
    position: fixed !important; /* Force Fixed */
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw; height: 100vh;
    z-index: 99999999; /* Highest Priority */
    visibility: hidden;
    pointer-events: none;
    transition: visibility 0s linear 0.3s; /* Delay hiding */
}

.dd-compare-panel.is-active {
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
}

/* 2. OVERLAY BACKDROP */
.panel-overlay {
    position: absolute; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    opacity: 0; transition: opacity 0.3s ease;
}
.is-active .panel-overlay { opacity: 1; }

/* 3. PANEL CONTENT BOX */
.panel-content {
    position: absolute;
    background: #fff;
    display: flex; flex-direction: column;
    box-shadow: 0 10px 50px rgba(0,0,0,0.25);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.3s;
}

/* --- DRAWER ANIMATIONS (SLIDE) --- */

/* RIGHT */
.mode-drawer.pos-right .panel-content {
    top: 0; right: 0; bottom: 0;
    width: 400px; max-width: 85%;
    transform: translateX(100%);
}
.is-active.mode-drawer.pos-right .panel-content { transform: translateX(0); }

/* LEFT */
.mode-drawer.pos-left .panel-content {
    top: 0; left: 0; bottom: 0;
    width: 400px; max-width: 85%;
    transform: translateX(-100%);
}
.is-active.mode-drawer.pos-left .panel-content { transform: translateX(0); }

/* TOP */
.mode-drawer.pos-top .panel-content {
    top: 0; left: 0; right: 0;
    height: 350px; max-height: 80vh;
    transform: translateY(-100%);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
.is-active.mode-drawer.pos-top .panel-content { transform: translateY(0); }

/* BOTTOM */
.mode-drawer.pos-bottom .panel-content {
    bottom: 0; left: 0; right: 0;
    height: 350px; max-height: 80vh;
    transform: translateY(100%);
    box-shadow: 0 -10px 30px rgba(0,0,0,0.15);
}
.is-active.mode-drawer.pos-bottom .panel-content { transform: translateY(0); }

/* --- MODAL POPUP (CENTER) --- */
.mode-modal .panel-content {
    top: 50%; left: 50%;
    width: 600px; max-width: 90%;
    height: auto; min-height: 300px; max-height: 85vh;
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0;
    border-radius: 12px;
}
.is-active.mode-modal .panel-content {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

/* 4. INTERNAL CONTENT */
.panel-header {
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
    display: flex; justify-content: space-between; align-items: center;
    background: #fff; z-index: 2; border-radius: 12px 12px 0 0;
}
.panel-header h3 { margin: 0; font-size: 18px; font-weight: 700; text-transform: uppercase; }

.close-panel {
    background: #f5f5f5; border: none;
    width: 36px; height: 36px; border-radius: 50%;
    font-size: 20px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: 0.3s;
}
.close-panel:hover { background: #000; color: #fff; transform: rotate(90deg); }

.panel-body { padding: 30px; overflow-y: auto; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; }

/* Empty State */
.empty-state { text-align: center; color: #999; }
.empty-state i { font-size: 48px; color: #eee; margin-bottom: 15px; display: block; }
.empty-state p { font-size: 15px; font-weight: 500; color: #666; margin: 0; }

/* 5. MOBILE & DARK MODE FIXES */
@media (max-width: 500px) {
    .mode-drawer.pos-right .panel-content,
    .mode-drawer.pos-left .panel-content { width: 100% !important; max-width: 100% !important; }
    .mode-modal .panel-content { width: 95% !important; }
}

/* Dark Mode Integration */
body.dark-mode .panel-content,
body.dark-mode .panel-header { background: #1a1a1a; color: #fff; border-color: #333; }
body.dark-mode .empty-state p { color: #aaa; }
body.dark-mode .empty-state i { color: #333; }
body.dark-mode .close-panel { background: #333; color: #fff; }
body.dark-mode .close-panel:hover { background: #fff; color: #000; }


/* ==========================================================================
   ELEMENT: CURRENCY SWITCHER PRO
   ========================================================================== */

.header-currency {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    gap: 8px;
    position: relative;
    color: var(--theme-text, #333);
}

.currency-label {
    opacity: 0.7;
    font-size: 13px;
    margin-right: 5px;
}

/* --- COMMON ELEMENTS --- */
.currency-globe-icon { font-size: 16px; margin: 0 4px; }
.c-flag { margin-right: 6px; font-size: 16px; line-height: 1; }
.c-code, .c-sym { margin-right: 2px; }

/* ===========================
   LAYOUT: DROPDOWN
   =========================== */
.dd-currency-dropdown {
    position: relative;
    cursor: pointer;
}

.currency-trigger {
    display: flex;
    align-items: center;
    padding: 5px 0;
    transition: color 0.3s;
}
.currency-trigger:hover { color: var(--theme-primary, #FF7130); }

.dd-arrow { font-size: 10px; margin-left: 6px; opacity: 0.6; }

/* Dropdown List */
.currency-list {
    position: absolute;
    top: 100%; right: 0; /* Align Right by default */
    min-width: 140px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 6px;
    list-style: none; padding: 5px 0; margin: 10px 0 0 0;
    opacity: 0; visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
}

.currency-list li a {
    display: flex; align-items: center;
    padding: 10px 20px;
    color: #444; text-decoration: none;
    transition: 0.2s;
    font-size: 13px;
}

.currency-list li a:hover {
    background: #f9f9f9;
    color: var(--theme-primary);
    padding-left: 25px;
}

/* INTERACTION: HOVER */
.trigger-hover .dd-currency-dropdown:hover .currency-list {
    opacity: 1; visibility: visible; transform: translateY(0);
}

/* INTERACTION: CLICK (Handled via JS class) */
.dd-currency-dropdown.is-open .currency-list {
    opacity: 1; visibility: visible; transform: translateY(0);
}

/* ===========================
   LAYOUT: INLINE LIST
   =========================== */
.currency-inline-list {
    display: flex;
    list-style: none; margin: 0; padding: 0;
    align-items: center;
    gap: 15px;
}

.currency-inline-list li a {
    text-decoration: none;
    color: inherit;
    opacity: 0.6;
    transition: 0.3s;
    display: flex; align-items: center;
}

.currency-inline-list li.is-active a,
.currency-inline-list li a:hover {
    opacity: 1;
    color: var(--theme-primary);
    font-weight: 800;
}

/* Separator Line (Optional) */
.currency-inline-list li:not(:last-child)::after {
    content: '/';
    margin-left: 15px;
    opacity: 0.3;
    font-weight: 400;
}
.currency-inline-list li.list-globe::after { display: none; }

/* ==========================================================================
   ELEMENT: WISHLIST BUTTON & BADGE
   ========================================================================== */

.header-wishlist { display: inline-flex; align-items: center; position: relative; z-index: 10; }

.wishlist-contents {
    display: flex; align-items: center; gap: 8px;
    text-decoration: none !important; color: var(--theme-text, #333);
    cursor: pointer; transition: 0.3s ease;
}

.wishlist-icon-wrap { position: relative; display: flex; align-items: center; }
.wishlist-icon-img { width: 24px; height: 24px; transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }

/* Heart Beat Animation */
@keyframes heartBeat {
    0% { transform: scale(1); }
    14% { transform: scale(1.15); }
    28% { transform: scale(1); }
    42% { transform: scale(1.15); }
    70% { transform: scale(1); }
}
.header-wishlist:hover .wishlist-icon-img { animation: heartBeat 1.2s infinite; color: #ff4b4b; }

/* Badge */
.wishlist-count {
    position: absolute; background: var(--theme-primary, #FF7130); color: #fff;
    font-size: 10px; font-weight: 800; min-width: 17px; height: 17px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    border: 2px solid #fff; box-shadow: 0 2px 4px rgba(0,0,0,0.15); z-index: 2;
}
.design-design1 .wishlist-count { top: -8px; right: -10px; }
.design-design2 .wishlist-count { bottom: -5px; right: -5px; top: auto; background: #000; border-color: #fff; }
.design-design3 .wishlist-count { position: static; margin-left: 5px; background: transparent; color: inherit; border: none; box-shadow: none; font-size: 14px; }

/* Alignment */
.align-right .wishlist-contents { flex-direction: row-reverse; }


/* ==========================================================================
   WISHLIST PANEL MASTER (DRAWER & MODAL)
   ========================================================================== */

/* 1. WRAPPER */
.dd-wishlist-panel {
    position: fixed !important; top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw; height: 100vh;
    z-index: 99999999; visibility: hidden; pointer-events: none;
    transition: visibility 0s linear 0.3s;
}
.dd-wishlist-panel.is-active { visibility: visible; pointer-events: auto; transition-delay: 0s; }

/* 2. OVERLAY */
.dd-wishlist-panel .panel-overlay {
    position: absolute; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(4px);
    opacity: 0; transition: opacity 0.3s ease;
}
.is-active .panel-overlay { opacity: 1; }

/* 3. CONTENT BOX */
.dd-wishlist-panel .panel-content {
    position: absolute; background: #fff; display: flex; flex-direction: column;
    box-shadow: 0 10px 50px rgba(0,0,0,0.25);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.3s;
}

/* --- DRAWER POSITIONS --- */
.dd-wishlist-panel .mode-drawer.pos-right .panel-content { top: 0; right: 0; width: 400px; height: 100%; transform: translateX(100%); }
.is-active.mode-drawer.pos-right .panel-content { transform: translateX(0); }

.dd-wishlist-panel .mode-drawer.pos-left .panel-content { top: 0; left: 0; width: 400px; height: 100%; transform: translateX(-100%); }
.is-active.mode-drawer.pos-left .panel-content { transform: translateX(0); }

.dd-wishlist-panel .mode-drawer.pos-top .panel-content { top: 0; left: 0; width: 100%; height: 350px; transform: translateY(-100%); }
.is-active.mode-drawer.pos-top .panel-content { transform: translateY(0); }

.dd-wishlist-panel .mode-drawer.pos-bottom .panel-content { bottom: 0; left: 0; width: 100%; height: 350px; transform: translateY(100%); }
.is-active.mode-drawer.pos-bottom .panel-content { transform: translateY(0); }

/* --- MODAL --- */
.dd-wishlist-panel .mode-modal .panel-content {
    top: 50%; left: 50%; width: 600px; max-width: 90%; height: auto; min-height: 300px;
    transform: translate(-50%, -50%) scale(0.9); opacity: 0; border-radius: 12px;
}
.is-active.mode-modal .panel-content { transform: translate(-50%, -50%) scale(1); opacity: 1; }

/* 4. RESPONSIVE & DARK MODE */
@media (max-width: 500px) {
    .dd-wishlist-panel .mode-drawer .panel-content { width: 100% !important; max-width: 100% !important; }
}
body.dark-mode .dd-wishlist-panel .panel-content { background: #1a1a1a; color: #fff; }
body.dark-mode .dd-wishlist-panel .panel-header { border-color: #333; }


/* ==========================================================================
   HEADER ROW MASTER STYLES
   ========================================================================== */

.header-row {
    position: relative;
    background-color: var(--row-bg-light);
    min-height: var(--row-min-h);
    padding-top: var(--row-pt);
    padding-bottom: var(--row-pb);
    border-bottom: var(--row-border) solid rgba(0,0,0,0.05);
    box-shadow: var(--row-shadow);
    transition: background 0.3s, transform 0.3s ease, padding 0.3s;
}

/* FLEX ALIGNMENTS */
.header-col { display: flex; align-items: center; gap: 15px; }
.header-col-center { justify-content: center; }
.header-col-right { justify-content: flex-end; }

/* STICKY BEHAVIOR */
.dd-sticky-row.is-stuck {
    position: fixed;
    top: 0; left: 0; width: 100%;
    animation: slideDown 0.3s ease forwards;
    background-color: var(--sticky-bg) !important;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    padding-top: 10px; padding-bottom: 10px; /* Compact on scroll */
}

/* SMART STICKY (Hide on scroll down) */
.dd-smart-sticky.nav-up { transform: translateY(-100%); } /* Hide */
.dd-smart-sticky.nav-down { transform: translateY(0); }   /* Show */

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

/* DARK MODE */
body.dark-mode .header-row {
    background-color: var(--row-bg-dark);
    border-color: rgba(255,255,255,0.05);
    color: #fff;
}
body.dark-mode .dd-sticky-row.is-stuck {
    background-color: #1a1a1a !important; /* Force dark sticky bg */
}

/* RESPONSIVE HELPERS */
@media (max-width: 991px) {
    .d-none-tablet { display: none !important; }
}
@media (max-width: 767px) {
    .d-mobile-none { display: none !important; }
    .header-col { justify-content: center; margin-bottom: 10px; } /* Stack cols */
}

/* ==========================================================================
   SUPREME HEADER MASTER STYLES
   ========================================================================== */

.dd-master-header { width: 100%; position: relative; z-index: 999; }

.header-row {
    background-color: var(--row-bg-light);
    padding: var(--row-pt) var(--row-pr) var(--row-pb) var(--row-pl);
    transition: all 0.3s ease;
}

body.dark-mode .header-row {
    background-color: var(--row-bg-dark) !important;
}

/* Sticky Logic */
.dd-sticky-row.is-stuck {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    z-index: 1000;
    animation: ddSlideDown 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes ddSlideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

/* Row Animations for elements */
.dd-row-animation .header-block {
    transition: transform 0.2s ease;
}
.dd-row-animation .header-block:hover { transform: translateY(-2px); }

/* Column Inner spacing */
.header-col-inner { min-height: 40px; }

/* Responsive adjustments */
@media (max-width: 767px) {
    .header-col { width: 100% !important; text-align: center !important; }
    .header-col-inner { justify-content: center !important; }
}