/* styles/products.css */

.products-hero {
  background: linear-gradient(rgba(5,18,15,0.85), rgba(5,18,15,0.85)), 
              url('https://picsum.photos/id/1015/2000/800') center/cover;
  color: white;
  text-align: center;
  padding: 120px 20px 80px;
}

.products-hero h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}

.products-hero p {
  font-size: 1.4rem;
  opacity: 0.9;
}

.section-title {
  text-align: center;
  font-size: 2.8rem;
  margin-bottom: 3rem;
  color: #d4af77;
}

.carousel-section {
  background: #04100d;
  padding: 80px 5%;
}

.carousel-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 16px;
}

.carousel-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
  min-width: 100%;
  position: relative;
}

.carousel-slide img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.slide-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(5,18,15,0.9));
  padding: 30px 25px 25px;
  color: white;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.6);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 20;
}

.carousel-btn:hover {
  background: #d4af77;
  color: #05120f;
}

.carousel-btn.prev { left: 20px; }
.carousel-btn.next { right: 20px; }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 32px;
  max-width: 1400px;
  margin: 0 auto;
}

.product-card {
  background: #0a1f1b;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  transition: transform 0.4s ease;
}

.product-card:hover {
  transform: translateY(-10px);
}

.card-image {
  height: 240px;
  overflow: hidden;
  position: relative;
}

.card-image img,
.card-image video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.product-card:hover .card-image img,
.product-card:hover .card-image video {
  transform: scale(1.08);
}

.card-content {
  padding: 26px;
}

.card-content h3 {
  font-size: 1.35rem;
  margin-bottom: 18px;
  line-height: 1.3;
}

.card-meta {
  margin: 18px 0 16px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-weight: 600;
  font-size: 1.15rem;
}

.meta-item:last-child {
  margin-bottom: 0;
}

.price {
  color: #d4af77;
}

.location {
  color: #10b981;
}

.description {
  font-size: 1.02rem;
  opacity: 0.88;
  margin-bottom: 22px;
  line-height: 1.5;
}

.whatsapp-btn {
  width: 100%;
  background: #25D366;
  color: white;
  border: none;
  padding: 14px;
  border-radius: 50px;
  font-size: 1.08rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
}

.whatsapp-btn:hover {
  background: #20ba5a;
  transform: scale(1.03);
}

.video-wrapper {
  position: relative;
}

.speaker-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0,0,0,0.65);
  color: white;
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
}

@media (max-width: 768px) {
  .products-hero h1 { font-size: 2.5rem; }
  .cards-grid { grid-template-columns: 1fr; }
}