/* ==========================================================================
   LVMR PREMIUM HEADER REDESIGN - COURSELOG STYLE
   ========================================================================== */

/* Design Tokens & Reset Base */
:root {
    --lvmr-primary: #2b59ff;
    --lvmr-primary-hover: #1844e6;
    --lvmr-dark: #0b0c26;
    --lvmr-text-main: #1a1b3d;
    --lvmr-text-muted: #5e6282;
    --lvmr-bg-light: #f4f5fa;
    --lvmr-border-light: #eef0f6;
    --lvmr-gold: #ffb606;
}

/* Base body tweaks to prevent layout shift */
body {
    margin: 0;
}

/* --- 1. TOP ANNOUNCEMENT BAR --- */
#lvmr-top-bar {
    width: 100%;
    background-color: var(--lvmr-dark);
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.5;
    box-sizing: border-box;
    z-index: 9998; /* just below header wrapper */
    position: relative;
    font-family: var(--lvmr-menu-font-family, 'Inter', sans-serif);
    padding: 12px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.lvmr-top-bar-inner {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.lvmr-top-bar-left {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

/* Top bar shortcode widget (e.g. GTranslate) */
.lvmr-topbar-shortcode {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.lvmr-topbar-divider {
    display: inline-block;
    width: 1px;
    height: 14px;
    background: rgba(255, 255, 255, 0.3);
    margin: 0 10px;
    vertical-align: middle;
    flex-shrink: 0;
}

.lvmr-topbar-divider--cta {
    display: none;
}

.lvmr-topbar-ctas {
    display: none;
    align-items: center;
    gap: 12px;
}

.lvmr-topbar-cta {
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.25s ease;
    white-space: nowrap;
    font-family: var(--lvmr-menu-font-family, 'Inter', sans-serif);
}

.lvmr-topbar-cta--text {
    color: #ffffff;
    padding: 6px 8px;
}

.lvmr-topbar-cta--text:hover {
    color: var(--lvmr-gold);
}

.lvmr-topbar-cta--btn {
    background-color: var(--lvmr-cta-bg, #f25260);
    color: #ffffff !important;
    padding: 6px 14px;
    box-shadow: 0 2px 6px rgba(242, 82, 96, 0.2);
}

.lvmr-topbar-cta--btn:hover {
    background-color: var(--lvmr-cta-bg-hover, #e04150);
    transform: translateY(-1px);
}

.lvmr-topbar-link {
    color: var(--lvmr-gold);
    font-weight: 600;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.lvmr-topbar-link:hover {
    color: #ffffff;
    text-decoration: none;
}

.lvmr-top-bar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.lvmr-social-icon {
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.lvmr-social-icon:hover {
    color: var(--lvmr-gold);
    transform: translateY(-2px);
}

.lvmr-social-icon svg {
    display: block;
}


/* --- 2. MAIN HEADER WRAPPER --- */
/* The wrapper acts as a placeholder to prevent layout jump when header goes fixed */
#lvmr-header-wrapper {
    position: relative;
    width: 100%;
    z-index: 9999;
}

/* --- 3. MAIN HEADER ELEMENT --- */
#lvmr-header {
    width: 100%;
    position: relative;
    z-index: 9999;
    box-sizing: border-box;
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

/* JS adds this class when user scrolls past the header — switches to fixed */
#lvmr-header.is-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
}

/* Admin bar offset when header is fixed */
body.admin-bar #lvmr-header.is-fixed {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar #lvmr-header.is-fixed {
        top: 46px;
    }
}

/* On very small screens WP admin bar scrolls away — no offset needed */
@media screen and (max-width: 600px) {
    body.admin-bar #lvmr-header.is-fixed {
        top: 0;
    }
}

/* Scrolled state — shadow appears after user scrolls */
#lvmr-header.scrolled {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

#lvmr-header.scrolled .lvmr-header-container {
    border-radius: 0;
    box-shadow: none;
    border-bottom: 1px solid var(--lvmr-border-light);
}

.lvmr-header-container {
    width: 100%;
    background: var(--lvmr-header-bg, #ffffff);
    height: var(--lvmr-header-height, 86px);
    transition: all 0.3s ease;
    border-bottom: 1px solid #f0f0f5;
    box-sizing: border-box;
}

.lvmr-header-inner {
    max-width: 1440px;
    width: 100%;
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--lvmr-header-padding, 30px);
    position: relative;
    box-sizing: border-box;
}


/* --- 3. LEFT PORTION (Logo, Categories, Search) --- */
.lvmr-header-left {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-shrink: 0;
}

.lvmr-logo {
    display: flex;
    align-items: center;
    line-height: 0;
    white-space: nowrap;
    max-height: 100%;
}

.lvmr-logo a {
    display: flex;
    align-items: center;
    max-height: 100%;
}

.lvmr-logo img {
    display: block;
    width: var(--lvmr-header-logo-w, 150px);
    max-width: 100%;
    max-height: calc(var(--lvmr-header-height, 86px) - 16px);
    height: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

.lvmr-logo h1 {
    margin: 0;
    font-size: 26px;
    font-weight: 800;
    color: var(--lvmr-dark);
}

.lvmr-logo h1 a {
    text-decoration: none;
    color: var(--lvmr-dark);
    width: auto;
}

/* Category Dropdown Styling */
.lvmr-categories-wrap {
    position: relative;
}

.lvmr-categories-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: var(--lvmr-menu-font-family, 'Inter', sans-serif);
    font-size: 15px;
    font-weight: 600;
    color: var(--lvmr-primary);
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 0;
    transition: color 0.3s ease;
}

.lvmr-categories-btn:hover {
    color: var(--lvmr-primary-hover);
}

.lvmr-categories-btn .lvmr-chevron {
    transition: transform 0.3s ease;
}

.lvmr-categories-btn.is-active .lvmr-chevron {
    transform: rotate(180deg);
}

.lvmr-categories-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    z-index: 1000;
    width: 230px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--lvmr-border-light);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lvmr-categories-dropdown.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lvmr-categories-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.lvmr-categories-menu-list li a {
    display: block;
    padding: 11px 22px;
    font-family: var(--lvmr-menu-font-family, 'Inter', sans-serif);
    font-size: 14px;
    font-weight: 500;
    color: var(--lvmr-text-main);
    text-decoration: none;
    transition: all 0.25s ease;
}

.lvmr-categories-menu-list li a:hover {
    background: var(--lvmr-bg-light);
    color: var(--lvmr-primary);
    padding-left: 26px;
}

/* Pill Search Bar */
.lvmr-search-form-wrap {
    width: 330px;
    box-sizing: border-box;
}

.lvmr-search-form {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    background-color: #ffffff;
    border: 1px solid #e8eefc;
    border-radius: 50px;
    padding: 3px;
    box-sizing: border-box;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lvmr-search-form:focus-within {
    border-color: var(--lvmr-primary);
    box-shadow: 0 5px 20px rgba(43, 89, 255, 0.08);
}

.lvmr-search-field {
    width: 100%;
    background-color: transparent;
    border: none !important;
    box-shadow: none !important;
    padding: 8px 50px 8px 20px;
    font-family: var(--lvmr-menu-font-family, 'Inter', sans-serif);
    font-size: 14.5px;
    font-weight: 500;
    color: var(--lvmr-text-main);
    box-sizing: border-box;
}

.lvmr-search-field::placeholder {
    color: #5e6282;
    opacity: 0.8;
}

.lvmr-search-field:focus {
    outline: none;
}

.lvmr-search-submit {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--lvmr-primary, #2b59ff);
    border: none;
    cursor: pointer;
    color: #ffffff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.lvmr-search-submit:hover {
    background-color: var(--lvmr-primary-hover, #1844e6);
    transform: translateY(-50%) scale(1.05);
}


/* --- 4. RIGHT PORTION (Primary Nav, CTA Button, Account, Cart) --- */
.lvmr-header-right {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-shrink: 0;
}

/* Desktop Primary Nav */
.lvmr-nav-primary {
    display: flex;
    align-items: center;
}

.lvmr-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
}

.lvmr-menu li {
    position: relative;
}

.lvmr-menu li a {
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    font-family: var(--lvmr-menu-font-family, 'Inter', sans-serif);
    color: var(--lvmr-menu-link-color, #1a1b3d);
    font-size: 15px;
    font-weight: 600;
    text-transform: var(--lvmr-menu-text-transform, capitalize);
    letter-spacing: var(--lvmr-menu-letter-spacing, 0px);
    transition: color 0.3s ease;
    white-space: nowrap;
    padding: 15px 0;
}

.lvmr-menu li a:hover {
    color: var(--lvmr-menu-hover-color, var(--lvmr-primary));
}

/* Auto Sub-menu Chevrons in Desktop */
.lvmr-menu li.menu-item-has-children > a::after {
    content: "";
    width: 6px;
    height: 6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    display: inline-block;
    transition: transform 0.3s ease;
    margin-left: 2px;
}

.lvmr-menu li.menu-item-has-children:hover > a::after {
    transform: rotate(-135deg) translateY(0);
}

/* Sub-menus dropdown style */
.lvmr-menu li .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--lvmr-border-light);
    padding: 10px 0;
    list-style: none;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.lvmr-menu li .sub-menu li a {
    display: block;
    padding: 10px 20px;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--lvmr-text-main);
}

.lvmr-menu li .sub-menu li a::after {
    display: none !important;
}

.lvmr-menu li .sub-menu li a:hover {
    background: var(--lvmr-bg-light);
    color: var(--lvmr-primary);
    padding-left: 24px;
}

/* Coral Try for free CTA Button */
.lvmr-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--lvmr-cta-bg, #f25260);
    color: var(--lvmr-cta-color, #ffffff) !important;
    padding: 14px 28px;
    font-family: var(--lvmr-menu-font-family, 'Inter', sans-serif);
    font-size: 15px;
    font-weight: 700;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(242, 82, 96, 0.15);
}

.lvmr-cta-btn:hover {
    background-color: var(--lvmr-cta-bg-hover, #e04150);
    color: var(--lvmr-cta-color-hover, #ffffff) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.lvmr-cta-btn:active {
    transform: translateY(-0.5px);
}

/* Text-only CTA button (no background, text color only) */
.lvmr-cta-btn--text {
    background-color: transparent !important;
    box-shadow: none !important;
    color: var(--lvmr-cta2-color, #1a1b3d) !important;
    padding: 14px 12px;
    font-weight: 600;
    font-size: 15px;
    border-radius: 6px;
    gap: 0;
}

.lvmr-cta-btn--text:hover {
    background-color: transparent !important;
    box-shadow: none !important;
    color: var(--lvmr-cta2-hover-color, #2b59ff) !important;
    transform: translateY(-1px);
}

.lvmr-cta-btn .lvmr-arrow {
    transition: transform 0.3s ease;
}

.lvmr-cta-btn:hover .lvmr-arrow {
    transform: translateX(4px);
}

/* Utilities Circle Icons (Account, Cart) */
.lvmr-header-utilities {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lvmr-header-shortcode-wrap {
    display: inline-flex;
    align-items: center;
}

.lvmr-utility-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #ffffff;
    border: 1px solid var(--lvmr-border-light);
    color: var(--lvmr-text-main);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.02);
    cursor: pointer;
    text-decoration: none;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lvmr-utility-circle:hover {
    color: var(--lvmr-primary);
    border-color: var(--lvmr-primary);
    box-shadow: 0 5px 15px rgba(43, 89, 255, 0.1);
    transform: translateY(-1.5px);
}

.lvmr-cart-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lvmr-cart-count {
    position: absolute;
    top: -12px;
    right: -12px;
    background: var(--lvmr-cart-badge-color, #2b59ff);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}


/* --- 5. OFFCANVAS CART PANEL & DRAWERS --- */
.lvmr-cart-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 360px;
    max-width: 100vw;
    height: 100vh;
    background: #ffffff;
    z-index: 100000;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.05);
    transform: translateX(100%);
    transition: transform 0.45s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex;
    flex-direction: column;
    visibility: hidden;
}

.lvmr-cart-panel.is-active {
    transform: translateX(0);
    visibility: visible;
}

.lvmr-cart-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 12, 38, 0.4);
    backdrop-filter: blur(4px);
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lvmr-cart-backdrop.is-active {
    opacity: 1;
    visibility: visible;
}

.lvmr-cart-panel-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.lvmr-cart-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px;
    border-bottom: 1px solid var(--lvmr-border-light);
}

.lvmr-cart-panel-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--lvmr-dark);
}

.lvmr-panel-count {
    font-size: 14.5px;
    font-weight: 500;
    color: var(--lvmr-text-muted);
}

.lvmr-cart-panel-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--lvmr-text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    opacity: 0.6;
    transition: all 0.25s ease;
}

.lvmr-cart-panel-close:hover {
    opacity: 1;
    color: var(--lvmr-primary);
}

.lvmr-cart-panel-items {
    flex: 1;
    overflow-y: auto;
    padding: 24px 28px;
}

.lvmr-cart-empty {
    text-align: center;
    padding: 60px 0;
    color: var(--lvmr-text-muted);
}

.lvmr-cart-empty p {
    margin: 15px 0 25px;
    font-size: 15px;
}

.lvmr-cart-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 22px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--lvmr-border-light);
    position: relative;
}

.lvmr-cart-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.lvmr-cart-item-img img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
}

.lvmr-cart-item-info {
    flex: 1;
}

.lvmr-cart-item-name {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--lvmr-text-main);
    margin-bottom: 4px;
    line-height: 1.4;
}

.lvmr-cart-item-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
}

.lvmr-cart-item-qty {
    color: var(--lvmr-text-muted);
}

.lvmr-cart-item-price {
    font-weight: 700;
    color: var(--lvmr-primary);
}

.lvmr-cart-item-remove {
    color: #ff3344;
    opacity: 0.6;
    transition: opacity 0.25s ease;
    padding: 5px;
    align-self: flex-start;
}

.lvmr-cart-item-remove:hover {
    opacity: 1;
}

.lvmr-cart-panel-footer {
    padding: 24px 28px;
    border-top: 1px solid var(--lvmr-border-light);
    background: #fafbfe;
}

.lvmr-cart-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    margin-bottom: 22px;
    color: var(--lvmr-text-main);
}

.lvmr-cart-subtotal strong {
    font-size: 18px;
    font-weight: 800;
    color: var(--lvmr-dark);
}

.lvmr-cart-panel-actions {
    display: flex;
    gap: 12px;
    flex-direction: column;
}

.lvmr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lvmr-btn-primary {
    background: var(--lvmr-primary);
    color: #fff;
}

.lvmr-btn-primary:hover {
    background: var(--lvmr-primary-hover);
    transform: translateY(-1.5px);
}

.lvmr-btn-outline {
    border: 1.5px solid var(--lvmr-border-light);
    background: #ffffff;
    color: var(--lvmr-text-main);
}

.lvmr-btn-outline:hover {
    border-color: var(--lvmr-primary);
    color: var(--lvmr-primary);
}


/* ==========================================================================
   RESPONSIVE NAVIGATION & HAMBURGER
   ========================================================================== */

/* ── HAMBURGER TRIGGER (Hidden on Desktop) ── */
.lvmr-mobile-left-wrap {
    display: none;
}

.lvmr-mobile-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10001;
    padding: 10px;
    margin: 0;
}

.lvmr-mobile-toggle.is-active {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.lvmr-mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--lvmr-text-main);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}


/* ==========================================================================
   BREAKPOINT — 1280px (Large Laptop / Small Desktop)
   Slightly reduce gaps and search bar width.
   ========================================================================== */
@media (max-width: 1280px) {
    .lvmr-header-left {
        gap: 18px;
    }
    .lvmr-header-right {
        gap: 20px;
    }
    .lvmr-search-form-wrap {
        width: 260px;
    }
    .lvmr-menu {
        gap: 22px;
    }
}


/* ==========================================================================
   BREAKPOINT — 1100px (Tablet Landscape)
   Collapse search into icon, reduce categories label.
   ========================================================================== */
@media (max-width: 1100px) {
    .lvmr-header-left {
        gap: 14px;
    }
    .lvmr-header-right {
        gap: 14px;
    }
    .lvmr-search-form-wrap {
        width: 220px;
    }
    .lvmr-menu {
        gap: 18px;
    }
    .lvmr-cta-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
}


/* ==========================================================================
   BREAKPOINT — 960px (Tablet Portrait / Switch to Mobile Nav)
   Hide desktop nav & search, show hamburger.
   ========================================================================== */
@media (max-width: 960px) {

    /* Top bar — compact, GTranslate & CTAs visible, social hidden */
    #lvmr-top-bar {
        padding: 8px 20px;
        font-size: 12px;
    }
    .lvmr-top-bar-inner {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
    }
    .lvmr-top-bar-left {
        flex: 1 1 auto;
        justify-content: flex-start;
        text-align: left;
        width: auto;
    }
    .lvmr-top-bar-right {
        display: flex;
        flex: 0 0 auto;
        align-items: center;
        gap: 15px;
    }
    .lvmr-topbar-ctas {
        display: inline-flex;
    }
    .lvmr-topbar-divider--cta {
        display: inline-block;
    }
    .lvmr-social-icon,
    .lvmr-topbar-divider--social {
        display: none !important;
    }

    /* Header height */
    .lvmr-header-container {
        height: var(--lvmr-header-height-tablet, 74px);
    }

    /* Remove outer padding */
    #lvmr-header {
        padding: 0;
    }

    /* Show hamburger in the left slot */
    .lvmr-mobile-left-wrap {
        display: flex;
        align-items: center;
        flex-shrink: 0;
    }

    /* Normal layout flow (not absolute centering) for logo + search on mobile */
    .lvmr-header-left {
        position: static;
        transform: none;
        pointer-events: auto;
        display: flex;
        align-items: center;
        gap: 15px;
        flex: 1;
        margin: 0 15px;
        justify-content: flex-start;
    }
    .lvmr-logo {
        pointer-events: all;
        flex-shrink: 0;
    }
    .lvmr-logo a {
        display: flex;
        align-items: center;
    }
    .lvmr-logo img {
        width: var(--lvmr-header-logo-w-tablet, 120px) !important;
        max-height: calc(var(--lvmr-header-height-tablet, 74px) - 12px) !important;
        height: auto !important;
    }

    /* Hide desktop-only sections */
    .lvmr-header-left .lvmr-categories-wrap,
    .lvmr-header-right .lvmr-nav-primary,
    .lvmr-header-right .lvmr-cta-btn,
    .lvmr-header-right .lvmr-cta-btn--text {
        display: none !important;
    }

    /* Keep Search Form Wrap visible on mobile/tablet */
    .lvmr-header-left .lvmr-search-form-wrap {
        display: block !important;
        flex: 1;
        max-width: 300px;
    }
    .lvmr-search-form {
        height: 38px;
    }
    .lvmr-search-field {
        padding: 6px 40px 6px 15px;
        font-size: 13px;
    }
    .lvmr-search-submit {
        width: 30px;
        height: 30px;
    }

    /* Right utilities compact */
    .lvmr-header-right {
        gap: 8px;
        flex-shrink: 0;
    }

    /* Utility circles */
    .lvmr-utility-circle {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 600px) {
    .lvmr-top-bar-inner {
        flex-direction: column;
        text-align: center;
    }
    .lvmr-top-bar-left {
        justify-content: center;
        text-align: center;
    }
    .lvmr-top-bar-right {
        justify-content: center;
        width: 100%;
        gap: 10px;
        flex-wrap: wrap;
    }
}


/* ==========================================================================
   BREAKPOINT — 768px (Mobile Standard)
   ========================================================================== */
@media (max-width: 768px) {

    /* Top bar — single-line, fully hidden on very small or show minimal */
    #lvmr-top-bar {
        padding: 8px 15px;
        font-size: 12px;
    }

    /* Header smaller */
    .lvmr-header-container {
        height: var(--lvmr-header-height-mobile, 64px);
    }

    .lvmr-header-inner {
        padding: 0 15px;
    }

    /* Logo even smaller */
    .lvmr-logo a,
    .lvmr-logo img {
        width: var(--lvmr-header-logo-w-mobile, 100px) !important;
        max-height: calc(var(--lvmr-header-height-mobile, 64px) - 8px) !important;
        height: auto !important;
    }

    /* Search Form Wrap on mobile/tablet smaller gaps */
    .lvmr-header-left {
        gap: 10px;
        margin: 0 8px;
    }
    .lvmr-header-left .lvmr-search-form-wrap {
        max-width: none;
    }

    /* Utility icons tighter */
    .lvmr-utility-circle {
        width: 36px;
        height: 36px;
    }
    .lvmr-utility-circle svg {
        width: 16px;
        height: 16px;
    }
    .lvmr-header-right {
        gap: 6px;
    }
    .lvmr-cart-count {
        font-size: 9px;
        min-width: 16px;
        height: 16px;
        top: -10px;
        right: -10px;
    }
}


/* ==========================================================================
   BREAKPOINT — 480px (Small Mobile)
   ========================================================================== */
@media (max-width: 480px) {

    /* Keep top bar visible for GTranslate and CTAs */
    #lvmr-top-bar {
        display: block;
        padding: 6px 12px;
    }

    .lvmr-header-container {
        height: 58px;
    }

    .lvmr-header-inner {
        padding: 0 12px;
    }

    .lvmr-logo a,
    .lvmr-logo img {
        width: var(--lvmr-header-logo-w-mobile, 90px) !important;
        max-width: 110px !important;
        max-height: calc(58px - 8px) !important;
        height: auto !important;
    }

    /* Only show account icon, hide cart on tiny screens */
    .lvmr-header-utilities .lvmr-cart-wrap {
        display: none;
    }

    .lvmr-utility-circle {
        width: 34px;
        height: 34px;
    }
    .lvmr-utility-circle svg {
        width: 15px;
        height: 15px;
    }

    .lvmr-mobile-toggle span {
        width: 20px;
    }
}


/* ==========================================================================
   BREAKPOINT — 360px (Very Small Mobile / Old Devices)
   ========================================================================== */
@media (max-width: 360px) {

    .lvmr-header-container {
        height: 54px;
    }

    .lvmr-header-inner {
        padding: 0 10px;
    }

    .lvmr-logo a,
    .lvmr-logo img {
        width: 80px !important;
        max-width: 90px !important;
        max-height: calc(54px - 6px) !important;
        height: auto !important;
    }

    .lvmr-header-utilities {
        gap: 6px;
    }
}


/* ==========================================================================
   MOBILE FULLSCREEN OVERLAY MENU
   ========================================================================== */
.lvmr-mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: 10000;
    transform: translateX(-100%);
    transition: transform 0.45s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    visibility: hidden;
    overflow: hidden;
}

.lvmr-mobile-overlay.is-active {
    transform: translateX(0);
    visibility: visible;
}

/* Close / X button in overlay */
.lvmr-mobile-overlay-close {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 18px 20px 0;
    flex-shrink: 0;
}

.lvmr-mobile-overlay-close button {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--lvmr-text-main);
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.lvmr-mobile-overlay-close button:hover {
    background: var(--lvmr-bg-light);
}

.lvmr-mobile-content {
    width: 100%;
    flex: 1;
    overflow-y: auto;
    padding: 28px 28px 40px;
    box-sizing: border-box;
}

/* Mobile search bar — full width */
.lvmr-mobile-search {
    margin-bottom: 28px;
}

.lvmr-mobile-search .lvmr-search-form-wrap,
.lvmr-mobile-search .lvmr-search-form {
    width: 100%;
}

.lvmr-mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.lvmr-mobile-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.lvmr-mobile-menu li {
    position: relative;
    width: 100%;
    border-bottom: 1px solid var(--lvmr-border-light);
}

.lvmr-mobile-menu li:first-child {
    border-top: 1px solid var(--lvmr-border-light);
}

.lvmr-mobile-menu > li > a {
    font-family: var(--lvmr-menu-font-family, 'Inter', sans-serif);
    font-size: 17px;
    text-decoration: none;
    color: var(--lvmr-text-main);
    font-weight: 700;
    display: block;
    padding: 16px 0;
    transition: color 0.25s ease, padding-left 0.25s ease;
}

.lvmr-mobile-menu > li > a:hover {
    color: var(--lvmr-primary);
    padding-left: 6px;
}

/* Mobile sub-menus */
.lvmr-mobile-menu .sub-menu {
    list-style: none;
    padding: 0 0 10px 16px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    border-left: 3px solid var(--lvmr-primary);
    margin-left: 6px;
}

.lvmr-mobile-menu .sub-menu li {
    border-bottom: none;
}

.lvmr-mobile-menu .sub-menu li:first-child {
    border-top: none;
}

.lvmr-mobile-menu .sub-menu li a {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--lvmr-text-muted);
    padding: 9px 0;
    display: block;
    transition: color 0.2s ease;
}

.lvmr-mobile-menu .sub-menu li a:hover {
    color: var(--lvmr-primary);
}

/* Mobile categories section */
.lvmr-mobile-section-title {
    font-family: var(--lvmr-menu-font-family, 'Inter', sans-serif);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--lvmr-text-muted);
    margin: 28px 0 12px;
    font-weight: 700;
}

.lvmr-mobile-categories {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-top: 1px solid var(--lvmr-border-light);
}

.lvmr-mobile-categories li {
    border-bottom: 1px solid var(--lvmr-border-light);
    border-right: 1px solid var(--lvmr-border-light);
}

.lvmr-mobile-categories li:nth-child(2n) {
    border-right: none;
}

.lvmr-mobile-categories li:first-child {
    border-top: none;
}

.lvmr-mobile-categories li a {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--lvmr-text-main);
    padding: 13px 12px;
    display: block;
    transition: all 0.2s ease;
    border: none !important;
}

.lvmr-mobile-categories li a:hover {
    background: var(--lvmr-bg-light);
    color: var(--lvmr-primary);
    padding-left: 12px;
}

/* Mobile CTA at the bottom of the overlay */
.lvmr-mobile-cta-wrap {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lvmr-mobile-cta-wrap .lvmr-cta-btn {
    width: 100%;
    justify-content: center;
    padding: 16px 24px;
    font-size: 15px;
    border-radius: 8px;
}


/* ==========================================================================
   GENERAL UTILITIES & NO-SCROLL
   ========================================================================== */
body.lvmr-no-scroll,
html.lvmr-no-scroll {
    overflow: hidden !important;
}

html {
    overflow-x: clip; /* clip instead of hidden — does NOT create a new scroll container so sticky still works */
}

body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}



/* Cart panel full-width on tiny screens */
@media (max-width: 480px) {
    .lvmr-cart-panel {
        width: 100%;
    }
}

/* END OF STYLESHEET */
