/* Site header styling: the sticky bar, its nav links and the Products dropdown.
 *
 * One copy, linked once from BaseLayout. These 14 rules previously lived inside
 * every page's own inline <style> block -- 120 copies -- and had drifted into
 * three versions. 19 product pages rendered .nav-dropdown__item at 17px while
 * 98 other pages used 15px, and two pages were missing the
 * -webkit-backdrop-filter prefixes. The markup was already a shared component;
 * the CSS was not, so nothing stopped it diverging.
 *
 * Taken from the 17px, fully vendor-prefixed variant.
 *
 * ORDER: linked before the page's own CSS and before Tailwind, matching where
 * these rules sat when they were inline. See the comment in BaseLayout.astro --
 * stylesheet order on this site is load-bearing.
 */

/* Header — transparent at top, frosted glass on scroll (whatsapp.com behavior) */
  .site-header {
    background: transparent;
    border-bottom: 1px solid transparent;
    -webkit-backdrop-filter: blur(0px);
    backdrop-filter: blur(0px);
    transition: background-color .25s ease, border-color .25s ease, box-shadow .25s ease, backdrop-filter .25s ease, -webkit-backdrop-filter .25s ease;
  }

.site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.72);
    border-bottom-color: rgba(209, 215, 219, 0.6);
    box-shadow: 0 1px 3px rgba(11, 11, 11, .04);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    backdrop-filter: saturate(180%) blur(16px);
  }

/* Header nav — whatsapp.com spec */
  .nav-links { gap: 30px; flex-wrap: nowrap; white-space: nowrap; }

/* Products dropdown menu */
  .nav-dropdown { position: relative; }

.nav-dropdown__menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 760px;
    background: #ffffff;
    border: 1px solid #d1d7db;
    border-radius: 16px;
    box-shadow: 0 20px 50px -10px rgba(11, 11, 11, 0.15), 0 4px 12px rgba(11, 11, 11, 0.06);
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
    z-index: 100;
  }

.nav-dropdown:hover .nav-dropdown__menu,
  .nav-dropdown:focus-within .nav-dropdown__menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }

.nav-dropdown__inner {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 32px;
  }

.nav-dropdown__menu--narrow { min-width: 320px; padding: 24px; }

.nav-dropdown__inner--single { display: block; grid-template-columns: none; gap: 0; }

.nav-dropdown__heading {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #54656f;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #d1d7db;
  }

.nav-dropdown__list { list-style: none; padding: 0; margin: 0; }

.nav-dropdown__item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 10px 12px;
    margin: 0 -12px;
    font-size: 17px;
    color: #111b21;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color .15s ease, color .15s ease;
    white-space: nowrap;
  }

.nav-dropdown__item:hover { background: #f7f8fa; color: #ad2b11; }

.nav-dropdown__badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ffffff;
    background: #ad2b11;
    border-radius: 999px;
  }
