body {
  opacity: 1;
}

body {
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.scroll-container {
  display: flex;
  overflow-x: auto;
  gap: 12px;
}

.table-wrapper {
  overflow-x: auto;
}

button {
  width: auto;
}

@media (max-width: 480px) {
  button {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    width: 100%;
  }
}

#app-splash {
  opacity: 1;
  transition: opacity 500ms ease;
}

#app-splash.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.reveal-item {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(8px);
  transition:
    opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

[data-mobile-nav].is-open,
[data-admin-sidebar-mobile].is-open,
[data-admin-mobile-menu].is-open {
  display: block;
}

.js-hidden {
  display: none !important;
}

.upi-panel {
  animation: upi-fade-in 0.35s ease-out;
}

.suggested-section {
  display: grid;
  gap: 1.5rem;
}

.suggested-scroll {
  display: flex;
  overflow-x: auto;
  gap: 12px;
  padding: 10px 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.category-chip-row {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.25rem 0.125rem 0.5rem;
  margin-inline: -0.125rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}

.category-chip-row::-webkit-scrollbar {
  display: none;
}

.category-chip-row [data-category-button] {
  flex: 0 0 auto;
  white-space: nowrap;
  scroll-snap-align: start;
}

.suggested-card {
  min-width: 160px;
  max-width: 160px;
  flex: 0 0 auto;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.suggested-card-image {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.suggested-card-body {
  display: grid;
  gap: 0.35rem;
}

.suggested-card-title {
  font-size: 0.95rem;
  line-height: 1.35;
  color: #020617;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.suggested-card-price {
  font-size: 0.95rem;
  font-weight: 600;
  color: #0f172a;
}

@media (min-width: 640px) {
  .category-chip-row {
    flex-wrap: wrap;
    overflow: visible;
    padding: 0;
    margin-inline: 0;
    scrollbar-width: auto;
    scroll-snap-type: none;
  }
}

@keyframes upi-fade-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
