/*
 * Plugin:	Pishro System Front Style
 * URL:		https://www.pishrosystem.com
 * Name:	ps-front-style.css
 */

@media (max-width: 768px) {
  body {
    margin-bottom: 70px !important;
  }
}

@media (min-width: 768px) {
  .ps-mobile-bottom-menu {
    display: none;
  }
  body {
    margin-bottom: 0;
  }
}

.ps-mobile-bottom-menu {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 6px 12px 10px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  z-index: 1000;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.ps-mobile-bottom-menu .menu-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  gap: 2px;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 4px 8px;
  border-radius: 12px;
}

.ps-mobile-bottom-menu .menu-icon {
  width: 26px;
  height: 26px;
  color: #6c757d;
  transition: all 0.3s ease;
}

.ps-mobile-bottom-menu .menu-label {
  font-size: 11px;
  font-weight: 500;
  color: #6c757d;
  transition: all 0.3s ease;
}

.ps-mobile-bottom-menu .menu-item.active .menu-icon {
  color: #2271b1;
  transform: translateY(-2px);
}

.ps-mobile-bottom-menu .menu-item.active .menu-label {
  color: #2271b1;
  font-weight: 600;
}

.ps-mobile-bottom-menu .menu-item:hover {
  transform: translateY(-2px);
}

.ps-mobile-bottom-menu .menu-item:hover .menu-icon {
  color: #2271b1;
}

.ps-mobile-bottom-menu .cart-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: linear-gradient(135deg, #e94b35, #ff4757);
  color: white;
  font-size: 10px;
  font-weight: bold;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  padding: 0 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  animation: bounce 0.5s ease;
}

@keyframes bounce {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
  .ps-mobile-bottom-menu {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border-top-color: rgba(255, 255, 255, 0.1);
  }

  .ps-mobile-bottom-menu .menu-icon {
    color: #a0a0a0;
  }

  .ps-mobile-bottom-menu .menu-label {
    color: #a0a0a0;
  }

  .ps-mobile-bottom-menu .menu-item.active .menu-icon,
  .ps-mobile-bottom-menu .menu-item.active .menu-label {
    color: #4d9eff;
  }
}
