:root {
  color-scheme: light;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
}

.category-btn {
  min-width: 76px;
  border-radius: 6px;
  padding: 0.55rem 0.8rem;
  transition: background-color 160ms ease, color 160ms ease;
}

.category-btn:hover,
.category-btn.active {
  background: #f7e9ec;
  color: #8f4d5d;
}

.skeleton-card {
  height: 420px;
  border-radius: 8px;
  border: 1px solid #fde2e7;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent),
    linear-gradient(#f6edf0 0 0);
  background-size: 200% 100%, 100% 100%;
  animation: shimmer 1.15s infinite;
}

.stock-available,
.stock-sold {
  display: inline-flex;
  flex-shrink: 0;
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
}

.stock-available {
  background: #ecfdf5;
  color: #047857;
}

.stock-sold {
  background: #f4f4f5;
  color: #52525b;
}

.detail-row {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 1rem;
  border-bottom: 1px solid #f4e4e8;
  padding-bottom: 0.75rem;
}

.detail-row dt {
  color: #71717a;
  font-weight: 600;
}

.detail-row dd {
  color: #2f2a2b;
  font-weight: 600;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.modal-thumbnail {
  height: 72px;
  width: 72px;
  flex: 0 0 72px;
  overflow: hidden;
  border-radius: 6px;
  border: 2px solid transparent;
  background: #fffaf8;
  opacity: 0.72;
  transition: border-color 160ms ease, opacity 160ms ease;
}

.modal-thumbnail:hover,
.modal-thumbnail.active {
  border-color: #8f4d5d;
  opacity: 1;
}

.modal-thumbnail img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: top;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  display: flex;
  height: 40px;
  width: 40px;
  transform: translateY(-50%);
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 250, 248, 0.92);
  color: #8f4d5d;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 8px 24px rgba(47, 42, 43, 0.14);
  transition: background-color 160ms ease, transform 160ms ease;
}

.gallery-nav:hover {
  background: #ffffff;
  transform: translateY(-50%) scale(1.04);
}

@keyframes shimmer {
  from {
    background-position: 200% 0, 0 0;
  }

  to {
    background-position: -200% 0, 0 0;
  }
}

@media (max-width: 480px) {
  .detail-row {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .modal-thumbnail {
    height: 60px;
    width: 60px;
    flex-basis: 60px;
  }

  .gallery-nav {
    height: 36px;
    width: 36px;
    font-size: 1.75rem;
  }
}
