/* IDOLE menu polish: quiet luxury navigation (desktop mega menu + mobile drawer).
   Loaded after the header section styles. Remove the stylesheet link in layout/theme.liquid to undo. */
:root{--nav-ink:#1f1d1a;--nav-muted:#5f5a50;--nav-line:#e6dfce;--nav-gold:#7a5c1b;--nav-cream:#fbf8f0;--nav-serif:"Cormorant Garamond",Georgia,"Times New Roman",serif}

/* ---------- Desktop ---------- */
@media screen and (min-width:1000px){
:is(#idole-nav,[id^="shopify-section-"]):is(#idole-nav,[id^="shopify-section-"]){
  .header__primary-nav-item > mega-menu-disclosure > details > summary{font-size:12.5px;font-weight:500;letter-spacing:.14em;text-transform:uppercase}
  .mega-menu{background:var(--nav-cream);border-top:1px solid var(--nav-line);border-bottom:1px solid var(--nav-line);box-shadow:0 26px 40px -28px rgb(31 29 26 / .22);padding-block:36px 42px;gap:56px}
  .mega-menu__heading{border-bottom:1px solid var(--nav-line);margin-bottom:24px;padding-bottom:18px}
  .mega-menu__heading .h5{font-family:var(--nav-serif);font-size:32px;font-weight:500;line-height:1.1;letter-spacing:0;color:var(--nav-ink)}
  .mega-menu__all{font-size:11.5px;font-weight:500;letter-spacing:.14em;text-transform:uppercase;color:var(--nav-gold);border-bottom:1px solid currentColor;padding-bottom:3px}
  .mega-menu__linklist > li > a,.mega-menu__group-list a,.mega-menu__linklist .link-faded{font-size:15px;font-weight:400;letter-spacing:.01em;line-height:1.4;color:var(--nav-ink);transition:color .2s ease}
  .mega-menu__linklist > li > a:hover,.mega-menu__group-list a:hover,.mega-menu__linklist .link-faded:hover{color:var(--nav-gold)}
  .mega-menu__group-title,.mega-menu__linklist > li:has(> ul) > a.h6{font-size:11.5px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--nav-gold);margin-bottom:12px}
  .mega-menu__linklist > li > ul{gap:2px}
  .mega-menu__promo > .idole-mega-card,.mega-menu__category-card{border:1px solid var(--nav-line);border-radius:2px;box-shadow:none}
  .mega-menu__promo .idole-mega-card__title{font-family:var(--nav-serif);font-size:22px;font-weight:500}

  /* Lebanese Treasures now has 4 groups: Sweets, Abayas, Modern Gifts, Khan Al Saboun */
  .mega-menu:has(.mega-menu__all[href="/collections/lebanese-products-worldwide"]) .mega-menu__main{max-width:1000px}
  .mega-menu:has(.mega-menu__all[href="/collections/lebanese-products-worldwide"]) .mega-menu__linklist{grid-template-columns:1.2fr .8fr 1.1fr 1.1fr;gap:20px 40px}
  .mega-menu:has(.mega-menu__all[href="/collections/lebanese-products-worldwide"]) .mega-menu__linklist > li:last-child{grid-column:auto}
  .mega-menu:has(.mega-menu__all[href="/collections/lebanese-products-worldwide"]) .mega-menu__linklist > li:last-child > ul{display:block;column-count:1}
}
}

/* ---------- Mobile drawer ---------- */
@media screen and (max-width:999px){
  body .header-sidebar::part(content),body .header-sidebar__main-panel,body .header-sidebar__collapsible-panel{background:var(--nav-cream);color:var(--nav-ink)}
  body .header-sidebar__main-panel > .header-sidebar__scroller > .header-sidebar__linklist > li{border-bottom:1px solid var(--nav-line)}
  /* Main items and submenu items share one size and font */
  body .header-sidebar__main-panel .header-sidebar__linklist-button,body .header-sidebar__sub-panel .header-sidebar__linklist-button,body .header-sidebar__nested-linklist > a{font-family:inherit;font-size:17px;font-weight:500;letter-spacing:.01em;line-height:1.3;min-height:56px;padding-block:12px}
  body .header-sidebar__sub-panel .header-sidebar__linklist-button,body .header-sidebar__nested-linklist > a{font-weight:400;min-height:50px;padding-block:10px}
  body .header-sidebar__back-button{font-size:12px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--nav-gold);border-color:var(--nav-line)}
  body .header-sidebar__linklist:has(> li:first-child > a[href="/collections/flowers-flower-delivery-in-lebanon"])::before,
  body .header-sidebar__linklist:has(> li:first-child > a[href="/collections/flowers-flower-delivery-in-lebanon"])::after{color:var(--nav-gold);font-size:11.5px;letter-spacing:.14em;padding-block:18px 8px}
  body .header-sidebar__promo > .idole-mega-card--sidebar{border-radius:2px;border-color:var(--nav-line)}
  body .idole-mega-card--sidebar .idole-mega-card__title{font-family:var(--nav-serif);font-size:20px;font-weight:600}
}
@media (prefers-reduced-motion:reduce){:is(#idole-nav,[id^="shopify-section-"]) .mega-menu a{transition:none}}

/* Phone: the round scroll-down arrow sat on top of the hero button, so hide it there */
@media screen and (max-width:699px){body .slideshow__next-section-button{display:none}}


/* ---------- IDOLE 13 Nov 2026: phone menu fixes ----------
   The drawer used the full screen height (100vh), which on phones runs under the browser toolbar,
   so the bottom of long submenus could not be reached and the menu felt stuck. Uses the visible
   height instead, scrolls smoothly by touch, keeps scrolling inside the menu, and shows
   third-level links in one clean column. */
@media screen and (max-width:999px){
  body .header-sidebar::part(content){height:100vh;height:100dvh;max-height:100dvh}
  body .header-sidebar__main-panel,body .header-sidebar__collapsible-panel{max-height:100dvh}
  body .header-sidebar__scroller{-webkit-overflow-scrolling:touch;overscroll-behavior:contain;touch-action:pan-y;padding-bottom:calc(120px + env(safe-area-inset-bottom,0px))}
  body .header-sidebar__nested-linklist{display:flex!important;flex-direction:column;gap:2px;padding-inline-start:4px}
  body .header-sidebar__nested-linklist > a{min-height:44px;display:flex;align-items:center}
  body .header-sidebar .accordion__content{overflow:visible}
}

/* ---------- IDOLE 13 Nov 2026: Christmas mega menu ----------
   Gives the Christmas links more room (three even columns) and slims the two image cards. */
@media screen and (min-width:1280px){
  body .mega-menu:has(.mega-menu__all[href*="christmas-gifts-lebanon"]){gap:56px!important}
  body .mega-menu:has(.mega-menu__all[href*="christmas-gifts-lebanon"]) .mega-menu__main{max-width:780px!important;width:780px;flex:0 1 780px!important}
  body .mega-menu:has(.mega-menu__all[href*="christmas-gifts-lebanon"]) .mega-menu__linklist{grid-template-columns:repeat(3,minmax(0,1fr))!important;column-gap:36px!important}
  body .mega-menu:has(.mega-menu__all[href*="christmas-gifts-lebanon"]) .mega-menu__promo{flex:0 1 420px!important;max-width:420px!important}
}
@media screen and (min-width:1000px) and (max-width:1279px){
  body .mega-menu:has(.mega-menu__all[href*="christmas-gifts-lebanon"]) .mega-menu__main{max-width:640px!important;flex:1 1 640px!important}
  body .mega-menu:has(.mega-menu__all[href*="christmas-gifts-lebanon"]) .mega-menu__linklist{grid-template-columns:repeat(3,minmax(0,1fr))!important;column-gap:28px!important}
  body .mega-menu:has(.mega-menu__all[href*="christmas-gifts-lebanon"]) .mega-menu__promo{flex:0 1 220px!important;max-width:220px!important}
  body .mega-menu:has(.mega-menu__all[href*="christmas-gifts-lebanon"]) .mega-menu__promo > :nth-child(n+2){display:none!important}
}


/* IDOLE 14 Nov 2026: festive custom badges (e.g. "Christmas Kids") in the season's burgundy with a small gold star. */
.badge.badge--custom{background:#6f1422!important;color:#fbf8f0!important;border:1px solid #6f1422;letter-spacing:.08em;font-weight:600;display:inline-flex;align-items:center;gap:.4em}
.badge.badge--custom::before{content:"\2726";color:#d8b56a;font-size:.85em;line-height:1}
