/* 기본 초기화 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans KR', sans-serif;
  background: #f9f9f9;
  color: #333;
}

/* 헤더 */
.header {
  background-color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  height: 40px;
}

.logo img.logo-img {
  height: 100%;
  object-fit: contain;
}

.nav {
  display: flex;
}

.nav a {
  margin: 0 10px;
  text-decoration: none;
  color: #444;
  font-weight: 500;
}

.nav a:hover {
  color: #007aff;
}

.user-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-actions a, .order-icon {
  text-decoration: none;
  color: #444;
  font-size: 14px;
}

/* 모바일 메뉴 토글 기본 숨김 */
.nav-toggle {
  display: none;
}

/* 슬라이드 배너 */
.banner {
  width: 100%;
  overflow: hidden;
}

.slide-wrapper {
  display: flex;
  width: 200vw;
  animation: slide 8s infinite;
}

.slide-wrapper img {
  width: 100vw;
  height: auto;
  aspect-ratio: 16 / 6;
  object-fit: cover;
  flex-shrink: 0;
}

@keyframes slide {
  0%, 45% {
    transform: translateX(0%);
  }
  50%, 95% {
    transform: translateX(-100vw);
  }
  100% {
    transform: translateX(0%);
  }
}

/* 상품 리스트 */
.product-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}

.product-card {
  display: flex;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.product-card img {
  width: 200px;
  object-fit: cover;
}

.product-info {
  flex: 1;
  padding: 15px;
}

.product-info h3 {
  margin-bottom: 10px;
  font-size: 18px;
}

.price {
  font-size: 16px;
  color: #007aff;
  font-weight: bold;
}

.rating {
  margin: 5px 0 10px;
  font-size: 14px;
  color: #888;
}

.btn-cart {
  background-color: #007aff;
  color: white;
  padding: 8px 14px;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}

.btn-cart:hover {
  background: #005ecb;
}

/* 추천 상품 섹션 */
.recommended {
  background: #fff;
  padding: 40px 20px;
  text-align: center;
}

.recommended h2 {
  font-size: 22px;
  color: #333;
  margin-bottom: 30px;
}

.recommended-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.recommended-card {
  background: #f5f5f5;
  border-radius: 10px;
  padding: 15px;
  width: 180px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.recommended-card img {
  width: 100%;
  border-radius: 6px;
}

.recommended-card h4 {
  font-size: 15px;
  margin: 10px 0 5px;
  color: #333;
}

.recommended-card .price {
  font-size: 14px;
  color: #007aff;
  font-weight: bold;
}

.btn-small {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 10px;
  font-size: 13px;
  background: #007aff;
  color: #fff;
  border-radius: 5px;
  text-decoration: none;
}

.btn-small:hover {
  background: #005fce;
}

/* 하단 고정 버튼들 (모바일) */
.mobile-cart-float {
  display: none;
}

.mobile-cart-icon {
  display: block;
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 56px;
  height: 56px;
  background: #007aff;
  color: white;
  font-size: 22px;
  font-weight: bold;
  text-align: center;
  line-height: 56px;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  z-index: 1002;
  text-decoration: none;
}

.mobile-auth-buttons {
  display: none;
}

/* 반응형 */
@media (max-width: 768px) {
  .product-card {
    flex-direction: column;
    align-items: center;
  }

  .product-card img {
    width: 100%;
  }

  .pc-only {
    display: none;
  }

  .mobile-only {
    display: block;
  }

  .nav {
    display: none;
  }

  .nav-toggle {
    display: block;
    font-size: 20px;
    cursor: pointer;
    margin-left: auto;
    padding: 10px;
  }

  .nav.mobile-active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 10px;
    background: white;
    border: 1px solid #ddd;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 999;
  }

  .mobile-auth-buttons {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: #fff;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
    z-index: 1001;
  }

  .mobile-auth-buttons a {
    width: 50%;
    text-align: center;
    line-height: 60px;
    font-size: 16px;
    font-weight: bold;
    color: white;
    text-decoration: none;
    background: #007aff;
    border-right: 1px solid #f1f1f1;
  }

  .mobile-auth-buttons a:last-child {
    border-right: none;
  }

  .mobile-auth-buttons a:hover {
    background-color: #005fcc;
  }
}

.footer {
  background-color: #f5f5f5;
  padding: 30px 20px;
  font-size: 13px;
  color: #555;
  text-align: center;
  line-height: 1.6;
}

.footer-info p {
  margin: 4px 0;
}
