/* =========================================
 *  Cart icon + badge
 * ========================================= */

/* Обёртка иконки */
#hitech-cart-icon,
.hitech-cart-icon {
    display: inline-block;
}

/* Ссылка вокруг иконки — контекст для абсолютного позиционирования бейджа */
#hitech-cart-icon .hitech-cart-icon__link,
.hitech-cart-icon__link {
    position: relative;
    display: inline-block;
    text-decoration: none;
}

/* Сама иконка корзины */
#hitech-cart-icon .hitech-cart-icon__icon,
.hitech-cart-icon__icon {
    display: block;
    font-size: 1.4rem;
    line-height: 1;
}

/* Бейдж поверх иконки */
#hitech-cart-icon .hitech-cart-icon__count,
.hitech-cart-icon__count,
#hitech-cart-icon .count {
    position: absolute;
    top: -0.4em;
    right: -0.4em;

    min-width: 0.9rem;
    min-height: 0.9rem;

    border-radius: 999px;

    font-size: 0.65rem;
    line-height: 0.9rem;
    font-weight: 600;
    text-align: center;

    background: #d6336c;
    color: #ffffff;
}

/* Пустой бейджик не показываем */
#hitech-cart-icon .hitech-cart-icon__count:empty,
.hitech-cart-icon__count:empty,
#hitech-cart-icon .count:empty {
    display: none;
}

/* Можно навести курсор на иконку */
#hitech-cart-icon {
    cursor: pointer;
}


/* =========================================
 *  Slide-out cart panel (правый сайдбар)
 * ========================================= */

#hitech-cart-panel,
.hitech-cart-panel {
    position: fixed;
    top: 80px;               /* при необходимости дизайнер подправит */
    right: 0;

    width: 340px;
    max-width: 90vw;

    background: #ffffff;
    box-shadow: 0 0 18px rgba(0, 0, 0, 0.18);

    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;

    transition: transform 0.25s ease-out, opacity 0.25s ease-out;

    z-index: 9999;

    font-size: 14px;
    color: #222222;
}

/* Видимая панель */
#hitech-cart-panel.hitech-cart-panel--visible,
.hitech-cart-panel.hitech-cart-panel--visible {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

/* Внутренняя обёртка с закруглением и ограничением по высоте */
#hitech-cart-panel .hitech-cart-panel__inner,
.hitech-cart-panel__inner {
    display: flex;
    flex-direction: column;
    max-height: 80vh;
    border-radius: 4px 0 0 4px;
    overflow: hidden;
}

/* ---------- Header ---------- */

#hitech-cart-panel .hitech-cart-panel__header,
.hitech-cart-panel__header {
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e5e5e5;
}

#hitech-cart-panel .hitech-cart-panel__title,
.hitech-cart-panel__title {
    font-weight: 600;
}


/* ---------- Body + table ---------- */

#hitech-cart-panel .hitech-cart-panel__body,
.hitech-cart-panel__body {
    padding: 0.5rem 1rem 0.75rem;
    overflow: auto;
}

#hitech-cart-panel .hitech-cart-panel__table,
.hitech-cart-panel__table {
    width: 100%;
    border-collapse: collapse;
}

#hitech-cart-panel .hitech-cart-panel__th,
#hitech-cart-panel .hitech-cart-panel__cell,
.hitech-cart-panel__th,
.hitech-cart-panel__cell {
    padding: 0.35rem 0.25rem;
    text-align: left;
    border-bottom: 1px solid #f1f1f1;
}

/* Выравнивание чисел по правому краю */
#hitech-cart-panel .hitech-cart-panel__th--qty,
#hitech-cart-panel .hitech-cart-panel__th--price,
#hitech-cart-panel .hitech-cart-panel__th--subtotal,
#hitech-cart-panel .hitech-cart-panel__cell--qty,
#hitech-cart-panel .hitech-cart-panel__cell--price,
#hitech-cart-panel .hitech-cart-panel__cell--subtotal,
.hitech-cart-panel__th--qty,
.hitech-cart-panel__th--price,
.hitech-cart-panel__th--subtotal,
.hitech-cart-panel__cell--qty,
.hitech-cart-panel__cell--price,
.hitech-cart-panel__cell--subtotal {
    text-align: right;
    white-space: nowrap;
}

/* Обрезание длинных названий товара */
#hitech-cart-panel .hitech-cart-panel__cell--product,
.hitech-cart-panel__cell--product {
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Последняя строка без нижней границы */
#hitech-cart-panel .hitech-cart-panel__row:last-child .hitech-cart-panel__cell,
.hitech-cart-panel__row:last-child .hitech-cart-panel__cell {
    border-bottom: none;
}

/* Пустая корзина */
#hitech-cart-panel .hitech-cart-panel__empty,
.hitech-cart-panel__empty {
    text-align: center;
    padding: 0.75rem 0.25rem;
    color: #777777;
}


/* ---------- Footer (Total) ---------- */

#hitech-cart-panel .hitech-cart-panel__footer,
.hitech-cart-panel__footer {
    padding: 0.75rem 1rem;
    border-top: 1px solid #e5e5e5;
    background: #f8f9fa;

    display: flex;
    justify-content: space-between;
    align-items: center;

    font-weight: 600;
}

#hitech-cart-panel .hitech-cart-panel__total-label,
.hitech-cart-panel__total-label {
    margin-right: 0.5rem;
}

/* Можно при желании задать особый стиль сумме */
#hitech-cart-panel .hitech-cart-panel__total-value,
.hitech-cart-panel__total-value {
    white-space: nowrap;
}

/* ------------ Additional CSS --------------- */
.cart {
  position: relative;
  color: #001d4c;
}
.cart__icon {
  -webkit-box-pack: center;
      -ms-flex-pack: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
  -webkit-box-flex: 0;
      -ms-flex: 0 0 34px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  position: relative;
          flex: 0 0 34px;
          align-items: center;
          justify-content: center;
  width: 34px;
  height: 34px;
}
@media only screen and (max-width: 767px) {
  .cart__icon {
    -webkit-box-flex: 0;
        -ms-flex: 0 0 24px;
            flex: 0 0 24px;
    width: 24px;
    height: 24px;
  }
}
.cart__numb {
  -webkit-box-pack: center;
      -ms-flex-pack: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
  -webkit-box-flex: 0;
      -ms-flex: 0 0 16px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  position: absolute;
  top: -8px;
  right: -8px;
          flex: 0 0 16px;
          align-items: center;
          justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: #c62500;
  color: #fff;
  font-size: 12px;
}



/* Состояние deferred товара в панельке */
#hitech-cart-panel .hitech-cart-panel__row.is-deferred .hitech-cart-panel__cell,
.hitech-cart-panel__row.is-deferred .hitech-cart-panel__cell {
    color: #999999 !important; /* Серый цвет */
    text-decoration: line-through; /* Зачеркивание всей строки */
    background-color: #fafafa; /* Совсем легкий фон для отличия */
}

/* Ссылка внутри зачеркнутой строки тоже должна быть серой */
#hitech-cart-panel .hitech-cart-panel__row.is-deferred .hitech-cart-panel__product-link,
.hitech-cart-panel__row.is-deferred .hitech-cart-panel__product-link {
    color: #999999 !important;
}

/* Чтобы текст "Deferred" под SKU не был зачеркнут (для читаемости), если хочешь */
.hitech-cart-panel__row.is-deferred small {
    text-decoration: none !important;
    display: block;
    font-style: normal;
    color: #666;
}
/* Пробиваемся через стили темы до каждой ячейки внутри зачеркнутой строки */
#hitech-cart-panel table.hitech-cart-panel__table tr.is-deferred td {
    color: #999999 !important;
    text-decoration: line-through !important;
}

/* Ссылку (SKU) красим отдельно, так как у ссылок свои цвета по умолчанию */
#hitech-cart-panel tr.is-deferred td a {
    color: #999999 !important;
    text-decoration: line-through !important;
    pointer-events: none; /* Чтобы нельзя было кликнуть на отложенный товар */
}
/* Выключаем синий цвет ссылок для отложенных товаров */
.hitech-cart-panel__row.is-deferred a,
.hitech-cart-panel__row.is-deferred td {
    color: #999999 !important;
    text-decoration: line-through !important;
}