/* ./css/style.css */

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans KR', sans-serif;
  background-color: #f8f9fa;
  color: #222;
}

/* Header */
.header {
  background-color: #0074e9;
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: white;
}

.category-button {
  display: flex;
  align-items: center;
  background: white;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  color: #333;
  gap: 6px;
}

.search-bar {
  flex: 1;
  display: flex;
  max-width: 600px;
}

.search-bar input {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 4px 0 0 4px;
  font-size: 14px;
}

.search-bar button {
  background-color: #0058c3;
  border: none;
  color: white;
  padding: 10px 16px;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
}

.header-icons a {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  font-size: 12px;
  color: white;
  text-decoration: none;
  margin-left: 10px;
}

.header-icons i {
  font-size: 18px;
  margin-bottom: 3px;
}

/* 카테고리 팝업 */
.category-popup {
  display: none;
  position: absolute;
  top: 60px;
  left: 0;
  width: 200px;
  background: white;
  border: 1px solid #ddd;
  padding: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 999;
}

.category-popup.active {
  display: block;
}

.category-popup ul {
  list-style: none;
}

.category-popup li {
  padding: 10px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
}

.category-popup li:hover {
  background-color: #f5f5f5;
}

/* Main Layout */
.main {
  width: 90%;
  max-width: 1200px;
  margin: 30px auto;
}

.section {
  margin-bottom: 50px;
}

.section h2 {
  font-size: 20px;
  margin-bottom: 15px;
}

/* 배너 */
.banner {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 40px;
}

.banner-wrapper img {
  display: none;
  width: 100%;
  border-radius: 8px;
}

.banner-wrapper img.active {
  display: block;
}

.banner-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  padding: 0 10px;
}

.banner-nav button {
  background-color: rgba(0, 0, 0, 0.5);
  border: none;
  color: white;
  padding: 10px;
  font-size: 18px;
  border-radius: 50%;
  cursor: pointer;
}

/* 오늘의 발견 캐러셀 스타일 */
.today-find .product-grid {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.carousel-card {
  flex: 0 0 auto;
  width: 260px;
  background: white;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  position: relative;
  scroll-snap-align: start;
  transition: box-shadow 0.3s, transform 0.3s;
}

.carousel-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  t