/* 기본 설정 */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background-color: #27323f;
  color: #fff;
  animation: fadeIn 0.8s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 헤더 및 내비게이션 */
header {
  background-color: #020c15;
  padding: 0.4rem 0;
  animation: fadeIn 0.5s ease-in-out;
}
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
nav {
  flex: 1;
}
nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  margin: 0;
}
nav ul li {
  margin: 0 15px;
}
nav ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 1.2rem;
  position: relative;
  transition: color 0.3s ease;
}
nav ul li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background-color: #31eeda;
  transition: width 0.3s ease;
}
nav ul li a:hover::after {
  width: 100%;
}
nav ul li a:hover {
  color: #31eeda;
}
.menu li a.active {
  border-bottom: 2px solid #fff;
}
.logo {
  margin-right: 20px;
}
.logo img {
  max-width: 150px;
  transition: transform 0.3s ease;
}
.logo img:hover {
  transform: scale(1.05);
}

/* 언어 선택 */
.language-selector {
  display: flex;
  align-items: center;
}
.dropdown {
  position: relative;
  display: inline-block;
}
.dropbtn {
  background: #020c15;
  color: #fff;
  padding: 5px;
  font-size: 16px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: background 0.3s ease;
}
.dropbtn:hover {
  background: #031828;
}
.dropdown-arrow {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid #fff;
  margin-left: 5px;
}
.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  background: #020c15;
  min-width: 160px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  z-index: 1;
  animation: slideDown 0.3s ease forwards;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
.dropdown-content a {
  color: #fff;
  padding: 12px 16px;
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: background 0.3s ease;
}
.dropdown-content a:hover {
  background: #ffffff10;
}
.dropdown:hover .dropdown-content {
  display: block;
}
.dropdown-flag {
  width: 20px;
  margin-right: 10px;
}

/* 아래는 기존 제품 및 콘텐츠 관련 CSS 유지 */
/* ... (기존 product-detail, product-list, button 등은 그대로 유지됨) */
.product-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.slide img {
  width: 100%;
  height: auto;
  max-height: 400px; /* 제품 상세 슬라이더의 적절한 최대 높이 지정 */
  object-fit: contain; /* 이미지의 비율을 유지하면서 컨테이너 안에 완전히 들어감 */
}
/* 제품 목록을 담는 컨테이너 */
.product-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  padding: 2rem;
}

/* 개별 제품 카드 스타일 */
.product {
  border: 1px solid #324251;
  border-radius: 5px;
  margin: 1rem;
  padding: 1rem;
  width: calc(25% - 2rem); /* 4열 그리드 형태 */
  text-align: center;
  background-color: #2d3a48;
  transition: transform 0.3s;
  color: #fff; /* 글자색 */
}

.product:hover {
  transform: scale(1.05);
}

.product img {
  max-width: 100%;
  max-height: 200px; /* 필요 시 조정 가능 */
  margin-bottom: 1rem;
  border-bottom: 1px solid #324251;
  /* object-fit: cover; // 또는 contain; 필요에 따라 선택 */
}

.product-title {
  font-size: 1.2rem;
  margin: 0.5rem 0;
}

.product-price {
  color: #ccc;
}

.product button {
  background-color: #324251;
  border: none;
  color: #fff;
  padding: 10px 20px;
  font-size: 16px;
  margin: 4px 2px;
  cursor: pointer;
}

.product button:hover {
  background-color: #31eeda;
}

.product-detail {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.product-image-slider {
  position: relative;
  max-width: 600px;
  margin: auto;
}

.slider {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: auto;
}

.slides {
  display: flex;
  transition: transform 0.5s ease;
  width: 100%;
}

.slide {
  min-width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide img {
  width: 100%;
  height: auto;
  /* 필요 시 max-height와 object-fit 등을 설정 */
}

.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  padding: 16px;
  color: #fff;
  font-weight: bold;
  font-size: 18px;
  border-radius: 0 3px 3px 0;
  user-select: none;
  transform: translateY(-50%);
  transition: background-color 0.6s ease;
}

.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
}

.product-info {
  flex: 2;
  min-width: 300px;
  max-width: 600px;
  margin: 1rem;
}

.product-info .product-title {
  font-size: 2rem;
  margin: 1rem 0;
  color: #fff;
}

.product-info .product-price {
  font-size: 1.5rem;
  margin: 1rem 0;
  color: #fff;
}

.product-info .product-description {
  font-size: 1rem;
  line-height: 1.5;
  color: #ccc;
}


.menu li a.active::after {
  display: none;
}