/* ── Шапка: корзина ── */
.header-top__inner{position:relative}
.header-cart{position:relative;display:grid;grid-template-columns:24px auto;grid-template-rows:auto auto;align-items:center;column-gap:9px;min-width:130px;padding:8px 13px;border:1px solid #b8cce4;border-radius:7px;background:#f8fbff;color:#1a3a7a;text-decoration:none;flex:0 0 auto}
.header-cart:hover,.header-cart:focus-visible{border-color:#1a5cb5;background:#eef5ff;color:#1a3a7a;text-decoration:none}
.header-cart:focus-visible{outline:2px solid #1a5cb5;outline-offset:2px}
.header-cart__icon{grid-row:1 / span 2;width:23px;height:23px;color:#1a5cb5}
.header-cart__icon svg{width:100%;height:100%}
.header-cart__label{font-size:.86rem;font-weight:700;line-height:1.2}
.header-cart__count{position:absolute;top:-7px;left:26px;display:grid;place-items:center;min-width:19px;height:19px;padding:0 5px;border-radius:11px;background:#1a5cb5;color:#fff;font-size:.68rem;font-weight:700;line-height:1}
.header-cart__total{grid-column:2;color:#5a6272;font-size:.7rem;line-height:1.2;white-space:nowrap}
@media(max-width:1100px){.header-cart{min-width:0;padding:8px 10px}.header-cart__label{font-size:.8rem}.header-cart__total{display:none}}
@media(max-width:768px){.header-cart{grid-template-columns:22px auto;min-height:40px;padding:6px 8px;column-gap:7px}.header-cart__icon{width:20px;height:20px}.header-cart__count{top:-6px;left:21px}.header-cart__label{font-size:.76rem}.header-contacts{gap:7px}}
@media(max-width:520px){.header-cart{grid-template-columns:22px;justify-items:center;min-width:38px;padding:6px}.header-cart__label,.header-cart__total{display:none}.header-cart__count{left:18px}}

/* ── Страница корзины: содержимое в общей сетке сайта (как шапка и подвал) ── */
body.woocommerce-cart .information-page__inner{width:100%;max-width:var(--max-w,1200px);margin-inline:auto;padding-inline:24px}
body.woocommerce-cart .information-page__content,
body.woocommerce-cart .woocommerce{width:100%;max-width:100%;min-width:0;box-sizing:border-box}
body.woocommerce-cart .woocommerce-cart-form,
body.woocommerce-cart .cart-collaterals{min-width:0;max-width:100%}
@media(max-width:600px){body.woocommerce-cart .information-page__inner{padding-inline:18px}}

/* ── Каталог: таблица — без фиксированной min-width чтобы не было горизонтального скролла ── */
.catalog-table-wrap{overflow-x:visible!important;overflow:visible!important}
.catalog-table{min-width:0!important;width:100%}
/* Убрать min-width у имени чтобы таблица сжималась */
.catalog-product-name{min-width:0!important}
.catalog-cart-cell{min-width:96px;text-align:right;white-space:nowrap;padding-right:6px}
.catalog-cart-unavailable{color:#788493;font-size:.76rem}

/* ── Виджет каталога: постоянный счётчик − N + и ссылка ── */
.cart-qty-control{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.cart-qty-control__minus,.cart-qty-control__plus{display:flex;align-items:center;justify-content:center;width:28px;height:28px;border:1px solid #1a5cb5;border-radius:4px;background:#fff;color:#1a5cb5;font-size:1rem;font-weight:700;cursor:pointer;transition:background .12s,color .12s;padding:0;line-height:1}
.cart-qty-control__minus:hover,.cart-qty-control__plus:hover{background:#1a5cb5;color:#fff}
.cart-qty-control__minus:disabled{opacity:.35;cursor:default;background:#fff;color:#1a5cb5}
.cart-qty-control__num{min-width:22px;text-align:center;font:600 .88rem/1 inherit;color:#1a3a7a}
.cart-qty-goto{color:#1a5cb5;font-size:.76rem;text-decoration:underline;text-underline-offset:2px;white-space:nowrap}
.cart-qty-goto:hover{color:#1a3a7a}
/* Мобильный виджет — чуть крупнее */
.cart-qty-control--mobile .cart-qty-control__minus,
.cart-qty-control--mobile .cart-qty-control__plus{width:34px;height:34px;font-size:1.1rem}
.cart-qty-control--mobile .cart-qty-control__num{font-size:.92rem}

/* ── Карточка товара: форма и блок «В корзине» ── */
.product-card__cart-wrap{display:grid;gap:7px;padding:12px 0 2px;border-top:1px solid #e8edf3}
.product-card__qty-label{color:#5a6272;font-size:.8rem}
.product-card__qty-row{display:grid;grid-template-columns:88px minmax(0,1fr);gap:8px}
.product-card__qty-input{width:100%;height:42px;padding:0 9px;border:1px solid #cbd5e1;border-radius:5px;color:#1a1a2e;font:inherit}
.product-card__add-cart{min-height:42px;padding:8px 14px;border:1px solid #1a5cb5;border-radius:5px;background:#1a5cb5;color:#fff;font:600 .88rem/1.2 inherit;cursor:pointer}
.product-card__add-cart:hover{background:#1a3a7a;border-color:#1a3a7a}
.product-card__tier-note{margin:0;color:#64748b;font-size:.75rem;line-height:1.4}
.product-card__in-cart{display:flex;flex-direction:row;align-items:center;gap:12px;padding:4px 0}
.product-card__qty-control{flex:0 0 auto}
.product-card__qty-control .cart-qty-control__minus,
.product-card__qty-control .cart-qty-control__plus{width:34px;height:34px}
.product-card__qty-control .cart-qty-control__num{min-width:32px;font-size:.9rem}
.product-card__cart-goto{color:#1a5cb5;font-size:.82rem;font-weight:600;text-decoration:underline;text-underline-offset:2px;white-space:nowrap}
.product-card__cart-goto:hover{color:#1a3a7a}

/* ── Адаптив ── */
.cart-qty-control--mobile{display:none}
@media(max-width:767px){
  .cart-qty-control--mobile{display:inline-flex}
  .catalog-product-card>.catalog-cart-unavailable{justify-self:start}
}
@media(min-width:768px) and (max-width:1023px){
  .cart-qty-control--mobile{display:inline-flex}
  .catalog-product-card{grid-template-areas:"image identity prices" "image meta prices" "image stock prices" "image action prices"}
  .catalog-product-card>.cart-qty-control--mobile,
  .catalog-product-card>.catalog-cart-unavailable{grid-area:action;justify-self:start}
}
