/* Custom styles beyond Tailwind */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Container max-width override */
.container {
  max-width: 1170px !important;
}

/* Hero Swiper customization */
.hero-swiper {
  width: 100%;
  height: 600px;
}

.hero-swiper .swiper-button-next,
.hero-swiper .swiper-button-prev {
  color: white;
}

.hero-swiper .swiper-pagination-bullet {
  background: white;
  opacity: 0.5;
}

.hero-swiper .swiper-pagination-bullet-active {
  opacity: 1;
}

/* Button hover effects */
.btn-primary {
  transition: transform 0.2s ease-in-out;
}

.btn-primary:hover {
  transform: translateY(-2px);
}

/* Card hover effects */
.product-card {
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Form input focus effects */
.form-input:focus {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* Mobile menu animation */
@keyframes slideDown {
  from {
    transform: translateY(-10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.mobile-menu {
  animation: slideDown 0.3s ease-out;
}

/* 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;
}

/* Loading spinner */
.spinner {
  border: 3px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  border-top: 3px solid #3b82f6;
  width: 24px;
  height: 24px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Image overlay transitions */
.image-overlay {
  transition: opacity 0.3s ease-in-out;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-swiper {
    height: 400px;
  }

  h1 {
    font-size: 2rem !important;
  }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Product Swiper customization */
.product-swiper {
  padding: 20px 0 60px !important;
}

.product-swiper .swiper-button-next,
.product-swiper .swiper-button-prev {
  color: #2563eb;
}

.product-swiper .swiper-pagination-bullet {
  background: #2563eb;
  opacity: 0.5;
}

.product-swiper .swiper-pagination-bullet-active {
  opacity: 1;
}

/* Product card hover effects */
.product-card {
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
