/* ==========================================================================
   Верхняя шапка, счётчик корзины и модальное окно корзины.
   Подключается на всех страницах (layouts/app.blade.php).
   ========================================================================== */

/* Отступ под фиксированную шапку: в main.css он рассчитан на прежний
   логотип высотой 80px, новая шапка ниже. */
body {
  padding-top: 74px;
}

/* --- Шапка --------------------------------------------------------------- */

.vp-nav {
  background: #fff;
  padding: 0;
  box-shadow: 0 1px 0 #e9ecf2, 0 6px 22px rgba(20, 23, 30, 0.06);
}
.vp-nav > .container {
  min-height: 74px;
}
.vp-nav__brand {
  padding: 0;
  margin-right: 1.6rem;
}

/* Пункты меню: подчёркивание вместо серой заливки из main.css. */
.vp-nav .nav-item:hover {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}
.vp-nav__list .nav-link {
  position: relative;
  padding: 0.55rem 0.85rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: #3a4152;
}
.vp-nav__list .nav-link:hover {
  color: #e60002;
}
.vp-nav__list .nav-item.active > .nav-link {
  color: #e60002;
}
.vp-nav__list .nav-item.active > .nav-link:after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.2rem;
  height: 2px;
  border-radius: 2px;
  background: #e60002;
}

/* --- Правый блок: корзина, вход, кнопка меню ----------------------------- */

.vp-nav__actions {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  align-items: center;
}
.vp-nav__toggler {
  border: 1px solid #e2e6ef;
  border-radius: 9px;
  padding: 0.35rem 0.6rem;
  margin-left: 0.6rem;
}
.vp-nav__toggler:focus {
  outline: 0;
}

.vp-cart {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  align-items: center;
  border: 0;
  border-radius: 10px;
  background: #e60002;
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.5rem 0.8rem;
  box-shadow: 0 6px 16px rgba(230, 0, 2, 0.25);
}
.vp-cart:hover,
.vp-cart:focus {
  background: #b60002;
  color: #fff;
  outline: 0;
}
.vp-cart__label {
  margin-left: 8px;
}
/* Счётчик товаров — белый кружок на красной кнопке. */
.vp-cart__count {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-pack: center;
  justify-content: center;
  -ms-flex-align: center;
  align-items: center;
  min-width: 22px;
  height: 22px;
  margin-left: 8px;
  padding: 0 6px;
  border-radius: 11px;
  background: #fff;
  color: #e60002;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1;
}

.vp-nav__btn {
  display: -ms-inline-flexbox;
  display: inline-flex;
  -ms-flex-align: center;
  align-items: center;
  margin-left: 0.6rem;
  padding: 0.5rem 0.85rem;
  border: 1px solid #e2e6ef;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 600;
  color: #3a4152 !important;
  text-decoration: none;
  white-space: nowrap;
}
.vp-nav__btn:hover {
  border-color: #1c2029;
  color: #1c2029 !important;
  text-decoration: none;
}
.vp-nav__btn i {
  margin-right: 7px;
  color: #9aa1b3;
}
.vp-nav__btn:hover i {
  color: #e60002;
}
.vp-nav__link {
  margin-left: 0.8rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #8a90a0;
  text-decoration: none;
  white-space: nowrap;
}
.vp-nav__link:hover {
  color: #e60002;
  text-decoration: none;
}
.vp-nav__user .dropdown-toggle:after {
  margin-left: 0.5rem;
  color: #9aa1b3;
}
.vp-dropdown {
  border: 1px solid #e6e9f0;
  border-radius: 12px;
  padding: 0.4rem;
  box-shadow: 0 14px 34px rgba(20, 23, 30, 0.12);
}
.vp-dropdown .dropdown-item {
  border-radius: 8px;
  padding: 0.5rem 0.7rem;
  font-size: 0.88rem;
  color: #3a4152;
}
.vp-dropdown .dropdown-item i {
  width: 20px;
  color: #9aa1b3;
}
.vp-dropdown .dropdown-item:hover {
  background: #f5f6f9;
  color: #e60002;
}
.vp-dropdown .dropdown-item:hover i {
  color: #e60002;
}

.vp-nav__mobile-auth {
  padding: 0.6rem 0 1rem;
}
.vp-nav__mobile-auth .vp-nav__btn {
  display: -ms-flexbox;
  display: flex;
  margin: 0 0 0.5rem;
}

@media (max-width: 991px) {
  .vp-nav__list {
    padding-top: 0.6rem;
    margin-top: 0.4rem;
    border-top: 1px solid #eef0f5;
  }
  .vp-nav__list .nav-link {
    padding: 0.6rem 0;
  }
  .vp-nav__list .nav-item.active > .nav-link:after {
    left: 0;
    right: auto;
    width: 26px;
    bottom: 0.3rem;
  }
}

/* --- Уведомление «товар добавлен в корзину» ------------------------------ */

#notify .alert {
  border: 0;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(20, 23, 30, 0.18);
  font-weight: 600;
  font-size: 0.9rem;
}
#notify .alert-success {
  background: #1c2029;
  color: #fff;
}
#notify .alert-secondary {
  background: #4a5162;
  color: #fff;
}

/* --- Общие кнопки -------------------------------------------------------- */

.vp-btn {
  display: -ms-inline-flexbox;
  display: inline-flex;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-pack: center;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  padding: 0.65rem 1.3rem;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.vp-btn i {
  margin-right: 8px;
}
.vp-btn--red {
  background: #e60002;
  color: #fff !important;
}
.vp-btn--red:hover {
  background: #b60002;
  color: #fff !important;
  text-decoration: none;
}
.vp-btn--outline {
  background: #fff;
  border: 1px solid #dfe3ec;
  color: #3a4152 !important;
}
.vp-btn--outline:hover {
  border-color: #1c2029;
  color: #1c2029 !important;
  text-decoration: none;
}
.vp-btn--dark {
  background: #1c2029;
  color: #fff !important;
}
.vp-btn--dark:hover {
  background: #e60002;
  color: #fff !important;
  text-decoration: none;
}

/* --- Модальное окно корзины ---------------------------------------------- */

.cart-modal-lg .modal-content {
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(15, 18, 25, 0.35);
}
.vp-cartm__head {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-pack: justify;
  justify-content: space-between;
  padding: 18px 24px;
  color: #fff;
  background: linear-gradient(118deg, #14171e 0%, #262d3b 70%, #2f3746 100%);
}
.vp-cartm__head h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
}
.vp-cartm__head h3 i {
  margin-right: 10px;
  color: #ff5f61;
}
.vp-cartm__head .close {
  padding: 0 0 0 1rem;
  color: #fff;
  opacity: 0.7;
  text-shadow: none;
  font-size: 1.6rem;
}
.vp-cartm__head .close:hover {
  color: #fff;
  opacity: 1;
}
.vp-cartm__body {
  padding: 6px 24px 4px;
  max-height: 60vh;
  overflow-y: auto;
}
.vp-cartm__note {
  margin: 14px 0 4px;
  padding: 10px 14px;
  border: 1px solid #f5e2b6;
  border-radius: 10px;
  background: #fff8e6;
  font-size: 0.84rem;
  color: #7a6224;
}
.vp-cartm__row {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid #f1f3f8;
}
.vp-cartm__row:last-child {
  border-bottom: 0;
}
.vp-cartm__thumb {
  -ms-flex: 0 0 48px;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  margin-right: 14px;
  border: 1px solid #eceff5;
  border-radius: 9px;
  background: #fff;
  overflow: hidden;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-pack: center;
  justify-content: center;
  -ms-flex-align: center;
  align-items: center;
  color: #c3c8d4;
}
.vp-cartm__thumb img {
  max-width: 100%;
  max-height: 100%;
  -o-object-fit: contain;
  object-fit: contain;
}
.vp-cartm__name {
  -ms-flex: 1 1 auto;
  flex: 1 1 auto;
  min-width: 0;
  padding-right: 14px;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
  color: #1f2532;
}
.vp-cartm__price {
  -ms-flex: 0 0 auto;
  flex: 0 0 auto;
  padding-right: 16px;
  text-align: right;
  white-space: nowrap;
}
.vp-cartm__price b {
  display: block;
  font-size: 0.95rem;
  color: #1c2029;
}
.vp-cartm__price small {
  font-size: 0.75rem;
  color: #9aa1b3;
}
.vp-cartm__qty {
  -ms-flex: 0 0 auto;
  flex: 0 0 auto;
}
.vp-cartm__qty .input-group {
  -ms-flex-wrap: nowrap;
  flex-wrap: nowrap;
  width: auto;
}
.vp-cartm__qty .cart_coll {
  max-width: 56px;
  text-align: center;
}
.vp-cartm__del {
  -ms-flex: 0 0 auto;
  flex: 0 0 auto;
  margin-left: 12px;
  padding: 6px 9px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #9aa1b3;
  font-size: 0.95rem;
}
.vp-cartm__del:hover {
  background: #fdecec;
  color: #e60002;
}
/* Кнопки в подвале компактнее: иначе «Оформить заказ» переносится на строку. */
.vp-cartm__foot .vp-btn {
  padding: 0.6rem 1rem;
  font-size: 0.86rem;
}
.vp-cartm__foot {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  padding: 18px 24px;
  background: #f7f8fb;
  border-top: 1px solid #eef0f5;
}
.vp-cartm__recalc {
  margin-left: 0.5rem;
}
.vp-cartm__recalc i {
  margin-right: 0;
}
.vp-cartm__recalc span {
  margin-left: 8px;
}
.vp-cartm__total {
  -ms-flex: 1 1 auto;
  flex: 1 1 auto;
  padding: 0 18px;
  text-align: right;
  font-size: 0.9rem;
  color: #6d748a;
}
.vp-cartm__total b {
  font-size: 1.25rem;
  font-weight: 800;
  color: #1c2029;
}
.vp-cartm__empty {
  padding: 34px 10px;
  text-align: center;
  color: #6d748a;
}
.vp-cartm__empty i {
  display: block;
  margin-bottom: 0.8rem;
  font-size: 2.2rem;
  color: #c3c8d4;
}

@media (max-width: 767px) {
  .vp-cartm__row {
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
  }
  .vp-cartm__name {
    -ms-flex: 1 1 60%;
    flex: 1 1 60%;
  }
  .vp-cartm__price {
    -ms-flex: 0 0 100%;
    flex: 0 0 100%;
    padding: 8px 0 10px 62px;
    text-align: left;
  }
  .vp-cartm__price b {
    display: inline;
  }
  .vp-cartm__foot {
    -ms-flex-pack: center;
    justify-content: center;
  }
  .vp-cartm__total {
    -ms-flex: 0 0 100%;
    flex: 0 0 100%;
    -ms-flex-order: -1;
    order: -1;
    padding: 0 0 12px;
    text-align: center;
  }
}
