.item-remove {
  position: absolute;
  top: 2px;
  left: 53px;
  background: none;
  border: none;
  font-size: 20px;
  color: #999;
  cursor: pointer;
  background: #f5f5f5;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  transition: background 0.2s;
  text-align: center;
  line-height: 5px;
}

.item-remove:hover {
  background: #e0e0e0;
}

.cart {
  max-width: 900px;
  margin: 20px auto;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-family: Arial, sans-serif;
  background: #fff;
}

.cart h2 {
  margin-bottom: 20px;
}

.cart-item {
  position: relative;
  display: grid;
  grid-template-columns: 80px 1fr 120px 150px;
  gap: 10px;
  padding: 10px 0;
  margin: 20px 0 10px;
}

.item-img {
  width: 63px;
  height: auto;
}

.img-border {
  border: 1px solid #f5f5f5;
  border-radius: 4px;
  padding: 2px;
}

.item-info {
  font-size: 14px;
}

.item-title {
  font-family: Century Gothic, sans-serif;
  font-weight: bold;
  margin: 0 0 5px;
  font-size: 16px;
  color: #000;
}
.item-title a {
  text-decoration: none;
  color: #000;
}
.item-title a:hover {
  color: #006dff;
}

.item-size {
  color: #666;
  font-size: 13px;
}

.item-quantity {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}



.item-price-block {
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* чтобы цены выравнивались справа */
    gap: 2px;
}

.price-top {
    display: flex;
    align-items: center;
    gap: 6px;
}

.old-price {
    text-decoration: line-through;
    color: #000;
    font-size: 14px;
}

.price-current {
    font-size: 20px;
    font-weight: 700;
    color: #000;
}



.item-price {
  text-align: right;
  font-size: 20px;
  font-weight: bold;
}

.discount {
  background: #ffeb3b;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 4px;
  margin-right: 5px;
}

.new-price {
  display: block;
  color: #000;
}

.qty-btn {
  font-family: Arial Narrow;
  color: blue;
  width: 30px;
  height: 30px;
  min-width: 30px;
  min-height: 30px;
  background: #f5f5f5;
  border-radius: 50%;
  cursor: pointer;
  border: none;
  font-size: 24px;
  cursor: pointer;
  transition: background 0.2s;
  text-align: center;
  line-height: 5px;
}

.qty-btn:hover {
  background: #e0e0e0;
}

.qty-value {
  width: 50px;
  text-align: center;
  font-size: 15px;
  font-weight: 500;
  border: 1px solid #ccc;
  line-height: 32px;
  border-radius: 20%;
}

.remove-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 15px auto 0;
  background: none;
  border: none;
  color: #515151;
  font-size: 14px;
  text-decoration-line: underline;
  text-decoration-style: dashed;
  cursor: pointer;
  text-align: center;
}

.remove-link:hover {
  color: red;
} 

.parent-remove-link {
  display: flex;
  justify-content: center;
}

.cart-content {
  overflow-y: auto;
  overflow-x: hidden;
  max-height: 440px;
  margin: 0 auto;
  background: white;
  max-width: 760px;
  padding: 20px;
}

.form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
}

.btn-back {
  background: #f5f5f5;
  border: 1px solid #d6d6d6;
  border-radius: 8px;
  padding: 8px 15px;
  font-size: 16px;
  font-weight: 400;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-back:hover {
  background: #eaeaea;
}

.total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f2f4ff;
  border: 1px solid #607fd5;
  border-radius: 4px;
  padding: 10px 15px;
  width: 385px;
  height: 85px;
  margin-left: auto;
  margin-right: 20px;
  flex-wrap: wrap;
}

.order-btn{
  display: flex;
  font-family: "Century Gothic", CenturyGothic, sans-serif;
  color: #fff;
  font-size: 16px;
  align-items: center;
  justify-content: center;
  background: var(--blue-main, #006dff);
  border: none;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
  width: 225px;
  height: 36px;
  margin: 0 auto;
}

.order-btn:hover {
  background: var(--blue-active, #2E478D);
}

.total-row a {
  text-decoration: none;
}

.total-text {
  font-size: 24px;
  font-weight: 500;
  color: #000;
}

.total-text-mobile {
  display: flex;
  justify-content: space-between; 
  align-items: center;
  margin-bottom: 15px;
}

.remove-link {
  display: none;
}

@media (max-width: 1200px) {
  .total-row {
    margin: 20px auto;
    height: 116px;
    width: auto;
    max-width: 316px;
  }

  .total-row a {
    flex-basis: 100%;
    align-self: center; 
  }

  .item-remove {
    display: none;
  }

  .remove-link {
    display: flex;
  }

  .cart-item {
    border-bottom: 1px solid #eee;
  }
}

/* 🔻 Адаптив */
@media (max-width: 800px) {
  .cart-item {
    grid-template-columns: 100px 1fr;
    grid-template-rows: auto auto auto;
    align-items: start;
  }

  .item-img {
    grid-row: 1 / span 3; /* картинка слева */
  }

  .item-info {
    grid-column: 2;
  }

  .item-quantity {
    grid-column: 1;
    margin-top: 8px;
    justify-content: flex-start;
  }

  .item-price {
    grid-column: 2;
    text-align: right;
    margin-top: 4px;
  }

  .qty-value {
    width: 30px;
  }
}