/* 產品展示專屬樣式 - 工業風背景 + RWD */
body {
  background: #f0f0f0; /* 整體淺灰底 */
}

.products-layout {
  background: linear-gradient(135deg, #f2f2f2 0%, #e0e0e0 100%);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.products-layout h2 {
  font-family: 'Oswald', sans-serif;
  color: #f39c12;
  margin-bottom: 10px;
}

.products-layout .intro {
  margin-bottom: 20px;
  font-size: 16px;
  color: #333;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr); /* ← 電腦版圖片欄位數量 */
  gap: 15px;
}

.gallery .card {
  background: #fff;
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
}

.gallery .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.gallery img {
  width: 100%;
  display: block;
  border-radius: 8px;
  cursor: pointer;
}

/* Lightbox */
#lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  text-align: center;
}

#lightbox img {
  max-width: 90%;
  max-height: 80%;
  margin-top: 5%;
  border-radius: 8px;
}

#lightbox .close {
  position: absolute;
  top: 20px; right: 30px;
  font-size: 40px;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
}

/* 📱 RWD 調整 */
@media (max-width: 1024px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}