/* Gift Categories & Gifts Scrollable Sections */
.gift-categories-scroll,
.gift-items-scroll {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #adb5bd #f1f3f5;
  padding-bottom: 12px;
}

.gift-categories-scroll::-webkit-scrollbar,
.gift-items-scroll::-webkit-scrollbar {
  height: 6px;
}

.gift-categories-scroll::-webkit-scrollbar-track,
.gift-items-scroll::-webkit-scrollbar-track {
  background: #f1f3f5;
  border-radius: 10px;
}

.gift-categories-scroll::-webkit-scrollbar-thumb,
.gift-items-scroll::-webkit-scrollbar-thumb {
  background: #adb5bd;
  border-radius: 10px;
}

/* Category Card */
.gift-category-card {
  transition: all 0.25s ease;
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 0.75rem;
  cursor: pointer;
  user-select: none;
  pointer-events: auto;
  flex-shrink: 0;
}

.gift-category-card:hover {
  transform: translateY(-4px) scale(1.03);
  border-color: #0d6efd;
  box-shadow: 0 8px 20px rgba(13, 110, 253, 0.15);
  background: linear-gradient(145deg, #f8f9fa, #ee3e3e);
}

.gift-category-card.active {
  transform: translateY(-4px) scale(1.03);
  border: 2px solid #0d6efd;
  box-shadow: 0 8px 20px rgba(13, 110, 253, 0.25);
  background: linear-gradient(145deg, #f8f9fa, #4290f6);
}

/* Gift Card */
.gift-card {
  transition: all 0.2s ease;
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 0.75rem;
  cursor: pointer;
  user-select: none;
}

.gift-card:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.gift-card.selected {
  border: 2px solid #198754;
  background-color: rgba(25, 135, 84, 0.05);
  box-shadow: 0 10px 25px rgba(25, 135, 84, 0.15);
}

/* Quantity input in gifts */
.gift-qty {
  max-width: 60px !important;
}

/* Modal scroll */
.modal-body {
  max-height: 70vh;
  overflow-y: auto;
}

/* Attribute selects */
.attribute-select {
  transition: border-color 0.2s;
}

.attribute-select:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.25rem rgba(13,110,253,0.25);
}

/* Out of stock attribute */
.attribute-select.out-of-stock {
  border-color: #dc3545;
  background-color: #fff5f5;
}

/* Stock info */
#stockInfo {
  font-size: 0.875rem;
}

#availableStock.low-stock {
  color: #dc3545;
  font-weight: 600;
}

.quantity-wrapper {
  position: relative;
  max-width: 180px;
  margin: 0 auto;
}

.quantity-input {
  border: 2px solid #dee2e6;
  border-radius: 12px;
  transition: all 0.2s ease;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.quantity-input:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
  outline: none;
}

.quantity-input::-webkit-inner-spin-button,
.quantity-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.qty-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f1f3f5;
  border: none;
  font-size: 1.1rem;
  color: #495057;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  cursor: pointer;
  z-index: 5;
}

.qty-btn:hover {
  background: #e2e6ea;
  transform: scale(1.08);
}

.qty-btn:active {
  transform: scale(0.95);
}

.qty-dec {
  left: 6px;
}

.qty-inc {
  right: 6px;
}

/* Visual feedback when near limit */
.quantity-input.max-reached {
  border-color: #dc3545;
  background-color: #fff5f5;
}

#qtyFeedback {
  font-size: 0.85rem;
  transition: opacity 0.3s;
}

#qtyFeedback.show {
  opacity: 1;
}
