/* ============================================================
   TOP BAR
   ============================================================ */

.top-bar {
    height: 36px;
    background: #222;
    display: flex;
    align-items: center;
}

.top-bar-inner {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-bar-icon {
    width: 22px;
    height: 22px;
    margin-right: 8px;
    color: #fff;
    flex-shrink: 0;
}

.top-bar-icon path {
    fill: #fff;
}

.top-bar-text {
    color: #F5E7D7;
    font-size: 14px;
    font-family: Montserrat, sans-serif;
}




/* ============================================================
   HEADER (FIXED STICKY) — FIXED VERSION
   ============================================================ */

/* container */
.lp-container2 {
    max-width: 1200px;
    margin: 0 auto;
}

.lp-site-header {
    position: relative;
}

/* INNER CONTAINER */
.lp-header-inner {
    height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;

    background: #fff;
    position: relative;
    z-index: 1000;

    max-width: 1200px;
    width: 100%;
    margin: 0 auto;

    
    box-sizing: border-box;
}

/* HEADER BAR */
.lp-header-bar {
    position: relative;

    width: 100%;
    max-width: 100%;

    margin: 0 auto;

    background: #fff;
    box-sizing: border-box;
}

/* STICKY STATE */
.lp-header-bar.is-sticky {
    position: fixed;

    top: 0;
    left: 0;
    right: 0;

    width: 100%; /* ✅ THIS is the correct one */

    z-index: 1500;
    background: #fff;
}

/* prevents content jump when sticky activates */
.lp-sticky-spacer {
    height: 84px;
    display: none;
}

.lp-header-bar.is-sticky ~ .lp-sticky-spacer {
    display: block;
}

/* ============================================================
   MOBILE FIX (CRITICAL)
   ============================================================ */

@media (max-width: 1024px) {

    .lp-header-inner {
        max-width: 100%;
        padding: 0 12px;
    }

}

/* ============================================================
   ICON BUTTON SYSTEM (BASE)
   ============================================================ */

.lp-icon-btn {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    background: #fff;

    cursor: pointer;
    text-decoration: none;

    transition: all 0.2s ease;

    color: #000;
}

/* ============================================================
   SVG NORMALIZATION (CRITICAL FIX)
   ============================================================ */

.lp-icon-btn svg {
    width: 21px;
    height: 21px;
    display: block;
}

/* Make SVG follow text color */
.lp-icon-btn svg path {
    fill: currentColor;
    stroke: currentColor;
    transition: all 0.2s ease;
}

/* ============================================================
   ACCOUNT vs CART SPACING DIFFERENCE
   ============================================================ */

.lp-icon-cart {
    position: relative;
}
.lp-icon-cart svg {
    width: 24px;
    height: 24px;
}

.lp-cart-count {
    position: absolute;
    top: 2px;
    right: 2px;

    width: 16px;
    height: 16px;

    background: #d9534f;
    color: #fff;

    font-size: 10px;
    font-weight: 600;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    line-height: 1;
}

/* ============================================================
   HOVER EFFECT (BLACK ↔ WHITE INVERT)
   ============================================================ */

.lp-icon-btn:hover {
    background: #000;
    color: #fff;
}

/* ============================================================
   ALIGNMENT FIX FOR HEADER ROW
   ============================================================ */

.lp-header-actions {
    display: flex;
    align-items: center;
    /*gap: 10px;*/
}

/* IMPORTANT: remove baseline weirdness */
.lp-icon-btn svg,
.lp-icon-btn path {
    transform-origin: center;
}


/* Logo */
.logo img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

/* ============================================================
   MAIN NAVIGATION
   ============================================================ */

.lp-header-nav {
    display: flex;
}

.lp-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* LEVEL 1 (MAIN CATEGORIES) */
.lp-menu > li {
    position: relative;
}

.lp-menu > li > a {
    display: flex;
    align-items: center;
    height: 50px;
    padding: 0 15px;

    font-family: "Roboto Slab", sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 27px;

    color: #000;
    text-decoration: none;
}

.lp-menu > li:hover > a {
    background: #f5f5f5;
}

/* ============================================================
   DROPDOWN BASE (LEVEL 2 + LEVEL 3 SAME ANIMATION)
   ============================================================ */

.lp-menu .sub-menu {
    position: absolute;
    top: 50px;
    left: 0;

    min-width: 220px;
    padding: 15px 0;

    background: rgb(244, 244, 244);
    border: 1px solid rgb(218, 218, 218);
    box-shadow: 0px 10px 30px rgba(45, 45, 45, 0.2);

    opacity: 0;
    pointer-events: none;

    /* SAME ANIMATION FOR ALL LEVELS */
    transform: translateY(-10px);
    transition: all 0.3s ease;

    list-style: none;
    margin: 0;
}


/* SHOW (LEVEL 2) */
.lp-menu > li:hover > .sub-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* SUB ITEMS */
.lp-menu .sub-menu li {
    position: relative;
}

.lp-menu .sub-menu li a {
        display: flex;
    justify-content: start;
    align-items: center;
    
    padding: 8px 16px;

    font-family: Hind, sans-serif;
    font-size: 14px;
    color: rgb(74, 74, 74);
    text-decoration: none;
}

.lp-menu .sub-menu li:hover > a {
    background: #eaeaea;
}

/* ============================================================
   LEVEL 3 (NOW SAME TOP-DOWN ANIMATION)
   ============================================================ */

.lp-menu .sub-menu .sub-menu {
    top: 0;
    left: 100%;

    /* SAME animation as level 2 */
    transform: translateY(-10px);
}

/* SHOW LEVEL 3 */
.lp-menu .sub-menu li:hover > .sub-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* ============================================================
   MEGA MENU
   ============================================================ */

.lp-menu > li.mega-menu {
    position: static;
}

.lp-menu > li.mega-menu > .sub-menu {
    width: 100%;
    left: 0;
    right: 0;

    display: flex;
    gap: 40px;
    padding: 30px;

    min-width: unset;
}

/* Mega columns */
.lp-menu > li.mega-menu > .sub-menu > li {
    flex: 1;
}

/* Mega titles */
.lp-menu > li.mega-menu .sub-menu > li > a {
    font-weight: 600;
    margin-bottom: 10px;
}

/* ============================================================
   ARROWS (CLOSER + CLEANER)
   ============================================================ */

.lp-menu li.menu-item-has-children > a::after {
    content: "";
    display: inline-block;

    width: 13px;
    height: 13px;

    margin-left: 4px; /* 👈 closer */
    transform: translateY(1px);

    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 7L10 12L15 7' stroke='%23101010' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}
/* ============================================================
   MOBILE
   ============================================================ */
/* ============================================================
   MOBILE OFFCANVAS MENU (CLEAN HIERARCHY SYSTEM - FINAL FIX)
   ============================================================ */

/* OVERLAY */
.lp-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);

    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;

    z-index: 3000;
}

.lp-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ============================================================
   SIDE MENU CONTAINER
   ============================================================ */

.lp-mobile-menu {
    position: fixed;
    top: 0;
    left: -350px;

    width: 350px;
    max-width: 90%;
    height: 100%;

    background: #fff;
    overflow-y: auto;

    transition: left 0.4s cubic-bezier(0.22, 0.61, 0.24, 1);
    z-index: 4000;
}

.lp-mobile-menu.active {
    left: 0;
}

/* ============================================================
   HEADER INSIDE MENU
   ============================================================ */

.lp-mobile-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;

    padding: 12px;
    border-bottom: 1px solid #eee;
}

/* CLOSE BUTTON */
.lp-mobile-close {
    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #fff;
    border: 1px solid rgba(0,0,0,0.5);
    border-radius: 4px;

    font-size: 16px;
    line-height: 1;
    color: #333;

    cursor: pointer;
}

/* ============================================================
   MENU STRUCTURE
   ============================================================ */

.lp-mobile-menu .lp-menu {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
}

/* BASE ITEM */
.lp-mobile-menu li {
    position: relative;
    list-style: none;
    display: flex;     
    flex-direction: column; 
}

/* TOP LEVEL LINKS */
.lp-mobile-menu .lp-menu > li > a {
    display: flex;
    justify-content: space-between;
    align-items: center;

    min-height: 50px;
    padding: 0 16px;
    border-bottom: 1px solid #eee;

    font-family: "Roboto Slab", sans-serif;
    font-size: 15px;
    color: #000;
    text-decoration: none;
}

/* ============================================================
   SUBMENU (NO INDENT SHIFT - CLEAN STACK)
   ============================================================ */

.lp-mobile-menu .sub-menu {
    max-height: 0;
    overflow: hidden;

    transition: max-height 0.35s ease;

    background: #f7f7f7;

    padding: 0;
    margin: 0;
}

.lp-mobile-menu .sub-menu {
    will-change: max-height;
}

/* OPEN STATE */
.lp-mobile-menu li.open > .sub-menu {
    max-height: 1000px;
}

/* ============================================================
   SUB ITEMS (NO LEFT SHIFT EVER)
   ============================================================ */

.lp-mobile-menu .sub-menu a {
    min-height: 50px !important;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Hind, sans-serif;
    font-size: 14px;
    color: #000;
    background: #f7f7f7;
    text-decoration: none;
    border-bottom: 1px solid #eee;
}

/* deeper level visual only (NO indentation shift) */
.lp-mobile-menu .sub-menu .sub-menu a {
    color: #000;
    background: #dddcdc;
    
}

/* ============================================================
   ARROW BUTTON (ONLY ONE SOURCE OF TRUTH)
   ============================================================ */

/* REMOVE ANY CSS ARROW */
.lp-mobile-menu .menu-item-has-children > a::after {
    display: none !important;
}

.lp-submenu-toggle {
    position: absolute;
    right: 15px;
    top: 5px;

    width: 40px;
    height: 40px;

    border: 1px solid #000 !important;
    border-radius: 50%;
    background-color: #fff;

    cursor: pointer;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: center;

    /* REMOVE TEXT ARROW */
    font-size: 0;
}

.lp-submenu-toggle::before {
    content: "";
    width: 14px;
    height: 14px;

    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 8L10 13L15 8' stroke='black' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E");

    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.lp-mobile-menu li {
    position: relative;
}

/* ensure click area clean */
.lp-mobile-menu .menu-item-has-children > a {
    position: relative;
    padding-right: 50px;
}

/* ============================================================
   CLEAN TOUCH BEHAVIOR
   ============================================================ */

.lp-mobile-menu a {
    -webkit-tap-highlight-color: transparent;
}

.lp-mobile-menu .sub-menu {
    will-change: max-height;
}

/* ============================================================
   OPTIONAL: HIERARCHY VISUAL (NO LAYOUT SHIFT)
   ============================================================ */

/* subtle visual indentation via background line, NOT padding */
.lp-mobile-menu .sub-menu li {
    position: relative;
}



.lp-menu-toggle {
    display: none;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
}

/* Tablet - Mobile */
@media (max-width: 1024px) {
    .lp-header-nav {
        gap: 16px;
    }
    
        .lp-header-inner {
        height: 80px;
    }

    .logo img {
        width: 50px;
        height: 50px;
    }

    .lp-header-nav {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
        border-top: 1px solid #eee;
    }

    .lp-header-nav.active {
        display: flex;
    }

    .lp-menu {
        flex-direction: column;
    }

    .lp-menu > li > a {
        height: auto;
        padding: 15px;
        border-bottom: 1px solid #eee;
    }

    .lp-menu .sub-menu {
        position: static;
        opacity: 1;
        pointer-events: auto;
        transform: none;
        box-shadow: none;
        border: none;
    }

    .lp-menu-toggle {
        display: block;
    }
}
