*, *::before, *::after{
    box-sizing:border-box;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  background: #f9f9f9;
  color: #222;
}

a {
  text-decoration: none;
}

.sort-container {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.sort-container label {
    font-weight: 500;
}

.sort-container select {
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.sort-container select:hover {
    border-color: #888;
}

/* Контейнер пошуку */
.search-container {
    position: relative;
    max-width: 350px;
    width: 100%;
}

/* Поле пошуку */
.search-form {
    display: flex;
    border: 2px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.search-form input[type="text"] {
    flex: 1;
    padding: 10px 12px;
    border: none;
    outline: none;
    font-size: 14px;
}

.search-form button {
    background: #007bff;
    color: #fff;
    border: none;
    padding: 0 15px;
    cursor: pointer;
    transition: background 0.2s;
}

.search-form button:hover {
    background: #0056b3;
}

/* Результати пошуку */
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 300px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 999;
    animation: fadeIn 0.15s ease-in-out;
}

@keyframes fadeIn {
    from {opacity: 0; transform: translateY(-3px);}
    to {opacity: 1; transform: translateY(0);}
}

/* Кожен елемент */
.search-results .item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    text-decoration: none;
    color: #333;
    transition: background 0.2s;
}

.search-results .item:hover {
    background: #f1f1f1;
}

/* Фото */
.search-results .item img {
    width: 45px;
    height: 45px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 10px;
    background: #f9f9f9;
}

/* Текст і ціна */
.search-results .item div {
    display: flex;
    flex-direction: column;
}

.search-results .item div div:first-child {
    font-size: 14px;
    font-weight: 500;
    color: #222;
    margin-bottom: 3px;
}

.search-results .item div div:last-child {
    font-size: 13px;
    font-weight: bold;
    color: #007bff;
}

/* Блок "Показати більше" */
.search-results .more {
    padding: 8px 12px;
    text-align: center;
    cursor: pointer;
    background: #f9f9f9;
    font-size: 14px;
    color: #007bff;
    border-top: 1px solid #eee;
}

.search-results .more:hover {
    background: #f1f1f1;
}

.breadcrumbs {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 14px;
}

.breadcrumbs li::after {
  content: "/";
  margin-left: 0.5rem;
}

.breadcrumbs li:last-child::after {
  content: "";
}

.breadcrumbs a {
  text-decoration: none;
  color: #007bff;
}

.breadcrumbs li.active {
  color: #6c757d;
}

.wrapper {
  max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  margin-bottom: 40px;
}

.site-header {
  background: linear-gradient(90deg, #1976d2, #2196f3);
  color: #fff;
  padding: 16px 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  font-family: 'Segoe UI', sans-serif;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1275px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Логотип */
.logo {
  position: relative;
  font-size: 28px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

@media (max-width: 480px) {
    .logo  {
        margin: 0 auto;
    }
}

/* Навігація */
.main-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}

.main-nav .profile_main {
  margin-left: 6px; /* легкий відступ від кошика */
}

.main-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 19px;
  font-weight: 500;
  position: relative;
  transition: color 0.3s;
}

.main-nav a:hover {
  color: #bbdefb;
}

/* Кошик */
.cart-link {
  background: rgba(255, 255, 255, 0.1);
  padding: 6px 12px;
  border-radius: 6px;
  transition: background 0.3s;
  font-weight: 600;
}

.cart-link:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Вирівнювання для мобільних */
@media (max-width: 768px) {
  .site-header .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .main-nav {
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
  }

  .logo {
    font-size: 22px;
  }
}

.site-header::after {
  content: "";
  display: table;
  clear: both;
}

.slider {
  height: 300px;
  background: url('/assets/slider-placeholder.jpg') center/cover no-repeat;
  margin: 20px 0;
  border-radius: 10px;
}

.category-list {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

/* Основний блок */
.main-content h1 {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
  .main-content h1 {
    font-size: 25px;
  }
}


/* ===== Catalog ===== */
.catalog-page { --radius: 14px; --border: #e7e7ea; --fg: #1f2937; --muted:#6b7280; --bg: #ffffff; --ring:#3b82f6; }
@media (prefers-color-scheme: dark) {
  .catalog-page { --border:#2b2f36; --fg:#e5e7eb; --muted:#9ca3af; --bg:#0b0f14; --ring:#60a5fa; }
}
.catalog-head { margin: 8px 0 18px; }
.catalog-head .page-title { font-size: 36px; line-height: 1.15; margin: 0 0 6px; font-weight: 800; letter-spacing: -0.02em; color: var(--fg); }
.catalog-head .page-sub { margin: 0; color: var(--muted); }

.category-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.cat-card { margin: 0; padding: 0; }
.cat-link {
  position: relative; display: grid; grid-template-columns: 48px 1fr 20px; align-items: center; gap: 14px;
  padding: 14px 14px; border: 1px solid var(--border); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(59,130,246,0.04), transparent 60%), var(--bg);
  text-decoration: none; color: var(--fg);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
  will-change: transform;
}
.cat-link:hover, .cat-link:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(59,130,246,.35);
  box-shadow: 0 6px 20px rgba(17,24,39,.08);
  outline: none;
}
.cat-link:focus-visible { box-shadow: 0 0 0 3px rgba(59,130,246,.18); }

.icon-wrap {
  width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center; color: #2563eb; background: rgba(37,99,235,.10);
}
@media (prefers-color-scheme: dark) {
  .icon-wrap { color:#60a5fa; background: rgba(96,165,250,.12); }
}

.meta .title { display:block; font-weight: 700; font-size: 16px; letter-spacing:.2px; }
.meta .sub   { display:block; color: var(--muted); font-size: 13px; margin-top: 2px; }

.arrow { font-size: 18px; color: var(--muted); transition: transform .16s ease; }
.cat-link:hover .arrow { transform: translateX(3px); }

/* Дрібні екрани */
@media (max-width: 480px) {
  .catalog-head .page-title { font-size: 28px; }
  .cat-link { grid-template-columns: 44px 1fr 16px; padding: 12px 12px; }
  .icon-wrap { width: 44px; height: 44px; border-radius: 10px; }
}

/* Список товарів у категорії */
.category-products {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Елемент списку */
.category-products li {
    padding: 15px 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    transition: box-shadow 0.3s ease;
}

.category-products li:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

/* Назва товару */
.category-products a {
    font-size: 18px;
    color: #333;
    text-decoration: none;
}

.category-products a:hover {
    color: #007bff;
}

/* Кнопка */
.category-products button {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.category-products button:hover {
    background-color: #0056b3;
}

.category-item {
  background: #e3f2fd;
  margin: 5px;
  padding: 10px 15px;
  border-radius: 5px;
  text-decoration: none;
  color: #1565c0;
  font-weight: bold;
}

/* ===== HERO ===== */
.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 40px;
  color: #222;
}

/* ========== HERO SECTION ========== */
.hero-modern {
  background: #f8faff;
  padding: 100px 20px 80px;
  position: relative;
  overflow: hidden;
}
.hero-modern::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: linear-gradient(90deg, #1976d2, #2196f3);
  border-radius: 50%;
  filter: blur(130px);
  opacity: 0.25;
}
.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
}
.hero-text .tagline {
  display: inline-block;
  background: linear-gradient(90deg, #1976d2, #2196f3);
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  margin-bottom: 20px;
}
.hero-text h1 {
  font-size: 3rem;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 20px;
}
.hero-text p {
  font-size: 1.1rem;
  color: #555;
  max-width: 480px;
  margin-bottom: 30px;
}
.btn-cta {
  display: inline-block;
  padding: 16px 36px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(90deg, #1976d2, #2196f3);
  text-decoration: none;
  border-radius: 40px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(33,150,243,0.4);
}
.btn-cta:hover {
  background: linear-gradient(90deg, #1565c0, #1976d2);
  transform: translateY(-2px);
}
.hero-image img {
  width: 100%;
  max-width: 450px;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,0.15));
}
@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-image img { margin: 20px auto 0; }
}

/* ========== ADVANTAGES ========== */
.advantages-section {
  background: #fff;
  padding: 80px 20px;
}
.adv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
}
.adv-card {
  background: #f9fbfd;
  border-radius: 15px;
  padding: 30px 20px;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.adv-card:hover { transform: translateY(-4px); box-shadow: 0 6px 20px rgba(0,0,0,0.1); }
.adv-icon {
  font-size: 32px;
  margin-bottom: 10px;
}
.adv-card h4 {
  margin-bottom: 10px;
  color: #1976d2;
}

/* ========== CATEGORIES ========== */
.categories-modern {
  padding: 80px 20px;
  background: #f9fbff;
}

.cat-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.cat-card-modern {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  border-radius: 12px;
  background: #e0e0e0;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.cat-card-modern:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.cat-info-modern h3 {
  font-size: 1.4rem;
  color: #fff;
  z-index: 2;
}
.cat-card-modern img {
  height: 80px;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.cat-card-modern:hover img {
  transform: scale(1.05);
}

/* Кольори для карток */
.cat-blue { background: linear-gradient(90deg, #4e6cf5, #3b29d6); }
.cat-gray { background: #ececec; color: #000; }
.cat-lightblue { background: linear-gradient(90deg, #4db6ff, #2196f3); }
.cat-lightgray { background: #f2f2f2; color: #000; }

/* Текст темний на світлих фонах */
.cat-gray .cat-info-modern h3,
.cat-lightgray .cat-info-modern h3 {
  color: #000;
}

@media (max-width: 768px) {
  .cat-card-modern {
    flex-direction: row;
    text-align: left;
  }
  .cat-card-modern img {
    height: 65px;
  }
}


/* .pro-style {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  padding: 20px;
} */

.pro-style {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    width: 100%;
}


.product-card-pro {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #eee;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  transform: translateZ(0);
}

.product-card-pro:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}

.product-articul {
    font-size: 13px;
    font-weight: 600;
    color: #5c6f82;
    background: linear-gradient(90deg, #f3f4f6, #e9edf1);
    padding: 4px 10px;
    border-radius: 6px;
    display: inline-block;
    margin-top: 8px;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    position: relative;
    transition: all 0.3s ease-in-out;
}

/* Іконка перед артикулом */
.product-articul::before {
    content: "🔖";
    font-size: 14px;
    margin-right: 6px;
    color: #4a90e2;
}

/* Ефект наведення */
.product-articul:hover {
    background: linear-gradient(90deg, #e1e7ee, #dce3eb);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    cursor: default;
}

.product-image-pro {
  position: relative;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 220px;
  overflow: hidden;
}

.product-image-pro img {
  max-width: 85%;
  max-height: 85%;
}

.prod-thumb{position:relative;display:block}
.badge-hit-pro{
  position:absolute; top:8px; right:8px;
  padding:4px 8px; border-radius:10px;
  background: linear-gradient(135deg,#f43f5e,#fb7185);
  color:#fff; font-weight:700; font-size:12px;
  box-shadow:0 6px 18px rgba(0,0,0,.14);
  pointer-events:none; user-select:none;
}

.badge-discount-pro {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #ff3b30;
  color: #fff;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 50px;
  font-weight: 600;
}

.wishlist-btn-pro {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: #fff;
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.product-info-pro {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-info-pro p {
      display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, #000 65%, rgba(0, 0, 0, 0));
    mask-image: linear-gradient(to bottom, #000 65%, rgba(0, 0, 0, 0));
}

.product-title-pro {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 5px;
  color: #222;
}

.product-desc-pro {
  font-size: 13px;
  color: #555;
  margin: 5px 0 10px;
  line-height: 1.5em;
  height: 36px;
  overflow: hidden;
}

.product-bottom-pro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.price-box-pro {
  display: flex;
  flex-direction: column;
}

.old-price-pro {
  font-size: 12px;
  color: #999;
  text-decoration: line-through;
}

.price-pro {
  font-size: 18px;
  font-weight: 700;
  color: #000;
}

.add-cart-btn-pro {
  background: linear-gradient(90deg, #1976d2, #2196f3);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.2s;
}

.add-cart-btn-pro:hover {
  background: linear-gradient(90deg, #1565c0, #1976d2);
}

.add-cart-btn-pro.in-cart {
    background: #16a34a; /* зелений */
    color: #fff;
    border-color: transparent;
}

/* --- Адаптив --- */
@media (max-width: 768px) {
  .pro-style {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .pro-style {
    grid-template-columns: 1fr;
  }
}

.button-disabled {
  display: inline-block;
  /* width: 50%; */
  padding: 10px 18px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  text-align: center;
  cursor: not-allowed;
  opacity: 0.8;
  background: linear-gradient(135deg, #d1d1d1, #b8b8b8);
  color: #666;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: opacity 0.2s ease;
  white-space: nowrap;
}

.button-disabled.waiting {
  background: linear-gradient(135deg, #ffb84d, #ff9f1a);
  color: #fff;
}

.button-disabled.waiting:hover::after {
  content: attr(title);
  position: absolute;
  background: #333;
  color: #fff;
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 6px;
  white-space: nowrap;
  top: -38px;
  right: -15%;
  transform: translateX(-50%);
  opacity: 0;
  animation: fadeIn 0.3s forwards;
  pointer-events: none;
}

/* @keyframes fadeIn {
  to { opacity: 1; }
}


@keyframes glitch {
  0% { transform: translate(0); }
  20% { transform: translate(-2px, 2px); }
  40% { transform: translate(-2px, -2px); }
  60% { transform: translate(2px, 2px); }
  80% { transform: translate(2px, -2px); }
  100% { transform: translate(0); }
}

.glitch-text {
  animation: glitch 0.1s linear infinite;
  color: red;
} */

.levitating-image {
  animation: levitate 3s ease-in-out infinite; /* Задаем анимацию с именем levitate, длительностью 3 секунды, функцией времени ease-in-out и бесконечным циклом */
}

@keyframes levitate {
  0% {
    transform: translateY(0); /* Начальная позиция */
  }
  50% {
    transform: translateY(-20px); /* Смещение вверх */
  }
  100% {
    transform: translateY(0); /* Возвращаемся в начальную позицию */
  }
}

.product-page {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  padding: 30px;
  background: #f8f9fb;
  border-radius: 20px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}

.product-gallery {
  flex: 1;
  min-width: 340px;
}

/* Контейнер головного фото з контрольованим співвідношенням та висотою */
.main-image-container {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  cursor: zoom-in;

  /* ключові обмеження */
  aspect-ratio: 4 / 3;      /* або 1 / 1 — якщо вам більше підходить квадрат */
  max-height: 560px;        /* не даємо блоку ставати надто високим */
}

/* Головне зображення — у межах контейнера без деформації */
.main-image-container img,
.product-main-image {
  width: 100%;
  height: 100%;
  object-fit: contain;      /* зберігає пропорції, додає «поля», якщо треба */
  display: block;
  transition: transform 0.4s ease;
}

.main-image-container:hover img {
  transform: scale(1.02);
}

/* Прев’ю (thumbnails): рівні квадрати без розтягування контенту */
.thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;        /* заповнює квадрат, обрізає зайве, не тягне */
  cursor: pointer;
  margin: 5px;
  border: 1px solid #ccc;
  border-radius: 8px;
}

/* Адаптив: на вузьких екранах — квадратне співвідношення, нижча висота */
@media (max-width: 768px) {
  .main-image-container {
    aspect-ratio: 1 / 1;
    max-height: 420px;
  }
}


@media (max-width: 520px) {
  .product-page {
    display: flex;
    flex-direction: column;
    margin: 0 auto;
  }
}

.adminphoto {
  position: fixed;
    top: 20%;
    left: 65px;
}

.adminphoto img {
  width: 30%;
}

.adminphotoright {
      position: fixed;
    top: 19%;
    right: -25px;
}

.adminphotoright img {
  width: 80%;
}

.badge-hit, .badge-discount {
  position: absolute;
  top: 12px;
  padding: 6px 12px;
  border-radius: 20px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.badge-hit {
  left: 12px;
  background: linear-gradient(135deg, #ff9500, #ff6a00);
}

.badge-discount {
  right: 12px;
  background: linear-gradient(135deg, #ff3b30, #c91d12);
}

.badge-used-pro {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #111;
    color: #fff;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 6px;
}

.thumb-list {
  margin-top: 15px;
  display: flex;
  gap: 10px;
  overflow: auto;
}

.thumb-list img {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  object-fit: contain;
  border: 1px solid #ddd;
  cursor: pointer;
  transition: transform 0.3s ease, border 0.3s ease;
}

.thumb-list img:hover {
  transform: scale(1.1);
  border-color: #5c4ce4;
}

.product-details {
  flex: 1;
  min-width: 300px;
  background: #fff;
  padding: 25px;
  border-radius: 20px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.product-title {
  font-size: 26px;
  font-weight: 800;
  color: #222;
  margin-bottom: 10px;
}

.product-price-box {
  font-size: 22px;
  font-weight: 700;
  color: #5c4ce4;
  margin: 15px 0;
}

.product-stock {
  margin: 5px 0 20px;
  font-size: 14px;
}

.add-to-cart-section button {
  background: linear-gradient(135deg, #5c4ce4, #3b29d6);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(92, 76, 228, 0.3);
}

.add-to-cart-section button:hover {
  background: linear-gradient(135deg, #4939cc, #2f1fb2);
  transform: translateY(-2px);
}

button.button-disabled {
  background: #ccc !important;
  color: #555;
  cursor: not-allowed;
}

button.button-disabled.waiting {
  background: #f5c043 !important;
  color: #222;
  position: relative;
}

/* button.button-disabled.waiting:hover::after {
  content: attr(data-date);
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  background: #222;
  color: #fff;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
} */

.product-specs {
  margin-top: 25px;
}

.product-specs h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.spec-list {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}



.spec-list img {
  width: 35px;
  height: 35px;
}

.spec-list li{
  display:flex;
  align-items:flex-start;
  gap:10px;

  background:#f4f4f8;

  padding:10px 12px;

  border-radius:12px;

  margin-bottom:8px;

  font-size:14px;

  min-width:130px;
  max-width:240px;

  flex:0 1 auto;
}

.spec-list-block{
  display:flex;
  flex-direction:column;
  gap:8px;

  min-width:0;
}

.spec-list-block span{
  padding:0;
}

.spec-list-block span:first-child{
  font-size:13px;
  color:#64748b;
  font-weight:600;
  line-height:1.3;
}

.spec-list-block span:last-child{
  font-size:14px;

  font-weight:600;

  color:#111827;

  line-height:1.35;

  word-break:break-word;

  overflow-wrap:anywhere;
}

.product-description {
  margin-top: 40px;
  padding: 20px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.product-description h2 {
  font-size: 20px;
  margin-bottom: 10px;
  font-weight: 700;
}

.product-description p {
  line-height: 1.6;
  color: #444;
}

/* 1) Базово — нічого не повинно виходити за межі .product-description */
.product-description,
.product-description * { box-sizing: border-box; }

.product-description { 
  max-width: 100%;
  overflow-x: hidden;              /* остання лінія оборони від горизонтального скролу */
}

/* 2) Будь-який елемент із inline-шириною (width: 1198px тощо) — стискаємо до 100% */
.product-description [style*="width"] {
  /* width: auto !important; */
  max-width: 100% !important;
}

/* 3) Типові блоки з копійованого лендінга — теж в межі контейнера */
/* .product-description .l-section,
.product-description .l-title,
.product-description .l-paragraph,
.product-description .l-description,
.product-description .l-half,
.product-description .center-description-absolute,
.product-description .l-background-main-img-3 {
  width: auto !important;
  max-width: 100% !important;
} */

/* 4) Зображення/відео завжди респонсивні */
.product-description img,
.product-description video {
  max-width: 100% !important;
  height: auto !important;
  display: block;
}

/* 5) Якщо всередині є flex/grid — дозволяємо стискатися, інакше буває «вилазить» */
.product-description * { min-width: 0; }

/* 6) Довгі слова/URL не ламають верстку */
.product-description { overflow-wrap: anywhere; }

/* Адаптив */
@media (max-width: 768px) {
  .product-page {
    flex-direction: column;
  }
}

.banners {
  margin: 40px 0;
  display: flex;
  gap: 20px;
}

.banner {
  flex: 1;
  background: #bbdefb;
  height: 120px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  overflow: hidden;
}

/* ==== Pre-footer features strip ==== */
.prefooter-features { margin: 36px 0 28px; }
.pf-wrap{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.pf-item{
  display: grid;
  grid-template-columns: 36px 1fr;
  column-gap: 12px;
  align-items: start;
  background: #fff;
  border: 1px solid #e7ecf2;
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 1px 2px rgba(2,6,23,.04);
  transition: transform .12s ease, box-shadow .12s ease;
}
.pf-item:hover{ transform: translateY(-2px); box-shadow: 0 6px 14px rgba(2,6,23,.06); }

.pf-ic{ width: 28px; height: 28px; color: #1e87e3; display: inline-flex; }
.pf-ic svg{ width: 28px; height: 28px; }

.pf-item h3{
  margin: 0;
  font: 700 16px/1.2 Inter, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  color: #0f172a;
}
.pf-item p{
  grid-column: 2 / span 1;
  margin: 6px 0 0;
  color: #475569;
  font-size: 13px;
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 1024px){
  .pf-wrap{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px){
  .pf-wrap{ grid-template-columns: 1fr; }
  .prefooter-features{ margin: 24px 0; }
}

.pfx-mini-card {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-direction: column;
}

.site-footer {
  background: #eeeeee;
  padding: 20px 0;
  text-align: center;
  color: #666;
}

/* === Super-minimal footer (Swiss grid) === */
.sf{
  --brand1:#1976d2; --brand2:#2196f3;
  --text:#0f172a; --muted:#64748b; --line:#e7ecf2; --bg:#fff;
  --pay-h:24px; /* змініть на 32px, якщо потрібно більші логотипи */
  background:var(--bg); color:var(--text); font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
}
.sf-accent{height:2px; background:linear-gradient(90deg,var(--brand1),var(--brand2));}
.sf-wrap{max-width:1200px; margin:0 auto; padding:20px 16px;}
.sf-top{display:grid; grid-template-columns:1.2fr 2fr 1fr; gap:24px; align-items:start}


.msgr.ig {
    color: #E4405F;
}

.msgr.ig:hover {
    color: #fff;
    background: linear-gradient(45deg,#f58529,#feda77,#dd2a7b,#8134af,#515bd4);
}
/* Бренд */
.sf-logo{margin:0; font:800 20px/1.1 Inter,system-ui; letter-spacing:.01em}
.sf-tag{margin:.4rem 0 0; color:var(--muted); font-size:14px}

/* Навігація */
.sf-nav{display:grid; grid-template-columns:repeat(3,1fr); gap:16px}
.sf-head{margin:0 0 .4rem; font:700 12px/1 Inter,system-ui; letter-spacing:.08em; text-transform:uppercase; color:#0b3a6a}
.sf-group ul{list-style:none; padding:0; margin:0; display:grid; gap:.35rem}
.sf-group a{color:var(--text); text-decoration:none}
.sf-group a:hover{color:var(--brand1); text-decoration:underline}

/* Контакти + месенджери */
.sf-contacts{font-style:normal}
.sf-contact-list{list-style:none; padding:0; margin:0 0 .6rem; display:grid; gap:.35rem}
.sf-contact-list a{color:var(--text); text-decoration:none}
.sf-contact-list a:hover{color:var(--brand1)}
.sf-messengers{display:flex; gap:8px; list-style:none; padding:0; margin:0}
.msgr{display:grid; place-items:center; width:32px; height:32px; border:1px solid var(--line); border-radius:8px; color:#fff; background:#8a8a8a0f}
.msgr svg{width:18px; height:18px}
.msgr.tg{color:#229ED9; border-color:#d4e9f7}
.msgr.wa{color:#25D366; border-color:#d7f3e2}
.msgr.vb{color:#7360f2; border-color:#e1dbfb}

/* Роздільник */
.sf-rule{border:0; border-top:1px solid var(--line); margin:18px 0}

/* Низ */
.sf-bottom{display:grid; grid-template-columns:1.2fr auto auto; gap:16px; align-items:center}
.sf-legal p{margin:0; color:var(--muted); font-size:13px}

/* Платежі — чисті логотипи без карток */
.sf-pay{display:flex; align-items:center; gap:10px}
.sf-pay .pay{height:var(--pay-h); width:auto; display:block}

/* Юр. посилання */
.sf-links{display:flex; gap:12px; justify-content:flex-end; flex-wrap:wrap}
.sf-links a{color:#0b3a6a; text-decoration:none}
.sf-links a:hover{color:var(--brand1); text-decoration:underline}

/* Адаптив */
@media (max-width: 1000px){
  .sf-top{grid-template-columns:1fr; gap:16px}
  .sf-nav{grid-template-columns:repeat(3, minmax(0,1fr))}
}
@media (max-width: 640px){
  .sf-nav{grid-template-columns:1fr 1fr}
  .sf-bottom{grid-template-columns:1fr; gap:10px}
  .sf-links{justify-content:flex-start}
}

.pole {
  display: flex;
    flex-direction: column;
    align-items: center;
}

.pole img {
  width: 64px;
  height: 64px;
}


/* Profile */
.profile_main {
  display: flex;
  align-items: center;
}

/* компактна кнопка профілю */
.profile_main .user-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;

  /* під синій header */
  color: #fff;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);

  transition: background .15s ease, border-color .15s ease, transform .05s ease;
}

.profile_main .user-chip:hover {
  background: rgba(255,255,255,.16);
  border-color: rgba(255,255,255,.28);
}

.profile_main .user-chip:active {
  transform: translateY(1px);
}

/* аватар */
.profile_main .user-chip__avatar {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  overflow: hidden;
  flex: 0 0 auto;
  background: rgba(255,255,255,.18);
}

.profile_main .user-chip__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* логін */
.profile_main .user-chip__name {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
}

/* стрілка */
.profile_main .user-chip__caret {
  font-size: 12px;
  opacity: .9;
  line-height: 1;
}

/* Mobile: робимо компактно (щоб не роздувало header) */
@media (max-width: 768px) {
  .profile_main .user-chip {
    padding: 6px 8px;
    gap: 8px;
  }
  .profile_main .user-chip__name {
    display: none;
  }
  .profile_main .user-chip__caret {
    display: none;
  }
}

.auth-page{
    display:flex;

    justify-content:center;

    padding:50px 20px;
}

.auth-card{
    width:100%;
    max-width:460px;

    background:#fff;

    border:1px solid #e5e7eb;

    border-radius:24px;

    padding:34px;

    box-shadow:
        0 10px 30px rgba(0,0,0,.05);
}

.auth-title{
    margin:0 0 10px;

    font-size:30px;

    font-weight:800;

    color:#111827;
}

.auth-subtitle{
    margin-bottom:26px;

    color:#6b7280;

    line-height:1.5;
}

.auth-group{
    margin-bottom:18px;
}

.auth-group label{
    display:block;

    margin-bottom:8px;

    font-size:14px;

    font-weight:700;

    color:#374151;
}

.auth-input{
    width:100%;

    height:52px;

    padding:0 16px;

    border:1px solid #d1d5db;

    border-radius:14px;

    font-size:15px;

    transition:.18s ease;
}

.auth-input:focus{
    outline:none;

    border-color:#111827;

    box-shadow:
        0 0 0 4px rgba(17,24,39,.08);
}

.auth-btn{
    width:100%;

    height:54px;

    border:none;

    border-radius:14px;

    background:#111827;

    color:#fff;

    font-size:15px;

    font-weight:700;

    cursor:pointer;

    transition:.18s ease;
}

.auth-btn:hover{
    background:#1f2937;

    transform:translateY(-1px);
}

.auth-alert{
    margin-bottom:18px;

    padding:14px 16px;

    border-radius:14px;

    font-size:14px;

    line-height:1.5;
}

.auth-alert-success{
    background:#ecfdf3;

    border:1px solid #bbf7d0;

    color:#15803d;
}

.auth-alert-error{
    background:#fff4f4;

    border:1px solid #fecaca;

    color:#dc2626;
}

/* PASSWORD WRAP */
.password-wrap{
    position:relative;
}

.password-wrap .auth-input{
    padding-right:56px;
}

/* TOGGLE */
.password-toggle{
    position:absolute;

    top:50%;
    right:14px;

    transform:translateY(-50%);

    width:34px;
    height:34px;

    border:none;

    background:transparent;

    cursor:pointer;

    font-size:18px;

    display:flex;

    align-items:center;

    justify-content:center;

    opacity:.7;

    transition:.18s ease;
}

.password-toggle:hover{
    opacity:1;
}

/* STRENGTH */
.password-strength{
    margin-top:14px;
}

.strength-bar{
    width:100%;

    height:10px;

    background:#eef2f7;

    border-radius:999px;

    overflow:hidden;

    margin-bottom:10px;
}

.strength-fill{
    width:0;

    height:100%;

    border-radius:999px;

    transition:.25s ease;
}

.strength-text{
    font-size:13px;

    font-weight:700;

    margin-bottom:12px;
}

/* HINTS */
.password-hints{
    display:grid;

    gap:8px;

    padding:0;

    margin:0;

    list-style:none;
}

.password-hints li{
    position:relative;

    padding-left:28px;

    font-size:13px;

    color:#6b7280;
}

.password-hints li::before{
    content:'✕';

    position:absolute;

    left:0;
    top:0;

    width:18px;
    height:18px;

    border-radius:50%;

    background:#fee2e2;

    color:#dc2626;

    font-size:11px;

    font-weight:700;

    display:flex;

    align-items:center;

    justify-content:center;
}

.password-hints li.ok{
    color:#15803d;
}

.password-hints li.ok::before{
    content:'✓';

    background:#dcfce7;

    color:#15803d;
}

/* MATCH */
.password-match{
    margin-top:10px;

    font-size:13px;

    font-weight:700;
}

.match-ok{
    color:#15803d;
}

.match-error{
    color:#dc2626;
}

.cabinet-block {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 1rem;
  background: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.cabinet-avatar img.user-avatar {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #ddd;
}

.cabinet-avatar-edit {
  margin-bottom: 1rem;
}
.cabinet-avatar-edit img.user-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
}

.cabinet-info p {
  margin: 0.3em 0;
  font-size: 16px;
}

.cabinet-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.cabinet-actions .btn {
  padding: 0.5rem 1.2rem;
  background: #007bff;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-size: 14px;
  transition: 0.2s;
}

.cabinet-actions .btn:hover {
  background: #0056b3;
}

.cabinet-actions .btn-danger {
  background: #dc3545;
}
.cabinet-actions .btn-danger:hover {
  background: #a71d2a;
}

.cabinet-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
}

.cabinet-sidebar {
  width: 200px;
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.cabinet-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cabinet-sidebar li {
  margin-bottom: 0.8rem;
}

.cabinet-sidebar a {
  display: block;
  color: #333;
  text-decoration: none;
  font-weight: 500;
  transition: 0.2s;
}

.cabinet-sidebar a:hover {
  color: #007bff;
}

.cabinet-sidebar a.danger {
  color: #dc3545;
}

.subtext.status--pending   { color: #64748b; }   /* сіро-блакитний */
.subtext.status--hold_wait { color: #b45309; }   /* бурштин/жовтий */
.subtext.status--unpaid    { color: #b91c1c; }   /* червоний */
.subtext.status--paid,
.subtext.status--success   { color: #166534; }   /* зелений */
.subtext.status--reversed  { color: #475569; }   /* сланцевий */
.subtext.status--error     { color: #dc2626; }   /* червоний */


.edit_profile form {
  max-width: 500px;
  margin: 0 auto;
  background: #f8f8f8;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.edit_profile form label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: bold;
}

.edit_profile form input[type="text"],
.edit_profile form input[type="email"],
.edit_profile form input[type="password"],
.edit_profile form input[type="file"] {
  width: 100%;
  padding: 0.5rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
}

.edit_profile form button {
  padding: 0.6rem 1.4rem;
  font-size: 14px;
  background-color: #28a745;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.edit_profile form button:hover {
  background-color: #218838;
}

.edit_profile form a.btn {
  margin-left: 1rem;
  background-color: #6c757d;
}
.edit_profile form a.btn:hover {
  background-color: #495057;
}

.edit_profile .no-avatar {
  width: 120px;
  height: 120px;
  background: #e2e2e2;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  font-size: 14px;
}



.orders-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.order-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e6e6e6;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform .25s ease;
    position: relative;
    overflow: hidden;
}
.order-card:hover { transform: translateY(-3px); }
.order-card.cancelled { border-color: #f44336; background: #fff5f5; }

.order-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.order-id { font-size: 18px; font-weight: 600; color: #0073ff; }
.order-date { font-size: 14px; color: #999; }
.order-total { font-size: 20px; font-weight: 700; color: #111; }

.order-preview { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 25px; }
.mini-item { display: flex; align-items: center; background: #f8f8f8; padding: 6px 10px; border-radius: 6px; }
.mini-thumb { width: 40px; height: 40px; object-fit: cover; border-radius: 4px; margin-right: 8px; }
.mini-title { font-size: 14px; color: #444; }

/* Таймлайн */
.timeline {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5px 10px;
    margin-bottom: 30px;
}
.timeline-line {
    position: absolute;
    top: 20px;
    left: 0;
    width: 100%;
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
}
.timeline-line::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #0073ff, #00b3ff);
    border-radius: 2px;
    transition: width 1.2s ease-in-out;
}
.order-card[data-progress='1'] .timeline-line::after { width: 10%; }
.order-card[data-progress='2'] .timeline-line::after { width: 30%; }
.order-card[data-progress='3'] .timeline-line::after { width: 55%; }
.order-card[data-progress='4'] .timeline-line::after { width: 80%; }
.order-card[data-progress='5'] .timeline-line::after { width: 100%; }

/* Таймлайн - кроки */
.timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    text-align: center;
    color: #aaa;
    flex: 1;
}
.timeline-step i {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
    font-size: 18px;
    transition: all .4s ease;
    position: relative;
}
.timeline-step.active i {
    background: #0073ff;
    color: #fff;
    transform: scale(1.15);
    box-shadow: 0 0 12px rgba(0,115,255,0.5);
    animation: pulse 1.5s infinite;
}
.timeline-step span { font-size: 13px; }

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0,115,255,0.6); }
    70% { box-shadow: 0 0 0 8px rgba(0,115,255,0); }
    100% { box-shadow: 0 0 0 0 rgba(0,115,255,0); }
}

/* Активні іконки */
.order-card[data-progress='1'] .timeline-step:nth-child(1) i,
.order-card[data-progress='2'] .timeline-step:nth-child(-n+2) i,
.order-card[data-progress='3'] .timeline-step:nth-child(-n+3) i,
.order-card[data-progress='4'] .timeline-step:nth-child(-n+4) i,
.order-card[data-progress='5'] .timeline-step:nth-child(-n+5) i {
    background: #0073ff;
    color: #fff;
    transform: scale(1.15);
    animation: pulse 1.5s infinite;
}

/* Скасоване замовлення */
.timeline.cancelled .timeline-line::after { background: #f44336; width: 20%; }
.timeline.cancelled .timeline-step:first-child i { background: #f44336; color: #fff; animation: none; }
.timeline.cancelled .timeline-step:first-child span { color: #f44336; }
.timeline.cancelled .timeline-step:not(:first-child) i { background: #e9ecef; color: #999; }


.timeline-step {
    position: relative;
    cursor: pointer;
}

/* Тултіп */
.timeline-step::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 55px;
    left: 50%;
    transform: translateX(-50%);
    background: #222;
    color: #fff;
    padding: 6px 10px;
    font-size: 12px;
    line-height: 1.3;
    white-space: nowrap;
    border-radius: 6px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 10;
}

/* Маленький трикутник під тултіпом */
.timeline-step::before {
    content: '';
    position: absolute;
    bottom: 48px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: #222 transparent transparent transparent;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10;
}

.timeline-step:hover::after,
.timeline-step:hover::before {
    opacity: 1;
    transform: translateX(-50%) translateY(-2px);
}

/* Іконки */
.icon-cart::before { content: "🛒"; }
.icon-card::before { content: "💳"; }
.icon-truck::before { content: "🚚"; }
.icon-check::before { content: "📦"; }
.icon-star::before { content: "✅"; }

/* Іконки */
.icon-cart::before { content: "🛒"; }
.icon-card::before { content: "💳"; }
.icon-truck::before { content: "🚚"; }
.icon-check::before { content: "✅"; }

.btn-details {
    background: #0073ff;
    color: #fff;
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 6px;
    text-decoration: none;
    transition: background .3s ease;
}
.btn-details:hover { background: #005bcc; }

.order-ttn {
  margin-bottom: 40px;
}



.cart-container {
  max-width: 900px;
  margin: 20px auto;
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.cart-title {
  text-align: center;
  margin-bottom: 20px;
  font-size: 26px;
  color: #333;
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
}

.cart-table th {
  background: #f8f8f8;
  padding: 12px;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid #eee;
}

.cart-table td {
  padding: 10px;
  border-bottom: 1px solid #eee;
  vertical-align: middle;
}

.cart-table img {
  border: 1px solid #ddd;
}

.qty-form {
  display: flex;
  gap: 5px;
}

.qty-form input {
  padding: 5px;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.qty-form button {
  padding: 5px 10px;
  border: none;
  background: #2196f3;
  color: white;
  border-radius: 4px;
  cursor: pointer;
}

.qty-form button:hover {
  background: #1976d2;
}

.remove-btn {
  color: #e74c3c;
  text-decoration: none;
  font-size: 18px;
}

.remove-btn:hover {
  color: #c0392b;
}

.cart-total td, .cart-final td {
  padding-top: 15px;
  font-size: 16px;
}

.promo-form {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.promo-form input {
  flex: 1;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.promo-form button {
  padding: 8px 15px;
  background: #4caf50;
  border: none;
  color: white;
  border-radius: 4px;
  cursor: pointer;
}

.promo-form button:hover {
  background: #388e3c;
}

.cart-actions {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-small {
        display: inline-block;
        padding: 5px 10px;
        border-radius: 5px;
        font-size: 13px;
        text-decoration: none;
        font-weight: 600;
    }

.btn-checkout {
  display: inline-block;
  padding: 10px 20px;
  background: #ff9800;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: 0.3s;
}

.btn-checkout:hover {
  background: #f57c00;
}



.btn-cart { 
    padding: 10px 14px; border-radius: 10px; border: 1px solid transparent; cursor: pointer;
}
.btn-cart.add     { background: #2563eb; color: #fff; }   /* синя — “В кошик” */
.btn-cart.in-cart { background: #16a34a; color: #fff; }   /* зелена — “В кошику” */
.btn-cart.waiting { background: #f59e0b; color: #111; }   /* жовта — очікується */
.btn-cart.disabled{ background: #9ca3af; color: #fff; }   /* сірий — відсутній */
.btn-cart[disabled]{ opacity: .8; cursor: default; }

/* Pagination */

.pagination {
  position: relative;
  display: block;
  z-index: 1;
  text-align: center;
  margin: 20px 0;

}
.page-link {
  display: inline-block;
  margin: 0 5px;
  padding: 6px 12px;
  background: #eee;
  border-radius: 4px;
  text-decoration: none;
  color: #333;
}
.page-link.active {
  background: #007bff;
  color: #fff;
  font-weight: bold;
}
.page-link:hover {
  background: #ccc;
}

.order-box {
    max-width: 800px;
    margin: 30px auto;
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    font-family: "Segoe UI", Tahoma, sans-serif;
    color: #333;
}

.order-box h1 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #222;
}

.order-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 25px;
    margin-bottom: 25px;
    font-size: 15px;
    line-height: 1.5;
}

.order-meta p {
    margin: 0;
}

.order-meta a {
    color: #0077cc;
    text-decoration: none;
}

.order-meta a:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .order-meta {
        grid-template-columns: 1fr;
    }
}









/* ===== Checkout (namespaced) ============================================= */
.checkout {
  --co-bg: #0f172a;           /* фон шапки/кнопки */
  --co-ink: #0b1220;          /* головний текст */
  --co-sub: #64748b;          /* другорядний текст */
  --co-card: #ffffff;         /* картки/форми */
  --co-line: #e5e7eb;         /* бордери */
  --co-accent: #2563eb;       /* акцент */
  --co-ok: #16a34a;
  --co-warn: #f59e0b;
  --co-bad: #ef4444;

  font-family: ui-sans-serif, -apple-system, system-ui, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";
  color: var(--co-ink);
}

.checkout .checkout-wrap {
  max-width: 940px;
  margin: 32px auto 48px;
  padding: 0 16px;
}

.checkout .checkout-head {
  display:flex; align-items:center; justify-content:space-between;
  margin-bottom:18px;
}

.checkout .checkout-title {
  font-size: 28px; font-weight: 700; letter-spacing:.2px;
}

.checkout .checkout-steps {
  display:flex; gap:8px; align-items:center; user-select:none;
}
.checkout .checkout-steps .dot {
  width:8px; height:8px; border-radius:50%; background:#cbd5e1; opacity:.8;
}
.checkout .checkout-steps .dot.active { background: var(--co-accent); }

.checkout .checkout-card {
  background: var(--co-card);
  border:1px solid var(--co-line);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 6px 18px rgba(2,6,23,.05);
}

.checkout .checkout-grid {
  display:grid; gap:20px;
  grid-template-columns: 1.2fr .8fr;
}
@media (max-width: 860px) {
  .checkout .checkout-grid { grid-template-columns: 1fr; }
}

.checkout .co-field {
  margin-bottom:14px;
}
.checkout .co-label {
  display:block; margin-bottom:6px; font-size:14px; color:var(--co-sub);
}
.checkout .co-input, .checkout .co-select, .checkout .co-radio {
  width:100%; font-size:15px; line-height:22px; padding:11px 12px;
  border:1px solid var(--co-line); border-radius:10px; background:#fff;
}
.checkout .co-input:focus, .checkout .co-select:focus {
  outline:none; border-color:var(--co-accent); box-shadow:0 0 0 3px rgba(37,99,235,.14);
}

.checkout .co-radios { display:grid; gap:10px; }
.checkout .co-radio-item {
  display:flex; gap:10px; align-items:center;
  padding:10px 12px; border:1px solid var(--co-line); border-radius:10px;
}
.checkout .co-radio-item input { width:18px; height:18px; }

.checkout .co-extra {
  margin:10px 0 0 34px; padding:12px; border-left:3px solid var(--co-accent);
  background:#f8fafc; border-radius:8px;
}

.checkout .co-actions { display:flex; gap:10px; margin-top:14px; }
.checkout .co-btn {
  appearance:none; border:none; cursor:pointer; font-weight:600;
  padding:12px 16px; border-radius:12px;
  background: var(--co-bg); color:#fff;
  transition: transform .06s ease, box-shadow .15s ease;
  box-shadow: 0 6px 18px rgba(15,23,42,.25);
}
.checkout .co-btn:hover { transform: translateY(-1px); }
.checkout .co-btn.secondary {
  background:#fff; color:var(--co-ink); border:1px solid var(--co-line);
  box-shadow:none;
}

.checkout .order-table { width:100%; border-collapse: collapse; }
.checkout .order-table th, .checkout .order-table td {
  padding:10px 12px; border-bottom:1px solid var(--co-line); font-size:14px;
}
.checkout .order-table th { text-align:left; color:var(--co-sub); font-weight:600; }

.checkout .co-summary {
  background:#f8fafc; border:1px dashed var(--co-line); border-radius:12px;
  padding:14px; font-size:14px;
}
.checkout .co-summary .row { display:flex; justify-content:space-between; margin:6px 0; }
.checkout .co-summary .total { font-weight:800; font-size:16px; }

.checkout .co-badge {
  display:inline-block; font-size:12px; padding:4px 9px; border-radius:9999px;
  background:#eef2ff; color:#4338ca;
}

/* Alerts */
.checkout .co-alert { padding:12px 14px; border-radius:10px; margin:12px 0; font-size:14px; }
.checkout .co-alert.ok { background:#ecfdf5; border:1px solid #a7f3d0; color:#065f46; }
.checkout .co-alert.warn { background:#fffbeb; border:1px solid #fde68a; color:#92400e; }
.checkout .co-alert.bad { background:#fef2f2; border:1px solid #fecaca; color:#991b1b; }

/* Payment status page (success/callback) */
.checkout .pay-status {
  text-align:center; padding:26px; border-radius:14px; border:1px solid var(--co-line);
  background:#fff;
}
.checkout .pay-status .big { font-size:20px; font-weight:800; margin-bottom:8px; }
.checkout .pay-status.ok { border-color:#bbf7d0; }
.checkout .pay-status.ok .big { color:var(--co-ok); }
.checkout .pay-status.bad { border-color:#fecaca; }
.checkout .pay-status.bad .big { color:var(--co-bad); }
.checkout .pay-status.pending { border-color:#fde68a; }
.checkout .pay-status.pending .big { color:var(--co-warn); }

/* Small helpers */
.checkout .muted { color:var(--co-sub); }
.checkout .mt-12 { margin-top:12px; }
.checkout .mt-16 { margin-top:16px; }
.checkout .mt-24 { margin-top:24px; }
.checkout .right { text-align:right; }

















.checkout-container {
    max-width: 650px;
    margin: 30px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    font-family: 'Segoe UI', sans-serif;
}

.checkout-title {
    font-size: 22px;
    margin-bottom: 20px;
    font-weight: 600;
    color: #333;
}

.checkout-progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}

.checkout-progress .step {
    text-align: center;
    flex: 1;
    position: relative;
}

.checkout-progress .circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #e0e0e0;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: background .3s, transform .2s;
}

.checkout-progress .step.active .circle {
    background: #007bff;
    color: #fff;
    transform: scale(1.1);
}

.checkout-progress .line {
    flex: 0 0 30px;
    height: 3px;
    background: #e0e0e0;
}

.checkout-progress .step.active ~ .line {
    background: #007bff;
}



/* ===== PayParts confirm on checkout step3 ===== */

.checkout .payparts-confirm{
    margin-top:16px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    padding:14px 16px;
    border:1px solid #e5e7eb;
    border-radius:14px;
    background:#f8fafc;
}

.checkout .payparts-confirm__text{
    display:flex;
    flex-direction:column;
    gap:3px;
    min-width:0;
}

.checkout .payparts-confirm__text strong{
    font-size:15px;
    font-weight:700;
    color:#0f172a;
}

.checkout .payparts-confirm__text span{
    font-size:13px;
    line-height:1.35;
    color:#64748b;
}

.checkout .payparts-confirm__btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    flex:0 0 auto;
    min-height:40px;
    padding:0 16px;
    border-radius:10px;
    background:linear-gradient(90deg,#1976d2,#2196f3);
    color:#fff;
    font-size:14px;
    font-weight:700;
    text-decoration:none;
    white-space:nowrap;
    box-shadow:0 4px 12px rgba(33,150,243,.18);
    transition:transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}

.checkout .payparts-confirm__btn:hover{
    transform:translateY(-1px);
    box-shadow:0 8px 20px rgba(33,150,243,.24);
}

@media (max-width:640px){
    .checkout .payparts-confirm{
        align-items:stretch;
        flex-direction:column;
    }

    .checkout .payparts-confirm__btn{
        width:100%;
    }
}



.shipping-methods {
    display: grid;
    gap: 12px;
    margin-bottom: 20px;
}

.shipping-option {
    display: block;
    cursor: pointer;
}

.shipping-option input {
    display: none;
}

.option-content {
    display: flex;
    align-items: center;
    padding: 14px;
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 12px;
    transition: all .3s ease;
}

.option-content:hover {
    background: #f1f5ff;
    transform: translateY(-1px);
}

.shipping-option input:checked + .option-content {
    border-color: #007bff;
    background: #eef4ff;
}

.option-icon {
    font-size: 26px;
    margin-right: 14px;
}

.option-text .title {
    display: block;
    font-weight: 600;
    font-size: 16px;
}

.option-text .desc {
    font-size: 13px;
    color: #666;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    outline: none;
    font-size: 15px;
    transition: border-color .2s;
}

.form-group input:focus {
    border-color: #007bff;
}

.btn-next {
    background: #007bff;
    color: #fff;
    padding: 14px;
    width: 100%;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background .3s;
    margin-top: 10px;
}

.btn-next:hover {
    background: #0063d6;
}



/* ==========================================================================
   Responsive Enhancements (mobile & tablet) — 2025‑08‑21
   Drop this block at the END of your style.css or import as a separate file.
   Focus: мобільні (<600px) та планшети (600–1024px).
   ========================================================================== */

/* 0) Базові покращення для адаптиву */
img, video, canvas, svg { max-width: 100%; height: auto; }
.container, .wrapper { padding-left: 16px; padding-right: 16px; }
.breadcrumbs { row-gap: .25rem; column-gap: .25rem; }
.breadcrumbs { font-size: 13px; }

/* 1) Хедер/навігація */
@media (max-width: 1024px) {
  .site-header .container { padding: 0 16px; gap: 10px; }
  .main-nav { gap: 16px; }
}
@media (max-width: 820px) {
  .main-nav {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    justify-content: center;
  }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav a { font-size: 16px; padding: 6px 0; }
}

/* 2) Пошук/сортування (класти в один стовпчик на вузьких екранах) */
@media (max-width: 720px) {
  .sort-container {
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
  }
  .search-container { max-width: 100%; }
}

/* 3) HERO: зменшуємо blur/розмір плями на мобільних */
@media (max-width: 900px) {
  .hero-modern { padding: 70px 16px 60px; }
  .hero-text h1 { font-size: 2.25rem; }
  .hero-modern::before {
    width: 360px; height: 360px;
    filter: blur(90px);
    opacity: .18;
    top: -60px; right: -80px;
  }
}
@media (max-width: 560px) {
  .hero-text h1 { font-size: 1.9rem; }
  .hero-text p  { font-size: 1rem; }
  .btn-cta { padding: 14px 24px; font-size: 1rem; }
}

/* 4) Категорії/картки */
@media (max-width: 640px) {
  .cat-grid-modern { gap: 14px; }
  .cat-card-modern { padding: 16px; }
  .cat-card-modern img { height: 60px; }
}
@media (max-width: 520px) {
  .category-products li {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .category-products button { width: 100%; }
}

/* 5) Грід товарів */
@media (max-width: 920px) {
  .pro-style { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}
@media (max-width: 360px) {
  .product-card-pro { border-radius: 12px; }
  .add-cart-btn-pro { width: 100%; }
}



/* 6) Сторінка товару */
@media (max-width: 860px) {
  .container { padding-left: 0; padding-right: 0; }
  .product-page { width: 87%;padding: 20px; gap: 24px; }
  .product-gallery { max-width: 100%; min-width: 0; }
  .product-details {  min-width: 0; }
  .product-title { font-size: 22px; }
  .product-price-box { font-size: 20px; }
  .thumb { width: 64px; height: 64px; }
}
@media (max-width: 520px) {
  .thumb { width: 56px; height: 56px; }
  .product-description { padding: 16px; }
}

@media (max-width: 520px) {
  .product-description .l-paragraph {
    padding: 1px !important;
  }
}

@media (max-width: 520px) {
  .product-description .l-title {
    padding: 1px !important;
  }
}


/* 7) Банери/інфоблоки */
@media (max-width: 820px) {
  .banners { flex-direction: column; }
  .banner { height: 100px; }
}

/* 8) Кошик: робимо таблицю прокручуваною на мобільних замість «ламаємо» верстку */
@media (max-width: 740px) {
  .cart-table { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .cart-actions { flex-direction: column; gap: 12px; align-items: stretch; }
  .btn-checkout, .promo-form button { width: 100%; text-align: center; }
  .promo-form { flex-wrap: wrap; }
  .promo-form input { min-width: 220px; }
}

/* 9) Кабінет/профіль */
@media (max-width: 860px) {
  .cabinet-layout { gap: 1rem; }
  .cabinet-sidebar { width: 100%; order: -1; }
  .cabinet-actions { gap: .6rem; }
}

/* 10) Замовлення/таймлайн — щільніші відступи */
@media (max-width: 640px) {
  .order-card { padding: 16px; }
  .order-header { flex-direction: column; align-items: flex-start; gap: 6px; }
  .timeline { gap: 6px; }
  .timeline-step span { font-size: 12px; }
}

/* 11) Checkout */
@media (max-width: 900px) {
  .checkout .checkout-wrap { margin: 24px auto 40px; }
}
@media (max-width: 600px) {
  .checkout .co-actions { flex-direction: column; }
  .checkout .co-btn { width: 100%; }
  .checkout .co-summary .row { gap: 10px; }
}

/* 12) Декоративні фото в адмінці — ховаємо на мобільних, щоб не перекривали контент */
@media (max-width: 900px) {
  .adminphoto, .adminphotoright { display: none !important; }
}

/* 13) Дрібні штрихи для типографіки/кнопок */
@media (max-width: 480px) {
  .logo { font-size: 20px; }
  .section-title { font-size: 1.5rem; margin-bottom: 28px; }
  .button-disabled, .btn-small { width: 100%; }
}


.l-description {
  padding: 0 !important;
}

.l-description-st {
  padding: 0 !important;
}

.card-variant-colors{
    display:flex;
    align-items:center;
    justify-content: center;
    gap:6px;
    margin-top:10px;
}

.card-variant-color{
    width:16px;
    height:16px;
    border-radius:999px;
    background:var(--variant-color);
    border:1px solid #d1d5db;
    transition:.15s ease;
    flex-shrink:0;
}

.card-variant-color:hover{
    transform:scale(1.12);
}

.card-variant-color--active{
    box-shadow:
        0 0 0 2px #fff,
        0 0 0 4px #2563eb;
}




.badge-installment-pro {
    position: absolute;
    bottom: 3px;
    left: 10px;
    width: 45px;
    height: 45px;
    /* border-radius: 50%; */
    overflow: hidden;
    /* background: #fff; */
    z-index: 4;
    /* box-shadow: 0 4px 14px rgba(0, 0, 0, .12); */
}

.badge-installment-pro img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.badge-installment-pro span {
    position: absolute;
    right: -1px;
    bottom: 4px;
    min-width: 10px;
    height: 16px;
    padding: 0 6px;
    border-radius: 999px;
    background: #16a34a;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}


.wishlist-btn-pro{
    transition:.2s ease;
}

.wishlist-btn-pro--active{
    background:#ef4444;
    color:#fff;
}

.cabinet-favorites{

    display:grid;

    grid-template-columns:
        repeat(auto-fill, minmax(240px, 1fr));

    gap:20px;

    margin-top:20px;
}

.cabinet-empty{

    padding:40px;

    text-align:center;

    border:1px dashed #d1d5db;

    border-radius:14px;

    background:#fff;
}

.favorite-price-drop{

    position:absolute;
    top:45px;
    left:10px;
    z-index:5;
    background:#16a34a;
    color:#fff;
    font-size:12px;
    font-weight:700;
    padding:6px 10px;
    border-radius:999px;
    box-shadow:0 4px 12px rgba(0,0,0,.15);
}

.favorite-back-stock{
    position:absolute;
    top:82px;
    left:10px;
    z-index:5;

    background:#2563eb;
    color:#fff;

    font-size:12px;
    font-weight:700;

    padding:6px 10px;
    border-radius:999px;

    box-shadow:0 4px 12px rgba(0,0,0,.15);
}

.ml-toast{

    position:fixed;

    left:50%;

    bottom:24px;

    transform:
        translateX(-50%)
        translateY(120px);

    z-index:99999;

    display:flex;

    align-items:center;

    gap:14px;

    min-width:280px;

    max-width:90vw;

    padding:14px 18px;

    border-radius:18px;

    background:#111827;

    color:#fff;

    box-shadow:
        0 12px 40px rgba(0,0,0,.25);

    transition:.28s ease;

    opacity:0;

    pointer-events:auto;
}

.ml-toast.show{

    opacity:1;

    transform:
        translateX(-50%)
        translateY(0);
}

.ml-toast__icon{

    width:42px;

    height:42px;

    border-radius:999px;

    display:flex;

    align-items:center;

    justify-content:center;

    background:#ef4444;

    font-size:20px;

    flex-shrink:0;
}

.ml-toast__content{

    display:flex;

    flex-direction:column;

    gap:4px;
}

.ml-toast__title{

    font-size:14px;

    font-weight:700;

    line-height:1.2;
}

.ml-toast__link{

    color:#93c5fd;

    text-decoration:none;

    font-size:13px;

    font-weight:600;
}

.ml-toast__link:hover{

    text-decoration:underline;
}

@media (max-width:480px){

    .ml-toast{

        width:calc(100% - 24px);

        min-width:0;

        left:12px;

        right:12px;

        transform:
            translateY(120px);
    }

    .ml-toast.show{

        transform:
            translateY(0);
    }
}





.home-brands {
    max-width: 1200px;
    margin: 26px auto 34px;
    padding: 0 12px;
}

.home-brands__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.home-brands__head .section-title {
    margin: 0;
}

.home-brands__all {
    color: #2563eb;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.home-brands__all:hover {
    text-decoration: underline;
}

.home-brands__slider {
    position: relative;
    overflow: hidden;
    padding: 4px 0;
    mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}

.home-brands__track {
    display: flex;
    gap: 14px;
    width: max-content;
    animation: brandsMove 38s linear infinite;
    will-change: transform;
}

.home-brands__slider:hover .home-brands__track {
    animation-play-state: paused;
}

.home-brand-card {
    width: 150px;
    min-width: 150px;
    height: 92px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff, #f8faff);
    border: 1px solid #e6ebf5;
    box-shadow: 0 6px 20px rgba(0,0,0,.04);
    transition: .2s ease;
}

.home-brand-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0,0,0,.08);
    border-color: #bfdbfe;
}

.home-brand-card img {
    max-width: 92px;
    max-height: 34px;
    object-fit: contain;
}

.home-brand-card span {
    max-width: 120px;
    color: #1b2233;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@keyframes brandsMove {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .home-brands {
        margin: 20px auto 28px;
        padding: 0 8px;
    }

    .home-brands__head {
        margin-bottom: 12px;
    }

    .home-brands__all {
        font-size: 13px;
    }

    .home-brands__track {
        gap: 10px;
        animation-duration: 32s;
    }

    .home-brand-card {
        width: 122px;
        min-width: 122px;
        height: 82px;
        border-radius: 16px;
        gap: 8px;
    }

    .home-brand-card img {
        max-width: 76px;
        max-height: 28px;
    }

    .home-brand-card span {
        max-width: 100px;
        font-size: 13px;
    }
}

@media (max-width: 420px) {
    .home-brand-card {
        width: 108px;
        min-width: 108px;
        height: 76px;
    }

    .home-brand-card img {
        max-width: 68px;
        max-height: 24px;
    }

    .home-brand-card span {
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-brands__track {
        animation: none;
    }

    .home-brands__slider {
        overflow-x: auto;
        mask-image: none;
    }
}