* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans KR", system-ui, sans-serif;
  background: #f4f5f7; /* 연한 회색 */
  color: #222;         /* 거의 검정에 가까운 딥그레이 */
}

/* 헤더 */

/* 헤더 레이아웃 유지 */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
  background: #ffffff;
  border-bottom: 1px solid #dde1e7;
}

/* 오른쪽 버튼 영역 */
.user-actions {
  display: flex;  
  align-items: center;
  gap: 8px;
}

/* 공통 버튼 스타일 */
.btn {
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px;
  background: transparent;
}

/* 로그인/회원가입 버튼 */
.auth-btn {
  border: 1px solid #cbd5e1;
  color: #374151;
  background: #f9fafb;
   text-decoration: none;
}

.auth-btn:hover {
  background: #e5e7eb;
}

/* 회원가입 버튼만 살짝 강조 */
.signup-btn {
  border-color: #4f6fad;
  color: #ffffff;
  background: #4f6fad;
}

.signup-btn:hover {
  background: #3e5a90;
}

/* 장바구니 버튼 */
.cart-btn {
  border: 1px solid #4f6fad;
  background: #eef2ff;
  color: #1e293b;
  margin-left: 4px;
   text-decoration: none;
}

.cart-btn:hover {
  background: #e0e7ff;
}


.logo {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #22303c; /* 딥 블루그레이 */
}

.search-box {
  display: flex;
  gap: 8px;
  flex: 1;
  max-width: 480px;
  margin: 0 40px;
}

.search-box input {
  flex: 1;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #c5ccd6;
  outline: none;
  background: #f8f9fb;
}

.search-box input:focus {
  border-color: #4f6fad;       /* 은은한 블루 포커스 */
  box-shadow: 0 0 0 2px rgba(79, 111, 173, 0.15);
}

.search-box button {
  padding: 8px 18px;
  border-radius: 999px;
  border: none;
  background: #4f6fad; /* 블루그레이 버튼 */
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
}
user-actions
.search-box button:hover {
  background: #3e5a90;
}

.cart {
  font-weight: 600;
  color: #22303c;
}

/* 메인 레이아웃 */

.main {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  padding: 24px 40px 60px;
}

/* 사이드바 */

.sidebar {
  background: #ffffff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.sidebar h2 {
  font-size: 18px;
  margin-bottom: 12px;
  color: #111827;
}

.sidebar ul {
  list-style: none;
}

.sidebar li + li {
  margin-top: 8px;
}

.sidebar a {
  text-decoration: none;
  color: #4b5563; /* 중간 회색 */
  font-size: 14px;
}

.sidebar a:hover {
  color: #111827;
}

/* 상품 영역 */
.section-title {
  font-size: 22px;
  margin-bottom: 16px;
  color: #111827;
}

.product-area {
  padding: 8px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}

/* 상품 카드 */

.product-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.product-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    #e2e8f0,
    #cbd5e1
  ); /* 회색+블루톤 그라데이션 */
  margin-bottom: 10px;
}

.product-name {
  font-size: 15px;
  margin-bottom: 4px;
  color: #1f2933;
}

.product-price {
  font-weight: 700;
  color: #374151;
  margin-bottom: 10px;
}

.btn-cart {
  margin-top: auto;
  padding: 8px 0;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #f3f4f6;
  color: #374151;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.btn-cart:hover {
  background: #e5e7eb;
}

/* 푸터 */

.footer {
  text-align: center;
  padding: 16px;
  font-size: 13px;
  color: #6b7280;
  border-top: 1px solid #dde1e7;
  background: #ffffff;
}
