/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #FF6B35;
  --primary-dark: #e55a25;
  --primary-light: #fff3ee;
  --secondary: #2D5016;
  --accent: #FFC947;
  --text-dark: #1a1a2e;
  --text-mid: #4a4a6a;
  --text-light: #8888aa;
  --bg: #fafafa;
  --bg-card: #ffffff;
  --border: #e8e8f0;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.10);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.14);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-dark);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== BUTTONS ===== */
.btn-primary {
  background: var(--primary);
  color: #fff;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
  display: inline-block;
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255,107,53,0.35);
}
.btn-primary:active { transform: translateY(0); }

.btn-primary.btn-sm { padding: 8px 18px; font-size: 13px; }
.btn-primary.btn-lg { padding: 15px 36px; font-size: 16px; }

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s;
  display: inline-block;
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-1px);
}
.btn-outline.btn-lg { padding: 15px 36px; font-size: 16px; }

.btn-white {
  background: #fff;
  color: var(--primary);
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 15px;
  transition: all 0.2s;
  display: inline-block;
}
.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.btn-white-sm {
  background: rgba(255,255,255,0.25);
  color: #fff;
  border: 2px solid rgba(255,255,255,0.6);
  padding: 9px 20px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 13px;
  transition: all 0.2s;
  display: inline-block;
}
.btn-white-sm:hover { background: rgba(255,255,255,0.4); }

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.logo-icon { font-size: 24px; }
.logo-text {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.nav {
  display: flex;
  gap: 4px;
  flex: 1;
}
.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-mid);
  transition: all 0.2s;
}
.nav-link:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.icon-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-mid);
  transition: all 0.2s;
}
.icon-btn:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.cart-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--primary);
  color: #fff;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all 0.3s;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
}
.mobile-menu a {
  padding: 12px 24px;
  font-size: 15px;
  color: var(--text-mid);
  transition: all 0.2s;
}
.mobile-menu a:hover {
  background: var(--primary-light);
  color: var(--primary);
}
.mobile-menu.open { display: flex; }

/* ===== HERO ===== */
.hero {
  position: relative;
  background: linear-gradient(135deg, #fff9f6 0%, #fff3ec 50%, #ffeee3 100%);
  padding: 80px 0 60px;
  overflow: hidden;
  min-height: 600px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(255,107,53,0.08) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(255,201,71,0.08) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 60px;
  position: relative;
}

.hero-text { flex: 1; }

.hero-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
  border: 1px solid rgba(255,107,53,0.2);
}

.hero-title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-dark);
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.highlight {
  color: var(--primary);
  position: relative;
}
.highlight::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  height: 8px;
  background: rgba(255,107,53,0.15);
  border-radius: 4px;
  z-index: -1;
}

.hero-desc {
  font-size: 17px;
  color: var(--text-mid);
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}
.stat { text-align: center; }
.stat strong {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark);
}
.stat span {
  font-size: 12px;
  color: var(--text-light);
}
.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.hero-img-wrapper {
  position: relative;
  display: inline-block;
}

.hero-img-circle {
  width: 380px;
  height: 380px;
  border-radius: 50%;
  overflow: hidden;
  border: 8px solid rgba(255,107,53,0.15);
  box-shadow: var(--shadow-lg);
}

.hero-img-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.floating-card {
  position: absolute;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-md);
  animation: float 3s ease-in-out infinite;
  white-space: nowrap;
}
.floating-card span { font-size: 24px; }
.floating-card strong { display: block; font-size: 13px; font-weight: 700; }
.floating-card p { font-size: 11px; color: var(--text-light); margin: 0; }

.card-top {
  top: 20px;
  right: -20px;
  animation-delay: 0s;
}
.card-bottom {
  bottom: 40px;
  left: -30px;
  animation-delay: 1.5s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ===== BANNER BAR ===== */
.banner-bar {
  background: var(--text-dark);
  padding: 16px 0;
}

.banner-inner {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.banner-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  font-weight: 500;
}
.banner-item svg { color: var(--accent); flex-shrink: 0; }

/* ===== SECTIONS COMMON ===== */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-title {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.section-desc {
  font-size: 16px;
  color: var(--text-light);
}

/* ===== CATEGORIES ===== */
.categories {
  padding: 80px 0;
  background: var(--bg-card);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.category-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 28px 16px;
  text-align: center;
  transition: all 0.3s;
  border: 2px solid transparent;
}
.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
  background: var(--primary-light);
}

.category-icon {
  font-size: 40px;
  margin-bottom: 12px;
  display: block;
}

.category-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.category-card p {
  font-size: 12px;
  color: var(--text-light);
}

/* ===== PRODUCTS ===== */
.products {
  padding: 80px 0;
  background: var(--bg);
}

.filter-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 9px 22px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-mid);
  background: var(--bg-card);
  border: 2px solid var(--border);
  transition: all 0.2s;
}
.filter-tab:hover, .filter-tab.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.product-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
  border: 1px solid var(--border);
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.product-card.hidden { display: none; }

.product-img-wrapper {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: #f5f5f8;
}

.product-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.product-card:hover .product-img-wrapper img {
  transform: scale(1.05);
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}
.badge-new { background: #5856d6; }
.badge-best { background: var(--primary); }
.badge-sale { background: #ff3b30; }

.product-wishlist {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  transition: all 0.2s;
  opacity: 0;
}
.product-card:hover .product-wishlist { opacity: 1; }
.product-wishlist:hover {
  color: #ff3b30;
  transform: scale(1.1);
}
.product-wishlist.active {
  color: #ff3b30;
  opacity: 1;
}
.product-wishlist.active svg { fill: #ff3b30; }

.product-info { padding: 18px; }

.product-category-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-light);
  padding: 3px 10px;
  border-radius: 50px;
}

.product-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  margin: 10px 0 8px;
  line-height: 1.4;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}
.stars { color: var(--accent); font-size: 13px; }
.rating-count { font-size: 12px; color: var(--text-light); }

.product-price {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.price-original {
  font-size: 13px;
  color: var(--text-light);
  text-decoration: line-through;
}
.price-sale {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
}
.price-discount {
  background: #fff0ee;
  color: #ff3b30;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
}

.btn-cart {
  width: 100%;
  padding: 11px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
}
.btn-cart:hover {
  background: var(--primary);
  color: #fff;
}

.products-more {
  text-align: center;
  margin-top: 48px;
}

/* ===== PROMO ===== */
.promo-section {
  padding: 60px 0;
  background: var(--bg-card);
}

.promo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.promo-card {
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
}

.promo-left {
  background: linear-gradient(135deg, var(--primary), #ff8c5a);
  color: #fff;
}

.promo-right {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 24px;
}

.promo-small {
  padding: 32px 32px;
}

.promo-orange {
  background: linear-gradient(135deg, #FF8C00, #FFC947);
  color: #fff;
}

.promo-green {
  background: linear-gradient(135deg, #34a853, #1e7e3a);
  color: #fff;
}

.promo-tag {
  font-size: 12px;
  font-weight: 600;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.promo-content h3 {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 12px;
}

.promo-content h3 span {
  display: block;
  font-size: clamp(28px, 4vw, 42px);
}

.promo-content > p {
  font-size: 14px;
  opacity: 0.85;
  margin-bottom: 24px;
  line-height: 1.6;
}

/* ===== REVIEWS ===== */
.reviews {
  padding: 80px 0;
  background: var(--bg);
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.review-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
}
.review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.reviewer-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.reviewer-name { font-size: 14px; font-weight: 600; color: var(--text-dark); }
.review-stars { color: var(--accent); font-size: 13px; margin-top: 2px; }

.review-product-tag {
  margin-left: auto;
  background: var(--bg);
  color: var(--text-light);
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 500;
  border: 1px solid var(--border);
  white-space: nowrap;
  flex-shrink: 0;
}

.review-text {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 14px;
}

.review-images {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.review-images img {
  width: 68px;
  height: 68px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.review-date { font-size: 12px; color: var(--text-light); }

.rating-summary {
  display: flex;
  align-items: center;
  gap: 48px;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 40px 48px;
  border: 1px solid var(--border);
}

.overall-rating { text-align: center; flex-shrink: 0; }
.rating-number { font-size: 64px; font-weight: 700; color: var(--text-dark); line-height: 1; }
.rating-stars { color: var(--accent); font-size: 22px; margin: 4px 0; }
.rating-total { font-size: 13px; color: var(--text-light); }

.rating-bars { flex: 1; display: flex; flex-direction: column; gap: 8px; }

.rating-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-mid);
}
.rating-bar-row > span:first-child { width: 28px; text-align: right; flex-shrink: 0; }
.rating-bar-row > span:last-child { width: 32px; flex-shrink: 0; }

.bar-bg {
  flex: 1;
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 4px;
  transition: width 1s ease;
}

/* ===== NEWSLETTER ===== */
.newsletter {
  background: linear-gradient(135deg, var(--text-dark) 0%, #2a1a4e 100%);
  padding: 64px 0;
}

.newsletter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.newsletter-text h2 {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.newsletter-text p {
  font-size: 15px;
  color: rgba(255,255,255,0.6);
}

.newsletter-form {
  display: flex;
  gap: 0;
  flex: 1;
  max-width: 480px;
  min-width: 280px;
}

.newsletter-form input {
  flex: 1;
  padding: 14px 20px;
  border-radius: 50px 0 0 50px;
  border: 2px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.4); }
.newsletter-form input:focus { border-color: var(--primary); }

.newsletter-form .btn-primary {
  border-radius: 0 50px 50px 0;
  padding: 14px 28px;
  white-space: nowrap;
}

/* ===== FOOTER ===== */
.footer {
  background: #111;
  color: rgba(255,255,255,0.7);
  padding-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .logo-text { color: #fff; }

.footer-brand p {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.5);
}

.social-links {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}

.social-btn {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.2s;
}
.social-btn:hover { background: var(--primary); }

.footer-links h4 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-links a {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  padding: 5px 0;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--primary); }

.footer-bottom {
  padding: 24px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  line-height: 1.8;
}

.copyright {
  margin-top: 8px;
  color: rgba(255,255,255,0.2) !important;
}

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--text-dark);
  color: #fff;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 999;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .nav, .header-actions { display: none; }
  .hamburger { display: flex; }

  .hero { padding: 48px 0 40px; min-height: auto; }
  .hero-content { flex-direction: column; gap: 40px; text-align: center; }
  .hero-buttons { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-image { width: 100%; }
  .hero-img-circle { width: 280px; height: 280px; }
  .card-top { right: 0; }
  .card-bottom { left: 0; }

  .banner-inner { gap: 24px; }
  .banner-item { font-size: 12px; }

  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: 1fr 1fr; gap: 16px; }

  .promo-grid { grid-template-columns: 1fr; }

  .review-grid { grid-template-columns: 1fr; }
  .rating-summary { flex-direction: column; gap: 24px; padding: 28px 24px; }

  .newsletter-inner { flex-direction: column; align-items: flex-start; }
  .newsletter-form { max-width: 100%; width: 100%; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr; }
  .hero-img-circle { width: 240px; height: 240px; }
  .category-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .category-card { padding: 20px 8px; }
  .category-icon { font-size: 30px; }
  .footer-grid { grid-template-columns: 1fr; }
  .promo-card { padding: 32px 24px; }
  .hero-buttons { flex-direction: column; align-items: center; }
}
