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

.fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

/* Product Tags */
.tag {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 10;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.tag-new { background-color: #dbeafe; color: #1e40af; }
.tag-out-of-stock { background-color: #fee2e2; color: #991b1b; }
.tag-coming-soon { background-color: #f3e8ff; color: #6b21a8; }
.tag-sale { background-color: #dcfce7; color: #166534; }

.product-card:hover .product-image {
  transform: scale(1.03);
}

.product-image {
  transition: transform 0.3s ease;
}

.nav-link::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: #000;
  transition: width 0.3s;
}

.nav-link:hover::after {
  width: 100%;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Cart sidebar - Enhanced Glassmorphism */
.cart-sidebar {
  transition: transform 0.3s ease-out;
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
}

.cart-open {
  transform: translateX(0);
}

.cart-closed {
  transform: translateX(100%);
}

/* Dropdowns and search */
.group:hover .group-hover\:block {
  display: block;
}

.search-input {
  transition: all 0.3s ease;
}

.group-hover .absolute {
  animation: fadeInDown 0.2s ease-out forwards;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.mobile-categories {
  transition: all 0.3s ease;
  max-height: 0;
  overflow: hidden;
}

.mobile-categories:not(.hidden) {
  max-height: 500px;
}

/* Cart quantity buttons */
.cart-qty-btn {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  background: #f7fafc;
  cursor: pointer;
}

.cart-qty-btn:hover {
  background: #edf2f7;
}

/* Contact form and newsletter response */
#contact-response, 
#newsletter-response {
  transition: all 0.3s ease;
}

/* Product card hover effects */
.product-card {
  transition: all 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
}

/* Category images hover effect */
.group:hover .group-hover\:scale-110 {
  transform: scale(1.1);
}

/* Button hover animations */
button, 
a[class*="bg-"], 
a[class*="border"] {
  transition: all 0.3s ease;
}

/* Loading animations */
@keyframes pulse {
  0%, 100% {
    opacity: 0.6;
  }
  50% {
    opacity: 0.8;
  }
}

.animate-pulse {
  animation: pulse 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Mobile menu transition */
#mobile-menu {
  transition: max-height 0.3s ease;
  max-height: 0;
  overflow: hidden;
}

#mobile-menu:not(.hidden) {
  max-height: 500px;
}

/* Improved focus states for accessibility */
button:focus,
a:focus,
input:focus,
textarea:focus {
  outline: 2px solid rgba(0, 0, 0, 0.2);
  outline-offset: 2px;
}

/* Size selection buttons */
.size-option {
  transition: all 0.2s ease;
}

.size-option.bg-black {
  background-color: #000 !important;
  color: #fff !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
  
  .cart-sidebar {
    width: 100%;
  }
}

/* Product Tags */
.tag {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem; /* 12px */
  font-weight: 600;
  z-index: 10;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
  text-transform: uppercase; /* Optional: Makes tags look consistent */
}

.tag-new {
  background-color: #dbeafe; /* blue-100 */
  color: #1e40af; /* blue-800 */
}

.tag-out-of-stock {
  background-color: #fee2e2; /* red-100 */
  color: #991b1b; /* red-800 */
}

.tag-coming-soon {
  background-color: #f3e8ff; /* purple-100 */
  color: #6b21a8; /* purple-800 */
}

.tag-sale {
  background-color: #dcfce7; /* green-100 */
  color: #166534; /* green-800 */
}

