.welcome-section {
  padding: 24px 16px 8px;
  background-color: var(--surface);
}

.welcome-message {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.2;
}

.welcome-subtitle {
  font-size: 0.95rem;
  color: var(--text-mid);
  margin-top: 4px;
}

.search-bar-container {
  padding: 12px 16px;
  background-color: var(--surface);
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: #f8f9ff;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.search-icon {
  color: var(--text-light);
  flex-shrink: 0;
}

.clear-search {
  color: var(--text-light);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-bar input {
  border: none;
  background: none;
  width: 100%;
  font-size: 0.9rem;
  color: var(--text-dark);
  outline: none;
}

.section-header {
  padding: 16px;
}

.section-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-dark);
}

.categories-section {
  background-color: var(--surface);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 0 16px 16px;
}

@media (max-width: 360px) {
  .categories-grid {
    gap: 8px;
  }
}

.category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  min-width: 0;
}

.category-image-wrapper {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  border: 1px solid var(--border);
}

.category-image-wrapper img[src=""] {
  display: none;
}

.category-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.category-name {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-mid);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.stalls-section {
  background-color: var(--surface);
  margin-top: 5px;
}

.stalls-carousel {
  display: flex;
  overflow-x: auto;
  padding: 8px 16px 24px;
  gap: 20px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.stalls-carousel::-webkit-scrollbar {
  display: none;
}

.stall-card {
  min-width: 280px;
  max-width: 280px;
  height: 200px;
  border-radius: 24px;
  overflow: hidden;
  background-color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 10px 25px rgba(35, 22, 81, 0.08);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
}

.stall-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(35, 22, 81, 0.15);
}

.stall-card:active {
  transform: scale(0.96);
}

.stall-card.closed {
  filter: grayscale(1);
  opacity: 0.9;
}

.stall-image-container {
  height: 100%;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.stall-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.stall-card:hover .stall-image {
  transform: scale(1.15);
}

.stall-vignette {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.2) 50%,
    rgba(0, 0, 0, 0.8) 100%
  );
  z-index: 1;
}

.stall-info-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 20px;
  z-index: 2;
  color: white;
}

.stall-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.stall-desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.stall-closed-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  letter-spacing: 3px;
  font-size: 1.2rem;
  z-index: 3;
}

.no-stalls {
  padding: 16px;
  color: var(--text-light);
  font-style: italic;
  font-size: 0.85rem;
}

.popular-section {
  background-color: var(--surface);
  margin-top: 10px;
  flex: 1;
}

.items-list {
  padding: 0;
}

.no-results {
  padding: 40px 24px;
  text-align: center;
  color: var(--text-mid);
}

/* Feedback Snackbar */
.feedback-snackbar {
  position: fixed;
  bottom: 80px; /* Above bottom nav */
  left: 16px;
  right: 16px;
  background: white;
  border-radius: 20px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--primary-light);
  z-index: 4000;
  cursor: pointer;
  animation: snackbarSlideUp 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes snackbarSlideUp {
  from { transform: translateY(100px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.feedback-snackbar-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.feedback-snackbar-icon {
  width: 40px;
  height: 40px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feedback-snackbar-text h4 {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-dark);
  margin: 0;
}

.feedback-snackbar-text p {
  font-size: 11px;
  color: var(--text-mid);
  margin: 0;
  font-weight: 600;
}

.feedback-snackbar-action {
  color: var(--primary);
}
