/*
 * Makerique Boutique theme for OpenCart 4
 * Copyright (c) 2026 Heliopsy. All Rights Reserved.
 * https://makerique.com
 * SPDX-License-Identifier: LicenseRef-Proprietary
 * Proprietary and confidential. Unauthorized copying, distribution, or
 * modification of this file, by any means, is strictly prohibited.
 */

/* ============================================================================
   Makerique Boutique — Navigation Mode ("mobile menu on desktop")
   ----------------------------------------------------------------------------
   Rendered by common/menu.twig, driven by event/navmode.data
   ($data['mr_navmode']). Two modes:

     bar    (default) — the current horizontal category bar (with the mega
                        panel when enabled). This file adds nothing here.
     drawer           — menu.twig drops `navbar-expand-lg` and swaps the
                        panel's `offcanvas-lg` for a plain `offcanvas`, so the
                        SAME #mr-mobile-nav panel is a true off-canvas at every
                        breakpoint (Bootstrap handles the open/close — the panel
                        itself is NOT restyled here). A `.mr-nav--drawer` class
                        is added to the #menu nav; on desktop the header's own
                        hamburger is `d-lg-none`, so menu.twig renders a
                        desktop hamburger (`.mr-nav-toggle--drawer`) that this
                        file reveals at >=lg and styles with the optional label.

   Tokens: reuses the shared --mr-* palette. No off-canvas restyling.
   ========================================================================== */

/* --- Drawer bar strip: slim host for the desktop hamburger --------------- */
/* In drawer mode the #menu nav no longer lays out a horizontal list; at >=lg
   it holds just the hamburger (+ optional label). Give it comfortable padding
   so the button is not cramped against the bar's top/bottom borders. */
@media (min-width: 992px) {
  #menu.mr-menu.mr-nav--drawer > .container {
    padding-top: .5rem;
    padding-bottom: .5rem;
  }
}

/* --- Desktop hamburger (drawer mode only) -------------------------------- */
/* Below lg the header's existing `.mr-nav-toggle.d-lg-none` opens the panel,
   so this desktop clone stays hidden to avoid a duplicate button. It inherits
   the base `.mr-nav-toggle` look (border, colours, hover) from headerfooter. */
.mr-nav-toggle--drawer {
  display: none;
}

@media (min-width: 992px) {
  .mr-nav-toggle--drawer {
    display: inline-flex;
  }

  /* Widen the button when a label sits beside the icon. */
  .mr-nav-toggle--drawer.mr-nav-toggle--labelled {
    width: auto;
    gap: .55rem;
    padding: 0 1rem;
  }
}

/* Optional label next to the icon. */
.mr-nav-toggle-label {
  font-family: var(--mr-font-nav);
  font-weight: 500;
  font-size: .95rem;
  line-height: 1;
  color: var(--mr-heading);
  letter-spacing: .01em;
}

.mr-nav-toggle--drawer:hover .mr-nav-toggle-label {
  color: var(--mr-primary);
}

/* --- Reduced-motion safe -------------------------------------------------- */
/* The base `.mr-nav-toggle` transitions background/colour; keep it calm for
   users who prefer reduced motion. */
@media (prefers-reduced-motion: reduce) {
  .mr-nav-toggle--drawer {
    transition: none;
  }
}
