/* Mobiele appnavigatie — alleen globale presentatiestijlen. */
.cc-app-nav { display: none; }

@media (max-width: 900px) {
  body.has-cc-app-nav { padding-bottom: calc(4.9rem + env(safe-area-inset-bottom)); }

  .cc-app-nav {
    position: fixed;
    z-index: 160;
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    border-top: 1px solid rgba(16, 25, 30, .1);
    padding: .38rem .45rem max(.38rem, env(safe-area-inset-bottom));
    background: rgba(252, 252, 250, .94);
    box-shadow: 0 -.8rem 2.2rem rgba(16, 25, 30, .1);
    backdrop-filter: blur(18px) saturate(1.25);
  }

  .cc-app-nav__inner {
    display: grid;
    width: min(100%, 34rem);
    margin-inline: auto;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: .12rem;
  }

  .cc-app-nav__item {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 3.75rem;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: .18rem;
    border-radius: .9rem;
    color: #65706a;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
  }

  .cc-app-nav__item::before {
    position: absolute;
    top: .02rem;
    width: 1.25rem;
    height: .18rem;
    border-radius: 999px;
    opacity: 0;
    background: #118458;
    content: "";
    transform: scaleX(.45);
    transition: opacity .18s ease, transform .18s ease;
  }

  .cc-app-nav__item.is-active {
    color: #11191d;
    background: #edf3ef;
  }

  .cc-app-nav__item.is-active::before { opacity: 1; transform: scaleX(1); }
  .cc-app-nav__item:active { transform: scale(.96); }

  .cc-app-nav__icon {
    position: relative;
    display: grid;
    width: 1.7rem;
    height: 1.7rem;
    place-items: center;
  }

  .cc-app-nav__icon svg {
    width: 1.45rem;
    height: 1.45rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.75;
  }

  .cc-app-nav__icon.is-receiving {
    animation: cc-cart-receive .42s cubic-bezier(.2,.8,.2,1);
  }

  .cc-app-nav__item--monster.is-active { color: #3e7d17; background: #eef6e8; }
  .cc-app-nav__item--red-bull.is-active { color: #073f8c; background: #eaf2fb; }
  .cc-app-nav__item--cart.is-active { color: #a8131a; background: #faecec; }

  .cc-app-nav__label {
    max-width: 100%;
    overflow: hidden;
    font-size: .61rem;
    font-weight: 850;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .cc-app-nav__cart-count {
    position: absolute;
    top: -.28rem;
    right: -.42rem;
    display: grid;
    min-width: 1.05rem;
    height: 1.05rem;
    place-items: center;
    border: 2px solid #fff;
    border-radius: 999px;
    padding-inline: .14rem;
    color: #fff;
    background: #d21c24;
    font-size: .54rem;
    font-weight: 950;
    line-height: 1;
  }

  body.has-cc-app-nav .cc-purchase-bar {
    bottom: calc(4.5rem + env(safe-area-inset-bottom));
    z-index: 150;
    padding-bottom: .55rem;
  }
}

@keyframes cc-cart-receive {
  0%, 100% { transform: scale(1); }
  45% { transform: scale(1.28) rotate(-7deg); }
}

@media (prefers-reduced-motion: reduce) {
  .cc-app-nav__icon.is-receiving { animation: none; }
}

@media (max-width: 360px) {
  .cc-app-nav { padding-inline: .2rem; }
  .cc-app-nav__item { min-height: 3.55rem; border-radius: .7rem; }
  .cc-app-nav__label { font-size: .56rem; }
}

.cc-cart-toast {
  position: fixed;
  z-index: 175;
  right: .75rem;
  bottom: calc(5.45rem + env(safe-area-inset-bottom));
  left: .75rem;
  display: flex;
  width: min(calc(100% - 1.5rem), 24rem);
  min-height: 2.85rem;
  margin-inline: auto;
  align-items: center;
  gap: .55rem;
  border: 1px solid rgba(17,132,88,.16);
  border-radius: .9rem;
  padding: .58rem .68rem;
  color: #173126;
  background: rgba(250,253,251,.96);
  box-shadow: 0 .7rem 2rem rgba(16,25,30,.16);
  opacity: 0;
  pointer-events: none;
  transform: translateY(.7rem) scale(.98);
  transition: opacity .24s ease, transform .24s ease;
  backdrop-filter: blur(16px);
  font-size: .73rem;
  font-weight: 800;
}

.cc-cart-toast.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0) scale(1); }
.cc-cart-toast.is-error { border-color: rgba(190,28,38,.2); color: #73151b; }
.cc-cart-toast__icon { display: grid; flex: 0 0 1.45rem; height: 1.45rem; place-items: center; border-radius: 50%; color: #fff; background: #118458; font-size: .78rem; }
.cc-cart-toast.is-error .cc-cart-toast__icon { background: #be1c26; }
.cc-cart-toast a { margin-left: auto; color: inherit; font-size: .7rem; font-weight: 900; text-decoration: underline; text-underline-offset: .14rem; }

@media (prefers-reduced-motion: reduce) {
  .cc-cart-toast { transition: none; }
}
