/* body {
  font-family: 'Roboto', sans-serif;
  background: #f9f9f9;
  margin: 0;
  padding: 0;
} */

.newarrivals-section {
  padding: 10px 0px;
}

.newarrivals-container::-webkit-scrollbar {
    display: none;
  }
.newarrivals-container {
  display: flex;
  overflow: hidden;
  overflow-x: auto;
  padding: 10px 0px;
  scroll-behavior: smooth;
  user-select: none;
  min-height: 200px;
}


.newarrivals-card {
  /* max-width: 210px;
  min-width: 210px; */

  flex: 0 0 210px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s ease;
  margin: 0px 10px;
  height: 300px;
  cursor: pointer;
}

.newarrivals-card.loaded {
  opacity: 1;
  transform: translateY(0);
}

.newarrivals-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.card-details {
  padding: 12px;
}

.card-details h3 {
  font-size: 1rem;
  margin: 0 0 5px;
  color: #222;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.card-details p {
  font-size: 0.8rem;
  margin: 0 0 10px;
  color: #666;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.card-details .price {
  font-size: 0.9rem;
  font-weight: bold;
  color: #ff9900;
}
.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.132);
  border: none;
  color: white;
  font-size: 2rem;
  padding: 0.5rem;
  cursor: pointer;
  z-index: 10;
  border-radius: 5px;
  user-select: none;
}

.scroll-btn:hover {
  background: rgba(0, 0, 0, 0.438);
}

.left-btn {
  left: 10px;
}

.right-btn {
  right: 10px;
}

/* Hide buttons on small screens */
@media (max-width: 768px) {
  .scroll-btn {
    display: none !important;
  }
  .newarrivals-container::-webkit-scrollbar {
    display: none;
  }
}
.loader-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.7);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

.spinner {
  border: 4px solid rgba(0,0,0,0.1);
  border-left-color: #ff9900;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin-bottom: 10px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.error-msg {
  color: red;
  text-align: center;
  padding: 20px;
}
/* Responsive */
@media (max-width: 768px) {

}