
/* Quantity Style Like Digikala */
.hsn-qty {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
  width: 120px;
}

.hsn-qty button {
  width: 35px;
  height: 40px;
  border: none;
  background: #f7f7f7;
  font-size: 20px;
  cursor: pointer;
  transition: 0.2s;
}

.hsn-qty button:hover {
  background: #e6e6e6;
}

.hsn-qty input.qty {
  width: 50px !important;
  text-align: center;
  border: none !important;
  box-shadow: none !important;
  height: 40px;
  font-size: 16px;
}

/* Add to your theme's CSS */
button.update-cart.loading {
  opacity: 0.7;
  cursor: not-allowed;
}

button.update-cart.loading .update-text {
  display: none;
}

button.update-cart.loading .loading-text {
  display: inline-block;
}

/* Quantity buttons */
.hsn-qty {
  display: flex;
  align-items: center;
}

.hsn-qty button {
  width: 30px;
  height: 30px;
  border: 1px solid #ddd;
  background: #f5f5f5;
  cursor: pointer;
  font-size: 16px;
}

.hsn-qty input.qty {
  width: 50px;
  height: 30px;
  text-align: center;
  border: 1px solid #ddd;
  margin: 0 5px;
}
/* Cart loading states */
.hsn-qty {
    display: flex;
    align-items: center;
}

.hsn-qty button {
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    background: #f5f5f5;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hsn-qty button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.hsn-qty input.qty {
    width: 50px;
    height: 30px;
    text-align: center;
    border: 1px solid #ddd;
    margin: 0 5px;
    -moz-appearance: textfield;
}

.hsn-qty input.qty::-webkit-outer-spin-button,
.hsn-qty input.qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Updating states */
tr.updating {
    opacity: 0.7;
    pointer-events: none;
}

button.update-cart.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.update-text, .loading-text {
    display: inline-block;
}

button.update-cart.loading .update-text {
    display: none;
}

button.update-cart.loading .loading-text {
    display: inline-block;
}

/* Remove button */
.sc-produc-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s;
}

.sc-produc-remove:hover {
    background: #ff0000;
    border-color: #ff0000;
}

.sc-produc-remove:hover img {
    filter: brightness(0) invert(1);
}
/* Add to your cart.css */
.cart_item.updating {
    opacity: 0.5;
    pointer-events: none;
    position: relative;
}

.cart_item.updating:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.7);
    z-index: 10;
}

/* Empty cart message */
.cart-empty {
    padding: 50px 20px;
    text-align: center;
}

.cart-empty p {
    font-size: 18px;
    margin-bottom: 20px;
    color: #666;
}

/* Ensure totals are visible */
.e-totalsumry-list.total .ts-list-shead {
    font-size: 20px;
    font-weight: bold;
    color: #333;
}