/* ===============================
   기본 초기화
================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans KR', sans-serif;
  color: #222;
  background-color: #fff;
  line-height: 1.6;
}

/* ===============================
   헤더 영역
================================= */
header {
  display: flex;
  justify-content: space-between; /* 왼쪽 로고, 오른쪽 메뉴 */
  align-items: center;
  padding: 20px 60px;
  background-color: #fff;
  top: 0;
  z-index: 10;
}

#logo img {
  height: 70px;
  display: block; 
  vertical-align: middle;
}

#topMenu {
  list-style: none;
  display: flex;
  gap: 30px;
}

#topMenu li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s;
}

#topMenu li a:hover {
  color: #888;
}

/* ===============================
   메인 영역
================================= */
main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 80vh; /* 화면 가운데 배치 */
  padding: 40px;
  text-align: center;
}
#hero img {
  width: 30%;
}
#about {
  padding: 40px;
}
#about p{
  font-size: 14px;
}
.product {
    display: flex;
    width: 100%;
    max-width: 1200px; /* 필요하면 조절 */
    margin: auto;
}

.wallet-image {
    flex: 1;          /* 왼쪽 50% */
    display: flex;
    justify-content: center; /* 이미지 가운데 정렬 */
    align-items: center;
}

.wallet-image img {
    width: 100%;
    max-width: 500px; /* 지갑 이미지가 너무 커서 밀리는 거 방지 */
}

.option {
    flex: 1;          /* 오른쪽 50% */
    padding-left: 50px; /* 텍스트와 이미지 간격 조절 */
    text-align: left;
}

.title-row{
  display:flex;
  justify-content: space-between;
}
.price {
  padding-top: 11px;
  padding-right: 30px;
  font-size: 20px;
}
.option h3{
  padding-top: 25px;
}
#product {
  padding-top: 20px;
}
.option form {
    display: flex;
    flex-direction: column;
    gap: 15px;    /* 항목 간 간격 */
    max-width: 400px; /* 오른쪽 박스 너무 넓지 않게 */
}
/* label + input 줄 정리 */
.option label {
    margin-bottom: 5px;
    display: block;
}

.option select{
  width: 50%;
  height: 30px;
}
.option input[type="range"] {
    width: 50%;
}
#option-radio{
  display:flex;
  justify-content: space-between;
}
.option-radio-content{
  display: block;
  width: 50%;
}
/* 라디오 버튼 정리 */
.radio-group {
    display: flex;
    gap: 15px;   /* 동전ㅇ   동전ㄴ 간 간격 */
    align-items: center;
}

.radio-group label {
    font-weight: normal;
}

/* 구분선 */
.option hr {
    margin: 20px 0;
    width: 400px;
}

/* 구매하기 버튼 스타일 */
.option input[type="submit"] {
    background: black;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
}
#guestbook-form fieldset{
  text-align: left;
}
#guestbook-form input{
  width: 40%;
}
.page-title {
  text-align: center;
  padding-bottom: 60px;
}
.wallet-list {
  display: flex;
  gap: 50px;
}
#basic, #denim {
  width: 400px;
  flex: 1;
  display: flex;
  flex-direction: column;  /* 세로 정렬 */
  align-items: center;     /* 가운데 정렬 */
  text-align: center;      /* 텍스트 중앙 */
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 40px;
}
#basic img {
  width: 100%;
}
#denim img{
  width: 100%;
}
/* ==============================
   푸터 영역
================================= */
footer {
  text-align: center;
  padding: 30px 0;
  color: #666;
  font-size: 14px;
  background-color: #fff;
}
footer hr{
  padding-bottom: 20px;
}
/* ===============================
   버튼 & 공통 요소
================================= */
button,
input[type="submit"] {
  background-color: #111;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s;
}

button:hover,
input[type="submit"]:hover {
  background-color: #444;
}
#basic a {
  color: #222; /* 원하는 텍스트 색 */
  text-decoration: none; /* 밑줄 제거 */
  font-weight: 600; /* 글씨 조금 강조 */
}

#basic a:hover {
  color: #ccc;
}
fieldset {
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  width: 100%;
  max-width: 600px;
  background-color: #fff;
}

textarea,
input[type="text"],
input[type="file"] {
  width: 100%;
  margin-top: 8px;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
  overflow: scroll;
}
.artwork-img {
    position: absolute;
    opacity: 0;
    transition: opacity 0.5s ease-in-out; /* 부드러운 전환 */
}

.artwork-img.active {
    opacity: 1;
}

/* 📱 모바일 (최대 768px) */
@media (max-width: 768px) {
    header {
        justify-content: space-between;
        padding: 3vw;
        padding-right: 5vw;
        font-size: 3.5vw;
    }
    main {
      padding: 0%;
    }
    #hero img {
      width: 50%;
    }
    #about {
      padding-top: 15px;
    }
    #about h2 {
      font-size: 13px;
    }
    #about p{
        padding-top: 25px;
        margin: 0;
        width: 100%;
        font-size: 9.3px;
    }
    #topMenu {
        gap: 12px;
    }
    #guestbook-form {
      width: 80%;
    }
    #nickname {
      width: 100% !important;
    }
    #file {
      width: 100% !important;
    }
    .page-title {
      font-size: 13px;
    }
    .wallet-list {
      width: 80%;
      gap: 5vw;
    }
    #basic, #denim {
      padding: 15px;
      font-size: 80%;
    }
    
    .product {
        flex-direction: column;
        text-align: center;
        gap: 30px;
        padding-top: 0%;
    }
    #product-option {
      padding: 0;
      width: 90%;
      font-size: smaller;
    }
    #product-option hr {
      width: 100%;
    }
    .title-row {
        flex-direction: column;
        font-size: 10px;
    }
    .title-row p{
      font-size: 15px;
      padding: 0;
    }
    #option-radio {
      gap: 20px;
    }
    footer {
      font-size: 9px;
    }
}
