/* Mobile-only header restyle. The top bar (hamburger / logo / icons) and the
   mobile menu drawer were still on the stock Dawn look — white bar with
   bright red icons, and a bright plum/gold drawer (the shared color-scheme's
   own default, never overridden here) — while the footer and utility bar
   have already been redone in this site's premium dark-maroon/cream palette
   (see footer-redesign.css, utility-bar-redesign.css). This brings the
   mobile header in line with that same system so the page reads as one
   consistent brand top-to-bottom instead of switching palettes at the
   header. Desktop (min-width: 990px) nav, dropdowns and layout are
   untouched — everything here is scoped to the mobile drawer breakpoint. */

@media screen and (max-width: 989px) {

  /* ---------- 1. Top bar ----------
     Same technique as the footer/utility-bar overrides: only replace the
     custom properties the color-scheme class already feeds every child
     element (background, foreground) so borders, hovers etc. that already
     derive from them via rgba() pick up the new palette automatically. */
  .header-wrapper.color-scheme-2 {
    --color-background: 44, 12, 18;
    --gradient-background: #2c0c12;
    --color-foreground: 244, 236, 224;
  }

  .header--mobile-center .header__icon {
    color: rgb(244, 236, 224);
    border-radius: 50%;
    transition: background-color 0.2s ease;
  }

  .header--mobile-center .header__icon:hover,
  .header--mobile-center .header__icon:focus-visible {
    background-color: rgba(244, 236, 224, 0.12);
  }

  /* Logo keeps its own dark badge art; just lift it slightly off the flush
     edge so it doesn't crowd the maroon bar. */
  .header--mobile-center .header__heading-logo-wrapper {
    border-radius: 0.6rem;
    overflow: hidden;
  }

  /* ---------- 2. Menu drawer ----------
     #menu-drawer carries the same shared color-scheme class as the footer
     and utility bar (color-scheme-bab227d5-...); scoping the override to
     #menu-drawer keeps the desktop "Shop" mega-menu's own cream/plum
     palette (header-layout.css) untouched. */
  #menu-drawer.menu-drawer {
    --color-background: 44, 12, 18;
    --gradient-background: #2c0c12;
    --color-foreground: 244, 236, 224;
  }

  #menu-drawer .menu-drawer__menu-item {
    font-weight: 500;
    letter-spacing: 0.01rem;
    border-bottom: 0.1rem solid rgba(244, 236, 224, 0.08);
    transition: color 0.2s ease, background-color 0.2s ease;
  }

  #menu-drawer .menu-drawer__menu-item:hover,
  #menu-drawer .menu-drawer__menu-item:focus-visible,
  #menu-drawer .menu-drawer__close-button:hover,
  #menu-drawer .menu-drawer__close-button:focus {
    color: rgb(176, 141, 87);
    background-color: rgba(244, 236, 224, 0.06);
  }

  #menu-drawer .menu-drawer__close-button {
    border-bottom: 0.1rem solid rgba(244, 236, 224, 0.12);
  }

  /* Log in row + Instagram icon at the bottom of the drawer: same circular
     icon-badge treatment used for the footer's social icons. */
  #menu-drawer .menu-drawer__account:hover,
  #menu-drawer .menu-drawer__account:focus-visible {
    color: rgb(176, 141, 87);
  }

  #menu-drawer .list-social__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.8rem;
    height: 3.8rem;
    border-radius: 50%;
    background: rgba(244, 236, 224, 0.08);
    border: 0.1rem solid rgba(244, 236, 224, 0.2);
    color: rgb(244, 236, 224);
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  }

  #menu-drawer .list-social__link:hover,
  #menu-drawer .list-social__link:focus-visible {
    transform: translateY(-0.2rem);
    background: rgb(244, 236, 224);
    border-color: rgb(244, 236, 224);
    color: rgb(44, 12, 18);
  }

  /* ---------- 3. Shop drill-down: Category / Subcategory / Item hierarchy ----------
     Three visually distinct tiers so a category (e.g. "Gold Jewellery"), its
     subcategory groups (e.g. "Rings", "Earrings") and the leaf items under
     each (e.g. "Gold Rings") never look like one flat list:
       - Category:     bold, gold diamond bullet, chevron, own drill-down panel.
       - Subcategory:  small-caps gold label on a tinted shelf-style band,
                       not a link — purely a section divider.
       - Item:         indented, dot bullet, quieter secondary text color. */

  #menu-drawer .menu-drawer__menu-item--featured {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin: 1rem 1.6rem 1.2rem;
    padding: 1.4rem 1.8rem;
    width: auto;
    border: 0.1rem solid rgba(176, 141, 87, 0.5);
    border-radius: 0.8rem;
    background: linear-gradient(135deg, rgba(176, 141, 87, 0.16), rgba(176, 141, 87, 0.04));
  }

  #menu-drawer .menu-drawer__menu-item--featured:hover,
  #menu-drawer .menu-drawer__menu-item--featured:focus-visible {
    background: linear-gradient(135deg, rgba(176, 141, 87, 0.24), rgba(176, 141, 87, 0.08));
  }

  #menu-drawer .menu-drawer__featured-eyebrow {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
    color: rgb(176, 141, 87);
  }

  #menu-drawer .menu-drawer__featured-title {
    font-size: 1.7rem;
    font-weight: 600;
    color: rgb(244, 236, 224);
  }

  #menu-drawer .menu-drawer__menu-item--category {
    font-size: 1.8rem;
    font-weight: 600;
  }

  #menu-drawer .menu-drawer__category-icon {
    display: inline-block;
    width: 0.7rem;
    height: 0.7rem;
    margin-right: 1.1rem;
    background: rgb(176, 141, 87);
    transform: rotate(45deg);
    flex: none;
  }

  #menu-drawer .menu-drawer__menu-item--category .icon-arrow {
    color: rgb(176, 141, 87);
  }

  #menu-drawer .menu-drawer__menu-item--view-all {
    color: rgb(176, 141, 87);
    font-weight: 600;
    background-color: rgba(176, 141, 87, 0.08);
    border-bottom: 0.1rem solid rgba(244, 236, 224, 0.12);
  }

  #menu-drawer .menu-drawer__menu-item--view-all:hover,
  #menu-drawer .menu-drawer__menu-item--view-all:focus-visible {
    background-color: rgba(176, 141, 87, 0.16);
  }

  #menu-drawer .menu-drawer__subcategory-heading {
    padding: 0.9rem 3rem 0.9rem 2.7rem;
    border-left: 0.3rem solid rgb(176, 141, 87);
    background-color: rgba(244, 236, 224, 0.05);
    border-bottom: 0.1rem solid rgba(244, 236, 224, 0.08);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.09rem;
    text-transform: uppercase;
    color: rgb(176, 141, 87);
    cursor: default;
  }

  #menu-drawer .menu-drawer__menu-item--nested {
    padding-left: 4.6rem;
    font-size: 1.6rem;
    font-weight: 400;
    color: rgba(244, 236, 224, 0.82);
    border-bottom: 0.1rem solid rgba(244, 236, 224, 0.05);
    position: relative;
  }

  #menu-drawer .menu-drawer__menu-item--nested::before {
    content: "";
    position: absolute;
    left: 3.1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: rgba(176, 141, 87, 0.7);
  }

  #menu-drawer .menu-drawer__menu-item--nested:hover,
  #menu-drawer .menu-drawer__menu-item--nested:focus-visible {
    color: rgb(176, 141, 87);
  }
}
