/* Category bar scroll on mobile */

.category-scroll {
  overflow-x: auto;
  white-space: nowrap;
}

.category-scroll::-webkit-scrollbar {
  display: none;
}

/* Product section spacing */

.product-section {
  margin-bottom: 2rem;
}

/* Scroll wrapper */

.scroll-wrapper {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.scroll-row {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
}

/* Cards */

.product-card {
  width: 240px;
  flex-shrink: 0;
}

/* Desktop (horizontal scroll) */

@media (min-width: 992px) {
  .scroll-row {
    flex-wrap: nowrap;
    justify-content: flex-start;
  }
}

/* Tablet (horizontal swipe) */

@media (min-width: 768px) and (max-width: 991.98px) {
  .scroll-row {
    flex-wrap: nowrap;
    justify-content: flex-start;
  }
}

/* Mobile (vertical grid) */

@media (max-width: 767.98px) {
  .scroll-row {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 767.98px) {
  .product-card {
    width: 240px;
    flex: 0 0 auto;
  }
}

/* Tag badge */

.active-tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #0d6efd;
  color: white;
  padding: 5px 10px;
  border-radius: 14px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-top: 10px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.active-tag-badge:hover {
  background: #0b5ed7;
}

.active-tag-badge::after {
  content: "×";
  font-size: 14px;
  font-weight: bold;
}

/* Product card internals */

.product-actions {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin-top: 10px;
}

.card-body {
  min-height: 140px;
}

.product-card-description {
  font-size: 0.85rem;
  color: #555;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  max-width: 100%;
  line-height: 1.2rem;
  height: 2.4rem;
}

.card-price {
  font-size: 0.85rem;
  font-weight: bold;
  margin: 4px 0;
  color: #007bff;
}

/* Marquee title */

.scroll-text-container {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.scroll-text {
  display: flex;
  white-space: nowrap;
  animation: marquee 10s linear infinite;
}

.scroll-text span {
  padding-right: 40px;
  min-width: max-content;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Quantity input */

.index-qty-input {
  width: 50px;
  text-align: center;
  padding: 4px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

