/* NeoVix Clean CSS Styles */
/* Clean card-list design matching professional card comparison sites */

:root {
  /* Color Palette - Clean Professional */
  --primary-color: #2563EB;
  --secondary-color: #10B981;
  --text-primary: #1F2937;
  --text-secondary: #6B7280;
  --border-color: #E5E7EB;
  --bg-white: #FFFFFF;
  --bg-light: #F9FAFB;
  --bg-hover: #F3F4F6;
  --accent-red: #DC2626;
  --accent-blue: #3B82F6;

  /* Borders and Spacing */
  --border-radius: 8px;
  --border-width: 1px;

  /* Shadows - Minimal */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 1px 3px rgba(0, 0, 0, 0.1);

  /* Typography */
  --font-primary: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-secondary: 'Spoqa Han Sans Neo', sans-serif;
}

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

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-white);
  min-height: 100vh;
}

/* Utility Classes */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.text-gradient {
  color: var(--primary-color);
  font-weight: 700;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s ease;
  cursor: pointer;
  border: var(--border-width) solid var(--border-color);
  font-size: 0.875rem;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background: #1D4ED8;
  border-color: #1D4ED8;
}

.btn-secondary {
  background: white;
  color: var(--text-primary);
  border: var(--border-width) solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-hover);
}

/* Header Styles */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-white);
  border-bottom: var(--border-width) solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 4rem;
  padding: 0 1rem;
}

.nav-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
}

.nav-menu {
  display: none;
  gap: 2rem;
  list-style: none;
}

.nav-menu a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-menu a:hover {
  color: var(--primary-color);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-icon {
  padding: 0.5rem;
  color: #6B7280;
  background: none;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.nav-icon:hover {
  color: var(--primary-color);
}

.nav-badge {
  position: absolute;
  top: -0.25rem;
  right: -0.25rem;
  background: #EF4444;
  color: white;
  font-size: 0.75rem;
  padding: 0.125rem 0.375rem;
  border-radius: 9999px;
  min-width: 1rem;
  text-align: center;
}

/* Hero Section */
.hero {
  position: relative;
  overflow: hidden;
  padding: 3rem 0 2rem;
  background: var(--bg-light);
  border-bottom: var(--border-width) solid var(--border-color);
}

.hero-bg {
  display: none;
}

.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.hero-text {
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: var(--bg-white);
  color: var(--primary-color);
  border: var(--border-width) solid var(--primary-color);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-description {
  font-size: 1.25rem;
  color: #6B7280;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.search-box {
  position: relative;
  max-width: 600px;
  margin: 0 auto 2rem;
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  background: var(--bg-white);
}

.search-input {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  border: none;
  font-size: 1rem;
  outline: none;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9CA3AF;
}

.search-btn {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  padding: 0.5rem 1.5rem;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.search-btn:hover {
  background: #1D4ED8;
}

.quick-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tag {
  padding: 0.5rem 1rem;
  background: var(--bg-white);
  border: var(--border-width) solid var(--border-color);
  border-radius: 50px;
  font-size: 0.875rem;
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.2s ease;
}

.tag:hover {
  background: var(--bg-hover);
  border-color: var(--primary-color);
  color: var(--primary-color);
}

/* Feature Cards */
.features {
  padding: 3rem 0;
  background: var(--bg-white);
  border-bottom: var(--border-width) solid var(--border-color);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-white);
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  text-align: center;
  transition: border-color 0.2s ease;
}

.feature-card:hover {
  border-color: var(--primary-color);
}

.feature-icon {
  width: 3rem;
  height: 3rem;
  background: var(--primary-color);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.feature-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.5rem;
}

.feature-description {
  color: #6B7280;
  font-size: 0.875rem;
}

/* Category Grid */
.categories {
  padding: 3rem 0;
  background: var(--bg-light);
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.section-description {
  font-size: 1rem;
  color: var(--text-secondary);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.category-card {
  background: var(--bg-white);
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  text-align: center;
  transition: border-color 0.2s ease;
  cursor: pointer;
}

.category-card:hover {
  border-color: var(--primary-color);
}

.category-icon {
  width: 4rem;
  height: 4rem;
  background: var(--primary-color);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.category-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.25rem;
}

.category-count {
  font-size: 0.875rem;
  color: #6B7280;
}

/* Product Cards */
.products {
  padding: 3rem 0;
  background: var(--bg-white);
}

.products-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: var(--bg-white);
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: border-color 0.2s ease;
  position: relative;
}

.product-card:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-md);
}

.product-image {
  position: relative;
  height: 12rem;
  background: var(--bg-light);
  overflow: hidden;
}

.product-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 10;
}

.badge {
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 9999px;
  color: white;
}

.badge-best {
  background: #EF4444;
}

.badge-new {
  background: #10B981;
}

.product-discount {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--accent-red);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 700;
}

.product-actions {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-card:hover .product-actions {
  opacity: 1;
}

.action-btn {
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.3s ease;
  backdrop-filter: blur(10px);
}

.action-btn:hover {
  background: white;
}

.product-info {
  padding: 1.5rem;
}

.product-brand {
  font-size: 0.875rem;
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.product-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.rating-stars {
  display: flex;
  align-items: center;
}

.star {
  width: 1rem;
  height: 1rem;
  fill: #FCD34D;
  color: #FCD34D;
}

.star.empty {
  fill: #E5E7EB;
  color: #E5E7EB;
}

.rating-text {
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
}

.review-count {
  font-size: 0.875rem;
  color: #6B7280;
}

.product-pricing {
  margin-bottom: 1rem;
}

.price-label {
  font-size: 0.875rem;
  color: #6B7280;
  margin-bottom: 0.25rem;
}

.price-original {
  font-size: 0.875rem;
  color: #9CA3AF;
  text-decoration: line-through;
}

.price-current {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.price-label-discount {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary-color);
}

.price-amount {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* Page Header */
.page-header {
  background: #F9FAFB;
  padding: 2rem 0;
  border-bottom: 1px solid #E5E7EB;
  text-align: center;
}

.page-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1F2937;
  margin-bottom: 0.5rem;
}

.page-subtitle {
  font-size: 1rem;
  color: #6B7280;
}

/* Product List Layout (Card Comparison Style) */
.product-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.product-item {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.product-item:hover {
  border-color: #2563EB;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
}

.product-item-content {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.product-item-image {
  flex-shrink: 0;
  width: 180px;
  height: 180px;
  background: #F9FAFB;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #E5E7EB;
}

.product-item-info {
  flex: 1;
}

.discount-badge {
  display: inline-block;
  background: #DC2626;
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  margin-bottom: 0.5rem;
}

.product-item-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: #1F2937;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.product-item-description {
  font-size: 0.875rem;
  color: #6B7280;
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.product-item-details {
  margin-bottom: 1.5rem;
  border-top: 1px solid #E5E7EB;
  padding-top: 1rem;
}

.detail-row {
  display: flex;
  padding: 0.5rem 0;
  border-bottom: 1px solid #F3F4F6;
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-row dt {
  flex-shrink: 0;
  width: 100px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #6B7280;
}

.detail-row dd {
  flex: 1;
  font-size: 0.875rem;
  color: #1F2937;
  margin: 0;
}

.price-highlight {
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  color: #2563EB !important;
}

.period-info {
  font-size: 0.875rem;
  font-weight: 400;
  color: #6B7280;
  margin-left: 0.5rem;
}

.product-item-actions {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.btn-contact {
  flex: 1;
  padding: 0.875rem 1.5rem;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-tel {
  background: #FFFFFF;
  color: #2563EB;
  border: 2px solid #2563EB;
}

.btn-tel:hover {
  background: #EFF6FF;
}

.btn-apply {
  background: #2563EB;
  color: white;
  border: 2px solid #2563EB;
}

.btn-apply:hover {
  background: #1D4ED8;
  border-color: #1D4ED8;
}

.product-item-footnote {
  font-size: 0.75rem;
  color: #9CA3AF;
  line-height: 1.5;
  margin: 0;
}

/* Responsive Design */
@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }

  .nav-menu {
    display: flex;
  }

  .hero-content {
    grid-template-columns: 1fr 1fr;
    text-align: left;
  }

  .hero-text {
    text-align: left;
  }

  .search-box {
    margin: 0 0 2rem;
  }

  .quick-tags {
    justify-content: flex-start;
  }

  .product-item-content {
    flex-direction: row;
  }
}

@media (max-width: 767px) {
  .product-item-content {
    flex-direction: column;
  }

  .product-item-image {
    width: 100%;
    height: 200px;
  }

  .page-title {
    font-size: 1.5rem;
  }

  .product-item {
    padding: 1rem;
  }

  .product-item-title {
    font-size: 1.125rem;
  }

  .btn-contact {
    font-size: 0.875rem;
    padding: 0.75rem 1rem;
  }

  .detail-row {
    flex-direction: column;
    gap: 0.25rem;
  }

  .detail-row dt {
    width: auto;
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .category-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Loading States */
.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.spinner {
  width: 2rem;
  height: 2rem;
  border: 2px solid #E5E7EB;
  border-top: 2px solid var(--primary-blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Flash Messages */
.flash-message {
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  font-weight: 500;
}

.flash-success {
  background: #D1FAE5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.flash-error {
  background: #FEE2E2;
  color: #991B1B;
  border: 1px solid #FECACA;
}

.flash-warning {
  background: #FEF3C7;
  color: #92400E;
  border: 1px solid #FDE68A;
}

.flash-info {
  background: #DBEAFE;
  color: #1E40AF;
  border: 1px solid #BFDBFE;
}

/* Navigation Menu - Fixed Dropdown Issue */
.nav-dropdown {
  position: relative;
}

.nav-dropdown > a {
  display: block;
  padding: 0.5rem 0;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 0.5rem 0;
  min-width: 200px;
  max-width: 300px;
  z-index: 1000;
  margin-top: 0.5rem;
  flex-direction: column;
  max-height: 500px;
  overflow-y: auto;
}

.nav-dropdown:hover .dropdown-menu {
  display: flex;
  flex-direction: column;
}

.dropdown-item {
  display: block;
  padding: 0.625rem 1.25rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.dropdown-item:hover {
  background: var(--bg-hover);
  color: var(--primary-color);
  padding-left: 1.5rem;
}

/* Navigation Menu Improvements */
.nav-menu {
  gap: 0.25rem !important;
  font-size: 0.8125rem;
  white-space: nowrap;
  flex-wrap: nowrap;
}

.nav-menu li {
  flex-shrink: 0;
  position: relative;
}

.nav-menu a {
  white-space: nowrap;
  font-size: 0.8125rem;
  padding: 0.5rem 0.5rem;
  display: inline-block;
}

/* Adjust header for better spacing */
.nav {
  gap: 1rem;
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-white);
  border-bottom: var(--border-width) solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

/* Desktop Navigation Show */
@media (min-width: 768px) {
  .nav-menu {
    display: flex;
  }
}

@media (min-width: 1024px) {
  .nav-menu {
    gap: 1rem !important;
    font-size: 0.9375rem;
  }
  
  .nav-menu a {
    font-size: 0.9375rem;
    padding: 0.5rem 1rem;
  }
}

@media (min-width: 1280px) {
  .nav-menu {
    gap: 1.5rem !important;
  }
}

/* Wide dropdown for "전체" category */
.dropdown-menu-wide {
  min-width: 250px;
}

/* Mobile Menu Styles */
.mobile-menu-parent {
  font-weight: 600 !important;
  color: var(--text-primary) !important;
  background: var(--bg-light);
}

.mobile-menu-sub {
  padding-left: 2rem !important;
  font-size: 0.875rem !important;
}
