/* Custom Styles & Polishing */

@layer utilities {
  .aspect-4\/3 {
    aspect-ratio: 4 / 3;
  }
}

/* Custom subtle scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* Line clamps */
.line-clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

/* Smooth modal transitions */
.modal-open {
  opacity: 1 !important;
  pointer-events: auto !important;
}

.modal-open > div {
  transform: scale(1) !important;
}

/* Smooth cart drawer */
.drawer-open {
  opacity: 1 !important;
  pointer-events: auto !important;
}

.drawer-open #cart-drawer {
  transform: translateX(0) !important;
}

/* Toast animations */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.toast-animate {
  animation: slideInUp 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Product Card Hover Enhancements */
.product-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -10px rgba(16, 185, 129, 0.15);
}
