/* style.css - Main stylesheet for Diamantina */

body {
  font-family: 'Tajawal', sans-serif;
  -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3,
.font-serif {
  font-family: 'Amiri', serif;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Navbar transition */
.nav-scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  padding-top: 10px !important;
  padding-bottom: 10px !important;
}

.dark .nav-scrolled {
  background-color: rgba(0, 0, 0, 0.9);
  border-bottom: 1px solid #222;
}

/* Loader */
.loader {
  border-top-color: #D4AF37;
  -webkit-animation: spinner 1.5s linear infinite;
  animation: spinner 1.5s linear infinite;
}

@keyframes spinner {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Swatch Styles */
.color-swatch-active {
  box-shadow: 0 0 0 2px white, 0 0 0 4px black;
}

.dark .color-swatch-active {
  box-shadow: 0 0 0 2px black, 0 0 0 4px white;
}

/* Animations */
@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-fade-in-up {
  animation: fadeIn 0.5s ease-out forwards;
}

/* Image Loading State - Simplified to prevent blur issues */
img.loading-skeleton {
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    animation: shimmer 2s infinite;
}
.dark img.loading-skeleton {
    background: linear-gradient(135deg, #222 0%, #1a1a1a 100%);
}

@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
