/* ==========================================================================
   5. HEADER THU HẸP & VISUAL ĐỘNG
   ========================================================================== */
.wpshare247-site-header { position: sticky; top: 0; z-index: 1000; transition: transform 0.4s ease, background 0.3s ease, box-shadow 0.3s ease; border-bottom: 1px solid var(--wpshare247-border-color); background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); box-shadow: 0 4px 20px rgba(0,0,0,0.05); }
.wpshare247-site-header::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 100%; height: 3px; background: linear-gradient(90deg, var(--wpshare247-color-primary), var(--wpshare247-color-accent), #38bdf8, var(--wpshare247-color-primary)); background-size: 300% 100%; animation: wpshare247_borderSweep 4s linear infinite; z-index: 10; }
@keyframes wpshare247_borderSweep { 0% { background-position: 100% 0; } 100% { background-position: -50% 0; } }
.wpshare247-header-hidden { transform: translateY(-100%); }
.wpshare247-site-header.wpshare247-scrolled { background: rgba(255, 255, 255, 0.98); box-shadow: 0 10px 30px rgba(0,0,0,0.08); }

.wpshare247-top-announcement { background: linear-gradient(90deg, var(--wpshare247-color-accent), var(--wpshare247-color-accent-hover)); color: #ffffff; padding: 10px 24px; font-size: 0.95rem; font-weight: 700; text-align: center; position: relative; z-index: 1001; display: flex; align-items: center; box-shadow: 0 2px 10px rgba(249, 115, 22, 0.3); }
.wpshare247-top-announcement marquee { display: block; width: 100%; max-width: var(--wpshare247-container-width); margin: 0 auto; letter-spacing: 1px; text-transform: uppercase; }

.wpshare247-header__main { padding: 12px 0 !important; border-bottom: 1px solid var(--wpshare247-border-color); }
.wpshare247-header__logo span { background: linear-gradient(90deg, var(--wpshare247-color-primary-dark) 0%, var(--wpshare247-color-accent) 50%, var(--wpshare247-color-primary-dark) 100%); background-size: 200% auto; color: transparent; -webkit-background-clip: text; background-clip: text; animation: wpshare247_textShine 3s linear infinite; }
@keyframes wpshare247_textShine { to { background-position: 200% center; } }

.wpshare247-header__search { flex: 1; max-width: 600px; display: flex; }
.wpshare247-header__search input { width: 100%; padding: 10px 20px; border: 1px solid var(--wpshare247-border-color); border-right: none; outline: none; transition: 0.3s; background: #ffffff; color: var(--wpshare247-text-main); border-radius: 0; }
.wpshare247-header__search button { background: var(--wpshare247-color-primary); color: white; border: none; padding: 0 24px; cursor: pointer; transition: 0.3s; border-radius: 0;}
.wpshare247-header__search button:hover { background: var(--wpshare247-color-primary-dark); }

.wpshare247-header__actions { display: flex; gap: 25px; align-items: center; }
.wpshare247-action-item { position: relative; color: var(--wpshare247-text-main); display: flex; flex-direction: column; align-items: center; font-size: 0.8rem; transition: color 0.3s; font-weight: 700; text-transform: uppercase;}
.wpshare247-action-item svg { width: 24px; height: 24px; margin-bottom: 4px; transition: transform 0.3s; }
.wpshare247-action-item:hover { color: var(--wpshare247-color-primary); }
.wpshare247-action-item:hover svg { transform: translateY(-3px); }
.wpshare247-action-badge { position: absolute; top: -5px; right: 5px; background: var(--wpshare247-color-accent); color: white; font-size: 10px; padding: 2px 6px; border-radius: 999px; font-weight: bold; border: 2px solid white;}

/* DROPDOWN MENU */
.wpshare247-header__nav-bar { position: relative; transition: 0.3s; }
.wpshare247-nav-container { display: flex; position: relative; align-items: center;} 
.wpshare247-main-nav { display: flex; margin: 0; padding: 0; align-items: center; width: 100%; justify-content: center;}
.wpshare247-main-nav > li { position: relative; }
.wpshare247-main-nav > li > a { display: block; padding: 16px 12px !important; font-family: var(--wpshare247-font-heading); font-size: 0.95rem !important; font-weight: bold; text-transform: uppercase; color: var(--wpshare247-text-main); transition: color 0.3s; white-space: nowrap;}
.wpshare247-main-nav > li > a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 3px; background: var(--wpshare247-color-primary); transition: width 0.3s ease;}
.wpshare247-main-nav > li:hover > a::after, .wpshare247-main-nav > li.current-menu-item > a::after { width: 100%; }
.wpshare247-main-nav > li:hover > a, .wpshare247-main-nav > li.current-menu-item > a { color: var(--wpshare247-color-primary); }

.wpshare247-main-nav .sub-menu {
    position: absolute; top: 100%; left: 0; background: #fff; min-width: 240px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); border-top: 2px solid var(--wpshare247-color-primary);
    opacity: 0; visibility: hidden; transform: translateY(10px); transition: 0.3s;
    display: flex; flex-direction: column; z-index: 100;
}
.wpshare247-main-nav li:hover .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.wpshare247-main-nav .sub-menu li a {
    padding: 12px 20px; color: var(--wpshare247-text-main); font-size: 0.95rem; font-weight: 500;
    border-bottom: 1px solid var(--wpshare247-border-color); display: block; text-transform: capitalize;
}
.wpshare247-main-nav .sub-menu li a:hover { color: var(--wpshare247-color-primary); background: var(--wpshare247-bg-section-alt); padding-left: 25px;}

.wpshare247-mobile-menu-btn { display: none !important; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--wpshare247-text-main); }
.wpshare247-mobile-menu-header { display: none; }

/* ==========================================================================
   10. FOOTER LIGHT THEME & AUTH SLIDER
   ========================================================================== */
.wpshare247-site-footer { background: #f8fafc !important; color: var(--wpshare247-text-main) !important; padding: 80px 0 30px; border-top: 1px solid var(--wpshare247-border-color); margin-top: auto; position: relative; z-index: 10; flex-shrink: 0; width: 100%;}
.wpshare247-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.5fr 1.2fr; gap: 40px; margin-bottom: 50px; }
.wpshare247-footer-col h4 { color: var(--wpshare247-color-primary-dark) !important; margin-bottom: 25px; font-size: 1.15rem; font-weight: 800; white-space: nowrap; text-transform: uppercase;}
.wpshare247-footer-col ul li { margin-bottom: 15px; }
.wpshare247-footer-col a { color: var(--wpshare247-text-main) !important; font-weight: 500; transition: 0.3s;}
.wpshare247-footer-col a:hover { color: var(--wpshare247-color-accent) !important; padding-left: 8px; }
.wpshare247-social-links a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: #e2e8f0; color: var(--wpshare247-color-primary-dark) !important; transition: 0.3s; border-radius: 50%; }
.wpshare247-social-links a:hover { background: var(--wpshare247-color-primary); color: white !important; transform: translateY(-3px);}
.wpshare247-copyright { text-align: center; padding-top: 30px; border-top: 1px solid #cbd5e1; color: var(--wpshare247-text-muted); font-size: 0.95rem; font-weight: 500;}

/* AUTH SLIDER (Trang Tài Khoản) */
.wpshare247-auth-container { overflow: hidden !important; position: relative; width: 100%; background: var(--wpshare247-bg-card); }
.wpshare247-auth-slider { display: flex !important; flex-direction: row !important; width: 300% !important; transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1); }
.wpshare247-auth-panel { width: 33.3333% !important; flex-shrink: 0 !important; padding: 40px; box-sizing: border-box; }

/* ==========================================================================
   11. ELEMENTOR FULL WIDTH & WIDGET COMPATIBILITY
   ========================================================================== */
.tbay-elementor-page,
.tbay-elementor-canvas-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
}

.tbay-elementor-content-wrap {
    width: 100%;
}

.tbay-product-specs-widget ul {
    margin: 0 0 25px 0;
    padding: 0;
}

/* DÒNG EDIT WITH ELEMENTOR TRÊN GIAO DIỆN CHÍNH */
.tbay-top-elementor-bar {
    background: #0f172a;
    color: #e2e8f0;
    border-bottom: 2px solid #92003b;
    position: relative;
    z-index: 1002;
}
.tbay-elementor-status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 8px #22c55e;
}
.tbay-btn-edit-elementor {
    background: linear-gradient(135deg, #92003b 0%, #be185d 100%);
    color: #ffffff !important;
    padding: 5px 16px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 2px 8px rgba(146, 0, 59, 0.4);
    transition: all 0.25s ease;
}
.tbay-btn-edit-elementor:hover {
    background: linear-gradient(135deg, #be185d 0%, #db2777 100%);
    box-shadow: 0 4px 14px rgba(146, 0, 59, 0.6);
    transform: translateY(-1px);
}

/* TƯƠNG THÍCH ADMIN BAR WORDPRESS */
body.admin-bar .wpshare247-site-header {
    top: 32px;
}
@media screen and (max-width: 782px) {
    body.admin-bar .wpshare247-site-header {
        top: 46px;
    }
}

