/* НП Корзина - основные элементы */
.np-cart-link,
.np-cart-floating,
.np-cart-buy,
.np-cart-buy *,
.np-cart-item,
.np-cart-item *,
.np-cart-summary,
.np-cart-summary *,
#np-cart-modal,
#np-cart-modal * { box-sizing: border-box; }

/* Кнопка в шапке: нижняя строка, справа от главного меню */
.header-col--cart { flex: none; margin-left: 4px; }
.header-btm .header-col--cart-menu {
  margin-left: auto;
  align-self: center;
  padding-left: 20px;
}
.header-btm .np-cart-header-link {
  min-height: 38px;
  padding: 6px 11px;
  border: 1px solid #E8D208;
  border-radius: 8px;
  background: #fff;
}
.np-cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #282828;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}
.np-cart-link:hover { color: #000; text-decoration: none; }
.np-cart-link__icon,
.np-cart-floating__icon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 0;
}
.np-cart-link__icon svg,
.np-cart-floating__icon svg { flex: 0 0 auto; }
.np-cart-link__text { display: flex; flex-direction: column; line-height: 1.1; }
.np-cart-link__text small { font-size: 11px; font-weight: 600; color: #666; margin-top: 2px; }
/* Счётчик стоит рядом с иконкой, а не поверх неё. */
.np-cart-count {
    position: static;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 21px;
    height: 21px;
    border-radius: 999px;
    background: #282828;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    text-align: center;
    padding-right: 1px;
    padding-bottom: 1px;
}
.np-cart-count.is-empty { display: none; }

/* Плавающая кнопка */
.np-cart-floating {
  position: fixed;
  right: 20px;
  bottom: 96px;
  z-index: 9998;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 10px 16px 10px 13px;
  border-radius: 999px;
  background: #F2C400;
  color: #111;
  box-shadow: 0 10px 28px rgba(0,0,0,.28);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.1;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}
.np-cart-floating:hover { color: #111; text-decoration: none; transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0,0,0,.32); }
.np-cart-floating__text { display: flex; flex-direction: column; }
.np-cart-floating__text small { font-size: 11px; font-weight: 700; opacity: .72; margin-top: 2px; }
.np-cart-floating.is-hidden { display: none !important; }
.np-cart-floating.is-pulse { animation: npCartPulse .45s ease; }
@keyframes npCartPulse { 0% { transform: scale(1); } 35% { transform: scale(1.08); } 100% { transform: scale(1); } }

/* Блок покупки в каталоге и на странице товара */
.np-cart-buy {
  margin: 12px auto 6px;
  width: 100%;
  max-width: 280px;
  text-align: center;
}
.tax-product-item .np-cart-buy { padding: 0 4px; }

/* Одинаковая высота карточек в строках каталога с корзиной.
   Класс добавляет np-cart.js только контейнеру, где есть .np-cart-buy. */
.tax-product-items.np-cart-listing-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  row-gap: 10px;
}
.tax-product-items.np-cart-listing-grid > .tax-product-item {
  float: none;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: auto;
}
.tax-product-items.np-cart-listing-grid > .col-hr-sm {
  flex: 0 0 100%;
  width: 100%;
}
.tax-product-items.np-cart-listing-grid > .tax-product-item > * { max-width: 100%; }
.tax-product-items.np-cart-listing-grid .tax-product-item .inner {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  height: auto;
  margin-bottom: 0;
}
.tax-product-items.np-cart-listing-grid .tax-product-item .inner > a {
  display: block;
  flex: 0 0 auto;
}
.tax-product-items.np-cart-listing-grid .tax-product-item .inner > .np-cart-buy {
  margin-top: auto;
  padding-top: 12px;
}
.tax-product-items.np-cart-listing-grid > .tax-product-item > .np-cart-buy {
  margin-top: auto;
  padding-top: 12px;
}
.tax-product-items.np-cart-listing-grid > .tax-product-item > .btn-block {
  margin-top: auto;
  padding-top: 20px;
}
.tax-product-items.np-cart-listing-grid .tax-product-item .img-outer { flex: 0 0 auto; }
.tax-product-items.np-cart-listing-grid .tax-product-item-fur .img-outer { height: 265px; }
.tax-product-items.np-cart-listing-grid .tax-product-item .listing-title,
.tax-product-items.np-cart-listing-grid .tax-product-item .listing-title .title {
  overflow-wrap: break-word;
}
/* Резерв под третью строку названия: текущие карточки не «прыгают» на 20 px между рядами. */
.tax-product-items.np-cart-listing-grid .tax-product-item .listing-title.price .title {
  min-height: 60px;
}

.np-cart-buy__price {
  margin: 0 0 9px;
  color: #282828;
  font-size: 15px;
  line-height: 1.25;
}
.np-cart-buy__price b { font-size: 17px; }
.np-cart-buy__row {
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 8px;
  width: 100%;
}
.np-cart-qty {
  display: inline-flex;
  align-items: stretch;
  flex: 0 1 116px;
  height: 40px;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #d6d6d6;
  border-radius: 8px;
  background: #fff;
}
.np-cart-qty__btn {
  flex: 0 0 32px;
  width: 32px;
  border: 0;
  background: #f5f5f5;
  color: #222;
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}
.np-cart-qty__btn:hover { background: #eee; }
.np-cart-qty__btn:active { background: #e3e3e3; }
.np-cart-qty__input {
  flex: 1 1 40px;
  width: 40px !important;
  min-width: 34px !important;
  height: 40px !important;
  margin: 0 !important;
  padding: 0 3px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #fff !important;
  color: #111 !important;
  font-size: 14px !important;
  font-weight: 700;
  text-align: center;
  box-shadow: none !important;
}
.np-cart-qty__input:focus { outline: 2px solid rgba(242,196,0,.5); outline-offset: -2px; }
.np-cart-qty__input::-webkit-outer-spin-button,
.np-cart-qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.np-cart-qty__input[type=number] { -moz-appearance: textfield; appearance: textfield; }
.np-cart-add {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 40px;
  padding: 9px 12px;
  white-space: nowrap;
  border: 0;
  border-radius: 8px;
  background: #F2C400;
  color: #111;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(242,196,0,.3);
  transition: background .2s ease, transform .15s ease;
}
.np-cart-add:hover { background: #d9b000; }
.np-cart-add:active { transform: translateY(1px); }
.np-cart-add.is-added { background: #282828; color: #fff; }
.np-cart-buy__notice {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.35;
  color: #526000;
}
.np-cart-buy__notice a { color: #111; font-weight: 700; text-decoration: underline; }
/*
.tax-product-item .np-cart-buy__notice[hidden] {
  display: block !important;
  visibility: hidden;
}
 */
/* Покупка на странице товара */
.np-cart-single {
  margin: 0 0 20px;
  padding: 16px;
  border: 1px solid #f0d54a;
  border-radius: 12px;
  background: #fffbe8;
}
.catalogbox__content .np-cart-single {
  margin: 14px 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.np-cart-buy--single {
  max-width: none;
  margin: 0;
  text-align: left;
}
.np-cart-buy--single .np-cart-buy__row { justify-content: flex-start; flex-wrap: wrap; }
.np-cart-buy--single .np-cart-buy__price { font-size: 18px; }
.np-cart-buy--single .np-cart-buy__price b { font-size: 22px; }
.np-cart-buy--single .np-cart-add { min-width: 170px; min-height: 44px; font-size: 15px; }
.np-cart-buy--single .np-cart-qty { height: 44px; }
.np-cart-buy--single .np-cart-qty__input { height: 44px !important; }

/* Модальная корзина: использует существующие .np-quick-modal стили */
#np-cart-modal { z-index: 10020; }
#np-cart-modal .np-cart-modal__box {
  width: min(780px, 100%) !important;
  max-width: 780px !important;
  max-height: 92vh;
  padding: 26px;
  overflow-x: hidden;
}
#np-cart-modal h3 { padding-right: 32px; font-size: 24px; }
#np-cart-modal h4 { margin: 22px 0 12px; font-size: 17px; color: #111; }
.np-cart-empty {
  padding: 22px 0 6px;
  text-align: center;
  color: #555;
}
.np-cart-items { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.np-cart-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid #e7e7e7;
  border-radius: 10px;
  background: #fff;
}
.np-cart-item__img {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  overflow: hidden;
  background: #f2f2f2;
  display: block;
}
.np-cart-item__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.np-cart-item__img--empty { display: flex; align-items: center; justify-content: center; color: #aaa; font-size: 10px; }
.np-cart-item__main { min-width: 0; }
.np-cart-item__title {
  display: block;
  color: #111;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.np-cart-item__title:hover { text-decoration: underline; }
.np-cart-item__unit { margin-top: 3px; color: #777; font-size: 12px; }
.np-cart-item__controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
.np-cart-item__sum { min-width: 86px; text-align: right; font-size: 14px; font-weight: 800; color: #111; white-space: nowrap; }
.np-cart-item__remove {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: #f2f2f2;
  color: #777;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.np-cart-item__remove:hover { background: #ffe7e7; color: #b00020; }

.np-cart-summary {
  margin-top: 14px;
  padding: 13px 14px;
  border-radius: 10px;
  background: #fafafa;
  border: 1px solid #eee;
}
.np-cart-summary__row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 4px 0;
  color: #444;
  font-size: 14px;
}
.np-cart-summary__row b { color: #111; white-space: nowrap; }
.np-cart-summary__row--total {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid #ddd;
  font-size: 17px;
  font-weight: 800;
  color: #111;
}
.np-cart-modal-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.np-cart-clear,
.np-cart-secondary {
  border: 1px solid #d8d8d8;
  border-radius: 8px;
  background: #fff;
  color: #333;
  padding: 9px 13px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.np-cart-clear:hover { border-color: #e3a0a0; color: #b00020; }
.np-cart-secondary:hover { background: #f5f5f5; }
.np-cart-cf7-wrap {
  margin-top: 8px;
  padding-top: 4px;
  border-top: 1px solid #eee;
}
.np-cart-setup-warning {
  padding: 12px 14px;
  border: 1px solid #e5c100;
  border-radius: 8px;
  background: #fff8d6;
  color: #513d00;
  font-size: 13px;
  line-height: 1.45;
}

/* Поля CF7 внутри корзины */
#np-cart-modal .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
  margin: 0 0 10px;
}
#np-cart-modal .np-cart-cf7-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
#np-cart-modal .np-field { display: block; margin-bottom: 10px; }
#np-cart-modal .np-field label,
#np-cart-modal .np-cart-field-label {
  display: block;
  margin: 0 0 5px;
  font-size: 12px;
  font-weight: 700;
  color: #222;
}
#np-cart-modal input[type="text"],
#np-cart-modal input[type="tel"],
#np-cart-modal input[type="email"],
#np-cart-modal textarea {
  width: 100% !important;
  max-width: 100%;
  box-sizing: border-box;
  padding: 10px 12px !important;
  border: 1px solid #ccc !important;
  border-radius: 7px !important;
  background: #fff !important;
  color: #111 !important;
  font-size: 14px !important;
  font-family: inherit;
}
#np-cart-modal textarea { min-height: 80px; resize: vertical; }
#np-cart-modal textarea.np-cart-order-items-field {
  min-height: 112px;
  background: #fbfbfb !important;
  font-size: 12px !important;
  line-height: 1.45;
}
#np-cart-modal input:focus,
#np-cart-modal textarea:focus {
  outline: none;
  border-color: #F2C400 !important;
      box-shadow: none;
}
#np-cart-modal .wpcf7-radio {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}
#np-cart-modal .wpcf7-radio .wpcf7-list-item { margin: 0; }
#np-cart-modal .wpcf7-radio label { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; font-size: 14px; }
#np-cart-modal input[type="radio"] { accent-color: #d9b000; width: 17px; height: 17px; margin: 0; }
#np-cart-modal .np-cart-form-total {
  margin: 12px 0;
  padding: 12px 14px;
  border-radius: 9px;
  background: #fff9d6;
  border: 1px solid #f0d54a;
  font-size: 15px;
  color: #111;
  display: none;
}
#np-cart-modal .np-cart-form-total b { float: right; font-size: 17px; }
#np-cart-modal .np-cart-hidden-fields { display: none !important; }

/* Согласие CF7: полностью удерживаем внутри модалки, несмотря на глобальные правила темы. */
#np-cart-modal .np-consent-box {
  display: block !important;
  float: none !important;
  clear: both;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 12px 0 !important;
  overflow: hidden;
}
#np-cart-modal .np-consent-box p {
  width: auto !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}
#np-cart-modal .np-consent-box .wpcf7-form-control-wrap,
#np-cart-modal .np-consent-box .wpcf7-acceptance,
#np-cart-modal .np-consent-box .wpcf7-list-item {
  display: block !important;
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
}
#np-cart-modal .np-consent-box label {
  display: flex !important;
  align-items: center;
  gap: 8px;
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  text-align: left !important;
  cursor: pointer;
}
#np-cart-modal .np-consent-box input[type="checkbox"] {
  flex: 0 0 18px !important;
  width: 18px !important;
  min-width: 18px !important;
  max-width: 18px !important;
  height: 18px !important;
  min-height: 18px !important;
  margin: 2px 0 0 !important;
  padding: 0 !important;
}
#np-cart-modal .np-consent-box .wpcf7-list-item-label {
  display: block !important;
  flex: 1 1 auto;
  width: auto !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.4;
}
#np-cart-modal .np-consent-box .wpcf7-list-item-label a { overflow-wrap: anywhere; }

#np-cart-modal .wpcf7-not-valid-tip { font-size: 12px; }
#np-cart-modal .wpcf7-response-output { margin: 14px 0 0; font-size: 13px; line-height: 1.4; }

/* Если CF7 submit без np-active всё равно выглядит как кнопка корзины */
#np-cart-modal input[type="submit"],
#np-cart-modal .wpcf7-submit {
  width: 100%;
  min-height: 46px;
  padding: 12px 16px;
  border: 0;
  border-radius: 8px;
  background: #F2C400;
  color: #111;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}
#np-cart-modal input[type="submit"]:disabled,
#np-cart-modal .wpcf7-submit:disabled { opacity: .45; cursor: not-allowed; }
#np-cart-modal .np-btn-submit:not(.np-active) {
  background: #E5E7EA;
  color: #999;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
}
#np-cart-modal .np-btn-submit.np-active {
  background: #F2C400;
  color: #111;
  cursor: pointer;
  pointer-events: auto;
}

body.np-cart-modal-open { overflow: hidden; }

@media (max-width: 1200px) {
  .np-cart-link__text small { display: none; }
}

@media (max-width: 991px) {
  .header-col--cart { margin-left: 2px; }
  .header-btm .header-col--cart-menu {
    margin-left: auto;
    margin-right: 52px; /* не перекрывать абсолютную иконку поиска */
    padding-left: 8px;
  }
  .header-btm .np-cart-header-link { padding: 7px 9px; }
  .np-cart-link__text { display: none; }
  .np-cart-floating { right: 14px; bottom: 84px; padding: 10px 13px; }
}

@media (max-width: 640px) {
  .np-cart-buy { max-width: 100%; }
  .np-cart-buy__row { flex-wrap: nowrap; }
  .np-cart-buy .np-cart-add { flex: 1 1 auto; }
  #np-cart-modal .np-cart-modal__box { padding: 20px 14px; }
  #np-cart-modal .np-cart-cf7-grid { grid-template-columns: 1fr; }
  .np-cart-item { grid-template-columns: 48px minmax(0, 1fr); }
  .np-cart-item__img { width: 48px; height: 48px; }
  .np-cart-item__controls { grid-column: 1 / -1; justify-content: space-between; }
  .np-cart-floating__text { display: none; }
  .np-cart-floating { width: auto; min-width: 54px; height: 54px; justify-content: center; padding: 0 10px; }
}

@media only screen and (max-width: 768px) {
    .header-col--soc.dpc-none {
        display: flex;
        align-items: center;
        gap: 10px;
    }
    .header-col--soc .np-cart-header-link {
    min-height: 38px;
    padding: 6px 11px;
    border: 1px solid #E8D208;
    border-radius: 8px;
    background: #fff;
}
        .header-btm .header-col--cart-menu {
        display: none;
    }
    
    .burger-menu {
    width: 80px;
}
.header-col--soc ul.soc {
    margin-top: 16px;
}
}

@media (min-width: 640px) {
.product-actions.fur {
    display: flex;
    flex-direction: row;
    gap: 0;
    justify-content: flex-start;
}
.tax-product-items.np-cart-listing-grid > .tax-product-item {

  width: 32.3333%;
}
}