/* 리셋 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Malgun Gothic', '맑은 고딕', sans-serif;
  color: #333;
  background-color: #fff;
}

a {
  text-decoration: none;
  color: inherit;
}

/* 헤더 */
.header {
  text-align: center;
  padding: 15px 0 0;
  border-bottom: 1px solid #eee;
}

.header .logo {
  overflow: hidden;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header .logo img {
  height: 140px;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 50px;
  padding: 10px 0;
}

.nav a {
  font-size: 16px;
  font-weight: 600;
  color: #555;
  transition: color 0.2s;
}

.nav a:hover {
  color: #000;
}

/* 메인 컨텐츠 */
.main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.section-title {
  font-size: 28px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 10px;
}

.page-title {
  font-size: 28px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 30px;
}

.product-count {
  font-size: 14px;
  color: #888;
  margin-bottom: 30px;
}

.product-count span {
  font-weight: bold;
  color: #333;
}

/* 상품 그리드 */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 60px;
}

.product-card {
  position: relative;
  cursor: pointer;
  transition: transform 0.2s;
}

.product-card:hover {
  transform: translateY(-4px);
}

.product-card .badge-group {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 1;
}

.product-card .badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: bold;
  color: #fff;
  border-radius: 3px;
}

.product-card .badge.best {
  background-color: #5cb85c;
}

.product-card .badge.new {
  background-color: #f0ad4e;
}

.product-card .discount-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #ff6b6b;
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
  z-index: 1;
}

.product-card .image-wrapper {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 4px;
  background-color: #f5f5f5;
}

.product-card .image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card .product-name {
  font-size: 14px;
  margin-top: 12px;
  line-height: 1.4;
  color: #333;
}

.product-card .price-wrapper {
  margin-top: 6px;
}

.product-card .original-price {
  font-size: 13px;
  color: #aaa;
  text-decoration: line-through;
}

.product-card .sale-price {
  font-size: 16px;
  font-weight: bold;
  color: #000;
}

.product-card .free-shipping {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 6px;
  font-size: 11px;
  background-color: #333;
  color: #fff;
  border-radius: 2px;
}

/* 메인 배너 */
.banner {
  margin-bottom: 30px;
}

.banner img {
  width: 100%;
  border-radius: 4px;
}

/* 카테고리 구분 */
.category-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #333;
}

/* 추천 상품 */
.recommend-title {
  font-size: 22px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 30px;
  margin-top: 60px;
  color: #333;
}

.recommend-title:first-child {
  margin-top: 0;
}

/* 공지사항, 게시판, 소식 공통 */
.board-section {
  margin-bottom: 60px;
}

.board-section .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #333;
}

.board-section .section-header h2 {
  font-size: 20px;
  font-weight: bold;
}

.board-section .section-header a {
  font-size: 13px;
  color: #888;
}

.board-section .section-header a:hover {
  color: #333;
}

/* 공지사항 & 게시판 테이블 */
.board-table {
  width: 100%;
  border-collapse: collapse;
}

.board-table tr {
  border-bottom: 1px solid #eee;
  transition: background-color 0.15s;
}

.board-table tr:hover {
  background-color: #fafafa;
}

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

.board-table .col-title {
  flex: 1;
}

.board-table .col-author {
  width: 100px;
  text-align: center;
  color: #888;
}

.board-table .col-date {
  width: 120px;
  text-align: right;
  color: #aaa;
  font-size: 13px;
}

/* 소식 카드 */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.news-card {
  display: block;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s;
  color: inherit;
}

.news-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.news-card .news-thumb {
  width: 100%;
  height: 180px;
  background-color: #f5f5f5;
  display: block;
  object-fit: cover;
}

.news-card .news-body {
  padding: 16px;
}

.news-card .news-title {
  font-size: 15px;
  font-weight: bold;
  margin-bottom: 8px;
  line-height: 1.4;
}

.news-card .news-summary {
  font-size: 13px;
  color: #777;
  line-height: 1.6;
  margin-bottom: 10px;
}

.news-card .news-date {
  font-size: 12px;
  color: #aaa;
}

/* PC에서 4번째 소식 숨김 */
.mobile-only {
  display: none;
}

/* 푸터 */
.footer {
  border-top: 1px solid #ddd;
  background-color: #fafafa;
  padding: 40px 0 30px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
}

.footer-left {
  flex: 1;
}

.footer-left .footer-logo img {
  height: 50px;
  margin-bottom: 20px;
}

.footer-left h3 {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 10px;
}

.footer-left .info-line {
  font-size: 13px;
  color: #777;
  line-height: 1.8;
}

.footer-right {
  text-align: right;
}

.footer-right h3 {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 10px;
}

.footer-right .info-line {
  font-size: 13px;
  color: #777;
  line-height: 1.8;
}

.footer-bottom {
  max-width: 1200px;
  margin: 30px auto 0;
  padding: 20px 20px 0;
  border-top: 1px solid #eee;
  font-size: 12px;
  color: #aaa;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
  /* 네비게이션 가로 스크롤 */
  .nav {
    gap: 12px;
    padding: 10px 10px;
    flex-wrap: nowrap;
    justify-content: center;
  }

  .nav a {
    font-size: 11px;
    flex-shrink: 0;
  }

  /* 메인 컨텐츠 */
  .main {
    padding: 20px 16px;
  }

  /* 상품 그리드 2열 */
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 30px;
  }

  /* 소식 카드 2열 */
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .news-card .news-thumb {
    height: 100px;
  }

  .news-card .news-body {
    padding: 10px;
  }

  .news-card .news-title {
    font-size: 12px;
  }

  .news-card .news-summary {
    font-size: 11px;
  }

  /* 모바일에서 4번째 소식 표시 */
  .mobile-only {
    display: block;
  }

  /* 페이지 제목 */
  .page-title {
    font-size: 22px;
    margin-bottom: 20px;
  }

  .recommend-title {
    font-size: 18px;
  }

  .category-title {
    font-size: 17px;
  }

  /* 푸터 세로 배치 */
  .footer-inner {
    flex-direction: column;
    gap: 30px;
  }

  .footer-right {
    text-align: left;
  }

  /* 매장 지도 높이 줄이기 + 터치 방지 */
  .store-map {
    height: 200px !important;
    pointer-events: none;
  }

  .store-item .store-info {
    position: relative;
  }

  /* 로고 */
  .header .logo {
    height: 70px;
  }

  .header .logo img {
    height: 110px;
  }
}
