/* Сторінка кошика — Pibu */
.gf-cart-page__title {
  margin-bottom: 0;
}

.gf-cart-table-wrap {
  overflow-x: auto;
  border: 1px solid #ececf0;
  border-radius: 12px;
  background: #fff;
}

.gf-cart-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.gf-cart-table thead th {
  padding: 14px 16px;
  text-align: left;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #666;
  background: #fafafa;
  border-bottom: 1px solid #ececf0;
}

.gf-cart-table tbody td {
  padding: 16px;
  vertical-align: middle;
  border-bottom: 1px solid #f0f0f2;
}

.gf-cart-table tbody tr:last-child td {
  border-bottom: none;
}

.gf-cart-product {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 220px;
}

.gf-cart-product__img {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border-radius: 8px;
  background: #f6f6f8;
  object-fit: contain;
  border: 1px solid #eee;
}

.gf-cart-product__name {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 4px;
}

.gf-cart-product__name a {
  color: inherit;
  text-decoration: none;
}

.gf-cart-product__name a:hover {
  color: var(--accent, #e61f7f);
}

.gf-cart-product__sku {
  font-size: 0.85rem;
  color: #777;
  margin: 0;
}

.gf-cart-price {
  font-weight: 600;
  white-space: nowrap;
}

.gf-cart-qty-wrap {
  display: inline-flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.gf-cart-qty-wrap button {
  width: 36px;
  height: 36px;
  border: none;
  background: #fafafa;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
}

.gf-cart-qty-wrap button:hover {
  background: #f0f0f2;
  color: var(--accent, #e61f7f);
}

.gf-cart-qty-wrap input {
  width: 48px;
  height: 36px;
  border: none;
  border-left: 1px solid #eee;
  border-right: 1px solid #eee;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
  -moz-appearance: textfield;
}

.gf-cart-qty-wrap input::-webkit-outer-spin-button,
.gf-cart-qty-wrap input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.gf-cart-line-total {
  font-weight: 700;
  white-space: nowrap;
  color: var(--accent, #e61f7f);
}

.gf-cart-line-total__unit {
  display: block;
  font-size: 0.78rem;
  font-weight: 400;
  color: #888;
  margin-top: 2px;
}

.gf-cart-remove {
  width: 40px;
  height: 40px;
  border: 1px solid #e8e8ec;
  border-radius: 8px;
  background: #fff;
  color: #888;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.gf-cart-remove:hover {
  border-color: #e61f7f;
  color: #e61f7f;
  background: #fff5f9;
}

/* Прогрес до мінімуму */
.gf-cart-minimum {
  margin-top: 2rem;
  padding: 1.25rem 1.35rem;
  background: #fafafa;
  border-radius: 12px;
  border: 1px solid #ececf0;
}

.gf-cart-minimum__text {
  font-size: 0.95rem;
  margin: 0 0 0.75rem;
  color: #333;
}

.gf-cart-minimum__text strong {
  color: var(--accent, #e61f7f);
}

.gf-cart-minimum__bar {
  height: 10px;
  background: #e8e8ec;
  border-radius: 999px;
  overflow: hidden;
}

.gf-cart-minimum__fill {
  height: 100%;
  background: linear-gradient(90deg, #e61f7f, #f06aab);
  border-radius: 999px;
  transition: width 0.35s ease;
  min-width: 0;
}

.gf-cart-minimum.is-complete .gf-cart-minimum__fill {
  background: linear-gradient(90deg, #2e9b5f, #45c47a);
}

/* Знижки */
.gf-cart-discounts {
  margin-top: 2rem;
}

.gf-cart-discounts__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 1rem;
}

.gf-discount-tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

@media (max-width: 767px) {
  .gf-discount-tiers {
    grid-template-columns: 1fr;
  }
}

.gf-discount-tier {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 1rem 1.1rem;
  background: #f3f3f5;
  border-radius: 12px;
  border: 2px solid transparent;
  transition: border-color 0.2s, background 0.2s;
}

.gf-discount-tier.is-active {
  border-color: var(--accent, #e61f7f);
  background: #fff5f9;
}

.gf-discount-tier.is-reached {
  border-color: #2e9b5f;
  background: #f0faf4;
}

.gf-discount-tier__label {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 2px;
  color: #1a1a1a;
}

.gf-discount-tier__threshold {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--accent, #e61f7f);
  margin: 0;
}

.gf-discount-tier.is-reached .gf-discount-tier__threshold {
  color: #2e9b5f;
}

.gf-discount-tier__hint {
  font-size: 0.78rem;
  color: #777;
  margin: 4px 0 0;
}

.gf-discount-tier__btn {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent, #e61f7f);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.1rem;
}

.gf-discount-tier__btn:hover {
  opacity: 0.9;
  color: #fff;
}

.gf-cart-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 2rem;
}

.gf-cart-actions .cs_btn {
  flex: 1 1 200px;
}

.gf-cart-actions .cs_btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.gf-cart-summary-card {
  position: sticky;
  top: 100px;
}

.gf-cart-summary-note {
  font-size: 0.85rem;
  color: #888;
  margin-top: 0.75rem;
}

.gf-cart-summary-note.is-warning {
  color: #c45c00;
}
