:root {
  --primary-color: #B01030;
  /* Maroon */
  --accent-red: #e31e25;
  /* Bright Red */
  /* Keeping compatibility var */
  --primary-red: #B01030;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #ffffff;
}

/* ===================== */
/* Image Skeleton Shimmer */
/* ===================== */
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

.img-skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 800px 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}

.img-fade {
  transition: opacity 0.35s ease;
}

.img-loaded {
  opacity: 1 !important;
}

.nav-link:hover {
  color: var(--accent-red);
}

.category-sidebar-item:hover {
  background-color: #f1f3f5;
  color: var(--primary-color);
  border-left: 4px solid var(--primary-color);
}

.search-bar {
  border: 2px solid var(--primary-color);
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: var(--accent-red);
}

/* Hide scrollbar for horizontal scroll */
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Live Search Dropdown Styles */
#search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 0 0 12px 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  max-height: 520px;
  overflow-y: auto;
  margin-top: 4px;
}

.search-suggestion-group-title {
  padding: 12px 16px 4px;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
}

.search-suggestion-item {
  transition: all 0.2s ease;
}

.search-suggestion-item:hover,
.search-suggestion-item.bg-gray-100 {
  background-color: #f8fafc;
}

.search-product-image {
  width: 44px;
  height: 44px;
  object-fit: contain;
  background: #f1f5f9;
  border-radius: 6px;
  padding: 4px;
  border: 1px solid #e2e8f0;
}

.search-product-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.25;
}

.search-product-price {
  color: var(--primary-red);
  font-weight: 700;
  font-size: 0.75rem;
  margin-top: 2px;
}

/* Slider Enhancements */
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.snap-x {
  scroll-snap-type: x mandatory;
}

.snap-center {
  scroll-snap-align: center;
}

#project-slider-container>div {
  scroll-snap-align: start;
}

.project-card {
  min-width: 33.333%;
  flex: 0 0 33.333%;
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: 8px;
  border: 1px solid #eee;
  overflow: hidden;
  transition: transform 0.3s ease, shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.project-card-image {
  flex: 0 0 200px;
  /* Reduced base height */
  width: 100%;
  overflow: hidden;
}

@media (max-width: 640px) {
  .project-card-image {
    flex: 0 0 160px;
    /* Even smaller on mobile */
  }
}

.project-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1rem;
  /* Reduced base padding */
  color: #333;
}

@media (max-width: 640px) {
  .project-card-content {
    padding: 0.75rem;
  }
}

.project-card h4 {
  font-size: 1.25rem;
  text-transform: none;
  letter-spacing: normal;
  line-height: 1.3;
  margin-bottom: 0.5rem;
  color: #111;
}

.project-card p {
  color: #666;
  font-size: 0.9rem;
}

@media (max-width: 1024px) {
  .project-card {
    min-width: 50%;
    flex: 0 0 50%;
  }
}

@media (max-width: 640px) {
  .project-card {
    min-width: 90%;
    flex: 0 0 90%;
  }
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  text-decoration: none;
}

.whatsapp-float:hover {
  background-color: #128c7e;
  transform: scale(1.1);
  color: white;
  box-shadow: 2px 5px 15px rgba(0, 0, 0, 0.4);
}

.whatsapp-float svg {
  width: 35px;
  height: 35px;
  fill: currentColor;
}

@media (max-width: 640px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
  }

  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }
}