/* Mangum Ranch — Site Header */
:root{
  --mrsh-clay:#C97B5D; --mrsh-clay-deep:#A15D42; --mrsh-sage:#93A87F; --mrsh-sage-deep:#4E5F3F;
  --mrsh-cream:#FBF6EC; --mrsh-cream-deep:#F3E7CE; --mrsh-ink:#3B3226; --mrsh-ink-soft:#786A54;
}
.mrsh-header{
  --clay:var(--mrsh-clay); --clay-deep:var(--mrsh-clay-deep); --sage:var(--mrsh-sage); --sage-deep:var(--mrsh-sage-deep);
  --cream:var(--mrsh-cream); --cream-deep:var(--mrsh-cream-deep); --ink:var(--mrsh-ink); --ink-soft:var(--mrsh-ink-soft);
  font-family:'Quicksand',sans-serif;
  position:sticky; top:0; left:0; width:100%; z-index:99999;
  background:rgba(251,246,236,.96); backdrop-filter:blur(8px);
  border-bottom:1px solid #E6DCC1;
  box-sizing:border-box;
}
/* The mobile menu gets moved to a direct child of <body> by JS (see mrs-header.js),
   so it can no longer see the --clay etc. variables scoped to .mrsh-header above.
   Give it the same variables directly so its buttons/colors still resolve correctly. */
.mrsh-mobile-menu, .mrsh-mobile-overlay{
  --clay:var(--mrsh-clay); --clay-deep:var(--mrsh-clay-deep); --sage:var(--mrsh-sage); --sage-deep:var(--mrsh-sage-deep);
  --cream:var(--mrsh-cream); --cream-deep:var(--mrsh-cream-deep); --ink:var(--mrsh-ink); --ink-soft:var(--mrsh-ink-soft);
  font-family:'Quicksand',sans-serif;
}
.mrsh-header *{box-sizing:border-box;}
.mrsh-inner{max-width:1280px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;padding:14px 28px;gap:24px;}

.mrsh-logo{display:flex;align-items:center;flex:none;}
.mrsh-logo img{height:48px;width:auto;display:block;}

.mrsh-nav{display:flex;align-items:center;justify-content:center;gap:32px;flex:1;text-align:center;}
.mrsh-nav a{font-weight:600;font-size:20px;color:var(--ink);text-decoration:none;transition:color .18s ease;}
.mrsh-nav a:hover{color:var(--clay-deep);}

.mrsh-actions{display:flex;align-items:center;gap:16px;flex:none;}
.mrsh-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  font-family:'Quicksand',sans-serif;font-weight:700;font-size:14.5px;
  background:var(--clay);color:#fff;padding:11px 22px;border-radius:40px;
  text-decoration:none;border:none;cursor:pointer;
  box-shadow:0 6px 14px -6px rgba(161,93,66,.5);transition:transform .18s ease;
}
.mrsh-btn:hover{transform:translateY(-2px);color:#fff;}
.mrsh-btn-ghost{background:transparent;color:var(--ink);border:1.5px solid var(--ink);box-shadow:none;}
.mrsh-btn-ghost:hover{background:var(--ink);color:var(--cream);}

.mrsh-cart-toggle{
  position:relative;background:none;border:none;cursor:pointer;color:var(--ink);
  padding:8px;display:flex;align-items:center;justify-content:center;border-radius:50%;
  transition:background .18s ease;
}
.mrsh-cart-toggle:hover{background:var(--cream-deep);}
.mrsh-cart-count{
  position:absolute;top:0;right:0;background:var(--clay);color:#fff;
  font-size:11px;font-weight:700;min-width:18px;height:18px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;padding:0 4px;line-height:1;
}
.mrsh-cart-count:empty, .mrsh-cart-count[data-zero="1"]{opacity:.001;}

.mrsh-menu-toggle{display:none !important;flex-direction:column;justify-content:center;gap:5px;width:32px;height:32px;background:none;border:none;cursor:pointer;padding:0;}
.mrsh-menu-toggle span{display:block;width:100%;height:2px;background:var(--ink);border-radius:2px;transition:transform .2s ease, opacity .2s ease;}
.mrsh-menu-toggle.is-open span:nth-child(1){transform:translateY(7px) rotate(45deg);}
.mrsh-menu-toggle.is-open span:nth-child(2){opacity:0;}
.mrsh-menu-toggle.is-open span:nth-child(3){transform:translateY(-7px) rotate(-45deg);}

/* Mini cart dropdown */
.mrsh-cart-dropdown{
  position:absolute;top:100%;right:28px;width:340px;max-width:92vw;
  background:#fff;border-radius:18px;box-shadow:0 20px 44px -18px rgba(59,50,38,.35);
  padding:20px;transform:translateY(-8px);opacity:0;visibility:hidden;
  transition:opacity .18s ease, transform .18s ease, visibility .18s ease;
  max-height:70vh;overflow-y:auto;
}
.mrsh-cart-dropdown.is-open{opacity:1;visibility:visible;transform:translateY(0);}
.mrsh-cart-empty{color:var(--ink-soft);font-size:14.5px;text-align:center;padding:20px 0;}
.mrsh-cart-item{display:flex;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid #F0E9D6;}
.mrsh-cart-item img{width:48px;height:48px;object-fit:cover;border-radius:10px;background:var(--cream-deep);flex:none;}
.mrsh-cart-item-info{flex:1;min-width:0;}
.mrsh-cart-item-name{font-size:13.5px;font-weight:600;color:var(--ink);line-height:1.3;}
.mrsh-cart-item-meta{font-size:12.5px;color:var(--ink-soft);margin-top:2px;}
.mrsh-cart-item-total{font-size:13.5px;font-weight:700;color:var(--clay-deep);flex:none;}
.mrsh-cart-subtotal{display:flex;justify-content:space-between;font-weight:700;font-size:15px;padding:14px 0;border-top:1px solid #F0E9D6;margin-top:4px;}
.mrsh-cart-actions{display:flex;gap:10px;margin-top:6px;}
.mrsh-cart-actions .mrsh-btn{flex:1;padding:11px 14px;font-size:13.5px;}

/* Mobile menu — hidden entirely by default (not just off-screen), so it
   cannot leak onto desktop regardless of theme CSS interference. Only the
   max-width:960px media query below turns it into a real element.
   Also moved to a direct child of <body> via JS, in case a theme wrapper
   with a CSS transform is breaking position:fixed elsewhere in the DOM. */
.mrsh-mobile-overlay{display:none !important;position:fixed !important;inset:0 !important;background:rgba(30,24,16,.55) !important;z-index:2147483000 !important;opacity:0;visibility:hidden;transition:opacity .2s ease, visibility .2s ease;}
.mrsh-mobile-overlay.is-open{opacity:1;visibility:visible;}
.mrsh-mobile-menu{
  display:none !important;
  position:fixed !important;top:0 !important;right:0 !important;left:auto !important;bottom:0 !important;
  width:100vw !important;height:100vh !important;height:100dvh !important;
  background-color:#FBF6EC !important;opacity:1 !important;
  z-index:2147483001 !important;
  transform:translateX(100%);transition:transform .3s ease;
  overflow-y:auto;
}
.mrsh-mobile-menu.is-open{transform:translateX(0);}
.mrsh-mobile-close{
  background:#fff;border:none;border-radius:50%;
  width:44px;height:44px;display:flex;align-items:center;justify-content:center;
  color:var(--ink);cursor:pointer;box-shadow:0 6px 16px -6px rgba(59,50,38,.3);flex:none;
}
.mrsh-mobile-topbar{display:flex;align-items:center;justify-content:space-between;padding:24px 24px 0;}
.mrsh-mobile-logo{display:flex;align-items:center;}
.mrsh-mobile-logo img{height:42px;width:auto;display:block;}
.mrsh-mobile-menu-inner{padding:32px 32px 40px;display:flex;flex-direction:column;gap:24px;min-height:calc(100% - 90px);max-width:420px;margin:0 auto;}
.mrsh-mobile-menu nav{display:flex;flex-direction:column;gap:4px;}
.mrsh-mobile-menu nav a{font-family:'Baloo 2',cursive;font-weight:600;font-size:22px;color:var(--ink);text-decoration:none;padding:14px 0;border-bottom:1px solid #E6DCC1;}
.mrsh-mobile-shop-btn{width:100%;padding:16px;font-size:16px;}
.mrsh-social-link{display:flex;align-items:center;gap:10px;font-size:15px;font-weight:600;color:var(--ink-soft);text-decoration:none;margin-top:auto;}
.mrsh-social-link svg{color:var(--clay-deep);}

@media(max-width:960px){
  .mrsh-nav{display:none !important;}
  .mrsh-shop-btn-desktop{display:none !important;}
  .mrsh-menu-toggle{display:flex !important;}
  .mrsh-mobile-overlay{display:block !important;}
  .mrsh-mobile-menu{display:block !important;}
}
@media(max-width:520px){
  .mrsh-logo img{height:38px;}
  .mrsh-inner{padding:12px 18px;}
  .mrsh-cart-dropdown{right:12px;}
}
