/* =================================
   1. 기본/공통 스타일 (Reset & Common)
==================================== */

/* CSS 변수 */
:root {
  --primary-color: #333;
  --secondary-color: #007bff;
  --background-color: #ffffff;
  --text-color: #333;
  --border-color: #eaeaea;
  --font-family: "Noto Sans KR", sans-serif;
}

/* 기본 스타일 리셋 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
  transition: background-color 0.4s, color 0.4s;
}

ul {
  list-style: none;
}

a {
  cursor: pointer;
  user-select: none;
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* --- 다크 모드 공통 스타일 --- */
body.dark-mode {
  background-color: #2c3e50;
  color: #ecf0f1;
}

body.dark-mode button {
  background-color: #34495e;
  border-color: #ecf0f1;
  color: #ecf0f1;
}

body.dark-mode .product-price {
  color: rgb(233, 195, 125);
}

/* =================================
   2. 헤더 (Header)
==================================== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 5%;
  border-bottom: 1px solid #eee;
  height: 100px;
  position: relative;
}

header h1 {
  display: flex;
  align-items: center;
  gap: 15px;
}

header a {
  padding: 5px;
}
header h1 a {
  font-size: 24px;
  font-weight: bold;
}

header h2 {
  padding: 10px 10x;
}

header #darkmode {
  cursor: pointer;
}

.header-right-group {
  display: flex;
  align-items: center;
  gap: 30px;
}

header nav ul {
  display: flex;
  gap: 30px;
}

header nav a {
  font-size: 16px;
  font-weight: 500;
  transition: color 0.2s;
}

header nav a:hover {
  color: var(--secondary-color);
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
}

.search-box {
  display: flex;
  align-items: center;
}

.user-menu #search {
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.user-menu .fa-magnifying-glass {
  cursor: pointer;
  user-select: none;
  font-size: 18px;
  margin-left: 8px;
}

/* =================================
   3. 푸터 (Footer)
==================================== */
footer {
  background-color: #222;
  color: #aaa;
  padding: 30px 40px;
  text-align: center;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-content ul {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 10px;
}

.footer-content a:hover {
  color: #fff;
}

/* =================================
   4. 메인 페이지 (index.html)
==================================== */

.main-container {
  padding: 40px;
}

/* --- 로그인 모달 --- */
.modal-overlay {
  display: none;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1000;
}

.modal-content {
  position: relative;
  background-color: #ffffff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 400px;
  text-align: center;
  animation: fadeIn 0.3s ease-in-out;
  color: #333;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-content .close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 28px;
  color: #aaa;
  cursor: pointer;
}

.modal-content .modal-title {
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 30px;
}

.modal-content .form-group {
  margin-bottom: 20px;
  text-align: left;
}

.modal-content .form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
}

.modal-content .form-group input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
}

.modal-content .form-group input:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
}

.modal-content .login-btn {
  width: 100%;
  padding: 15px;
  background-color: var(--secondary-color);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.modal-content .login-btn:hover {
  background-color: #0056b3;
}

/* --- 메인 배너 --- */
.main-banner {
  background-color: #fceae8;
  color: #333;
  padding: 60px 40px;
  text-align: center;
  margin-bottom: 50px;
  border-radius: 8px;
  user-select: none;
}

.main-banner h2 {
  font-size: 36px;
  margin-bottom: 10px;
}

.main-banner p {
  font-size: 18px;
}

body.dark-mode .main-banner {
  background-color: #345e5a;
  border: 1px solid #eee;
}

body.dark-mode .main-banner h2 {
  color: #ecf0f1;
}

body.dark-mode .main-banner p {
  color: #bdc3c7;
}

/* --- 상품 리스트 --- */
.product-list h2 {
  font-size: 28px;
  text-align: center;
  margin-bottom: 40px;
}

.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.product-item {
  text-align: center;
  transition: transform 0.2s;
}

.product-item:hover {
  transform: translateY(-5px);
}

.product-item img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 15px;
  aspect-ratio: 1 / 1.2;
  object-fit: cover;
}

.product-name {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 5px;
}

.product-price {
  font-size: 15px;
  font-weight: bold;
  color: #e60023;
}

/* =================================
   5. 회사소개 페이지 (about.html)
==================================== */
/**** about page ****/

/* '회사 소개' 페이지 body 스타일 */
.about-body {
  font-family: "Noto Sans KR", sans-serif;
  line-height: 1.8; /* 가독성을 위해 줄 간격 조정 */
  color: #343a40;
  background-color: #f8f9fa;
  margin: 0;
  padding: 40px 20px; /* 상하좌우 여백 추가 */
}

/* 전체를 감싸는 컨테이너 */
.about-container {
  max-width: 800px;
  margin: 0 auto; /* 중앙 정렬 */
  padding: 50px;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
  position: relative;
}

/* 뒤로가기 버튼 */
.about-container .back-button {
  position: absolute;
  top: 25px;
  left: 25px;
  padding: 8px 15px;
  background-color: #f1f3f5;
  border-radius: 20px; /* 둥근 버튼 모양 */
  color: #495057;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease; /* 부드러운 전환 효과 */
}

.about-container .back-button:hover {
  background-color: #67a6e6;
  transform: translateY(-2px); /* 살짝 떠오르는 효과 */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* 페이지 제목 (About Us) */
.about-container h1 {
  text-align: center;
  font-size: 2.8em;
  font-weight: 700;
  color: #212529;
  margin-bottom: 30px;
}

/* 부제목 (우리의 비전, 오시는 길) */
.about-container h2 {
  font-size: 1.8em;
  font-weight: 600;
  color: #495057;
  border-bottom: 2px solid #dee2e6;
  padding-bottom: 15px;
  margin-top: 50px;
  margin-bottom: 25px;
}

/* 본문 단락 */
.about-container p {
  font-size: 1.05em; /* 폰트 크기를 약간 키워 가독성 향상 */
  color: #555;
  margin-bottom: 1.5em;
}

/* 지도 iframe 컨테이너 */
.about-container .map-container {
  margin-top: 30px;
  border-radius: 12px;
  overflow: hidden; /* 컨테이너 밖으로 나가는 iframe 부분을 숨김 */
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.about-container .map-container iframe {
  width: 100%;
  height: 450px;
  border: 0;
  display: block; /* iframe 아래 불필요한 여백 제거 */
}

/* 다크 모드 적용 */
body.dark-mode .about-body {
  background-color: #2c3e50;
  color: #ecf0f1;
}

body.dark-mode .about-container {
  background-color: #34495e;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

body.dark-mode .about-container h1,
body.dark-mode .about-container h2,
body.dark-mode .about-container p {
  color: #ecf0f1;
}

body.dark-mode .about-container h2 {
  border-bottom-color: #5d738a;
}

body.dark-mode .about-container .back-button {
  background-color: #495057;
  color: #ecf0f1;
}
body.dark-mode .about-container .back-button:hover {
  background-color: #6c757d;
}

/* =================================
   6. 게시판 페이지 (board.html)
==================================== */
.board-container {
  max-width: 1000px;
  margin: 50px auto;
  padding: 20px 40px;
}

.board-container h2 {
  font-size: 28px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 40px;
}

.board-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.board-table th,
.board-table td {
  padding: 15px 10px;
  text-align: center;
  border-bottom: 1px solid #eee;
}

body.dark-mode .board-table th,
body.dark-mode .board-table td {
  border-bottom-color: #44586d;
}

.board-table thead {
  background-color: #f8f9fa;
  font-weight: 600;
  border-top: 2px solid #333;
  border-bottom: 1px solid #ddd;
}

body.dark-mode .board-table thead {
  background-color: #3a5067;
  border-top-color: #ecf0f1;
  border-bottom-color: #5d738a;
}

.board-table .col-no {
  width: 8%;
}
.board-table .col-title {
  width: 52%;
  text-align: left;
  padding-left: 20px;
}
.board-table .col-author {
  width: 15%;
}
.board-table .col-date {
  width: 15%;
}
.board-table .col-views {
  width: 10%;
}

.board-table tbody td:nth-child(2) {
  text-align: left;
  padding-left: 20px;
}

.board-table tbody tr:hover {
  background-color: #f8f9fa;
  transition: background-color 0.2s;
}

body.dark-mode .board-table tbody tr:hover {
  background-color: #34495e;
}

.board-table a:hover {
  text-decoration: underline;
  color: var(--secondary-color);
}
body.dark-mode .board-table a:hover {
  color: #82c0ff;
}

.board-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-grow: 1;
}

.page-btn {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background-color: #fff;
  color: #333;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.page-btn:hover {
  background-color: #f0f0f0;
}

.page-btn.active {
  background-color: var(--secondary-color);
  color: white;
  border-color: var(--secondary-color);
  cursor: default;
}

body.dark-mode .page-btn {
  background-color: #3a5067;
  border-color: #5d738a;
  color: #ecf0f1;
}

body.dark-mode .page-btn:hover {
  background-color: #4b647f;
}

body.dark-mode .page-btn.active {
  background-color: #3498db;
  border-color: #3498db;
}

.write-btn {
  display: inline-block;
  padding: 12px 25px;
  background-color: var(--secondary-color);
  color: white;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s;
}

.write-btn:hover {
  background-color: #0056b3;
}

body.dark-mode .write-btn {
  background-color: #3498db;
}

body.dark-mode .write-btn:hover {
  background-color: #2980b9;
}

.post-detail-content img {
  max-width: 100%;
  height: auto;
  margin-top: 10px;
  border-radius: 8px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* =================================
   7. 장바구니 페이지 (cart.html)
==================================== */
.cart-container {
  max-width: 1000px;
  margin: 40px auto;
  padding: 20px;
}

.cart-container h2 {
  font-size: 24px;
  border-bottom: 2px solid #333;
  padding-bottom: 15px;
  margin-bottom: 30px;
}

.cart-item {
  display: flex;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid #eee;
}

.cart-item-image img {
  width: 100px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  margin-right: 20px;
}

.cart-item-info {
  flex-grow: 1;
}

.item-name {
  font-size: 18px;
  font-weight: 600;
}

.item-options {
  font-size: 14px;
  color: #888;
  margin-top: 8px;
}

.item-quantity,
.item-price {
  width: 120px;
  text-align: center;
  font-size: 16px;
}

.item-price {
  font-weight: bold;
}

.cart-summary {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 40px;
  padding: 20px;
  background-color: #f8f9fa;
  border-radius: 8px;
}

.total-price-text {
  font-size: 18px;
  font-weight: bold;
}

.total-price-value {
  font-size: 28px;
  font-weight: bold;
  color: #e60023;
  margin-left: 20px;
}

.cart-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 40px;
}

.order-button,
.continue-shopping-button {
  padding: 15px 40px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
  border: 1px solid transparent;
}

.order-button {
  background-color: var(--secondary-color);
  color: white;
}

.continue-shopping-button {
  background-color: #6c757d;
  color: white;
}

/* =================================
   8. 상품 상세 페이지 (product.html)
==================================== */

.product-container {
  padding: 40px 5%;
}

.product-main-info {
  display: flex;
  gap: 50px;
  margin-bottom: 60px;
}

.product-image {
  flex: 1;
  max-width: 50%;
}

.product-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.product-purchase-info {
  flex: 1;
  max-width: 50%;
  display: flex;
  flex-direction: column;
}

.product-purchase-info .product-name {
  font-size: 2rem;
  font-weight: bold;
  margin: 0 0 10px;
}

.product-purchase-info .product-price {
  font-size: 1.8rem;
  font-weight: 300;
  color: #555;
  margin: 0 0 20px;
}

.product-purchase-info hr {
  border: 0;
  border-top: 1px solid var(--border-color);
  margin-bottom: 20px;
}

.product-options .option {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.product-options label {
  width: 60px;
  font-weight: 500;
}

.product-options select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.quantity-selector {
  display: flex;
  align-items: center;
  margin: 10px 0 20px;
}

.quantity-selector label {
  width: 60px;
  font-weight: 500;
}

.quantity-selector input {
  width: 50px;
  text-align: center;
  border: 1px solid #ccc;
  padding: 8px;
  margin: 0 5px;
}

.quantity-selector input::-webkit-outer-spin-button,
.quantity-selector input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.quantity-btn {
  width: 30px;
  height: 30px;
  border: 1px solid #ccc;
  background-color: #f9f9f9;
  font-size: 1.2rem;
  line-height: 1;
}

.total-price-section {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  text-align: right;
}

.total-price-section span {
  font-size: 1.2rem;
}

.total-price-section .total-price {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--secondary-color);
  margin-left: 10px;
}

.action-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}

.action-buttons button {
  padding: 15px;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 4px;
  transition: opacity 0.2s;
}

.action-buttons button:hover {
  opacity: 0.8;
}

.btn-cart {
  background-color: #fff;
  color: var(--secondary-color);
  border: 1px solid var(--secondary-color);
}

.btn-buy {
  background-color: var(--secondary-color);
  color: #fff;
}

.product-extra-info .tabs {
  display: flex;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 30px;
}

.product-extra-info .tab-link {
  padding: 15px 30px;
  font-size: 1rem;
  font-weight: 500;
  color: #888;
  border-bottom: 3px solid transparent;
  transform: translateY(2px);
}

.product-extra-info .tab-link.active {
  color: var(--primary-color);
  font-weight: bold;
  border-bottom-color: var(--primary-color);
}

body.dark-mode .product-extra-info .tab-link {
  color: white;
}

body.dark-mode .product-extra-info .tab-link.active {
  color: rgb(100, 212, 191);
}

.tab-content {
  display: none;
  padding: 20px 0;
}

.tab-content.active {
  display: block;
}

.tab-content h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.tab-content img {
  max-width: 100%;
  margin-top: 20px;
}

.review-item {
  border-bottom: 1px solid var(--border-color);
  padding: 20px 0;
}

.review-item:last-child {
  border-bottom: none;
}

.review-author {
  font-weight: bold;
}

.review-date {
  font-size: 0.9rem;
  color: #888;
  margin-top: 10px;
}

/* =================================
   9. 회원가입 페이지 (signup.html)
==================================== */
.signup-body {
  background-color: #f8f9fa;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
  user-select: none;
}

body.dark-mode .signup-body {
  background-color: #2c3e50;
}

.signup-container {
  width: 100%;
  max-width: 500px;
}

.signup-wrapper {
  background-color: #ffffff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

body.dark-mode .signup-wrapper {
  background-color: #34495e;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.signup-title {
  font-size: 28px;
  font-weight: 600;
  color: #333;
  text-align: center;
  margin-bottom: 35px;
}

body.dark-mode .signup-title {
  color: #ecf0f1;
}

.signup-wrapper .form-group {
  margin-bottom: 22px;
}

.signup-wrapper .form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  color: #555;
}

body.dark-mode .signup-wrapper .form-group label {
  color: #bdc3c7;
}

.signup-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.signup-input::placeholder {
  color: #aaa;
}

.signup-input:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
}

body.dark-mode .signup-input {
  background-color: #2c3e50;
  border-color: #555;
  color: #ecf0f1;
}

.input-result {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: #888;
  min-height: 18px;
}

body.dark-mode .input-result {
  color: #95a5a6;
}

.input-result.check {
  color: #2ecc71;
}
.input-result.error {
  color: #e74c3c;
}

.gender-options {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.gender-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 16px;
}

.gender-label input[type="radio"] {
  margin-right: 8px;
}

.signup-wrapper .form-buttons {
  display: flex;
  gap: 10px;
  margin-top: 30px;
}

.signup-btn,
.reset-btn {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
}

.signup-btn {
  background-color: var(--secondary-color);
  color: white;
}

.signup-btn:hover {
  background-color: #0056b3;
}

.signup-btn:active {
  transform: scale(0.98);
}

.reset-btn {
  background-color: #6c757d;
  color: white;
}

.reset-btn:hover {
  background-color: #5a6268;
}

/* =================================
   10. 글쓰기 페이지 (write.html)
==================================== */
.write-body {
  background-color: #f8f9fa;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
  user-select: none;
}

body.dark-mode .write-body {
  background-color: #2c3e50;
}

.write-container {
  width: 100%;
  max-width: 700px;
}

.write-wrapper {
  background-color: #ffffff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

body.dark-mode .write-wrapper {
  background-color: #34495e;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.write-title {
  font-size: 28px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 35px;
}

body.dark-mode .write-title {
  color: #ecf0f1;
}

.write-wrapper .form-group {
  margin-bottom: 22px;
}

.write-wrapper .form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
}

body.dark-mode .write-wrapper .form-group label {
  color: #bdc3c7;
}

.write-input,
.write-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}

.write-textarea {
  resize: vertical;
  min-height: 250px;
}

.write-input:focus,
.write-textarea:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
}

body.dark-mode .write-input,
body.dark-mode .write-textarea {
  background-color: #2c3e50;
  border-color: #555;
  color: #ecf0f1;
}

.image-preview {
  margin-top: 15px;
}
.image-preview img {
  max-width: 100%;
  max-height: 200px;
  border-radius: 8px;
  border: 1px solid #ddd;
}

.write-wrapper .form-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 30px;
}

.submit-btn,
.cancel-btn {
  padding: 12px 25px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
  text-decoration: none;
  text-align: center;
}

.submit-btn {
  background-color: var(--secondary-color);
  color: white;
}
.submit-btn:hover {
  background-color: #0056b3;
}
.submit-btn:disabled {
  background-color: #aaa;
  cursor: not-allowed;
}

.cancel-btn {
  background-color: #6c757d;
  color: white;
}
.cancel-btn:hover {
  background-color: #5a6268;
}
.nav-toggle {
  display: none;
}

/* =================================
   11. 반응형 디자인 (Responsive)
==================================== */

/* --- 태블릿 --- */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 15px;
    height: auto;
    padding: 15px 20px;
  }

  .nav-toggle {
    display: block;
    position: absolute;
    top: 28px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    z-index: 1001;
  }

  .header-right-group {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 15px;
  }

  .header-right-group.is-active {
    display: flex;
  }

  .header-right-group nav ul,
  .user-menu {
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 15px;
  }
  .user-menu #search {
    width: 100%;
  }

  .products {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-main-info {
    flex-direction: column;
  }

  .product-image,
  .product-purchase-info {
    max-width: 100%;
  }

  .total-price-section {
    margin-top: 20px;
  }

  .board-container {
    padding: 20px 15px;
  }

  .board-table {
    font-size: 14px;
  }

  .board-table th,
  .board-table td {
    padding: 12px 5px;
  }

  .col-views {
    display: none;
  }
  .col-title {
    width: 50%;
  }
  .col-author {
    width: 20%;
  }
  .col-date {
    width: 22%;
  }
}
/* =================================
   12. 검색 추천 (Search Suggestions)
==================================== */

/* 검색창과 추천 목록을 감싸는 부모 요소 */
.search-container {
  position: relative;
}

/* 추천 검색어 목록 스타일 */
#suggestions-container {
  display: none;
  /* 기본적으로 숨김 */
  position: absolute;
  top: 100%;
  /* 검색창 바로 아래에 위치 */
  left: 0;
  width: 100%;
  max-height: 220px;
  overflow-y: auto;
  background-color: #ffffff;
  border: 1px solid #ddd;
  border-top: none;
  border-radius: 0 0 8px 8px;
  z-index: 1001;
  /* 다른 요소들 위에 보이도록 설정 */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#suggestions-container ul {
  list-style: none;
}

#suggestions-container li {
  padding: 10px 15px;
  font-size: 14px;
  cursor: pointer;
}

#suggestions-container li:hover {
  background-color: #f0f0f0;
}

/* 다크모드 추천 검색어 목록 스타일 */
body.dark-mode #suggestions-container {
  background-color: #34495e;
  border-color: #555;
}

body.dark-mode #suggestions-container li:hover {
  background-color: #4a6a8a;
}
/* --- 모바일 --- */
@media (max-width: 480px) {
  .products {
    grid-template-columns: 1fr;
  }

  .board-container h2 {
    font-size: 22px;
  }

  .col-author,
  .col-date {
    display: none;
  }

  .col-title {
    width: auto;
  }

  .signup-wrapper,
  .write-wrapper {
    padding: 30px 25px;
  }

  .signup-title {
    font-size: 24px;
  }
}
