
/* ONLINE PRICE — MOBILE BOTTOM CART */

@media (max-width: 700px) {

  .mobile-cart-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: flex-end;
    background: rgba(0,0,0,.65);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
  }

  .mobile-cart-backdrop.is-open {
    opacity: 1;
    visibility: visible;
  }

  .mobile-cart-sheet {
    width: 100%;
    max-height: 88dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #101a15;
    border: 1px solid rgba(166,255,24,.3);
    border-radius: 20px 20px 0 0;
    transform: translateY(100%);
    transition: transform .28s ease;
    box-shadow: 0 -8px 35px rgba(0,0,0,.4);
    padding-bottom: env(safe-area-inset-bottom);
  }

  .mobile-cart-backdrop.is-open .mobile-cart-sheet {
    transform: translateY(0);
  }

  .mobile-cart-sheet-header {
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(166,255,24,.18);
    color: #c1ff34;
    font-size: 18px;
  }

  .mobile-cart-sheet-header button {
    border: 0;
    background: transparent;
    color: white;
    font-size: 30px;
    line-height: 1;
  }

  .mobile-cart-sheet-content {
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 12px 14px 20px;
  }

  .mobile-cart-sheet-content > aside.panel {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  .mobile-cart-sheet-content > aside.panel > h2 {
    display: none !important;
  }

  .mobile-cart-no-scroll {
    overflow: hidden !important;
  }

}


/* MOBILE CART — FIXED CHECKOUT FOOTER */

@media (max-width: 700px) {

  .mobile-cart-sheet-footer {
    flex-shrink: 0;
    padding: 12px 16px calc(14px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(166,255,24,.22);
    background: #0b120e;
    box-shadow: 0 -5px 18px rgba(0,0,0,.25);
  }

  .mobile-cart-sheet-footer .total {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin: 0 0 12px !important;
    padding: 0 !important;
    color: #f2fff3 !important;
    font-size: 17px !important;
    font-weight: 800 !important;
  }

  .mobile-cart-sheet-footer .checkout-open {
    display: block !important;
    width: 100% !important;
    min-height: 51px !important;
    margin: 0 !important;
    border-radius: 11px !important;
    font-size: 16px !important;
    font-weight: 800 !important;
  }

}


/* ONLINE PRICE — FIXED MOBILE ORDER BAR */

@media (max-width: 700px) {

  .mobile-fixed-order-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9998;
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 11px 15px calc(12px + env(safe-area-inset-bottom));
    background: #0b120e;
    border-top: 1px solid rgba(166,255,24,.3);
    box-shadow: 0 -5px 22px rgba(0,0,0,.4);
    box-sizing: border-box;
    transform: translateY(110%);
    visibility: hidden;
    transition: transform .25s ease, visibility .25s ease;
  }

  .mobile-fixed-order-bar.is-visible {
    transform: translateY(0);
    visibility: visible;
  }

  .mobile-fixed-order-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #f2fff3;
    font-size: 16px;
    font-weight: 800;
  }

  .mobile-fixed-order-total strong {
    color: #a6ff18;
    font-size: 21px;
    font-weight: 900;
  }

  .mobile-fixed-order-button {
    display: block;
    width: 100%;
    min-height: 49px;
    border: 1px solid #c6ff65;
    border-radius: 11px;
    background: linear-gradient(135deg,#bdff17,#78dc00);
    color: #071000;
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
  }

  body.mobile-bottom-cart-visible #store {
    padding-bottom: calc(100px + env(safe-area-inset-bottom)) !important;
  }

}


/* ONLINE PRICE — NEON MOBILE CART DESIGN V1 */

@media (max-width: 700px) {

  .mobile-cart-sheet {
    background:
      radial-gradient(ellipse at 50% 0%, rgba(85,150,15,.12), transparent 48%),
      #07100b !important;
    border: 1px solid rgba(166,255,24,.65) !important;
    border-radius: 20px 20px 0 0 !important;
    box-shadow: 0 -8px 35px rgba(0,0,0,.6),
                0 0 22px rgba(166,255,24,.12) !important;
  }

  .mobile-cart-sheet-header {
    background: linear-gradient(110deg,#142719,#07100b) !important;
    color: #baff27 !important;
    border-bottom: 1px solid rgba(166,255,24,.35) !important;
    padding: 17px 18px !important;
    font-size: 19px !important;
    text-shadow: 0 0 12px rgba(166,255,24,.3);
  }

  .mobile-cart-sheet-header button {
    color: #fff !important;
    font-weight: 800 !important;
  }

  .mobile-cart-sheet-content {
    background: transparent !important;
    color: #eff8f0 !important;
  }

  .mobile-cart-sheet-content .cartline {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 13px 12px !important;
    margin-bottom: 8px !important;
    border: 1px solid rgba(166,255,24,.24) !important;
    border-radius: 12px !important;
    background: linear-gradient(120deg,#14231a,#0b140e) !important;
    color: #f2fff2 !important;
  }

  .mobile-cart-sheet-content .cartline b {
    color: #baff27 !important;
    white-space: nowrap !important;
  }

  .mobile-cart-sheet-content #cartWarehouse {
    color: #a7bdab !important;
    margin: 12px 0 !important;
  }

  .mobile-cart-sheet-content .cart-customer-fields label,
  .mobile-cart-sheet-content .cartbody > label {
    color: #eaffed !important;
    font-weight: 750 !important;
  }

  .mobile-cart-sheet-content .cart-customer-fields input,
  .mobile-cart-sheet-content #address {
    width: 100% !important;
    box-sizing: border-box !important;
    background: linear-gradient(135deg,#101d15,#07100b) !important;
    color: #f3fff3 !important;
    border: 1px solid rgba(166,255,24,.65) !important;
    border-radius: 10px !important;
    box-shadow: inset 0 0 12px rgba(166,255,24,.06),
                0 0 8px rgba(166,255,24,.08) !important;
    font-size: 15px !important;
  }

  .mobile-cart-sheet-content .cart-customer-fields input::placeholder,
  .mobile-cart-sheet-content #address::placeholder {
    color: #87968b !important;
  }

  .mobile-cart-sheet-content .cart-customer-fields input:focus,
  .mobile-cart-sheet-content #address:focus {
    outline: none !important;
    border-color: #baff27 !important;
    box-shadow: 0 0 13px rgba(166,255,24,.2) !important;
  }

  .mobile-cart-sheet-content .tracking-open,
  .mobile-cart-sheet-content #copy {
    background: linear-gradient(135deg,#baff27,#75dc00) !important;
    color: #091207 !important;
    border: 1px solid #caff65 !important;
    border-radius: 10px !important;
    font-weight: 850 !important;
    box-shadow: 0 0 13px rgba(166,255,24,.2) !important;
  }

  .mobile-cart-sheet-content #clear {
    background: #101a14 !important;
    color: #eaffed !important;
    border: 1px solid rgba(166,255,24,.45) !important;
    border-radius: 10px !important;
  }

  .mobile-cart-sheet-content .muted {
    color: #84998a !important;
  }

  .mobile-cart-sheet-footer {
    background: linear-gradient(110deg,#101d14,#07100b) !important;
    border-top: 1px solid rgba(166,255,24,.5) !important;
    box-shadow: 0 -5px 22px rgba(0,0,0,.45) !important;
  }

  .mobile-cart-sheet-footer .total {
    color: #f4fff3 !important;
  }

  .mobile-cart-sheet-footer .total span:last-child {
    color: #baff27 !important;
    text-shadow: 0 0 12px rgba(166,255,24,.3);
  }

  .mobile-cart-sheet-footer .checkout-open {
    background: linear-gradient(135deg,#c5ff32,#75e000) !important;
    color: #071000 !important;
    border: 1px solid #d0ff69 !important;
    border-radius: 12px !important;
    box-shadow: 0 0 20px rgba(166,255,24,.3) !important;
    font-weight: 900 !important;
  }

  /* Fixed bottom order bar */

  .mobile-fixed-order-bar {
    background: linear-gradient(110deg,#101d14,#07100b) !important;
    border-top: 1px solid rgba(166,255,24,.55) !important;
    box-shadow: 0 -5px 22px rgba(0,0,0,.5),
                0 0 15px rgba(166,255,24,.08) !important;
  }

  .mobile-fixed-order-total {
    color: #f2fff3 !important;
  }

  .mobile-fixed-order-total strong {
    color: #baff27 !important;
    text-shadow: 0 0 12px rgba(166,255,24,.3);
  }

  .mobile-fixed-order-button {
    background: linear-gradient(135deg,#c5ff32,#75e000) !important;
    color: #071000 !important;
    border: 1px solid #d0ff69 !important;
    border-radius: 11px !important;
    box-shadow: 0 0 18px rgba(166,255,24,.28) !important;
    font-weight: 900 !important;
  }
}


/* ONLINE PRICE — NEON TRACKING MODAL MOBILE */

@media (max-width: 700px) {

  .tracking-backdrop {
    background: rgba(0,0,0,.78) !important;
    backdrop-filter: blur(5px) !important;
  }

  .tracking-panel {
    background: linear-gradient(145deg,#14221a,#09110d) !important;
    border: 1px solid rgba(166,255,24,.42) !important;
    border-radius: 19px !important;
    box-shadow: 0 0 28px rgba(166,255,24,.13) !important;
    color: #f2fff3 !important;
    overflow: hidden !important;
  }

  .tracking-header {
    background: #101b14 !important;
    border-bottom: 1px solid rgba(166,255,24,.25) !important;
    padding: 17px 19px !important;
  }

  .tracking-header h2 {
    color: #baff36 !important;
    font-size: 19px !important;
    font-weight: 850 !important;
  }

  .tracking-close {
    color: #baff36 !important;
    background: transparent !important;
    font-size: 29px !important;
  }

  .tracking-form {
    background: transparent !important;
    padding: 20px !important;
    color: #f2fff3 !important;
  }

  .tracking-form label {
    color: #c9f69b !important;
    font-size: 13px !important;
    font-weight: 700 !important;
  }

  .tracking-input {
    width: 100% !important;
    min-height: 46px !important;
    box-sizing: border-box !important;
    background: #0b1510 !important;
    color: #f2fff3 !important;
    border: 1px solid rgba(166,255,24,.35) !important;
    border-radius: 10px !important;
    padding: 12px !important;
    font-size: 15px !important;
  }

  .tracking-input:focus {
    outline: none !important;
    border-color: #a6ff18 !important;
    box-shadow: 0 0 12px rgba(166,255,24,.18) !important;
  }

  .tracking-input::placeholder {
    color: #84968a !important;
  }

  .tracking-submit {
    width: 100% !important;
    min-height: 49px !important;
    margin-top: 12px !important;
    border: 1px solid #c5ff65 !important;
    border-radius: 11px !important;
    background: linear-gradient(135deg,#c4ff35,#8cdb00) !important;
    color: #101a08 !important;
    font-size: 15px !important;
    font-weight: 900 !important;
    box-shadow: 0 0 18px rgba(166,255,24,.22) !important;
  }

}


/* ONLINE PRICE — DESKTOP: HIDE MOBILE CART ELEMENTS */

@media (min-width: 701px) {
  body .mobile-cart-backdrop,
  body .mobile-fixed-order-bar {
    display: none !important;
  }

  body.mobile-bottom-cart-visible #store {
    padding-bottom: 0 !important;
  }
}


/* ONLINE PRICE — HIDE DUPLICATE BAR WHEN CART IS OPEN */
@media (max-width: 700px) {
  body.mobile-cart-no-scroll .mobile-fixed-order-bar {
    display: none !important;
  }
}

/* ONLINE PRICE MOBILE CART MAIN PAGE REMOVE V5 */
@media (max-width: 700px) {

  /* Убираем встроенную корзину с главной страницы */
  body #store > aside.panel {
    display: none !important;
  }

  /* Во всплывающей корзине содержимое остаётся видимым */
  body .mobile-cart-sheet-content > aside.panel {
    display: block !important;
    width: 100% !important;
  }

  /* Не оставляем пустое место вместо удалённой корзины */
  body #store {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* ONLINE PRICE MOBILE CART — MAIN PAGE FIX V6 */
@media (max-width: 700px) {

  /* Скрыть встроенную корзину на главной странице */
  body #store aside.panel {
    display: none !important;
  }

  /* Сохранить корзину внутри всплывающего окна */
  body .mobile-cart-backdrop .mobile-cart-sheet-content aside.panel {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Нижняя фиксированная панель не нужна */
  body .mobile-fixed-order-bar {
    display: none !important;
  }
}

/* ONLINE PRICE — RESTORE MOBILE FIXED ORDER BAR V7 */
@media (max-width:700px) {

  /* Возвращаем закреплённую панель */
  body .mobile-fixed-order-bar.is-visible {
    display:flex !important;
    visibility:visible !important;
    height:auto !important;
    min-height:0 !important;
    pointer-events:auto !important;
  }

  /* При открытой корзине скрываем дубликат */
  body.mobile-cart-no-scroll .mobile-fixed-order-bar,
  body.mobile-cart-no-scroll .mobile-fixed-order-bar.is-visible {
    display:none !important;
    visibility:hidden !important;
    pointer-events:none !important;
  }

  /* Встроенную корзину на главной по-прежнему скрываем */
  body #store aside.panel {
    display:none !important;
  }

  /* Всплывающая корзина остаётся доступной */
  body .mobile-cart-sheet-content > aside.panel {
    display:block !important;
  }

  /* Возвращаем отступ, чтобы панель не перекрывала каталог */
  body.mobile-bottom-cart-visible {
    padding-bottom:85px !important;
  }

  body.mobile-cart-no-scroll {
    padding-bottom:0 !important;
  }
}
