/* ========================================
   PAGE CART — фирменный стиль Slebcraft
   ======================================== */

/* ── Hero шапка ─────────────────────────── */
.global--cart {
  background: linear-gradient(160deg, var(--btn-dark-from, #2E4B49) 0%, var(--btn-dark-to, #547977) 100%);
  padding: 160px 0 48px;
}
.global__rows {
    color: #fff;
}
.global__count p {
    color: #fff;
}
.global__cont h1 {
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 800;
  color: var(--bg, rgba(255,240,219,1));
  margin-bottom: 16px;
}
.global__rows {
  display: flex;
  align-items: center;
  gap: 24px;
}
.global__count {
  font-size: 16px;
  color: rgba(255,240,219,.75);
}
.global__count p {
  margin: 0;
}
.global__action {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ── Контент корзины ─────────────────────── */
.cart-page {
  padding: 48px 0 80px;
}
.cart-page__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  margin-bottom: 20px;
  border-bottom: 1.5px solid var(--border-color, rgba(255,231,197,1));
}
.cart-page__delete {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #E05540;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  transition: opacity .2s;
}
.cart-page__delete:hover { opacity: .75; }
.cart-page__delete svg { flex-shrink: 0; }

/* ── Двухколоночный лэйаут ───────────────── */
.cart-page__content {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  align-items: start;
}
@media (max-width: 1100px) {
  .cart-page__content { grid-template-columns: 1fr; }
}

/* ── Карточка товара в корзине ───────────── */
.cart-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1.5px solid var(--border-color, rgba(255,231,197,1));
  align-items: center;
}
.cart-item:last-child { border-bottom: none; }

.cart-item__rows {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cart-item__image img {
  width: 90px;
  height: 70px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}
.cart-item__info { flex: 1; }
.cart-item__sku p {
  font-size: 12px;
  color: var(--text-soft, rgba(45,36,28,.6));
  margin: 0 0 4px;
}
.cart-item__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main, rgba(45,36,28,1));
  margin: 0;
  line-height: 1.3;
}
.cart-item__rows-last {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

/* ── Цена товара ─────────────────────────── */
.row-tex__sale p,
.row-tex__deff p { margin: 0; }
.row-tex__sale p {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main, rgba(45,36,28,1));
}
.row-tex__deff p {
  font-size: 14px;
  color: var(--text-soft, rgba(45,36,28,.55));
  text-decoration: line-through;
}
.cart-item__price-value--request {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent, #754620);
}

/* ── Счётчик количества в корзине ────────── */
.quantity-control {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border-color, rgba(255,231,197,1));
  border-radius: 10px;
  overflow: hidden;
  height: 42px;
}
.quantity-control__btn {
  width: 38px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--text-main, rgba(45,36,28,1));
  background: none;
  border: none;
  cursor: pointer;
  transition: background .15s;
  flex-shrink: 0;
}
.quantity-control__btn:hover {
  background: var(--border-color, rgba(255,231,197,1));
}
.quantity-control__input {
  width: 44px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main, rgba(45,36,28,1));
  border: none;
  background: none;
  padding: 0;
  outline: none;
}

/* ── Сводка (правая колонка) ─────────────── */
.cart-summary {
  background: var(--bg, rgba(255,240,219,1));
  border: 1.5px solid var(--border-color, rgba(255,231,197,1));
  border-radius: 20px;
  padding: 28px 28px 32px;
  position: sticky;
  top: 100px;
}
.cart-summary__title h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-main, rgba(45,36,28,1));
  margin: 0 0 20px;
}
.cart-summary__rows { margin-bottom: 20px; }
.cart-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color, rgba(255,231,197,.7));
  font-size: 15px;
}
.cart-summary__row:last-child { border-bottom: none; }
.cart-summary__label p,
.cart-summary__label { color: var(--text-soft, rgba(45,36,28,.75)); }
.cart-summary__value p,
.cart-summary__value { font-weight: 600; color: var(--text-main, rgba(45,36,28,1)); }
.cart-summary__note {
  font-size: 13px;
  color: var(--accent, #754620);
  font-style: italic;
}

/* ── Промокод ────────────────────────────── */
.promocode-custom { margin: 20px 0; }
.promocode-custom__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft, rgba(45,36,28,.7));
  margin-bottom: 8px;
}
.promocode-custom__input {
  display: flex;
  gap: 8px;
}
.promocode-custom__input input[type="text"] {
  flex: 1;
  height: 44px;
  border: 1.5px solid var(--border-color, rgba(255,231,197,1));
  border-radius: 10px;
  padding: 0 14px;
  font-size: 14px;
  color: var(--text-main, rgba(45,36,28,1));
  background: #fff;
  outline: none;
}
.promocode-custom__input input:focus {
  border-color: var(--accent, #754620);
}
.promocode-custom__btn {
  height: 44px;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

/* ── Скидка ──────────────────────────────── */
.sale-cart {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 15px;
  color: #E05540;
}
.sale-cart p { margin: 0; font-weight: 600; }

/* ── Итого ───────────────────────────────── */
.cart-summary__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  margin: 4px 0 20px;
  border-top: 1.5px solid var(--border-color, rgba(255,231,197,1));
}
.cart-tex__text {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main, rgba(45,36,28,1));
}
.cart-tex__prise p,
.cart-summary__total-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main, rgba(45,36,28,1));
  margin: 0;
}

/* ── Кнопка оформления ───────────────────── */
.cart-summary__btn a,
.cart-summary__btn button {
  display: flex;
  width: 100%;
  height: 52px;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

/* ── Пустая корзина ──────────────────────── */
.woocommerce-info {
  padding: 32px;
  text-align: center;
  font-size: 16px;
  color: var(--text-soft, rgba(45,36,28,.7));
  border: 1.5px dashed var(--border-color, rgba(255,231,197,1));
  border-radius: 16px;
}

/* ── Лоадер ──────────────────────────────── */
.loader-gift {
  display: none;
  text-align: center;
  padding: 20px 0;
}
.loader-gift._active { display: block; }
.tex-page__content._active { opacity: .5; pointer-events: none; transition: opacity .2s; }

/* ── Чекбоксы ────────────────────────────── */
.checkbox-custom {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}
.checkbox-custom__input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.checkbox-custom__box {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border: 1.5px solid var(--border-color, rgba(255,231,197,1));
  border-radius: 5px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s;
}
.checkbox-custom__input:checked + .checkbox-custom__box {
  background: var(--accent, #754620);
  border-color: var(--accent, #754620);
}
.checkbox-custom__input:checked + .checkbox-custom__box::after {
  content: '';
  display: block;
  width: 6px;
  height: 10px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translateY(-1px);
}
.checkbox-custom__label {
  font-size: 14px;
  color: var(--text-main, rgba(45,36,28,1));
}

/* ── Адаптив ─────────────────────────────── */
@media (max-width: 768px) {
  .cart-page { padding: 32px 0 60px; }
  .cart-item {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .cart-item__rows-last {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .cart-summary { padding: 20px; }
}
@media (max-width: 650px) {
  .global--cart { padding: 100px 0 32px; }
  .global__cont h1 { font-size: 26px; }
  .cart-item__image img { width: 72px; height: 56px; }
}
