/* Mobile Bottom Navigation - Global */
.mobile-bottom-nav-global {
  display: none;
}

@media (max-width: 767px) {
  :root {
    --mobile-bottom-nav-height: 78px;
    --mobile-bottom-nav-green: #2f7d2c;
    --mobile-bottom-nav-text: #4f5750;
  }

  body {
    padding-bottom: calc(var(--mobile-bottom-nav-height) + env(safe-area-inset-bottom, 0px) + 18px) !important;
  }

  .main-menu,
  #mobile-menu,
  .mean__menu-wrapper .main-menu {
    display: none !important;
  }

  .mobile-bottom-nav-global {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    top: auto !important;
    z-index: 99999;
    display: block;
    width: 100%;
    height: calc(var(--mobile-bottom-nav-height) + env(safe-area-inset-bottom, 0px));
    padding: 8px 10px calc(10px + env(safe-area-inset-bottom, 0px));
    background: #ffffff;
    border-top: 1px solid rgba(19, 49, 21, 0.08);
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -4px 18px rgba(19, 38, 21, 0.1);
  }

  .mobile-bottom-nav-global .nav-container {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: center;
    width: 100%;
    height: 100%;
    margin: 0 auto;
  }

  .mobile-bottom-nav-global .nav-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 58px;
    padding: 5px 0;
    color: var(--mobile-bottom-nav-text);
    line-height: 1;
    text-align: center;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.22s ease, transform 0.22s ease;
  }

  .mobile-bottom-nav-global .nav-item:hover,
  .mobile-bottom-nav-global .nav-item:focus,
  .mobile-bottom-nav-global .nav-item[aria-current="page"],
  .mobile-bottom-nav-global .nav-item.active {
    color: var(--mobile-bottom-nav-green);
  }

  .mobile-bottom-nav-global .nav-item:active {
    transform: translateY(1px);
  }

  .mobile-bottom-nav-global .nav-icon-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-bottom: 5px;
  }

  .mobile-bottom-nav-global .nav-icon {
    display: block;
    font-size: 23px;
    line-height: 1;
  }

  .mobile-bottom-nav-global .nav-label {
    display: block;
    width: 100%;
    overflow: hidden;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-bottom-nav-global .nav-item[aria-current="page"] .nav-label,
  .mobile-bottom-nav-global .nav-item.active .nav-label {
    font-weight: 800;
  }

  .mobile-bottom-nav-global .nav-badge {
    position: absolute;
    top: -4px;
    right: -9px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border: 2px solid #ffffff;
    border-radius: 999px;
    background: var(--mobile-bottom-nav-green);
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    line-height: 14px;
    text-align: center;
  }

  .mobile-cart-summary {
    position: fixed;
    right: 0;
    bottom: calc(var(--mobile-bottom-nav-height) + env(safe-area-inset-bottom, 0px));
    left: 0;
    z-index: 99998;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 74px;
    padding: 12px 24px;
    background: #ffffff;
    border-top: 1px solid rgba(21, 54, 23, 0.08);
    box-shadow: 0 -3px 14px rgba(19, 38, 21, 0.08);
  }

  .mobile-cart-summary .cart-info {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 12px;
  }

  .mobile-cart-summary .cart-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 50%;
    background: #edf3ec;
    color: var(--mobile-bottom-nav-green);
    font-size: 23px;
  }

  .mobile-cart-summary .cart-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
  }

  .mobile-cart-summary .cart-label {
    color: #173d1b;
    font-size: 16px;
    font-weight: 900;
    line-height: 1;
  }

  .mobile-cart-summary .cart-count {
    color: #626862;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.1;
  }

  .mobile-cart-summary .cart-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    overflow: hidden;
    border: 0;
    border-radius: 12px;
    background: var(--mobile-bottom-nav-green);
    box-shadow: 0 8px 16px rgba(47, 125, 44, 0.22);
    color: transparent;
    font-size: 0;
  }

  .mobile-cart-summary .cart-action::before {
    color: #ffffff;
    content: "\2191";
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
  }

  .mobile-cart-summary.small-box-cart {
    display: none;
  }

  .mobile-cart-summary.small-box-cart.show {
    display: flex;
  }

  .offcanvas__info {
    right: auto !important;
    top: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 74vh !important;
    overflow-y: auto !important;
    border-top: 2px solid var(--mobile-bottom-nav-green) !important;
    border-left: 0 !important;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -12px 34px rgba(9, 32, 12, 0.18);
    transform: translateY(calc(100% + 32px)) !important;
    transition: transform 0.36s ease, opacity 0.36s ease !important;
  }

  .offcanvas__info.info-open {
    opacity: 1 !important;
    transform: translateY(0) !important;
  }

  .offcanvas__overlay {
    z-index: 99998 !important;
    background: #0b130c !important;
  }

  .offcanvas__overlay.overlay-open {
    opacity: 0.72 !important;
    visibility: visible !important;
  }

  .offcanvas__wrapper {
    min-height: 0 !important;
    height: auto !important;
    padding: 24px 24px calc(28px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .offcanvas__wrapper .offcanvas__content .offcanvas__close {
    width: 52px;
    height: 52px;
    line-height: 52px;
  }

  .offcanvas__info .mobile-menu .mean-container .mean-bar {
    min-height: 0;
    padding: 0;
    background: transparent;
  }

  .offcanvas__info .mobile-menu .mean-container .mean-nav {
    display: block !important;
    margin-top: 0;
    background: transparent;
  }

  .offcanvas__info .mobile-menu .mean-container .mean-nav > ul {
    display: block !important;
  }

  .offcanvas__info .mobile-menu .mean-container .mean-nav > ul > li.menu-thumb {
    display: none !important;
  }

  .offcanvas__info .mobile-menu .mean-container .mean-nav ul li a {
    width: 100%;
    padding: 10px 0;
    border-top: 1px solid rgba(22, 68, 27, 0.09);
    color: #173d1b;
    font-size: 15px;
    font-weight: 700;
    text-transform: none;
  }

  .offcanvas__info .mobile-menu .mean-container .mean-nav ul li li a {
    padding-left: 16px;
    color: #4f5b50;
    font-size: 14px;
    font-weight: 600;
  }

  .offcanvas__info .mobile-menu .mean-container .mean-nav ul li li li a {
    padding-left: 28px;
  }

  .offcanvas__info .mobile-menu .mean-container .mean-nav ul li a.mean-expand {
    right: 0;
    width: 34px;
    height: 34px;
    padding: 0 !important;
    border: 0 !important;
    background: transparent;
    color: #2f7d2c;
    line-height: 34px;
    text-align: center;
  }

  .offcanvas__info .mobile-menu .mean-container .mean-nav ul li a.mean-expand.mean-clicked {
    color: #173d1b;
  }
}

@media (min-width: 768px) {
  .mobile-bottom-nav-global,
  .mobile-nav-dropdown,
  .mobile-cart-summary {
    display: none !important;
  }
}
