*, *::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); }
}

/* Активні іконки */
/* timeline-line є першим дочірнім div, тому кроки фактично починаються з :nth-child(2) */
.order-card[data-progress='1'] .timeline-step:nth-child(2) i,
.order-card[data-progress='2'] .timeline-step:nth-child(2) i,
.order-card[data-progress='2'] .timeline-step:nth-child(3) i,
.order-card[data-progress='3'] .timeline-step:nth-child(2) i,
.order-card[data-progress='3'] .timeline-step:nth-child(3) i,
.order-card[data-progress='3'] .timeline-step:nth-child(4) i,
.order-card[data-progress='4'] .timeline-step:nth-child(2) i,
.order-card[data-progress='4'] .timeline-step:nth-child(3) i,
.order-card[data-progress='4'] .timeline-step:nth-child(4) i,
.order-card[data-progress='4'] .timeline-step:nth-child(5) i,
.order-card[data-progress='5'] .timeline-step:nth-child(2) i,
.order-card[data-progress='5'] .timeline-step:nth-child(3) i,
.order-card[data-progress='5'] .timeline-step:nth-child(4) i,
.order-card[data-progress='5'] .timeline-step:nth-child(5) i,
.order-card[data-progress='5'] .timeline-step:nth-child(6) 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;
    }
}
/* ========================================================================== */
/* MobiLand Checkout 2026 — full redesign (mlco namespace)                    */
/* ========================================================================== */
.mlco{
  --mlco-blue:#1976d2;
  --mlco-blue-2:#2196f3;
  --mlco-blue-soft:#eef7ff;
  --mlco-ink:#172033;
  --mlco-text:#344054;
  --mlco-muted:#667085;
  --mlco-line:#e4eaf1;
  --mlco-soft:#f7f9fc;
  --mlco-success:#12a150;
  --mlco-danger:#d92d20;
  width:100%;
  padding:26px 16px 72px;
  color:var(--mlco-ink);
  font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
}
.mlco *{box-sizing:border-box}
.mlco svg{display:block;width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.mlco .mlco-shell{width:min(1180px,100%);margin:0 auto}
.mlco .mlco-shell--payment{width:min(960px,100%)}

.mlco .mlco-page-head{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:34px;margin:0 0 24px}
.mlco .mlco-page-copy{min-width:0}
.mlco .mlco-kicker{display:block;margin:0 0 7px;color:var(--mlco-blue);font-size:12px;font-weight:800;letter-spacing:.09em;text-transform:uppercase}
.mlco .mlco-page-copy h1{margin:0;color:#151d2e;font-size:32px;line-height:1.14;font-weight:800;letter-spacing:-.025em}
.mlco .mlco-page-copy p{max-width:650px;margin:8px 0 0;color:var(--mlco-muted);font-size:14px;line-height:1.55}

.mlco .mlco-progress{display:flex;align-items:center;justify-content:flex-end;min-width:0;padding-bottom:3px}
.mlco .mlco-progress>i{display:block;width:34px;height:2px;margin:0 10px;background:#dfe5ec;border-radius:999px}
.mlco .mlco-progress>i.is-done{background:#7abcf7}
.mlco .mlco-progress-item{display:flex;align-items:center;gap:9px;min-width:0;color:#98a2b3}
.mlco .mlco-progress-item>span{display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;border:1px solid #d0d7e0;border-radius:50%;background:#fff;color:#7b8794;font-size:12px;font-weight:800}
.mlco .mlco-progress-item>div{display:flex;flex-direction:column;min-width:0;line-height:1.2}
.mlco .mlco-progress-item b{color:#667085;font-size:12px;font-weight:800;white-space:nowrap}
.mlco .mlco-progress-item small{margin-top:2px;color:#98a2b3;font-size:10px;white-space:nowrap}
.mlco .mlco-progress-item.is-active>span{border-color:#7dbcf5;background:linear-gradient(135deg,#1976d2,#2196f3);box-shadow:0 7px 18px rgba(25,118,210,.2);color:#fff}
.mlco .mlco-progress-item.is-active b{color:#175fa7}
.mlco .mlco-progress-item.is-done>span{border-color:#b9dcfa;background:#eaf5ff;color:#1976d2}
.mlco .mlco-progress-item.is-done b{color:#475467}

.mlco .co-error,.mlco .mlco-error{margin:0 0 18px;padding:13px 15px;border:1px solid #fecdca;border-radius:13px;background:#fff3f2;color:#b42318;font-size:13px;font-weight:650}

.mlco .mlco-delivery-layout{display:grid;grid-template-columns:minmax(0,1.34fr) minmax(390px,.86fr);gap:22px;align-items:start}
.mlco .mlco-panel{min-width:0;border:1px solid var(--mlco-line);border-radius:22px;background:#fff;box-shadow:0 12px 32px rgba(18,52,77,.065)}
.mlco .mlco-panel--shipping,.mlco .mlco-panel--contacts,.mlco .mlco-payment-panel{padding:27px}
.mlco .mlco-panel-head{display:flex;align-items:center;gap:13px;margin:0 0 21px}
.mlco .mlco-panel-head--payment{margin-bottom:24px}
.mlco .mlco-panel-icon{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;padding:10px;border-radius:13px;background:linear-gradient(135deg,#e9f5ff,#f4f9ff);color:#1976d2}
.mlco .mlco-panel-head h2{margin:0;color:#1d2939;font-size:18px;line-height:1.25;font-weight:800}
.mlco .mlco-panel-head p{margin:4px 0 0;color:#8a94a3;font-size:12px;line-height:1.35}

.mlco .mlco-method-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.mlco .mlco-native-radio{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;clip-path:inset(50%)!important;white-space:nowrap!important}
.mlco .mlco-method-card,.mlco .mlco-pay-card{position:relative;display:flex;min-width:0;cursor:pointer;transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease,background .16s ease}
.mlco .mlco-method-card{min-height:116px;flex-direction:column;align-items:flex-start;padding:15px;border:1px solid #dde4ec;border-radius:16px;background:#fff}
.mlco .mlco-method-card:hover,.mlco .mlco-pay-card:hover{transform:translateY(-1px);border-color:#a7ceed;box-shadow:0 8px 22px rgba(25,118,210,.08)}
.mlco .mlco-method-card.is-selected,.mlco .mlco-pay-card.is-selected{border-color:#66aef0;background:linear-gradient(180deg,#f5faff,#fff);box-shadow:0 0 0 3px rgba(33,150,243,.09),0 10px 24px rgba(25,118,210,.08)}
.mlco .mlco-method-icon{display:grid;place-items:center;width:31px;height:31px;padding:4px;margin-bottom:12px;color:#3f4f64}
.mlco .mlco-method-card.is-selected .mlco-method-icon,.mlco .mlco-pay-card.is-selected .mlco-pay-icon{color:#1976d2}
.mlco .mlco-method-copy,.mlco .mlco-pay-copy{display:flex;flex-direction:column;min-width:0}
.mlco .mlco-method-copy strong,.mlco .mlco-pay-copy strong{color:#1d2939;font-size:14px;font-weight:800;line-height:1.28}
.mlco .mlco-method-copy small,.mlco .mlco-pay-copy small{margin-top:4px;color:#7b8794;font-size:11px;line-height:1.35}
.mlco .mlco-method-check{position:absolute;top:13px;right:13px;width:19px;height:19px;border:1.5px solid #c7d0da;border-radius:50%;background:#fff}
.mlco .is-selected>.mlco-method-check{border-color:#1976d2;background:#1976d2;box-shadow:inset 0 0 0 4px #fff}
.mlco .mlco-method-extras:empty{display:none}
.mlco .mlco-method-extra{min-width:0;margin-top:14px;padding:17px;border:1px solid #dce9f6;border-radius:16px;background:linear-gradient(180deg,#f8fbff,#fbfdff)}

.mlco .mlco-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 12px}
.mlco .mlco-field{min-width:0}
.mlco .mlco-field--full{grid-column:1/-1}
.mlco .mlco-label{display:flex;align-items:center;gap:5px;margin:0 0 7px;color:#475467;font-size:12px;font-weight:750;line-height:1.35}
.mlco .mlco-label em{color:#d92d20;font-style:normal}
.mlco .mlco-label span{color:#98a2b3;font-size:10px;font-weight:600}
.mlco .mlco-input,.mlco .mlco-method-extra select,.mlco .mlco-method-extra textarea{display:block;width:100%;min-width:0;height:50px;padding:0 14px;border:1px solid #d5dde7;border-radius:12px;outline:none;background:#fff;color:#182230;font:inherit;font-size:14px;transition:border-color .15s ease,box-shadow .15s ease,background .15s ease}
.mlco .mlco-method-extra textarea{min-height:100px;height:auto;padding-top:12px;padding-bottom:12px;resize:vertical}
.mlco .mlco-input:hover,.mlco .mlco-method-extra select:hover{border-color:#b6c3d0}
.mlco .mlco-input:focus,.mlco .mlco-method-extra select:focus,.mlco .mlco-method-extra textarea:focus{border-color:#65acf0;box-shadow:0 0 0 4px rgba(33,150,243,.11)}
.mlco .mlco-input:disabled,.mlco .mlco-method-extra select:disabled{cursor:not-allowed;background:#f4f6f8;color:#98a2b3}
.mlco .mlco-input.is-invalid{border-color:#f04438;box-shadow:0 0 0 4px rgba(240,68,56,.08)}
.mlco .mlco-field-hint{margin-top:6px;color:#98a2b3;font-size:10.5px;line-height:1.4}

.mlco .mlco-primary-btn,.mlco .mlco-secondary-btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:46px;padding:0 18px;border-radius:12px;text-decoration:none;font:inherit;font-size:13px;font-weight:800;cursor:pointer;transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease,background .15s ease}
.mlco .mlco-primary-btn{border:0;background:linear-gradient(90deg,#1976d2,#2196f3);box-shadow:0 8px 20px rgba(25,118,210,.2);color:#fff}
.mlco .mlco-primary-btn:hover{transform:translateY(-1px);box-shadow:0 12px 26px rgba(25,118,210,.26)}
.mlco .mlco-primary-btn svg,.mlco .mlco-secondary-btn svg{width:17px;height:17px}
.mlco .mlco-primary-btn--wide{width:100%;margin-top:18px}
.mlco .mlco-secondary-btn{border:1px solid #d8e0e8;background:#fff;box-shadow:none;color:#344054}
.mlco .mlco-secondary-btn:hover{transform:translateY(-1px);border-color:#b9c6d3;background:#f8fafc}
.mlco .mlco-secondary-btn--wide{width:100%}

/* Nova Poshta custom combobox */
.mlco .mlco-np{display:grid;grid-template-columns:minmax(0,.42fr) minmax(0,.58fr);gap:14px;min-width:0}
.mlco .mlco-np-field{min-width:0}
.mlco .mlco-np-combobox{position:relative;min-width:0}
.mlco .mlco-np-input{padding-right:42px;text-overflow:ellipsis}
.mlco .mlco-np-chevron{position:absolute;top:50%;right:15px;width:8px;height:8px;border-right:1.8px solid #7b8794;border-bottom:1.8px solid #7b8794;transform:translateY(-68%) rotate(45deg);pointer-events:none}
.mlco .mlco-np-dropdown{position:absolute;z-index:300;top:calc(100% + 7px);left:0;width:100%;max-height:300px;overflow:auto;padding:6px;border:1px solid #d9e2eb;border-radius:14px;background:#fff;box-shadow:0 18px 46px rgba(16,24,40,.17)}
.mlco .mlco-np-dropdown[hidden]{display:none!important}
.mlco .mlco-np-option{display:flex;width:100%;align-items:center;justify-content:space-between;gap:10px;padding:10px 11px;border:0;border-radius:10px;background:transparent;color:#1d2939;text-align:left;white-space:normal;cursor:pointer;font:inherit;transition:background .12s ease}
.mlco .mlco-np-option:hover,.mlco .mlco-np-option.is-active{background:#eef7ff}
.mlco .mlco-np-option-copy{display:flex;flex:1 1 auto;min-width:0;flex-direction:column}
.mlco .mlco-np-option-title{font-size:12.5px;font-weight:750;line-height:1.42;overflow-wrap:anywhere}
.mlco .mlco-np-option-subtitle{margin-top:2px;color:#8a94a3;font-size:10.5px;line-height:1.35;overflow-wrap:anywhere}
.mlco .mlco-np-option-meta{flex:0 0 auto;padding:4px 7px;border-radius:8px;background:#f2f4f7;color:#667085;font-size:10px;font-weight:750}
.mlco .mlco-np-empty{padding:13px;color:#667085;font-size:11.5px;line-height:1.45}
.mlco .mlco-np-status{min-height:16px;margin-top:6px;color:#667085;font-size:10.5px;line-height:1.4}
.mlco .mlco-np-status.is-loading{color:#175fa7}.mlco .mlco-np-status.is-warning{color:#b54708}.mlco .mlco-np-status.is-error{color:#b42318}

/* Payment */
.mlco .mlco-payment-panel{max-width:960px;margin:0 auto}
.mlco .mlco-pay-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.mlco .mlco-pay-card{align-items:center;gap:14px;min-height:90px;padding:16px 17px;border:1px solid #dde4ec;border-radius:16px;background:#fff}
.mlco .mlco-pay-card.is-disabled{cursor:not-allowed;opacity:.48;background:#f7f8fa}
.mlco .mlco-pay-card.is-disabled:hover{transform:none;border-color:#dde4ec;box-shadow:none}
.mlco .mlco-pay-icon{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;padding:9px;border-radius:12px;background:#f3f7fb;color:#52647a}
.mlco .mlco-pay-card .mlco-method-check{top:50%;right:16px;transform:translateY(-50%)}
.mlco .mlco-pay-copy{padding-right:26px}
.mlco .mlco-footer-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:22px;padding-top:20px;border-top:1px solid #edf0f3}

/* Review / step 3 */
.mlco .mlco-review{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(330px,.75fr);min-width:0;overflow:hidden;border:1px solid var(--mlco-line);border-radius:24px;background:#fff;box-shadow:0 14px 36px rgba(18,52,77,.075)}
.mlco .mlco-review-main{min-width:0;padding:29px 30px 28px}
.mlco .mlco-review-side{min-width:0;padding:29px 24px;border-left:1px solid #e8edf2;background:linear-gradient(180deg,#f9fbfd,#f6f9fc)}
.mlco .mlco-review-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:17px}
.mlco .mlco-review-heading--side{align-items:flex-start;margin-bottom:16px}
.mlco .mlco-review-kicker{display:block;margin-bottom:3px;color:#7b8794;font-size:10px;font-weight:800;letter-spacing:.075em;text-transform:uppercase}
.mlco .mlco-review-heading h2{margin:0;color:#1d2939;font-size:18px;font-weight:800;line-height:1.25}
.mlco .mlco-count-badge{display:inline-flex;align-items:center;min-height:28px;padding:0 10px;border-radius:999px;background:#eef6fd;color:#1769aa;font-size:11px;font-weight:800;white-space:nowrap}
.mlco .mlco-product-list{min-width:0}
.mlco .mlco-product-head,.mlco .mlco-product-row{display:grid;grid-template-columns:minmax(0,1fr) 64px 125px 130px;gap:12px;align-items:center;min-width:0}
.mlco .mlco-product-head{padding:0 0 9px;border-bottom:1px solid #e3e9ef;color:#8a94a3;font-size:10px;font-weight:800;letter-spacing:.055em;text-transform:uppercase}
.mlco .mlco-product-head span:nth-child(n+2){text-align:right}
.mlco .mlco-product-row{padding:16px 0;border-bottom:1px solid #eef1f4;color:#344054;font-size:12.5px;line-height:1.42}
.mlco .mlco-product-name{display:flex;align-items:flex-start;min-width:0;color:#1d2939;font-weight:700;overflow-wrap:anywhere}
.mlco .mlco-product-index{flex:0 0 auto;margin-right:8px;color:#9fc9ef;font-size:17px;line-height:1}
.mlco .mlco-product-qty,.mlco .mlco-product-price,.mlco .mlco-product-sum{min-width:0;text-align:right}
.mlco .mlco-product-qty b{display:inline-flex;align-items:center;justify-content:center;min-width:36px;height:27px;padding:0 8px;border-radius:8px;background:#f3f5f8;color:#475467;font-size:11px;white-space:nowrap}
.mlco .mlco-product-price,.mlco .mlco-product-sum{white-space:nowrap}
.mlco .mlco-product-price{display:flex;flex-direction:column;align-items:flex-end;gap:2px}
.mlco .mlco-product-price strong,.mlco .mlco-product-sum strong{color:#1d2939;font-size:12.5px;font-weight:800;white-space:nowrap}
.mlco .mlco-price-old{color:#98a2b3;font-size:10.5px;text-decoration:line-through;white-space:nowrap}
.mlco .mlco-mobile-label{display:none}
.mlco .mlco-totals{width:min(370px,100%);margin:18px 0 0 auto}
.mlco .mlco-total-row{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:8px 0;color:#667085;font-size:12.5px}
.mlco .mlco-total-row strong{color:#344054;font-size:13px;font-weight:800;white-space:nowrap}
.mlco .mlco-total-row code{margin-left:5px;padding:2px 5px;border-radius:5px;background:#f2f4f7;color:#475467;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:10px}
.mlco .mlco-total-row--promo strong{color:#d92d20}
.mlco .mlco-total-row--grand{margin-top:5px;padding-top:14px;border-top:1px solid #dfe5eb;color:#1d2939;font-size:14px;font-weight:800}
.mlco .mlco-total-row--grand strong{color:#101828;font-size:20px;font-weight:850;letter-spacing:-.02em}

.mlco .mlco-info-card{display:grid;grid-template-columns:38px minmax(0,1fr);gap:12px;min-width:0;padding:14px 0;border-bottom:1px solid #e6ebf0}
.mlco .mlco-info-card:first-of-type{padding-top:4px}
.mlco .mlco-info-icon{display:grid;place-items:center;width:38px;height:38px;padding:9px;border:1px solid #dce8f3;border-radius:12px;background:#fff;color:#1976d2}
.mlco .mlco-info-content{min-width:0}
.mlco .mlco-info-label{display:block;margin-bottom:3px;color:#98a2b3;font-size:9.5px;font-weight:800;letter-spacing:.06em;text-transform:uppercase}
.mlco .mlco-info-title{display:block;color:#1d2939;font-size:13px;font-weight:800;line-height:1.42;overflow-wrap:anywhere}
.mlco .mlco-info-line{display:grid;grid-template-columns:62px minmax(0,1fr);gap:8px;margin-top:7px;color:#7b8794;font-size:10.5px;line-height:1.42}
.mlco .mlco-info-line strong{min-width:0;color:#475467;font-size:10.5px;font-weight:700;overflow-wrap:anywhere}
.mlco .mlco-info-sub{margin-top:5px;color:#667085;font-size:11px;font-weight:600;line-height:1.5;overflow-wrap:anywhere}
.mlco .mlco-review-actions{display:flex;flex-direction:column;gap:10px;margin-top:20px}
.mlco .mlco-confirm-slot,.mlco .mlco-confirm-slot form{width:100%;margin:0}
.mlco .mlco-primary-btn--confirm{width:100%;min-height:49px}
.mlco .mlco-confirm-slot .payparts-confirm{margin:0!important;align-items:stretch;flex-direction:column;padding:13px!important;border-radius:13px!important;background:#fff!important}
.mlco .mlco-confirm-slot .payparts-confirm__btn{width:100%}

@media (max-width:1080px){
  .mlco .mlco-page-head{grid-template-columns:1fr;align-items:start;gap:18px}
  .mlco .mlco-progress{justify-content:flex-start}
  .mlco .mlco-delivery-layout{grid-template-columns:1fr}
  .mlco .mlco-panel--contacts{width:100%}
  .mlco .mlco-review{grid-template-columns:1fr}
  .mlco .mlco-review-side{border-left:0;border-top:1px solid #e8edf2}
  .mlco .mlco-review-side{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 18px}
  .mlco .mlco-review-heading--side,.mlco .mlco-review-actions{grid-column:1/-1}
}

@media (max-width:760px){
  .mlco{padding:18px 12px 46px}
  .mlco .mlco-page-copy h1{font-size:26px}
  .mlco .mlco-progress{width:100%;justify-content:space-between}
  .mlco .mlco-progress>i{flex:1 1 20px;width:auto;margin:0 7px}
  .mlco .mlco-progress-item>div{display:none}
  .mlco .mlco-panel--shipping,.mlco .mlco-panel--contacts,.mlco .mlco-payment-panel,.mlco .mlco-review-main,.mlco .mlco-review-side{padding:20px 17px}
  .mlco .mlco-method-grid{grid-template-columns:1fr}
  .mlco .mlco-method-card{min-height:76px;flex-direction:row;align-items:center;padding:13px 44px 13px 13px}
  .mlco .mlco-method-icon{flex:0 0 34px;width:34px;height:34px;margin:0 12px 0 0}
  .mlco .mlco-method-check{top:50%;right:14px;transform:translateY(-50%)}
  .mlco .mlco-fields,.mlco .mlco-np,.mlco .mlco-pay-grid{grid-template-columns:1fr}
  .mlco .mlco-field--full{grid-column:auto}
  .mlco .mlco-footer-actions{align-items:stretch;flex-direction:column-reverse}
  .mlco .mlco-footer-actions .mlco-primary-btn,.mlco .mlco-footer-actions .mlco-secondary-btn{width:100%}
  .mlco .mlco-review-side{display:block}
  .mlco .mlco-product-head{display:none}
  .mlco .mlco-product-row{grid-template-columns:1fr auto;gap:11px 16px;padding:16px 0}
  .mlco .mlco-product-name{grid-column:1/-1}
  .mlco .mlco-product-qty,.mlco .mlco-product-price,.mlco .mlco-product-sum{display:flex;align-items:center;justify-content:space-between;gap:10px;text-align:left}
  .mlco .mlco-product-qty{grid-column:1/2}
  .mlco .mlco-product-price{grid-column:1/-1;flex-direction:row}
  .mlco .mlco-product-sum{grid-column:1/-1;padding-top:8px;border-top:1px dashed #e5eaf0}
  .mlco .mlco-mobile-label{display:inline;color:#98a2b3;font-size:10px;font-weight:750;text-transform:uppercase;letter-spacing:.04em}
  .mlco .mlco-product-qty b{margin-left:auto}
  .mlco .mlco-product-price strong,.mlco .mlco-product-price .mlco-price-old{margin-left:auto}
  .mlco .mlco-product-price .mlco-price-old+strong{margin-left:0}
  .mlco .mlco-product-sum strong{margin-left:auto;font-size:14px}
  .mlco .mlco-totals{width:100%;margin-top:14px}
}

@media (max-width:430px){
  .mlco .mlco-page-copy h1{font-size:24px}
  .mlco .mlco-panel{border-radius:18px}
  .mlco .mlco-panel--shipping,.mlco .mlco-panel--contacts,.mlco .mlco-payment-panel,.mlco .mlco-review-main,.mlco .mlco-review-side{padding:17px 14px}
  .mlco .mlco-panel-head{margin-bottom:17px}
  .mlco .mlco-info-line{grid-template-columns:1fr;gap:2px}
}

/* ========================================================================== */
/* MobiLand — Order details /cabinet/orders/{id}                              */
/* Повністю namespaced: не впливає на картки списку замовлень та інші сторінки */
/* ========================================================================== */
.ml-order-page{
  --ml-order-brand:#1976d2;
  --ml-order-brand2:#2196f3;
  --ml-order-ink:#0f172a;
  --ml-order-muted:#64748b;
  --ml-order-line:#e6edf5;
  --ml-order-soft:#f5f8fc;
  --ml-order-card:#fff;
  max-width:1180px;
  margin:28px auto 56px;
  padding:0 16px;
  color:var(--ml-order-ink);
  font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
}
.ml-order-page *{box-sizing:border-box}
.ml-order-page svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.ml-order-back{
  display:inline-flex;align-items:center;gap:8px;margin:0 0 16px;color:#475569;font-size:14px;font-weight:700;text-decoration:none;
  transition:color .16s ease,transform .16s ease;
}
.ml-order-back:hover{color:var(--ml-order-brand);transform:translateX(-2px)}
.ml-order-back svg{width:18px;height:18px}

.ml-order-hero{
  position:relative;overflow:hidden;display:flex;align-items:flex-end;justify-content:space-between;gap:28px;
  padding:30px 32px;border:1px solid #dbe8f6;border-radius:24px;
  background:
    radial-gradient(circle at 88% -20%,rgba(33,150,243,.20),transparent 38%),
    linear-gradient(135deg,#fff 0%,#f7fbff 100%);
  box-shadow:0 16px 45px rgba(15,23,42,.07);
}
.ml-order-hero::before{content:"";position:absolute;inset:0 0 auto 0;height:4px;background:linear-gradient(90deg,var(--ml-order-brand),var(--ml-order-brand2))}
.ml-order-kicker{display:block;margin-bottom:5px;color:#7890a8;font-size:11px;font-weight:800;letter-spacing:.11em;text-transform:uppercase}
.ml-order-title-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.ml-order-title-row h1{margin:0;color:#0f172a;font-size:34px;line-height:1;font-weight:850;letter-spacing:-.035em}
.ml-order-created{margin-top:9px;color:#64748b;font-size:14px}
.ml-order-status{display:inline-flex;align-items:center;gap:7px;padding:7px 11px;border-radius:999px;font-size:12px;font-weight:800;background:#eff6ff;color:#1d4ed8;border:1px solid #dbeafe}
.ml-order-status i{width:7px;height:7px;border-radius:50%;background:currentColor;box-shadow:0 0 0 4px rgba(37,99,235,.10)}
.ml-order-status--paid,.ml-order-status--done,.ml-order-status--completed,.ml-order-status--customer_received{background:#ecfdf3;color:#15803d;border-color:#bbf7d0}
.ml-order-status--shipped{background:#fff7ed;color:#c2410c;border-color:#fed7aa}
.ml-order-status--received{background:#f5f3ff;color:#6d28d9;border-color:#ddd6fe}
.ml-order-status--cancel,.ml-order-status--canceled{background:#fff1f2;color:#be123c;border-color:#fecdd3}
.ml-order-hero-total{text-align:right;flex:0 0 auto}
.ml-order-hero-total span{display:block;margin-bottom:5px;color:#64748b;font-size:12px;font-weight:700}
.ml-order-hero-total strong{display:block;color:#0f172a;font-size:29px;line-height:1;font-weight:900;white-space:nowrap;letter-spacing:-.03em}

.ml-order-progress{
  position:relative;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0;margin:18px 0 22px;padding:20px 22px 15px;
  border:1px solid var(--ml-order-line);border-radius:20px;background:#fff;
}
.ml-order-progress-track{position:absolute;top:38px;left:10%;right:10%;height:3px;background:#e8eef5;border-radius:999px;overflow:hidden}
.ml-order-progress-track i{display:block;width:var(--ml-order-progress);height:100%;background:linear-gradient(90deg,var(--ml-order-brand),var(--ml-order-brand2));border-radius:999px;transition:width .35s ease}
.ml-order-progress.is-cancelled .ml-order-progress-track i{width:0;background:#ef4444}
.ml-order-progress-step{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;gap:7px;color:#94a3b8;text-align:center;font-size:11px;font-weight:800}
.ml-order-progress-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;border:2px solid #e2e8f0;background:#fff;color:#94a3b8;transition:.18s ease}
.ml-order-progress-icon svg{width:18px;height:18px}
.ml-order-progress-step.is-done,.ml-order-progress-step.is-current{color:#1d4ed8}
.ml-order-progress-step.is-done .ml-order-progress-icon{border-color:#bfdbfe;background:#eff6ff;color:#2563eb}
.ml-order-progress-step.is-current .ml-order-progress-icon{border-color:#2563eb;background:linear-gradient(135deg,var(--ml-order-brand),var(--ml-order-brand2));color:#fff;box-shadow:0 0 0 5px rgba(37,99,235,.10)}
.ml-order-progress-step.is-cancelled{color:#be123c}
.ml-order-progress-step.is-cancelled .ml-order-progress-icon{border-color:#fecdd3;background:#fff1f2;color:#be123c}

.ml-order-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:20px;align-items:start}
.ml-order-main{display:grid;gap:20px;min-width:0}
.ml-order-sidebar{display:grid;gap:16px;position:sticky;top:18px}
.ml-order-card{background:var(--ml-order-card);border:1px solid var(--ml-order-line);border-radius:20px;box-shadow:0 10px 30px rgba(15,23,42,.045)}
.ml-order-products-card{overflow:hidden}
.ml-order-section-head{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:22px 24px;border-bottom:1px solid var(--ml-order-line)}
.ml-order-section-head h2,.ml-order-info-head h2{margin:0;color:#0f172a;font-size:20px;line-height:1.2;font-weight:850;letter-spacing:-.02em}
.ml-order-section-head--compact{padding:0 0 16px;border:0}
.ml-order-count{display:inline-flex;align-items:center;height:30px;padding:0 10px;border-radius:999px;background:#f1f5f9;color:#475569;font-size:12px;font-weight:800;white-space:nowrap}

.ml-order-products-head{display:grid;grid-template-columns:minmax(0,1fr) 64px 120px 126px;gap:12px;padding:11px 24px;background:#f8fafc;border-bottom:1px solid var(--ml-order-line);color:#7c8ea3;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.06em}
.ml-order-products-head span:not(:first-child){text-align:right}
.ml-order-products-list{display:grid}
.ml-order-product{display:grid;grid-template-columns:82px minmax(0,1fr) 64px 120px 126px;gap:14px;align-items:center;padding:18px 24px;border-bottom:1px solid #edf2f7}
.ml-order-product:last-child{border-bottom:0}
.ml-order-product-media{width:82px;height:82px}
.ml-order-product-img{display:block;width:82px;height:82px;border-radius:14px;object-fit:contain;background:#f6f8fb;border:1px solid #edf1f5}
.ml-order-product-img--empty{display:grid;place-items:center;color:#94a3b8}
.ml-order-product-img--empty svg{width:30px;height:30px}
.ml-order-product-info{min-width:0}
.ml-order-product-title{display:block;color:#111827;font-size:14px;line-height:1.4;font-weight:760;text-decoration:none;overflow-wrap:anywhere}
a.ml-order-product-title:hover{color:var(--ml-order-brand)}
.ml-order-product-tags{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}
.ml-order-product-tag{display:inline-flex;align-items:center;min-height:23px;padding:3px 7px;border-radius:7px;font-size:10px;font-weight:800}
.ml-order-product-tag--discount{background:#fff1f2;color:#be123c}
.ml-order-product-tag--promo{background:#f5f3ff;color:#6d28d9}
.ml-order-product-cell{text-align:right;min-width:0}
.ml-order-product-cell>span{display:none}
.ml-order-product-cell strong{display:block;color:#0f172a;font-size:13px;font-weight:850;white-space:nowrap}
.ml-order-product-qty strong{display:inline-grid;place-items:center;min-width:30px;height:30px;padding:0 7px;border-radius:9px;background:#f1f5f9;color:#334155}
.ml-order-product-price{display:grid;gap:2px}
.ml-order-old-price{display:block;color:#94a3b8;font-size:11px;text-decoration:line-through;white-space:nowrap}
.ml-order-product-mobile-meta{display:none}
.ml-order-products-empty{padding:34px;text-align:center;color:#64748b;font-size:14px}

.ml-order-info-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.ml-order-info-card{padding:22px 24px;min-width:0}
.ml-order-info-head{display:flex;align-items:center;gap:12px;margin-bottom:18px}
.ml-order-info-icon{display:grid;place-items:center;width:42px;height:42px;flex:0 0 42px;border-radius:13px;background:linear-gradient(135deg,#eff6ff,#e0f2fe);color:#1976d2;border:1px solid #dbeafe}
.ml-order-info-icon svg{width:21px;height:21px}
.ml-order-detail-row{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:11px 0;border-top:1px solid #edf2f7;font-size:13px}
.ml-order-detail-row>span{color:#718096;flex:0 0 auto}
.ml-order-detail-row>strong{color:#1e293b;text-align:right;font-weight:750;min-width:0}
.ml-order-detail-row--stack{display:grid;gap:5px}
.ml-order-detail-row--stack>strong{text-align:left;line-height:1.45;overflow-wrap:anywhere}
.ml-order-break{overflow-wrap:anywhere}
.ml-order-note{margin-top:12px;padding:10px 12px;border-radius:10px;background:#f8fafc;color:#64748b;font-size:12px;line-height:1.45}
.ml-order-ttn-link{display:inline-flex;align-items:center;gap:5px;color:#1976d2;font-weight:800;text-decoration:none;white-space:nowrap}
.ml-order-ttn-link:hover{text-decoration:underline}
.ml-order-ttn-link svg{width:14px;height:14px}

.ml-order-summary-card,.ml-order-payment-card{padding:22px}
.ml-order-summary-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:11px 0;border-top:1px solid #edf2f7;color:#64748b;font-size:13px}
.ml-order-summary-row strong{color:#1e293b;font-size:14px;white-space:nowrap}
.ml-order-summary-row--discount{color:#7c3aed}
.ml-order-summary-row--discount strong{color:#7c3aed}
.ml-order-summary-row code{padding:2px 5px;border-radius:5px;background:#f5f3ff;color:#6d28d9;font-family:inherit;font-size:10px;font-weight:800}
.ml-order-summary-total{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-top:7px;padding-top:16px;border-top:2px solid #dfe8f2}
.ml-order-summary-total span{color:#334155;font-size:13px;font-weight:800}
.ml-order-summary-total strong{color:#0f172a;font-size:23px;font-weight:900;white-space:nowrap;letter-spacing:-.025em}

.ml-order-payment-main{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 0 3px;border-top:1px solid #edf2f7}
.ml-order-payment-main>strong{font-size:14px;line-height:1.35}
.ml-order-pay-status{display:inline-flex;align-items:center;justify-content:center;max-width:155px;padding:6px 9px;border-radius:999px;background:#f1f5f9;color:#64748b;text-align:center;font-size:10px;line-height:1.25;font-weight:850}
.ml-order-pay-status--paid,.ml-order-pay-status--success,.ml-order-pay-status--sandbox{background:#ecfdf3;color:#15803d}
.ml-order-pay-status--unpaid,.ml-order-pay-status--error,.ml-order-pay-status--failure{background:#fff1f2;color:#be123c}
.ml-order-pay-status--hold_wait,.ml-order-pay-status--pending{background:#fff7ed;color:#b45309}
.ml-order-pay-status--reversed{background:#f1f5f9;color:#475569}
.ml-order-payment-action{display:grid;gap:11px;margin-top:15px;padding:13px;border-radius:13px;background:#fff9ed;border:1px solid #fde4ad}
.ml-order-payment-action>div:first-child{display:grid;gap:3px}
.ml-order-payment-action strong{font-size:12px;color:#92400e}
.ml-order-payment-action span{font-size:11px;line-height:1.4;color:#9a6c2f}
.ml-order-liqpay-slot{min-width:0;overflow:hidden}
.ml-order-liqpay-slot form{margin:0!important}
.ml-order-liqpay-slot a,.ml-order-liqpay-slot button,.ml-order-liqpay-slot input[type="submit"]{display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;min-height:42px!important;margin:0!important;padding:9px 12px!important;border:0!important;border-radius:10px!important;background:linear-gradient(90deg,#1976d2,#2196f3)!important;color:#fff!important;font:800 12px/1.2 Inter,system-ui,sans-serif!important;text-decoration:none!important;cursor:pointer!important;box-shadow:none!important}

.ml-order-payparts{display:grid;gap:12px;margin-top:15px;padding:13px;border:1px solid #e2e8f0;border-radius:13px;background:#f8fafc}
.ml-order-payparts--success{background:#f0fdf4;border-color:#bbf7d0}
.ml-order-payparts--pending{background:#fffbeb;border-color:#fde68a}
.ml-order-payparts--failed{background:#fff1f2;border-color:#fecdd3}
.ml-order-payparts-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.ml-order-payparts-grid>div{min-width:0;padding:8px;border-radius:9px;background:rgba(255,255,255,.72)}
.ml-order-payparts-grid span{display:block;margin-bottom:3px;color:#64748b;font-size:9px;font-weight:750;text-transform:uppercase;letter-spacing:.04em}
.ml-order-payparts-grid strong{display:block;color:#1e293b;font-size:11px;line-height:1.35;overflow-wrap:anywhere}
.ml-order-action-btn{display:flex;align-items:center;justify-content:center;width:100%;min-height:42px;padding:9px 12px;border-radius:10px;color:#fff;text-decoration:none;font-size:12px;font-weight:850}
.ml-order-action-btn--green{background:#16a34a}
.ml-order-action-btn--green:hover{background:#15803d}
.ml-order-sidebar-back{display:flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:10px 14px;border:1px solid #dce5ef;border-radius:14px;background:#fff;color:#334155;text-decoration:none;font-size:12px;font-weight:800;transition:.16s ease}
.ml-order-sidebar-back:hover{border-color:#bfdbfe;color:#1976d2;background:#f8fbff}
.ml-order-sidebar-back svg{width:17px;height:17px}

.ml-order-empty{max-width:560px;margin:60px auto;padding:30px;border:1px solid #e2e8f0;border-radius:20px;background:#fff;text-align:center;box-shadow:0 12px 35px rgba(15,23,42,.05)}
.ml-order-empty strong,.ml-order-empty span{display:block}
.ml-order-empty strong{font-size:21px;color:#0f172a}
.ml-order-empty span{margin:8px 0 18px;color:#64748b;font-size:14px}
.ml-order-empty a{display:inline-flex;padding:10px 14px;border-radius:10px;background:#1976d2;color:#fff;font-weight:800;text-decoration:none}

@media (max-width:1040px){
  .ml-order-layout{grid-template-columns:minmax(0,1fr) 310px}
  .ml-order-products-head{grid-template-columns:minmax(0,1fr) 54px 105px 112px}
  .ml-order-product{grid-template-columns:72px minmax(0,1fr) 54px 105px 112px;padding-left:20px;padding-right:20px}
  .ml-order-product-media,.ml-order-product-img{width:72px;height:72px}
}
@media (max-width:900px){
  .ml-order-layout{grid-template-columns:1fr}
  .ml-order-sidebar{position:static;grid-template-columns:1fr 1fr;align-items:start}
  .ml-order-sidebar-back{grid-column:1/-1}
}
@media (max-width:700px){
  .ml-order-page{margin-top:18px;padding:0 12px}
  .ml-order-hero{align-items:flex-start;padding:24px 20px;border-radius:20px}
  .ml-order-title-row h1{font-size:29px}
  .ml-order-hero-total strong{font-size:23px}
  .ml-order-progress{padding:16px 10px 12px;border-radius:16px;overflow-x:auto}
  .ml-order-progress-track{top:34px}
  .ml-order-progress-step{min-width:75px;font-size:9px}
  .ml-order-progress-icon{width:34px;height:34px}
  .ml-order-products-head{display:none}
  .ml-order-product{grid-template-columns:68px minmax(0,1fr);gap:12px;padding:15px 16px}
  .ml-order-product-media,.ml-order-product-img{width:68px;height:68px}
  .ml-order-product-cell{display:none}
  .ml-order-product-mobile-meta{display:flex;justify-content:space-between;gap:12px;margin-top:8px;color:#64748b;font-size:11px}
  .ml-order-product-mobile-meta strong{color:#0f172a;white-space:nowrap}
  .ml-order-section-head{padding:18px 16px}
  .ml-order-info-grid{grid-template-columns:1fr}
  .ml-order-sidebar{grid-template-columns:1fr}
  .ml-order-sidebar-back{grid-column:auto}
}
@media (max-width:480px){
  .ml-order-hero{display:grid;gap:18px}
  .ml-order-hero-total{text-align:left}
  .ml-order-hero-total span{margin-bottom:3px}
  .ml-order-progress{grid-template-columns:repeat(5,72px);justify-content:start}
  .ml-order-progress-track{left:45px;right:auto;width:288px}
  .ml-order-info-card,.ml-order-summary-card,.ml-order-payment-card{padding:18px}
  .ml-order-section-head h2,.ml-order-info-head h2{font-size:18px}
  .ml-order-detail-row{gap:10px}
  .ml-order-payment-main{align-items:flex-start;flex-direction:column}
  .ml-order-pay-status{max-width:none}
}

/* ========================================================================== */
/* MobiLand — /cabinet/orders v3                                              */
/* Новий список замовлень. Повністю ізольований префіксом ml-orders-.         */
/* ========================================================================== */
.ml-orders-page{
  --mo-brand:#1976d2;
  --mo-brand2:#2196f3;
  --mo-ink:#172033;
  --mo-muted:#6b7c90;
  --mo-line:#e3ebf4;
  --mo-soft:#f6f9fd;
  max-width:1180px;
  margin:28px auto 58px;
  padding:0 16px;
  color:var(--mo-ink);
  font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
}
.ml-orders-page *{box-sizing:border-box}
.ml-orders-page svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

.ml-orders-hero{
  position:relative;
  overflow:hidden;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:30px;
  min-height:178px;
  padding:30px 32px;
  margin-bottom:24px;
  border:1px solid #dce9f6;
  border-radius:24px;
  background:
    radial-gradient(circle at 92% -20%,rgba(33,150,243,.20),transparent 38%),
    linear-gradient(135deg,#fff 0%,#f5faff 100%);
  box-shadow:0 14px 40px rgba(15,23,42,.055);
}
.ml-orders-hero::before{content:"";position:absolute;left:0;top:0;width:100%;height:4px;background:linear-gradient(90deg,var(--mo-brand),var(--mo-brand2))}
.ml-orders-hero--empty{min-height:150px}
.ml-orders-hero-copy{position:relative;z-index:1;max-width:620px}
.ml-orders-kicker{display:block;margin-bottom:7px;color:#71849a;font-size:11px;font-weight:650;letter-spacing:.09em;text-transform:uppercase}
.ml-orders-hero h1{margin:0;color:#172033;font-size:34px;line-height:1.08;font-weight:720;letter-spacing:-.025em}
.ml-orders-hero p{max-width:610px;margin:10px 0 0;color:#65778b;font-size:14px;line-height:1.55}

.ml-orders-stats{position:relative;z-index:1;display:flex;gap:9px;flex-wrap:wrap;justify-content:flex-end}
.ml-orders-stat{min-width:88px;padding:12px 14px;border:1px solid #e1e9f2;border-radius:15px;background:rgba(255,255,255,.82);backdrop-filter:blur(6px)}
.ml-orders-stat span{display:block;margin-bottom:3px;color:#7a8da2;font-size:10px;font-weight:550;text-transform:uppercase;letter-spacing:.045em}
.ml-orders-stat strong{display:block;color:#223048;font-size:20px;line-height:1.1;font-weight:700}
.ml-orders-stat--active{border-color:#d7e8fb;background:#f6fbff}
.ml-orders-stat--active strong{color:#1976d2}
.ml-orders-stat--done{border-color:#d9efe1;background:#f7fcf8}
.ml-orders-stat--done strong{color:#23814a}
.ml-orders-stat--muted strong{color:#8a6370}

.ml-orders-list-head{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 2px 12px}
.ml-orders-list-head h2{margin:0;color:#1c293d;font-size:19px;font-weight:680;letter-spacing:-.015em}
.ml-orders-list-head>div>span{display:block;margin-top:3px;color:#8493a5;font-size:12px}
.ml-orders-list-count{display:grid;place-items:center;min-width:32px;height:32px;padding:0 9px;border:1px solid #e0e8f1;border-radius:10px;background:#fff;color:#64748b;font-size:12px;font-weight:650}
.ml-orders-list{display:grid;gap:14px}

.ml-orders-card{
  position:relative;
  overflow:hidden;
  border:1px solid #e2eaf3;
  border-radius:21px;
  background:#fff;
  box-shadow:0 7px 24px rgba(15,23,42,.045);
  transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease;
}
.ml-orders-card:hover{transform:translateY(-1px);border-color:#cfdded;box-shadow:0 12px 32px rgba(15,23,42,.07)}
.ml-orders-card::before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:linear-gradient(180deg,var(--mo-brand),var(--mo-brand2));opacity:.85}
.ml-orders-card.is-cancelled::before{background:#e36b77}

.ml-orders-card-top{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:20px 22px 17px 24px}
.ml-orders-order-main{display:flex;align-items:center;gap:15px;min-width:0}
.ml-orders-thumb{display:block;width:66px;height:66px;flex:0 0 66px;border:1px solid #e9eef4;border-radius:15px;background:#f7f9fc;object-fit:contain}
.ml-orders-thumb--empty{display:grid;place-items:center;color:#9aabba}
.ml-orders-thumb--empty svg{width:27px;height:27px}
.ml-orders-order-copy{min-width:0}
.ml-orders-order-line{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.ml-orders-number{color:#172033;font-size:17px;font-weight:680;text-decoration:none}
.ml-orders-number:hover{color:var(--mo-brand)}
.ml-orders-date{margin-top:4px;color:#8998aa;font-size:11px}
.ml-orders-item-title{max-width:650px;margin-top:8px;color:#526276;font-size:13px;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ml-orders-more{display:inline-flex;margin-left:5px;padding:2px 6px;border-radius:6px;background:#f1f5f9;color:#68788c;font-size:10px;font-weight:600;vertical-align:1px}
.ml-orders-total{text-align:right;flex:0 0 auto}
.ml-orders-total span{display:block;margin-bottom:4px;color:#8997a7;font-size:10px;text-transform:uppercase;letter-spacing:.05em}
.ml-orders-total strong{display:block;color:#152238;font-size:21px;line-height:1.1;font-weight:720;white-space:nowrap}

.ml-orders-status{display:inline-flex;align-items:center;min-height:25px;padding:4px 8px;border-radius:999px;border:1px solid #d9e9fb;background:#f1f7ff;color:#226fb9;font-size:10px;font-weight:650;white-space:nowrap}
.ml-orders-status--paid{background:#eefaf2;border-color:#d4efdD;color:#24804b}
.ml-orders-status--shipped{background:#fff8ec;border-color:#f8e1b5;color:#a76618}
.ml-orders-status--received{background:#f6f2ff;border-color:#e5dcfb;color:#7250ad}
.ml-orders-status--done,.ml-orders-status--completed,.ml-orders-status--customer_received{background:#eef9f2;border-color:#d5ebdc;color:#2a7c4a}
.ml-orders-status--cancel,.ml-orders-status--canceled{background:#fff2f3;border-color:#f6d5d9;color:#b94d5b}

.ml-orders-facts{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(180px,.82fr);border-top:1px solid #edf2f7;border-bottom:1px solid #edf2f7;background:#fbfcfe}
.ml-orders-fact{position:relative;display:flex;align-items:center;gap:8px;min-width:0;padding:11px 18px;border-right:1px solid #edf2f7;color:#617286;font-style:normal;text-decoration:none}
.ml-orders-fact:last-child{border-right:0}
.ml-orders-fact>span{flex:0 0 auto;color:#91a0b0;font-size:10px;text-transform:uppercase;letter-spacing:.045em}
.ml-orders-fact>strong{min-width:0;color:#425268;font-size:12px;font-weight:560;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ml-orders-fact strong.is-muted{color:#9aa7b6;font-weight:500}
.ml-orders-fact--link:hover strong{color:var(--mo-brand)}
.ml-orders-fact--link svg{width:13px;height:13px;flex:0 0 auto;color:#7a8da2}
.ml-orders-payment-state{display:inline-flex;align-items:center;margin-left:auto;padding:3px 6px;border-radius:6px;background:#f1f5f9;color:#718096;font-size:9px;font-weight:600;font-style:normal;white-space:nowrap}
.ml-orders-payment-state--paid,.ml-orders-payment-state--success,.ml-orders-payment-state--sandbox{background:#edf9f1;color:#2b7c4b}
.ml-orders-payment-state--pending,.ml-orders-payment-state--hold_wait{background:#fff7e9;color:#9b671f}
.ml-orders-payment-state--unpaid,.ml-orders-payment-state--error,.ml-orders-payment-state--failure{background:#fff0f1;color:#b84a58}

.ml-orders-progress{position:relative;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));padding:18px 24px 14px}
.ml-orders-progress-line{position:absolute;left:10%;right:10%;top:25px;height:2px;border-radius:99px;background:#e6edf4;overflow:hidden}
.ml-orders-progress-line i{display:block;width:var(--ml-orders-progress);height:100%;border-radius:99px;background:linear-gradient(90deg,var(--mo-brand),var(--mo-brand2))}
.ml-orders-progress-step{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;gap:6px;color:#99a6b5;font-size:9px;text-align:center}
.ml-orders-progress-step i{width:14px;height:14px;border:3px solid #fff;border-radius:50%;background:#dbe4ed;box-shadow:0 0 0 1px #dbe4ed}
.ml-orders-progress-step.is-done,.ml-orders-progress-step.is-current{color:#4e718f}
.ml-orders-progress-step.is-done i{background:#64a9e6;box-shadow:0 0 0 1px #64a9e6}
.ml-orders-progress-step.is-current i{background:#1976d2;box-shadow:0 0 0 2px rgba(25,118,210,.17)}
.ml-orders-progress.is-cancelled .ml-orders-progress-line i{width:0}
.ml-orders-progress-step.is-cancelled{color:#b94d5b}
.ml-orders-progress-step.is-cancelled i{background:#d76673;box-shadow:0 0 0 1px #d76673}

.ml-orders-card-bottom{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:13px 20px 16px 24px}
.ml-orders-status-copy{color:#718196;font-size:11px;line-height:1.4}
.ml-orders-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex:0 0 auto}
.ml-orders-btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:38px;padding:8px 13px;border:1px solid transparent;border-radius:10px;text-decoration:none;font-size:11px;font-weight:650;white-space:nowrap;transition:.16s ease}
.ml-orders-btn svg{width:15px;height:15px}
.ml-orders-btn--primary{background:linear-gradient(90deg,#1976d2,#2196f3);color:#fff;box-shadow:0 5px 14px rgba(25,118,210,.16)}
.ml-orders-btn--primary:hover{filter:brightness(.97);transform:translateY(-1px)}
.ml-orders-btn--pay{border-color:#cee9d8;background:#f3fbf6;color:#2c7a4b}
.ml-orders-btn--pay:hover{background:#eaf8ef}

.ml-orders-empty{max-width:620px;margin:20px auto;padding:45px 28px;border:1px dashed #d7e2ee;border-radius:22px;background:#fff;text-align:center}
.ml-orders-empty-icon{display:grid;place-items:center;width:58px;height:58px;margin:0 auto 15px;border-radius:17px;background:#eef6ff;color:#1976d2}
.ml-orders-empty-icon svg{width:26px;height:26px}
.ml-orders-empty h2{margin:0;color:#1c293d;font-size:21px;font-weight:680}
.ml-orders-empty p{max-width:430px;margin:8px auto 20px;color:#77879a;font-size:13px;line-height:1.55}

/* /cabinet/orders/{id}: зберігаємо новий layout, але повертаємо спокійнішу типографіку. */
.ml-order-back{font-weight:600}
.ml-order-kicker{font-weight:600;letter-spacing:.08em}
.ml-order-title-row h1{font-weight:700;letter-spacing:-.025em}
.ml-order-status{font-weight:650}
.ml-order-hero-total span{font-weight:500}
.ml-order-hero-total strong{font-weight:720}
.ml-order-progress-step{font-weight:600}
.ml-order-section-head h2,.ml-order-info-head h2{font-weight:700}
.ml-order-count{font-weight:600}
.ml-order-products-head{font-weight:600}
.ml-order-product-title{font-weight:570}
.ml-order-product-tag{font-weight:600}
.ml-order-product-cell strong{font-weight:620}
.ml-order-detail-row>strong{font-weight:520}
.ml-order-ttn-link{font-weight:600}
.ml-order-summary-row strong{font-weight:600}
.ml-order-summary-row code{font-weight:600}
.ml-order-summary-total span{font-weight:600}
.ml-order-summary-total strong{font-weight:720}
.ml-order-payment-main>strong{font-weight:600}
.ml-order-pay-status{font-weight:650}
.ml-order-liqpay-slot a,.ml-order-liqpay-slot button,.ml-order-liqpay-slot input[type="submit"]{font-weight:650!important}
.ml-order-payparts-grid span{font-weight:600}
.ml-order-payparts-grid strong{font-weight:550}
.ml-order-action-btn{font-weight:650}
.ml-order-sidebar-back{font-weight:600}
.ml-order-empty a{font-weight:650}

@media (max-width:850px){
  .ml-orders-hero{align-items:flex-start;flex-direction:column;min-height:auto;padding:26px}
  .ml-orders-stats{justify-content:flex-start}
  .ml-orders-card-top{align-items:flex-start}
  .ml-orders-facts{grid-template-columns:1fr 1fr}
  .ml-orders-fact:nth-child(2){border-right:0}
  .ml-orders-fact:nth-child(3){grid-column:1/-1;border-top:1px solid #edf2f7}
}
@media (max-width:650px){
  .ml-orders-page{margin-top:18px;padding:0 12px}
  .ml-orders-hero{padding:22px 18px;border-radius:19px}
  .ml-orders-hero h1{font-size:28px}
  .ml-orders-stats{width:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
  .ml-orders-stat{min-width:0;padding:10px}
  .ml-orders-stat--muted{display:none}
  .ml-orders-card{border-radius:18px}
  .ml-orders-card-top{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:17px 15px 14px 18px}
  .ml-orders-thumb{width:54px;height:54px;flex-basis:54px;border-radius:12px}
  .ml-orders-number{font-size:15px}
  .ml-orders-item-title{font-size:11px}
  .ml-orders-total strong{font-size:17px}
  .ml-orders-facts{grid-template-columns:1fr}
  .ml-orders-fact{border-right:0;border-top:1px solid #edf2f7;padding:10px 17px}
  .ml-orders-fact:first-child{border-top:0}
  .ml-orders-fact:nth-child(3){grid-column:auto}
  .ml-orders-progress{overflow-x:auto;grid-template-columns:repeat(5,82px);justify-content:start;padding-left:13px;padding-right:13px}
  .ml-orders-progress-line{left:54px;right:auto;width:328px}
  .ml-orders-card-bottom{align-items:flex-start;flex-direction:column;padding:12px 16px 16px 18px}
  .ml-orders-actions{width:100%}
  .ml-orders-btn{flex:1}
}
@media (max-width:430px){
  .ml-orders-stats{grid-template-columns:repeat(3,1fr)}
  .ml-orders-stat span{font-size:8px}
  .ml-orders-stat strong{font-size:18px}
  .ml-orders-card-top{grid-template-columns:1fr}
  .ml-orders-total{text-align:left;padding-left:69px}
  .ml-orders-total span{display:inline;margin-right:6px}
  .ml-orders-total strong{display:inline;font-size:16px}
  .ml-orders-payment-state{display:none}
  .ml-orders-actions{flex-direction:column}
  .ml-orders-btn{width:100%}
}


/* ========================================================================== */
/* MobiLand Orders v4 — savings, promo codes & MobiLand Bonus                */
/* ========================================================================== */
.ml-orders-savings{
  display:flex;align-items:center;flex-wrap:wrap;gap:7px;padding:9px 18px 0 24px;background:#fff;
}
.ml-orders-saving{
  display:inline-flex;align-items:center;gap:7px;min-height:27px;padding:5px 8px;border:1px solid #e2e8f0;border-radius:9px;
  background:#f8fafc;color:#68788c;font-size:10px;line-height:1.2;
}
.ml-orders-saving>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ml-orders-saving>strong{color:#405166;font-size:10px;font-weight:600;white-space:nowrap}
.ml-orders-saving--product{border-color:#dbe9f8;background:#f5faff;color:#54718d}
.ml-orders-saving--product>strong{color:#2874b5}
.ml-orders-saving--promo{border-color:#dceedd;background:#f7fcf8;color:#56725e}
.ml-orders-saving--promo>strong{color:#2d7b49}

/* Штатний віджет бонусного модуля — візуально підганяємо під картку замовлення. */
.ml-orders-bonus{padding:8px 18px 0 24px;background:#fff}
.ml-orders-page .bonus-order-info{
  margin:0;padding:8px 10px;border-color:#dceaf5;border-radius:10px;background:#f8fbfe;gap:10px;
}
.ml-orders-page .bonus-order-info__title{font-size:10px;font-weight:600;letter-spacing:.01em}
.ml-orders-page .bonus-order-info>div{gap:6px}
.ml-orders-page .bonus-order-pill{padding:4px 7px;border-radius:7px;gap:5px}
.ml-orders-page .bonus-order-pill small{font-size:9px;font-weight:400}
.ml-orders-page .bonus-order-pill b{font-size:10px;font-weight:600}

/* Деталі замовлення: прозорий підсумок без перетворення на бухгалтерський звіт. */
.ml-order-bonus-summary{margin:9px 0 2px;padding-top:9px;border-top:1px dashed #e4ebf2}
.ml-order-page .bonus-order-info{margin:0;padding:9px 10px;border-radius:10px;background:#f8fbfe}
.ml-order-page .bonus-order-info__title{font-size:10px;font-weight:600}
.ml-order-page .bonus-order-pill small{font-weight:400}
.ml-order-page .bonus-order-pill b{font-weight:600}

/* Ще спокійніша типографіка /cabinet/orders/{id}. */
.ml-order-title-row h1{font-weight:650}
.ml-order-hero-total strong{font-weight:680}
.ml-order-section-head h2,.ml-order-info-head h2{font-weight:650}
.ml-order-summary-row strong{font-weight:550}
.ml-order-summary-row code{font-weight:550}
.ml-order-summary-total span{font-weight:550}
.ml-order-summary-total strong{font-weight:680}
.ml-order-payment-main>strong{font-weight:550}
.ml-order-product-cell strong{font-weight:560}

@media (max-width:760px){
  .ml-orders-savings{padding:8px 15px 0 18px}
  .ml-orders-saving{max-width:100%}
  .ml-orders-bonus{padding:8px 15px 0 18px}
  .ml-orders-page .bonus-order-info{align-items:flex-start}
  .ml-orders-page .bonus-order-info>div{justify-content:flex-start}
}
