* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Pretendard", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-tap-highlight-color: transparent;
}
body {
  background-color: #fafafa;
  color: #222;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.navbar {
  background: #ffffff;
  border-bottom: 1px solid #ebebeb;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand-logo {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #111;
  cursor: pointer;
  text-decoration: none;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary { background: #e65129; color: #ffffff; }
.btn-primary:hover { background: #cf431d; }
.btn-outline { background: #ffffff; border: 1px solid #d1d5db; color: #374151; }
.btn-outline:hover { background: #f3f4f6; border-color: #9ca3af; }
.main-content {
  max-width: 1200px;
  margin: 24px auto 60px auto;
  padding: 0 20px;
  flex: 1;
  width: 100%;
}
.profile-card {
  background: #ffffff;
  border: 1px solid #ededed;
  border-radius: 20px;
  padding: 24px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}
.profile-title {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #111;
}
.profile-socials { display: flex; align-items: center; gap: 10px; }
.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  color: #444;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s;
  background: #fff;
}
.social-btn:hover { background: #f7f7f7; color: #111; border-color: #ccc; }
.social-divider { width: 1px; height: 20px; background: #e0e0e0; margin: 0 4px; }
.email-btn { width: auto; padding: 0 14px; gap: 6px; font-size: 13px; font-weight: 500; }
.affiliate-notice {
  text-align: center;
  font-size: 14px;
  color: #666;
  margin: 28px 0 24px 0;
  line-height: 1.5;
}
.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1px solid #ededed;
  border-radius: 12px;
  padding: 0 16px;
  height: 48px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}
.search-bar svg { color: #9ca3af; flex-shrink: 0; }
.search-bar input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  font-size: 14px;
  color: #222;
  background: transparent;
}
.search-bar input::placeholder { color: #9ca3af; }
.category-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  overflow-x: auto;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.category-tabs::-webkit-scrollbar { display: none; }
.tab-btn {
  background: transparent;
  border: none;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  color: #666;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.tab-btn:hover { color: #111; }
.tab-btn.active { background: #222222; color: #ffffff; font-weight: 600; }


.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  width: 100%;
}
.product-card {
  background: #ffffff;
  border: 1px solid #efefef;
  border-radius: 18px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}
.product-image-box {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #fbfbfb;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-image-box .platform-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.3px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  z-index: 2;
}
.product-image-box .platform-badge.platform-coupang {
  background: #e65129;
}
.product-image-box .platform-badge.platform-toss {
  background: #2563eb;
}
.product-image-box .platform-badge.platform-other {
  background: #6b7280;
}
.product-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.product-card:hover .product-image-box img { transform: scale(1.03); }
.product-category-tag {
  color: #e55a30;
  font-size: 13px;
  font-weight: 700;
  margin-top: 14px;
}
.product-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #222;
  line-height: 1.45;
  margin: 6px 0 10px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 42px;
  word-break: keep-all;
}
.product-price-row { margin-bottom: 14px; }
.product-price { font-size: 18px; font-weight: 800; color: #111; }
.product-action-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}
.btn-icon {
  width: 38px;
  height: 38px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #6b7280;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.btn-icon:hover { border-color: #9ca3af; color: #111; background: #f9fafb; }
.btn-icon.liked { color: #e55a30; border-color: #fca5a5; background: #fef2f2; }
.btn-buy {
  flex: 1;
  background: #e65129;
  color: #ffffff;
  height: 38px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.btn-buy:hover { background: #cf431d; }

@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}
@media (max-width: 768px) {
  .nav-container { padding: 12px 16px; }
  .brand-logo { font-size: 1.15rem; }
  .main-content { margin: 16px auto 40px auto; padding: 0 16px; }
  .profile-card { flex-direction: column; align-items: flex-start; padding: 18px 20px; gap: 16px; border-radius: 16px; }
  .profile-title { font-size: 1.5rem; }
  .profile-socials { width: 100%; justify-content: flex-start; }
  .affiliate-notice { font-size: 13px; margin: 20px 0; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-card { padding: 12px; border-radius: 14px; }
  .product-title { font-size: 13.5px; height: 38px; }
  .product-price { font-size: 16px; }
}
@media (max-width: 480px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .product-card { padding: 10px; border-radius: 12px; }
  .btn-icon { width: 34px; height: 34px; }
  .btn-buy { height: 34px; font-size: 13px; }
}
.footer {
  text-align: center;
  padding: 30px 20px;
  color: #9ca3af;
  font-size: 13px;
  border-top: 1px solid #ededed;
  background: #ffffff;
  margin-top: auto;
}
