/* ===================================
   예고을 (YEGOEUL) - 전통식품 쇼핑몰
   공통 스타일시트
   =================================== */

/* ── CSS 변수 ── */
:root {
  --primary:       #8B5E3C;
  --primary-dark:  #6B4226;
  --primary-light: #B8845A;
  --secondary:     #C4953A;
  --accent:        #E8C87A;
  --bg:            #FDF8F2;
  --bg-card:       #FFFFFF;
  --bg-section:    #F5EDE0;
  --text:          #2C1810;
  --text-mid:      #5A4030;
  --text-light:    #9A8070;
  --border:        #E8D5C0;
  --shadow:        rgba(139,94,60,0.12);
  --shadow-md:     rgba(139,94,60,0.22);
  --white:         #FFFFFF;
  --success:       #4CAF50;
  --error:         #E53935;
  --kakao:         #FEE500;
  --toss:          #0064FF;
  --radius:        10px;
  --radius-lg:     18px;
  --transition:    0.25s ease;
}

/* ── 기본 리셋 ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Noto Sans KR', 'Apple SD Gothic Neo', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ── 유틸리티 ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-dark);
  text-align: center;
  margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
}
.section-sub {
  text-align: center;
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 2.5rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-secondary:hover { background: var(--primary); color: var(--white); }
.btn-gold {
  background: var(--secondary);
  color: var(--white);
}
.btn-gold:hover { background: #a87e2e; transform: translateY(-1px); }
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
}
.badge-new    { background: var(--primary); color: #fff; }
.badge-best   { background: var(--secondary); color: #fff; }
.badge-sale   { background: var(--error); color: #fff; }

/* ── 주문 상태 뱃지 ── */
.badge-blue   { background: #dbeafe; color: #1d4ed8; }
.badge-yellow { background: #fef9c3; color: #854d0e; }
.badge-green  { background: #dcfce7; color: #166534; }
.badge-orange { background: #ffedd5; color: #9a3412; }
.badge-red    { background: #fee2e2; color: #991b1b; }
.badge-gray   { background: #f3f4f6; color: #4b5563; }
.badge-purple { background: #ede9fe; color: #6d28d9; }

/* ── 상단 공지 바 ── */
.top-bar {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.85);
  font-size: 0.8rem;
  padding: 7px 0;
  text-align: center;
}
.top-bar a { color: var(--accent); }

/* ── 헤더 ── */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 900;
  box-shadow: 0 2px 12px var(--shadow);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  max-width: 1200px;
  margin: 0 auto;
  gap: 20px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-img {
  width: 48px;
  height: 48px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.4rem;
}
.logo-text { line-height: 1.2; }
.logo-text .name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-dark);
  letter-spacing: -0.03em;
}
.logo-text .sub {
  font-size: 0.7rem;
  color: var(--text-light);
  letter-spacing: 0.05em;
}

/* 검색바 */
.header-search {
  flex: 1;
  max-width: 400px;
  display: flex;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: var(--transition);
}
.header-search:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(139,94,60,0.1);
}
.header-search input {
  flex: 1;
  padding: 9px 14px;
  border: none;
  outline: none;
  background: var(--bg);
  font-size: 0.88rem;
  color: var(--text);
}
.header-search button {
  padding: 9px 14px;
  background: var(--primary);
  color: #fff;
  font-size: 0.9rem;
}

/* 헤더 우측 아이콘 */
.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.icon-btn {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text-mid);
  transition: var(--transition);
  text-decoration: none;
}
.icon-btn:hover { background: var(--bg-section); color: var(--primary); }
.icon-btn .count {
  position: absolute;
  top: 4px; right: 4px;
  background: var(--error);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  width: 16px; height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── 내비게이션 ── */
.nav {
  background: var(--primary-dark);
}
.nav-inner {
  display: flex;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.nav-item {
  position: relative;
}
.nav-link {
  display: block;
  padding: 13px 18px;
  color: rgba(255,255,255,0.88);
  font-size: 0.88rem;
  font-weight: 500;
  transition: var(--transition);
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  color: var(--accent);
  background: rgba(255,255,255,0.06);
}

/* 드롭다운 */
.nav-item:hover .dropdown { display: block; }
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 160px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 8px 24px var(--shadow-md);
  z-index: 800;
}
.dropdown a {
  display: block;
  padding: 10px 18px;
  font-size: 0.85rem;
  color: var(--text);
  transition: var(--transition);
}
.dropdown a:hover { background: var(--bg-section); color: var(--primary); }

/* 모바일 햄버거 */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  margin-left: auto;
}
.hamburger span {
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── 히어로 슬라이더 ── */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--primary-dark);
  height: 520px;
}
.hero-slides { display: flex; height: 100%; transition: transform 0.6s ease; }
.hero-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.55);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 80px;
  max-width: 600px;
}
.hero-tag {
  display: inline-block;
  background: var(--accent);
  color: var(--primary-dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 1rem;
  letter-spacing: 0.06em;
}
.hero-title {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}
.hero-desc {
  color: rgba(255,255,255,0.82);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  line-height: 1.7;
}
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* 슬라이더 컨트롤 */
.hero-arrows {
  position: absolute;
  bottom: 24px;
  right: 40px;
  display: flex;
  gap: 8px;
  z-index: 3;
}
.hero-arrows button {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  color: #fff;
  font-size: 1rem;
  border: 1px solid rgba(255,255,255,0.4);
  transition: var(--transition);
}
.hero-arrows button:hover { background: var(--secondary); }
.hero-dots {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}
.hero-dots span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: var(--transition);
}
.hero-dots span.active { background: var(--accent); width: 22px; border-radius: 4px; }

/* ── 카테고리 바 ── */
.category-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.category-grid {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.category-grid::-webkit-scrollbar { display: none; }
.cat-item {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition);
}
.cat-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--bg-section);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  border: 2.5px solid transparent;
  transition: var(--transition);
}
.cat-item:hover .cat-icon,
.cat-item.active .cat-icon {
  border-color: var(--primary);
  background: #fff7f0;
}
.cat-item span {
  font-size: 0.78rem;
  color: var(--text-mid);
  font-weight: 500;
  white-space: nowrap;
}

/* ── 상품 섹션 ── */
.products-section { padding: 60px 0; }
.products-section.bg { background: var(--bg-section); }

.products-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2rem;
}
.view-all {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}
.view-all:hover { color: var(--primary-dark); }

/* 상품 그리드 */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.product-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px var(--shadow-md);
}
.product-thumb {
  position: relative;
  padding-top: 100%;
  overflow: hidden;
  background: var(--bg-section);
  cursor: zoom-in;
}
.product-thumb img,
.product-thumb .thumb-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  background: linear-gradient(135deg, var(--bg-section), #ffe8c8);
}
.product-card:hover .thumb-placeholder { transform: scale(1.04); }
.product-card:hover .product-thumb img { transform: scale(1.06); }

/* ── 이미지 라이트박스 ── */
.img-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.img-lightbox.open {
  opacity: 1;
  visibility: visible;
}
.img-lightbox-inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.img-lightbox-inner img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.6);
  transform: scale(0.92);
  transition: transform 0.3s ease;
}
.img-lightbox.open .img-lightbox-inner img {
  transform: scale(1);
}
.img-lightbox-caption {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.02em;
}
.img-lightbox-close {
  position: absolute;
  top: -44px;
  right: -4px;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s;
  background: none;
  border: none;
}
.img-lightbox-close:hover { opacity: 1; }
.img-lightbox-prev,
.img-lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 1.6rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  transition: background 0.2s;
}
.img-lightbox-prev { left: 20px; }
.img-lightbox-next { right: 20px; }
.img-lightbox-prev:hover,
.img-lightbox-next:hover { background: rgba(255,255,255,0.3); }
@media (max-width: 600px) {
  .img-lightbox-prev { left: 6px; }
  .img-lightbox-next { right: 6px; }
}
.product-badges {
  position: absolute;
  top: 10px; left: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.product-wish {
  position: absolute;
  top: 10px; right: 10px;
  width: 32px; height: 32px;
  background: rgba(255,255,255,0.88);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
  cursor: pointer;
}
.product-wish:hover { transform: scale(1.15); }
.product-wish.wished { color: var(--error); }

.product-info { padding: 14px 16px; }
.product-cat {
  font-size: 0.72rem;
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
  text-transform: uppercase;
}
.product-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-price { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.price-sale {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary-dark);
}
.price-original {
  font-size: 0.82rem;
  color: var(--text-light);
  text-decoration: line-through;
}
.price-percent {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--error);
}
.product-stars {
  font-size: 0.78rem;
  color: var(--secondary);
  margin-bottom: 10px;
}
.product-stars span { color: var(--text-light); margin-left: 2px; }
.btn-cart {
  width: 100%;
  padding: 9px;
  background: var(--primary);
  color: #fff;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.btn-cart:hover { background: var(--primary-dark); }

/* ── 배너 섹션 ── */
.banner-section { padding: 40px 0; }
.banner-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.banner-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  height: 200px;
  cursor: pointer;
}
.banner-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}
.banner-card:hover .banner-bg { transform: scale(1.04); }
.banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(107,66,38,0.75), rgba(107,66,38,0.3));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px;
}
.banner-overlay h3 { color: #fff; font-size: 1.3rem; font-weight: 700; margin-bottom: 6px; }
.banner-overlay p { color: rgba(255,255,255,0.82); font-size: 0.85rem; margin-bottom: 14px; }
.banner-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
}

/* ── 브랜드 스토리 ── */
.brand-story {
  padding: 80px 0;
  background: var(--primary-dark);
  color: var(--white);
}
.story-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.story-content .en-title {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 12px;
  font-weight: 600;
}
.story-content h2 {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 1.2rem;
  letter-spacing: -0.02em;
}
.story-content p {
  color: rgba(255,255,255,0.78);
  line-height: 1.85;
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
}
.story-stats {
  display: flex;
  gap: 32px;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.stat-item { text-align: center; }
.stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  margin-top: 2px;
}
.story-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 380px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
}

/* ── 공지사항 + 게시판 ── */
.notice-section { padding: 60px 0; }
.notice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.notice-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.notice-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-section);
}
.notice-head h3 { font-size: 1rem; font-weight: 700; color: var(--primary-dark); }
.notice-head a { font-size: 0.8rem; color: var(--primary); }
.notice-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 22px;
  border-bottom: 1px solid var(--border);
  font-size: 0.87rem;
  transition: var(--transition);
}
.notice-list li:last-child { border-bottom: none; }
.notice-list li:hover { background: var(--bg-section); }
.notice-list a { color: var(--text); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notice-list a:hover { color: var(--primary); }
.notice-date { color: var(--text-light); font-size: 0.78rem; flex-shrink: 0; margin-left: 10px; }

/* ── 갤러리 ── */
.gallery-section { padding: 60px 0; background: var(--bg-section); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.gallery-item {
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--bg-card);
  cursor: pointer;
  position: relative;
}
.gallery-ph {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  background: linear-gradient(135deg, #ffe8c8, #f5deba);
  transition: var(--transition);
}
.gallery-item:hover .gallery-ph { transform: scale(1.06); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(107,66,38,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.8rem;
  opacity: 0;
  transition: var(--transition);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* ── 푸터 ── */
.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.75);
  padding: 50px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .name { font-size: 1.2rem; font-weight: 800; color: var(--white); margin-bottom: 8px; }
.footer-brand p { font-size: 0.83rem; line-height: 1.8; }
.footer-col h4 { color: var(--white); font-size: 0.9rem; font-weight: 700; margin-bottom: 14px; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 0.83rem; transition: var(--transition); }
.footer-col ul li a:hover { color: var(--accent); }
.footer-sns { display: flex; gap: 10px; margin-top: 16px; }
.sns-btn {
  width: 34px; height: 34px;
  background: rgba(255,255,255,0.12);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
}
.sns-btn:hover { background: var(--secondary); }
.footer-bottom {
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
}

/* ── 장바구니 페이지 ── */
.page-header {
  background: var(--bg-section);
  padding: 30px 0;
  border-bottom: 1px solid var(--border);
}
.page-header h1 { font-size: 1.6rem; font-weight: 800; color: var(--primary-dark); }
.breadcrumb { font-size: 0.82rem; color: var(--text-light); margin-top: 4px; }
.breadcrumb a { color: var(--primary); }
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 28px; padding: 40px 0; }
.cart-table { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.cart-table-head {
  display: grid;
  grid-template-columns: 40px 1fr 120px 120px 80px;
  padding: 14px 20px;
  background: var(--bg-section);
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text-mid);
  border-bottom: 1px solid var(--border);
}
.cart-item {
  display: grid;
  grid-template-columns: 40px 1fr 120px 120px 80px;
  padding: 16px 20px;
  align-items: center;
  border-bottom: 1px solid var(--border);
  gap: 10px;
}
.cart-item:last-child { border-bottom: none; }
.cart-item-info { display: flex; align-items: center; gap: 14px; }
.cart-item-thumb {
  width: 64px; height: 64px;
  border-radius: 8px;
  background: var(--bg-section);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
}
.cart-item-name { font-size: 0.88rem; font-weight: 600; color: var(--text); }
.cart-item-option { font-size: 0.78rem; color: var(--text-light); margin-top: 2px; }
.qty-control { display: flex; align-items: center; gap: 8px; }
.qty-control button {
  width: 28px; height: 28px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 1rem;
  color: var(--text-mid);
  background: var(--bg);
  transition: var(--transition);
}
.qty-control button:hover { border-color: var(--primary); color: var(--primary); }
.qty-control input {
  width: 36px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 4px;
  font-size: 0.9rem;
}
.cart-summary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: sticky;
  top: 90px;
  height: fit-content;
}
.cart-summary h3 { font-size: 1.1rem; font-weight: 700; color: var(--primary-dark); margin-bottom: 20px; }
.summary-row { display: flex; justify-content: space-between; font-size: 0.88rem; margin-bottom: 12px; color: var(--text-mid); }
.summary-divider { border: none; border-top: 1px solid var(--border); margin: 14px 0; }
.summary-total { display: flex; justify-content: space-between; font-size: 1.05rem; font-weight: 800; color: var(--primary-dark); margin-bottom: 20px; }
.btn-checkout {
  width: 100%;
  padding: 14px;
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
  transition: var(--transition);
}
.btn-checkout:hover { background: var(--primary-dark); }

/* ── 결제 페이지 ── */
.checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 28px; padding: 40px 0; }
.checkout-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 20px;
}
.checkout-section h3 { font-size: 1rem; font-weight: 700; color: var(--primary-dark); margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-row.full { grid-template-columns: 1fr; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.83rem; font-weight: 600; color: var(--text-mid); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.88rem;
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(139,94,60,0.1); }

/* 결제 방법 */
.payment-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pay-option {
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 10px;
}
.pay-option:hover { border-color: var(--primary-light); }
.pay-option.selected { border-color: var(--primary); background: #fff7f0; }
.pay-icon { width: 44px; height: 28px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 800; }
.pay-kakao { background: var(--kakao); color: #3A1D0A; }
.pay-toss { background: var(--toss); color: #fff; }
.pay-card { background: var(--bg-section); color: var(--text); border: 1px solid var(--border); }
.pay-transfer { background: var(--bg-section); color: var(--text); border: 1px solid var(--border); }
.pay-name { font-size: 0.85rem; font-weight: 600; color: var(--text); }

/* ── 게시판 페이지 ── */
.board-layout { padding: 40px 0; }
.board-tabs { display: flex; gap: 4px; margin-bottom: 24px; border-bottom: 2px solid var(--border); }
.board-tab {
  padding: 10px 22px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-light);
  border-radius: 6px 6px 0 0;
  transition: var(--transition);
}
.board-tab:hover { color: var(--primary); }
.board-tab.active { color: var(--primary); border-bottom: 2px solid var(--primary); margin-bottom: -2px; }
.board-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.board-search {
  display: flex;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.board-search input {
  padding: 8px 14px;
  border: none;
  outline: none;
  font-size: 0.85rem;
  background: var(--bg);
  width: 240px;
}
.board-search button {
  padding: 8px 14px;
  background: var(--primary);
  color: #fff;
  font-size: 0.85rem;
}
.board-table { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.board-head {
  display: grid;
  grid-template-columns: 60px 1fr 100px 80px 80px;
  padding: 13px 20px;
  background: var(--bg-section);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-mid);
  border-bottom: 1px solid var(--border);
}
.board-row {
  display: grid;
  grid-template-columns: 60px 1fr 100px 80px 80px;
  padding: 13px 20px;
  align-items: center;
  border-bottom: 1px solid var(--border);
  font-size: 0.87rem;
  transition: var(--transition);
}
.board-row:last-child { border-bottom: none; }
.board-row:hover { background: var(--bg-section); }
.board-row a { color: var(--text); }
.board-row a:hover { color: var(--primary); }
.board-num { color: var(--text-light); font-size: 0.82rem; text-align: center; overflow: hidden; white-space: nowrap; }
.board-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-author { color: var(--text-mid); text-align: center; }
.board-date { color: var(--text-light); font-size: 0.8rem; text-align: center; }
.board-views { color: var(--text-light); font-size: 0.8rem; text-align: center; }
.notice-row { background: #fff9f5; }
.notice-row .board-num { color: var(--primary); font-weight: 700; }
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 24px;
}
.page-btn {
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--text-mid);
  transition: var(--transition);
  background: var(--bg-card);
}
.page-btn:hover, .page-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ── 팝업/모달 ── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 480px;
  width: 90%;
  padding: 32px;
  position: relative;
  animation: slideUp 0.3s ease;
}
@keyframes slideUp {
  from { transform: translateY(24px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg-section);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--text-light);
}
.modal-close:hover { background: var(--border); }

/* 결제 완료 모달 */
.pay-success { text-align: center; padding: 12px 0; }
.pay-success .icon { font-size: 3.5rem; margin-bottom: 16px; }
.pay-success h2 { font-size: 1.4rem; font-weight: 800; color: var(--primary-dark); margin-bottom: 8px; }
.pay-success p { color: var(--text-light); font-size: 0.9rem; }

/* 카카오/토스 결제 버튼 */
.btn-kakao {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px;
  background: var(--kakao);
  color: #3A1D0A;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 10px;
  transition: var(--transition);
}
.btn-kakao:hover { background: #edd500; transform: translateY(-1px); }
.btn-toss {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px;
  background: var(--toss);
  color: #fff;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 10px;
  transition: var(--transition);
}
.btn-toss:hover { background: #0052cc; transform: translateY(-1px); }

/* ── 관리자 페이지 ── */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 240px;
  background: var(--primary-dark);
  padding: 0;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.admin-logo {
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.admin-logo .name { font-size: 1.1rem; font-weight: 800; color: #fff; }
.admin-logo .sub { font-size: 0.72rem; color: rgba(255,255,255,0.5); margin-top: 2px; }
.admin-nav-group { padding: 16px 0 8px; }
.admin-nav-label { padding: 4px 20px 8px; font-size: 0.72rem; color: rgba(255,255,255,0.4); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.75);
  transition: var(--transition);
  border-left: 3px solid transparent;
}
.admin-nav-link:hover, .admin-nav-link.active {
  color: var(--accent);
  background: rgba(255,255,255,0.06);
  border-left-color: var(--accent);
}
.admin-nav-link .icon { font-size: 1rem; width: 20px; text-align: center; }
.admin-main { flex: 1; background: var(--bg); padding: 32px; overflow-y: auto; }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.admin-header h1 { font-size: 1.5rem; font-weight: 800; color: var(--primary-dark); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--primary);
}
.stat-card.gold::before { background: var(--secondary); }
.stat-card.green::before { background: var(--success); }
.stat-card.red::before { background: var(--error); }
.stat-card .label { font-size: 0.8rem; color: var(--text-light); margin-bottom: 8px; }
.stat-card .value { font-size: 1.7rem; font-weight: 800; color: var(--primary-dark); }
.stat-card .change { font-size: 0.78rem; color: var(--success); margin-top: 4px; }
.stat-card .emoji { position: absolute; right: 16px; top: 16px; font-size: 1.8rem; opacity: 0.4; }
.admin-table-wrap { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 24px; }
.admin-table-head { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.admin-table-head h3 { font-size: 0.95rem; font-weight: 700; color: var(--primary-dark); }
table { width: 100%; border-collapse: collapse; }
th { padding: 12px 16px; background: var(--bg-section); font-size: 0.8rem; font-weight: 600; color: var(--text-mid); text-align: left; border-bottom: 1px solid var(--border); }
td { padding: 12px 16px; font-size: 0.85rem; color: var(--text); border-bottom: 1px solid var(--border); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--bg-section); }
.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
}
.status-paid { background: #e8f5e9; color: #2e7d32; }
.status-wait { background: #fff3e0; color: #e65100; }
.status-ship { background: #e3f2fd; color: #1565c0; }
.status-done { background: #f3e5f5; color: #6a1b9a; }

/* ── 토스트 알림 ── */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  background: var(--primary-dark);
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 0.88rem;
  box-shadow: 0 4px 16px var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: toastIn 0.3s ease;
  min-width: 220px;
}
.toast.success { background: #2e7d32; }
.toast.error { background: var(--error); }
@keyframes toastIn {
  from { transform: translateX(60px); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

/* ── 반응형 ── */
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero { height: 380px; }
  .hero-content { padding: 0 28px; }
  .hero-title { font-size: 1.7rem; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .banner-grid { grid-template-columns: 1fr; }
  .story-inner { grid-template-columns: 1fr; gap: 32px; }
  .story-image { height: 220px; }
  .notice-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .cart-table-head, .cart-item { grid-template-columns: 1fr 80px 80px; }
  .cart-table-head span:first-child,
  .cart-table-head span:last-child { display: none; }
  .header-search { display: none; }
  .nav-inner { overflow-x: auto; }
  .admin-sidebar { display: none; }
  .board-head, .board-row { grid-template-columns: 40px 1fr 70px; }
  .board-head span:nth-child(4),
  .board-head span:nth-child(5),
  .board-row span:nth-child(4),
  .board-row span:nth-child(5) { display: none; }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .category-bar .cat-icon { width: 58px; height: 58px; }
  .footer-grid { grid-template-columns: 1fr; }
}
