/* ==========================================
   JS BEAUTY MOBILE BOTTOM NAVIGATION V63
   Homepage only - compact floating layout
========================================== */

.mobile-bottom.jsb-mobile-bottom { display: none; }

@media (max-width: 700px) {
  /* The nav is rendered only on index.php. Keep the footer blush background
     extending behind the fixed bar so there is no white gap at page end. */
  body { padding-bottom: 0; }

  .premium-beauty-footer {
    margin-bottom: 0;
    padding-bottom: 0;
  }

  /* Keep the footer's blush background continuing behind the fixed bar. */
  .premium-beauty-footer .footer-shell {
    padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px));
  }

  body > .mobile-bottom.jsb-mobile-bottom {
    position: fixed;
    z-index: 90;
    left: 8px;
    right: 8px;
    bottom: 0;
    width: auto;
    height: calc(60px + env(safe-area-inset-bottom, 0px));
    margin: 0;
    padding: 5px 6px calc(5px + env(safe-area-inset-bottom, 0px));
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: stretch;
    overflow: visible;
    isolation: isolate;
    border: 1px solid #f1dce3;
    border-bottom: 0;
    border-radius: 24px 24px 0 0;
    background: rgba(255,255,255,.98);
    box-shadow: 0 -5px 20px rgba(190,40,90,.10);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }

  .mobile-bottom__item {
    position: relative;
    min-width: 0;
    height: 100%;
    padding: 2px 1px 1px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    border-radius: 14px;
    color: #18171a;
    -webkit-tap-highlight-color: transparent;
    transition: color .2s ease, background .2s ease, transform .2s ease;
  }

  .mobile-bottom__icon {
    position: relative;
    width: 27px;
    height: 25px;
    display: grid;
    place-items: center;
    border-radius: 10px;
  }

  .mobile-bottom__icon svg,
  .mobile-bottom__sale-button svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.85;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .mobile-bottom__item small {
    display: block;
    min-width: 0;
    max-width: 100%;
    color: inherit;
    font-size: 10.5px;
    line-height: 1;
    font-weight: 650;
    white-space: nowrap;
  }

  .mobile-bottom__item.active:not(.mobile-bottom__sale) {
    color: #e72c62;
    background: #fff6f9;
  }

  .mobile-bottom__item.active:not(.mobile-bottom__sale) .mobile-bottom__icon {
    transform: translateY(-1px);
  }

  .mobile-bottom__sale {
    justify-content: flex-end;
    padding-bottom: 2px;
    color: #d91f56;
  }

  .mobile-bottom__sale-button {
    position: absolute;
    top: -22px;
    left: 50%;
    width: 54px;
    height: 54px;
    transform: translateX(-50%);
    display: grid;
    place-items: center;
    border: 4px solid #fff;
    border-radius: 50%;
    background: #e72c62;
    color: #fff;
    box-shadow: 0 7px 18px rgba(231,44,98,.23);
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
  }

  .mobile-bottom__sale-button svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
    stroke: currentColor;
    stroke-width: 1.25;
  }

  .mobile-bottom__sale small {
    margin-top: 29px;
    color: #d91f56;
    font-size: 11px;
    font-weight: 750;
  }

  .mobile-bottom__cart .mobile-bottom__icon { overflow: visible; }

  .mobile-bottom__badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    display: grid;
    place-items: center;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #e72c62;
    color: #fff;
    font-size: 8.5px;
    line-height: 1;
    font-style: normal;
    font-weight: 800;
    box-shadow: 0 2px 7px rgba(231,44,98,.18);
  }
}

@media (max-width: 390px) {
  body > .mobile-bottom.jsb-mobile-bottom {
    left: 6px;
    right: 6px;
    height: calc(58px + env(safe-area-inset-bottom, 0px));
    border-radius: 22px 22px 0 0;
  }

  .mobile-bottom__item small { font-size: 10px; }
  .mobile-bottom__sale-button { width: 52px; height: 52px; top: -21px; }
  .mobile-bottom__sale small { font-size: 10.5px; }
}

@media (max-width: 360px) {
  body > .mobile-bottom.jsb-mobile-bottom { left: 4px; right: 4px; }
  .mobile-bottom__icon { width: 25px; }
  .mobile-bottom__icon svg { width: 20px; height: 20px; }
  .mobile-bottom__sale-button { width: 50px; height: 50px; }
  .mobile-bottom__sale-button svg { width: 22px; height: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-bottom__item,
  .mobile-bottom__sale-button { transition-duration: .01ms; }
}
