/* =====================================================
   KRASAVTO.BY — Новый футер
   Подключить в: catalog/view/theme/unishop2/stylesheet/footer-new.css
   Затем добавить в footer.twig перед </footer>:
   <link rel="stylesheet" href="/catalog/view/theme/unishop2/stylesheet/footer-new.css">
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;600&family=PT+Sans:wght@400;700&display=swap');

/* ── Переменные ── */
:root {
  --ftr-bg:      #1a1a1a;
  --ftr-border:  #2e2e2e;
  --ftr-accent:  #E8501A;
  --ftr-text:    #e0e0e0;
  --ftr-muted:   #888;
  --ftr-link:    #aaa;
  --font-title:  'Oswald', sans-serif;
  --font-body:   'PT Sans', sans-serif;
}

/* ── Сброс старых стилей футера шаблона ── */
.footer {
  background: var(--ftr-bg) !important;
  font-family: var(--font-body) !important;
  color: var(--ftr-text) !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Скрываем старый блок .footer__socials-payments — он заменён footer-bottom */
.footer__socials-payments { display: none !important; }

/* ─────────────────────────────────────
   Оранжевая полоса
───────────────────────────────────── */
.footer-topbar {
  background: var(--ftr-accent);
  padding: 10px 0;
}

.footer-topbar__inner {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-topbar__inner span {
  font-family: var(--font-title);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
}

.footer-topbar__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  flex-shrink: 0;
}

/* ─────────────────────────────────────
   Основной блок
───────────────────────────────────── */
.footer-main {
  padding: 40px 0;
  border-bottom: 1px solid var(--ftr-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 0;
}

.footer-col {
  padding-right: 40px;
}

.footer-col + .footer-col {
  border-left: 1px solid var(--ftr-border);
  padding-left: 40px;
  padding-right: 0;
}

/* Оранжевый акцент */
.footer-col__accent {
  width: 32px;
  height: 2px;
  background: var(--ftr-accent);
  border-radius: 2px;
  margin-bottom: 16px;
}

.footer-col__title {
  font-family: var(--font-title);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ftr-accent);
  margin: 0 0 16px;
  font-weight: 600;
}

/* ─────────────────────────────────────
   Бренд
───────────────────────────────────── */
.footer-brand-logo {
  font-family: var(--font-title);
  font-size: 26px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 1px;
  margin: 0 0 8px;
  line-height: 1;
}

.footer-brand-logo span { color: var(--ftr-accent); }

.footer-brand-tagline {
  font-size: 13px;
  color: var(--ftr-muted);
  line-height: 1.6;
  margin: 0 0 20px;
}

/* Соцсети */
.footer-brand-socials {
  display: flex;
  gap: 10px;
}

.footer-social-btn {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  border: 1px solid #333;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ftr-muted) !important;
  cursor: pointer;
  font-size: 15px;
  transition: border-color .2s, color .2s;
}

.footer-social-btn:hover {
  border-color: var(--ftr-accent);
  color: var(--ftr-accent) !important;
}

/* ─────────────────────────────────────
   Навигация
───────────────────────────────────── */
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-nav__link {
  font-size: 14px;
  color: var(--ftr-link) !important;
  text-decoration: none !important;
  transition: color .2s;
}

.footer-nav__link:hover { color: var(--ftr-accent) !important; }

/* ─────────────────────────────────────
   Часы работы
───────────────────────────────────── */
.footer-hours {
  font-size: 13px;
  color: var(--ftr-muted);
  line-height: 1.8;
}

/* ─────────────────────────────────────
   Нижняя строка
───────────────────────────────────── */
.footer-bottom {
  padding: 16px 0;
}

.footer-bottom__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom__copy {
  font-size: 12px;
  color: #555;
  margin: 0;
}

.footer-bottom__copy strong { color: #777; }

.footer-bottom__payments {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Переопределяем стили иконок оплаты шаблона */
.footer-bottom__payments .footer__payments-icon {
  height: 24px;
  width: auto;
  background: #fff;
  border-radius: 4px;
  padding: 2px 6px;
  margin: 0;
}

/* ─────────────────────────────────────
   Адаптив
───────────────────────────────────── */
@media (max-width: 991px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 0;
  }

  .footer-col--brand {
    grid-column: 1 / -1;
    padding-right: 0 !important;
    border-left: none !important;
    padding-left: 0 !important;
    border-bottom: 1px solid var(--ftr-border);
    padding-bottom: 28px;
  }

  .footer-col + .footer-col {
    border-left: none;
    padding-left: 0;
  }

  .footer-col:nth-child(3) {
    padding-right: 20px;
  }
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-col, .footer-col + .footer-col { padding: 0; }
  .footer-col:not(.footer-col--brand) { padding-top: 24px; border-top: 1px solid var(--ftr-border); }
  .footer-topbar__inner { gap: 8px; }
  .footer-bottom__inner { flex-direction: column; align-items: flex-start; }
}
.header-cart__quantity .qty-switch__cart {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    min-width: 92px !important;
}

.header-cart__quantity .qty-switch__btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 24px !important;
    min-width: 24px !important;
    height: 28px !important;
    background: #ff6a00 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    border-radius: 3px !important;
    cursor: pointer !important;
    font-size: 12px !important;
    line-height: 1 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.header-cart__quantity .qty-switch__btn:hover {
    background: #e85f00 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

.header-cart__quantity .qty-switch__input {
    display: block !important;
    width: 38px !important;
    min-width: 38px !important;
    height: 28px !important;
    padding: 2px 4px !important;
    text-align: center !important;
    margin: 0 !important;
}

.header-cart__item-wrapper {
    align-items: center !important;
}

.header-cart__quantity {
    min-width: 100px !important;
}
#modal-cart .header-cart__quantity .qty-switch,
#modal-cart .header-cart__quantity .qty-switch__cart {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    min-width: 100px !important;
    width: 100px !important;
}

#modal-cart .header-cart__quantity .qty-switch__btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 26px !important;
    min-width: 26px !important;
    height: 28px !important;
    background: #ff6a00 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    border-radius: 3px !important;
    cursor: pointer !important;
    font-size: 12px !important;
    line-height: 28px !important;
    opacity: 1 !important;
    visibility: visible !important;
    overflow: visible !important;
    position: relative !important;
    z-index: 10 !important;
}

#modal-cart .header-cart__quantity .qty-switch__btn.fa-minus:before {
    content: "\f068" !important;
    font-family: "Font Awesome 5 Free", "FontAwesome" !important;
    font-weight: 900 !important;
}

#modal-cart .header-cart__quantity .qty-switch__btn.fa-plus:before {
    content: "\f067" !important;
    font-family: "Font Awesome 5 Free", "FontAwesome" !important;
    font-weight: 900 !important;
}

#modal-cart .header-cart__quantity .qty-switch__input {
    display: block !important;
    width: 36px !important;
    min-width: 36px !important;
    height: 28px !important;
    padding: 2px 4px !important;
    text-align: center !important;
    margin: 0 !important;
    float: none !important;
}

#modal-cart .header-cart__quantity {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 110px !important;
}
