

/* ============================================================
   RACELOCK PRO HEADER
   ============================================================ */

#racelock-header {

  --rl-bg: #0c0d11;
  --rl-bg-2: #111319;

  --rl-white: #f7f7f8;
  --rl-text: #d9dadd;
  --rl-muted: #a9adb5;

  --rl-accent: #bf2d2d;
  --rl-accent-light: #e77476;
  --rl-accent-soft: rgba(191,45,45,.13);

  --rl-border: rgba(255,255,255,.09);

  position: relative;

  z-index: 999;

  width: 100%;
  height: 60px;

  margin: 0 !important;
  padding: 0 !important;

  box-sizing: border-box;

  color: var(--rl-white);

  background:
    linear-gradient(
      180deg,
      var(--rl-bg-2) 0%,
      var(--rl-bg) 100%
    );

  border-top: 1px solid rgba(255,255,255,.07);
  border-bottom: 1px solid var(--rl-border);

}

#racelock-header :is(a, button, select):focus-visible {
  outline: 2px solid var(--rl-accent-light);
  outline-offset: 3px;
}


/* ============================================================
   SHOPIFY SECTION RESET
   ============================================================ */

#shopify-section-header,
.shopify-section-group-header-group,
.shopify-section-group-header-group > .shopify-section {

  margin: 0 !important;
  padding: 0 !important;

  background: var(--rl-bg) !important;

}


/* ============================================================
   GRID
   ============================================================ */

#racelock-header .rl-header__grid {

  position: absolute;

  inset: 0;

  pointer-events: none;

  opacity: .36;

  background-image:

    linear-gradient(
      rgba(255,255,255,.022) 1px,
      transparent 1px
    ),

    linear-gradient(
      90deg,
      rgba(255,255,255,.022) 1px,
      transparent 1px
    );

  background-size: 54px 54px;

}


/* ============================================================
   SUBTELNA CZERWONA POŚWIATA
   ============================================================ */

#racelock-header::after {

  content: "";

  position: absolute;

  width: min(520px, 100%);
  height: 130px;

  left: 50%;
  top: -100px;

  transform: translateX(-50%);

  background:
    rgba(191,45,45,.10);

  filter: blur(60px);

  pointer-events: none;

}


/* ============================================================
   INNER
   ============================================================ */

#racelock-header .rl-header__inner {

  position: relative;

  z-index: 2;

  width: min(
    1380px,
    calc(100% - 80px)
  );

  height: 100%;

  margin: 0 auto;

  display: flex;

  align-items: center;

  box-sizing: border-box;

}


/* ============================================================
   LOGO
   ============================================================ */

#racelock-header .rl-logo {

  display: flex;

  align-items: center;

  flex-shrink: 0;

  color: white;

  text-decoration: none;

}


#racelock-header .rl-logo__image {

  display: block;

  width: auto;

  max-width: 160px;
  max-height: 58px;

  object-fit: contain;

}


#racelock-header .rl-logo__fallback {

  width: 42px;
  height: 42px;

  display: flex;

  align-items: center;
  justify-content: center;

  flex-shrink: 0;

  border-radius: 10px;

  background: var(--rl-accent);

  color: var(--rl-white);

  font-size: 20px;

  font-weight: 900;

  box-shadow:
    0 0 25px rgba(191,45,45,.24);

}


#racelock-header .rl-logo__fallback-text {

  margin-left: 10px;

  font-size: 16px;

  font-weight: 800;

  letter-spacing: -.5px;

}


#racelock-header .rl-logo__fallback-text span {

  font-weight: 500;

}


/* ============================================================
   DESKTOP NAV
   ============================================================ */

#racelock-header .rl-nav {

  height: 100%;

  margin-left: auto;
  margin-right: 48px;

  display: flex;

  align-items: stretch;

  gap: 0;

}


/* NAV ITEM */

#racelock-header .rl-nav__item {

  position: relative;

  height: 100%;

  display: flex;

  align-items: stretch;

}


/* NAV LINK */

#racelock-header .rl-nav__link {

  position: relative;

  height: 100%;

  padding: 0 20px;

  display: flex;

  align-items: center;

  gap: 8px;

  color: var(--rl-text);

  text-decoration: none;

  font-size: 15px;

  font-weight: 500;

  white-space: nowrap;

  transition:
    color .2s ease;

}


/* ACTIVE / HOVER */

#racelock-header .rl-nav__link:hover,
#racelock-header .rl-nav__link.is-active {

  color: #fff;

}


#racelock-header .rl-nav__link.is-active {

  font-weight: 700;

}


/* BRAND ACTIVE LINE */

#racelock-header .rl-nav__link::after {

  content: "";

  position: absolute;

  left: 20px;
  right: 20px;

  bottom: 0;

  height: 2px;

  background: var(--rl-accent);

  box-shadow:
    0 0 14px rgba(191,45,45,.48);

  transform:
    scaleX(0);

  transform-origin: center;

  transition:
    transform .22s ease;

}


#racelock-header .rl-nav__link:hover::after,
#racelock-header .rl-nav__link.is-active::after {

  transform: scaleX(1);

}


/* CHEVRON */

#racelock-header .rl-nav__chevron {

  width: 9px;
  height: 6px;

  color: var(--rl-muted);

}


/* ============================================================
   DESKTOP DROPDOWN
   ============================================================ */

#racelock-header .rl-dropdown {

  position: absolute;

  top: calc(100% + 1px);

  left: 50%;

  min-width: 210px;

  padding-top: 10px;

  transform:
    translate(-50%, -8px);

  opacity: 0;

  visibility: hidden;

  pointer-events: none;

  transition:
    opacity .18s ease,
    transform .18s ease,
    visibility .18s ease;

}


#racelock-header .rl-dropdown__inner {

  padding: 7px;

  border: 1px solid rgba(255,255,255,.08);

  border-radius: 10px;

  background:
    rgba(17,19,25,.98);

  box-shadow:
    0 20px 50px rgba(0,0,0,.4);

}


#racelock-header .rl-nav__item:hover .rl-dropdown,
#racelock-header .rl-nav__item:focus-within .rl-dropdown {

  opacity: 1;

  visibility: visible;

  pointer-events: auto;

  transform:
    translate(-50%, 0);

}


#racelock-header .rl-dropdown__link {

  display: block;

  padding: 12px 14px;

  border-radius: 7px;

  color: #d7d8dc;

  text-decoration: none;

  font-size: 14px;

  transition:
    background .15s ease,
    color .15s ease;

}


#racelock-header .rl-dropdown__link:hover,
#racelock-header .rl-dropdown__link.is-active {

  background:
    var(--rl-accent-soft);

  color: var(--rl-accent-light);

}


/* ============================================================
   ACTIONS
   ============================================================ */

#racelock-header .rl-actions {

  display: flex;

  align-items: center;

  gap: 23px;

  flex-shrink: 0;

}


/* ============================================================
   LOCALIZATION
   ============================================================ */

#racelock-header .rl-localization {

  position: relative;

  display: flex;

  align-items: center;

  gap: 7px;

  color: #eeeeef;

  font-size: 14px;

  white-space: nowrap;

}


#racelock-header .rl-localization form {

  margin: 0;

}


#racelock-header .rl-country-select {

  appearance: none;

  -webkit-appearance: none;

  border: 0;

  outline: 0;

  padding: 0 12px 0 0;

  margin: 0;

  background: transparent;

  color: #eeeeef;

  font: inherit;

  cursor: pointer;

}


#racelock-header .rl-country-select option {

  background: #15171d;

  color: white;

}


#racelock-header .rl-localization__chevron {

  width: 9px;
  height: 6px;

  margin-left: -16px;

  color: #999ca3;

  pointer-events: none;

}


#racelock-header .rl-flag {

  position: relative;

  width: 15px;
  height: 15px;

  overflow: hidden;

  flex-shrink: 0;

  border-radius: 50%;

  background: white;

}


#racelock-header .rl-flag::after {

  content: "";

  position: absolute;

  left: 0;
  right: 0;
  bottom: 0;

  height: 50%;

  background: #dc143c;

}


/* ============================================================
   CART
   ============================================================ */

#racelock-header .rl-cart {

  position: relative;

  width: 25px;
  height: 25px;

  display: flex;

  align-items: center;
  justify-content: center;

  color: white;

  text-decoration: none;

  transition:
    color .2s ease,
    transform .2s ease;

}


#racelock-header .rl-cart:hover {

  color: var(--rl-accent-light);

  transform: translateY(-1px);

}


#racelock-header .rl-cart svg {

  width: 23px;
  height: 23px;

}


#racelock-header .rl-cart__count {

  position: absolute;

  top: -7px;
  right: -8px;

  min-width: 17px;
  height: 17px;

  padding: 0 4px;

  display: flex;

  align-items: center;
  justify-content: center;

  box-sizing: border-box;

  border-radius: 50%;

  background: var(--rl-accent);

  color: var(--rl-white);

  font-size: 9px;

  font-weight: 800;

}


/* ============================================================
   MOBILE BUTTON
   ============================================================ */

#racelock-header .rl-mobile-toggle {

  display: none;

  width: 40px;
  height: 40px;

  padding: 0;

  border: 1px solid rgba(255,255,255,.10);

  border-radius: 8px;

  background:
    rgba(255,255,255,.025);

  cursor: pointer;

}


#racelock-header .rl-mobile-toggle span {

  display: block;

  width: 18px;
  height: 2px;

  margin: 4px auto;

  border-radius: 2px;

  background: white;

  transition:
    transform .2s ease,
    opacity .2s ease;

}


/* ============================================================
   MOBILE MENU
   ============================================================ */

#racelock-header .rl-mobile-menu {

  display: none;

}


/* ============================================================
   TABLET
   ============================================================ */

@media (max-width: 1150px) {

  #racelock-header .rl-header__inner {

    width:
      calc(100% - 40px);

  }


  #racelock-header .rl-nav {

    margin-right: 25px;

  }


  #racelock-header .rl-nav__link {

    padding-left: 13px;
    padding-right: 13px;

  }


  #racelock-header .rl-nav__link::after {

    left: 13px;
    right: 13px;

  }

}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 760px) {

  #racelock-header {

    height: 68px;

  }


  #racelock-header .rl-header__inner {

    width:
      calc(100% - 28px);

  }


  #racelock-header .rl-logo__image {

    max-width: 135px;
    max-height: 52px;

  }


  #racelock-header .rl-nav {

    display: none;

  }


  #racelock-header .rl-actions {

    margin-left: auto;

    gap: 16px;

  }


  #racelock-header .rl-localization {

    display: none;

  }


  #racelock-header .rl-mobile-toggle {

    display: block;

  }


  /* MOBILE MENU */

  #racelock-header .rl-mobile-menu {

    position: absolute;

    left: 0;
    right: 0;

    top: 67px;

    display: block;

    box-sizing: border-box;

    padding:
      8px 20px 20px;

    background:
      var(--rl-bg);

    border-bottom:
      1px solid rgba(255,255,255,.08);

    box-shadow:
      0 20px 45px rgba(0,0,0,.45);

    opacity: 0;

    visibility: hidden;

    transform:
      translateY(-8px);

    transition:
      opacity .2s ease,
      transform .2s ease,
      visibility .2s ease;

  }


  #racelock-header .rl-mobile-menu.is-open {

    opacity: 1;

    visibility: visible;

    transform:
      translateY(0);

  }


  /* MOBILE LINK */

  #racelock-header .rl-mobile-link {

    min-height: 54px;

    padding: 0 5px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    box-sizing: border-box;

    border-bottom:
      1px solid rgba(255,255,255,.07);

    color: #e7e8eb;

    text-decoration: none;

    font-size: 15px;

    font-weight: 600;

  }


  #racelock-header .rl-mobile-link.is-active {

    color:
      var(--rl-accent-light);

  }


  #racelock-header .rl-mobile-arrow {

    color:
      var(--rl-accent-light);

    font-size: 20px;

    font-weight: 400;

  }


  /* MOBILE SUBMENU */

  #racelock-header .rl-mobile-submenu {

    display: flex;

    flex-direction: column;

    padding-left: 15px;

    border-bottom:
      1px solid rgba(255,255,255,.07);

  }


  #racelock-header .rl-mobile-sublink {

    padding:
      12px 5px;

    color:
      #aaaeb5;

    text-decoration: none;

    font-size: 14px;

  }


  #racelock-header .rl-mobile-sublink.is-active {

    color:
      var(--rl-accent-light);

  }


  /* HAMBURGER OPEN */

  #racelock-header .rl-mobile-toggle.is-open span:nth-child(1) {

    transform:
      translateY(6px)
      rotate(45deg);

  }


  #racelock-header .rl-mobile-toggle.is-open span:nth-child(2) {

    opacity: 0;

  }


  #racelock-header .rl-mobile-toggle.is-open span:nth-child(3) {

    transform:
      translateY(-6px)
      rotate(-45deg);

  }

}


/* ============================================================
   SMALL MOBILE
   ============================================================ */

@media (max-width: 430px) {

  #racelock-header .rl-header__inner {

    width:
      calc(100% - 20px);

  }


  #racelock-header .rl-logo__fallback-text {

    display: none;

  }


  #racelock-header .rl-logo__image {

    max-width: 120px;

  }

}


/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

  #racelock-header *,
  #racelock-header *::before,
  #racelock-header *::after {

    transition: none !important;

  }

}

