/* ======================    PRODUCTS SECTION ====================== */
.products-section {
  background: var(--background-color--dark);
  color: var(--color-white);
  padding: 4rem 2rem;
  overflow: hidden;
  position: relative;
}

@media (max-width: 768px) {
  .products-section {
    padding: 3rem 1rem;
  }
}

@media (max-width: 480px) {
  .products-section {
    padding: 2rem 0.5rem;
  }
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-style: italic;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
  .section-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }
}

/* Products Carousel Container with Navigation */
.products-carousel-container {
  display: flex;
  align-items: center;
  position: relative;
  width: 100%;
}

/* Horizontal Filmstrip Wrapper */
.products-carousel-wrapper {
  overflow: hidden;
  width: 100%;
}

/* Static Carousel (no auto-animation) */
.products-carousel {
  display: flex;
  gap: 2rem;
  transition: transform 0.5s ease;
}

@media (max-width: 768px) {
  .products-carousel {
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .products-carousel {
    gap: 1rem;
  }
}

.product-item {
  flex: 0 0 auto;
  width: 200px;
  height: 200px;
  background: rgb(255, 255, 255);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  position: relative;
  transition: transform 0.3s ease;
}

@media (max-width: 768px) {
  .product-item {
    width: 150px;
    height: 150px;
    padding: 0.8rem;
  }
}

@media (max-width: 480px) {
  .product-item {
    width: 120px;
    height: 120px;
    padding: 0.5rem;
  }
}

@media (max-width: 320px) {
  .product-item {
    width: 100px;
    height: 100px;
  }
}

.product-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  pointer-events: none;
}

.product-item img {
  max-width: 85%;
  max-height: 85%;
  object-fit: contain;
  transition: transform 0.5s ease;
  z-index: 2;
}

.product-item:hover {
  transform: translateY(-6px);
  border-color: var(--color-accent);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
}

.product-item:hover img {
  transform: scale(1.08);
}

/* Navigation Buttons */
.carousel-nav {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(15, 40, 59, 0.8);
  border: 1px solid var(--border-color);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  z-index: 10;
  flex-shrink: 0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .carousel-nav {
    width: 45px;
    height: 45px;
  }
}

@media (max-width: 480px) {
  .carousel-nav {
    width: 40px;
    height: 40px;
  }
}

.carousel-prev {
  margin-right: 15px;
}

.carousel-next {
  margin-left: 15px;
}

@media (max-width: 480px) {
  .carousel-prev {
    margin-right: 8px;
  }
  
  .carousel-next {
    margin-left: 8px;
  }
}

.carousel-nav:hover {
  background: var(--color-accent);
  transform: scale(1.1);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.carousel-nav:active {
  transform: scale(0.95);
}

.nav-arrow {
  font-size: 1.5rem;
  font-weight: bold;
}

@media (max-width: 480px) {
  .nav-arrow {
    font-size: 1.2rem;
  }
}

/* Landscape mode optimization */
@media (max-height: 500px) and (orientation: landscape) {
  .products-section {
    padding: 1.5rem 1rem;
  }
  
  .product-item {
    width: 100px;
    height: 100px;
  }
  
  .carousel-nav {
    width: 40px;
    height: 40px;
  }
}