/* =========================================================
   OKUT.NET.TR – Sepet sayfası (homev2)
   checkout.css üzerine eklenir
   ========================================================= */

.cart-row,
.cart-add {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto auto;
  gap: 14px 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--brand-50);
}

.cart-row:last-of-type,
.cart-add:last-of-type {
  border-bottom: 0;
}

.cart-add {
  grid-template-columns: 62px minmax(0, 1fr) auto auto;
}

.cart-info b {
  display: block;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.3;
}

.cart-info small {
  display: block;
  color: var(--muted);
  font-size: .82rem;
  margin-top: 2px;
}

.cart-info del {
  color: #d63031;
}

.cart-total {
  text-align: right;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  min-width: 96px;
}

.cart-total small {
  display: block;
  font-size: .72rem;
  font-weight: 500;
  color: var(--muted);
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid #e3def8;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.qty-stepper button {
  width: 40px;
  height: 44px;
  border: 0;
  background: var(--brand-50);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-size: 1rem;
}

.qty-stepper button:hover {
  background: var(--brand-100);
}

.qty-stepper input {
  width: 52px;
  height: 44px;
  border: 0;
  text-align: center;
  font-weight: 700;
  color: var(--ink);
  background: transparent;
  -moz-appearance: textfield;
}

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

.qty-stepper input:focus {
  outline: none;
  background: var(--brand-50);
}

.cart-remove-form {
  margin-top: 6px;
}

.cart-remove {
  background: none;
  border: 0;
  padding: 0;
  color: #d63031;
  font-size: .82rem;
  font-weight: 600;
}

.cart-remove:hover {
  text-decoration: underline;
}

.cart-empty {
  text-align: center;
  padding: 30px 10px;
  color: var(--muted);
}

.cart-empty i {
  font-size: 2.6rem;
  color: var(--brand);
  opacity: .6;
}

.cart-empty p {
  margin: 8px 0 18px;
}

@media (max-width: 767.98px) {
  .cart-row,
  .cart-add {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .cart-row .qty-stepper {
    grid-column: 2;
    justify-self: start;
  }

  .cart-row .cart-total {
    grid-column: 2;
    text-align: left;
  }

  .cart-add .cart-total,
  .cart-add .btn {
    grid-column: 2;
    justify-self: start;
    text-align: left;
  }
}
