/* ==========================================================================
   FOOTER CONTACT BLOCKS (Address, Phone, Email)
   ========================================================================== */

.footer-contact-block {
    display: flex;
    margin-bottom: 15px;
    line-height: 1.5;
    color: var(--theme-text, #333); /* Footer text color inheritance */
}

/* Link Wrapper */
.footer-contact-block .contact-link {
    display: flex;
    align-items: flex-start; /* Top align for multiline address */
    gap: 12px;
    text-decoration: none !important;
    color: inherit;
    transition: all 0.3s ease;
}

/* Icon Styles */
.footer-contact-block .contact-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 3px; /* visual balance with text */
}

.footer-contact-block .contact-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

/* Text Styles */
.footer-contact-block .contact-text {
    display: flex;
    flex-direction: column;
}

.footer-contact-block .contact-label {
    font-weight: 700;
    font-size: 0.9em;
    opacity: 0.8;
    margin-bottom: 2px;
    text-transform: uppercase;
}

.footer-contact-block .contact-value {
    opacity: 0.9;
}

/* --- HOVER EFFECTS --- */
.footer-contact-block a.contact-link:hover {
    color: var(--theme-primary, #FF7130);
}

.footer-contact-block a.contact-link:hover .contact-icon img {
    transform: scale(1.15) translateY(-2px);
}

/* --- ALIGNMENT CLASSES --- */
/* Center */
.footer-contact-block.align-center {
    justify-content: center;
    text-align: center;
}
.footer-contact-block.align-center .contact-link {
    flex-direction: column;
    align-items: center;
}
.footer-contact-block.align-center .contact-icon {
    margin-top: 0;
    margin-bottom: 8px;
}

/* Right */
.footer-contact-block.align-right {
    justify-content: flex-end;
    text-align: right;
}
.footer-contact-block.align-right .contact-link {
    flex-direction: row-reverse;
}

/* --- DISPLAY STYLES --- */
/* Icon Only handled by PHP (text hidden) */
/* Text Only handled by PHP (icon hidden) */

/* --- DARK MODE --- */
body.dark-mode .footer-contact-block {
    color: #ccc;
}
body.dark-mode .footer-contact-block a.contact-link:hover {
    color: #fff;
}

/* ==========================================================================
   ELEMENT: FOOTER BUTTON PRO
   ========================================================================== */

.footer-btn-wrapper { margin-bottom: 15px; }

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

/* --- SIZES --- */
.btn-extra-small { padding: 6px 14px; font-size: 11px; }
.btn-small { padding: 9px 18px; font-size: 13px; }
.btn-medium { padding: 12px 26px; font-size: 14px; }
.btn-large { padding: 16px 34px; font-size: 16px; }
.btn-extra-large { padding: 20px 42px; font-size: 18px; }

/* --- COLORS --- */
.btn-default { background: #f5f5f5; color: #333; }
.btn-default:hover { background: #eee; }

.btn-primary { background: var(--theme-primary, #FF7130); color: #fff; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(255, 113, 48, 0.3); }

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

.btn-white { background: #fff; color: #333; border-color: #eee; }
.btn-white:hover { background: #f9f9f9; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }

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

/* --- ICON WRAPPER --- */
.btn-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.2em;
    height: 1.2em;
    flex-shrink: 0;
}

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

/* Icon Alignment: Right side flip */
.icon-right { flex-direction: row; } /* Standard order is handled in PHP */

/* --- INTERACTION --- */
.footer-btn:active { transform: scale(0.96) translateY(0); }

/* --- DARK MODE --- */
body.dark-mode .btn-white { background: #1a1a1a; color: #fff; border-color: #333; }
body.dark-mode .btn-default { background: #222; color: #eee; }

/* ==========================================================================
   FOOTER CART ELEMENT & BADGE
   ========================================================================== */

.footer-cart {
    display: inline-flex;
    align-items: center;
    position: relative;
    z-index: 50;
}

.cart-contents {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none !important;
    color: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Icon Animation */
.cart-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.cart-icon-img {
    width: 26px;
    height: 26px;
    object-fit: contain;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

/* BADGE DESIGNS (Bubble, Corner, etc.) */
.cart-count {
    position: absolute;
    background: var(--theme-primary, #FF7130);
    color: #fff !important;
    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.2);
    z-index: 2;
    line-height: 1;
}

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

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

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

/* Info Labels */
.cart-info-wrapper { display: flex; flex-direction: column; line-height: 1.2; }
.cart-text { font-size: 12px; font-weight: 700; text-transform: uppercase; opacity: 0.8; }
.cart-total-price { font-size: 14px; font-weight: 800; color: var(--theme-primary, #FF7130); }


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

.dd-cart-panel {
    position: fixed !important;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 99999999;
    visibility: hidden;
    pointer-events: none;
    transition: visibility 0.3s linear;
}

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

/* Overlay Backdrop */
.dd-cart-panel .panel-overlay {
    position: absolute; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.is-active .panel-overlay { opacity: 1; }

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

/* --- DRAWER POSITIONS --- */
.mode-drawer.pos-right .panel-content { top: 0; right: 0; width: 400px; height: 100%; transform: translateX(100%); }
.mode-drawer.pos-left .panel-content  { top: 0; left: 0; width: 400px; height: 100%; transform: translateX(-100%); }
.mode-drawer.pos-top .panel-content   { top: 0; left: 0; width: 100%; height: 350px; transform: translateY(-100%); }
.mode-drawer.pos-bottom .panel-content { bottom: 0; left: 0; width: 100%; height: 350px; transform: translateY(100%); }

.is-active .panel-content { transform: translate(0, 0) !important; }

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

/* Internal Styling */
.panel-header { padding: 20px 25px; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; }
.panel-header h3 { margin: 0; font-size: 18px; font-weight: 800; text-transform: uppercase; }
.close-panel { background: #f5f5f5; border: none; width: 35px; height: 35px; border-radius: 50%; cursor: pointer; font-size: 22px; transition: 0.3s; }
.close-panel:hover { background: #000; color: #fff; transform: rotate(90deg); }
.panel-body { padding: 20px; overflow-y: auto; flex: 1; }

/* Scroll Lock */
body.dd-lock-scroll { overflow: hidden !important; padding-right: 15px; } /* Prevent shift */

/* ==========================================================================
   FOOTER COMPARE ELEMENTS
   ========================================================================== */

.footer-compare { display: inline-flex; align-items: center; position: relative; }
.compare-contents { display: flex; align-items: center; gap: 10px; text-decoration: none !important; color: inherit; cursor: pointer; }

/* Icon Wrap */
.compare-icon-wrap { position: relative; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; }
.compare-icon-img, .default-compare-icon i { font-size: 20px; transition: 0.3s; }
.footer-compare:hover .compare-icon-wrap { transform: scale(1.1) rotate(10deg); }

/* BADGES */
.compare-count {
    position: absolute; background: var(--theme-primary, #FF7130); color: #fff !important;
    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: 5; line-height: 1;
}
.design1.compare-count { top: -5px; right: -8px; }
.design2.compare-count { bottom: -2px; right: -5px; top: auto; background: #000; }
.design3.compare-count { position: static; margin-left: 5px; border: none; background: transparent; color: inherit !important; font-size: 14px; box-shadow: none; }

/* PANEL SYSTEM (Same classes as Cart for consistency) */
.dd-compare-panel { position: fixed !important; top: 0; left: 0; width: 100vw; height: 100vh; z-index: 99999999; visibility: hidden; pointer-events: none; }
.dd-compare-panel.is-active { visibility: visible; pointer-events: auto; }

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

.dd-compare-panel .panel-content { position: absolute; background: #fff; display: flex; flex-direction: column; transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); box-shadow: 0 10px 50px rgba(0,0,0,0.3); }

/* DIRECTIONS */
.pos-right .panel-content { top: 0; right: 0; width: 400px; height: 100%; transform: translateX(100%); }
.pos-left .panel-content  { top: 0; left: 0; width: 400px; height: 100%; transform: translateX(-100%); }
.pos-top .panel-content   { top: 0; left: 0; width: 100%; height: 350px; transform: translateY(-100%); }
.pos-bottom .panel-content { bottom: 0; left: 0; width: 100%; height: 350px; transform: translateY(100%); }

.is-active .panel-content { transform: translate(0, 0) !important; opacity: 1 !important; }

/* MODAL */
.mode-modal .panel-content { top: 50%; left: 50%; width: 500px; max-width: 90%; transform: translate(-50%, -45%) scale(0.9); opacity: 0; border-radius: 12px; }
.is-active.mode-modal .panel-content { opacity: 1; transform: translate(-50%, -50%) scale(1) !important; }

/* ADMIN PREVIEW FIX */
.design-item.selected { border-color: #FF7130 !important; background: #fff8f5; }

/* ==========================================================================
   FOOTER WISHLIST ELEMENT
   ========================================================================== */

.footer-wishlist { display: inline-flex; align-items: center; position: relative; }
.wishlist-contents { display: flex; align-items: center; gap: 10px; text-decoration: none !important; color: inherit; cursor: pointer; }

/* Icon Animation */
.wishlist-icon-wrap { position: relative; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; }
.wishlist-icon-img { width: 24px; height: 24px; transition: 0.3s; }

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

/* BADGES */
.wishlist-count {
    position: absolute; background: var(--theme-primary, #FF7130); color: #fff !important;
    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: 5; line-height: 1;
}
.design1.wishlist-count { top: -5px; right: -8px; }
.design2.wishlist-count { bottom: -2px; right: -5px; top: auto; background: #000; }
.design3.wishlist-count { position: static; margin-left: 5px; border: none; background: transparent; color: inherit !important; font-size: 14px; box-shadow: none; }

/* PANEL SYSTEM (Consistent with Cart/Compare) */
.dd-wishlist-panel { position: fixed !important; top: 0; left: 0; width: 100vw; height: 100vh; z-index: 99999999; visibility: hidden; pointer-events: none; }
.dd-wishlist-panel.is-active { visibility: visible; pointer-events: auto; }

.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: 0.3s; }
.is-active .panel-overlay { opacity: 1; }

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

/* DIRECTIONS */
.pos-right .panel-content { top: 0; right: 0; width: 400px; height: 100%; transform: translateX(100%); }
.pos-left .panel-content  { top: 0; left: 0; width: 400px; height: 100%; transform: translateX(-100%); }
.pos-top .panel-content   { top: 0; left: 0; width: 100%; height: 350px; transform: translateY(-100%); }
.pos-bottom .panel-content { bottom: 0; left: 0; width: 100%; height: 350px; transform: translateY(100%); }

.is-active .panel-content { transform: translate(0, 0) !important; opacity: 1 !important; }

/* MODAL */
.mode-modal .panel-content { top: 50%; left: 50%; width: 500px; max-width: 90%; transform: translate(-50%, -45%) scale(0.9); opacity: 0; border-radius: 12px; }
.is-active.mode-modal .panel-content { opacity: 1; transform: translate(-50%, -50%) scale(1) !important; }

/* ==========================================================================
   ELEMENT: FOOTER COPYRIGHT
   ========================================================================== */

.footer-copyright {
    display: block;
    width: 100%;
    line-height: 1.6;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

/* Alignment Helpers */
.footer-copyright.align-left   { text-align: left; }
.footer-copyright.align-center { text-align: center; }
.footer-copyright.align-right  { text-align: right; }

/* Responsive adjustments */
@media (max-width: 767px) {
    .footer-copyright {
        text-align: center !important; /* Mobile par usually center acha lagta hai */
        font-size: 13px !important;
    }
}

/* Hover Effect (Subtle) */
.footer-copyright:hover {
    opacity: 1;
}

/* Dark mode compatibility fallback */
body.dark-mode .footer-copyright {
    opacity: 0.8;
}

/* ==========================================================================
   FOOTER COUNTDOWN BANNER (PREMIUM STYLES)
   ========================================================================== */

.footer-countdown-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 25px;
    margin-bottom: 20px;
}

.countdown-title {
    font-weight: 800;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.timer-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
}

.timer-unit .number {
    font-size: 24px;
    font-weight: 900;
    color: var(--theme-primary, #FF7130);
}

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

.timer-sep {
    font-size: 20px;
    font-weight: 900;
    opacity: 0.3;
    padding-bottom: 15px; /* Alignment fix for labels */
}

/* --- STYLE: BOXED --- */
.timer-style-boxed .timer-unit {
    background: #f8f8f8;
    border: 1px solid #eee;
    padding: 10px;
    min-width: 50px;
    border-radius: 6px;
}

/* --- STYLE: ROUNDED --- */
.timer-style-rounded .timer-unit {
    background: #000;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    justify-content: center;
}
.timer-style-rounded .number { color: #fff; font-size: 20px; }
.timer-style-rounded .label { color: rgba(255,255,255,0.7); font-size: 8px; }

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

.countdown-btn:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 113, 48, 0.2);
}

.countdown-btn .btn-icon {
    width: 15px;
    height: 15px;
    filter: brightness(0) invert(1);
}

/* Dark Mode Integration */
body.dark-mode .timer-style-boxed .timer-unit { background: #222; border-color: #333; }
body.dark-mode .timer-style-rounded .timer-unit { background: var(--theme-primary); }
/* ==========================================================================
   FOOTER DARK MODE TOGGLE
   ========================================================================== */

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

/* Icon Wrap */
.dm-icon-wrapper { position: relative; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; }
.dm-icon-wrapper img { width: 100%; height: auto; transition: all 0.5s ease; }

/* ANIMATIONS */
.anim-rotate.active-dark .dm-icon-wrapper img { transform: rotate(360deg); }
.anim-flip.active-dark .dm-icon-wrapper { transform: rotateY(180deg); }

/* LABEL */
.dm-label-text { margin-left: 10px; font-weight: 700; font-size: 13px; text-transform: uppercase; }

/* --- iOS STYLE SWITCH --- */
.dm-switch-track {
    width: 48px; height: 26px; background: #eee; border-radius: 50px;
    position: relative; padding: 3px; border: 1px solid #ddd;
}
.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);
}
.dm-switch-handle img { width: 12px; height: 12px; }

/* Active Switch State */
body.dark-mode .dm-switch-track { background: var(--theme-primary, #FF7130); border-color: var(--theme-primary); }
body.dark-mode .dm-switch-handle { transform: translateX(22px); }

/* Hover Effects */
.dodigitals-dark-mode-toggle:hover { opacity: 0.8; transform: scale(1.05); }

.footer-datetime {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: inherit;
}
.footer-datetime.align-center { justify-content: center; width: 100%; }
.footer-datetime.align-right { justify-content: flex-end; width: 100%; }

.dt-icon { font-size: 1.2em; color: var(--theme-primary, #FF7130); display: flex; align-items: center; }
.dt-icon img { width: 20px; height: 20px; object-fit: contain; }

.dt-render-output { letter-spacing: 0.5px; }

/* ==========================================================================
   ELEMENT: FOOTER DIVIDER SUPREME
   ========================================================================== */

/* Base Styles */
.footer-divider {
    border: none;
    transition: all 0.3s ease;
    flex-shrink: 0; /* Flexbox me dabbe na isliye */
}

/* --- VERTICAL DIVIDER --- */
.divider-vertical {
    display: inline-block;
    vertical-align: middle;
    /* PHP se inline height/width handle hoti hai par default fallback yaha hai */
    min-height: 15px; 
}

/* --- HORIZONTAL DIVIDER --- */
.divider-horizontal {
    display: block;
    clear: both;
    width: 100%;
}

/* --- RESPONSIVE FIXES --- */
@media (max-width: 767px) {
    /* Mobile par aksar vertical line buri lagti hai, 
       isliye hum use chota ya gayab kar sakte hain ya center align */
    .divider-vertical {
        margin: 10px auto !important;
        height: 1px !important; /* Mobile par vertical ko horizontal me badalna aksar acha rehta hai */
        width: 50px !important;
        display: block;
    }
    
    .divider-horizontal {
        width: 80% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

/* --- DARK MODE FALLBACK --- */
/* Agar admin ne koi color select nahi kiya, to ye default dikhega */
body.dark-mode .footer-divider {
    opacity: 0.2;
    background-color: #ffffff !important; 
}

/* --- HOVER EFFECT --- */
.footer-divider:hover {
    opacity: 0.8;
}

.footer-email { display: inline-flex; align-items: center; margin-bottom: 10px; }
.footer-email.align-center { justify-content: center; width: 100%; }
.footer-email.align-right { justify-content: flex-end; width: 100%; }

.email-link { display: flex; align-items: center; gap: 10px; text-decoration: none !important; color: inherit; transition: 0.3s; }
.email-link:hover { color: var(--theme-primary, #FF7130); transform: translateX(5px); }

.email-icon { width: 1.2em; height: 1.2em; display: flex; align-items: center; }
.email-icon img { width: 100%; height: auto; object-fit: contain; }

.email-text-wrap { display: flex; flex-direction: column; line-height: 1.2; }
.email-label { font-size: 0.85em; opacity: 0.7; font-weight: 600; }
.email-address { font-weight: 700; }

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

.footer-phone { display: inline-flex; align-items: center; margin-bottom: 10px; }
.footer-phone.align-center { justify-content: center; width: 100%; }
.footer-phone.align-right { justify-content: flex-end; width: 100%; }

.phone-link { display: flex; align-items: center; gap: 10px; text-decoration: none !important; color: inherit; transition: 0.3s; }

/* Phone Shake Animation on Hover */
@keyframes phoneShake {
  0% { transform: rotate(0); }
  25% { transform: rotate(10deg); }
  50% { transform: rotate(-10deg); }
  75% { transform: rotate(10deg); }
  100% { transform: rotate(0); }
}

.phone-link:hover .phone-icon img { animation: phoneShake 0.4s ease-in-out; }
.phone-link:hover { color: var(--theme-primary, #FF7130); }

.phone-icon { width: 1.3em; height: 1.3em; display: flex; align-items: center; }
.phone-icon img { width: 100%; height: auto; object-fit: contain; }

.phone-text-wrap { display: flex; flex-direction: column; line-height: 1.2; }
.phone-label { font-size: 0.85em; opacity: 0.7; font-weight: 600; }
.phone-number { font-weight: 700; letter-spacing: 0.5px; }

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

/* ==========================================================================
   ELEMENT: ICON FEATURES LIST
   ========================================================================== */

.footer-icon-features {
    display: grid;
    gap: 20px;
    padding: 15px;
    border-radius: 8px;
    width: 100%;
}

/* Grid Columns */
.grid-cols-1 { grid-template-columns: 1fr; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

.feature-item {
    display: flex;
    gap: 15px;
    align-items: center;
    transition: 0.3s ease;
}

/* Orientation: Vertical (Icon Top) */
.feature-item.layout-vertical {
    flex-direction: column;
}

/* Alignment Logic */
.align-center { text-align: center; }
.align-center .feature-item { justify-content: center; }
.align-right { text-align: right; }
.align-right .feature-item { justify-content: flex-end; }

/* Icon Style */
.feat-icon {
    font-size: 24px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.feat-icon img {
    width: 35px;
    height: 35px;
    object-fit: contain;
}

.feat-content { line-height: 1.3; }
.feat-title { margin: 0 0 3px 0; font-size: 15px; font-weight: 800; text-transform: uppercase; }
.feat-desc { margin: 0; font-size: 13px; opacity: 0.8; font-weight: 500; }

/* Responsive */
@media (max-width: 991px) {
    .grid-cols-3, .grid-cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .footer-icon-features { grid-template-columns: 1fr; }
    .feature-item.layout-horizontal { text-align: left; justify-content: flex-start; }
}
/* ==========================================================================
   ELEMENT: FOOTER IMAGE
   ========================================================================== */

.footer-image-wrap { display: flex; width: 100%; margin-bottom: 15px; }
.footer-image-wrap.align-left   { justify-content: flex-start; }
.footer-image-wrap.align-center { justify-content: center; }
.footer-image-wrap.align-right  { justify-content: flex-end; }

.image-container { position: relative; line-height: 0; transition: transform 0.3s ease; }
.footer-image-link:hover .image-container { transform: scale(1.03); }

.f-img { height: auto; object-fit: contain; }

/* DARK MODE HANDLING */
body.dark-mode .img-light {
    display: none !important;
}
body.dark-mode .img-dark {
    display: block !important;
}

/* Agar dark image nahi hai to light image ko thoda dim kar do */
body.dark-mode .image-container:not(:has(.img-dark)) .img-light {
    display: block !important;
    opacity: 0.8;
}
/* ==========================================================================
   ELEMENT: FOOTER LOGO
   ========================================================================== */

.footer-logo-block { display: flex; width: 100%; margin-bottom: 20px; }
.footer-logo-block.align-left   { justify-content: flex-start; }
.footer-logo-block.align-center { justify-content: center; }
.footer-logo-block.align-right  { justify-content: flex-end; }

.logo-container { position: relative; line-height: 0; }
.f-logo { width: 100%; height: auto; object-fit: contain; transition: transform 0.3s ease; }

.footer-logo-link:hover .f-logo { transform: scale(1.05); }

/* DARK MODE LOGIC */
body.dark-mode .logo-light {
    display: none !important;
}
body.dark-mode .logo-dark {
    display: block !important;
}

/* If no dark logo provided, make light logo slightly visible but dimmed */
body.dark-mode .logo-container:not(:has(.logo-dark)) .logo-light {
    display: block !important;
    opacity: 0.8;
}
/* ==========================================================================
   ELEMENT: FOOTER MAIN MENU
   ========================================================================== */

.footer-menu-wrapper .footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 15px;
}

/* --- VERTICAL LAYOUT (Stack) --- */
.footer-menu-wrapper.layout-vertical .footer-menu {
    flex-direction: column;
    gap: 10px;
}

/* --- HORIZONTAL LAYOUT (Inline) --- */
.footer-menu-wrapper.layout-horizontal .footer-menu {
    flex-direction: row;
    flex-wrap: wrap;
}

/* --- ALIGNMENT --- */
.footer-menu-wrapper.align-left   { text-align: left; }
.footer-menu-wrapper.align-left .footer-menu { justify-content: flex-start; }

.footer-menu-wrapper.align-center { text-align: center; }
.footer-menu-wrapper.align-center .footer-menu { justify-content: center; }

.footer-menu-wrapper.align-right  { text-align: right; }
.footer-menu-wrapper.align-right .footer-menu { justify-content: flex-end; }

/* --- LINK STYLES --- */
.footer-menu-wrapper .footer-menu li a {
    text-decoration: none !important;
    color: inherit;
    opacity: 0.8;
    transition: 0.3s ease;
    display: inline-block;
}

.footer-menu-wrapper .footer-menu li a:hover {
    opacity: 1;
    color: var(--theme-primary, #FF7130);
    transform: translateX(3px); /* Subtle nudge effect */
}

/* Horizontal nudge reset */
.footer-menu-wrapper.layout-horizontal .footer-menu li a:hover {
    transform: translateY(-2px);
}

/* Responsive Stack for Mobile */
@media (max-width: 767px) {
    .footer-menu-wrapper .footer-menu {
        justify-content: center !important;
        text-align: center !important;
    }
}
/* ==========================================================================
   ELEMENT: FOOTER NEWSLETTER
   ========================================================================== */

.footer-newsletter {
    padding: 10px;
    border-radius: 8px;
    width: 100%;
}

.news-title { font-size: 18px; font-weight: 800; margin-bottom: 5px; text-transform: uppercase; }
.news-desc { font-size: 13px; margin-bottom: 20px; }

/* Built-in Form Styling */
.dd-built-in-news {
    display: flex;
    width: 100%;
    gap: 0;
    border-radius: 5px;
    overflow: hidden;
}

.dd-built-in-news input {
    flex: 1;
    border: 1px solid #ddd;
    padding: 12px 15px;
    outline: none;
    font-size: 14px;
}

.dd-built-in-news button {
    border: none;
    color: #fff;
    padding: 0 25px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    font-size: 12px;
}

.dd-built-in-news button:hover { filter: brightness(1.2); }

/* --- HORIZONTAL LAYOUT MAGIC --- */
.layout-horizontal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.layout-horizontal .news-title { margin-bottom: 0; }
.layout-horizontal .news-desc { margin-bottom: 0; }
.layout-horizontal .news-form-container { flex: 1; min-width: 300px; }

/* Responsive */
@media (max-width: 767px) {
    .layout-horizontal { flex-direction: column; text-align: center !important; }
    .dd-built-in-news { flex-direction: column; gap: 10px; border-radius: 0; }
    .dd-built-in-news button { padding: 12px; border-radius: 5px; }
    .dd-built-in-news input { border-radius: 5px; }
}
/* ==========================================================================
   ELEMENT: SOCIAL BUTTONS SUPREME
   ========================================================================== */

.footer-social-wrap {
    display: flex;
    gap: 12px;
    width: 100%;
}

.footer-social-wrap.layout-horizontal { flex-direction: row; flex-wrap: wrap; }
.footer-social-wrap.layout-vertical { flex-direction: column; width: max-content; }

/* Alignment */
.footer-social-wrap.align-left   { justify-content: flex-start; }
.footer-social-wrap.align-center { justify-content: center; text-align: center; }
.footer-social-wrap.align-right  { justify-content: flex-end; }

/* Button Base Styles */
.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 2.2em;
    height: 2.2em;
    line-height: 1;
}

/* Styles: Circle, Square, Rounded */
.style-circle .social-btn  { border-radius: 50%; }
.style-square .social-btn  { border-radius: 0; }
.style-rounded .social-btn { border-radius: 8px; }
.style-minimal .social-btn { background: transparent !important; width: auto; height: auto; }

/* --- BRAND COLORS (Logic) --- */
.color-brand .btn-facebook  { background: #3b5998; color: #fff; }
.color-brand .btn-twitter, .color-brand .btn-x { background: #000; color: #fff; }
.color-brand .btn-instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); color: #fff; }
.color-brand .btn-youtube   { background: #ff0000; color: #fff; }
.color-brand .btn-linkedin  { background: #0077b5; color: #fff; }
.color-brand .btn-whatsapp  { background: #25d366; color: #fff; }

/* Hover Effects */
.social-btn:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    filter: brightness(1.1);
}

.style-minimal .social-btn:hover {
    transform: scale(1.2);
    box-shadow: none;
    color: var(--theme-primary, #FF7130) !important;
}

/* Admin UI Cards Styling */
.social-select-card {
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
    background: #fff;
    transition: 0.2s;
}
.social-select-card.active {
    border-color: #2271b1;
    background: #f0f6fc;
    box-shadow: inset 0 0 0 1px #2271b1;
}
.social-icon-preview { font-size: 20px; display: block; margin-bottom: 5px; }
.social-label { font-size: 10px; font-weight: 700; text-transform: uppercase; display: block; }
/* --- CUSTOM COLOR MODE LOGIC --- */

/* 1. Custom Mode: Jab user khud ka color choose kare */
.color-custom .social-btn {
    /* PHP se inline background aur color aata hai, 
       yahan hum sirf unka behavior set kar rahe hain */
    border: 1px solid rgba(0,0,0,0.05); /* Light border for definition */
}

/* 2. Custom Mode Hover: Hover karne par thoda dark ya light ho jaye */
.color-custom .social-btn:hover {
    filter: contrast(1.1) brightness(0.9);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

/* --- BRAND COLOR MODE (Detailed) --- */

/* Facebook */
.color-brand .btn-facebook { background-color: #3b5998; color: #fff !important; }
.color-brand .btn-facebook:hover { background-color: #2d4373; }

/* Twitter / X */
.color-brand .btn-twitter, 
.color-brand .btn-x { background-color: #000000; color: #fff !important; }
.color-brand .btn-twitter:hover,
.color-brand .btn-x:hover { background-color: #333; }

/* Instagram (Gradient Style) */
.color-brand .btn-instagram { 
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); 
    color: #fff !important; 
}
.color-brand .btn-instagram:hover { opacity: 0.9; transform: translateY(-5px) scale(1.1); }

/* YouTube */
.color-brand .btn-youtube { background-color: #ff0000; color: #fff !important; }
.color-brand .btn-youtube:hover { background-color: #cc0000; }

/* LinkedIn */
.color-brand .btn-linkedin { background-color: #0077b5; color: #fff !important; }
.color-brand .btn-linkedin:hover { background-color: #005987; }

/* WhatsApp */
.color-brand .btn-whatsapp { background-color: #25d366; color: #fff !important; }
.color-brand .btn-whatsapp:hover { background-color: #128c7e; }

/* Pinterest */
.color-brand .btn-pinterest { background-color: #bd081c; color: #fff !important; }

/* TikTok */
.color-brand .btn-tiktok { background-color: #010101; color: #fff !important; }

/* --- ICON ONLY (MINIMAL) MODE COLORS --- */

/* Minimal mode me background nahi hota, sirf icon ka color badalta hai */
.style-minimal.color-brand .btn-facebook i  { color: #3b5998; }
.style-minimal.color-brand .btn-instagram i { color: #d6249f; }
.style-minimal.color-brand .btn-whatsapp i  { color: #25d366; }
.style-minimal.color-brand .btn-youtube i   { color: #ff0000; }

/* Minimal mode me hover par brand color dikhe */
.style-minimal .social-btn:hover i {
    transform: scale(1.2);
}
/* ==========================================================================
   SUPREME SOCIAL LINKS (SHORTCODE BASED)
   ========================================================================== */

/* 1. Main Wrapper & Container */
.footer-social {
    width: 100%;
    margin-bottom: 15px;
}

.custom-social-links {
    display: flex;
    gap: 12px; /* आइकॉन के बीच की दूरी */
    flex-wrap: wrap;
    align-items: center;
}

/* 2. Alignment Logic (Based on your classes) */
.icon-align-left { justify-content: flex-start; text-align: left; }
.icon-align-center { justify-content: center; text-align: center; }
.icon-align-right { justify-content: flex-end; text-align: right; }

/* 3. Social Button Base Style */
.social-link-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    /* Default Size if class fails */
    width: 40px; 
    height: 40px;
}

/* 4. Circle Style Logic */
.social-style-circle .social-link-item {
    border-radius: 50%;
}

/* 5. Icon Font Size (Dynamic Support) */
.social-icon-font {
    font-size: inherit; /* Shortcode se aayi size lega */
    line-height: 1;
}

/* --- BRAND COLORS --- */

/* Facebook */
.social-link-item[title*="Facebook"] { background-color: #3b5998; color: #fff !important; }
/* Instagram */
.social-link-item[title*="Instagram"] { 
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); 
    color: #fff !important; 
}
/* Twitter / X */
.social-link-item[title*="Twitter"], 
.social-link-item[title*="X"] { background-color: #000; color: #fff !important; }
/* YouTube */
.social-link-item[title*="YouTube"] { background-color: #ff0000; color: #fff !important; }
/* WhatsApp */
.social-link-item[title*="WhatsApp"] { background-color: #25d366; color: #fff !important; }
/* LinkedIn */
.social-link-item[title*="LinkedIn"] { background-color: #0077b5; color: #fff !important; }

/* 6. Hover Effects (Supreme Touch) */
.social-link-item:hover {
    transform: translateY(-5px); /* ऊपर की तरफ जंप */
    box-shadow: 0 10px 15px rgba(0,0,0,0.2);
    filter: brightness(1.2); /* थोड़ा चमकेगा */
}

/* Simple Icon Only Style (If needed) */
.style-icon_only .social-link-item {
    background: transparent !important;
    box-shadow: none !important;
    width: auto;
    height: auto;
}

.style-icon_only .social-link-item:hover {
    transform: scale(1.2);
    filter: none;
}

/* 7. Mobile Optimization */
@media (max-width: 767px) {
    .custom-social-links {
        justify-content: center !important; /* मोबाइल पर हमेशा सेंटर */
    }
}

/* ==========================================================================
   ELEMENT: FOOTER SPACER
   ========================================================================== */

.footer-spacer {
    pointer-events: none; /* Spacer click handle na kare */
}

/* Vertical Spacer ensures full width is blocked */
.footer-spacer.vertical {
    clear: both;
}

/* Horizontal Spacer keeps items away in same line */
.footer-spacer.horizontal {
    flex-shrink: 0;
}

/* RESPONSIVE HIDE */
@media (max-width: 767px) {
    .footer-spacer.hide-on-mobile {
        display: none !important;
    }
    
    /* Mobile par bahut bade gaps ache nahi lagte, 
       isliye vertical gap ko half kar dena better hai */
    .footer-spacer.vertical {
        height: clamp(5px, 2vw, 20px) !important;
    }
}

/* ==========================================================================
   ELEMENT: FOOTER TEXT BLOCK SUPREME
   ========================================================================== */

.footer-text-block {
    width: 100%;
    margin-bottom: 15px;
    word-wrap: break-word; /* Lambe words break ho jaye taki design na bigde */
}

/* --- TEXT TAGS STYLING --- */
.footer-text-block p {
    margin: 0 0 10px 0;
    line-height: inherit;
    color: inherit;
}

.footer-text-block strong {
    font-weight: 700;
}

/* --- LINK STYLING (Inside Text) --- */
.footer-text-block a {
    color: var(--theme-primary, #FF7130);
    text-decoration: none !important;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.footer-text-block a:hover {
    opacity: 0.8;
    border-bottom-color: currentColor;
}

/* --- DARK MODE FALLBACK --- */
/* Agar admin ne color select nahi kiya, to ye default colors kam karenge */
body.dark-mode .footer-text-block {
    color: #aaaaaa;
}

/* --- RESPONSIVE FIXES --- */
@media (max-width: 767px) {
    /* Mobile par aksar text center me acha lagta hai */
    .footer-text-block {
        text-align: center !important; /* Force center on mobile if needed */
        font-size: clamp(13px, 4vw, 15px); /* Fluid typography */
    }
}

/* --- RICH TEXT EDITOR SUPPORT --- */
/* Agar user ne blockquote ya list daal di text block me */
.footer-text-block ul, 
.footer-text-block ol {
    padding-left: 20px;
    margin: 10px 0;
}

.footer-text-block li {
    margin-bottom: 5px;
}

/* ==========================================================================
   ELEMENT: FOOTER TITLE SUPREME
   ========================================================================== */

.footer-title-block {
    width: 100%;
}

.f-title-main {
    margin: 0;
    padding: 0;
    font-family: inherit;
    transition: color 0.3s ease;
}

/* Link Style */
.f-title-main a {
    transition: opacity 0.3s ease;
}

.f-title-main a:hover {
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 767px) {
    .footer-title-block {
        text-align: center !important; /* Mobile par headings center me achi lagti hain */
        margin-bottom: 15px !important;
    }
}

/* Supreme Footer Styles */
.dodigitals-footer-modern {
    width: 100%;
    overflow: hidden;
}

.footer-section-wrap {
    transition: all 0.3s ease;
}

/* Sticky Footer Logic */
.footer-sticky {
    position: sticky;
    bottom: 0;
    z-index: 100;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.05);
}

/* Smart Sticky: Hide on scroll down, show on scroll up */
.smart-sticky {
    transition: transform 0.4s ease;
}
.smart-sticky.hide-sticky {
    transform: translateY(100%);
}

/* Dark Mode Helper */
body.dark-mode .footer-section-wrap::before {
    opacity: 0.5; /* Reduce overlay opacity in dark mode if needed */
}

/* Column Spacing */
.footer-col-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px; /* Blocks ke beech ka gap */
}

/* Alignment Helpers */
.align-items-start .footer-col-inner { justify-content: flex-start; }
.align-items-center .footer-col-inner { justify-content: center; }
.align-items-end .footer-col-inner { justify-content: flex-end; }

@media (max-width: 767px) {
    .footer-section-wrap {
        padding-left: 15px;
        padding-right: 15px;
    }
    .footer-col-left, .footer-col-center, .footer-col-right {
        width: 100% !important;
        text-align: center;
        margin-bottom: 30px;
    }
}


