body {
  position: relative;
  min-height: 100vh;
}

/* СКРЫТЬ ВИДЖЕТ КОРЗИНЫ */
.t706__carticon {
    display: none !important;
}

/* ===== СТИЛИ ДЛЯ КАРТОЧЕК ТОВАРОВ ST320N ===== */
.t-store__card {
    position: relative !important;
    background-color: #ffffff !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.3s ease !important;
    padding: 10px !important;
    height: 300px !important;
    display: flex !important;
    flex-direction: column !important;
    width: 270px !important;
    min-width: 270px !important;
    max-width: 270px !important;
    margin: 10px !important;
    flex: 0 0 auto !important;
}

.t-store__card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
    border-color: #0178BB !important;
    transform: translateY(-4px);
}

.t-store__card .t-store__card__wrap,
.t-store__card .t-store__card__textwrapper {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.t-store__card .t-store__card__imgwrapper {
    display: none;
}

.t-store__card .t-store__card__textwrapper {
    padding: 0 !important;
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
}

/* ОГРАНИЧЕНИЕ ТЕКСТА С МНОГОТОЧИЕМ */
.t-store__card .t-store__card__descr {
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 5 !important;
    -webkit-box-orient: vertical !important;
    line-height: 1.4em !important;
    max-height: calc(1.4em * 5) !important;
    text-overflow: ellipsis !important;
    margin-bottom: 10px !important;  /* Небольшой отступ перед кнопкой */
}

/* КНОПКА ВНУТРИ КАРТОЧКИ - ПРИЖАТА К НИЗУ, ЦЕНТРИРОВАНА */
.t-store__card .t-btn {
    background-color: #0178BB !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    padding: 10px 15px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    border: 2px solid transparent !important;
    transition: all 0.3s ease !important;
    display: block !important;
    width: 80% !important;
    max-width: 180px !important;
    min-width: 120px !important;
    margin: auto auto 0 auto !important;  /* КЛЮЧЕВОЕ ИЗМЕНЕНИЕ: прижимает к низу */
    text-decoration: none !important;
    text-align: center !important;
    box-sizing: border-box !important;
    position: relative !important;
    bottom: 0 !important;
}

/* Дополнительный фикс для текстового контейнера */
.t-store__card .t-store__card__textwrapper {
    padding: 0 !important;
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;  /* Контент прижат к верху */
}

/* Заголовок остается сверху */
.t-store__card .t-store__card__title {
    margin-top: 0 !important;
}


/* Эффект при наведении */
.t-store__card .t-btn:hover {
    background-color: #1F463B !important;
    border-color: #0178BB !important;
    transform: scale(1.02);  /* Легкое увеличение при наведении */
}

/* СЕТКА КАРТОЧЕК - НАСТРАИВАЕМЫЕ ОТСТУПЫ */
.t-store__grid {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    gap: 30px !important;  /* Расстояние МЕЖДУ карточками (и по вертикали, и по горизонтали) */
    margin: 40px 20px !important;  /* Внешние отступы сетки: сверху/снизу 40px, слева/справа 20px */
}

.t-store__grid .t-col {
    width: auto !important;
    flex: 0 0 auto !important;
    margin: 0 !important;  /* Убираем лишние отступы у колонок */
}


/* Стили для лейблов на карточках */
.product-label {
    position: absolute;
    bottom: 15px;
    right: 15px;
    z-index: 10;
    background-color: rgba(30, 30, 30, 0.8);
    padding: 6px 12px;
    border-radius: 4px;
    color: #ffffff;
    font-family: Arial, sans-serif;
    font-size: 11px;
    letter-spacing: 0.3px;
    pointer-events: none;
    text-transform: uppercase;
    font-weight: 600;
    backdrop-filter: blur(2px);
    border: 1px solid rgba(255,255,255,0.1);
}

/* КОНТЕЙНЕР ДЛЯ ЛЕЙБЛОВ */
.custom-label-container {
    margin-top: 8px;          /* Отступ от описания */
    margin-bottom: 4px;       /* Небольшой отступ перед кнопкой */
    display: flex;
    flex-wrap: wrap;
    gap: 6px;                 /* Расстояние между лейблами */
}

/* САМИ ЛЕЙБЛЫ */
.custom-label {
    display: inline-block;
    background-color: #818181;
    color: #ffffff;
    font-size: 11px;
    letter-spacing: 0.3px;
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(2px);
    line-height: 1.2;
}

/* УБРАТЬ РАЗДЕЛИТЕЛЬ МЕЖДУ СТРОКАМИ */
.t-store__grid-separator,
.t-clear.t-store__grid-separator,
div[class*="t-store__grid-separator"] {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 0 !important;
}

/* УБРАТЬ ОТСТУПЫ ПЕРЕД БЛОКОМ ОПЦИЙ */
.t-store__card__prod-controls-wrapper {
    margin-top: 0 !important;    /* Убираем верхний внешний отступ */
    padding-top: 0 !important;   /* Убираем верхний внутренний отступ */
    margin-bottom: 8px !important; /* Небольшой отступ снизу, чтобы отделить от кнопки (можно убрать или изменить) */
}

/* ===== ФОН С ЧАСТИЦАМИ, ОРБЫ И ИКОНКИ ===== */
body {
  /* Добавляем градиентный фон (сохраняя原有的 position и min-height) */
  background: linear-gradient(90deg, #3a8bb7 0%, #ededed 15%, #ededed 80%, #48c5d6 100%);
  /* Можно также задать запасной цвет: background-color: #f8fafc; */
}

/* Контейнер частиц */
#particles-js {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

/* Орбы */
.orb {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.15;
  background: #2A5C4D;
  pointer-events: none;
  z-index: -1;
}
.orb-1 { top: -200px; left: -200px; background: #2A5C4D; }
.orb-2 { bottom: -300px; right: -100px; width: 800px; height: 800px; background: #4A6FA5; opacity: 0.1; }
.orb-3 { top: 40%; left: 60%; width: 500px; height: 500px; background: #B87333; opacity: 0.08; }

/* Плавающие иконки */
.floating-icons {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.1;
  pointer-events: none;
  z-index: -1;
}
.floating-icons i {
  position: absolute;
  font-size: 4rem;
  color: currentColor;
  animation: float 20s ease-in-out infinite;
}
.floating-icons i:nth-child(1) { top: 15%; left: 10%; animation-duration: 18s; }
.floating-icons i:nth-child(2) { top: 70%; left: 80%; animation-duration: 22s; animation-delay: -3s; }
.floating-icons i:nth-child(3) { top: 40%; left: 70%; animation: spin-slow 20s linear infinite; opacity: 0.15; }
.floating-icons i:nth-child(4) { top: 80%; left: 20%; animation-duration: 25s; animation-delay: -5s; }
.floating-icons i:nth-child(5) { top: 25%; left: 85%; animation-duration: 19s; animation-delay: -7s; }

/* Анимации */
@keyframes float {
  0% { transform: translateY(0) translateX(0) rotate(0deg); }
  25% { transform: translateY(-30px) translateX(20px) rotate(5deg); }
  50% { transform: translateY(20px) translateX(-20px) rotate(10deg); }
  75% { transform: translateY(-20px) translateX(30px) rotate(5deg); }
  100% { transform: translateY(0) translateX(0) rotate(0deg); }
}
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Адаптивность: скрываем тяжёлые элементы на мобильных */
@media (max-width: 768px) {
  .floating-icons, .orb-3 {
    display: none;
  }
}

/* ===== АДАПТИВНОСТЬ ===== */


/* ПЛАНШЕТЫ */
@media screen and (max-width: 1024px) {
    .t-store__grid {
        justify-content: center !important;
        gap: 12px !important;
    }
    
    .t-store__card {
        width: 220px !important;
        min-width: 220px !important;
        max-width: 220px !important;
        height: 280px !important;
        padding: 15px !important;
    }
    
    .t-store__card .t-store__card__title {
        font-size: 16px !important;
    }
    
    .t-store__card .t-store__card__descr {
        -webkit-line-clamp: 2 !important;
        max-height: calc(1.4em * 2) !important;
    }
    
    .t-store__card .t-btn {
        padding: 10px 20px !important;
        font-size: 14px !important;
    }
}

/* МОБИЛЬНЫЕ */
@media screen and (max-width: 768px) {
    .t-store__grid {
        justify-content: center !important;
        gap: 15px !important;
    }
    
    .t-store__card {
        width: calc(50% - 20px) !important;
        min-width: 140px !important;
        max-width: 200px !important;
        height: auto !important;
        min-height: 220px !important;
        padding: 10px !important;
    }
    
    .t-store__card .t-store__card__title {
        font-size: 14px !important;
        margin-bottom: 5px !important;
    }
    
    .t-store__card .t-store__card__descr {
        -webkit-line-clamp: 1 !important;
        max-height: calc(1.4em * 1) !important;
        font-size: 12px !important;
    }
    
    .t-store__card .t-btn {
        padding: 8px 12px !important;
        font-size: 12px !important;
        width: 100% !important;
        text-align: center !important;
    }
    .custom-label {
        font-size: 9px;
        padding: 3px 8px;
    }
    .custom-label-container {
        margin-top: 6px;
        gap: 4px;
    }
}

/* ОЧЕНЬ МАЛЕНЬКИЕ ТЕЛЕФОНЫ */
@media screen and (max-width: 480px) {
    .t-store__card {
        width: 100% !important;
        max-width: 280px !important;
        margin: 0 auto !important;
    }
    
    .t-store__grid {
        gap: 15px !important;
    }
    
    .t-store__card .t-store__card__descr {
        -webkit-line-clamp: 2 !important;
        max-height: calc(1.4em * 2) !important;
    }
}