@media (max-width: 640px) {
  .category-card li span.text-gray-500 {
    display: none;
  }

  .mobile-menu {
    width: 280px;
    min-width: 280px;
  }

  .header-icons {
    flex-direction: row;
    gap: 0.5rem;
    margin-left: 0;
    margin-top: 0;
    margin-bottom: 0;
    align-items: center;
  }

  .mobile-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .mobile-phone {
    order: 2;
  }

  .mobile-logo-catalog {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 0.5rem;
  }

  .header-logo {
    order: 1;
    flex-shrink: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mobile-header-icons {
    order: 2;
    margin-left: 0;
  }

  .header-catalog {
    order: 3;
  }

  .header-icon {
    padding: 0.25rem;
  }
}

.catalog-modal {
  width: 100vw;
  height: 100vh;
  margin: 0;
  /* border-radius: 0; */
}

@media (min-width: 2000px) {
  .catalog-modal {
    width: 2000px;
  }
}

@media (min-width: 768px) {
  .catalog-modal {
    width: 99%;
  }
}

.catalog-content {
  height: calc(90vh - 160px);
  overflow-y: auto;
}

.category-group {
  margin-bottom: 1.5rem;
}

.group-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e5e7eb;
}

.category-card {
  border-radius: 0.375rem;
  padding: 0.75rem;
  transition: box-shadow 0.2s;
  width: 100%;
  margin-bottom: 0.75rem;
  background-color: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.category-card:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .brands-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .brands-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.search-button {
  right: 0;
  margin-right: 0;
  border-radius: 0 9999px 9999px 0;
  border: none;
}

.product-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.45rem;
}

.wishlist-button {
  flex: 0 0 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border-radius: 0.375rem;
  font-weight: 500;
  background-color: white;
  border: 1px solid #e5e7eb;
  color: #6b7280;
  order: 2;
}

.wishlist-button:hover {
  background-color: #f9fafb;
  color: #ef4444;
  border-color: #f9fafb;
}

.buy-button {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border-radius: 0.375rem;
  font-weight: 500;
  background-color: #3b82f6;
  color: white;
  order: 1;
}

.buy-button:hover {
  background-color: #2563eb;
}

.header-icon {
  position: relative;
  color: #4b5563;
  transition: color 0.2s;
  padding: 0.5rem;
}

.header-icon:hover {
  color: #3b82f6;
}

.header-badge {
  position: absolute;
  top: -0.25rem;
  right: -0.25rem;
  background-color: #b20c03;
  color: rgb(255, 255, 255);
  border-radius: 9999px;
  width: 1.25rem;
  height: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
}

@media (max-width: 640px) {
  .header-main-row {
    flex-wrap: nowrap;
  }

  .header-search {
    order: 1;
    flex-grow: 1;
    min-width: 0;
  }

  .header-icons-container {
    order: 2;
    flex-shrink: 0;
  }

  .header-logo {
    order: 0;
    flex-shrink: 0;
  }

  .header-catalog {
    order: 3;
  }
}

/* Masonry styles */

.sep {
  width: 100% !important;

  margin-left: auto;
  margin-right: auto;
  text-align: center;
  box-shadow: none;
  background-color: #f1f1f1;
  transition: none;
}

.sep:hover {
  box-shadow: none !important;
  background-color: #f1f1f1 !important;
  /* другие свойства, если есть */
  cursor: default;
  /* чтобы не было курсора руки */
}


.masonry-grid {
  width: 100%;
}

/* Адаптивные колонки */
.masonry-grid .category-card {
  width: 100%;
  /* min-width: 200px; */
  /* margin: 30px; */
}

@media (min-width: 768px) {
  .masonry-grid .category-card {
    width: calc(49% - 0.5rem);
  }
}

@media (min-width: 1024px) {
  .masonry-grid .category-card {
    width: calc(24%);
  }
}

/* Pagination styles */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.page-item {
  margin: 0 0.25rem;
}

.page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.375rem;
  background-color: white;
  color: #4b5563;
  font-weight: 500;
  transition: all 0.2s;
}

.page-link:hover {
  background-color: #f3f4f6;
}

.page-item.active .page-link {
  background-color: #4b5563;
  color: white;
}

.page-item.disabled .page-link {
  opacity: 0.5;
  cursor: not-allowed;
}






.search-input:focus {
  border-color: #3b82f6;
  outline: none;
  box-shadow: 0 0 0 1px #3b82f6;
}

.search-suggestions {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #e5e7eb;
  border-top: none;
  border-radius: 0 0 0.5rem 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  z-index: 10;
  max-height: 300px;
  overflow-y: auto;
}

.search-suggestion-item {
  padding: 0.75rem 1rem;
  cursor: pointer;
  border-bottom: 1px solid #f3f4f6;
}

.search-suggestion-item:hover {
  background-color: #f3f4f6;
}

.search-suggestion-item:last-child {
  border-bottom: none;
}

.search-container.show-suggestions .search-suggestions {
  display: block;
}

.product_marker{min-height: 40px;}




.truncate-2-lines {
  display: -webkit-box;
  -webkit-line-clamp: 2;               /* Ограничить до 2 строк */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4em;                  /* Задаём высоту строки */
  max-height: calc(1.4em * 2);         /* Жёстко: 2 строки = 2.8em */
  height: calc(1.4em * 2);             /* Фиксированная высота */
}

.fa-comment{font-size: 11px; color:silver;}





/* Или альтернативный вариант - уменьшить сам контейнер слайдера */
.main-swiper {
    height: calc(100% / 1.5); /* Уменьшаем высоту контейнера на 1/3 */
}
/* Основные стили для слайдера (оставляем как есть) */
.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ffffff;
    border-radius: 0.5rem;
    overflow: hidden;
    
}

/* Стили для контейнера миниатюр */
.swiper-thumbs {
    height: 80px; /* Новая высота контейнера */
    margin-top: 12px;
    box-sizing: border-box;
}

/* Стили для слайдов миниатюр */
.swiper-thumbs .swiper-slide {
    height: 100%; /* Занимает всю высоту контейнера */
    opacity: 0.6;
    transition: opacity 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    box-sizing: border-box;
}

/* Активная миниатюра */
.swiper-thumbs .swiper-slide-thumb-active {
    opacity: 1;
    border-color: #cfcfcf;
}

/* Изображения в миниатюрах */
.swiper-thumbs .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* или contain, в зависимости от предпочтений */
    border-radius: 0.375rem; /* 6px, соответствует вашей стилизации */
}

/* Ховер-эффект для миниатюр */
.swiper-thumbs .swiper-slide:hover {
    opacity: 0.9;
}

/* Стили для lightgallery (оставляем как есть) */
.gallery-item {
    cursor: zoom-in;
}

.lg-backdrop {
    background-color: rgba(0, 0, 0, 0.9);
}

.lg-zoom-in {
    cursor: zoom-in;
}

.lg-zoom-out {
    cursor: zoom-out;
}

/* Адаптивность для миниатюр */
@media (max-width: 640px) {
    .swiper-thumbs {
        height: 70px; /* Чуть меньше на мобильных */
    }
}






/* Стили для стрелок навигации */
.swiper-button-next,
.swiper-button-prev {
    color: white;
    background-color: rgba(0, 98, 255, 0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 20px;
    font-weight: bold;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background-color: rgba(0, 98, 255, 0.6);
}

/* Позиционирование стрелок */
.swiper-button-next {
    right: 10px;
}

.swiper-button-prev {
    left: 10px;
}


.product_description a{color: #ef4444; text-decoration: none;}
.product_description a:hover{text-decoration: underline;}


/* делает чтобы для пнг фон был белый при увеличении картинок */
.lg-image {
    background-color: white !important;
}


sup{color:#4b5563}

/*  my */

 .text-myb0{color:#0f1424}
 .text-myb{color:#c6b28b}
 .text-myb2{color:#dd8600}
 .bg-myb{background:#c6b28b}
 .bg-myb2{background: #dd8600;}


 .line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}



.category-card{text-transform: uppercase;font-size: 14px;}
.breadcrumbs{text-transform: uppercase;}
.dropdown{text-transform: uppercase;}