/*!
 * True Makeup Theme — Mobile slide-in menu
 *
 * Styles the off-canvas mobile drawer rendered by
 * views/partials/nav-responsive.twig. The legacy markup classes
 * (`.nav__inner`, `.sub-nav-links`, `.responsive-subnav`, etc.)
 * are retained because the open/close controller in the theme's
 * runtime script targets them directly — don't rename without
 * touching that code.
 *
 * Rules are heavy-handed (!important) because the drawer shares a
 * DOM with the header, so we have to beat the inherited masthead
 * styles when the panel is open.
 */

.nav-responsive {
    background: #fff !important;
    font-family: var(--font-primary) !important;
}
.nav-responsive .nav__inner {
    background: #fff !important;
    display: flex !important;
    flex-direction: column !important;
    min-height: 100% !important;
}

/* -------- Promo bar -------------------------------------------- */

.nav-resp-promo {
    background: #000 !important;
    padding: 10px 0 !important;
    text-align: center !important;
    flex-shrink: 0 !important;
}
.nav-resp-promo span {
    display: block !important;
    font-family: var(--font-primary) !important;
    font-size: 9px !important;
    letter-spacing: 0.2em !important;
    text-transform: uppercase !important;
    font-weight: 700 !important;
    color: #fff !important;
}

/* -------- Nav header (3-col grid) ------------------------------ *
 * Matches the desktop masthead: hamburger/back on the left, logo
 * or page title centred, search + cart icons right. Three headers
 * share this styling: the drawer root, level-1 panel header, and
 * level-2 panel header. */

.nav-responsive .nav__header,
.nav-responsive .responsive-subnav > header,
.nav-responsive .sub-level-2 > header {
    position: relative !important;
    z-index: 10 !important;
    display: grid !important;
    grid-template-columns: 1fr auto 1fr !important;
    align-items: center !important;
    padding: 12px 16px !important;
    background: #fff !important;
    border-bottom: none !important;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06) !important;
    flex-shrink: 0 !important;
}

.nav-responsive .nav__header > div,
.nav-responsive .responsive-subnav > header > div,
.nav-responsive .sub-level-2 > header > div                { width: auto !important; }
.nav-responsive .nav__header > div:first-child,
.nav-responsive .responsive-subnav > header > div:first-child,
.nav-responsive .sub-level-2 > header > div:first-child    { justify-self: start !important; }
.nav-responsive .nav__header > div:nth-child(2),
.nav-responsive .responsive-subnav > header > div:nth-child(2),
.nav-responsive .sub-level-2 > header > div:nth-child(2)   { justify-self: center !important; }
.nav-responsive .nav__header > div:last-child,
.nav-responsive .responsive-subnav > header > div:last-child,
.nav-responsive .sub-level-2 > header > div:last-child {
    justify-self: end !important;
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
}

.nav-responsive .nav__header img[alt="SOINVOGUE"],
.nav-responsive .responsive-subnav > header h3,
.nav-responsive .sub-level-2 > header h3 { height: 22px !important; }

.nav-responsive .responsive-subnav > header h3,
.nav-responsive .sub-level-2 > header h3 {
    margin: 0 !important;
    font-family: var(--font-primary) !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    color: #000 !important;
    line-height: 22px !important;
}

/* -------- Icon buttons ----------------------------------------- */

.nav-responsive .nav__header button,
.nav-responsive .responsive-subnav > header button,
.nav-responsive .sub-level-2 > header button {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    cursor: pointer !important;
    transition: transform 0.2s ease !important;
}
.nav-responsive .nav__header button:hover,
.nav-responsive .responsive-subnav > header button:hover,
.nav-responsive .sub-level-2 > header button:hover { transform: scale(1.2) !important; }

.nav-responsive .nav__header a.cart-link,
.nav-responsive .responsive-subnav > header a.cart-link,
.nav-responsive .sub-level-2 > header a.cart-link { transition: transform 0.2s ease !important; }
.nav-responsive .nav__header a.cart-link:hover    { transform: scale(1.2) !important; }

.nav-responsive .nav-resp-cart-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: #000;
    color: #fff;
    border-radius: 50%;
    font-family: var(--font-primary);
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
}

/* -------- Scroll container ------------------------------------- */

.nav-responsive__main {
    flex: 1 !important;
    overflow-y: auto !important;
}

/* -------- Link lists ------------------------------------------- */

.nav-responsive .sub-nav-links ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    flex-wrap: nowrap !important;
}
.nav-responsive .sub-nav-links li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    width: 100% !important;
    border-bottom: 1px solid #eaeaea !important;
}

.nav-responsive .sub-nav-links > ul > li > a,
.nav-responsive .sub-nav-links > ul > li > span,
.nav-responsive .responsive-subnav .sub-nav-links li > a,
.nav-responsive .responsive-subnav .sub-nav-links li > span,
.nav-responsive .sub-menu-dropdown ul li a {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 18px 16px !important;
    font-family: var(--font-primary) !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    color: #000 !important;
    text-decoration: none !important;
    line-height: 1.3 !important;
    cursor: pointer !important;
    transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease !important;
}

.nav-responsive .sub-nav-links li.has-sub > span::after {
    content: '\2192';
    display: inline-block;
    margin-left: 16px;
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
    transition: transform 0.2s ease;
}

.nav-responsive .sub-nav-links > ul > li > a:hover,
.nav-responsive .sub-nav-links > ul > li > span:hover,
.nav-responsive .responsive-subnav .sub-nav-links li > a:hover,
.nav-responsive .responsive-subnav .sub-nav-links li > span:hover,
.nav-responsive .sub-menu-dropdown ul li a:hover {
    background: #000 !important;
    color: #fff !important;
    padding-left: 24px !important;
}
.nav-responsive .sub-nav-links li.has-sub > span:hover::after {
    transform: translateX(4px);
    color: #fff;
}

/* -------- Sub-panels ------------------------------------------- */

.nav-responsive .responsive-subnav,
.nav-responsive .sub-level-2 {
    background: #fff !important;
    display: flex !important;
    flex-direction: column !important;
}

/* -------- Shop All CTA ----------------------------------------- */

.nav-responsive .sub-shop-all { padding: 24px 16px !important; }
.nav-responsive .sub-shop-all a,
.nav-responsive .sub-shop-all a.button,
.nav-responsive .sub-shop-all a.button--pink {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    padding: 16px 28px !important;
    background: #000 !important;
    color: #fff !important;
    border: 1px solid #000 !important;
    border-radius: 0 !important;
    font-family: var(--font-primary) !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0.2em !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    line-height: 1 !important;
    transition: background 0.2s, color 0.2s !important;
}
.nav-responsive .sub-shop-all a:hover {
    background: #fff !important;
    color: #000 !important;
}

/* -------- Callouts --------------------------------------------- */

.nav-responsive .sub-menu__callouts {
    padding: 0 16px 24px !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
}
.nav-responsive .menu-callout {
    position: relative !important;
    overflow: hidden !important;
}
.nav-responsive .menu-callout figure {
    margin: 0 !important;
    aspect-ratio: 16 / 9 !important;
    overflow: hidden !important;
}
.nav-responsive .menu-callout figure img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}
.nav-responsive .menu-callout .read-more {
    position: absolute !important;
    left: 12px !important;
    right: 12px !important;
    bottom: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 10px 12px !important;
    background: #fff !important;
    color: #000 !important;
    text-decoration: none !important;
    font-family: var(--font-primary) !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
}
.nav-responsive .menu-callout .read-more::after {
    content: '\2192';
    font-size: 14px;
    line-height: 1;
}

/* -------- Drawer footer (My Account / Help) -------------------- */

.nav-responsive footer.sub-footer {
    margin-top: auto !important;
    padding: 0 !important;
    background: #F4F4F5 !important;
    border-top: 1px solid #000 !important;
    flex-shrink: 0 !important;
}
.nav-responsive .sub-footer ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.nav-responsive .sub-footer li {
    list-style: none !important;
    border-bottom: 1px solid #dcdcdc !important;
}
.nav-responsive .sub-footer li:last-child { border-bottom: none !important; }

.nav-responsive .sub-footer li a {
    display: block !important;
    padding: 18px 16px !important;
    background: transparent !important;
    color: #000 !important;
    text-decoration: none !important;
    font-family: var(--font-primary) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.15em !important;
    text-transform: uppercase !important;
    transition: background 0.2s, color 0.2s, padding-left 0.2s !important;
}
.nav-responsive .sub-footer li a:hover {
    background: #000 !important;
    color: #fff !important;
    padding-left: 24px !important;
}

/* -------- Legacy class reset ----------------------------------- */

.nav-responsive .is-flex.is-flex-wrap {
    display: block !important;
    flex-wrap: nowrap !important;
}


/* ================================================================
   Legacy off-canvas drawer shell
   ================================================================
   Historical class names inherited from the original makeup-theme
   SCSS partial (_nav-responsive.scss). These are still referenced
   by the wrapper markup the drawer controller renders — don't
   rename without updating views/partials/nav-responsive.twig AND
   the open/close/back JS handlers.                              */

/* Backdrop behind the open drawer */
.page-overlay {
    position:   fixed;
    top: 0;
    left: 0;
    width:      100vw;
    height:     100vh;
    z-index:    8000;
    background-color: #000;
    visibility: hidden;
    opacity:    0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.page-overlay.is-active {
    visibility: visible;
    opacity:    0.8;
}

/* Off-canvas wrapper slide-in */
.responsive-nav-wrapper {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 8000;
    transform: translate3d(100%, 0, 0);
    transition: transform 0.3s ease;
}
.responsive-nav-wrapper.is-active { transform: translate3d(0, 0, 0); }

@media (min-width: 1100px) {
    .responsive-nav-wrapper { display: none; }
}

/* Drawer panel surface + header row */
.nav-responsive {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100vh;
    background-color: #fff;
    transition: all 0.4s ease;
}

.nav-responsive .nav__header {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 5rem;
    padding: 0 2.25rem;
}

.nav-responsive .nav__header .logo {
    display: flex;
    align-items: center;
    width: 11.5rem;
    margin: auto;
    text-align: center;
}
.nav-responsive .nav__header .logo a   { display: flex; align-items: center; }
.nav-responsive .nav__header .logo img { max-width: 100%; height: auto; }

.nav-responsive .nav-home {
    display: flex;
    align-items: center;
    width: 2.5rem;
}

.nav-responsive .nav-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    min-width: 0;
    margin-left: auto;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.4s ease;
}
.nav-responsive .nav-close:hover svg { fill: var(--ep-blush-block); }

/* Primary link list inside the drawer */
.nav-responsive ul.nav-links {
    list-style: none;
    flex-direction: column;
    margin: 0;
    padding: 0;
}
.nav-responsive ul.nav-links li { padding: 1rem 0; }
.nav-responsive ul.nav-links li a,
.nav-responsive ul.nav-links li > span {
    display: flex;
    width: 100%;
    font-family: var(--font-primary);
    font-size: 1rem;
    color: #000;
    text-decoration: none;
    cursor: pointer;
}
.nav-responsive ul.nav-links li a:hover,
.nav-responsive ul.nav-links li > span:hover { color: var(--ep-primary); }

/* Rows that expand into a child panel */
.nav-responsive li.has-sub {
    display: flex;
    position: relative;
    width: 100%;
}
.nav-responsive li.has-sub > span,
.nav-responsive li.has-sub > a    { width: 100%; }

.nav-responsive li.has-sub::after {
    content: '';
    display: flex;
    position: absolute;
    top: 50%;
    right: 2.25rem;
    width: 0.75rem;
    height: 0.75rem;
    border-right:  2px solid #000;
    border-bottom: 2px solid #000;
    transform: translateY(-50%) rotate(-45deg);
    pointer-events: none;
}

/* Child panels (level 2 + level 3) */
.nav-responsive .responsive-subnav,
.nav-responsive .sub-level-2 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 8010;
    background: #fff;
    transform: translate3d(100%, 0, 0);
    transition: transform 0.3s ease;
}
.nav-responsive .responsive-subnav.is-active,
.nav-responsive .sub-level-2.is-active          { transform: translate3d(0, 0, 0); }

.nav-responsive .responsive-subnav header,
.nav-responsive .sub-level-2 header {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 5rem;
    padding: 0 2.25rem;
}
.nav-responsive .responsive-subnav header h3,
.nav-responsive .sub-level-2 header h3 {
    font-family: var(--font-secondary);
    font-size: 1.25rem;
}

.nav-responsive .sub-back {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    min-width: 0;
    margin-right: auto;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
}

/* Child link lists */
.nav-responsive .sub-nav-links            { padding: 1rem 0; }
.nav-responsive .sub-nav-links ul {
    margin: 0 0 0.75rem;
    padding: 0;
    list-style: none;
}
.nav-responsive .sub-nav-links ul li {
    margin: 0;
    padding: 1rem 2.25rem 0;
    cursor: pointer;
}
.nav-responsive .sub-nav-links ul li a {
    font-family: var(--font-primary);
    font-size: 1rem;
    color: #000;
    text-decoration: none;
}
.nav-responsive .sub-nav-links ul li a:hover { color: var(--ep-primary); }

/* "Shop All" CTA + callout row */
.nav-responsive .sub-shop-all,
.nav-responsive .sub-menu__callouts { padding: 0 2.25rem; }
.nav-responsive .sub-menu__callouts { margin-top: 1.875rem; }

.nav-responsive .sub-menu__callouts figure          { display: flex; width: 100%; }
.nav-responsive .sub-menu__callouts figure img {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin-bottom: 1.25rem;
}
.nav-responsive .sub-menu__callouts .menu-callout   { margin-bottom: 2.25rem; }

.nav-responsive .sub-menu__callouts .read-more {
    font-family: var(--font-primary);
    font-size: 0.875rem;
    font-weight: 500;
    color: #000;
    text-decoration: none;
    text-transform: uppercase;
}
.nav-responsive .sub-menu__callouts .read-more:hover { color: var(--ep-primary); }

/* Drawer footer (account + help links) */
.nav-responsive .sub-footer           { margin-top: 1.25rem; }
.nav-responsive .sub-footer ul        { margin: 0; padding: 0; list-style: none; }
.nav-responsive .sub-footer li {
    padding: 1rem 2.25rem;
    border-top: 1px solid var(--ep-blush-block);
}
.nav-responsive .sub-footer li:last-child { border-bottom: 1px solid var(--ep-blush-block); }
.nav-responsive .sub-footer li a {
    font-family: var(--font-primary);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: #000;
    text-decoration: none;
}
.nav-responsive .sub-footer li a:hover { color: var(--ep-primary); }
