/******************************************************* КОРЗИНА  ***************************************************/
/* Блокируем прокрутку страницы, когда открыта корзина/модалка */
html.pk-no-scroll,
body.pk-no-scroll {
  overflow: hidden !important;
  height: 100%;
}

/* overlay как у поиска */
#selection-wrap {
  position: fixed;
  inset: 0;
  background: rgb(255 255 255);
  z-index: 9999;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 60px 15px;
}

/* убираем "окно в окне": контент просто по центру */
.selection-inner {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  position: relative;
}

/* крестик в правом верхнем углу, как у поиска */
#selection-close {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #000;
  color: #fff;
  font-size: 20px;
  line-height: 32px;
  text-align: center;
  cursor: pointer;
  z-index: 10000;
}

/* заголовок + подзаголовок */
#selection-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 5px;
}

#selection-subtitle {
  margin-bottom: 20px;
  color: #777;
}

/* контейнер таблицы */
.selection-cart-table {
  width: 100%;
  max-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 15px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* заголовок колонок + строки товаров */
.selection-cart-row--head,
.selection-cart-row {
  display: grid;
  grid-template-columns: 2.4fr 1fr 1fr 1fr 30px;
  column-gap: 18px;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.15s ease;
}

.selection-cart-row:hover {
  background-color: #fafafa;
}

.selection-cart-row--head:hover {
  background-color: #ece6de;
}

.selection-cart-row--footer:hover {
  background-color: #ffeb9e;
}

.selection-cart-row--head {
  background: #ece6de;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #333;
  border-bottom: 2px solid #d4ccc0;
  padding: 1rem;
}

.selection-cart-row--head .selection-cart-col--price,
.selection-cart-row--head .selection-cart-col--qty,
.selection-cart-row--head .selection-cart-col--subtotal {
  text-align: center;
}

.selection-cart-row:last-child {
  border-bottom: none;
}

/* ячейка "товар" */
.selection-cart-col--product {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* центрируем колонки цена, количество, сумма */
.selection-cart-col--price,
.selection-cart-col--qty,
.selection-cart-col--subtotal {
  text-align: center;
  justify-content: center;
}

/* КАРТИНКА ТОВАРА: универсальный ресет */
.selection-cart-thumb {
  width: 80px;
  height: 80px;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
  background: #fff;
}

#selection-wrap .selection-cart-col--product img {
  position: static !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
  padding: 0 !important;
  width: 80px;
  height: 80px;
  max-width: 80px;
  max-height: 80px;
  object-fit: cover;
  border-radius: 14px;
  flex-shrink: 0;
  z-index: 1;
}

#selection-wrap .katalog_card__image {
  position: static !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
  padding: 0 !important;
}

/* текст рядом с превью */
.selection-cart-title {
  font-weight: 500;
  font-size: 0.875rem;
  margin-bottom: 3px;
  color: #111;
}

.selection-cart-sku {
  font-size: 0.8125rem;
  color: #9ca3af;
  line-height: 1.3;
}

.selection-cart-color {
  font-size: 0.8125rem;
  color: #9ca3af;
  line-height: 1.3;
  margin-top: 2px;
}

/* цены в колонках */
.selection-cart-col--price,
.selection-cart-col--subtotal {
  font-size: 0.875rem;
  font-weight: 500;
}

/* скрываем стрелки у инпута */
.cart-qty-input::-webkit-inner-spin-button,
.cart-qty-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.cart-qty-input {
  -moz-appearance: textfield;
}

/* контейнер количества */
.cart-qty {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #ddd;
  overflow: hidden;
  background: #fff;
  height: 42px;
}

/* кнопки минус/плюс */
.cart-qty-btn {
  width: 38px;
  height: 42px;
  background: #000;
  color: #fff;
  border: none;
  font-size: 20px;
  line-height: 42px;
  text-align: center;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* само поле количества */
.cart-qty-input {
  width: 55px;
  height: 42px;
  border: none;
  outline: none;
  font-size: 18px;
  text-align: center;
  font-weight: 600;
  padding: 0;
  background: #fff;
  color: #000;
  box-sizing: border-box;
}

/* подвал с суммой */
.selection-cart-total {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  margin-top: 15px;
  padding: 1rem 1.5rem;
  background: #ffeb9e;
  border-radius: 15px;
  font-weight: 400;
  font-size: 1rem;
  color: #111;
}

.selection-cart-total-label {
  color: #111;
  font-weight: 400;
}

.selection-cart-total-value {
  min-width: 120px;
  text-align: right;
  font-weight: 700;
  color: #111;
}

/* footer корзины (как в таблице размеров) */
.selection-cart-row--footer {
  background: #ffeb9e;
  border-bottom: none;
}

.selection-cart-col--footer {
  grid-column: 1 / -1;
  font-weight: 400;
  font-size: 1rem;
  color: #111;
  text-align: right;
  padding: 1rem 1.5rem;
}

.selection-cart-total-qty {
  font-weight: 700;
  color: #111;
  font-size: 1.125rem;
}

.selection-cart-total-sum {
  color: #111;
  font-size: 1.125rem;
  font-weight: 700;
}

/* кнопка удалить */
.selection-cart-col--remove {
  text-align: right;
}

.selection-item-remove {
  border: none;
  background: #000;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 18px;
  line-height: 32px;
  text-align: center;
  cursor: pointer;
}


/* адаптив корзины */
@media (max-width: 991.98px) {
  .selection-cart-row--head,
  .selection-cart-row {
    grid-template-columns: 2fr 1fr 1fr 1fr 30px;
    column-gap: 12px;
  }
  .selection-cart-row--head {
    font-size: 0.75rem;
  }
  .selection-cart-title {
    font-size: 0.8125rem;
  }
  .selection-cart-sku {
    font-size: 0.75rem;
  }
  .selection-cart-color {
    font-size: 0.75rem;
  }
  .selection-cart-col--price,
  .selection-cart-col--subtotal {
    font-size: 0.8125rem;
  }
  .cart-qty-input {
    font-size: 16px;
  }
  .cart-qty-btn {
    font-size: 18px;
    width: 34px;
    height: 38px;
  }
  .cart-qty {
    height: 38px;
  }
}

@media (max-width: 767.98px) {
  #selection-wrap {
    align-items: stretch;
    padding: 60px 10px 20px;
  }

  .selection-cart-row--head,
  .selection-cart-row {
    grid-template-columns: 1.8fr 0.8fr 0.8fr 0.8fr 28px;
    column-gap: 10px;
    padding: 0.5rem 0.25rem;
  }
  
  .selection-cart-row--head {
    font-size: 0.6875rem;
    padding: 0.5rem 0.25rem;
  }
  .selection-cart-title {
    font-size: 0.75rem;
  }
  .selection-cart-sku {
    font-size: 0.6875rem;
  }
  .selection-cart-color {
    font-size: 0.6875rem;
  }
  .selection-cart-col--price,
  .selection-cart-col--subtotal {
    font-size: 0.75rem;
  }
  .cart-qty-input {
    font-size: 14px;
    width: 45px;
    height: 36px;
  }
  .cart-qty-btn {
    font-size: 16px;
    width: 30px;
    height: 36px;
  }
  .cart-qty {
    height: 36px;
  }

  /* скрываем колонку "Цена" на узких экранах */
  .selection-cart-col--price {
    display: none;
  }

  #selection-wrap .selection-cart-col--product img {
    width: 70px;
    height: 70px;
    max-width: 70px;
    max-height: 70px;
  }
  .selection-cart-thumb {
    width: 70px;
    height: 70px;
  }
  .selection-cart-title {
    font-size: 13px;
    margin-bottom: 2px;
  }
  .selection-cart-sku {
    font-size: 11px;
  }
  .selection-cart-color {
    font-size: 11px;
  }
  .cart-qty {
    height: 36px;
  }
  .cart-qty-btn {
    width: 32px;
    height: 36px;
    font-size: 18px;
  }
  .cart-qty-input {
    width: 45px;
    height: 36px;
    font-size: 16px;
  }
  .selection-cart-total {
    font-size: 15px;
    margin-top: 12px;
    gap: 15px;
  }
  .selection-item-remove {
    width: 28px;
    height: 28px;
    font-size: 16px;
  }
}

@media (max-width: 575.98px) {
  .selection-cart-row--head,
  .selection-cart-row {
    grid-template-columns: 1.5fr 0.7fr 0.7fr 25px;
    column-gap: 8px;
    padding: 8px 0;
  }
  .selection-cart-row--head {
    font-size: 0.625rem;
  }
  .selection-cart-col--product {
    gap: 10px;
  }
  #selection-wrap .selection-cart-col--product img,
  .selection-cart-thumb {
    width: 60px;
    height: 60px;
    max-width: 60px;
    max-height: 60px;
  }
  .selection-cart-title {
    font-size: 0.6875rem;
  }
  .selection-cart-sku {
    font-size: 0.625rem;
  }
  .selection-cart-color {
    font-size: 0.625rem;
  }
  .selection-cart-col--price,
  .selection-cart-col--subtotal {
    font-size: 0.6875rem;
  }
  .cart-qty-input {
    font-size: 13px;
    width: 40px;
    height: 32px;
  }
  .cart-qty-btn {
    font-size: 14px;
    width: 28px;
    height: 32px;
  }
  .cart-qty {
    height: 32px;
  }
  .cart-qty {
    height: 32px;
  }
  .cart-qty-btn {
    width: 28px;
    height: 32px;
    font-size: 16px;
  }
  .cart-qty-input {
    width: 40px;
    height: 32px;
    font-size: 14px;
  }
  .selection-cart-total {
    font-size: 14px;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
  }
  .selection-item-remove {
    width: 26px;
    height: 26px;
    font-size: 14px;
  }
}
/******************************************************* КОРЗИНА END ***************************************************/

/* Блок действий корзины: "Продолжить покупки" и "Оформить заказ" */
.cart-actions-box {
  margin-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cart-continue-shopping {
  text-decoration: none !important;
  color: #999 !important;
  font-size: 14px;
  transition: color 0.2s ease;
}

.cart-continue-shopping:hover {
  color: #666 !important;
}

@media (max-width: 575.98px) {
  .cart-actions-box {
    flex-direction: column;
    align-items: stretch;
  }
  .cart-continue-shopping {
    text-align: center;
    order: 2;
    margin-top: 15px;
  }
  .cart-actions-box > a.it-btn-modern {
    width: 100%;
    justify-content: center;
    order: 1;
  }
}

/******************************************************* CHECKOUT (ОФОРМЛЕНИЕ ЗАКАЗА) ***************************************************/
/* Адаптивный layout для checkout: корзина и форма */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 30px;
}

.checkout-layout__cart {
  min-width: 0;
}

.checkout-layout__form {
  min-width: 0;
}

/* Корзина: список товарів повною шириною, форма замовлення знизу (не окремою колонкою справа) */
.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 4vw, 52px);
  margin-top: 30px;
  align-items: start;
}

.cart-layout__cart {
  min-width: 0;
  order: 1;
}

.cart-layout__form {
  min-width: 0;
  order: 2;
}

/* На странице checkout убираем колонку "Удалить" - только просмотр корзины */
.section-checkout .selection-cart-row--head,
.section-checkout .selection-cart-row {
  grid-template-columns: 2.4fr 1fr 1fr 1fr;
}

/* Стили для новых полей формы checkout */
.checkout-field-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: #fff;
  font-weight: 500;
}

.checkout-date-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 14px;
}

.checkout-date-input:focus {
  outline: none;
  border-color: var(--it-common-yellow-0);
  background: rgba(255, 255, 255, 0.15);
}

.checkout-delivery-options {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.checkout-radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: #fff;
  font-weight: normal;
  margin: 0;
}

.checkout-radio-label input[type="radio"] {
  margin: 0;
  cursor: pointer;
  accent-color: var(--it-common-yellow-0);
}

/* Адаптивность для checkout */
@media (max-width: 991.98px) {
  .checkout-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .checkout-layout__cart {
    order: 1;
  }
  
  .checkout-layout__form {
    order: 2;
  }
}

/* Корзина: звужена форма (якщо колись увімкнуто клас) на мобільних */
@media (max-width: 991.98px) {
  .cart-form-wrapper--narrow {
    max-width: 100%;
  }
}

/* Кнопка "Редактировать корзину" на checkout */
.checkout-edit-cart-btn {
  margin-top: 20px;
  text-align: left;
}

/* ============================================ ФОРМА ЗАКАЗА В КОРЗИНЕ ============================================ */
.cart-form-wrapper {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
  padding: 2rem;
  border: 1px solid #e5e7eb;
}

.cart-form-wrapper--narrow {
  max-width: 520px;
  margin-left: auto;
}

.cart-form-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #111;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f3f4f6;
  letter-spacing: -0.02em;
}

.cart-form-box {
  position: relative;
  padding: 0;
}

.cart-form-fields {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cart-form-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.cart-form-row:last-child {
  margin-bottom: 0;
}

.cart-form-col {
  flex: 1;
}

.cart-form-col-full {
  width: 100%;
}

.cart-form-input-box {
  position: relative;
}

.cart-form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  color: #374151;
  font-weight: 500;
  line-height: 1.4;
}

.cart-form-input-box input[type="text"],
.cart-form-input-box input[type="email"],
.cart-form-input-box input[type="tel"],
.cart-form-input-box input[type="url"],
.cart-form-input-box input[type="date"],
.cart-form-input-box select,
.cart-form-textarea-box textarea,
.cart-form-autocomplete-wrapper input[type="text"] {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  color: #111;
  font-size: 0.9375rem;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
  line-height: 1.5;
}

.cart-form-autocomplete-wrapper input[type="text"] {
  margin: 0;
}

.cart-form-select-wrapper {
  position: relative;
  display: block;
}

.cart-form-select-wrapper::after {
  content: '';
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  background-image: url("data:image/svg+xml,%3Csvg width='15' height='15' viewBox='0 0 15 15' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z' fill='%23374151' fill-rule='evenodd' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  pointer-events: none;
  z-index: 1;
  transition: transform 0.15s ease;
}

.cart-form-select-wrapper:has(select:focus)::after {
  transform: translateY(-50%) rotate(180deg);
  background-image: url("data:image/svg+xml,%3Csvg width='15' height='15' viewBox='0 0 15 15' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z' fill='%23000000' fill-rule='evenodd' clip-rule='evenodd'/%3E%3C/svg%3E");
}

.cart-form-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: transparent;
  padding-right: 2.75rem;
  cursor: pointer;
  height: 42px;
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding-left: 1rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  font-size: 0.9375rem;
  color: #111;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
}

.cart-form-select:hover {
  border-color: #9ca3af;
}

.cart-form-select:focus {
  outline: none;
  border-color: #000;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

.cart-form-select:disabled {
  background-color: #f9fafb;
  color: #6b7280;
  cursor: wait;
  opacity: 0.7;
}

.cart-form-select option {
  padding: 0.5rem;
  background: #fff;
  color: #111;
}

.cart-form-select option:checked {
  background: #f3f4f6;
  color: #000;
  font-weight: 500;
}

.cart-form-input-box input[type="text"]:hover,
.cart-form-input-box input[type="email"]:hover,
.cart-form-input-box input[type="tel"]:hover,
.cart-form-input-box input[type="url"]:hover,
.cart-form-input-box input[type="date"]:hover,
.cart-form-input-box select:hover,
.cart-form-textarea-box textarea:hover,
.cart-form-autocomplete-wrapper input[type="text"]:hover {
  border-color: #9ca3af;
}

.cart-form-input-box input[type="text"]:focus,
.cart-form-input-box input[type="email"]:focus,
.cart-form-input-box input[type="tel"]:focus,
.cart-form-input-box input[type="url"]:focus,
.cart-form-input-box input[type="date"]:focus,
.cart-form-input-box select:focus,
.cart-form-textarea-box textarea:focus,
.cart-form-autocomplete-wrapper input[type="text"]:focus {
  outline: none;
  border-color: #000;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

.cart-form-input-box select:focus {
  background-image: url("data:image/svg+xml,%3Csvg width='15' height='15' viewBox='0 0 15 15' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z' fill='%23000000' fill-rule='evenodd' clip-rule='evenodd'/%3E%3C/svg%3E");
}

.cart-form-input-box input::placeholder,
.cart-form-textarea-box textarea::placeholder {
  color: #9ca3af;
  opacity: 1;
}

.cart-form-date-input {
  cursor: pointer;
}

.cart-form-textarea-box {
  position: relative;
}

.cart-form-textarea-box textarea {
  min-height: 100px;
  resize: vertical;
  line-height: 1.5;
  padding: 0.75rem 1rem;
}

.cart-form-input-box input:disabled,
.cart-form-input-box select:disabled {
  background-color: #f9fafb;
  color: #6b7280;
  cursor: not-allowed;
  opacity: 0.6;
}

.cart-form-radio-group {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.375rem;
}

.cart-form-radio-group--vertical {
  flex-direction: column;
  gap: 0.625rem;
}

.cart-form-radio-label {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  cursor: pointer;
  color: #333;
  font-size: 0.9375rem;
  font-weight: 400;
  margin: 0;
  padding: 0.5rem 0.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  transition: all 0.2s ease;
  user-select: none;
}

.cart-form-radio-label:hover {
  border-color: #d1d5db;
  background: #fafafa;
}

.cart-form-radio-label input[type="radio"] {
  margin: 0;
  cursor: pointer;
  width: 18px;
  height: 18px;
  accent-color: #000;
  flex-shrink: 0;
}

.cart-form-radio-label input[type="radio"]:checked + span {
  font-weight: 500;
}

.cart-form-radio-label:has(input[type="radio"]:checked) {
  border-color: #000;
  background: #fafafa;
}

.cart-form-radio-label span {
  flex: 1;
}

.cart-form-submit-btn {
  width: 100%;
  padding: 0.875rem 1.5rem;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  margin-top: 0.5rem;
}

.cart-form-submit-btn:hover {
  background: #1a1a1a;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cart-form-submit-btn:active {
  transform: translateY(1px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.cart-form-submit-btn:disabled {
  background: #d1d5db;
  color: #9ca3af;
  cursor: not-allowed;
  opacity: 0.6;
}

.cart-form-submit-btn .arrow-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.cart-form-submit-btn:hover .arrow-circle {
  transform: translateX(3px);
}

.cart-form-continue-link {
  display: block;
  text-align: center;
  color: #9ca3af;
  font-size: 0.875rem;
  text-decoration: none;
  padding: 0.625rem 0;
  transition: color 0.2s ease;
  font-weight: 400;
}

.cart-form-continue-link:hover {
  color: #666;
  text-decoration: underline;
}

.cart-form-agreement {
  font-size: 0.75rem;
  color: #6b7280;
  line-height: 1.5;
  margin: 0;
  text-align: center;
  padding-top: 1rem;
  margin-top: 1rem;
  border-top: 1px solid #f3f4f6;
}

.cart-form-agreement-link {
  color: #666;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.cart-form-agreement-link:hover {
  color: #111;
}

/* Секции формы */
.cart-form-section {
  padding: 1.75rem 0;
  border-bottom: 1px solid #f3f4f6;
}

.cart-form-section:first-child {
  padding-top: 0;
}

.cart-form-section:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.cart-form-section-title {
  font-size: 1rem;
  font-weight: 600;
  color: #111;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cart-form-section-title::before {
  content: '';
  width: 3px;
  height: 16px;
  background: #000;
  border-radius: 2px;
}

/* Поля для выставления счета */
.cart-form-payment-invoice-fields {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid #f3f4f6;
  animation: slideDown 0.2s ease-out;
}

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

/* Поля для доставки Новой почтой */
.cart-form-delivery-np-fields {
  margin-top: 1.25rem;
  animation: slideDown 0.2s ease-out;
}

/* Переключатель между отделением и почтоматом */
.cart-form-delivery-type-toggle {
  display: inline-flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
  padding: 0.25rem;
  background: #f3f4f6;
  border-radius: 8px;
  width: 100%;
}

.cart-form-delivery-type-btn {
  flex: 1;
  padding: 0.625rem 1rem;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #6b7280;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
  position: relative;
}

.cart-form-delivery-type-btn:hover {
  color: #111;
  background: rgba(255, 255, 255, 0.5);
}

.cart-form-delivery-type-btn.active {
  background: #fff;
  color: #111;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Автокомплит */
.cart-form-autocomplete-wrapper {
  position: relative;
}

.cart-form-autocomplete-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  max-height: 300px;
  overflow-y: auto;
  z-index: 1000;
  margin-top: 4px;
  display: none;
  scrollbar-width: thin;
  scrollbar-color: #d1d5db #f9fafb;
}

.cart-form-autocomplete-dropdown::-webkit-scrollbar {
  width: 8px;
}

.cart-form-autocomplete-dropdown::-webkit-scrollbar-track {
  background: #f9fafb;
  border-radius: 4px;
}

.cart-form-autocomplete-dropdown::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 4px;
}

.cart-form-autocomplete-dropdown::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

.cart-form-autocomplete-item {
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: background-color 0.15s ease;
  border-bottom: 1px solid #f3f4f6;
}

.cart-form-autocomplete-item:last-child {
  border-bottom: none;
}

.cart-form-autocomplete-item:hover,
.cart-form-autocomplete-item.active {
  background-color: #f9fafb;
}

.autocomplete-item-title {
  font-size: 0.9375rem;
  color: #111;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.autocomplete-item-subtitle {
  font-size: 0.8125rem;
  color: #6b7280;
}

/* Ссылки переключения */
.cart-form-switch-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  color: #6b7280;
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  transition: color 0.15s ease;
  font-weight: 500;
}

.cart-form-switch-link:hover {
  color: #000;
  text-decoration: underline;
}

/* Стили для dropdown в форме заказа */
.cart-form-input-box .contact-method-group {
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: stretch;
}

.cart-form-input-box .contact-method-group:hover {
  border-color: #9ca3af;
}

.cart-form-input-box .contact-method-group:focus-within {
  border-color: #000;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

.cart-form-input-box .contact-method-group .dropdown-toggle {
  border: none;
  background: transparent;
  color: #111;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  font-weight: 400;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  border-right: 1px solid #e5e7eb;
  min-width: 120px;
}

.cart-form-input-box .contact-method-group .dropdown-toggle:hover {
  background: #f9fafb;
}

.cart-form-input-box .contact-method-group #contact-input {
  border: none;
  border-radius: 0;
  background: #fff;
  color: #111;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  flex: 1;
}

.cart-form-input-box .contact-method-group #contact-input:disabled {
  background: #f9fafb;
  color: #9ca3af;
  cursor: not-allowed;
}

.cart-form-input-box .contact-method-group #contact-input:focus {
  outline: none;
  box-shadow: none;
  background: #fff;
}

/* Адаптивность формы заказа */
@media (max-width: 991.98px) {
  .cart-form-wrapper {
    padding: 1.5rem;
  }
  
  .cart-form-title {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
  }
  
  .cart-form-section {
    padding: 1.5rem 0;
  }
  
  .cart-form-section-title {
    font-size: 0.9375rem;
    margin-bottom: 1rem;
  }
  
  .cart-form-row {
    flex-direction: column;
    gap: 0;
    margin-bottom: 1.25rem;
  }
  
  .cart-form-col {
    width: 100%;
    margin-bottom: 1.25rem;
  }
  
  .cart-form-col:last-child {
    margin-bottom: 0;
  }
  
  .cart-form-fields {
    gap: 0;
  }
}

@media (max-width: 575.98px) {
  .cart-form-wrapper {
    padding: 1.25rem;
    border-radius: 12px;
  }
  
  .cart-form-section {
    padding: 1.25rem 0;
  }
  
  .cart-form-section-title {
    font-size: 0.875rem;
  }
  
  .cart-form-input-box input[type="text"],
  .cart-form-input-box input[type="email"],
  .cart-form-input-box input[type="tel"],
  .cart-form-input-box input[type="url"],
  .cart-form-input-box input[type="date"],
  .cart-form-input-box select {
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
  }
  
  .cart-form-select {
    height: 40px;
    padding-right: 2.5rem;
  }
  
  .cart-form-delivery-type-toggle {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .cart-form-delivery-type-btn {
    width: 100%;
  }
  
  .cart-form-autocomplete-dropdown {
    max-height: 200px;
  }
  
  .cart-form-autocomplete-item {
    padding: 0.625rem 0.875rem;
  }
  
  .autocomplete-item-title {
    font-size: 0.875rem;
  }
  
  .autocomplete-item-subtitle {
    font-size: 0.75rem;
  }

  .cart-form-title {
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.625rem;
  }

  .cart-form-fields {
    gap: 1rem;
  }

  .cart-form-input-box input[type="text"],
  .cart-form-input-box input[type="email"],
  .cart-form-input-box input[type="url"],
  .cart-form-input-box input[type="date"],
  .cart-form-textarea-box textarea {
    font-size: 0.875rem;
    padding: 0.625rem 0.875rem;
  }

  .cart-form-radio-group {
    gap: 0.625rem;
  }

  .cart-form-radio-group--vertical {
    gap: 0.5rem;
  }

  .cart-form-radio-label {
    font-size: 0.875rem;
    padding: 0.5rem 0.625rem;
  }

  .cart-form-submit-btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
  }

  .cart-form-label {
    font-size: 0.75rem;
    margin-bottom: 0.375rem;
  }
}

.checkout-edit-cart-link {
  text-decoration: none !important;
  color: #999 !important;
  font-size: 14px;
  transition: color 0.2s ease;
}

.checkout-edit-cart-link:hover {
  color: #666 !important;
}

@media (max-width: 991.98px) {
  .section-checkout .selection-cart-row--head,
  .section-checkout .selection-cart-row {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

@media (max-width: 767.98px) {
  .section-checkout .selection-cart-row--head,
  .section-checkout .selection-cart-row {
    grid-template-columns: 1.8fr 0.8fr 0.8fr 0.8fr;
  }
}

@media (max-width: 575.98px) {
  .section-checkout .selection-cart-row--head,
  .section-checkout .selection-cart-row {
    grid-template-columns: 1.5fr 0.7fr 0.7fr 0.7fr;
  }
}
/******************************************************* CHECKOUT END ***************************************************/


/* ============================================ ОБЩИЕ СТИЛИ ============================================ */

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
}

/* ============================================ КАТАЛОГ: КАРТОЧКИ ============================================ */

.katalog_card {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 30px 50px rgba(0, 0, 0, 0.15);
  background: transparent;
  overflow: visible;
  position: relative;
}

.katalog_card__top {
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  padding: 20px 20px;
  position: relative;
  aspect-ratio: 1 / 1.3;
  color: #fff;
  overflow: hidden;
}

.katalog_card__top::after {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 100%
  );
  transform: skewX(-25deg);
  transition: none;
  pointer-events: none;
  z-index: 5;
}

.katalog_card:hover .katalog_card__top::after {
  animation: katalog-shine 1s ease forwards;
  animation-delay: 0.6s;
}

@keyframes katalog-shine {
  0% {
    left: -75%;
  }
  100% {
    left: 125%;
  }
}

.katalog_card__image-wrapper {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 1;
  margin-top: 25px;
}

.katalog_card__image-wrapper .hover-image {
  opacity: 0;
  z-index: 2;
  transition: opacity .25s ease;
}

/* Hover эффект работает только когда НЕ наведена мышь на область цветовых вариантов */
.katalog_card:hover:not(:has(.katalog_card__color-variants:hover)) .katalog_card__image-wrapper.has-hover-image .hover-image { 
  opacity: 1; 
}
.katalog_card:hover:not(:has(.katalog_card__color-variants:hover)) .katalog_card__image-wrapper.has-hover-image .base-image { 
  opacity: 0; 
}

.katalog_card__image-wrapper.no-hover-image .base-image {
  transition: transform .25s ease, opacity .25s ease;
}
.katalog_card:hover:not(:has(.katalog_card__color-variants:hover)) .katalog_card__image-wrapper.no-hover-image .base-image {
  transform: translate(-50%, -50%) scale(1.03);
  opacity: 1;
}

/* Плавная загрузка lazy изображений каталога */
img.lazy-img {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

img.lazy-img.loaded {
  opacity: 1;
}

.katalog_card__image {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 30px;
  max-height: 100%;
  max-width: 100%;
  height: auto;
  width: auto;
  object-fit: contain;
  z-index: 1;
  user-select: none;
  transition: opacity .25s ease;
}

.katalog_card__color-variants-wrapper {
  position: absolute;
  left: 25px;
  right: 25px;
  bottom: 3px;
  display: flex;
  align-items: center;
  z-index: 4;
}

.katalog_card__color-variants {
  display: flex;
  flex: 1;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0px;
  border-radius: 6px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
}

.katalog_card__color-variants::-webkit-scrollbar {
  display: none;
}

.katalog_card__color-variants-arrow {
  position: absolute;
  top: 58%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: opacity 0.2s ease;
  padding: 0;
  background: none;
  border: none;
  color: #111;
  opacity: 0.6;
}

.katalog_card__color-variants-arrow:hover {
  opacity: 1;
}

.katalog_card__color-variants-arrow--left {
  left: -21px;
}

.katalog_card__color-variants-arrow--right {
  right: -22px;
}

.katalog_card__color-variants-arrow svg {
  width: 18px;
  height: 18px;
}

.katalog_card__color-swatch {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  margin: 4px 0;
  cursor: pointer;
  object-fit: cover;
  border: 1px solid transparent;
  transition: border 0.2s ease;
}

.katalog_card__color-swatch:hover {
  border-color: #999;
}

.katalog_card__color-swatch.selected {
  border-color: #000;
}

.katalog_card__content {
  position: relative;
  z-index: 2;
}

.katalog_card__bottom {
  background: #fff;
  padding: 20px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  background-color: #ffeb9e;
}

.katalog_card__bottom-left {
  flex: 1;
  display: flex;
  align-items: center;
  text-align: left;
}

.katalog_card__bottom-right {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.katalog_item__price-bottom {
  font-size: 24px;
  font-weight: 700;
  color: #000;
  white-space: nowrap;
  line-height: 1.2;
}

.katalog_item__stock-bottom {
  font-size: 12px;
  color: #000;
  margin-top: 4px;
  line-height: 1.2;
}

.katalog_card:hover .katalog_card__bottom {
  background-color: var(--it-theme-8);
}

.katalog_card:hover .katalog_item__title-below,
.katalog_card:hover .katalog_item__description {
  color: #000;
}

.katalog_item__title-below,
.katalog_item__description {
  transition: color 0.0s ease;
}

.katalog_item__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  margin-bottom: 6px;
}

.katalog_item__left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.katalog_item__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.katalog_item__btn {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: none;
  padding: 0;
  background: rgba(0, 0, 0, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .1s ease, box-shadow .15s ease, background-color .15s ease;
  position: relative;
  overflow: hidden;
}

.katalog_item__btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.45) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  pointer-events: none;
}

.katalog_item__btn:hover::after,
.katalog_item__btn:focus-visible::after,
.katalog_item__btn:active::after {
  animation: btn-shine 0.7s ease forwards;
}

@keyframes btn-shine {
  0% {
    left: -120%;
  }
  100% {
    left: 130%;
  }
}

.katalog_item__btn:hover:not(.cart-btn-success) {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,0,0,.14);
}

.katalog_item__btn:active:not(.cart-btn-success) {
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}

.katalog_item__btn-icon {
  position: relative;
  display: inline-block;
  width: 22px;
  height: 20px;
}

.katalog_item__btn-icon i {
  position: absolute;
  top: 0;
  left: 0;
  font-size: 20px;
  line-height: 1;
  transition: opacity .2s ease, transform .2s ease;
}

.katalog_item__btn-icon i:nth-child(1) {
  opacity: 1;
}

.katalog_item__btn-icon i:nth-child(2) {
  opacity: 0;
  transform: scale(0.8);
}

.katalog_item__btn[data-active="true"] .katalog_item__btn-icon i:nth-child(1) {
  opacity: 0;
  transform: scale(0.8);
}

.katalog_item__btn[data-active="true"] .katalog_item__btn-icon i:nth-child(2) {
  opacity: 1;
  transform: scale(1);
}

/* Кнопка избранного - новые стили */
.katalog_item__btn-fav {
  background: transparent;
  box-shadow: none;
  transition: none;
}

.katalog_item__btn-fav::after {
  display: none;
}

.katalog_item__btn-fav:hover {
  transform: none;
  box-shadow: none;
}

.katalog_item__btn-fav:active {
  transform: none;
  box-shadow: none;
}

.katalog_item__btn-fav .katalog_item__btn-icon i {
  transition: none;
}

.katalog_item__btn-fav .katalog_item__btn-icon i:nth-child(1) {
  color: #333;
}

.katalog_item__btn-fav .katalog_item__btn-icon i:nth-child(2) {
  color: #113ebf;
}

/* Hover на неактивную кнопку - показываем активную иконку */
.katalog_item__btn-fav:hover:not([data-active="true"]) .katalog_item__btn-icon i:nth-child(1) {
  opacity: 0;
  transform: scale(0.8);
}

.katalog_item__btn-fav:hover:not([data-active="true"]) .katalog_item__btn-icon i:nth-child(2) {
  opacity: 1;
  transform: scale(1);
  color: rgba(17, 62, 191, 0.718);
}

/* Активное состояние */
.katalog_item__btn-fav[data-active="true"] .katalog_item__btn-icon i:nth-child(2) {
  color: #113ebf;
}

/* Hover на активную кнопку */
.katalog_item__btn-fav[data-active="true"]:hover .katalog_item__btn-icon i:nth-child(2) {
  color: rgba(17, 62, 191, 0.718);
}

.katalog_item__btn-cart[data-active="true"] {
  background: #113ebf;
  color: #fff;
}

/* Кнопка "Добавить в корзину" на странице товара - переопределяем стили .katalog_item__btn */
.it-btn-modern.katalog_item__btn {
  width: auto !important;
  height: auto !important;
  min-height: auto;
  padding: 14px 24px !important;
  border-radius: 50px;
  background: var(--it-common-yellow-0); /* Желтый цвет по умолчанию */
  color: var(--it-common-black); /* Черный текст */
  transition: background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
              color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.3s ease,
              box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Ховер для обычной желтой кнопки */
.it-btn-modern.katalog_item__btn.cart-btn-default:hover {
  background: var(--it-common-yellow-0);
  filter: brightness(0.95);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.14);
}

/* Активное состояние обычной кнопки */
.it-btn-modern.katalog_item__btn.cart-btn-default:active {
  background: var(--it-common-yellow-0);
  filter: brightness(0.9);
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Заблокированная кнопка - серая (когда количество = 0) */
.it-btn-modern.katalog_item__btn.cart-btn-disabled {
  background: #cccccc !important;
  color: #666666 !important;
  cursor: not-allowed !important;
  opacity: 0.6;
  pointer-events: none;
}

.it-btn-modern.katalog_item__btn.cart-btn-disabled .cart-btn-text {
  color: #666666 !important;
}

.it-btn-modern.katalog_item__btn.cart-btn-disabled .arrow-icon path {
  stroke: #666666 !important;
}

.it-btn-modern.katalog_item__btn.cart-btn-disabled .arrow-circle {
  background: #b0b0b0 !important;
}

/* Анимация вибрации при попытке нажать на заблокированную кнопку */
@keyframes buttonShake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.it-btn-modern.katalog_item__btn.cart-btn-disabled.shake {
  animation: buttonShake 0.5s ease-in-out;
  pointer-events: auto;
}

/* Анимация появления/исчезновения сообщения */
@keyframes fadeInOut {
  0% {
  opacity: 0;
  transform: translateX(-50%) translateY(-20px);
  }
  15%, 85% {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  }
  100% {
  opacity: 0;
  transform: translateX(-50%) translateY(-20px);
  }
}

/* Зеленая кнопка после добавления в корзину */
.it-btn-modern.katalog_item__btn.cart-btn-success {
  background: #28a745 !important; /* Зеленый цвет (#28a745) */
  color: #fff !important; /* Белый текст */
  animation: buttonSuccessPulse 0.5s ease-out;
}

/* Анимация пульсации при переходе в зеленое состояние */
@keyframes buttonSuccessPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
  100% {
    transform: scale(1);
  }
}

.it-btn-modern.katalog_item__btn.cart-btn-success .arrow-icon path {
  stroke: #fff;
}

/* Псевдоэлемент для зеленой кнопки - темно-зеленый фон при ховере (перекрывает черный из main.css) */
.it-btn-modern.katalog_item__btn.cart-btn-success::before {
  content: "" !important;
  position: absolute;
  top: 0;
  left: -100%; /* Начальная позиция слева (скрыт) */
  width: 100%;
  height: 100%;
  background: #218838 !important; /* Темно-зеленый цвет ховера - перекрывает черный */
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1; /* Выше чем черный псевдоэлемент из main.css (z-index: 0) */
  border-radius: 50px;
}

/* При ховере псевдоэлемент заполняет кнопку слева направо */
.it-btn-modern.katalog_item__btn.cart-btn-success:hover::before,
.it-btn-modern.katalog_item__btn.cart-btn-success:focus::before {
  left: 0; /* Заполняет всю кнопку темно-зеленым */
}

/* Ховер для зеленой кнопки */
.it-btn-modern.katalog_item__btn.cart-btn-success:hover {
  background: #28a745 !important; /* Базовый зеленый остается под псевдоэлементом */
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

/* Убеждаемся что текст и стрелка поверх псевдоэлементов (и черного, и зеленого) */
.it-btn-modern.katalog_item__btn.cart-btn-success .cart-btn-text,
.it-btn-modern.katalog_item__btn.cart-btn-success .arrow-circle {
  position: relative;
  z-index: 2; /* Выше чем зеленый псевдоэлемент (z-index: 1) */
}

.it-btn-modern.katalog_item__btn.cart-btn-success:hover .arrow-icon path {
  stroke: #218838 !important; /* Темно-зеленый цвет при ховере */
}

.it-btn-modern.katalog_item__btn.cart-btn-success:hover .arrow-icon {
  color: #218838 !important; /* Темно-зеленый цвет для currentColor */
}

/* Активное состояние зеленой кнопки */
.it-btn-modern.katalog_item__btn.cart-btn-success:active {
  background: #1e7e34 !important; /* Еще более темный зеленый при клике */
  color: #fff !important;
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(40, 167, 69, 0.3);
}

/* Focus состояние зеленой кнопки - убираем залипание */
.it-btn-modern.katalog_item__btn.cart-btn-success:focus,
.it-btn-modern.katalog_item__btn.cart-btn-success:focus-visible {
  background: #28a745 !important;
  color: #fff !important;
  outline: 2px solid rgba(40, 167, 69, 0.5);
  outline-offset: 2px;
}

.it-btn-modern.katalog_item__btn.cart-btn-success:focus .arrow-icon path,
.it-btn-modern.katalog_item__btn.cart-btn-success:focus-visible .arrow-icon path {
  stroke: #fff !important;
}

/* Убеждаемся что стрелка всегда видна */
.it-btn-modern.katalog_item__btn.cart-btn-success .arrow-circle {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.it-btn-modern.katalog_item__btn.cart-btn-success .arrow-icon {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.it-btn-modern.katalog_item__btn.cart-btn-success .arrow-icon path {
  stroke: #fff !important;
  opacity: 1 !important;
}

/* Убираем конфликт с псевдоэлементами для зеленой кнопки */
.it-btn-modern.katalog_item__btn.cart-btn-success::after {
  display: none !important;
}

/* Блок с кнопками на странице товара */
.p-info-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 0;
}

/* Кнопка избранного рядом с кнопкой корзины */
.p-info-actions .katalog_item__btn-fav {
  flex-shrink: 0;
}

/* Кружок с количеством товара в корзине */
.p-info-cart-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #429b46;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
  position: relative;
  flex-shrink: 0;
  opacity: 0;
  transform: scale(0.8);
  visibility: hidden;
}

/* Анимация появления кружка */
.p-info-cart-badge.badge-visible {
  opacity: 1;
  transform: scale(1);
  visibility: visible;
  animation: badgeAppear 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Анимация появления кружка */
@keyframes badgeAppear {
  0% {
    opacity: 0;
    transform: scale(0.5) rotate(-180deg);
  }
  60% {
    transform: scale(1.1) rotate(10deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

.p-info-cart-badge:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(66, 155, 70, 0.4);
}

.p-info-cart-badge.badge-visible:hover {
  transform: scale(1.1);
}

.p-info-cart-badge i {
  font-size: 18px;
  margin-right: 4px;
  transition: transform 0.2s ease;
}

.p-info-cart-badge:hover i {
  transform: scale(1.1);
}

.p-info-cart-badge-count {
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.2s ease;
}

.p-info-cart-badge:hover .p-info-cart-badge-count {
  transform: scale(1.1);
}

.katalog_item__price {
  font-size: 15px;
  font-weight: 500;
  border-radius: 14px;
  background-color: #429b46f7;
  color: white;
  padding: 5px 10px;
}

.katalog_item__link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f8d8d8;
  color: #333;
  text-decoration: none;
  transition: 0.2s ease;
}

.katalog_item__link:hover {
  background: #eac1c1;
  color: #000;
}

.katalog_item__sku,
.katalog_item__stock {
  font-weight: 400;
  color: #333;
  border-radius: 15px;
  background-color: #ece6de;
  padding: 5px 10px;
}

.katalog_item__title {
  font-size: 20px;
  font-weight: 700;
  margin-top: 30px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.katalog_item__subtitle {
  font-size: 13px;
  font-weight: 300;
}

.katalog_item__title-below {
  font-size: 16px;
  line-height: 18px;
  font-weight: 500;
  color: #002244;
  margin-top: 0px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.katalog_item__description {
  font-size: 16px;
  font-weight: 300;
  margin-top: 10px;
  margin-bottom: 0px;
  line-height: 1.4;
}

.katalog_item__supplier-link {
  position: relative;
  z-index: 50;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #f2b6be;
  color: #333;
  text-decoration: none;
  transition: 0.2s ease;
}

.pkext-sku-line {
  display: inline-flex;     /* делаем строку */
  align-items: center;      /* ВЕРТИКАЛЬНЫЙ ЦЕНТР */
  gap: 6px;                 /* отступ справа от SKU */
}
.katalog_item__supplier-link:hover {
  background: #e6a8b1;
  color: #000;
}

.katalog_item__supplier-link svg { 
  width: 16px; 
  height: 16px; 
}

.katalog_item__price-original {
  background: #f7c2ca;
  color: #222;
  font-weight: 500;
  border-radius: 15px;
  padding: 5px 10px;
}

.katalog_col--detached {
  display: none !important;
}

.pkext-price-wrap {
  position: relative;
  display: inline-block;
}

.pkext-extra {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-top: 4px;
}

/* Адаптив карточек каталога */
@media (max-width: 1399.98px) {
  .katalog_item__title-below { 
    font-size: 16px; 
    line-height: 1.5; 
  }
  .katalog_item__description { 
    font-size: 14px; 
    line-height: 1.4; 
  }
}

@media (max-width: 1199.98px) {
  .katalog_item__title-below { 
    font-size: 15px; 
    line-height: 1.4; 
  }
  .katalog_item__description { 
    font-size: 16px; 
    line-height: 1.3; 
  }
  .katalog_item__stock, 
  .katalog_item__price { 
    font-size: 12px; 
    padding: 4px 8px; 
  }
}

@media (max-width: 991.98px) {
  .katalog_item__title-below { 
    font-size: 15px; 
    line-height: 1.4; 
  }
  .katalog_item__description { 
    font-size: 13px; 
    line-height: 1.3; 
  }
  .katalog_item__stock, 
  .katalog_item__price { 
    font-size: 12px; 
    padding: 4px 8px; 
  }
}

@media (max-width: 767.98px) {
  .katalog_item__title-below { 
    font-size: 14px; 
    line-height: 1.3; 
  }
  .katalog_item__description { 
    font-size: 13px; 
    line-height: 1.3; 
  }
  .katalog_item__stock, 
  .katalog_item__price { 
    font-size: 12px; 
    padding: 4px 8px; 
  }
  .katalog_card__bottom {
    padding: 15px 12px;
    gap: 12px;
  }
  .katalog_item__price-bottom {
    font-size: 20px;
  }
}

@media (max-width: 575.98px) {
  .katalog_item__title-below { 
    font-size: 13px; 
    line-height: 1.2; 
  }
  .katalog_item__description { 
    font-size: 13px; 
    line-height: 1.3; 
  }
  .katalog_card__bottom {
    padding: 12px 10px;
    gap: 10px;
  }
  .katalog_item__price-bottom {
    font-size: 18px;
  }
  .katalog_item__stock-bottom {
    font-size: 10px;
    margin-top: 2px;
  }
  .katalog_item__stock-bottom {
    font-size: 10px;
    margin-top: 2px;
  }
  .katalog_card { 
    width: 100%; 
    margin-left: auto; 
    margin-right: auto; 
  }
  .katalog_card__top { 
    padding: 20px; 
  }
  .katalog_card__image { 
    width: 100%; 
  }
  .katalog_item__title { 
    font-size: 18px; 
  }
  .katalog_item__price { 
    font-size: 14px; 
  }
  .katalog_item__stock, 
  .katalog_item__price { 
    font-size: 12px; 
    padding: 4px 8px; 
  }
}

@media (max-width: 420px) {
  .katalog_item__price-original { 
    font-size: 0.95em; 
    padding: 4px 8px; 
  }
  .katalog_item__supplier-link { 
    padding: 3px 5px; 
  }
}

/* ============================================ КАТАЛОГ: ФИЛЬТРЫ ============================================ */

.katalog_card__filter-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.katalog_card__filter-label {
  min-width: 80px;
  font-weight: 600;
  margin-right: 10px;
}

.katalog_card__filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.katalog_card__filters .katalog_card__filter-swatch {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: inline-block;
  border: 1px solid rgba(17,17,17,.15);
  background-size: cover;
  background-position: center;
  cursor: pointer;
  margin: 0 8px 8px 0;
  position: relative;
  transition: box-shadow .15s ease, transform .05s ease;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.6);
}

.katalog_card__filters .katalog_card__filter-swatch:hover {
  box-shadow: 0 0 0 3px rgba(30,99,233,.15), inset 0 0 0 1px rgba(255,255,255,.7);
}

.katalog_card__filters .katalog_card__filter-swatch.active,
.katalog_card__filters .katalog_card__filter-swatch[data-selected="true"],
.katalog_card__filters .katalog_card__filter-swatch[aria-pressed="true"] {
  box-shadow: 0 0 0 2px #1E63E9, 0 0 0 6px rgba(30,99,233,.15), inset 0 0 0 1px rgba(255,255,255,.9);
}

.katalog_card__filters .katalog_card__filter-swatch[data-value="Білий"],
.katalog_card__filters .katalog_card__filter-swatch[style*="background: #fff"],
.katalog_card__filters .katalog_card__filter-swatch[style*="background:#fff"],
.katalog_card__filters .katalog_card__filter-swatch[style*="background: transparent"] {
  background-image:
    linear-gradient(45deg, rgba(0,0,0,.06) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(0,0,0,.06) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(0,0,0,.06) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(0,0,0,.06) 75%);
  background-size: 10px 10px;
  background-position: 0 0, 0 5px, 5px -5px, -5px 0;
}

.katalog_card__filter-badge[aria-pressed="true"] {
  background-color: #000; 
  color: #fff; 
  border-color: #000;
}

.katalog_card__filters .katalog_card__filter-reset.btn {
  border-radius: 10px;
  border-color: rgba(17,17,17,.2);
}

.katalog_card__filters .katalog_card__filter-reset.btn:hover {
  box-shadow: 0 0 0 3px rgba(0,0,0,.06) inset;
}

/* ============================================ СТРАНИЦА ТОВАРА ============================================ */

.p-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.p-rail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.p-thumbs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 520px;
  overflow: auto;
  flex-shrink: 0;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.p-thumbs::-webkit-scrollbar {
  display: none;
  width: 6px;
}

.p-thumbs::-webkit-scrollbar-track {
  background: #f5f5f5;
  border-radius: 3px;
}

.p-thumbs::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 3px;
}

.p-thumbs::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

.p-thumbs img {
  width: 90px;
  min-width: 90px;
  height: 90px;
  object-fit: cover;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #fff;
  padding: 4px;
  box-sizing: border-box;
}

.p-thumbs img:hover {
  border-color: #111;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Контейнер для главного изображения товара с кнопкой */
.p-main-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 100%;
}

.p-main {
  flex: 1;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  padding: 1rem;
  box-sizing: border-box;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.p-main:hover {
  opacity: 0.9;
}

/* Кнопка "Добавить в избранное" на странице товара */
.p-main-wrapper .katalog_item__btn-fav {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 10;
}

.p-info {
  display: flex;
  flex-direction: column;
  padding: 18px;
  align-self: start;
  position: sticky;
  top: 90px;
}

.p-info > * + * {
  margin-top: 5px;
}

.p-badge {
  display: inline-block;
  background: #111;
  color: #fff;
  border-radius: 18px;
  padding: 7px 12px;
  font-weight: 700;
  font-size: 12px;
  margin-bottom: 6px;
  align-self: flex-start;
}

.p-title {
  font-size: 34px;
  font-weight: 800;
  margin: 6px 0 0;
  line-height: 1.3;
  color: #111;
}

/* Единые стили для всех полей описания товара */
.p-meta,
.product-desc,
.product-params {
  color: #333;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.p-meta {
  border-top: 1px solid #e6e8ec;
  padding-top: 16px;
  margin-top: 8px;
}

.p-meta b {
  color: #000;
  font-weight: 600;
}

.product-desc {
  margin: 0;
}

.product-params {
  border-top: 1px solid #eee;
  padding-top: 1rem;
}

.product-params > div {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.product-params b {
  min-width: 120px;
  color: #000;
  font-weight: 600;
}

.p-pricewrap {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 8px 0 0;
  flex-wrap: wrap;
}

.p-price {
  font-size: 30px;
  font-weight: 800;
  color: #111;
  line-height: 1;
}

.p-old {
  color: #9aa0a6;
  text-decoration: line-through;
  font-size: 1.25rem;
  font-weight: 500;
}

.p-qty {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0 0;
  border-radius: 0.5rem;
  padding: 0.25rem;
}

.p-qty .btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid #111;
  background: #111;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  text-align: center;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  user-select: none;
}

.p-qty .btn:hover {
  background: #000;
}

.p-qty .btn:active {
  transform: scale(0.95);
}

.p-qty input {
  width: 60px;
  text-align: center;
  height: 42px;
  border-radius: 22px;
  border: 1px solid #111;
  background: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #111;
  padding: 0;
  -moz-appearance: textfield;
}

.p-qty input::-webkit-outer-spin-button,
.p-qty input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.p-qty input:focus {
  outline: none;
}


.product-sizes-table__title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #111;
}

.product-sizes-table__table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 15px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  table-layout: auto;
}

/* Минимальные ширины для колонок текстильной таблицы */
#textile-sizes-table thead th:nth-child(1),
#textile-sizes-table tbody td:nth-child(1) {
  min-width: 55px;
}

#textile-sizes-table thead th:nth-child(2),
#textile-sizes-table tbody td:nth-child(2) {
  min-width: 90px;
}

#textile-sizes-table thead th:nth-child(3),
#textile-sizes-table tbody td:nth-child(3) {
  min-width: 100px;
}

#textile-sizes-table thead th:nth-child(4),
#textile-sizes-table tbody td:nth-child(4) {
  min-width: 140px;
}

.product-sizes-table__table thead {
  background: #ece6de;
}

.product-sizes-table__table thead th {
  padding: 1rem;
  text-align: center;
  font-weight: 600;
  font-size: 0.875rem;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid #d4ccc0;
  vertical-align: middle;
}

.product-sizes-table__table tbody tr {
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.15s ease;
}

.product-sizes-table__table tbody tr:last-child {
  border-bottom: none;
}

.product-sizes-table__table tbody tr:hover {
  background-color: #fafafa;
}

.product-sizes-table__table tbody td {
  padding: 1rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #111;
  text-align: center;
  vertical-align: middle;
}

.product-sizes-table__table tbody td:first-child {
  font-weight: 500;
  color: #111;
}

.product-sizes-table__table tbody td:nth-child(3) {
  font-weight: 600;
  color: #111;
}

.product-sizes-table__table tbody td:nth-child(4) {
  font-weight: 500;
  color: #111;
}

/* Стили для поля "Наличие" */
.textile-stock-amount {
  font-weight: 600;
  color: #111;
  display: inline-block;
}

/* Убеждаемся, что колонка "Наличие" всегда видна */
#textile-sizes-table thead th:nth-child(3),
#textile-sizes-table tbody td:nth-child(3) {
  display: table-cell !important;
  visibility: visible !important;
  width: auto !important;
  min-width: 100px !important;
  max-width: none !important;
  overflow: visible !important;
}

/* Сумма для обычных товаров */
.regular-product-sum {
  font-weight: 600;
  font-size: 0.9375rem;
  color: #111;
}

/* Цена внутри таблицы для обычных товаров */
#regular-product-table .p-price {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #111;
  margin: 0;
}

#regular-product-table .p-old {
  font-size: 0.875rem;
  color: #9ca3af;
  text-decoration: line-through;
  margin-top: 0.25rem;
}

.product-sizes-table__table tbody td .text-muted {
  color: #9ca3af;
}

/* ============================================
   СТИЛИ ДЛЯ ФОРМЫ И ЗАГРУЗЧИКА ФАЙЛОВ
   ============================================ */

/* Современный дизайн формы - в стиле upload_test.php */
.form-area {
    position: relative;
    z-index: 9;
}

/* Секции формы - в стиле upload_test.php */
.form-area .form-section {
    margin-bottom: 32px;
    padding-bottom: 0;
    border-bottom: none;
}

.form-area .form-section:last-child {
    margin-bottom: 0;
}

.form-area .form-section-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 18px;
    padding-bottom: 0;
    border-bottom: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.5;
    letter-spacing: -0.01em;
}

/* Улучшенные отступы */
.form-area .mb-24 {
    margin-bottom: 24px;
}

.form-area .mb-30 {
    margin-bottom: 30px;
}

/* Отступы между полями */
.form-area .mb-18 {
    margin-bottom: 18px;
}

.form-area .mb-20 {
    margin-bottom: 20px;
}

/* Современные карточные радио-кнопки */
.form-area .form-check {
    margin-bottom: 12px;
    padding: 0;
    position: relative;
}

.form-area .form-check-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

.form-area .form-check-label {
    display: block;
    padding: 16px 20px;
    padding-left: 50px;
    margin: 0;
    cursor: pointer;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: #ffffff;
    color: #374151;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    position: relative;
    min-height: 52px;
    display: flex;
    align-items: center;
}

.form-area .form-check-label::before {
    content: '';
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid #9ca3af;
    border-radius: 50%;
    background: #ffffff;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}

.form-area .form-check-label::after {
    content: '';
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%) scale(0);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ffffff;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover состояние */
.form-area .form-check-label:hover {
    border-color: #113ebf;
    background: #f8f9ff;
    box-shadow: 0 2px 8px rgba(17, 62, 191, 0.1);
}

.form-area .form-check-label:hover::before {
    border-color: #113ebf;
}

/* Выбранное состояние */
.form-area .form-check-input:checked + .form-check-label {
    border-color: #113ebf;
    background: #f0f2ff;
    box-shadow: 0 0 0 3px rgba(17, 62, 191, 0.1);
    color: #1e293b;
    font-weight: 600;
}

.form-area .form-check-input:checked + .form-check-label::before {
    border-color: #113ebf;
    background: #113ebf;
    border-width: 2px;
}

.form-area .form-check-input:checked + .form-check-label::after {
    transform: translateY(-50%) scale(1);
}

/* Focus состояние для доступности */
.form-area .form-check-input:focus + .form-check-label {
    outline: 2px solid rgba(102, 126, 234, 0.5);
    outline-offset: 2px;
}

/* Активное состояние (при клике) */
.form-area .form-check-label:active {
    transform: scale(0.98);
}

.form-area input,
.form-area textarea {
    color: #333;
    border-radius: 8px;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 15px 18px;
    font-size: 16px;
    line-height: 26px;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.form-area input::placeholder,
.form-area textarea::placeholder {
    color: rgba(0, 0, 0, 0.5);
}

/* 🎯 Фокус (при клике) */
.form-area input:focus,
.form-area textarea:focus {
    outline: none;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 1);
}

/* ⚠️ Ошибки валидации */
.form-area input.error,
.form-area textarea.error {
    border-color: rgba(255, 200, 200, 0.8);
    background: rgba(255, 240, 240, 0.95);
}

/* 🔹 Доработка для textarea */
.form-area textarea {
    height: 150px;
    resize: vertical;
}

/* Современные стили для полей ввода */
.form-area .it-contact-input-box {
    margin-bottom: 0;
}

.form-area .it-contact-input-box input,
.form-area .it-contact-textarea-box textarea {
    color: #333 !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
    box-shadow: none !important;
    padding: 14px 16px !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    transition: all 0.2s ease !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
    line-height: 1.5 !important;
    width: 100% !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
}

/* Select стили вынесены отдельно для переопределения стилей из main.css */
.form-area .it-contact-input-box select {
    color: #333 !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
    box-shadow: none !important;
    padding: 14px 16px !important;
    padding-right: 40px !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    transition: all 0.2s ease !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
    line-height: 1.5 !important;
    width: 100% !important;
    height: auto !important;
    min-height: 48px !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    cursor: pointer !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23113ebf' d='M6 9L1 4h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
    background-size: 12px !important;
    outline: none !important;
}

.form-area .it-contact-input-box input::placeholder,
.form-area .it-contact-textarea-box textarea::placeholder {
    color: #999;
    font-weight: 400;
    opacity: 1;
}

.form-area .it-contact-input-box input:focus,
.form-area .it-contact-textarea-box textarea:focus,
.form-area .it-contact-input-box select:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(17, 62, 191, 0.1) !important;
    border-color: #113ebf !important;
    background: #ffffff !important;
}

.form-area .it-contact-input-box select:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23113ebf' d='M6 9L1 4h10z'/%3E%3C/svg%3E") !important;
}

.form-area .it-contact-input-box input:hover:not(:focus),
.form-area .it-contact-textarea-box textarea:hover:not(:focus),
.form-area .it-contact-input-box select:hover:not(:focus) {
    border-color: #cbd5e1 !important;
    background: #ffffff !important;
}

.form-area .it-contact-input-box select:hover {
    cursor: pointer !important;
    border-color: #cbd5e1 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23113ebf' d='M6 9L1 4h10z'/%3E%3C/svg%3E") !important;
}


.form-area .it-contact-textarea-box textarea {
    min-height: 120px;
    resize: vertical;
    padding-top: 14px;
}


.form-area .it-contact-input-box select option {
    padding: 12px;
    background: #ffffff;
    color: #0f172a;
}

.form-area .it-contact-input-box select:invalid {
    color: #999 !important;
}

.form-area .it-contact-input-box select.form-select-custom {
    background-color: #ffffff !important;
}

/* Исправление для работы select в разных браузерах */
.form-area .it-contact-input-box select::-ms-expand {
    display: none !important;
}

/* Улучшение видимости выбранного значения в select */
.form-area .it-contact-input-box select.form-select-custom:not(:invalid) {
    color: #333 !important;
}

.form-area .it-contact-input-box select.form-select-custom option {
    color: #333 !important;
    background: #ffffff !important;
    padding: 12px !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
}

.form-area .it-contact-input-box select.form-select-custom option:disabled {
    color: #999 !important;
}


/* Убираем старые стили dropdown - больше не используется */

/* Современная кнопка отправки - в стиле upload_test.php с синим градиентом */
.form-area .it-btn-modern {
    background: linear-gradient(135deg, #113ebf 0%, #2366ff 100%);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(17, 62, 191, 0.25);
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    padding: 15px 28px;
    border-radius: 10px;
    font-size: 16px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    cursor: pointer;
    position: relative;
}

.form-area .it-btn-modern::before {
    display: none;
}

.form-area .it-btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(17, 62, 191, 0.4);
    background: linear-gradient(135deg, #2366ff 0%, #113ebf 100%);
}

.form-area .it-btn-modern:active {
    transform: translateY(0);
    box-shadow: 0 4px 14px rgba(17, 62, 191, 0.25);
}

.form-area .it-btn-modern:hover::before,
.form-area .it-btn-modern:focus::before {
    display: none;
}

.form-area .it-btn-modern .arrow-circle {
    background: rgba(255, 255, 255, 0.25);
    margin-left: 12px;
    transition: background 0.2s ease;
}

.form-area .it-btn-modern:hover .arrow-circle {
    background: rgba(255, 255, 255, 0.35);
}

/* Текст согласия */
.form-area .small {
    color: #64748b !important;
    font-size: 13px;
    line-height: 1.6;
    margin-top: 16px;
    font-weight: 400;
}

.form-area .small a {
    color: #113ebf !important;
    text-decoration: none;
    border-bottom: 1px solid rgba(17, 62, 191, 0.3);
    transition: all 0.2s ease;
    font-weight: 500;
}

.form-area .small a:hover {
    color: #2366ff !important;
    border-bottom-color: #2366ff;
}

/* Дополнительные поля для доставки и оплаты */
.form-area .delivery-self-info,
.form-area .delivery-nova-poshta-info,
.form-area .payment-fop-info,
.form-area .payment-invoice-info {
    margin-top: 16px;
    animation: fadeIn 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.form-area .delivery-self-info p {
    color: #64748b;
    font-size: 14px;
    margin: 0;
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: 10px;
    border-left: 3px solid #113ebf;
    line-height: 1.6;
    font-weight: 400;
}

/* Дополнительные поля внутри выпадающих списков */
.form-area .delivery-nova-poshta-info .it-contact-input-box,
.form-area .payment-fop-info .it-contact-input-box,
.form-area .payment-invoice-info .it-contact-input-box {
    margin-top: 0;
}

.form-area .delivery-nova-poshta-info .mb-18:last-child,
.form-area .payment-fop-info > div:last-child,
.form-area .payment-invoice-info > div:last-child {
    margin-bottom: 0;
}

/* Улучшенный внешний вид select */
.form-area .it-contact-input-box select.form-select-custom {
    cursor: pointer;
}

.form-area .it-contact-input-box select.form-select-custom:focus {
    cursor: pointer;
}

/* Адаптивность для мобильных */
@media (max-width: 575px) {
    .form-area .form-section {
        margin-bottom: 32px;
        padding-bottom: 24px;
    }
    
    .form-area .form-section-title {
        font-size: 16px;
        margin-bottom: 16px;
    }
    
    .form-area .it-contact-input-box input,
    .form-area .it-contact-textarea-box textarea,
    .form-area .it-contact-input-box select {
        font-size: 14px;
        padding: 12px 14px;
    }
}

/* Улучшенные отступы для колонок */
.form-area .row {
    margin-left: -16px;
    margin-right: -16px;
}

.form-area .row > [class*="col-"] {
    padding-left: 16px;
    padding-right: 16px;
}

.form-area .col-lg-6:first-child {
    padding-right: 32px;
}

.form-area .col-lg-6:last-child {
    padding-left: 32px;
}

@media (max-width: 991px) {
    .form-area .col-lg-6:first-child,
    .form-area .col-lg-6:last-child {
        padding-left: 16px;
        padding-right: 16px;
        margin-bottom: 32px;
    }
    
    .form-area .col-lg-6:last-child {
        margin-bottom: 0;
    }
}

/* Дополнительные отступы */
.form-area .mb-24 {
    margin-bottom: 24px;
}

.form-area .mb-30 {
    margin-bottom: 30px;
}

/* ============================================
   Стили для универсального компонента загрузки файлов - обновленный дизайн
   ============================================ */
.file-uploader-container .file-uploader-area {
    border: 3px dashed #113ebf;
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    background: #f8f9ff;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 20px;
    position: relative;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.file-uploader-container .file-uploader-area:hover:not(.uploading) {
    border-color: #2366ff;
    background: #f0f2ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(17, 62, 191, 0.15);
}

.file-uploader-container .file-uploader-area.dragover {
    border-color: #2366ff;
    background: #e8ebff;
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(17, 62, 191, 0.2);
}

/* Під час завантаження зону можна клікати й докидати файли дропом (pointer-events не блокуємо) */
.file-uploader-container .file-uploader-area.uploading {
    cursor: copy;
    border-color: #113ebf;
    background: #f8f9ff;
}

.file-uploader-container .file-uploader-icon {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.7;
}

.file-uploader-container .file-uploader-text {
    font-size: 18px;
    font-weight: 600;
    color: #113ebf;
    margin-bottom: 8px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.file-uploader-container .file-uploader-hint {
    font-size: 14px;
    color: #6c757d;
    font-weight: 400;
}

.file-uploader-container .file-uploader-progress {
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.file-uploader-container .file-uploader-area.uploading .file-uploader-progress {
    display: flex;
}

.file-uploader-container .file-uploader-area.uploading .file-uploader-icon,
.file-uploader-container .file-uploader-area.uploading .file-uploader-text,
.file-uploader-container .file-uploader-area.uploading .file-uploader-hint {
    display: none;
}

.file-uploader-container .file-uploader-progress-bar {
    width: 100%;
    height: 12px;
    background: #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
}

.file-uploader-container .file-uploader-progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #113ebf 0%, #2366ff 100%);
    border-radius: 6px;
    transition: width 0.1s ease;
    width: 0%;
}

.file-uploader-container .file-uploader-progress-info {
    width: 100%;
    text-align: center;
    font-size: 14px;
    color: #333333;
}

.file-uploader-container .file-uploader-progress-file {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 15px;
    color: #113ebf;
}

.file-uploader-container .file-uploader-progress-stats {
    font-size: 13px;
    color: #6c757d;
}

.file-uploader-container .file-uploader-input {
    display: none;
}

.file-uploader-container .file-uploader-list {
    margin-top: 10px;
    max-height: 150px;
    overflow-y: auto;
}

.file-uploader-container .file-uploader-item {
    padding: 8px 14px;
    margin: 5px 0;
    background: #ffffff;
    border-radius: 4px;
    border-left: 3px solid #113ebf;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.file-uploader-container .file-uploader-item:hover {
    background: #f8f9ff;
    transform: translateX(2px);
}

.file-uploader-container .file-uploader-item-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.file-uploader-container .file-uploader-item-name {
    font-weight: 500;
    color: #1a1a1a;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 3px;
}

.file-uploader-container .file-uploader-item-size {
    font-size: 12px;
    color: #6c757d;
    font-weight: 400;
}

.file-uploader-container .file-uploader-item-remove {
    background: #f8d7da;
    color: #721c24;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-left: 8px;
    flex-shrink: 0;
    transition: all 0.2s;
}

.file-uploader-container .file-uploader-item-remove:hover {
    background: #f5c6cb;
    transform: scale(1.1);
    box-shadow: 0 2px 4px rgba(114, 28, 36, 0.2);
}

.file-uploader-container .file-uploader-formats {
    margin-top: 10px;
    font-size: 12px;
    color: #64748b;
}

.file-uploader-container .file-uploader-results {
    margin-top: 15px;
    display: none;
}

.file-uploader-container .file-uploader-results.active {
    display: block;
}

.file-uploader-container .file-uploader-result-item {
    padding: 10px;
    margin: 5px 0;
    border-radius: 6px;
    font-size: 13px;
}

.file-uploader-container .file-uploader-result-item.success {
    background: rgba(212, 237, 218, 0.2);
    color: rgba(21, 87, 36, 0.9);
    border: 1px solid rgba(195, 230, 203, 0.3);
}

.file-uploader-container .file-uploader-result-item.error {
    background: rgba(248, 215, 218, 0.2);
    color: rgba(114, 28, 36, 0.9);
    border: 1px solid rgba(245, 198, 203, 0.3);
}

.product-sizes-table__table tfoot {
  background: #ffeb9e;
}

.product-sizes-table__table tfoot td {
  padding: 1rem 1.5rem;
  font-weight: 400;
  font-size: 1rem;
  color: #111;
  text-align: right;
  vertical-align: middle;
}

/* Желтая плашка 5px для обычных товаров */
#regular-product-table tfoot td {
  padding: 5px !important;
  background: #ffeb9e !important;
}

.textile-total-qty {
  font-weight: 700;
  color: #111;
  font-size: 1rem;
}

.textile-total-sum {
  color: #111;
  font-weight: 700;
}

/* Stepper для количества в таблице размеров */
.textile-size-qty-box {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 0.5rem;
  padding: 0.125rem;
}

.textile-size-qty-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #111;
  background: #111;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  text-align: center;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  user-select: none;
  padding: 0;
  flex-shrink: 0;
}

.textile-size-qty-btn:hover {
  background: #000;
}

.textile-size-qty-btn:active {
  transform: scale(0.95);
}

.textile-size-qty-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: #666;
}

.textile-size-qty {
  width: 50px;
  text-align: center;
  height: 36px;
  border-radius: 18px;
  border: 1px solid #111;
  background: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #111;
  padding: 0;
  -moz-appearance: textfield;
  flex-shrink: 0;
}

.textile-size-qty::-webkit-outer-spin-button,
.textile-size-qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.textile-size-qty:focus {
  outline: none;
  border-color: #000;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.textile-size-qty:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #f5f5f5;
}

@media (max-width: 767.98px) {
  .product-sizes-table__table {
    font-size: 0.7rem;
    max-width: 100%;
    display: table;
  }
  
  .product-sizes-table__table thead th {
    padding: 0.5rem 0.35rem;
    font-size: 0.60rem;
    display: table-cell;
  }
  
  .product-sizes-table__table tbody td {
    padding: 0.5rem 0.25rem;
    font-size: 0.7rem;
    display: table-cell;
  }
  
  /* Цена и сумма для обычных товаров в таблице на мобильных */
  #regular-product-table .p-price,
  .regular-product-sum {
    font-size: 0.7rem;
  }
  
  /* Убеждаемся, что все колонки видны на мобильных */
  #textile-sizes-table thead th,
  #textile-sizes-table tbody td {
    display: table-cell !important;
    visibility: visible !important;
  }
  
  /* Первая колонка текстильной таблицы */
  #textile-sizes-table thead th:nth-child(1),
  #textile-sizes-table tbody td:nth-child(1) {
    min-width: 55px;
  }
  
  /* Вторая колонка текстильной таблицы */
  #textile-sizes-table thead th:nth-child(2),
  #textile-sizes-table tbody td:nth-child(2) {
    min-width: 90px;
  }
  
  /* Особое внимание к колонке "Наличие" */
  #textile-sizes-table thead th:nth-child(3),
  #textile-sizes-table tbody td:nth-child(3) {
    display: table-cell !important;
    visibility: visible !important;
    min-width: 80px;
    white-space: nowrap;
  }
  
  .product-sizes-table__table tfoot td {
    padding: 0.5rem 1.25rem;
    font-size: 0.7rem;
  }
  
  .textile-size-qty-box {
    gap: 0.25rem;
  }
  
  .textile-size-qty-btn {
    width: 24px;
    height: 24px;
    font-size: 0.7rem;
  }
  
  .textile-size-qty {
    width: 34px;
    height: 24px;
    font-size: 0.7rem;
  }
  
  .textile-total-qty,
  .textile-total-sum {
    font-size: 0.75rem;
  }
}

/* Базовые стили для swatch */
.swatch {
  display: inline-block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  vertical-align: middle;
  margin-right: 8px;
  margin-bottom: 8px;
  position: relative;
  border: 2px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.swatch.swatch-with-image {
  overflow: hidden;
}

.swatch:hover {
  border-color: #3b82f6;
}

.swatch[aria-current="true"] {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

/* Общие стили для swatch-image (базовые, переопределяются для страницы товара) */
.swatch-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}

.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

/* Стили для свотчей на странице товара */
.section-product .swatch.katalog_card__color-swatch,
.p-info .swatch.katalog_card__color-swatch {
  width: 48px;
  height: 48px;
  border-radius: 24px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  display: inline-block;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  overflow: visible; /* Разрешаем видеть индикатор количества сверху - не обрезаем ::after */
  z-index: 1; /* Убеждаемся, что свотч имеет правильный z-index */
  pointer-events: auto; /* Явно разрешаем клики по свотчу */
  -webkit-tap-highlight-color: transparent; /* Убираем подсветку при клике на мобильных */
}

.section-product .swatch.katalog_card__color-swatch:hover:not([data-out="1"]),
.p-info .swatch.katalog_card__color-swatch:hover:not([data-out="1"]) {
  border-color: #111;
  transform: scale(1.05);
}

.section-product .swatch.katalog_card__color-swatch[aria-current="true"],
.p-info .swatch.katalog_card__color-swatch[aria-current="true"] {
  border: 2px solid rgb(17 62 191 / 55%);
  transform: scale(1.05);
  /* Убираем черную обводку внутри (box-shadow) */
  box-shadow: none;
  cursor: default; /* Активный свотч не кликабельный */
  pointer-events: none; /* Отключаем клики на активном свотче */
  opacity: 1; /* Убеждаемся что активный свотч виден */
}

/* Свотчи без URL не кликабельны */
.section-product .swatch.katalog_card__color-swatch.swatch-no-url,
.p-info .swatch.katalog_card__color-swatch.swatch-no-url {
  cursor: not-allowed;
  opacity: 0.6;
  pointer-events: none;
}

/* Изображение внутри свотча на странице товара - перемещаем назад и обрезаем кругом */
.section-product .swatch.katalog_card__color-swatch .swatch-image,
.p-info .swatch.katalog_card__color-swatch .swatch-image,
.section-product .swatch-image,
.p-info .swatch-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0; /* Изображение на уровне 0, обводка свотча (border) будет видна сверху */
  border-radius: 50%;
  display: block;
  /* Обрезаем изображение кругом через clip-path, чтобы не использовать overflow: hidden на родителе */
  clip-path: circle(50% at 50% 50%);
  pointer-events: none; /* Важно: клики должны проходить через изображение к свотчу */
}

.swatch[data-count]:not([data-count=""])::after {
  content: attr(data-count);
  position: absolute;
  top: -10px;
  right: -10px;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #111;
  padding: 0 5px;
  font-weight: 600;
  z-index: 10; /* Индикатор поверх всего */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Тень для лучшей видимости */
}

/* Для свотчей на странице товара - индикатор еще выше и точно не обрезается */
.section-product .swatch[data-count]:not([data-count=""])::after,
.p-info .swatch[data-count]:not([data-count=""])::after {
  top: -12px;
  right: -12px;
  min-width: 22px;
  height: 22px;
  font-size: 12px;
  border-radius: 11px;
  z-index: 100; /* Очень высокий z-index чтобы быть поверх всего */
  pointer-events: none; /* Чтобы не мешал кликам по свотчу */
}

/* Убеждаемся, что контейнер swatches не обрезает индикаторы */
.section-product .swatches,
.p-info .swatches {
  overflow: visible !important; /* Разрешаем видеть индикаторы сверху */
  padding-top: 15px; /* Добавляем отступ сверху для индикаторов */
  margin-top: -15px; /* Компенсируем отступ, чтобы не сдвигать контейнер */
  position: relative; /* Для правильного позиционирования */
  z-index: 1; /* Убеждаемся что контейнер не блокирует клики */
  pointer-events: auto; /* Разрешаем клики внутри контейнера */
}

.swatch[data-out="1"] {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.5);
}

.swatch[data-out="1"]:hover {
  transform: none;
  border-color: #e5e7eb;
}

/* FIX: Product page layout с data-protonpass-form */
.section-product .p-wrap[data-protonpass-form],
.p-wrap[data-protonpass-form] {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.section-product .p-wrap[data-protonpass-form] > *,
.p-wrap[data-protonpass-form] > * {
  min-width: 0;
}

.section-product .p-wrap[data-protonpass-form] > .it-contact__form-box,
.p-wrap[data-protonpass-form] > .it-contact__form-box {
  grid-column: 1 / -1;
}

/* Адаптивность страницы товара */
@media (min-width: 992px) and (max-width: 1399.98px) {
  .section-product .p-wrap[data-protonpass-form],
  .p-wrap[data-protonpass-form] {
    grid-template-columns: 1.08fr 0.92fr;
    gap: 24px;
  }
  
  .section-product .p-main,
  .p-wrap[data-protonpass-form] .p-main {
    padding: 0.75rem;
  }
  
  .section-product .p-thumbs img,
  .p-wrap[data-protonpass-form] .p-thumbs img {
    width: 80px;
    min-width: 80px;
    height: 80px;
  }
  
  .p-wrap[data-protonpass-form] .p-info {
    --p-info-pad: 16px;
    padding: var(--p-info-pad);
    border-radius: 12px;
  }
  
  .p-wrap[data-protonpass-form] .p-title { 
    font-size: 28px; 
  }
  
  .p-wrap[data-protonpass-form] .p-price { 
    font-size: 26px; 
  }
  
  .p-wrap[data-protonpass-form] .p-old { 
    font-size: 18px; 
  }
  
  .p-wrap[data-protonpass-form] .p-pricewrap { 
    gap: 12px; 
  }
  
  .p-wrap[data-protonpass-form] .p-qty { 
    margin: 10px 0 16px; 
  }
  
  .p-wrap[data-protonpass-form] .p-qty .btn { 
    width: 38px; 
    height: 38px; 
  }
  
  .p-wrap[data-protonpass-form] .p-qty input { 
    height: 38px; 
    width: 56px; 
  }
  
  .p-wrap[data-protonpass-form] .p-meta,
  .p-wrap[data-protonpass-form] .product-desc,
  .p-wrap[data-protonpass-form] .product-params { 
    font-size: 0.875rem; 
  }
}

@media (max-width: 1199.98px) {
  .section-product .p-wrap[data-protonpass-form],
  .p-wrap[data-protonpass-form] { 
    gap: 24px; 
  }
  
  .p-thumbs {
    max-height: 480px;
  }
  
  .p-rail {
    gap: 1rem;
  }
  
}

@media (max-width: 991.98px) {
  .p-wrap {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .section-product .p-wrap[data-protonpass-form],
  .p-wrap[data-protonpass-form] {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .section-product .p-wrap[data-protonpass-form] > .it-contact__form-box,
  .p-wrap[data-protonpass-form] > .it-contact__form-box {
    grid-column: auto;
  }
  
  .p-rail {
    flex-direction: column;
    align-items: center;
    gap: 0rem;
  }
  
  .p-info {
    position: static;
    top: auto;
    padding: 0px;
  }
  
  .p-info > * + * {
    margin-top: 5px;
  }
  
  .p-thumbs {
    flex-direction: row;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
    padding-right: 0;
    padding-bottom: 0.5rem;
    justify-content: flex-start;
    gap: 0.5rem;
  }
  
  .p-thumbs::-webkit-scrollbar {
    height: 6px;
    width: auto;
    display: block;
  }
  
  .p-thumbs img {
    width: 80px;
    min-width: 80px;
    height: 80px;
    flex-shrink: 0;
  }
  
  .p-main {
    padding: 0.75rem;
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 767.98px) {
  .p-wrap {
    gap: 18px;
  }
  
  .p-title {
    font-size: 28px;
  }
  
  .p-price {
    font-size: 26px;
  }
  
  .p-old {
    font-size: 18px;
  }
  
  .p-thumbs img {
    width: 70px;
    min-width: 70px;
    height: 70px;
  }
  
  .p-main {
    padding: 0.625rem;
  }
  
  .p-meta,
  .product-desc,
  .product-params {
    font-size: 0.875rem;
    line-height: 1.6;
  }
  
  .p-meta {
    padding: 0.875rem 0;
    margin: 0.875rem 0;
  }
  
  .product-desc {
    margin: 0.875rem 0;
  }
  
  .product-params {
    padding-top: 0.875rem;
  }
  
  .p-pricewrap {
    margin: 1rem 0;
  }
  
  .p-qty {
    margin: 0.875rem 0 1.25rem;
  }
}

@media (max-width: 575.98px) {
  .p-wrap {
    gap: 16px;
  }
  
  .p-title {
    font-size: 24px;
    margin: 0.375rem 0 0.75rem;
  }
  
  .p-price {
    font-size: 22px;
  }
  
  .p-old {
    font-size: 1rem;
  }
  
  .p-thumbs {
    gap: 0.5rem;
  }
  
  .p-thumbs img {
    width: 60px;
    min-width: 60px;
    height: 60px;
  }
  
  .p-main {
    padding: 0.5rem;
    border-radius: 8px;
  }
  
  .p-meta,
  .product-desc,
  .product-params {
    font-size: 0.8125rem;
    line-height: 1.6;
  }
  
  .p-meta {
    padding: 0.75rem 0;
    margin: 0.75rem 0;
  }
  
  .product-desc {
    margin: 0.75rem 0;
  }
  
  .product-params {
    padding-top: 0.75rem;
  }
  
  .product-params b {
    min-width: 100px;
  }
  
  .p-pricewrap {
    gap: 0.75rem;
    margin: 1rem 0;
  }
  
  .p-qty {
    margin: 0.75rem 0 1rem;
    gap: 0.375rem;
  }
  
  .p-qty .btn {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }
  
  .p-qty input {
    width: 50px;
    height: 36px;
    font-size: 0.875rem;
  }
  
  .swatches {
    gap: 0.625rem;
    margin-top: 0.375rem;
  }
  
  .swatch.katalog_card__color-swatch {
    width: 36px;
    height: 36px;
  }
  
  /* Для свотчей на странице товара на мобильных */
  .section-product .swatch.katalog_card__color-swatch,
  .p-info .swatch.katalog_card__color-swatch {
    width: 44px;
    height: 44px;
    position: relative; /* Убеждаемся, что позиционирование правильное */
  }
  
  /* Изображение в свотче на мобильных - убеждаемся, что видно */
  .section-product .swatch.katalog_card__color-swatch .swatch-image,
  .p-info .swatch.katalog_card__color-swatch .swatch-image,
  .section-product .swatch-image,
  .p-info .swatch-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* На мобильных делаем z-index выше, чтобы изображение было видно */
  }
  
  .swatch[data-count]:not([data-count=""])::after {
    top: -8px;
    right: -8px;
    min-width: 18px;
    height: 18px;
    font-size: 10px;
    z-index: 10; /* Индикатор должен быть выше изображения */
  }
  
  /* Для свотчей на странице товара - индикатор выше */
  .section-product .swatch[data-count]:not([data-count=""])::after,
  .p-info .swatch[data-count]:not([data-count=""])::after {
    top: -10px;
    right: -10px;
    min-width: 20px;
    height: 20px;
    font-size: 11px;
    z-index: 10; /* Индикатор должен быть выше изображения */
  }
}

@media (max-width: 374.98px) {
  .p-title {
    font-size: 1.375rem;
  }
  
  .p-price {
    font-size: 1.375rem;
  }
  
  /* Для свотчей на странице товара на очень маленьких экранах */
  .section-product .swatch.katalog_card__color-swatch,
  .p-info .swatch.katalog_card__color-swatch {
    width: 40px;
    height: 40px;
  }
  
  /* Индикатор количества для очень маленьких экранов */
  .section-product .swatch[data-count]:not([data-count=""])::after,
  .p-info .swatch[data-count]:not([data-count=""])::after {
    top: -8px;
    right: -8px;
    min-width: 18px;
    height: 18px;
    font-size: 10px;
  }
  
  .p-thumbs img {
    width: 50px;
    min-width: 50px;
    height: 50px;
  }
  
  .p-main {
    padding: 0.375rem;
  }
  
  .p-qty .btn {
    width: 32px;
    height: 32px;
    font-size: 0.875rem;
  }
  
  .p-qty input {
    width: 45px;
    height: 32px;
    font-size: 0.8125rem;
  }
  
  .swatch.katalog_card__color-swatch {
    width: 32px;
    height: 32px;
  }
  
  /* Для свотчей на странице товара на очень маленьких экранах - оставляем крупнее */
  .section-product .swatch.katalog_card__color-swatch,
  .p-info .swatch.katalog_card__color-swatch {
    width: 40px;
    height: 40px;
    position: relative; /* Убеждаемся, что позиционирование правильное */
  }
  
  /* Изображение в свотче на очень маленьких экранах */
  .section-product .swatch.katalog_card__color-swatch .swatch-image,
  .p-info .swatch.katalog_card__color-swatch .swatch-image,
  .section-product .swatch-image,
  .p-info .swatch-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* На мобильных делаем z-index выше, чтобы изображение было видно */
  }
}

/* Хлебные крошки */
.section-breadcrumbs {
  color: var(--it-common-black, #000);
  font-size: 16px;
  font-weight: 500;
  height: 32px;
  line-height: 32px;
  padding: 0 14px;
  display: inline-block;
  overflow: hidden;
  margin-bottom: 25px;
  border-radius: 5px;
  background-color: #ffeb9e;
}

.section-breadcrumbs .dvdr i {
  padding: 0 8px 0 8px;
}

.section-breadcrumbs a {
  color: var(--it-common-black, #000);
  text-decoration: none;
}

.section-breadcrumbs a:hover {
  color: var(--bs-link-hover-color, var(--it-theme-1, #1E63E9));
  text-decoration: underline;
}

.section-breadcrumbs span {
  color: var(--it-common-black, #000);
}

.product-page__container .section-breadcrumbs {
  margin-top: 35px;
  margin-bottom: 2rem;
}

@media (max-width: 767px) {
  .section-breadcrumbs {
    font-size: 11px;
    height: 28px;
    line-height: 28px;
    padding: 0 17px;
    margin-bottom: 15px;
  }
}

/* ============================================ HEADER: ИКОНКИ И СЧЕТЧИКИ ============================================ */

.header-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.header-icon-wrapper {
  position: relative;
  display: inline-block;
  width: 26px;
  height: 26px;
}

.header-icon-wrapper i {
  position: absolute;
  top: 0;
  left: 0;
  font-size: 26px;
  transition: .25s ease;
}

.header-icon-wrapper i:nth-child(1) {
  opacity: 1;
  transform: scale(1);
}

.header-icon-wrapper i:nth-child(2) {
  opacity: 0;
  transform: scale(0.8);
}

.it-header-2-icon[data-active="true"] .header-icon-wrapper i:nth-child(1) {
  opacity: 0;
  transform: scale(0.8);
}

.it-header-2-icon[data-active="true"] .header-icon-wrapper i:nth-child(2) {
  opacity: 1;
  transform: scale(1);
}

/* Исключаем кнопку корзины из общих стилей иконок */
.it-header-2-icon[data-type="cart"] .header-cart-badge i {
  opacity: 1 !important;
  transform: scale(1) !important;
}

.header-counter {
  position: absolute;
  top: 5px;
  right: 4px;
  min-width: 16px;
  height: 15px;
  background: rgba(73, 158, 76, 0.777);
  color: white;
  font-size: 7px;
  border-radius: 40%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
  font-weight: 600;
  opacity: 0;
  transform: scale(0.5);
  transition: .25s ease;
  pointer-events: none;
  z-index: 10; /* Поверх всех элементов */
}

.it-header-2-right {
  gap: 10px;
}

.header-counter.visible {
  opacity: 1;
  transform: scale(1);
}

/* Кнопка корзины в header - стили как p-info-cart-badge на странице товара */
.header-cart-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #429b46;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
  position: relative;
  flex-shrink: 0;
  text-decoration: none;
  opacity: 0;
  transform: scale(0.8);
  visibility: hidden;
}

.header-cart-badge i {
  font-size: 18px;
  color: #fff !important;
  transition: transform 0.2s ease;
  display: block;
  position: relative;
  z-index: 2;
}

.header-cart-count {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 16px;
  height: 16px;
  background: #fff;
  color: #25922a;
  font-size: 10px;
  font-weight: 700;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

/* Анимация появления кружка */
.header-cart-badge.badge-visible {
  opacity: 1;
  transform: scale(1);
  visibility: visible;
  animation: headerBadgeAppear 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Анимация появления кружка */
@keyframes headerBadgeAppear {
  0% {
    opacity: 0;
    transform: scale(0.5) rotate(-180deg);
  }
  60% {
    transform: scale(1.1) rotate(10deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

.header-cart-badge.badge-visible:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(66, 155, 70, 0.4);
}

.header-cart-badge.badge-visible:hover i {
  transform: scale(1.1);
}

.header-cart-badge.badge-visible:hover .header-cart-count {
  transform: scale(1.1);
}

/* Зеленая кнопка когда есть товары */
.it-header-2-icon[data-type="cart"][data-active="true"] .header-cart-badge {
  background: #429b46 !important;
}

.it-header-2-icon[data-type="cart"][data-active="true"] .header-cart-badge i {
  color: #fff !important;
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
}

/* Серая кнопка когда корзина пустая */
.it-header-2-icon[data-type="cart"][data-active="false"] .header-cart-badge {
  background: #cccccc !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  opacity: 0.6;
  visibility: visible;
  transform: scale(1);
}

.it-header-2-icon[data-type="cart"][data-active="false"] .header-cart-badge i {
  color: #666666 !important;
}

.it-header-2-icon[data-type="cart"][data-active="false"] .header-cart-count {
  display: none !important;
}

/* ============================================ TOAST УВЕДОМЛЕНИЯ ============================================ */

.katalog-toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%) translateY(120%);
  background: #429b46f7;
  color: white;
  padding: 20px 26px;
  border-radius: 10px;
  font-size: 16px;
  text-transform: uppercase;
  line-height: 1.3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.25);
  cursor: pointer;
  white-space: nowrap;
  opacity: 0;
  transition: transform .35s ease, opacity .35s ease;
  z-index: 99999;
}

.katalog-toast--visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.katalog-toast__icon {
  font-size: 28px;
  line-height: 1;
}

.katalog-toast__icon-wrap {
  position: relative;
  width: 20px;
  height: 20px;
  display: inline-block;
}

.katalog-toast__icon-wrap i {
  position: absolute;
  top: 0;
  left: 0;
  font-size: 20px;
  transition: .25s ease;
}

.katalog-toast__icon-wrap i:nth-child(1) {
  opacity: 1;
  transform: scale(1);
}

.katalog-toast__icon-wrap i:nth-child(2) {
  opacity: 0;
  transform: scale(0.8);
}

.katalog-toast[data-active="true"] i:nth-child(1) {
  opacity: 0;
  transform: scale(0.8);
}

.katalog-toast[data-active="true"] i:nth-child(2) {
  opacity: 1;
  transform: scale(1);
}

.katalog-toast__text {
  font-weight: 500;
}

.katalog-toast__link {
  margin-left: 12px;
  font-weight: 500;
  text-decoration: underline;
  cursor: pointer;
  white-space: nowrap;
  color: #2563eb;
}

@media (max-width: 480px) {
  .katalog-toast {
    border-radius: 12px;
    text-align: left;
  }
  .katalog-toast__link {
    white-space: normal;
  }
}

/* ============================================ QUICK VIEW ============================================ */

.expander {
  flex: 0 0 100%;
  width: 100%;
}

.expander__inner {
  background: #fff;
  border: 1px solid #e6e8ec;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

.expander__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #e6e8ec;
}

.expander__close {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  padding: 6px;
}

.qv {
  display: flex;
  gap: 20px;
  padding: 16px;
  flex-wrap: wrap;
}

.qv__left {
  flex: 0 0 46%;
}

.qv__right {
  flex: 1 1 46%;
}

.qv-main {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #e6e8ec;
  background: #fff;
}

.qv-thumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.qv-thumbs img {
  width: 70px;
  height: 70px;
  border-radius: 8px;
  border: 1px solid #e6e8ec;
  object-fit: cover;
  cursor: pointer;
  background: #fff;
}

.qv-title {
  margin: 4px 0 6px;
  font-size: 18px;
  font-weight: 600;
}

.qv-price {
  font-weight: 700;
  font-size: 18px;
  margin: 8px 0;
}

.qv-stock {
  color: #333;
  margin-bottom: 12px;
}

.qv-swatch {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,.2);
  display: inline-block;
  background-size: cover;
  background-position: center;
  cursor: pointer;
}

.qv-swatch[aria-current="true"] {
  outline: 2px solid #000;
}

.qv-actions {
  margin-top: 12px;
}

.qv-btn {
  display: inline-block;
  padding: 8px 12px;
  border: 1px solid #e6e8ec;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  background: #fff;
}

.qv-noimg {
  width: 100%;
  aspect-ratio: 1/1;
  border: 1px dashed #e6e8ec;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  background: #fff;
}

@media (max-width: 900px) {
  .qv__left, 
  .qv__right { 
    flex: 1 1 100%; 
}
}

/* ============================================ ФИЛЬТРЫ КАТАЛОГА ============================================ */

.catalog-container {
    display: flex;
    gap: 20px;
}

.filter-sidebar {
    flex: 1;
    max-width: 250px;
}

.product-list {
    flex: 3;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #1a2b48;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

[data-format="block"] .filter-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(40px, 1fr));
    gap: 10px;
}

.color-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(40px, 1fr));
    gap: 10px;
}

.color-square {
    width: 34px;
    height: 34px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.2s ease-in-out;
    border: 1px solid transparent;
}

.color-square:hover {
    border: 1px solid #000;
}

.color-square.selected {
    border: 2px solid #000;
}

.color-square.selected::after {
    content: "✔";
    font-size: 16px;
    font-weight: bold;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.filter-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
}

/* ============================================ ФОРМЫ И КНОПКИ ============================================ */

.it-btn {
    background: #000;
    color: #fff;
    font-weight: 600;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s ease-in-out;
    display: block;
    width: 100%;
    text-align: center;
}

.it-btn:hover {
    background: #333;
}

.slide-submit {
    background: #f3f5f6;
    color: #929292;
    box-shadow: 0 0 0 1px #ccc;
    border-radius: 30px;
    text-align: right;
    padding: 1em 1em;
    font-size: .75em;
    position: relative;
    overflow: hidden;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    transition: .2s;
}

.slide-submit-text {
    display: inline-block;
}

.slide-submit-thumb {
    position: absolute;
    top: 0;
    left: 0px;
    width: 50px;
    height: 100%;
    background: linear-gradient(to top, #B2B6C1, #CBD0D4);
    box-shadow: inset 0 0 0 3px #f3f5f6, inset 0 0 0 4px rgba(0, 0, 0, 0.17);
    text-shadow: 0 -1px #828282;
    border-radius: 30px;
    box-sizing: border-box;
    text-align: center;
    font-size: 20px;
    line-height: 35px;
    font-family: serif;
    color: #fff;
}

.slide-submit-thumb:hover,
.draggable {
    background: #1BA5FD;
    cursor: -webkit-grab;
    cursor: grab;
}

.slide-submit-thumb:active {
    background: #1BA5FD;
    cursor: -webkit-grabbing;
    cursor: grabbing;
}

.slide-success {
    background: #1BA5FD;
    text-align: left;
    color: #fff;
    box-shadow: 0 0 0 1px #157ABB;
}

.slide-success .slide-submit-thumb {
    background: #1E76AF;
    box-shadow: inset 0 0 0 3px #1BA5FD, inset 0 0 0 4px rgba(0, 0, 0, 0.17);
    color: #1BA5FD;
    pointer-events: none;
}

.it-contact__form-box {
  position: relative;
}

/* ============================================ УВЕДОМЛЕНИЯ ФОРМЫ ============================================ */
.form-notification {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
}

.form-notification--show {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.form-notification__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.form-notification__content {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  max-width: 450px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  text-align: center;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 1;
}

.form-notification--show .form-notification__content {
  transform: scale(1) translateY(0);
}

.form-notification__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  border: none;
  background: #f3f4f6;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  padding: 0;
  z-index: 2;
}

.form-notification__close:hover {
  background: #e5e7eb;
  color: #111;
  transform: rotate(90deg);
}

.form-notification__icon {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.form-notification__icon svg {
  animation: scaleIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes scaleIn {
  from {
    transform: scale(0);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.form-notification__title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #111;
  margin: 0 0 0.75rem 0;
  line-height: 1.3;
}

.form-notification__text {
  font-size: 0.9375rem;
  color: #666;
  margin: 0;
  line-height: 1.6;
}

.form-notification--success .form-notification__title {
  color: #10b981;
}

.form-notification--error .form-notification__title {
  color: #ef4444;
}

/* Адаптивность */
@media (max-width: 575.98px) {
  .form-notification__content {
    padding: 1.5rem;
    max-width: 90%;
  }
  
  .form-notification__title {
    font-size: 1.25rem;
  }
  
  .form-notification__text {
    font-size: 0.875rem;
  }
  
  .form-notification__icon svg {
    width: 48px;
    height: 48px;
  }
}

/* Оверлей успіху над формою (зона картки). Ховання задається лише інлайном style="display:none" у верстці. */
.form-overlay {
  position: absolute;
  inset: 0;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(14px, 4vw, 28px);
  border-radius: inherit;
}
/* Легкий фільтр + сумісність з простим варіантом (товарная форма: один span у центрі) */
.form-overlay:not(.form-overlay--success-card) {
  background: rgba(15, 23, 42, 0.35);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: clamp(1.15rem, 2.8vw, 1.65rem);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.form-overlay:not(.form-overlay--success-card) span {
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

/* Картка успіху — /contact та інші екрани з модифікатором */
.form-overlay.form-overlay--success-card {
  background: rgba(248, 250, 252, 0.78);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.form-overlay--success-card .form-overlay__card {
  pointer-events: none;
  width: min(100%, 300px);
  padding: clamp(22px, 4vw, 30px) clamp(20px, 3vw, 26px);
  background: none;
  border-radius: 18px;
  border: none;
  box-shadow: none;
  text-align: center;
  animation: formOverlayPop 0.35s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.form-overlay--success-card .form-overlay__hint {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: rgb(82, 98, 125);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Заголовок успіху: на десктопі до ~1.6rem, на мобільному — нижче за clamp */
.form-overlay--success-card .form-overlay__msg.form-overlay__msg--subtle,
.form-overlay--success-card .form-overlay__title.form-overlay__msg.form-overlay__msg--subtle {
  font-size: clamp(1rem, 0.9rem + 1.85vw, 1.6rem);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.03em;
}

@keyframes formOverlayPop {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .form-overlay--success-card .form-overlay__card {
    animation: none;
  }
}

.form-overlay__icon-wrap {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(34, 197, 94, 0.16), rgba(34, 197, 94, 0.05));
}

.form-overlay__check {
  font-size: 1.95rem;
  color: rgb(22, 163, 74);
  line-height: 1;
}

.form-overlay__msg,
.form-overlay__title.form-overlay__msg {
  margin: 0 0 10px;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: rgb(15, 23, 42);
  line-height: 1.35;
}

.form-overlay__msg.form-overlay__msg--subtle,
.form-overlay__title.form-overlay__msg.form-overlay__msg--subtle {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0;
  margin: 0 0 12px;
  line-height: 1.45;
}

.form-overlay__hint {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: rgb(100, 116, 139);
  font-weight: 500;
}

.form-message {
  padding: 20px;
  text-align: center;
}

.contact-method-group {
  display: flex;
  border: 1px solid #FFF;
  border-radius: 10px;
  background: #fff;
  overflow: visible;
  align-items: center;
  position: relative;
}

.contact-method-group #contact-input {
  border-radius: 10px;
}

/* ============================================ ПОИСК ============================================ */

.search-wrap {
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999999;
  background-color: rgba(255, 255, 255, 0.98);
}

.search-wrap .search-inner {
  position: relative;
  width: 100%;
  height: 100%;
}

.search-wrap .search-cell {
  position: absolute;
  top: 50%;
  width: 100%;
  -webkit-transform: translateY(-50%);
      transform: translateY(-50%);
}

.search-wrap .search-field-holder {
  width: 50%;
  margin: auto;
  position: relative;
  -webkit-animation: slideInUp 0.3s;
      animation: slideInUp 0.3s;
}

.maket-info ul {
    margin-left: 15px!important;
}

@media only screen and (min-width: 768px) and (max-width: 991px) {
  .search-wrap .search-field-holder {
  width: 70%;
  }
}

@media (max-width: 575.98px) {
  .search-wrap .search-field-holder {
  width: 80%;
  }
}

.search-wrap .main-search-input {
  width: 100%;
  height: 70px;
  border: 0;
  padding: 0 50px;
  background: transparent;
  font-size: 25px;
  color: var(--header);
  border-bottom: 2px solid var(--header);
  text-align: center;
  letter-spacing: 2px;
}

@media (max-width: 575.98px) {
  .search-wrap .main-search-input {
  height: 50px;
  padding: 0 0;
  line-height: 50px;
  font-size: 18px;
  }
}

.search-wrap input.form-control,
.search-wrap input.form-control:focus {
  background-color: var(--header);
}

input.main-search-input::-webkit-input-placeholder {
  color: var(--header);
  opacity: 1;
  font-size: 25px;
}

input.main-search-input:-ms-input-placeholder {
  color: var(--header);
  opacity: 1;
  font-size: 25px;
}

input.main-search-input::-ms-input-placeholder {
  color: var(--header);
  opacity: 1;
  font-size: 25px;
}

input.main-search-input::placeholder {
  color: var(--header);
  opacity: 1;
  font-size: 25px;
}

@media (max-width: 575.98px) {
  input.main-search-input::-webkit-input-placeholder {
  font-size: 18px;
  }
  input.main-search-input:-ms-input-placeholder {
  font-size: 18px;
  }
  input.main-search-input::-ms-input-placeholder {
  font-size: 18px;
  }
  input.main-search-input::placeholder {
  font-size: 18px;
  }
}

.search-close {
  position: absolute;
  top: 50px;
  right: 50px;
  font-size: 30px;
  color: var(--theme);
  cursor: pointer;
}

#search-results-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: 20px;
}

.search-result {
  width: 100%;
  max-width: 600px;
  margin: auto;
  margin-bottom: 15px;
}

.search-result-section {
  color: var(--it-common-black);
  font-size: 16px;
  font-weight: 500;
  height: 32px;
  line-height: 32px;
  padding: 0 14px;
  display: inline-block;
  border-radius: 5px;
  background-color: var(--it-grey-1);
}

.search-result-text {
  font-size: 18px;
  color: var(--it-common-black);
  text-decoration: underline;
  margin-top: 5px;
  margin-left: 3px;
}

.search-result-text:hover {
  color: var(--it-theme-1);
  text-decoration: underline;
}

.search-result-icon {
  height: 30px;
  margin-left: 10px;
}

/* ============================================ МЕНЮ ============================================ */

.menu-item-image {
  width: 28px;
  height: 28px;
  margin-right: 10px;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.menu-item-link:hover .menu-item-image {
  filter: none;
}

.menu-item-text div {
  line-height: 1.0;
}

.menu-item {
  display: flex;
  align-items: center;
  padding: 0 0 5px 0;
}

.menu-item-link {
  display: block;
  text-decoration: none;
}

.menu-item.active span,
.it-category-title.active a {
  color: var(--it-theme-1);
}

.menu-item-link:hover {
  color: var(--it-theme-1);
}

.it-header-2-logo img {
  height: 40px!important;
}

.footer-logo img {
  height: 60px!important;
  padding-bottom: 5px;
}

h4.it-category-title:hover {
  color: var(--it-theme-1);
}

.it-menu-mobile ul li img {
  width: auto!important;
}

@media (min-width: 768px) {
  .pr-md-35 {
    padding-right: 35px;
  }
}

/* ============================================ ПРОЧИЕ КОМПОНЕНТЫ ============================================ */

.review-google-in-hero {
  padding: 18px 18px 0 18px;
  background-color: var(--it-common-white);
}

.review-google-in-hero img {
 height: 54px;
 margin: 8px 0 0px 0 !important;
}

.review-google-in-hero-url {
  background-color: var(--it-theme-1);
  border-radius: 0 0 5px 5px;
}

.review-google-in-hero-url span {
  color: #fff !important;
  font-size: 17px !important;
  font-weight: 300;
  padding: 5px;
}

.readmore-text {
  color: #797979!important;
  word-break: break-word;
  -webkit-font-smoothing: antialiased;
  margin: 0;
}

.readmore-text span {
  color: var(--it-text-body);
  font-weight: 500;
  border-bottom: 1px solid;
}

.readmore-text span:hover {
  color: var(--it-theme-1);
}

.readmore-text:hover svg {
  animation: tfLeftToRight 0.4s forwards;
  transform: translateY(-1px);
  color: var(--it-theme-1);
}

.products-icons {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  transition: 0.3s ease;
  overflow: hidden;
  position: relative;
}

.products-icons:hover {
  transform: translateY(-3px);
}

.products-icons:hover .products-icons-title,
.products-icons:hover .products-icons-text span {
  color: var(--it-theme-1);
}

.products-icons:hover .products-icons-bottom {
  background-color: var(--it-theme-1);
}

.products-icons:hover svg {
  animation: tfLeftToRight 0.4s forwards;
  transform: translateY(-1px);
  color: #fff;
}

.products-icons svg {
  height: 14px;
  transition: transform 0.3s ease, color 0.3s ease;
}

.products-icons:hover .products-icons-title {
  color: #fff;
}

.products-icons-top {
  position: relative;
  padding: 20px 20px 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
}

.products-icons-top::after {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 100%);
  transform: skewX(-25deg);
  pointer-events: none;
  z-index: 2;
}

.products-icons:hover .products-icons-top::after {
  animation: shine 1s ease forwards;
}

@keyframes shine {
  100% {
    left: 125%;
  }
}

.products-icons-icon span {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 100%;
  height: auto;
  overflow: hidden;
  position: relative;
  margin: 0 auto 15px;
}

.products-icons-icon span img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.products-icons:hover .products-icons-icon span img {
  transform: scale(1.05);
}

.products-icons-bottom {
  background-color: #ffeb9e;
  padding: 20px 15px 15px;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  text-align: center;
  transition: background-color 0.3s ease;
}

.products-icons-title {
  font-size: 18px;
  font-weight: 700;
  color: #002244;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.3s ease;
}

.products-icons-text span {
  color: #4D5756;
  font-size: 14px;
  font-family: var(--ixwt-ff-heading);
  font-weight: 500;
  transition: 0.5s;
}

.products-icons-title-info {
  color: #4D5756;
  font-size: 15px;
  line-height: 24px;
  font-family: var(--ixwt-ff-heading);
  transition: 0.5s;
}

.products-icons-title-info:hover {
  color: var(--it-theme-1);
}

.testimonial-svg svg {
  position: absolute;
  left: 54px;
  top: 95px;
  height: 30px;
  z-index: 9;
  transform: scaleY(-1);
}

@media (max-width: 767.98px) {
  .testimonial-svg svg {
    top: 136px;
  }
}

@media only screen and (min-width: 1200px) and (max-width: 1399px) {
  .products-icons-title {
    font-size: 17px;
  }
}

@media only screen and (min-width: 992px) and (max-width: 1199px) {
  .products-icons-title {
    font-size: 15px;
  }
}

@media only screen and (min-width: 768px) and (max-width: 991px), (max-width: 767px) {
  .products-icons-title {
    font-size: 17px;
  }
}

.hover-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.hover-arrow i {
  display: inline-block;
  transition: transform 0.2s ease;
}

.products-icons:hover .hover-arrow i {
  animation: bounce-arrow 0.6s ease forwards;
}

@keyframes bounce-arrow {
  0%   { transform: translateX(0); }
  30%  { transform: translateX(8px); }
  50%  { transform: translateX(-6px); }
  70%  { transform: translateX(4px); }
  100% { transform: translateX(0); }
}

/* ============================================ ГАЛЕРЕЯ ============================================ */

.grid-gallery {
  display: grid;
  grid-template-columns: repeat(var(--cols), 1fr);
  gap: 4px;
}

.gallery_image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  filter: grayscale(100%) brightness(75%);
  transition: filter 0.5s ease-in-out;
  transform: translateZ(0);
  border-radius: 4px;
  transition: transform 0.2s ease;
  cursor: pointer;
}

.gallery_image:hover {
  filter: grayscale(0%) brightness(100%);
  transition: filter 0s;
}

.gallery_image.big {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery_image.tall {
  grid-row: span 2;
}

/* Блокировка прокрутки при открытом модальном окне */
body.modal-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

.gallery-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.gallery-modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

.gallery-modal-content img {
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  cursor: pointer;
}

.gallery-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #0000000f;
  border: none;
  border-radius: 50%;
  padding: 8px;
  color: white;
  font-size: 24px;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.gallery-modal-close:hover {
  color: rgba(0, 0, 0, 0.9);
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: white;
  font-size: 32px;
  cursor: pointer;
  z-index: 2;
  padding: 10px;
}

.gallery-arrow-left {
  left: -50px;
}

.gallery-arrow-right {
  right: -50px;
}

@media (max-width: 600px) {
  .gallery-arrow-left {
    left: 10px;
  }
  .gallery-arrow-right {
    right: 10px;
  }
}

@media (max-width: 1024px) {
  .grid-gallery {
    --cols: 4;
  }
}

@media (max-width: 767.98px) {
  .grid-gallery {
    --cols: 3;
  }
}

@media (max-width: 480px) {
  .grid-gallery {
    --cols: 2;
  }
}

/* ============================================ ВИДЕО ============================================ */

.video-wrapper {
  position: relative;
}

.video-poster {
  display: block;
  width: 100%;
  height: auto;
}

.video-play-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pulse-ring {
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  animation: pulse-ring 2s infinite;
  z-index: 1;
}

.video-sound-toggle,
.video-close-btn {
  position: absolute;
  top: 12px;
  z-index: 5;
  background-color: rgba(0, 0, 0, 0.3);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.video-sound-toggle {
  left: 12px;
}

.video-close-btn {
  right: 12px;
}

.video-sound-hint {
  position: absolute;
  top: 11px;
  left: 10px;
  background-color: rgba(0, 0, 0, 0.3);
  color: #fff;
  font-size: 14px;
  padding: 10px 14px 10px 47px;
  border-radius: 50px;
  z-index: 5;
  opacity: 0;
  transform: translateY(-5px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  white-space: nowrap;
}

.video-sound-hint.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.video-sound-hint.d-none {
  display: none;
}

.video-sound-toggle:hover,
.video-close-btn:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.video-play-btn {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 1);
  color: #fff;
  font-size: 24px;
  border: none;
  z-index: 2;
  cursor: pointer;
  box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.6);
  animation: pulse-btn 2s infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.video-play-btn:hover {
  transform: scale(1.1);
}

.video-play-btn i {
  font-size: 20px;
  margin-left: 4px;
}

.video-replay-btn {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid #fff;
  background-color: transparent;
  color: #fff;
  font-size: 24px;
  font-weight: 500;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 3;
  transition: transform 0.3s ease;
}

.video-replay-btn.show {
  display: flex;
  animation: pulse-replay 2s infinite;
}

.video-replay-btn:hover {
  transform: translate(-50%, -50%) scale(1.1);
}

@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.7; }
  70% { transform: scale(1.8); opacity: 0; }
  100% { transform: scale(1); opacity: 0; }
}

@keyframes pulse-btn {
  0% { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.6); }
  70% { box-shadow: 0 0 0 15px rgba(13, 110, 253, 0); }
  100% { box-shadow: 0 0 0 0 rgba(13, 110, 253, 0); }
}

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

/* ============================================ ФОРМЫ ============================================ */

.section-form__wrap {
  padding: 85px 75px;
  padding-bottom: 70px;
  background-color: #F2F2F2;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 18px 48px -12px rgba(15, 23, 42, 0.11),
    0 4px 16px -4px rgba(15, 23, 42, 0.06);
  border-radius: 30px;
}

@media (max-width: 767px) {
  .section-form__wrap { 
    padding: 40px 20px; 
  } 
}

.section-form__shape-1 {
  position: absolute;
  bottom: 0;
  right: 0;
  left: auto;
  z-index: -1;
}

.section-form__title {
  font-size: 26px;
  font-family: var(--it-ff-poppins);
  text-transform: uppercase;
}

@media (max-width: 1399.98px) { 
  .section-form__title { 
    font-size: 24px; 
  } 
}

@media (max-width: 1199.98px) {
  .section-form__title { 
    font-size: 23px; 
  } 
}

@media (max-width: 991.98px) {
  .section-form__title { 
    font-size: 22px; 
  } 
}

@media (max-width: 767.98px) { 
  .section-form__title { 
    font-size: 20px; 
  } 
}

/* ============================================ FAQ ============================================ */

.section-faq .faq-title {
    font-size: 45px;
    font-weight: 700;
    margin-bottom: 0;
  }

  @media (max-width: 1599px) {
  .section-faq .faq-title { 
    font-size: 42px; 
  }
}

  @media (max-width: 1399px) {
  .section-faq .faq-title { 
    font-size: 38px; 
  }
}

  @media (max-width: 1199px) {
  .section-faq .faq-title { 
    font-size: 33px; 
  }
  .section-faq .faq-title br { 
    display: none; 
  }
}

  @media (max-width: 767px) {
  .section-faq .faq-title { 
    font-size: 27px; 
  }
  .section-faq .faq-title br { 
    display: none; 
  }
  }

.section-faq .faq-accordion .faq-item {
    margin-bottom: 20px;
    border: 1px solid var(--text-body, #ccc);
    border-radius: 5px;
  }

.section-faq .faq-item h4 {
  margin: 0;
}
   
.section-faq .faq-question {
    font-size: 20px;
    font-weight: 600;
    padding: 21px 25px;
    font-family: var(--it-ff-heading, inherit);
    color: var(--it-common-black, #000);
    position: relative;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
  }

  @media (max-width: 1199px) {
  .section-faq .faq-question { 
    font-size: 17px; 
  }
}

  @media (max-width: 991px) {
  .section-faq .faq-question { 
    font-size: 16px; 
  }
}

  @media (max-width: 767px) {
  .section-faq .faq-question {
      font-size: 15px;
      padding-right: 60px;
    }
  }

.section-faq .faq-question::after {
    position: absolute;
    content: "\f068";
    font-family: "Font Awesome 5 Pro";
    top: 50%;
    right: 30px;
    font-weight: 700;
    font-size: 16px;
    opacity: 1;
    transform: translateY(-50%);
    color: var(--it-common-black, #000);
  }

.section-faq .faq-question.collapsed::after {
    content: "\f067";
  }

.section-faq .faq-question:not(.collapsed) {
    background-color: var(--text-body, #222);
    color: var(--it-common-white, #fff);
  }

.section-faq .faq-question:not(.collapsed)::after {
    color: var(--it-common-white, #fff);
  }

.section-faq .faq-answer {
    padding: 30px 28px;
    font-size: 17px;
    font-weight: 400;
    line-height: 32px;
  }

  @media (max-width: 1399px) {
  .section-faq .faq-answer { 
    font-size: 15px; 
    padding: 30px 21px; 
  }
}

  @media (max-width: 1199px) {
  .section-faq .faq-answer { 
    font-size: 14px; 
    flex-wrap: wrap; 
  }
}

  @media (max-width: 991px) {
  .section-faq .faq-answer { 
    font-size: 14px; 
  }
}

  @media (max-width: 767px) {
  .section-faq .faq-answer { 
    font-size: 14px; 
  }
}

.faq-image-grid {
  display: grid;
  grid-template-columns: repeat(var(--cols, 3), 1fr);
  gap: 12px;
  }

.faq-img {
  width: 100%;
  aspect-ratio: 1 / 1.03;
  overflow: hidden;
  border-radius: 8px;
}

.faq-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.faq-img.big {
  grid-column: span 3;
  grid-row: span 3;
  aspect-ratio: auto;
}

.faq-img.wide {
  grid-column: span 2;
  grid-row: span 1;
  aspect-ratio: 2 / 1;
}

.faq-img.foolwide {
  grid-column: span 3;
  grid-row: span 1;
  aspect-ratio: 3 / 1;
}

.faq-img.midli {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: 1 / 1.03;
}

/* ============================================ ПОРТФОЛИО ============================================ */

      .print-portfolio_grid {
        display: grid;
        grid-auto-flow: dense;
        grid-gap: 5px;
  overflow: hidden;
        visibility: hidden;
      }
      
      @media screen and (max-width: 991px) {
        .print-portfolio_grid {
          grid-template-columns: repeat(auto-fill, minmax(144px, 1fr));
          grid-template-rows: repeat(auto-fill, minmax(144px, 1fr));
        }
      }
      
      @media screen and (max-width: 767px) {
        .print-portfolio_grid {
          grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
          grid-template-rows: repeat(auto-fill, minmax(120px, 1fr));
        }
      }
      
      @media screen and (max-width: 478px) {
        .print-portfolio_grid {
          grid-template-columns: repeat(auto-fill, minmax(68px, 1fr));
          grid-template-rows: repeat(auto-fill, minmax(68px, 1fr));
        }
      }
      
      .small-grid {
        display: grid;
        grid-auto-flow: dense;
        grid-gap: 5px;
  overflow: hidden;
      }
      
      @media screen and (max-width: 991px) {
        .small-grid {
          grid-template-columns: repeat(auto-fill, minmax(144px, 1fr));
          grid-template-rows: repeat(auto-fill, minmax(144px, 1fr));
        }
      }
      
      @media screen and (max-width: 767px) {
        .small-grid {
          grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
          grid-template-rows: repeat(auto-fill, minmax(120px, 1fr));
        }
      }
      
      @media screen and (max-width: 478px) {
        .small-grid {
          grid-template-columns: repeat(auto-fill, minmax(68px, 1fr));
          grid-template-rows: repeat(auto-fill, minmax(68px, 1fr));
        }
      }
      
      .print-portfolio_image {
  width: 100%!important;
  height: 100%!important;
  object-fit: cover;
  object-position: center;
        filter: grayscale(100%) brightness(75%);
  transition: filter 0.5s ease-in-out;
  transform: translateZ(0);
      }
      
      .print-portfolio_image:hover {
        filter: grayscale(0%) brightness(100%);
  transition: filter 0s;
      }
      
      .print-portfolio_image:nth-child(7n) {
        grid-column: span 2;
        grid-row: span 2;
      }
      
      .print-portfolio_modal {
  display: none;
  position: fixed;
  z-index: 9999;
        left: 0;
        top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0,0,0);
  background-color: rgba(0,0,0,0.9);
      }
      
      .print-portfolio_modal-content {
        margin: auto;
        display: flex;
  justify-content: center;
  align-items: center;
        height: 100%;
      }
      
      .print-portfolio_modal-content img {
  max-height: max-content;
  max-width: 80%;
      }
      
      @media screen and (min-width: 1440px) {
        .print-portfolio_modal-content img {
          max-height: max-content;
          min-width: 50%;
        }
      }
      
/* ============================================ СОСЕДНИЕ ТОВАРЫ ============================================ */

.section-related-products {
  margin-top: 60px;
}

.related-products-grid {
    display: flex;
  flex-wrap: wrap;
}

/* Адаптивность для мобильных - товары в одну колонку */
@media (max-width: 575.98px) {
  .section-related-products .katalog_col {
    flex: 0 0 100%;
    max-width: 100%;
}

  .section-related-products h2 {
    font-size: 22px !important;
    margin-bottom: 1.5rem !important;
  }
}

/* Планшеты - 2 колонки */
@media (min-width: 576px) and (max-width: 991.98px) {
  .section-related-products .katalog_col {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

/* Десктоп - используем стандартные классы colClass из параметра (определяются в PHP) */

/* ============================================ РУЧНОЙ КАТАЛОГ (section-katalog.php) ============================================ */
/* Специфичные стили для ручного каталога (не XML-версии) - заголовок и описание вертикально */

.section-katalog .katalog_card__bottom-left {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

/* ============================================ СОРТИРОВКА КАТАЛОГА ============================================ */

/* Контейнер для фильтров и сортировки */
.katalog-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end; /* Вертикальное выравнивание по низу */
  gap: 1.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

/* Сортировка каталога - dropdown */
.katalog-sort-wrapper {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  flex-shrink: 0;
}

.katalog-sort-dropdown {
  position: relative;
  min-width: 200px;
}

.katalog-sort-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  padding: 0.625rem 1rem;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #111;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.katalog-sort-toggle:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}

.katalog-sort-toggle:focus {
  outline: 2px solid #111;
  outline-offset: 2px;
}

.katalog-sort-toggle[aria-expanded="true"] {
  border-color: #111;
  background: #111;
  color: #fff;
}

.katalog-sort-toggle[aria-expanded="true"] .katalog-sort-toggle-icon {
  transform: rotate(180deg);
}

.katalog-sort-toggle-text {
  flex: 1;
}

.katalog-sort-toggle-icon {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
  stroke: currentColor;
}

.katalog-sort-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 100%;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  z-index: 100;
  overflow: hidden;
}

.katalog-sort-dropdown.active .katalog-sort-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.katalog-sort-option {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0.75rem 1rem;
  background: transparent;
  border: none;
  font-size: 0.875rem;
  font-weight: 400;
  color: #111;
  cursor: pointer;
  transition: background-color 0.15s ease;
  text-align: left;
}

.katalog-sort-option:hover,
.katalog-sort-option.focused {
  background: #f9fafb;
}

.katalog-sort-option.active {
  background: #f3f4f6;
  font-weight: 500;
}

.katalog-sort-option:focus {
  outline: 2px solid #111;
  outline-offset: -2px;
}

@media (max-width: 991.98px) {
  .katalog-top-bar {
    flex-direction: column;
    align-items: flex-start; /* На мобильных выравнивание по левому краю */
    gap: 1rem;
  }
  
  .katalog-sort-wrapper {
    justify-content: flex-start;
    width: 100%;
    order: 2; /* После фильтров, перед карточками */
  }
  
  .katalog_card__filters {
    order: 1;
    width: 100%;
  }
  
  .katalog-sort-dropdown {
    min-width: 180px;
    width: 100%;
  }
  
  .katalog-sort-toggle {
    font-size: 0.8125rem;
    padding: 0.5625rem 0.875rem;
  }
  
  .katalog-sort-option {
    font-size: 0.8125rem;
    padding: 0.625rem 0.875rem;
  }
}

/* ============================================
   СОВРЕМЕННЫЕ ТАБЫ/ПЕРЕКЛЮЧАТЕЛИ ДЛЯ ФОРМЫ
   Уникальные классы mf-* (modern-form)
   ============================================ */

/* Группа табов */
.mf-tabs-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

/* Скрытый radio input */
.mf-tab-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

/* Стилизованная метка-таб */
.mf-tab-label {
    flex: 1;
    min-width: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 24px;
    background: #ffffff;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #374151;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.mf-tab-label::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(17, 62, 191, 0.08), transparent);
    transition: left 0.4s ease;
}

.mf-tab-label:hover {
    border-color: #113ebf;
    background: #f8faff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(17, 62, 191, 0.12);
}

.mf-tab-label:hover::before {
    left: 100%;
}

/* Выбранный таб */
.mf-tab-input:checked + .mf-tab-label {
    background: linear-gradient(135deg, #113ebf 0%, #2366ff 100%);
    border-color: #113ebf;
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 6px 20px rgba(17, 62, 191, 0.3);
    transform: translateY(-2px);
}

.mf-tab-input:checked + .mf-tab-label::before {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
}

.mf-tab-input:checked + .mf-tab-label:hover {
    background: linear-gradient(135deg, #2366ff 0%, #113ebf 100%);
    box-shadow: 0 8px 24px rgba(17, 62, 191, 0.35);
    transform: translateY(-3px);
}

.mf-tab-text {
    position: relative;
    z-index: 1;
    letter-spacing: -0.01em;
}

/* Контент таба */
.mf-tab-content {
    margin-top: 20px;
    animation: fadeIn 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Информационный блок */
.mf-info-box {
    padding: 16px 20px;
    background: #f8fafc;
    border-radius: 10px;
    border-left: 3px solid #113ebf;
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Группа полей */
.mf-field-group {
    margin-bottom: 18px;
}

.mf-field-group:last-child {
    margin-bottom: 0;
}

/* Ряд полей (для контактов) */
.mf-fields-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

@media (max-width: 767px) {
    .mf-fields-row {
        grid-template-columns: 1fr;
    }
    
    .mf-tabs-group {
        flex-direction: column;
    }
    
    .mf-tab-label {
        min-width: 100%;
    }
}

/* Поля ввода */
.mf-input,
.mf-textarea {
    width: 100%;
    padding: 15px 18px;
    font-size: 15px;
    font-weight: 400;
    color: #1a1a1a;
    background: #ffffff;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.mf-input::placeholder,
.mf-textarea::placeholder {
    color: #9ca3af;
    opacity: 1;
}

.mf-input:hover:not(:focus),
.mf-textarea:hover:not(:focus) {
    border-color: #d1d5db;
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.mf-input:focus,
.mf-textarea:focus {
    border-color: #113ebf;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(17, 62, 191, 0.1), 0 2px 6px rgba(17, 62, 191, 0.08);
    transform: translateY(-1px);
}

.mf-textarea {
    min-height: 130px;
    resize: vertical;
    padding-top: 15px;
}

/* ─── Контактна форма /contact: картка, поля, чіпи ─── */
.it-contact__form-box.form-area.form-area--contacts:not(.form-area--catalog-split) {
    position: relative;
    border-radius: 22px;
    padding: clamp(22px, 4.5vw, 40px);
    background: linear-gradient(
        165deg,
        rgba(255, 255, 255, 0.99) 0%,
        rgba(245, 248, 255, 0.92) 45%,
        rgba(237, 242, 252, 0.88) 100%
    );
    border: 1px solid rgba(17, 62, 191, 0.12);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 1) inset,
        0 14px 44px -20px rgba(15, 23, 42, 0.14),
        0 6px 20px rgba(17, 62, 191, 0.07);
}

@media (max-width: 575.98px) {
    .it-contact__form-box.form-area.form-area--contacts:not(.form-area--catalog-split) {
        border-radius: 18px;
        padding: clamp(18px, 5vw, 28px);
    }
}

/* Поля лише для сторінки контактів (перебивають загальний .form-area) */
.it-contact__form-box.form-area--contacts .it-contact-input-box input,
.it-contact__form-box.form-area--contacts .it-contact-textarea-box textarea {
    border-radius: 12px !important;
    border: 1px solid #e8ecf1 !important;
    background: #ffffff !important;
    padding: 15px 18px !important;
    font-size: 15px !important;
    min-height: 52px !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease !important;
}

.it-contact__form-box.form-area--contacts .contact-field-messenger {
    font-size: 15px !important;
    letter-spacing: 0.01em !important;
}

.it-contact__form-box.form-area--contacts .it-contact-textarea-box textarea {
    min-height: 148px !important;
    resize: vertical;
    max-height: min(360px, 50vh);
    line-height: 1.55 !important;
    color: #1e293b !important;
}

.it-contact__form-box.form-area--contacts .it-contact-input-box input::placeholder,
.it-contact__form-box.form-area--contacts .it-contact-textarea-box textarea::placeholder {
    color: #64748b !important;
    opacity: 1 !important;
}

.it-contact__form-box.form-area--contacts .it-contact-input-box input:hover:not(:focus),
.it-contact__form-box.form-area--contacts .it-contact-textarea-box textarea:hover:not(:focus) {
    border-color: #cbd5e1 !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05) !important;
}

.it-contact__form-box.form-area--contacts .it-contact-input-box input:focus,
.it-contact__form-box.form-area--contacts .it-contact-textarea-box textarea:focus {
    outline: none !important;
    border-color: #113ebf !important;
    box-shadow: 0 0 0 4px rgba(17, 62, 191, 0.12), 0 4px 16px rgba(17, 62, 191, 0.08) !important;
    transform: translateY(-1px);
}

.form-area.form-area--contacts .contact-prefs {
    margin: 0;
    padding: 0;
}

.form-area.form-area--contacts .contact-prefs__head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    text-align: left;
}

.form-area.form-area--contacts .contact-prefs__accent {
    flex-shrink: 0;
    width: 4px;
    height: 22px;
    border-radius: 4px;
    background: linear-gradient(180deg, #113ebf, #6366f1);
    box-shadow: 0 2px 8px rgba(17, 62, 191, 0.35);
}

.form-area.form-area--contacts .contact-prefs__legend {
    flex: 1;
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
    margin: 0;
    letter-spacing: 0.01em;
    line-height: 1.35;
}

.form-area.form-area--contacts .contact-prefs__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-items: stretch;
}

@media (min-width: 992px) {
    .form-area.form-area--contacts .contact-prefs__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .form-area.form-area--contacts .contact-prefs__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 560px;
        margin-inline: auto;
    }
}

.form-area.form-area--contacts .contact-pref-chip {
    position: relative;
    display: flex;
    margin: 0;
    min-height: 0;
    min-width: 0;
    height: 100%;
    cursor: pointer;
}

.form-area.form-area--contacts .contact-pref-chip input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.form-area.form-area--contacts .contact-pref-chip__body {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 104px;
    height: 100%;
    padding: 12px 10px 14px;
    box-sizing: border-box;
    border-radius: 14px;
    border: 1.5px solid #e8ecf1;
    background: rgba(255, 255, 255, 0.95);
    color: #0f172a;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease,
        transform 0.18s ease;
}

@media (min-width: 576px) {
    .form-area.form-area--contacts .contact-pref-chip__body {
        font-size: 13px;
        padding: 14px 12px;
        gap: 10px;
        min-height: 108px;
    }
}

@media (min-width: 992px) {
    .form-area.form-area--contacts .contact-pref-chip__body {
        font-size: 14px;
    }
}

.form-area.form-area--contacts .contact-pref-chip__ico {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 19px;
    transition: transform 0.2s ease;
}

.form-area.form-area--contacts .contact-pref-chip--phone .contact-pref-chip__ico {
    background: rgba(234, 179, 8, 0.14);
    color: #b45309;
}

.form-area.form-area--contacts .contact-pref-chip--telegram .contact-pref-chip__ico {
    background: rgba(37, 150, 190, 0.14);
    color: #0284c7;
}

.form-area.form-area--contacts .contact-pref-chip--viber .contact-pref-chip__ico {
    background: rgba(115, 96, 223, 0.14);
    color: #6d28d9;
}

.form-area.form-area--contacts .contact-pref-chip--whatsapp .contact-pref-chip__ico {
    background: rgba(34, 197, 94, 0.14);
    color: #15803d;
}

.form-area.form-area--contacts .contact-pref-chip__txt {
    flex: 0 1 auto;
    width: 100%;
    min-width: 0;
    text-align: center;
    white-space: normal;
    overflow: visible;
    word-wrap: break-word;
    hyphens: manual;
}

.form-area.form-area--contacts .contact-pref-chip:hover .contact-pref-chip__body {
    border-color: #cbd5e1;
    box-shadow: 0 6px 20px -8px rgba(15, 23, 42, 0.12);
    transform: translateY(-1px);
}

.form-area.form-area--contacts .contact-pref-chip:hover .contact-pref-chip__ico {
    transform: scale(1.05);
}

.form-area.form-area--contacts .contact-pref-chip input:focus-visible + .contact-pref-chip__body {
    outline: 2px solid #113ebf;
    outline-offset: 3px;
}

.form-area.form-area--contacts .contact-pref-chip input:checked + .contact-pref-chip__body {
    border-color: #113ebf;
    background: linear-gradient(160deg, rgba(17, 62, 191, 0.09) 0%, rgba(99, 102, 241, 0.05) 100%);
    box-shadow:
        0 0 0 1px rgba(17, 62, 191, 0.22),
        0 10px 26px -12px rgba(17, 62, 191, 0.28);
}

.form-area.form-area--contacts .contact-pref-chip input:checked + .contact-pref-chip__body::after {
    content: "";
    position: absolute;
    top: 8px;
    right: 8px;
    width: 18px;
    height: 18px;
    margin-top: 0;
    border-radius: 50%;
    background: #113ebf url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3.5 8.5l3 3 6-7' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px 11px no-repeat;
    box-shadow: 0 1px 4px rgba(17, 62, 191, 0.35);
}

@media (prefers-reduced-motion: reduce) {
    .it-contact__form-box.form-area--contacts .it-contact-input-box input,
    .it-contact__form-box.form-area--contacts .it-contact-textarea-box textarea,
    .form-area.form-area--contacts .contact-pref-chip__body,
    .form-area.form-area--contacts .contact-pref-chip__ico {
        transition: none !important;
        transform: none !important;
    }
}

.form-area.form-area--contacts .contact-form-actions {
    width: 100%;
}

.form-area.form-area--contacts .contact-form-actions__btn {
    max-width: 100%;
}

@media (min-width: 768px) {
    .form-area.form-area--contacts .contact-form-actions__btn {
        width: auto;
        max-width: min(100%, 340px);
    }

    .form-area.form-area--contacts .contact-form-actions__btn .it-btn-modern {
        width: auto !important;
        min-width: 200px;
    }
}

.form-area.form-area--contacts .contact-form-actions__consent {
    min-width: 0;
    padding-inline-end: 6px;
}

@media (min-width: 768px) {
    .form-area.form-area--contacts .contact-form-actions__consent {
        padding-inline-end: 12px;
    }
}

.form-area.form-area--contacts .contact-form-consent {
    font-size: 12px;
    color: #64748b;
    line-height: 1.55;
    max-width: none;
}

.form-area.form-area--contacts .contact-form-consent__link {
    color: #113ebf;
    font-weight: 500;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color 0.15s ease;
}

.form-area.form-area--contacts .contact-form-consent__link:hover {
    color: #1d4ed8;
}

/* Кнопка відправки на сторінці контактів */
.it-contact__form-box.form-area--contacts .it-btn-modern {
    border-radius: 14px !important;
    padding: 16px 28px !important;
    font-size: 15px !important;
    letter-spacing: 0.02em;
    box-shadow: 0 8px 24px -6px rgba(17, 62, 191, 0.45) !important;
}

.it-contact__form-box.form-area--contacts .it-btn-modern:hover {
    box-shadow: 0 14px 32px -8px rgba(17, 62, 191, 0.55) !important;
}

/* Форма каталогу всередині .section-form__wrap — padding 0 навколо блоку форми */
.it-contact__form-box.form-area.form-area--contacts.form-area--catalog-split:not(.cart-checkout-form-area) {
    padding: 0;
}

.it-contact__form-box.form-area.form-area--contacts.form-area--catalog-split:not(.cart-checkout-form-area) .it-contact-input-box input,
.it-contact__form-box.form-area.form-area--contacts.form-area--catalog-split:not(.cart-checkout-form-area) .it-contact-textarea-box textarea {
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.75) !important;
}

.it-contact__form-box.form-area.form-area--contacts.form-area--catalog-split:not(.cart-checkout-form-area) .it-contact-input-box input:focus,
.it-contact__form-box.form-area.form-area--contacts.form-area--catalog-split:not(.cart-checkout-form-area) .it-contact-textarea-box textarea:focus {
    transform: translateY(-1px);
    box-shadow:
        0 0 0 4px rgba(17, 62, 191, 0.13),
        0 12px 28px -14px rgba(17, 62, 191, 0.25) !important;
}

.it-contact__form-box.form-area.form-area--contacts.form-area--catalog-split:not(.cart-checkout-form-area) .contact-pref-chip__body {
    border-color: rgba(17, 62, 191, 0.14);
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.99) 0%, rgba(241, 245, 251, 0.92) 100%);
}

.it-contact__form-box.form-area.form-area--contacts.form-area--catalog-split:not(.cart-checkout-form-area) .contact-pref-chip:hover .contact-pref-chip__body {
    border-color: rgba(17, 62, 191, 0.28);
    box-shadow:
        0 8px 22px -10px rgba(17, 62, 191, 0.2),
        0 4px 12px rgba(15, 23, 42, 0.06);
}

.it-contact__form-box.form-area.form-area--contacts.form-area--catalog-split:not(.cart-checkout-form-area) .contact-pref-chip input:checked + .contact-pref-chip__body {
    background: linear-gradient(160deg, rgba(17, 62, 191, 0.1) 0%, rgba(99, 102, 241, 0.06) 100%);
}

@media (prefers-reduced-motion: reduce) {
    .it-contact__form-box.form-area.form-area--contacts.form-area--catalog-split:not(.cart-checkout-form-area) .it-contact-input-box input:focus,
    .it-contact__form-box.form-area.form-area--contacts.form-area--catalog-split:not(.cart-checkout-form-area) .it-contact-textarea-box textarea:focus {
        transform: none;
    }
}

/* Каталог / товар: зліва форма (col-lg-7), справа зона завантаження на всю висоту колонки */
.form-area.form-area--catalog-split .catalog-form-split-row {
    align-items: stretch;
}

@media (min-width: 992px) {
    .form-area.form-area--catalog-split .catalog-form-fields {
        display: flex;
        flex-direction: column;
    }

    .form-area.form-area--catalog-split .catalog-form-upload-col {
        display: flex;
        flex-direction: column;
        align-self: stretch;
    }

    .form-area.form-area--catalog-split .catalog-form-upload-inner {
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
        min-height: 0;
        width: 100%;
        align-self: stretch;
    }
}

.form-area.form-area--catalog-split .catalog-form-upload-inner {
    padding: clamp(12px, 2vw, 18px);
    border-radius: 18px;
    border: 1px dashed rgba(17, 62, 191, 0.2);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(241, 245, 251, 0.65) 100%);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 10px 32px -20px rgba(15, 23, 42, 0.1);
}

.form-area.form-area--catalog-split .catalog-form-fields .catalog-form-details-textarea textarea {
    min-height: 7.5rem;
}

.form-area.form-area--catalog-split .file-uploader-container--catalog-split {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    width: 100%;
}

.form-area.form-area--catalog-split .file-uploader-container--catalog-split .file-uploader-area {
    flex: 1 1 auto;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 120px !important;
    margin-bottom: 8px !important;
    padding: clamp(12px, 2.8vw, 22px) 12px !important;
    border-width: 2px !important;
}

@media (min-width: 992px) {
    .form-area.form-area--catalog-split .file-uploader-container--catalog-split .file-uploader-area:not(.uploading) {
        flex: 1 1 auto;
        min-height: 10rem !important;
    }
}

.form-area.form-area--catalog-split .file-uploader-container--catalog-split .file-uploader-icon {
    font-size: 26px !important;
    margin-bottom: 8px !important;
}

.form-area.form-area--catalog-split .file-uploader-container--catalog-split .file-uploader-text {
    font-size: 13px !important;
    margin-bottom: 4px !important;
    font-weight: 600;
}

.form-area.form-area--catalog-split .file-uploader-container--catalog-split .file-uploader-hint {
    font-size: 11px !important;
}

.form-area.form-area--catalog-split .file-uploader-container--catalog-split .file-uploader-formats {
    font-size: 10.5px !important;
    line-height: 1.4;
    flex-shrink: 0;
}

.form-area.form-area--catalog-split .file-uploader-container--catalog-split .file-uploader-list {
    flex-shrink: 0;
}

.form-area.form-area--catalog-split .file-uploader-container--catalog-split .file-uploader-results {
    max-height: 132px;
    overflow-y: auto;
    flex-shrink: 0;
}

@media (max-width: 991.98px) {
    .form-area.form-area--catalog-split .file-uploader-container--catalog-split .file-uploader-area {
        min-height: 150px !important;
    }
}

/* Контактна форма: підказка перед відправкою, доки триває завантаження файлів */
.ajax-response.form-upload-wait-msg {
    display: block;
    margin-top: 0.5rem;
    color: #3d4f6f;
    font-size: 0.9375rem;
    line-height: 1.45;
}

/* Кнопка «Надіслати» під час черги/завантаження файлів (file-uploader.php) */
.it-btn-modern.contact-form__submit--upload-wait {
    cursor: wait !important;
    opacity: 0.98;
}

.form-area .it-btn-modern.contact-form__submit--upload-wait .submit-btn-upload-wait-side.arrow-circle {
    background: transparent !important;
}

.form-area .it-btn-modern.contact-form__submit--upload-wait:hover .submit-btn-upload-wait-side.arrow-circle {
    background: transparent !important;
}

.it-btn-modern.contact-form__submit--upload-wait .submit-btn-label-wait {
    letter-spacing: 0.02em;
}

.it-btn-modern .submit-btn-upload-wait-side {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    margin-left: 0.75rem !important;
}

.it-btn-modern .submit-btn-upload-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.22);
    border-top-color: rgba(255, 255, 255, 0.95);
    animation: submit-btn-upload-spin 0.72s linear infinite;
    box-sizing: border-box;
    transform-origin: center;
}

.it-btn-modern .submit-btn-upload-arrow-ico {
    position: relative;
    display: block;
    color: currentColor;
    animation: submit-btn-upload-nudge 1.05s ease-in-out infinite;
}

@keyframes submit-btn-upload-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes submit-btn-upload-nudge {
    0%,
    100% {
        transform: translateY(1px);
        opacity: 0.85;
    }
    50% {
        transform: translateY(-3px);
        opacity: 1;
    }
}

/* М'яка підказка: «теплий» червонуватий акцент (перекриває синій focus #113ebf з .form-area) */
.form-area .it-contact-input-box input.contact-soft-hint-input:not(:focus) {
    border-color: #c96156 !important;
    box-shadow: 0 0 0 3px rgba(184, 72, 62, 0.14) !important;
}
.cart-form-input-box input.contact-soft-hint-input:not(:focus) {
    border-color: #c96156 !important;
    box-shadow: 0 0 0 3px rgba(184, 72, 62, 0.12) !important;
}
.contact-soft-hint-input {
    border-color: #c96156 !important;
    box-shadow: 0 0 0 2px rgba(184, 72, 62, 0.28);
}
.contact-soft-hint-input:focus,
.contact-soft-hint-input:focus-visible,
.form-area .it-contact-input-box input.contact-soft-hint-input:focus,
.form-area .it-contact-input-box input.contact-soft-hint-input:focus-visible {
    border-color: #b84338 !important;
    box-shadow: 0 0 0 3px rgba(184, 67, 56, 0.22) !important;
    outline: none !important;
}
.cart-form-input-box input.contact-soft-hint-input:focus,
.cart-form-input-box input.contact-soft-hint-input:focus-visible {
    border-color: #b84338 !important;
    box-shadow: 0 0 0 3px rgba(184, 67, 56, 0.2) !important;
}

/* Підказка в placeholder: жирний текст кольору обводки — до першого фокусу в полі форми */
.form-area .it-contact-input-box input.contact-soft-hint-ph--nudge::placeholder,
.cart-form-input-box input.contact-soft-hint-ph--nudge::placeholder {
    color: #b84338 !important;
    font-weight: 700;
    opacity: 1;
}

/* Корзина: форма замовлення */
.cart-order-form-shell--hidden {
    display: none !important;
}

/* Кошик — картка оформлення (макет: біла плитка, синя смуга зверху, тінь) */
.cart-order-form-shell .cart-form-wrapper.cart-checkout-card {
    background: #fff;
    border-radius: 22px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-top: 4px solid #113ebf;
    box-shadow:
        0 22px 55px -24px rgba(15, 23, 42, 0.16),
        0 10px 28px -16px rgba(17, 62, 191, 0.1);
    padding: clamp(1.1rem, 2.8vw, 1.75rem);
    overflow: hidden;
}

.cart-checkout-card > .cart-checkout-form-area.it-contact__form-box {
    padding: 0;
    margin: 0;
    border: none;
    box-shadow: none;
    background: transparent;
}

/* Зона drag-and-drop помітніша */
.cart-checkout-card .form-area--catalog-split .file-uploader-container--catalog-split .file-uploader-area {
    border: 2px dashed rgba(17, 62, 191, 0.38) !important;
    border-radius: 18px !important;
    background: linear-gradient(165deg, rgba(17, 62, 191, 0.04), rgba(99, 102, 241, 0.02)) !important;
}

.cart-checkout-form-area .cart-checkout-form-actions {
    align-items: flex-start;
}

.cart-checkout-card .cart-checkout-submit-row .it-btn-modern {
    text-transform: uppercase;
    letter-spacing: 0.06em !important;
    font-weight: 700 !important;
}

.cart-checkout-card .cart-continue-under-form {
    text-align: center;
}

.cart-checkout-card .cart-form-continue-link--checkout {
    font-size: 0.9375rem;
}

.cart-form-continue-link--checkout {
    margin-top: 2px;
}

@media (max-width: 767.98px) {
    .cart-checkout-form-area .cart-checkout-form-actions {
        flex-direction: column-reverse !important;
        align-items: stretch !important;
    }

    .cart-order-form-shell .cart-form-wrapper.cart-checkout-card {
        padding: 1.1rem;
    }
}
