/* Base Styles */
body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
}

.nyt-headline {
  font-family: 'Times New Roman', Times, serif;
  letter-spacing: 0.05em;
}

.section {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.section.active {
    display: block;
    opacity: 1;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Banner Styles */
.banner {
    background-image: url('https://alrani.kriztech.in/img/banner.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    z-index: 1;
    color: white;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: -1;
}

.banner .container {
    position: relative;
    z-index: 2;
}

.explore-btn {
    transition: all 0.3s ease;
    border: 2px solid black;
}

.explore-btn:hover {
    background-color: white !important;
    color: black !important;
}

/* Navigation */
.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link.active {
    font-weight: bold;
}

.nav-link.active:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background-color: black;
}

.nav-link:hover {
    transform: translateY(-2px);
}

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Product Grid */
#products-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
}

.product-card {
  transition: all 0.3s ease;
  position: relative;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Image Slider */
.product-slider {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.product-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal:not(.hidden) {
  opacity: 1;
  pointer-events: all;
}

/* Slider Dots */
.slider-dots {
  display: flex;
  justify-content: center;
  padding: 1rem 0;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #ccc;
  margin: 0 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.slider-dot.active {
  background-color: #000;
}

/* Discount Badge */
.discount-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #000;
  color: white;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  border-radius: 9999px;
  z-index: 10;
}

/* Footer Links */
footer a {
  transition: all 0.2s ease;
}

footer a:hover {
  transform: translateX(3px);
}

/* Responsive */
@media (max-width: 768px) {
  #products-container {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
  
  .modal > div {
    width: 95%;
    max-height: 90vh;
  }

  .nav-link.active:after {
    width: 15px;
  }
}