/* ============================================
   TimPlus - Адаптивные стили
   ============================================ */

@media (max-width: 1400px) {
  .container {
    max-width: 1140px;
  }
}

@media (max-width: 1200px) {
  .hero-slider {
    min-height: 500px;
  }

  .hero-slider .carousel-item {
    min-height: 500px;
  }

  .category-card .category-image {
    height: 180px;
  }

  .product-card .product-image {
    height: 250px;
  }
}

@media (max-width: 992px) {
  .hero-slider {
    min-height: auto;
  }

  .hero-slider .carousel-item {
    min-height: auto;
    padding: 60px 0;
  }

  .hero-img {
    display: none;
  }

  .navbar-collapse {
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-top: 10px;
  }

  .footer-col {
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  /* ... остальные стили ... */

  .floating-buttons {
    bottom: 20px !important;
    right: 15px !important;
    gap: 8px !important;
  }

  .floating-buttons a,
  .floating-buttons .scroll-to-top,
  .scroll-to-top {
    width: 48px !important;
    height: 48px !important;
    font-size: 20px !important;
  }
}

@media (max-width: 576px) {
  /* ... остальные стили ... */

  .floating-buttons {
    bottom: 15px !important;
    right: 10px !important;
    gap: 6px !important;
  }

  .floating-buttons a,
  .floating-buttons .scroll-to-top,
  .scroll-to-top {
    width: 44px !important;
    height: 44px !important;
    font-size: 18px !important;
  }
}

@media (max-width: 480px) {
  .navbar-brand span {
    font-size: 20px;
  }

  .phone-link span {
    display: none;
  }

  .phone-link i {
    font-size: 24px;
  }

  .btn-installment {
    font-size: 14px;
    padding: 10px 20px;
  }
}

/* ========== PRINT STYLES ========== */
@media print {
  .header_section,
  .footer_section,
  .floating-buttons {
    display: none;
  }

  body {
    color: #000;
    background: #fff;
  }

  a {
    color: #000;
  }
}

/* ========== HIGH CONTRAST MODE ========== */
@media (prefers-contrast: high) {
  .btn-installment {
    border: 2px solid #000;
  }

  .product-card {
    border: 1px solid #000;
  }
}

/* ========== REDUCED MOTION ========== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
/* Фикс для картинок категорий на мобильных */
@media (max-width: 992px) {
  .cat-img-wrap {
    height: 160px !important;
  }
  .cat-img-wrap img {
    max-height: 120px !important;
    max-width: 100% !important;
    width: auto !important;
  }
}

@media (max-width: 768px) {
  .cat-img-wrap {
    height: 180px !important;
  }
  .cat-img-wrap img {
    max-height: 150px !important;
  }
}

@media (max-width: 576px) {
  .cat-img-wrap {
    height: 150px !important;
  }
  .cat-img-wrap img {
    max-height: 130px !important;
  }
}
@media (max-width: 576px) {
  .navbar-brand img {
    height: 40px !important;
  }
}
/* Адаптивность поиска */
@media (max-width: 992px) {
  .header-search {
    margin: 10px 0;
    width: 100%;
  }
  
  .search-input {
    width: 100% !important;
  }
  
  .search-input:focus {
    width: 100% !important;
  }
}