/* Custom styles to complement Tailwind; adheres to design3.json */
:root { 
  --primary: #003399; /* Dark Blue */
  --secondary: #f8fafc; /* Light Blue/White for backgrounds and cards */
  --neutralDark: #374151; /* Dark Gray for text */
  --neutralLight: #f3f4f6; /* Light Gray for borders and backgrounds */
  --accent: #0066cc; /* Bright Blue for interactive elements */
  --linkText: #003399; /* Dark Blue for links */
  --cardBackground: #ffffff; /* White for cards */
  --borderColor: #e5e7eb; /* Light Gray for borders */
}

body { 
  font-family: 'Roboto', system-ui, -apple-system, Segoe UI, Helvetica, Arial, sans-serif; 
}

.input { 
  background: #fff; 
  border: 1px solid #e5e7eb; 
  border-radius: 0.5rem;
  padding: 0.75rem 1rem; 
  width: 100%; 
  transition: border-color 0.2s;
}

.input:focus { 
  outline: none; 
  border-color: var(--primary); 
  box-shadow: 0 0 0 3px rgba(40, 116, 240, 0.1);
}

/* Custom button styles */
.btn-primary {
  background: var(--primary);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all 0.2s;
}

.btn-primary:hover {
  background: #002266; /* Darker shade of primary */
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--accent);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: #0052a3; /* Darker shade of accent */
  transform: translateY(-1px);
}

/* Card styles */
.card {
  background: var(--cardBackground);
  border: 1px solid var(--borderColor);
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Navigation styles */
.nav-link {
  color: var(--neutralDark);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link.active {
  color: var(--primary);
  font-weight: 600;
}

/* Background utilities */
.bg-primary {
  background-color: var(--primary);
}

.bg-secondary {
  background-color: var(--secondary);
}

.bg-neutral {
  background-color: var(--neutralLight);
}

/* Text utilities */
.text-primary {
  color: var(--primary);
}

.text-secondary {
  color: var(--neutralDark);
}

.text-accent {
  color: var(--accent);
}

/* Border utilities */
.border-primary {
  border-color: var(--primary);
}

.border-neutral {
  border-color: var(--borderColor);
}

/* Swiper styles */
.swiper-container {
  width: 100%;
  height: auto;
  overflow: hidden;
  position: relative;
  margin: 0;
  padding: 0;
}

.swiper-wrapper {
  display: flex;
  align-items: stretch;
}

.swiper-slide {
  text-align: center;
  font-size: 18px;
  background: transparent;
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-shrink: 0;
}

/* Mobile styles for Featured Horizontal Scroll */
@media (max-width: 767px) {
  .swiper-slide .group {
    /* transform: scale(0.9); */
    transform-origin: center;
  }
  
  .swiper-slide .group img {
    /* height: 240px !important; */
    aspect-ratio: 5/4;
    object-fit: cover;
  }
  
  .swiper-slide .group h4 {
    font-size: 0.875rem;
  }
  
  .swiper-slide .group .text-lg {
    font-size: 1rem;
  }
  
  .swiper-slide .group .text-sm {
    font-size: 0.75rem;
  }
  
  .swiper-slide .group button {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
  }
}

/* Mobile styles for New Products Grid */
@media (max-width: 767px) {
  #new-products-grid .group {
    /* transform: scale(0.9); */
    transform-origin: center;
  }
  
  #new-products-grid .group img {
    /* height: 280px !important; */
    aspect-ratio: 5/4;
    object-fit: cover;
  }
  
  #new-products-grid .group h4 {
    font-size: 0.875rem;
  }
  
  #new-products-grid .group .text-lg {
    font-size: 1rem;
  }
  
  #new-products-grid .group .text-sm {
    font-size: 0.75rem;
  }
  
  #new-products-grid .group button {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
  }
  
  #new-products-grid {
    /* gap: 8px !important; */
  }
}

.swiper-pagination {
  position: relative;
  margin-top: 20px;
  text-align: center;
}

.swiper-pagination-bullet {
  background: var(--borderColor);
  opacity: 0.5;
}

.swiper-pagination-bullet-active {
  background: var(--primary);
  opacity: 1;
}

/* Line clamp utility for text truncation */
.line-clamp-1 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}
