/* General Reset */
body, h1, h2, p {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    color: #333;
  }
  
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
  }
  
  .product-section {
    background-color: #f9f9f9;
    padding: 40px 20px;
  }
  
  .product-title {
    text-align: center;
    font-size: 2.5rem;
    color: #222;
    margin-bottom: 10px;
  }
  
  .product-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 40px;
  }
  
  .product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }
  
  .product-item {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease;
  }
  
  .product-item:hover {
    transform: translateY(-10px);
  }
  
  .product-item img {
    width: 100%;
    height: auto;
  }
  
  .product-item h2 {
    font-size: 1.5rem;
    color: #222;
    margin: 15px 0 10px;
  }
  
  .product-item p {
    font-size: 1rem;
    color: #666;
    padding: 0 15px 15px;
  }
  
  /* Mobile Responsiveness */
  @media (max-width: 768px) {
    .product-title {
      font-size: 2rem;
    }
  
    .product-subtitle {
      font-size: 1rem;
    }
  
    .product-item h2 {
      font-size: 1.2rem;
    }
  
    .product-item p {
      font-size: 0.9rem;
    }
  }

.banner {
    margin-top: 01px;
    background: url('/images/backgroundProduct.png') no-repeat center center;
    background-size: cover;
    color: white;
    padding: 80px 30px;
    text-align: right; /* 텍스트를 우측 정렬 */
    position: relative;
}
.banner h1 {
    font-size: 48px; /* 글씨 크기 */
    margin: 0; /* 상하 여백 제거 */
    position: absolute; /* 절대 위치 지정 */
    bottom: 10px; /* 하단 여백 */
    right: 10px; /* 우측 여백 */
    color: #ffffff;
}

.header-bar {
    background-color: rgba(0, 0, 0, 0.119); /* 검은색 배경, 약간 투명 */
    color: rgb(49, 47, 47); /* 글씨 색상 흰색 */
    font-family: 'Arial', sans-serif; /* 기본 글씨체 */
    font-size: 16px; /* 글씨 크기 */
    padding: 10px 20px; /* 안쪽 여백 */
    display: flex; /* 가로 정렬 */
    align-items: center; /* 세로 정렬 */
    gap: 10px; /* 항목 간 간격 */
}

.header-item {
    white-space: nowrap; /* 텍스트 줄바꿈 방지 */
}

.divider {
    width: 1px; /* 선 두께 */
    align-self: stretch; /* 상하로 꽉 채움 */
    background-color: rgb(0, 0, 0); /* 선 색상 */
    margin: 0 5px; /* 선 좌우 여백 */
}


/* Tab Menu Styles */
.tab-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f4f4f4;
    padding: 10px 20px;
    border-bottom: 2px solid #ccc;
    font-family: 'Arial', sans-serif;
  }
  
  .tab {
    padding: 10px 20px;
    margin: 0 5px;
    text-decoration: none;
    color: #555;
    font-size: 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
  }
  
  .tab:hover {
    background-color: #ddd;
    color: #000;
  }
  
  .tab.active {
    background-color: #080808;
    color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
  
  .tab:active {
    transform: scale(0.98);
  }
  
  /* Mobile Responsiveness */
  @media (max-width: 768px) {
    .tab-menu {
      flex-wrap: wrap;
    }
  
    .tab {
      flex: 1 1 auto;
      text-align: center;
      margin: 5px 0;
    }
  }
  
  .stamping-terminal {
    display: flex;
    border: 1px solid #ccc;
}

.left-panel {
    width: 30%;
    background-color: #f0f4f8;
    padding: 20px;
    text-align: center;
}

.right-panel {
    width: 70%;
    padding: 20px;
}

h2 {
    color: #2a4d69;
}

h3 {
    color: #0078ff;
    margin-top: 0;
}

ul {
    list-style-type: none;
    padding: 0;
}

ul li {
    margin: 5px 0;
}


.imagesPic {
  display: flex;
  justify-content: center; 
  align-items: center;
  width: 100%;
  padding: 20px 0;
  box-sizing: border-box;
  gap: 10px; /* 🔹 이미지와 버튼 간격 추가 */
}

.imagesPic img {
  max-width: 100%;
  height: auto;
}

.toggle-btn {
  background-color: #0d3d80;
  color: #fff;
  border: none;
  border-radius: 50%;       /* 🔹 원형 버튼 */
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background 0.3s ease;
}

.toggle-btn:hover {
  background-color: #5a9bd3;  /* 🔹 호버 시 색상 변경 */
}

/* 숨겨진 이미지 섹션 */
.hidden-images {
  display: none;            /* 🔹 기본적으로 숨김 */
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4개씩 정렬 */
  gap: 10px;                /* 🔹 이미지 간 간격 추가 */
}

.hidden-images img {
  width: 100%;                /* 🔹 부모 요소 기준 최대 너비 */
  height: 150px;              /* 🔹 고정된 높이로 통일 */
  object-fit: contain;        /* 🔹 이미지 비율 유지 + 잘림 방지 */
  border-radius: 8px;         /* 🔹 모서리 둥글게 */
  background-color: #fff;     /* 🔹 빈 공간이 흰색으로 유지 (선택 사항) */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); 
}

.headlamp-container {
  position: relative;
  width: 100%;
  max-width: 350px;
  height: auto;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
 
}

.headlamp-base {
  width: 100%;
  height: 80%;
  pointer-events: none;
}

.overlay-btn {
  position: absolute;
  transform: translate(-50%, -50%);
  background-color: #0d3d80;
  color: white;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 20px;
  z-index: 3;
  cursor: pointer;
}

.overlay-img {
  position: absolute;
  display: none;
  transform: translate(-50%, -50%);
  z-index: 2;

  max-width: 150px;    /* 최대 크기 제한 (원하면 제거 가능) */
  max-height: 150px;
  width: auto;
  height: auto;
  object-fit: contain; /* 자르지 않고 유지 */
}


@media (max-width: 768px) {
  .headlamp-container {
    max-width: 100px; /* 더 작게 */
  }

  .headlamp-base {
    height: 100% !important; /* 비율 맞추기 위해 height 고정 */
  }

  .overlay-btn,
  .overlay-img {
    display: none !important;
  }
}