/* --- Яркий стиль для Tmzat с анимациями --- */

body {
  background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #f0f0f0;
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;

}

/*Botton menu*/
html, body {
  height: 100%;
}


main.flex-fill {
  flex: 1 0 auto;
}
footer {
  flex-shrink: 0;
}

h1, h2, h3, h4, h5 {
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 5px rgba(0,0,0,0.4);
}

a {
  color: #ffd700;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #ffea00;
  text-decoration: underline;
}

.container {
  max-width: 1140px;
  background: rgba(255,255,255,0.1);
  padding: 20px 30px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  backdrop-filter: blur(8px);
}

/* Карточки товаров */
.card {
  background: linear-gradient(145deg, #ffffff22, #ffffff11);
  border: none;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 15px 40px rgba(255, 215, 0, 0.6);
}

/* Картинки товаров */
.card-img-top {
  object-fit: cover;
  height: 200px;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  transition: transform 0.4s ease;
}

.card:hover .card-img-top {
  transform: scale(1.1);
}

/* Текст в карточках */
.card-title {
  color: #ffd700;
  font-weight: 700;
}

.card-text {
  color: #eee;
}

/* Кнопки */
.btn-primary {
  background: linear-gradient(45deg, #ffb700, #ff6f00);
  border: none;
  font-weight: 600;
  box-shadow: 0 0 8px rgba(255, 183, 0, 0.7);
  transition: background 0.4s ease, box-shadow 0.4s ease, transform 0.2s ease;
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(45deg, #ffde59, #ff8c00);
  box-shadow: 0 0 15px rgba(255, 222, 89, 0.9);
  transform: scale(1.05);
}

/*card images size*/
   .card-img-top {
    object-fit: cover;
    height: 180px;
    width: 100%;
  }

/* Формы */
.form-control {
  border-radius: 10px;
  border: none;
  background: rgba(255,255,255,0.2);
  color: #fff;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.form-control::placeholder {
  color: #ddd;
}

.form-control:focus {
  background: rgba(255,255,255,0.35);
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.7);
  color: #fff;
  outline: none;
}

/* Хедер и футер */
header, footer {
  background: rgba(0,0,0,0.6);
  padding: 15px 0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.7);
  color: #ffd700;
  text-align: center;
  font-weight: 600;
  font-size: 18px;
  user-select: none;
}

/* Текст обрезается в карточках товара */
.text-truncate {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #f0e68c;
}

/* Адаптивность */
@media (max-width: 576px) {
  .card-img-top {
    height: 150px;
  }
}

/* Плавное появление карточек при загрузке */
.card {
  opacity: 0;
  animation: fadeInUp 0.8s forwards;
  animation-delay: 0.3s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Плавное появление кнопок */
.btn-primary {
  animation: pulseGlow 3s infinite alternate;
}

@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 8px rgba(255, 183, 0, 0.7);
  }
  100% {
    box-shadow: 0 0 20px rgba(255, 215, 0, 1);
  }
}

#language-switcher {
  cursor: pointer;
  border: 1px solid #ccc;
  background: white;
  transition: border-color 0.3s;
}

#language-switcher:focus {
  outline: none;
  border-color: #007bff;
}

/*Banner*/
.carousel-item img {
  max-height: 400px;
  object-fit: cover;
}

/*nav menu*/
.navbar-nav .nav-link {
  font-weight: 500;
  transition: color 0.3s ease;
}
.navbar-nav .nav-link:hover {
  color: #ffd700 !important;
}
.dropdown-menu-dark .dropdown-item:hover {
  background-color: #0d6efd;
}

.navbar-nav .nav-link.active {
  font-weight: 600;
  color: #0d6efd;
  border-bottom: 2px solid #0d6efd;
}




.bar-bottom {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: #fff;
  border-top: 1px solid #ddd;
  display: flex;
  justify-content: space-around;
  padding: 4px 0;
  z-index: 1000;
}
.bar-bottom a {
  flex: 1;
  text-decoration: none;
  color: #333;
  font-size: 12px;
}
.bar-bottom i {
  font-size: 20px;
}



/*nav left menu mobile*/
.left-menu {
    width: 200px;
    background: #f8f9fa;
    border-right: 1px solid #dee2e6;
    padding: 15px;
    position: fixed;
    top: 60px; /* если у тебя есть navbar, подгони высоту */
    bottom: 0;
    overflow-y: auto;
}

.left-menu .menu-title {
    font-size: 16px;
    margin-bottom: 10px;
    color: #343a40;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 8px;
}

.category-list li a {
    text-decoration: none;
    color: #212529;
    display: block;
    padding: 6px 10px;
    border-radius: 4px;
}

.category-list li a:hover {
    background: #e9ecef;
    color: #000;
}

/* Mobile hidden menu */
.left-menu-mobile {
    display: none;
    background: #f8f9fa;
    padding: 10px;
    border: 1px solid #dee2e6;
    margin-bottom: 10px;
}

.left-menu-mobile .category-list li a {
    padding: 5px 8px;
}


/*category view*/
.category-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgb(0 0 0 / 0.1);
}
.category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgb(0 0 0 / 0.2);
}
.category-image {
  height: 150px;
  object-fit: cover;
  width: 100%;
  border-bottom: 1px solid #eee;
}
.category-title {
  font-weight: 700;
  font-size: 1.3rem;
  color: #0d6efd;
  padding: 12px 16px;
  text-align: center;
}


/*bar-bottom menu*/
.mobile-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 56px;
  background-color: #212529; /* тёмный цвет */
  display: flex;
  justify-content: space-around;
  align-items: center;
  border-top: 1px solid #343a40;
  z-index: 1030;
}

.bar-item {
  flex: 1;
  text-align: center;
  color: #adb5bd;
  font-size: 12px;
  text-decoration: none;
}

.bar-item i {
  display: block;
  font-size: 18px;
  margin-bottom: 2px;
}

.bar-item:hover {
  color: #ffc107;
}

.bar-item.active {
  color: #fff;
}

/*Category card*/
.product-img {
    transition: transform 0.3s;
}
.product-img:hover {
    transform: scale(1.05);
}
.card-title, .card-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/*Index card */
 .category-card {
     /*   background: #e0e0e0;*/
        border-radius: 1rem;
        box-shadow: 6px 6px 12px #bebebe, -6px -6px 12px #ffffff;
        transition: all 0.3s ease;
        text-align: center;
      }
      .category-card:hover {
        box-shadow: inset 8px 8px 16px #bebebe, inset -8px -8px 16px #ffffff;
        transform: scale(0.98);
      }
      .category-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-bottom: 1px solid rgba(255,255,255,0.3);
        padding: 14px;
        background-color: white;
      }
      .category-title {
        font-weight: 600;
        font-size: 1rem;
        color: #fff;
        padding: 10px 0;
      }
      .card_pod_color {
         box-shadow: 6px 6px 12px #bebebe, -6px -6px 12px #ffffff;
      }
       .card_pod_color:hover {
        box-shadow: inset 8px 8px 16px #bebebe, inset -8px -8px 16px #ffffff;
        transform: scale(0.98);
      }