@charset "UTF-8";
/* ===============================
   TOPBAR
   =============================== */
.topbar {
  font-size: var(--fs-caption);
  color: #ffffff;
  background: #141414;
  text-transform: uppercase;
  text-align: center;
  user-select: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  padding: 14px;
}

.topbar span {
  display: none;
  opacity: 0;
}

.topbar span.active {
  display: block;
  opacity: 1;
}

@media (max-width: 767px) {
  .topbar {
    font-size: 12px;
  }
}
/* ===============================
   BURGER
   =============================== */
.burger {
  width: 30px;
  height: 26px;
  cursor: pointer;
  padding-top: 13px;
  display: none;
}

@media (max-width: 1120px) {
  .burger {
    display: block;
    margin-right: 15px;
  }
}
.burger .icon {
  width: 30px;
  height: 1.5px;
  background-color: #141414;
  position: relative;
  cursor: pointer;
  transition: 0.2s ease;
}

.burger .icon::before,
.burger .icon::after {
  content: "";
  position: absolute;
  width: 30px;
  height: 1.5px;
  left: 0;
  background-color: #141414;
  transition: 0.2s ease;
}

.burger .icon::before {
  top: -8px;
}

.burger .icon::after {
  top: 8px;
}

.burger .icon.active {
  background-color: transparent;
}

.burger .icon.active::before {
  top: 0;
  transform: rotate(45deg);
}

.burger .icon.active::after {
  top: 0;
  transform: rotate(-45deg);
}

/* ===============================
   HEADER
   =============================== */
.header {
  border-bottom: 1px solid #141414;
}

/* ===============================
   SITE HEADER GRID
   =============================== */
.site-header {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "logo nav burger search account_btn wishlist basket";
  align-items: center;
}

@media (max-width: 1120px) {
  .site-header {
    grid-template-columns: auto auto 1fr auto auto auto;
    grid-template-areas: "burger search logo account_btn wishlist basket";
    position: relative;
  }
}
.site-header ul {
  list-style: none;
}

/* ===============================
   LOGO
   =============================== */
.site-header .logo {
  display: block;
  grid-area: logo;
  justify-self: left;
}

.site-header .logo svg {
  width: 268px;
  height: 38px;
}

@media (max-width: 1120px) {
  .site-header .logo {
    justify-self: center;
  }
  .site-header .logo svg {
    width: 130px;
    height: 19px;
  }
}
/* ===============================
   HEADER ACTION BUTTONS
   =============================== */
.site-header .burger {
  grid-area: burger;
  justify-self: right;
}

.site-header .search {
  grid-area: search;
  justify-self: right;
  margin-right: 15px;
}

@media (max-width: 1120px) {
  .site-header .search {
    margin-right: 0;
  }
}
.site-header .account_btn {
  grid-area: account_btn;
  justify-self: right;
  margin-right: 15px;
}

@media (max-width: 1120px) {
  .site-header .account_btn {
    margin-right: 12px;
  }
}
.site-header .wishlist {
  grid-area: wishlist;
  justify-self: right;
  margin-right: 15px;
}

@media (max-width: 1120px) {
  .site-header .wishlist {
    margin-right: 12px;
  }
}
.site-header .basket_btn {
  grid-area: basket;
  justify-self: right;
  position: relative;
}

.site-header .basket_btn .count {
  width: 16px;
  height: 16px;
  font-size: 10px;
  font-weight: 300;
  background-color: #A6B4AB;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3px;
  position: absolute;
  top: -3px;
  right: -3px;
  border-radius: 50%;
}

/* ===============================
   NAVIGATION — CONTAINER
   =============================== */
.site-navigation {
  grid-area: nav;
}

@media (max-width: 1120px) {
  .site-navigation {
    position: fixed;
    top: 102px;
    left: 0;
    width: 100%;
    height: calc(100dvh - 102px);
    background: #fff;
    z-index: 9999;
    overflow: hidden;
    transform: translateY(-20px);
    visibility: hidden;
    opacity: 0;
    transition: 0.3s ease-in-out;
  }
  .site-navigation.active {
    transform: translateY(0);
    visibility: visible;
    opacity: 1;
  }
}
/* ===============================
   NAVIGATION — TOP-LEVEL LIST
   =============================== */
.site-navigation__nav {
  justify-content: center;
  list-style: none;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 12;
  margin: 0;
}

@media (max-width: 1120px) {
  .site-navigation__nav {
    flex-direction: column;
    align-items: flex-start;
    padding: 30px 15px;
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    justify-content: initial;
  }
}
/* ===============================
   NAV LINKS — SHARED BASE
   =============================== */
.site-navigation__nav a {
  position: relative;
  font-size: var(--fs-body);
  font-weight: 600;
  color: #141414;
  user-select: none;
  cursor: pointer;
  display: block;
}

/* Hover underline on all nav links */
.site-navigation__nav a::after {
  content: "";
  width: 0;
  height: 1px;
  background-color: #141414;
  position: absolute;
  bottom: 0;
  left: 15px;
  transition: 0.2s ease;
}

.site-navigation__nav a:hover::after {
  width: calc(100% - 30px);
}

@media (min-width: 1120px) and (max-width: 1520px) {
  .site-navigation__nav a {
    font-size: var(--fs-caption);
  }
}
@media (max-width: 1120px) {
  .site-navigation__nav a {
    width: 100%;
    padding: 5px 8px;
  }
}
/* ===============================
   TOP-LEVEL ITEMS
   =============================== */
.site-navigation__nav > li {
  position: relative;
}

.site-navigation__nav > li > a {
  padding: 5px 15px;
}

@media (min-width: 1120px) and (max-width: 1520px) {
  .site-navigation__nav > li > a {
    padding: 5px 10px;
  }
}
@media (max-width: 1120px) {
  .site-navigation__nav > li {
    width: 100%;
    position: initial;
    border-bottom: 1px solid #979797;
  }
  .site-navigation__nav > li > a {
    padding: 20px 15px;
    font-size: var(--fs-body);
  }
}
/* ===============================
   EXPAND ARROW → (has-children)
   =============================== */
.site-navigation__nav li.menu-item-has-children > a {
  padding-right: 35px;
}

.site-navigation__nav li.menu-item-has-children > a::before {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 18px;
  background-image: url("/wp-content/themes/serum/assets/images/arrow-right.svg");
  background-repeat: no-repeat;
  background-size: contain;
  background-color: transparent;
  transition: transform 0.3s ease;
  /* Reset — prevent inheriting underline positioning */
  left: auto;
  bottom: auto;
}

/* Desktop: rotate arrow when submenu is open */
@media (min-width: 1121px) {
  .site-navigation__nav li.menu-item-has-children.active > a::before {
    transform: translateY(-50%) rotate(90deg);
  }
}

/* Desktop: top-level items are separate sections, not a breadcrumb trail —
   drop the ">" expand arrow and even out the spacing. Submenu arrows and the
   mobile expand affordance keep their arrows. */
@media (min-width: 1121px) {
  .site-navigation__nav > li.menu-item-has-children > a::before {
    content: none;
  }
  .site-navigation__nav > li.menu-item-has-children > a {
    padding-right: 15px;
  }
}
@media (min-width: 1121px) and (max-width: 1520px) {
  .site-navigation__nav > li.menu-item-has-children > a {
    padding-right: 10px;
  }
}
/* ===============================
   SUBMENU LEVEL 1 (dropdown)
   =============================== */
.site-navigation__nav > li > .sub-menu {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: absolute;
  list-style: none;
  top: calc(100% + 32px);
  width: 312px;
  background: #ECECEC;
  padding: 60px 24px;
  transform: translateY(-20px);
  visibility: hidden;
  opacity: 0;
  transition: 0.3s ease-in-out;
}

.site-navigation__nav > li > .sub-menu.active {
  transform: translateY(0);
  visibility: visible;
  opacity: 1;
}

.site-navigation__nav > li > .sub-menu > li > a {
  padding: 5px 15px;
}

/* ===============================
   SUBMENU LEVEL 2 (flyout)
   =============================== */
.site-navigation__nav .sub-menu .sub-menu {
  display: flex;
  flex-direction: column;
  gap: 20px;
  list-style: none;
  position: absolute;
  left: 312px;
  top: 0;
  width: 340px;
  height: fit-content;
  padding: 60px 45px;
  background-color: #fff;
  transform: translateY(-20px);
  visibility: hidden;
  opacity: 0;
  transition: 0.3s ease-in-out;
}

.site-navigation__nav .sub-menu .sub-menu.active {
  transform: translateY(0);
  visibility: visible;
  opacity: 1;
}

.site-navigation__nav .sub-menu .sub-menu > li {
  position: relative;
}

.site-navigation__nav .sub-menu .sub-menu > li > a {
  padding: 5px 15px;
}

/* ===============================
   BACK BUTTONS (mobile only)
   =============================== */
.site-navigation__nav .back_nav,
.site-navigation__nav .back_shop {
  display: none;
}

.site-navigation__nav li.back-btn button {
  background: transparent;
  border: none;
  font-size: var(--fs-body);
  padding: 14px;
  color: #141414 !important;
  cursor: pointer;
}

@media (max-width: 1120px) {
  .site-navigation__nav .back_nav,
  .site-navigation__nav .back_shop {
    display: flex;
    gap: 10px;
    align-items: center;
    border-bottom: 1px solid #979797;
    padding: 14px 8px;
    cursor: pointer;
  }
  .site-navigation__nav .back_nav::before,
  .site-navigation__nav .back_shop::before {
    content: "";
    width: 10px;
    height: 18px;
    display: block;
    background-image: url("/wp-content/themes/serum/assets/images/arrow-right.svg");
    background-repeat: no-repeat;
    background-size: contain;
    transform: rotate(180deg);
    flex-shrink: 0;
  }
  .site-navigation__nav li.back-btn {
    border-bottom: 1px solid #979797;
  }
}
@media (max-width: 1120px) {
  .site-navigation {
    position: fixed;
    /* Dynamic — set by JS via CSS custom property */
    top: var(--header-height, 102px);
    left: 0;
    width: 100%;
    /* 100svh = small viewport height — ignores iOS toolbar */
    height: calc(100svh - var(--header-height, 102px));
    background: #fff;
    z-index: 9999;
    overflow: hidden;
    transform: translateY(-20px);
    visibility: hidden;
    opacity: 0;
    transition: 0.3s ease-in-out;
    /* iOS Safari: tell browser this will scroll */
    will-change: transform;
    -webkit-overflow-scrolling: touch;
  }
  .site-navigation.active {
    transform: translateY(0);
    visibility: visible;
    opacity: 1;
  }
}
/* ===============================
   MOBILE NAVIGATION
   =============================== */
@media (max-width: 1120px) {
  /* Header must be sticky — menu positions relative to it */
  .topbar {
    position: sticky;
    top: 0;
    z-index: 9998;
  }
  .header {
    position: sticky;
    top: var(--topbar-height, 44px);
    z-index: 9997;
    background: #fff;
  }
  /* Nav panel — absolute to header, covers screen below it */
  .site-navigation {
    position: absolute;
    top: 100%;
    left: -3%;
    width: 106%;
    height: 100dvh;
    background: #fff;
    z-index: 9999;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
  }
  .section.header {
    position: sticky;
  }
  .site-navigation.active {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.3s ease, visibility 0s linear 0s;
  }
  /* -----------------------------------------------
     Top level nav list — scrollable
  ----------------------------------------------- */
  .site-navigation__nav {
    flex-direction: column;
    align-items: flex-start;
    padding: 30px 15px;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  /* -----------------------------------------------
     Submenu panels — absolute inside .site-navigation
     NO fixed, NO transform on parent
  ----------------------------------------------- */
  .site-navigation__nav > li > .sub-menu {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 30px 15px;
    margin: 0;
    z-index: 10;
    /* Slide from right */
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.3s ease, visibility 0s linear 0.3s;
    /* Reset desktop styles */
    opacity: 1;
    gap: 0;
    flex-direction: column;
  }
  .site-navigation__nav > li > .sub-menu.active {
    transform: translateX(0);
    visibility: visible;
    transition: transform 0.3s ease, visibility 0s linear 0s;
  }
  /* Level 2 — same, stacks above level 1 */
  .site-navigation__nav .sub-menu .sub-menu {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 30px 15px;
    margin: 0;
    z-index: 11;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.3s ease, visibility 0s linear 0.3s;
    /* Reset desktop styles */
    opacity: 1;
    height: 100%;
  }
  .site-navigation__nav .sub-menu .sub-menu.active {
    transform: translateX(0);
    visibility: visible;
    transition: transform 0.3s ease, visibility 0s linear 0s;
  }
}
.site-navigation__nav .sub-menu {
  pointer-events: auto;
}

.site-navigation__nav > li > a {
  position: relative;
  z-index: 2;
}
