/* =====================================================================
   menu-only.css - the NEW side menu (hamburger + sliding menu) for pages that
   still use the OLD header: product.php and galleries.php.
   Load it AFTER styles.css. Every rule starts with #wrapper so it wins over the
   old menu rules at the top of styles.css (those are reset here).
   ===================================================================== */
body.menu-locked { overflow: hidden; }

/* ---- reset of the old menu rules from styles.css ---- */
/* BAR COLOUR: change --burger-color below (brown #5d2b09 = same as the old button) */
#wrapper { --burger-color: #5d2b09; --bg-dark: #111111; --text-light: #f5f3f0; --accent-red: #800000; --accent-gold: #d4af37;
           margin: 0; padding: 0; transition: none; }
#wrapper.toggled { padding-left: 0; }
#wrapper #page-content-wrapper { width: auto; }

/* ---- the 3 bars: SAME place as the old button (fixed at the top left, 25px from the left, 25px from the top) ---- */
#wrapper .hamburger { position: fixed; top: 25px; left: 25px; right: auto; bottom: auto; width: 32px; height: 24px; margin: 0; padding: 0; background: none; border: 0; cursor: pointer; z-index: 1003; display: block; }
@media screen and (max-width: 542px) { #wrapper .hamburger { left: 15px; } }   /* change the 2 numbers (left) to move the button */
#wrapper .hamburger span { position: absolute; left: 0; width: 100%; height: 4px; border-radius: 2px; background: var(--burger-color); box-shadow: 2px 2px 3px #000; display: block; transition: transform .25s ease, opacity .2s ease, top .25s ease, bottom .25s ease; }
#wrapper .hamb-top    { top: 0; bottom: auto; margin-top: 0; }
#wrapper .hamb-middle { top: 50%; bottom: auto; margin-top: -2px; }
#wrapper .hamb-bottom { bottom: 0; top: auto; margin-top: 0; }
#wrapper .hamburger.is-open .hamb-top    { top: 50%; bottom: auto; margin-top: -2px; transform: rotate(45deg); -webkit-transform: rotate(45deg); }
#wrapper .hamburger.is-open .hamb-middle { opacity: 0; display: block; }
#wrapper .hamburger.is-open .hamb-bottom { top: auto; bottom: 50%; margin-top: 0; margin-bottom: -2px; transform: rotate(-45deg); -webkit-transform: rotate(-45deg); }

/* when the menu is open the bars turn white (like before), because the menu behind them is dark */
#wrapper .hamburger.is-open span { background: #ffffff; }

/* ---- dark overlay + sliding menu ---- */
#wrapper .overlay { position: fixed; display: block; inset: 0; width: auto; height: auto; background: rgba(0, 0, 0, .55); opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease; z-index: 1001; }
#wrapper.toggled .overlay { opacity: 1; visibility: visible; }
#wrapper #sidebar-wrapper { position: absolute; top: 0; left: 0; right: auto; margin: 0; width: min(300px, 85vw); height: 100%; overflow-x: hidden; overflow-y: auto; padding: 72px 0 24px; background: var(--bg-dark); border-right: 2px solid var(--accent-red); transform: translateX(-100%); transition: transform .3s ease; z-index: auto; }
#wrapper.toggled #sidebar-wrapper { width: min(300px, 85vw); transform: translateX(0); }

#wrapper .sidebar-nav { position: static; top: auto; width: auto; height: auto; margin: 0; padding: 0; background: none; list-style: none; }
#wrapper .sidebar-nav li { display: block; position: static; width: 100%; line-height: normal; list-style: none; margin: 0; padding: 0; }
#wrapper .sidebar-nav li:before { content: none; display: none; }
#wrapper .menu2-list::after { content: none; }
#wrapper .sidebar-nav a { display: block; width: auto; margin: 0; padding: 6px 26px; color: var(--text-light); font-family: 'Fraunces', Georgia, serif; font-size: 1.05rem; font-weight: 400; letter-spacing: .025em; line-height: 1.35; text-decoration: none; text-align: left; text-shadow: none; border-bottom: 1px solid #262626; background: none; }
#wrapper .sidebar-nav a:hover { color: var(--accent-gold); background: #1a1a1a; }
#wrapper .menu2-list > a.menu-toggle::after { content: "+"; float: right; color: var(--accent-gold); font-weight: 700; }
#wrapper .menu2-list.open > a.menu-toggle::after { content: "\2013"; }
#wrapper .menu2-drop { position: static; top: auto; left: auto; width: 100%; margin: 0; padding: 0; opacity: 1; border-left: 0; list-style: none; max-height: 0; overflow: hidden; background: #181818; transition: max-height .3s ease; }
#wrapper .menu2-list:hover .menu2-drop { top: auto; opacity: 1; }
#wrapper .menu2-list.open .menu2-drop { max-height: 600px; }
#wrapper .menu2-drop a { width: auto; padding-left: 44px; font-size: .95rem; letter-spacing: .02em; color: #d8c9b6; background: none; }
#wrapper .menu2-drop a:hover { color: var(--accent-gold); background: #222; }
@media (max-width: 400px) {
  #wrapper #sidebar-wrapper, #wrapper.toggled #sidebar-wrapper { width: min(300px, 82vw); padding-top: 64px; }
  #wrapper .sidebar-nav a { font-size: clamp(.8rem, 4.2vw, 1.05rem); padding: clamp(9px, 3vw, 13px) clamp(16px, 5vw, 26px); }
  #wrapper .menu2-drop a { font-size: clamp(.74rem, 3.7vw, .95rem); padding-left: clamp(30px, 9vw, 44px); }
}
/* highlighted "Earn some money" link */
#wrapper .sidebar-nav .menu-earn a { background: linear-gradient(180deg, #f3deaa 0%, #d9b46a 45%, #a8782f 100%); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
#wrapper .sidebar-nav .menu-earn a:hover { background-image: none; background-color: #af9716; -webkit-text-fill-color: #111; color: #111; }