/* Tendance Moda Custom Styles — Production v7 */

body {
  font-family: 'Cairo', 'Tajawal', sans-serif;
  overflow-x: hidden;
  background-color: #FBF9F5;
  color: #121212;
  scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #F4EFEA;
}
::-webkit-scrollbar-thumb {
  background: #C5A059;
  border-radius: 3px;
}

/* RTL Helpers */
.rtl-grid {
  direction: rtl;
}
.dir-ltr {
  direction: ltr;
  text-align: left;
}

/* Smooth Image Zoom */
.product-card-img {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.product-card:hover .product-card-img {
  transform: scale(1.08);
}

/* Pulse animation for fast COD CTA */
@keyframes pulse-gold {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(197, 160, 89, 0.5);
  }
  50% {
    box-shadow: 0 0 0 14px rgba(197, 160, 89, 0);
  }
}
.btn-pulse-gold {
  animation: pulse-gold 2.2s infinite;
}

/* Floating WhatsApp button glow */
@keyframes pulse-green {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
  }
  50% {
    box-shadow: 0 0 0 16px rgba(37, 211, 102, 0);
  }
}
.whatsapp-float {
  animation: pulse-green 2.5s infinite;
}

/* Custom Badges */
.badge-sale {
  background: linear-gradient(135deg, #8B1E3F 0%, #C5A059 100%);
}

/* Glassmorphism & Backdrop */
.backdrop-blur-md {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Toast Container */
#toast-container {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast-msg {
  pointer-events: auto;
  animation: slideDown 0.3s ease-out forwards;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Custom Line Clamp */
.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;
}

/* Shimmer Loading Effect */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.skeleton-loader {
  background: linear-gradient(90deg, #f0e9e1 25%, #fbf9f5 50%, #f0e9e1 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

/* Accessibility: Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Prevent layout shift on images */
img {
  max-width: 100%;
  height: auto;
}

/* Fix aspect ratio for older browsers */
.aspect-3\/4 {
  aspect-ratio: 3 / 4;
}
