/* ==========================================================================
   BESPOKE SPORT · Global site styles
   --------------------------------------------------------------------------
   Site-wide brand overrides that aren't specific to the product page.
   Enqueued on every front-end page by customiser-global-fonts.php.
   ========================================================================== */

:root {
  --bs-mint:  #5DCAA5;
  --bs-ink:   #04342C;
}


/* --------------------------------------------------------------------------
   MOBILE NAV DROPDOWN  (Elementor nav menu burger menu)
   --------------------------------------------------------------------------
   Full-screen mint takeover with big black Anton menu items, centred
   vertically. The Elementor dropdown defaulted to a small light-grey
   panel with invisible white text; this turns it into a proper
   mobile menu overlay.

   The header (logo + burger/X) stays on its dark background ABOVE this
   panel, so the green X stays visible and tappable to close. We use
   min-height (not position:fixed) so we don't fight Elementor's
   open/close display toggle or cover the close button. */

.elementor-nav-menu--dropdown,
nav.elementor-nav-menu--dropdown.elementor-nav-menu__container {
  background-color: var(--bs-mint) !important;
  min-height: calc(100vh - 80px) !important;
  border-radius: 0 !important;
  padding: 24px 0 48px !important;
}

/* Centre the menu items vertically in the takeover panel.
   NB: we qualify every dropdown selector with BOTH classes
   (.elementor-nav-menu--dropdown.elementor-nav-menu__container) on
   purpose. The theme already ships a global rule
       .elementor-nav-menu a.elementor-item { ...white, Inter, 11px... !important }
   which has the SAME specificity (0,2,1) as a single-class selector and
   loads after us, so it was winning the tie and forcing the menu text
   white/small/non-Anton. Adding the second class lifts us to (0,3,1) so
   our !important rules win cleanly on every page. */
.elementor-nav-menu--dropdown.elementor-nav-menu__container ul.elementor-nav-menu {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  min-height: calc(100vh - 180px) !important;
}

/* Big black Anton menu links */
.elementor-nav-menu--dropdown.elementor-nav-menu__container a.elementor-item,
.elementor-nav-menu--dropdown.elementor-nav-menu__container .elementor-item {
  color: #000 !important;
  font-family: 'Anton', sans-serif !important;
  font-size: clamp(30px, 9vw, 40px) !important;
  line-height: 1.1 !important;
  font-weight: 400 !important;          /* Anton is a single-weight face */
  text-align: center !important;
  padding: 22px 24px !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12) !important;
}

/* Hover / active / focus */
.elementor-nav-menu--dropdown.elementor-nav-menu__container a.elementor-item:hover,
.elementor-nav-menu--dropdown.elementor-nav-menu__container a.elementor-item:focus,
.elementor-nav-menu--dropdown.elementor-nav-menu__container a.elementor-item.elementor-item-active,
.elementor-nav-menu--dropdown.elementor-nav-menu__container a.elementor-item.highlighted {
  color: #000 !important;
  background-color: rgba(0, 0, 0, 0.06) !important;
}

/* Sub-menu items (nested links), if any */
.elementor-nav-menu--dropdown.elementor-nav-menu__container .elementor-sub-item {
  color: #000 !important;
  font-family: 'Anton', sans-serif !important;
}
.elementor-nav-menu--dropdown.elementor-nav-menu__container .elementor-sub-item:hover {
  background-color: rgba(0, 0, 0, 0.06) !important;
}

/* Burger / X toggle — mint so it reads on the dark header (which stays
   visible above the mint takeover panel). */
.elementor-menu-toggle {
  color: var(--bs-mint) !important;
}


/* --------------------------------------------------------------------------
   "UNCATEGORISED" LABEL ON PRODUCT CARDS  (29 Oct 2026)
   --------------------------------------------------------------------------
   The shop tiles (pre-designed armbands, awareness running tags, Football
   Legends mug) have no category, so Astra labels them "Uncategorised"
   ("Non classé" in French). Giving them a real one would list each tile
   inside its own landing page (those grids pull by category), so hide the
   label on every product grid — homepage, shop and category pages. The
   label is plain text, so this keys off the card's class: keep
   Uncategorised off any product that has another category, or its real
   label hides too. */
ul.products li.product.product_cat-uncategorised .ast-woo-product-category {
  display: none !important;
}


/* --------------------------------------------------------------------------
   LANGUAGE FLAG ON PHONES  (29 Oct 2026)
   --------------------------------------------------------------------------
   TranslatePress floats the flag at the top, 10% in from the left, which on
   a phone puts it right against the logo. On phones it sits in the top-left
   corner instead, with only its inside corner rounded so it reads as a tab
   tucked into the corner (Nick). Desktop keeps TranslatePress's own position
   (Settings → Language Switcher). */
@media (max-width: 767px) {
  .trp-floating-switcher.trp-switcher-position-top {
    left: 0 !important;
    border-radius: 0 0 16px 0 !important;
  }
}
