/* webslit-landing sepet sayfası */

/* Görsel breadcrumb-bg yok — düz, başlıksız trail */
.ws-cart-breadcrumb.breadcrumb-area {
  padding: 18px 0;
  background: transparent;
  position: relative;
}

.ws-cart-breadcrumb .breadcrumb-trail {
  margin: 0;
}

.ws-cart-breadcrumb .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  background: transparent;
}

.ws-cart-breadcrumb .breadcrumb-item {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  line-height: 1.5;
  color: var(--tg-body-font-color, #696969);
}

.ws-cart-breadcrumb .breadcrumb-item a {
  color: var(--tg-body-font-color, #696969);
  text-decoration: none;
}

.ws-cart-breadcrumb .breadcrumb-item a:hover {
  color: var(--tg-primary-color, #0d9b4d);
}

.ws-cart-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  padding: 0 10px;
  color: #9ca3af;
}

.ws-cart-breadcrumb .trail-end span {
  color: var(--tg-heading-font-color, #222);
  font-weight: 600;
}

.ws-cart-empty {
  padding: 60px 15px;
}

.cart__table .product__quantity .ws-cart-qty-wrap {
  position: relative;
  width: 116px;
  margin: 0;
  display: inline-block;
}

.cart__table .product__quantity .ws-cart-qty {
  width: 100%;
  border: 1px solid #e1e1e1;
  border-radius: 5px;
  height: 45px;
  text-align: center;
  padding: 0 30px;
  font-size: 14px;
  color: #282828;
  font-weight: 600;
  background: #fff;
}

.cart__table .product__quantity .ws-cart-qty-btn {
  position: absolute;
  top: 0;
  width: 31px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: #696868;
  cursor: pointer;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
}

.cart__table .product__quantity .ws-cart-qty-minus {
  left: 0;
  border-right: 1px solid #e1e1e1;
}

.cart__table .product__quantity .ws-cart-qty-plus {
  right: 0;
  border-left: 1px solid #e1e1e1;
}

.cart__table .product__remove .ws-cart-remove {
  font-size: 25px;
  line-height: 1;
  color: var(--tg-primary-color);
  cursor: pointer;
}

.cart__table .product__remove .ws-cart-remove:hover {
  color: var(--tg-heading-font-color, #222);
}

.cart__table tr.is-updating {
  opacity: 0.65;
  pointer-events: none;
}

.cart__collaterals-wrap .ws-cart-shipping-block {
  display: block;
  align-items: flex-start;
}

.cart__collaterals-wrap .ws-cart-ship-option {
  font-weight: 500;
}

.cart__collaterals-wrap .ws-cart-ship-option input {
  margin: 0;
}

.cart__table .ws-cart-line-img {
  display: inline-block;
}

@media (max-width: 991.98px) {
  .cart__collaterals-wrap {
    margin-left: 0;
    margin-top: 30px;
  }
}

@media (max-width: 767.98px) {
  .cart__table thead {
    display: none;
  }

  .cart__table tbody tr.ws-cart-line {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    grid-template-areas:
      "thumb name remove"
      "thumb price price"
      "thumb qty subtotal";
    gap: 8px 12px;
    padding: 16px 0;
    border-top: 1px solid #ebebeb;
  }

  .cart__table tbody td {
    border: none !important;
    padding: 0 !important;
  }

  .cart__table tbody td.product__thumb { grid-area: thumb; }
  .cart__table tbody td.product__name { grid-area: name; }
  .cart__table tbody td.product__price { grid-area: price; }
  .cart__table tbody td.product__quantity { grid-area: qty; text-align: left; }
  .cart__table tbody td.product__subtotal { grid-area: subtotal; text-align: right; }
  .cart__table tbody td.product__remove { grid-area: remove; text-align: right; }

  .cart__table tbody tr:last-child td.cart__actions {
    display: block;
    padding-top: 20px !important;
  }

  .cart__actions-form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin-bottom: 12px;
  }

  .update__cart-btn {
    float: none !important;
    text-align: left !important;
  }
}

/* Çok satırlı sepet indirimleri — her satır alt alta (list-wrap li flex'ini ezer) */
.ws-cart-page .cart__collaterals-wrap .list-wrap li.ws-cart-discount-lines {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0.65rem;
  list-style: none;
}

.ws-cart-page .ws-cart-discount-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
}

.ws-cart-page .ws-cart-discount-lines[hidden] {
  display: none !important;
}

.ws-cart-page .ws-cart-discount-label {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.35rem;
  min-width: 0;
  flex: 1 1 auto;
  font-weight: 500;
}

.ws-cart-page .ws-discount-label-icon {
  flex-shrink: 0;
  line-height: 1.4;
}

.ws-cart-page .ws-cart-discount {
  flex-shrink: 0;
  white-space: nowrap;
  font-weight: 500;
  color: red;
}

.ws-cart-page .ws-cart-discount-line,
.ws-cart-page .ws-cart-discount-label,
.ws-cart-page .ws-cart-discount-label .ws-discount-label-text {
  color: red;
  font-weight: 500;
}

.ws-cart-page .ws-cart-coupon-applied {
  color: var(--tg-body-font-color, #666);
  font-size: 0.875rem;
}

.ws-cart-page .ws-cart-shipping-estimate-note {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--tg-body-font-color, #666);
}

.ws-cart-page .ws-cart-shipping-estimate-note[hidden] {
  display: none !important;
}

.ws-cart-page .cart__collaterals-wrap .list-wrap li.ws-cart-shipping-block {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
}
