/* Khung nền Modal trượt */
.floating-sticky-bar {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translate(-50%, 150px);
  opacity: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--border-radius-xl);
  box-shadow: 
    0 4px 6px -1px rgba(0, 0, 0, 0.05),
    0 10px 25px -5px rgba(15, 23, 42, 0.15),
    0 25px 50px -12px rgba(15, 23, 42, 0.25),
    0 0 0 1px rgba(226, 232, 240, 0.8);
  z-index: 9999;
  padding: 14px 18px 14px 22px;
  width: max-content;
  max-width: 95%;
  transition:
    transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.4s ease;
}

.floating-sticky-bar.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

.fsb-container {
  display: flex;
  align-items: center;
  gap: 32px;
}

.fsb-left {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 400px;
}

.fsb-img {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--brand-color-1);
}

.fsb-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--gray-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fsb-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.fsb-price {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--brand-color-1);
  white-space: nowrap;
}

.fsb-qty-box {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-100);
  border: 1px solid var(--gray-300);
  border-radius: 30px;
  height: 38px;
  padding: 2px;
}

.fsb-qty-btn {
  width: 34px;
  height: 100%;
  border: none;
  background: transparent;
  color: var(--gray-600);
  cursor: pointer;
  border-radius: 50%;
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.fsb-qty-btn:hover {
  background: var(--gray-300);
  color: var(--gray-900);
}
.fsb-qty-input {
  width: 30px;
  height: 100%;
  text-align: center;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-700);
  pointer-events: none;
  display: flex;
  -moz-appearance: textfield;
  appearance: textfield;
}

.fsb-qty-input::-webkit-outer-spin-button,
.fsb-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.fsb-btn-buy {
  background: var(--brand-color-3);
  color: #fff;
  border: none;
  height: 42px;
  padding: 0 28px;
  border-radius: 30px;
  font-size: 1.5rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.25);
  transition: all 0.3s ease;
}

.fsb-btn-buy:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(5, 150, 105, 0.2);
  background: var(--brand-color-3-light);
}

@media (max-width: 900px) {
  .floating-sticky-bar {
    bottom: 20px;
    padding: 8px;
    width: 94%;
  }
  .fsb-container {
    gap: 15px;
    justify-content: space-between;
    width: 100%;
  }
  .fsb-left {
    max-width: none;
    flex: 1;
  }
  .fsb-title {
    font-size: 1.4rem;
    max-width: 150px;
  }
  .fsb-right {
    gap: 12px;
  }
  .fsb-qty-box {
    display: none;
  }
  .fsb-price {
    font-size: 1.6rem;
  }
  .fsb-btn-buy {
    padding: 0 20px;
    height: 38px;
  }
}

@media (max-width: 480px) {
  .fsb-title {
    display: none;
  }
}
