/* ================= SHOP dropdown (js/common.js → headerHTML / shopMenuHTML) =================
   Hover, focus or tap SHOP in the store header: MENS and WOMENS columns open, each with its
   own categories (set per product in /admin). Also the Mens / Womens groups in the phone menu.
   Retro theme colours with fallbacks. Loaded on every store page, including checkout. */

.shopmenu { position: relative; display: inline-flex; align-items: center; }
.shopmenu__btn { display: inline-flex; align-items: center; gap: .4rem; }
.shopmenu__caret { width: .42em; height: .42em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.shopmenu.open .shopmenu__caret { transform: translateY(2px) rotate(-135deg); }

.shopmenu__panel { position: absolute; z-index: 60; top: calc(100% + 18px); left: -1.2rem; display: grid; grid-template-columns: repeat(2, minmax(170px, 1fr));
  min-width: 400px; background: var(--white, #fffaf0); color: var(--ink, #2b1d14); border: 2px solid var(--ink, #2b1d14); box-shadow: 6px 6px 0 var(--ink, #2b1d14);
  text-transform: none; letter-spacing: 0; opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .18s, transform .18s, visibility 0s linear .18s; }
.shopmenu.open .shopmenu__panel { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.shopmenu__panel::before { content: ""; position: absolute; left: 0; right: 0; top: -20px; height: 20px; } /* keeps hover alive between SHOP and the panel */

/* links inside the panel don't get the header's underline bar */
.nav .shopmenu__panel a::after { display: none; }

.shopmenu__col { padding: 1.1rem 1.3rem 1.3rem; }
.shopmenu__col + .shopmenu__col { border-left: 2px dashed var(--line, #c9b08a); }
.shopmenu__head { display: block; margin-bottom: .55rem; font-family: var(--display, "Shrikhand", Georgia, serif); font-weight: 400; font-size: 1.55rem; line-height: 1.1;
  text-transform: none; letter-spacing: 0; color: var(--rust, #c4501f); text-shadow: 2px 2px 0 var(--mustard, #e3a92b); }
.shopmenu__head:hover { color: var(--teal, #2f6f6a); }
.shopmenu__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.shopmenu__col li a { display: block; padding: .38rem 0; font-family: var(--type, "Courier Prime", monospace); font-weight: 700; font-size: .8rem;
  letter-spacing: .08em; text-transform: uppercase; color: var(--ink, #2b1d14); }
.shopmenu__col li a:hover, .shopmenu__col li a:focus-visible { color: var(--rust, #c4501f); text-decoration: underline wavy; text-underline-offset: 4px; }
.shopmenu__sale { color: var(--red, #c4501f) !important; }
.shopmenu__soon { display: inline-block; margin: .2rem 0 0; padding: .45rem .7rem; border: 2px dashed var(--line, #c9b08a); transform: rotate(-2deg);
  font-family: var(--type, "Courier Prime", monospace); font-weight: 700; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft, #5c4433); }

/* phone menu: Mens / Womens groups */
.mobile-menu__group { margin: 1rem 0 .1rem; font-family: var(--display, "Shrikhand", Georgia, serif); font-size: 1.25rem; color: var(--rust, #c4501f); text-shadow: 1px 1px 0 var(--mustard, #e3a92b); }
.mobile-menu .mobile-menu__sub { padding-left: 1rem; }
.mobile-menu__soon { display: block; padding: .6rem 0 .8rem 1rem; font-size: .8rem; letter-spacing: .15em; text-transform: uppercase; color: var(--ink-soft, #5c4433); }

@media (prefers-reduced-motion: reduce) { .shopmenu__panel, .shopmenu__caret { transition: none; } }
