/* ===========================================
   Like-buy Header & Footer - Frontend CSS v2
   =========================================== */

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

:root {
    --lbt-primary: #0f172a;
    --lbt-secondary: #1e3a5f;
    --lbt-text: #ffffff;
    --lbt-header-h: 64px;
    --lbt-topbar-h: 38px;
}

/* ===== RESET: prevent theme conflicts ===== */

body.lbt-hf-active {
    margin-top: 0 !important;
    padding-top: var(--lbt-header-h) !important;
}

body.lbt-hf-active #page,
body.lbt-hf-active .site {
    margin-top: 0 !important;
    /* Prevent transform/filter/perspective on wrapper from breaking position:fixed */
    transform: none !important;
    -webkit-transform: none !important;
    filter: none !important;
    perspective: none !important;
    will-change: auto !important;
}

body.lbt-hf-active .ast-header-stacked,
body.lbt-hf-active .ast-primary-header-bar,
body.lbt-hf-active #ast-desktop-header,
body.lbt-hf-active .site-header {
    display: none !important;
}

body.lbt-hf-menu-open {
    overflow: hidden !important;
}

/* ===== ANNOUNCEMENT TOP BAR ===== */

.lbt-hf-topbar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 100000 !important;
    height: var(--lbt-topbar-h);
    background: linear-gradient(90deg, #dc2626 0%, #f59e0b 25%, #dc2626 50%, #f59e0b 75%, #dc2626 100%);
    background-size: 200% 100%;
    animation: lbtTopbarGradient 4s linear infinite;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: none !important;
}

.lbt-hf-topbar.hidden {
    display: none !important;
}

/* ===== TOP BAR THEMES ===== */

/* Solid Colors */
.lbt-topbar-solid-red {
    background: #dc2626 !important;
    animation: none !important;
}

.lbt-topbar-solid-blue {
    background: #2563eb !important;
    animation: none !important;
}

.lbt-topbar-solid-green {
    background: #16a34a !important;
    animation: none !important;
}

.lbt-topbar-solid-purple {
    background: #9333ea !important;
    animation: none !important;
}

.lbt-topbar-solid-black {
    background: #1f2937 !important;
    animation: none !important;
}

/* Gradient Themes */
.lbt-topbar-gradient-red-orange {
    background: linear-gradient(90deg, #dc2626 0%, #f59e0b 25%, #dc2626 50%, #f59e0b 75%, #dc2626 100%) !important;
    background-size: 200% 100% !important;
    animation: lbtTopbarGradient 4s linear infinite !important;
}

.lbt-topbar-gradient-blue-cyan {
    background: linear-gradient(90deg, #2563eb 0%, #06b6d4 25%, #2563eb 50%, #06b6d4 75%, #2563eb 100%) !important;
    background-size: 200% 100% !important;
    animation: lbtTopbarGradient 4s linear infinite !important;
}

.lbt-topbar-gradient-purple-pink {
    background: linear-gradient(90deg, #9333ea 0%, #ec4899 25%, #9333ea 50%, #ec4899 75%, #9333ea 100%) !important;
    background-size: 200% 100% !important;
    animation: lbtTopbarGradient 4s linear infinite !important;
}

.lbt-topbar-gradient-green-emerald {
    background: linear-gradient(90deg, #16a34a 0%, #10b981 25%, #16a34a 50%, #10b981 75%, #16a34a 100%) !important;
    background-size: 200% 100% !important;
    animation: lbtTopbarGradient 4s linear infinite !important;
}

.lbt-topbar-gradient-dark-gray {
    background: linear-gradient(90deg, #374151 0%, #4b5563 25%, #374151 50%, #4b5563 75%, #374151 100%) !important;
    background-size: 200% 100% !important;
    animation: lbtTopbarGradient 4s linear infinite !important;
}

/* Shift header down when topbar is present */
.lbt-hf-header.has-topbar {
    top: var(--lbt-topbar-h) !important;
}

body.lbt-hf-active.has-topbar {
    padding-top: calc(var(--lbt-header-h) + var(--lbt-topbar-h)) !important;
}

/* Admin bar + top bar combos */
.admin-bar .lbt-hf-topbar {
    top: 32px !important;
}

.admin-bar .lbt-hf-header.has-topbar {
    top: calc(32px + var(--lbt-topbar-h)) !important;
}

.admin-bar body.lbt-hf-active.has-topbar {
    padding-top: calc(var(--lbt-header-h) + var(--lbt-topbar-h) + 32px) !important;
}

@media screen and (min-width: 601px) and (max-width: 782px) {
    .admin-bar .lbt-hf-topbar { top: 46px !important; }
    .admin-bar .lbt-hf-header.has-topbar { top: calc(46px + var(--lbt-topbar-h)) !important; }
    .admin-bar body.lbt-hf-active.has-topbar { padding-top: calc(var(--lbt-header-h) + var(--lbt-topbar-h) + 46px) !important; }
}

@media screen and (max-width: 600px) {
    .admin-bar .lbt-hf-topbar { top: 0 !important; }
    .admin-bar .lbt-hf-header.has-topbar { top: var(--lbt-topbar-h) !important; }
    .admin-bar body.lbt-hf-active.has-topbar { padding-top: calc(var(--lbt-header-h) + var(--lbt-topbar-h)) !important; }
}

@keyframes lbtTopbarGradient {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* Track holds all slides */
.lbt-hf-topbar-track {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lbt-hf-topbar-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.lbt-hf-topbar-slide.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.lbt-hf-topbar-slide.exit-up {
    opacity: 0;
    transform: translateY(-100%);
}

.lbt-hf-topbar-content {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 40px;
}

.lbt-hf-topbar-text,
.lbt-hf-topbar-link {
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.lbt-hf-topbar-link {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s;
}

.lbt-hf-topbar-link:hover {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.lbt-hf-topbar-link svg {
    animation: lbtTopbarArrow 1s ease-in-out infinite;
}

@keyframes lbtTopbarArrow {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(4px); }
}

/* Sparkle dots */
.lbt-hf-topbar-sparkle {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #ffffff;
    opacity: 0.6;
    animation: lbtTopbarSparkle 1.5s ease-in-out infinite;
    flex-shrink: 0;
}

.lbt-hf-topbar-sparkle:nth-child(1) { animation-delay: 0s; }
.lbt-hf-topbar-sparkle:nth-child(3) { animation-delay: 0.75s; }

@keyframes lbtTopbarSparkle {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.3); }
}

/* Close button */
.lbt-hf-topbar-close {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    border: none;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    padding: 0;
    transition: background 0.15s;
    z-index: 2;
}

.lbt-hf-topbar-close:hover {
    background: rgba(255,255,255,0.3);
}

/* Mobile topbar */
@media (max-width: 768px) {
    :root {
        --lbt-topbar-h: 34px;
    }

    .lbt-hf-topbar-text,
    .lbt-hf-topbar-link {
        font-size: 11px;
    }

    .lbt-hf-topbar-content {
        padding: 0 30px;
    }

    .lbt-hf-topbar-close {
        right: 6px;
        width: 20px;
        height: 20px;
    }
}

/* ===== HEADER ===== */

.lbt-hf-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 99999 !important;
    background: linear-gradient(135deg, var(--lbt-primary) 0%, var(--lbt-secondary) 100%);
    color: var(--lbt-text);
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    transform: none !important;
    will-change: auto;
}

/* Desktop admin bar: fixed, 32px */
.admin-bar .lbt-hf-header {
    top: 32px !important;
}

.admin-bar body.lbt-hf-active {
    padding-top: calc(var(--lbt-header-h) + 32px) !important;
}

/* Tablet admin bar (601-782px): fixed, 46px */
@media screen and (min-width: 601px) and (max-width: 782px) {
    .admin-bar .lbt-hf-header { top: 46px !important; }
    .admin-bar body.lbt-hf-active { padding-top: calc(var(--lbt-header-h) + 46px) !important; }
}

/* Mobile admin bar (<=600px): NOT fixed, scrolls away — header must be top:0 */
@media screen and (max-width: 600px) {
    .admin-bar .lbt-hf-header { top: 0 !important; }
    .admin-bar body.lbt-hf-active { padding-top: var(--lbt-header-h) !important; }
}

.lbt-hf-header-inner {
    position: relative;
    z-index: 2;
}

.lbt-hf-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: var(--lbt-header-h);
}

/* Logo */
.lbt-hf-logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.lbt-hf-logo a {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.lbt-hf-logo-img {
    height: auto;
    display: block;
    /* max-width is controlled via inline style (logo_width setting) */
}

.lbt-hf-logo-text {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--lbt-text);
}

/* Desktop Navigation */
.lbt-hf-nav {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.lbt-hf-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0;
    height: 100%;
    align-items: stretch;
}

.lbt-hf-menu-item {
    position: relative;
    display: flex;
    align-items: stretch;
}

.lbt-hf-menu-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 20px;
    color: var(--lbt-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    letter-spacing: 0.3px;
    border-bottom: 3px solid transparent;
    transition: background 0.2s, border-color 0.2s;
}

.lbt-hf-menu-link i {
    font-size: 16px;
}

.lbt-hf-menu-link:hover,
.lbt-hf-menu-item.mega-active > .lbt-hf-menu-link {
    background: rgba(255,255,255,0.1);
    border-bottom-color: #ffffff;
    color: #ffffff;
}

/* Submenu arrow for mega items */
.lbt-hf-menu-item.has-mega > .lbt-hf-menu-link::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    margin-left: 6px;
    transition: transform 0.2s;
}

.lbt-hf-menu-item.mega-active > .lbt-hf-menu-link::after {
    transform: rotate(180deg);
}

/* ===== MEGA MENU PANEL ===== */

.lbt-hf-mega {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    color: #1f2937;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    z-index: 1;
    border-top: 3px solid var(--lbt-primary);
}

.lbt-hf-mega.mega-open {
    display: block;
    animation: lbtMegaIn 0.25s ease;
}

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

.lbt-hf-mega-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 36px 40px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 48px;
    align-items: start;
}

/* Mega: left info panel */
.lbt-hf-mega-info {
    padding-right: 32px;
    border-right: 1px solid #f1f5f9;
}

.lbt-hf-mega-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--lbt-primary), var(--lbt-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.lbt-hf-mega-icon-wrap i {
    font-size: 22px;
    color: #ffffff;
}

.lbt-hf-mega-title {
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 8px;
    color: #0f172a;
}

.lbt-hf-mega-desc {
    font-size: 14px;
    line-height: 1.6;
    color: #64748b;
    margin: 0 0 16px;
}

.lbt-hf-mega-badge {
    display: inline-block;
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 12px;
}

/* Animated delivery indicator */
.lbt-hf-mega-delivery {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding: 10px 14px;
    background: #f0fdf4;
    border-radius: 8px;
    border: 1px solid #bbf7d0;
}

.lbt-hf-mega-delivery-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #22c55e;
    flex-shrink: 0;
    position: relative;
    animation: lbtPulseGlow 2s ease-in-out infinite;
}

.lbt-hf-mega-delivery-dot::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.3);
    animation: lbtPulseRing 2s ease-in-out infinite;
}

@keyframes lbtPulseGlow {
    0%, 100% { box-shadow: 0 0 4px rgba(34,197,94,0.4); }
    50% { box-shadow: 0 0 12px rgba(34,197,94,0.8), 0 0 20px rgba(34,197,94,0.3); }
}

@keyframes lbtPulseRing {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.4); opacity: 0; }
}

.lbt-hf-mega-delivery-text {
    font-size: 12px;
    font-weight: 600;
    color: #15803d;
    letter-spacing: 0.2px;
}

/* Mega trust bar: full width bottom strip */
.lbt-hf-mega-trust-bar {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    padding: 16px 40px;
}

.lbt-hf-mega-trust-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.lbt-hf-mega-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    white-space: nowrap;
}

.lbt-hf-mega-trust-item svg {
    flex-shrink: 0;
}

a.lbt-hf-mega-trust-link {
    text-decoration: none;
    transition: color 0.15s;
}

a.lbt-hf-mega-trust-link:hover {
    color: #0f172a;
    text-decoration: none;
}

/* Mega: right links grid (2 columns) */
.lbt-hf-mega-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 32px;
}

.lbt-hf-mega-col {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.lbt-hf-mega-link {
    display: flex;
    flex-direction: column;
    padding: 12px 16px;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.15s;
}

.lbt-hf-mega-link:hover {
    background: #f8fafc;
    text-decoration: none;
}

.lbt-hf-mega-link-title {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    transition: color 0.15s;
}

.lbt-hf-mega-link:hover .lbt-hf-mega-link-title {
    color: var(--lbt-secondary);
}

.lbt-hf-mega-link-desc {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 2px;
    line-height: 1.4;
}

/* Show All CTA button (right column) */
.lbt-hf-mega-show-all {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    grid-column: 1 / -1;
    padding: 10px 18px;
    margin-top: 12px;
    background: var(--lbt-primary);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15);
}

.lbt-hf-mega-show-all:hover {
    background: var(--lbt-secondary);
    transform: translateX(2px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25);
    text-decoration: none;
    color: #ffffff;
}

.lbt-hf-mega-show-all svg {
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.lbt-hf-mega-show-all:hover svg {
    transform: translateX(2px);
}

/* ===== DESKTOP ICONS ===== */

.lbt-hf-icons {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 4px;
}

.lbt-hf-icon {
    position: relative;
    color: var(--lbt-text);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: background 0.2s;
}

.lbt-hf-icon:hover {
    background: rgba(255,255,255,0.15);
    color: var(--lbt-text);
}

.lbt-hf-icon svg {
    display: block;
}

.lbt-hf-cart-count {
    position: absolute;
    top: 2px;
    right: 0;
    background: #dc2626;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    pointer-events: none;
}

/* Cart hover preview */
.lbt-hf-cart-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.lbt-hf-cart-preview {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #ffffff;
    color: #1f2937;
    min-width: 260px;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.18);
    z-index: 1001;
    padding: 16px;
}

.lbt-hf-cart-preview::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
}

.lbt-hf-cart-wrapper:hover .lbt-hf-cart-preview {
    display: block;
    animation: lbtMegaIn 0.2s ease;
}

.lbt-hf-cart-preview-items {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f3f4f6;
}

.lbt-hf-cart-preview-count {
    font-weight: 700;
    color: #1f2937;
}

.lbt-hf-cart-preview-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lbt-hf-cart-btn {
    display: block;
    text-align: center;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s;
}

.lbt-hf-cart-btn-view {
    background: #f3f4f6;
    color: #1f2937;
}

.lbt-hf-cart-btn-view:hover {
    background: #e5e7eb;
    color: #1f2937;
    text-decoration: none;
}

.lbt-hf-cart-btn-checkout {
    background: linear-gradient(135deg, var(--lbt-primary), var(--lbt-secondary));
    color: #ffffff;
}

.lbt-hf-cart-btn-checkout:hover {
    opacity: 0.9;
    color: #ffffff;
    text-decoration: none;
}

/* ===== HAMBURGER ===== */

.lbt-hf-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
    z-index: 10;
}

.lbt-hf-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--lbt-text);
    border-radius: 2px;
    transition: all 0.3s;
    transform-origin: center;
}

.lbt-hf-hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.lbt-hf-hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.lbt-hf-hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== MOBILE OVERLAY & PANEL ===== */

.lbt-hf-mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 99998;
    opacity: 0;
    transition: opacity 0.3s;
}

.lbt-hf-mobile-overlay.active {
    display: block;
    opacity: 1;
}

.lbt-hf-mobile-panel {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    max-width: 85vw;
    height: 100%;
    background: #ffffff;
    z-index: 100000;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -8px 0 30px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
}

.lbt-hf-mobile-panel.active {
    right: 0;
}

/* Mobile panel header */
.lbt-hf-mobile-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
    flex-shrink: 0;
}

.lbt-hf-mobile-panel-title {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
}

.lbt-hf-mobile-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background 0.15s;
}

.lbt-hf-mobile-close:hover {
    background: #f1f5f9;
    color: #0f172a;
}

/* Mobile user bar (account + cart) */
.lbt-hf-mobile-user-bar {
    display: flex;
    gap: 8px;
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
    flex-shrink: 0;
}

.lbt-hf-mobile-user-link {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    background: #f8fafc;
    border-radius: 10px;
    text-decoration: none;
    color: #0f172a;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.15s;
}

.lbt-hf-mobile-user-link:hover {
    background: #f1f5f9;
    color: #0f172a;
    text-decoration: none;
}

.lbt-hf-mobile-user-link svg {
    flex-shrink: 0;
    color: #64748b;
}

.lbt-hf-mobile-user-link .lbt-hf-cart-count {
    position: static;
    display: inline-flex;
    width: auto;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 10px;
    border-radius: 9px;
    margin-left: 2px;
}

/* Mobile navigation */
.lbt-hf-mobile-nav {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}

.lbt-hf-mobile-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.lbt-hf-mobile-item {
    border-bottom: 1px solid #f8fafc;
}

.lbt-hf-mobile-item-row {
    display: flex;
    align-items: center;
}

.lbt-hf-mobile-link {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: #0f172a;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: background 0.15s;
}

.lbt-hf-mobile-link:hover {
    background: #f8fafc;
    color: #0f172a;
    text-decoration: none;
}

.lbt-hf-mobile-link i {
    font-size: 18px;
    color: var(--lbt-secondary);
    width: 24px;
    text-align: center;
}

.lbt-hf-mobile-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 14px 20px 14px 12px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s;
}

.lbt-hf-mobile-toggle svg {
    transition: transform 0.3s;
}

.lbt-hf-mobile-toggle.open svg {
    transform: rotate(180deg);
}

.lbt-hf-mobile-toggle:hover {
    color: #0f172a;
}

/* Mobile submenu */
.lbt-hf-mobile-sub {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    background: #f8fafc;
}

.lbt-hf-mobile-sub.open {
    max-height: 600px;
}

.lbt-hf-mobile-sub li a {
    display: flex;
    flex-direction: column;
    padding: 10px 20px 10px 56px;
    text-decoration: none;
    color: #334155;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.15s;
}

.lbt-hf-mobile-sub li a:hover {
    background: #f1f5f9;
    color: #0f172a;
    text-decoration: none;
}

.lbt-hf-mobile-sub li a small {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 400;
    margin-top: 1px;
}

/* Mobile trust badges - boxed design */
.lbt-hf-mobile-trust {
    padding: 16px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
}

.lbt-hf-mobile-trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    text-decoration: none;
    color: #334155;
    transition: all 0.15s;
}

a.lbt-hf-mobile-trust-item:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #0f172a;
    text-decoration: none;
}

.lbt-hf-mobile-trust-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    flex-shrink: 0;
}

.lbt-hf-mobile-trust-icon svg {
    flex-shrink: 0;
}

.lbt-hf-mobile-trust-text {
    font-size: 13px;
    font-weight: 600;
    color: inherit;
}

/* ===== FOOTER ===== */

.lbt-hf-footer {
    background: linear-gradient(135deg, var(--lbt-footer-primary, #0f172a) 0%, var(--lbt-footer-secondary, #1e3a5f) 100%);
    color: #ffffff;
    margin-top: 0;
    position: relative;
    z-index: 1;
    width: 100%;
    clear: both;
    overflow: visible;
}

/* Footer container - independent from header container */
.lbt-hf-footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.lbt-hf-footer a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.2s;
}

.lbt-hf-footer a:hover {
    color: #ffffff;
    text-decoration: none;
}

/* Footer main content */
.lbt-hf-footer-main {
    padding: 28px 0 18px;
}

.lbt-hf-footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1.1fr;
    gap: 24px;
}

.lbt-hf-footer-heading {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #ffffff;
    position: relative;
    padding-bottom: 10px;
}

.lbt-hf-footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: #dc2626;
    border-radius: 1px;
}

/* Footer text */
.lbt-hf-footer-text {
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255,255,255,0.65);
    margin-bottom: 12px;
}

.lbt-hf-footer-text p {
    margin: 0;
}

/* Footer contact block */
.lbt-hf-footer-contact {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: 4px;
}

.lbt-hf-contact-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: color 0.2s;
    line-height: 1.3;
}

a.lbt-hf-contact-item:hover {
    color: #ffffff;
    text-decoration: none;
}

.lbt-hf-contact-item svg {
    flex-shrink: 0;
    opacity: 0.7;
}

a.lbt-hf-contact-item:hover svg {
    opacity: 1;
}

.lbt-hf-contact-hours {
    cursor: default;
}

/* Footer links */
.lbt-hf-footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.lbt-hf-footer-links li {
    margin-bottom: 7px;
}

.lbt-hf-footer-links a {
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 0;
    padding: 2px 0;
}

.lbt-hf-footer-links a::before {
    content: '';
    display: inline-block;
    width: 0;
    height: 1px;
    background: #dc2626;
    margin-right: 0;
    transition: all 0.2s;
}

.lbt-hf-footer-links a:hover::before {
    width: 12px;
    margin-right: 8px;
}

/* Newsletter */
.lbt-hf-footer-newsletter-desc {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    margin: 0 0 10px;
    line-height: 1.5;
}

.lbt-hf-newsletter-row {
    display: flex;
    gap: 0;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255,255,255,0.1);
}

.lbt-hf-newsletter-row input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: transparent;
    color: #ffffff;
    font-size: 14px;
    outline: none;
    min-width: 0;
}

.lbt-hf-newsletter-row input::placeholder {
    color: rgba(255,255,255,0.5);
}

.lbt-hf-newsletter-row button {
    padding: 12px 18px;
    background: #dc2626;
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    flex-shrink: 0;
}

.lbt-hf-newsletter-row button:hover {
    background: #b91c1c;
}

.lbt-hf-newsletter-msg {
    font-size: 12px;
    margin-top: 8px;
    min-height: 16px;
}

.lbt-hf-newsletter-msg.success {
    color: #4ade80;
}

.lbt-hf-newsletter-msg.error {
    color: #fca5a5;
}

/* Footer bottom bar */
.lbt-hf-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 12px 0;
}

.lbt-hf-footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.lbt-hf-footer-copyright {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
}

.lbt-hf-footer-legal {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
}

.lbt-hf-footer-legal a {
    color: rgba(255,255,255,0.6);
}

.lbt-hf-footer-legal a:hover {
    color: #ffffff;
}

.lbt-hf-footer-social {
    display: flex;
    gap: 10px;
    align-items: center;
}

.lbt-hf-footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    font-size: 16px;
    color: rgba(255,255,255,0.7);
    transition: all 0.2s;
}

.lbt-hf-footer-social a:hover {
    background: rgba(255,255,255,0.2);
    color: #ffffff;
    transform: translateY(-2px);
}

.lbt-hf-footer-payments {
    display: flex;
    gap: 8px;
    align-items: center;
}

.lbt-hf-payment {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 28px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    font-size: 16px;
    color: rgba(255,255,255,0.7);
}

/* ===== FOOTER ACTION BUTTONS (compact) ===== */

.lbt-hf-footer-actions {
    border-top: 1px solid rgba(255,255,255,0.07);
    border-bottom: 1px solid rgba(255,255,255,0.07);
    padding: 10px 0;
    background: rgba(0,0,0,0.12);
}

.lbt-hf-footer-actions-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.lbt-hf-action-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50px;
    color: #ffffff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.25s ease;
    animation: lbtActionFadeIn 0.5s ease both;
    position: relative;
    overflow: hidden;
}

.lbt-hf-action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
    animation: lbtActionShimmer 3s ease-in-out infinite;
}

.lbt-hf-action-btn:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.25);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    color: #ffffff;
    text-decoration: none;
}

.lbt-hf-action-btn-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    flex-shrink: 0;
    animation: lbtPulseGlow 2s ease-in-out infinite;
    position: relative;
}

.lbt-hf-action-btn-dot::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(34,197,94,0.25);
    animation: lbtPulseRing 2s ease-in-out infinite;
}

.lbt-hf-action-btn-icon {
    display: flex;
    align-items: center;
    opacity: 0.85;
}

.lbt-hf-action-btn-text {
    white-space: nowrap;
}

.lbt-hf-action-btn-status {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #4ade80;
    background: rgba(34,197,94,0.12);
    padding: 2px 6px;
    border-radius: 8px;
}

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

/* ===== FOOTER QUICKLINKS (compact action links in bottom bar) ===== */

.lbt-hf-footer-quicklinks {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 20px;
    padding: 10px 0 12px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    margin-bottom: 12px;
}

.lbt-hf-footer-ql-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.2s;
    white-space: nowrap;
}

.lbt-hf-footer-ql-item:hover {
    color: #ffffff;
    text-decoration: none;
}

.lbt-hf-footer-ql-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    flex-shrink: 0;
    animation: lbtPulseGlow 2s ease-in-out infinite;
}

.lbt-hf-footer-ql-text {
    /* inherits from parent */
}

.lbt-hf-footer-ql-badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #4ade80;
    background: rgba(34,197,94,0.12);
    padding: 1px 6px;
    border-radius: 8px;
}

@keyframes lbtActionShimmer {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

/* ===== RESPONSIVE: Tablet ===== */

@media (max-width: 1024px) {
    .lbt-hf-menu-link {
        padding: 0 14px;
        font-size: 13px;
    }

    .lbt-hf-mega-inner {
        padding: 28px 24px;
        gap: 32px;
    }

    .lbt-hf-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

/* ===== RESPONSIVE: Mobile ===== */

@media (max-width: 768px) {
    :root {
        --lbt-header-h: 56px;
    }

    /* Force fixed header on mobile */
    .lbt-hf-header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 99999 !important;
        transform: none !important;
    }

    .lbt-hf-container {
        padding: 0 16px;
        height: var(--lbt-header-h);
    }

    /* Hide desktop elements */
    .lbt-hf-desktop-only {
        display: none !important;
    }

    .lbt-hf-hamburger {
        display: flex;
    }

    /* Hide mega panels on mobile */
    .lbt-hf-mega {
        display: none !important;
    }

    /* Hide cart preview on mobile */
    .lbt-hf-cart-preview {
        display: none !important;
    }

    /* Action buttons: vertical stack on mobile */
    .lbt-hf-footer-actions-inner {
        flex-direction: column;
        gap: 10px;
    }

    .lbt-hf-action-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }

    /* Footer: single column */
    .lbt-hf-footer-container {
        padding: 0 16px;
    }

    .lbt-hf-footer-main {
        padding: 28px 0 18px;
    }

    .lbt-hf-footer-grid {
        grid-template-columns: 1fr !important;
        gap: 24px;
    }

    .lbt-hf-footer-heading {
        font-size: 14px;
        margin-bottom: 14px;
        padding-bottom: 10px;
    }

    .lbt-hf-newsletter-row {
        flex-direction: column;
        border-radius: 10px;
        gap: 0;
    }

    .lbt-hf-newsletter-row input {
        border-radius: 10px 10px 0 0;
        padding: 14px 16px;
    }

    .lbt-hf-newsletter-row button {
        border-radius: 0 0 10px 10px;
        padding: 14px;
    }

    /* Footer bottom: stack vertically */
    .lbt-hf-footer-bottom {
        padding: 12px 0;
    }

    .lbt-hf-footer-bottom-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 14px;
    }

    .lbt-hf-footer-copyright {
        order: 4;
    }

    .lbt-hf-footer-legal {
        flex-wrap: wrap;
        gap: 12px;
        justify-content: center;
        order: 3;
    }

    .lbt-hf-footer-social {
        gap: 10px;
        justify-content: center;
        order: 1;
    }

    .lbt-hf-footer-payments {
        flex-wrap: wrap;
        gap: 6px;
        justify-content: center;
        order: 2;
    }
}

@media (max-width: 480px) {
    .lbt-hf-logo-text {
        font-size: 17px;
    }

    .lbt-hf-footer-social a {
        width: 34px;
        height: 34px;
        font-size: 15px;
    }

    .lbt-hf-payment {
        width: 38px;
        height: 26px;
        font-size: 14px;
    }
}

/* ===== DESKTOP-ONLY VISIBILITY ===== */

@media (min-width: 769px) {
    .lbt-hf-desktop-only {
        display: flex !important;
    }

    .lbt-hf-hamburger {
        display: none !important;
    }

    .lbt-hf-mobile-overlay,
    .lbt-hf-mobile-panel {
        display: none !important;
    }
}
