/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #2563eb;
  --secondary-color: #1e40af;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --bg-light: #f9fafb;
  --bg-white: #ffffff;
  --border-color: #e5e7eb;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

html {
  scroll-behavior: smooth;
}

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

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

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0px 0.5rem 10px;
  min-height: 70px;
  flex-wrap: nowrap;
}

.nav-brand {
  margin-right: 4rem;
}

.nav-brand a {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-brand .logo-image {
  height: 60px;
  width: auto;
  object-fit: contain;
  padding: 5px 0;
}

.nav-brand .brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.nav-brand .brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  white-space: nowrap;
  line-height: 1.2;
}

.nav-brand h1 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: 0.3px;
  margin: 0;
  line-height: 1;
  white-space: nowrap;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 0.8rem;
  flex-wrap: nowrap;
  align-items: center;
  margin: 0;
}

.nav-menu > li {
  position: relative;
  white-space: nowrap;
  display: flex;
  align-items: center;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.3s ease;
  position: relative;
  display: flex;
  align-items: center;
  padding: 0.5rem 0;
}

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

.nav-menu > li > a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-menu > li > a:hover::after {
  width: 100%;
}

/* Dropdown Menu */
.dropdown {
  position: relative;
}

.dropdown > a {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.dropdown > a i {
  font-size: 0.7rem;
  transition: transform 0.3s ease;
}

.dropdown:hover > a i {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  padding: 0.5rem 0;
  margin-top: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  list-style: none;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  margin: 0;
}

.dropdown-menu a {
  padding: 0.75rem 1.25rem;
  color: var(--text-dark);
  font-size: 0.95rem;
  white-space: nowrap;
  border-left: 3px solid transparent;
  transition: all 0.2s ease;
}

.dropdown-menu a:hover {
  background: var(--bg-light);
  border-left-color: var(--primary-color);
  padding-left: 1.5rem;
}

.dropdown-menu a::after {
  display: none;
}

.dropdown-divider {
  height: 1px;
  background: var(--border-color);
  margin: 0.5rem 0;
  list-style: none;
}

/* Mega Dropdown - 2-level menu */
.mega-dropdown {
  position: relative;
}

.has-submenu {
  position: relative;
}

.has-submenu > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.has-submenu > a i {
  font-size: 0.7rem;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.has-submenu:hover > a i {
  opacity: 1;
}

/* Submenu on the right */
.submenu-right {
  position: absolute;
  left: 100%;
  top: 0;
  min-width: 200px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  padding: 0.5rem 0;
  margin-left: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-10px);
  transition: all 0.3s ease;
  z-index: 1001;
  list-style: none;
}

.has-submenu:hover .submenu-right {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.submenu-right li {
  margin: 0;
}

.submenu-right a {
  padding: 0.75rem 1.25rem;
  color: var(--text-dark);
  font-size: 0.95rem;
  white-space: nowrap;
  border-left: 3px solid transparent;
  transition: all 0.2s ease;
  display: block;
}

.submenu-right a:hover {
  background: var(--bg-light);
  border-left-color: var(--primary-color);
  padding-left: 1.5rem;
}

.nav-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-dark);
}

/* Hero Section with Slider */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Hero Slider */
.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.7) 0%, rgba(30, 64, 175, 0.7) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  padding: 0 20px;
  animation: fadeInUp 1s ease;
}

/* Slider Navigation Buttons */
.slider-nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 3;
}

.slider-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: white;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
}

.slider-btn:hover {
  background: rgba(255, 255, 255, 0.5);
  transform: scale(1.1);
}

/* Slider Indicators */
.slider-indicators {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 3;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.indicator:hover {
  background: rgba(255, 255, 255, 0.8);
}

.indicator.active {
  background: white;
  width: 40px;
  border-radius: 6px;
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 2rem;
  animation: bounce 2s infinite;
  z-index: 3;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

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

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
  background: transparent;
  color: white;
  border-color: white;
}

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

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 2rem;
  animation: bounce 2s infinite;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* Section Styles */
section {
  padding: 80px 0;
}

.page-section {
  min-height: calc(100vh - 200px);
  padding-top: 120px;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-light);
}

/* About Section */
.about {
  background: var(--bg-light);
}

/* About Tabs */
.about-tabs {
  display: flex;
  gap: 1rem;
  margin: 2rem 0;
  border-bottom: 2px solid #e5e7eb;
  flex-wrap: wrap;
}

.about-tab-btn {
  padding: 1rem 2rem;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  color: #6b7280;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  margin-bottom: -2px;
}

.about-tab-btn:hover {
  color: var(--primary-color);
  background: #f3f4f6;
}

.about-tab-btn.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

.about-tab-btn i {
  font-size: 1.125rem;
}

.about-tab-content {
  display: none;
  animation: fadeIn 0.3s ease;
}

.about-tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.about-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.about-item {
  background: white;
  padding: 2.5rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-item:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.about-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
}

.about-item h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.about-item p {
  color: var(--text-light);
  line-height: 1.8;
}

/* Products Section */
.products {
  background: white;
}

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

.product-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.product-image {
  position: relative;
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  overflow: hidden;
}

.product-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.9);
}

.product-content {
  padding: 1.5rem;
}

.product-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

.product-content p {
  color: var(--text-light);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.product-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.3s ease;
}

.product-link:hover {
  gap: 0.75rem;
}

/* Service Section */
.service {
  background: var(--bg-light);
}

.service-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-item {
  background: white;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.service-item:hover {
  transform: translateY(-5px);
}

.service-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  opacity: 0.2;
  margin-bottom: 1rem;
}

.service-item h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.service-item p {
  color: var(--text-light);
  line-height: 1.8;
}

/* Contact Section */
.contact {
  background: white;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.contact-item i {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-top: 0.25rem;
}

.contact-item h4 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.contact-item p {
  color: var(--text-light);
}

.contact-form {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: 12px;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.875rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.contact-form button {
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

/* Footer */
.footer {
  background: var(--text-dark);
  color: white;
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.footer-section h4 {
  font-size: 1.125rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.footer-section p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
  margin-bottom: 0.5rem;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  
  .nav-toggle {
    display: block;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .contact-content {
    grid-template-columns: 1fr;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    max-width: 300px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.75rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .about-content,
  .products-grid,
  .service-content {
    grid-template-columns: 1fr;
  }
}

/* Auth Pages */
.auth-section {
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-container {
  max-width: 450px;
  margin: 0 auto;
  background: white;
  padding: 3rem;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}

/* Register Container - Wide Layout */
.register-container {
  max-width: 1000px;
  margin: 0 auto;
  background: white;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}

.auth-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--text-dark);
}

.register-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.register-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 1.5rem;
}

.register-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.section-subtitle {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-color);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 500;
  color: var(--text-dark);
  font-size: 0.875rem;
}

.form-group input,
.form-group select {
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group small {
  margin-top: -0.25rem;
}

.btn-full {
  width: 100%;
}

.auth-links {
  text-align: center;
  margin-top: 1.5rem;
}

.auth-links a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

.auth-links a:hover {
  text-decoration: underline;
}

/* User Info in Navigation */
.user-info {
  color: var(--text-dark);
  font-weight: 500;
  padding: 0.5rem 1rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.user-info:hover {
  color: var(--primary-color);
}

/* Admin Page */
.admin-section {
  background: var(--bg-light);
}

.admin-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) var(--bg-light);
}

.admin-tabs::-webkit-scrollbar {
  height: 6px;
}

.admin-tabs::-webkit-scrollbar-track {
  background: var(--bg-light);
}

.admin-tabs::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 3px;
}

.tab-btn {
  padding: 0.75rem 1rem;
  background: none;
  border: none;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-light);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
  margin-bottom: -2px;
  flex-shrink: 0;
  min-width: fit-content;
}

.tab-btn i {
  font-size: 0.8rem;
}

.tab-btn:hover {
  color: var(--primary-color);
  background: rgba(102, 126, 234, 0.05);
}

.tab-btn.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
  background: rgba(102, 126, 234, 0.08);
  font-weight: 600;
}

.tab-content {
  display: none;
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.tab-content.active {
  display: block;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
}

.admin-table th,
.admin-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.admin-table th {
  background: var(--bg-light);
  font-weight: 600;
  color: var(--text-dark);
}

.admin-table tr:hover {
  background: var(--bg-light);
}

.role-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 500;
}

.role-badge.admin {
  background: #fef3c7;
  color: #92400e;
}

.role-badge.user {
  background: #dbeafe;
  color: #1e40af;
}

.btn-small {
  padding: 0.5rem 1rem;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

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

.perm-select {
  padding: 0.5rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 0.875rem;
}

/* Support Page - Manufacturer Grid */
.support {
  min-height: calc(100vh - 80px);
  padding-top: 120px;
  padding-bottom: 80px;
  background: var(--bg-light);
}

.manufacturers-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.manufacturer-card {
  background: white;
  border-radius: 16px;
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  color: var(--text-dark);
  border: 2px solid var(--border-color);
  min-height: 150px;
}

.manufacturer-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
  background: linear-gradient(to bottom, #ffffff, #f8fafc);
}

.manufacturer-logo {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  text-align: center;
  transition: transform 0.3s ease;
}

.manufacturer-card:hover .manufacturer-logo {
  transform: scale(1.1);
}

.manufacturer-info {
  text-align: center;
  width: 100%;
}

.manufacturer-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
  text-align: center;
  line-height: 1.4;
}

.manufacturer-name-en {
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 400;
  text-align: center;
}



/* Vehicle Models Page */
.vehicle-models {
  padding-top: 80px;
  min-height: 100vh;
  background: var(--bg-light);
}

.manufacturer-header {
  background: var(--primary-color);
  color: white;
  padding: 2rem 0;
  box-shadow: var(--shadow);
}

.manufacturer-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.manufacturer-header p {
  font-size: 1.1rem;
  opacity: 0.9;
}

.vehicle-content {
  display: flex;
  max-width: 1400px;
  margin: 0 auto;
  gap: 0;
}

/* 좌측 사이드바 */
.vehicle-sidebar {
  width: 250px;
  background: white;
  min-height: calc(100vh - 200px);
  border-right: 1px solid var(--border-color);
  flex-shrink: 0;
}

.sidebar-header {
  padding: 1.5rem;
  background: var(--bg-light);
  border-bottom: 1px solid var(--border-color);
}

.sidebar-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
}

.vehicle-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.vehicle-list li {
  border-bottom: 1px solid var(--border-color);
}

.vehicle-list li a {
  display: block;
  padding: 0.875rem 1.5rem;
  color: var(--text-dark);
  text-decoration: none;
  transition: all 0.2s ease;
}

.vehicle-list li:hover a,
.vehicle-list li.active a {
  background: var(--primary-color);
  color: white;
}

/* 메인 컨텐츠 */
.vehicle-main {
  flex: 1;
  padding: 2rem;
  background: white;
}

/* 필터 섹션 */
.vehicle-filters {
  margin-bottom: 2rem;
  padding: 1rem;
  background: var(--bg-light);
  border-radius: 8px;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-group label {
  font-weight: 600;
  color: var(--text-dark);
}

.year-select {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: white;
  font-size: 0.95rem;
  cursor: pointer;
  min-width: 150px;
}

.year-select:focus {
  outline: none;
  border-color: var(--primary-color);
}

/* Quick Link 섹션 */
.quick-link-section {
  margin-top: 2rem;
}

.quick-link-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--primary-color);
}

.quick-link-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  box-shadow: var(--shadow);
  border-radius: 8px;
  overflow: hidden;
}

.quick-link-table thead {
  background: var(--primary-color);
  color: white;
}

.quick-link-table th {
  padding: 1rem;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.quick-link-table th:last-child {
  border-right: none;
}

.quick-link-table tbody tr {
  border-bottom: 1px solid var(--border-color);
  transition: background 0.2s ease;
}

.quick-link-table tbody tr:hover {
  background: var(--bg-light);
}

.quick-link-table td {
  padding: 0.875rem 1rem;
  text-align: center;
  border-right: 1px solid var(--border-color);
}

.quick-link-table td:last-child {
  border-right: none;
}

.year-cell {
  font-weight: 600;
  color: var(--text-dark);
  background: var(--bg-light);
}

.check-cell {
  color: var(--primary-color);
  font-size: 1.2rem;
}

.check-cell i {
  transition: transform 0.2s ease;
}

.quick-link-table tbody tr:hover .check-cell i {
  transform: scale(1.2);
}

/* 반응형 디자인 */
@media (max-width: 1024px) {
  .vehicle-content {
    flex-direction: column;
  }

  .vehicle-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }

  .vehicle-list {
    display: flex;
    flex-wrap: wrap;
  }

  .vehicle-list li {
    flex: 0 0 50%;
    border-right: 1px solid var(--border-color);
  }

  .vehicle-list li:nth-child(2n) {
    border-right: none;
  }
}

@media (max-width: 768px) {
  .manufacturer-header h1 {
    font-size: 1.8rem;
  }

  .manufacturer-header p {
    font-size: 0.95rem;
  }

  .vehicle-main {
    padding: 1rem;
  }

  .quick-link-table {
    font-size: 0.85rem;
  }

  .quick-link-table th,
  .quick-link-table td {
    padding: 0.5rem 0.25rem;
  }

  .vehicle-list li {
    flex: 0 0 100%;
    border-right: none;
  }

  .vehicle-filters {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-group {
    flex-direction: column;
    align-items: stretch;
  }

  .year-select {
    width: 100%;
  }
}

/* Category Selection Page */
.category-selection {
  padding-top: 80px;
  min-height: 100vh;
  background: var(--bg-light);
}

.category-grid {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 0.75rem;
  padding: 3rem 0;
  max-width: 100%;
  margin: 0 auto;
  width: 100%;
  justify-content: space-between;
}

.category-card {
  background: white;
  border-radius: 12px;
  padding: 1.25rem 0.75rem;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  color: var(--text-dark);
  border: 3px solid transparent;
  position: relative;
  overflow: hidden;
  min-width: 0;
  flex: 1 1 0;
  max-width: 260px;
  text-align: center;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.category-card:hover::before {
  transform: scaleX(1);
}

.category-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: currentColor;
}

.category-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px;
  margin: 0 auto 1.5rem;
  transition: all 0.4s ease;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
}

.category-icon i {
  font-size: 2.5rem;
  color: white;
}

.category-card:hover .category-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.category-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
  line-height: 1.3;
}

.category-title-en {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 1rem;
  font-weight: 500;
}

.category-description {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.category-arrow {
  font-size: 1.5rem;
  text-align: right;
  transition: transform 0.3s ease;
}

.category-card:hover .category-arrow {
  transform: translateX(8px);
}

/* Breadcrumb Navigation */
.breadcrumb {
  margin-bottom: 1rem;
  font-size: 0.9rem;
  opacity: 0.9;
}

.breadcrumb a {
  color: white;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.breadcrumb a:hover {
  opacity: 0.7;
}

.breadcrumb span {
  margin: 0 0.5rem;
}

.manufacturer-header h1 i {
  margin-right: 0.75rem;
}

/* Responsive Design for Category Grid */
@media (max-width: 900px) {
  .category-grid {
    flex-wrap: wrap !important;
    justify-content: center;
  }
  
  .category-card {
    flex: 0 1 calc(50% - 0.5rem);
    max-width: 400px;
  }
}

@media (max-width: 768px) {
  .category-grid {
    flex-direction: column !important;
    gap: 1.5rem;
    padding: 2rem 1rem;
  }

  .category-card {
    padding: 2rem;
    max-width: 100%;
    flex: 1;
  }

  .category-icon {
    font-size: 2.5rem;
  }

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

/* Document Management in Admin Page */
.document-upload-form {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}

.document-upload-form h4 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.upload-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.upload-form .form-group {
  display: flex;
  flex-direction: column;
}

.upload-form .form-group label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.upload-form .form-group input,
.upload-form .form-group select {
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 0.95rem;
}

.upload-form .form-group input:focus,
.upload-form .form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
}

.upload-form .form-group small {
  margin-top: 0.5rem;
  color: var(--text-light);
  font-size: 0.875rem;
}

.btn-primary {
  padding: 0.875rem 2rem;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

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

.document-list {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.document-list h4 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.filter-section {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: center;
}

.filter-select {
  padding: 0.625rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 0.95rem;
  min-width: 180px;
}

.text-center {
  text-align: center;
  padding: 2rem;
  color: var(--text-light);
}

/* Responsive Design for Document Management */
@media (max-width: 768px) {
  .upload-form .form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .filter-section {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-select {
    width: 100%;
  }
}

/* Folder Management UI */
.breadcrumb-nav {
  display: flex;
  align-items: center;
  padding: 1rem;
  background: var(--bg-light);
  border-radius: 8px;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

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

.breadcrumb-item:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.breadcrumb-separator {
  margin: 0 0.5rem;
  color: var(--text-light);
}

.folder-actions {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.btn-danger {
  background: #dc2626 !important;
}

.btn-danger:hover {
  background: #b91c1c !important;
}

.folders-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.folder-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: white;
  border: 2px solid var(--border-color);
  border-radius: 16px;
  text-decoration: none;
  color: var(--text-dark);
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: var(--shadow);
  min-height: 150px;
}

.folder-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(to bottom, #ffffff, #f8fafc);
}

.folder-icon {
  font-size: 3.5rem;
  color: #f59e0b;
  margin-bottom: 1rem;
  text-align: center;
}

.folder-name {
  font-weight: 600;
  font-size: 1rem;
  word-break: break-word;
  text-align: center;
  line-height: 1.4;
}

.documents-section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 2px solid var(--border-color);
}

.documents-section h4 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

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

.document-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  background: white;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.document-card:hover {
  border-color: #dc2626;
  box-shadow: var(--shadow);
}

.document-icon {
  font-size: 2.5rem;
  color: #dc2626;
  margin-bottom: 0.5rem;
}

.document-name {
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  word-break: break-word;
  margin-bottom: 0.75rem;
}

.document-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-icon {
  padding: 0.5rem;
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

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

.btn-icon.btn-danger:hover {
  background: #dc2626;
  border-color: #dc2626;
}

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-light);
}

.empty-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

/* Responsive Design for Folder Management */
@media (max-width: 1400px) {
  .folders-grid {
    grid-template-columns: repeat(8, 1fr);
  }
  .manufacturers-grid {
    grid-template-columns: repeat(8, 1fr);
  }
}

@media (max-width: 1200px) {
  .folders-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  .manufacturers-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (max-width: 992px) {
  .folders-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  .manufacturers-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 768px) {
  .folders-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
  }
  .manufacturers-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
  }
  
  .folder-card,
  .manufacturer-card {
    padding: 1.25rem 0.5rem;
  }
  
  .folder-icon,
  .manufacturer-logo {
    font-size: 2rem;
  }
  
  .folder-name,
  .manufacturer-name {
    font-size: 0.85rem;
  }

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

  .folder-actions {
    flex-direction: column;
  }

  .folder-actions button {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .folders-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }
  .manufacturers-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }
  
  .folder-card,
  .manufacturer-card {
    padding: 1rem 0.25rem;
    min-height: 100px;
  }
  
  .folder-icon,
  .manufacturer-logo {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
  }
  
  .folder-name,
  .manufacturer-name {
    font-size: 0.75rem;
  }
}

/* Folder View Section (Customer View) */
.folder-view-section {
  padding-top: 80px;
  min-height: 100vh;
  background: #f9fafb;
}

.folder-content {
  padding: 3rem 0;
}

.folder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.folder-item,
.document-item {
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.folder-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border-color: #f59e0b;
}

.document-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border-color: #dc2626;
}

.folder-icon,
.document-icon {
  font-size: 3rem;
  transition: transform 0.3s ease;
}

.folder-item:hover .folder-icon,
.document-item:hover .document-icon {
  transform: scale(1.1);
}

.folder-name,
.document-name {
  font-size: 1rem;
  font-weight: 500;
  word-break: break-word;
  color: #1f2937;
}

.empty-folder {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  color: #6b7280;
}

/* Responsive Design for Folder View */
@media (max-width: 768px) {
  .folder-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
  }
  
  .folder-item,
  .document-item {
    padding: 1.5rem 1rem;
  }
  
  .folder-icon,
  .document-icon {
    font-size: 2.5rem;
  }
  
  .folder-name,
  .document-name {
    font-size: 0.875rem;
  }
}

/* Subscription Management */
.subscription-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.subscription-badge.free {
  background: #e5e7eb;
  color: #374151;
}

.subscription-badge.premium {
  background: #dbeafe;
  color: #1e40af;
}

.subscription-badge.vip {
  background: linear-gradient(135deg, #f3e8ff, #e9d5ff);
  color: #6b21a8;
  font-weight: 600;
  border: 1px solid #c084fc;
}

.subscription-badge.expired {
  background: #fee2e2;
  color: #991b1b;
}

.subscription-badge.admin {
  background: #fef3c7;
  color: #92400e;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s ease;
}

.modal.active {
  display: flex;
  justify-content: center;
  align-items: center;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  background: white;
  padding: 2rem;
  border-radius: 0.75rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  width: 90%;
  max-width: 500px;
  position: relative;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: #6b7280;
  transition: color 0.3s;
}

.modal-close:hover {
  color: #1f2937;
}

.modal-content h2 {
  margin-bottom: 1.5rem;
  color: #1f2937;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #374151;
  font-weight: 500;
  font-size: 0.875rem;
}

.form-group input[type="date"],
.form-group select {
  width: 100%;
  padding: 0.625rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  transition: border-color 0.3s;
}

.form-group input[type="date"]:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  justify-content: flex-end;
}

.btn {
  padding: 0.625rem 1.5rem;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s;
}

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

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

.btn-secondary {
  background: #6b7280;
  color: white;
}

.btn-secondary:hover {
  background: #4b5563;
}

/* Responsive Modal */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    padding: 1.5rem;
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .form-actions .btn {
    width: 100%;
  }
  
  /* Register Page Mobile */
  .register-container {
    padding: 1.5rem;
  }
  
  .register-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .auth-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
  
  /* About Tabs Mobile */
  .about-tabs {
    flex-direction: column;
    gap: 0;
    border-bottom: none;
  }
  
  .about-tab-btn {
    width: 100%;
    justify-content: center;
    border-bottom: 1px solid #e5e7eb;
    border-radius: 0;
    margin-bottom: 0;
  }
  
  .about-tab-btn.active {
    background: var(--primary-color);
    color: white;
  }
}

/* Products Page Styles */
.products-page {
  padding: 100px 0 60px;
  min-height: calc(100vh - 200px);
}

.products-page .container {
  max-width: 1300px;
}

.page-header {
  text-align: center;
  margin-bottom: 3rem;
}

.page-header h1 {
  font-size: 2.5rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.page-header h1 i {
  color: var(--primary-color);
  margin-right: 0.5rem;
}

.page-header p {
  font-size: 1.1rem;
  color: var(--text-light);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  color: var(--text-light);
}

.breadcrumb a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb a:hover {
  color: var(--secondary-color);
}

.breadcrumb i {
  font-size: 0.7rem;
}

/* Category Grid */
.category-grid {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 0.75rem;
  margin-top: 3rem;
  max-width: 100%;
  justify-content: space-between;
}

.category-card {
  background: white;
  border-radius: 16px;
  padding: 2.5rem;
  text-align: center;
  text-decoration: none;
  color: var(--text-dark);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.category-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.category-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
}

.category-icon i {
  font-size: 2.5rem;
  color: white;
}

.category-card:hover .category-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.category-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

.category-card p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.category-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-color);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.5rem 1.5rem;
  background: rgba(37, 99, 235, 0.05);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.category-card:hover .category-link {
  gap: 0.75rem;
  background: rgba(37, 99, 235, 0.1);
  padding-right: 1.75rem;
}

/* Subcategory Grid */
.section-subtitle {
  font-size: 1.5rem;
  color: var(--text-dark);
  margin: 3rem 0 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--primary-color);
  display: inline-block;
}

.subcategory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.subcategory-card {
  background: white;
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  text-decoration: none;
  color: var(--text-dark);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.subcategory-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  border-color: var(--primary-color);
}

.subcategory-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  background: var(--bg-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

.subcategory-card:hover .subcategory-icon {
  background: var(--primary-color);
  color: white;
  transform: scale(1.1);
}

.subcategory-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.subcategory-card p {
  font-size: 0.85rem;
  color: var(--text-light);
  margin: 0;
}

/* Product List Grid */
.product-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
}

.product-item-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text-dark);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.product-item-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.product-image-wrapper {
  position: relative;
  width: 100%;
  padding-top: 100%;
  background: var(--bg-light);
  overflow: hidden;
}

.product-image-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-item-card:hover .product-image-wrapper img {
  transform: scale(1.1);
}

.product-no-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--text-light);
}

.product-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--primary-color);
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 1;
}

.product-info {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-info h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
  line-height: 1.4;
  flex: 1;
}

.product-price {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.original-price {
  font-size: 0.9rem;
  color: var(--text-light);
  text-decoration: line-through;
}

.sale-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: #e74c3c;
}

.current-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-dark);
}

.contact-price {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-color);
}

/* Empty Products */
.empty-products {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-light);
}

.empty-products i {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-products p {
  font-size: 1.1rem;
}

/* Product Detail Page */
.product-detail-page {
  padding: 100px 0 60px;
  min-height: calc(100vh - 200px);
}

.product-detail-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin: 3rem 0;
}

.product-detail-images {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.main-image {
  width: 100%;
  aspect-ratio: 1;
  background: var(--bg-light);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}

.main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.main-image.no-image {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
}

.main-image.no-image i {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.thumbnail-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 0.75rem;
}

.thumbnail-images img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.thumbnail-images img:hover {
  border-color: var(--primary-color);
  opacity: 0.8;
}

.thumbnail-images img.active {
  border-color: var(--primary-color);
}

.product-detail-info {
  padding: 1rem 0;
}

.product-badge-large {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.product-title {
  font-size: 2rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.product-meta {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.9rem;
  color: var(--text-light);
}

.product-meta span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.product-meta i {
  color: var(--primary-color);
}

.product-price-box {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 2rem;
}

.original-price-large {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.original-price-large .label {
  font-size: 0.9rem;
  color: var(--text-light);
}

.original-price-large .price {
  font-size: 1.1rem;
  color: var(--text-light);
  text-decoration: line-through;
}

.sale-price-large {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.sale-price-large .label {
  font-size: 1rem;
  color: var(--text-dark);
  font-weight: 600;
}

.sale-price-large .price {
  font-size: 2rem;
  font-weight: 700;
  color: #e74c3c;
}

.sale-price-large .discount {
  background: #e74c3c;
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

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

.current-price-large .label {
  font-size: 1rem;
  color: var(--text-dark);
  font-weight: 600;
}

.current-price-large .price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
}

.contact-price-large {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
}

.contact-price-large i {
  margin-right: 0.5rem;
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.product-actions .btn {
  padding: 1rem;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 8px;
  text-decoration: none;
}

.stock-info {
  padding: 1rem;
  background: white;
  border-radius: 8px;
  text-align: center;
}

.in-stock {
  color: #27ae60;
  font-weight: 600;
}

.in-stock i {
  margin-right: 0.5rem;
}

.out-of-stock {
  color: #e74c3c;
  font-weight: 600;
}

.out-of-stock i {
  margin-right: 0.5rem;
}

/* Product Detail Tabs */
.product-detail-tabs {
  margin-top: 4rem;
}

.tab-buttons {
  display: flex;
  gap: 1rem;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 2rem;
}

.tab-button {
  padding: 1rem 2rem;
  border: none;
  background: none;
  color: var(--text-light);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.tab-button.active {
  color: var(--primary-color);
}

.tab-button.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary-color);
}

.tab-button:hover {
  color: var(--primary-color);
}

.tab-pane {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-pane.active {
  display: block;
}

.tab-pane h3 {
  font-size: 1.5rem;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
}

.product-description {
  line-height: 1.8;
  color: var(--text-dark);
  font-size: 1rem;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
}

.specs-table th,
.specs-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.specs-table th {
  background: var(--bg-light);
  font-weight: 600;
  color: var(--text-dark);
  width: 30%;
}

.specs-table td {
  color: var(--text-dark);
}

.specs-table tr:last-child th,
.specs-table tr:last-child td {
  border-bottom: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive - Products */
@media (max-width: 900px) {
  .category-grid {
    flex-wrap: wrap !important;
    justify-content: center;
  }
  
  .category-card {
    flex: 0 1 calc(50% - 0.5rem);
    max-width: 400px;
  }
}

@media (max-width: 768px) {
  .page-header h1 {
    font-size: 1.8rem;
  }
  
  .category-grid {
    flex-direction: column !important;
  }
  
  .category-card {
    max-width: 100%;
    flex: 1;
  }
  
  .subcategory-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .product-list-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .product-detail-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .product-detail-images {
    position: static;
  }
  
  .product-title {
    font-size: 1.5rem;
  }
  
  .product-actions {
    grid-template-columns: 1fr;
  }
  
  .tab-buttons {
    overflow-x: auto;
  }
  
  .tab-button {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }
}

/* Admin Products Page */
.admin-products-page,
.admin-product-form-page {
  padding: 100px 0 60px;
  min-height: calc(100vh - 200px);
}

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

.admin-actions {
  margin-bottom: 2rem;
}

.products-table-container {
  overflow-x: auto;
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1000px;
}

.admin-table thead {
  background: var(--bg-light);
}

.admin-table th,
.admin-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.admin-table th {
  font-weight: 600;
  color: var(--text-dark);
  white-space: nowrap;
}

.admin-table tbody tr:hover {
  background: var(--bg-light);
}

.admin-table tbody tr:last-child td {
  border-bottom: none;
}

.product-thumb {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
}

.no-image-thumb {
  width: 60px;
  height: 60px;
  background: var(--bg-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 1.5rem;
}

.price-original {
  color: var(--text-light);
  text-decoration: line-through;
  font-size: 0.9rem;
}

.price-sale {
  color: #e74c3c;
  font-weight: 600;
}

.price-contact {
  color: var(--primary-color);
  font-weight: 600;
}

.stock-available {
  color: #27ae60;
  font-weight: 600;
}

.stock-out {
  color: #e74c3c;
  font-weight: 600;
}

.badge {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.badge-featured {
  background: var(--primary-color);
  color: white;
}

.badge-active {
  background: #27ae60;
  color: white;
}

.badge-inactive {
  background: #95a5a6;
  color: white;
}

.action-buttons {
  display: flex;
  gap: 0.5rem;
}

.btn-sm {
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
}

.btn-danger {
  background: #e74c3c;
  color: white;
}

.btn-danger:hover {
  background: #c0392b;
}

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

.empty-state {
  padding: 3rem;
  color: var(--text-light);
}

.empty-state i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state p {
  font-size: 1.1rem;
}

/* Product Form */
.product-form {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.form-section {
  margin-bottom: 2rem;
}

.form-section h3 {
  font-size: 1.3rem;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-color);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-dark);
}

.form-group .required {
  color: #e74c3c;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="url"],
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="number"]:focus,
.form-group input[type="url"]:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
}

.form-group textarea {
  resize: vertical;
  font-family: inherit;
}

.form-group small {
  display: block;
  margin-top: 0.5rem;
  color: var(--text-light);
  font-size: 0.85rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group input[type="checkbox"] {
  margin-right: 0.5rem;
}

.image-input-row,
.spec-input-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.image-input-row input,
.spec-input-row input {
  flex: 1;
}

.spec-input-row input:first-child {
  flex: 0.4;
}

.spec-input-row input:nth-child(2) {
  flex: 0.6;
}

.form-actions {
  display: flex;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.form-actions .btn {
  padding: 1rem 2rem;
}

/* Responsive - Admin Products */
@media (max-width: 768px) {
  .admin-products-page .page-header,
  .admin-product-form-page .page-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .action-buttons {
    flex-direction: column;
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .form-actions .btn {
    width: 100%;
  }
}

/* Intro Section */
.intro-section {
  margin: 3rem 0;
}

.intro-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 3rem;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
  text-align: center;
}

.intro-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  backdrop-filter: blur(10px);
}

.intro-card h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.intro-description {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.intro-features {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 500;
}

.feature-item i {
  font-size: 1.2rem;
}

.section-divider {
  font-size: 1.5rem;
  color: var(--text-dark);
  margin: 3rem 0 2rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid var(--primary-color);
  font-weight: 600;
}

/* Responsive - Intro Section */
@media (max-width: 768px) {
  .intro-card {
    padding: 2rem 1.5rem;
  }
  
  .intro-card h3 {
    font-size: 1.5rem;
  }
  
  .intro-description {
    font-size: 1rem;
  }
  
  .intro-features {
    flex-direction: column;
    gap: 1rem;
  }
  
  .section-divider {
    font-size: 1.3rem;
  }
}

/* ===========================
   Admin Menu Styling
   =========================== */

.admin-menu .admin-link {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white !important;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.admin-menu .admin-link:hover {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
  transform: translateY(-2px);
}

.admin-menu .admin-link i.fa-shield-alt {
  margin-right: 6px;
}

.admin-menu .dropdown-menu {
  min-width: 220px;
}

.admin-menu .dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
}

.admin-menu .dropdown-menu a i {
  width: 20px;
  text-align: center;
  color: var(--primary-color);
}

.admin-menu .dropdown-menu a:hover i {
  transform: scale(1.1);
}

/* User Menu Icons */
.nav-menu .user-info i,
.nav-menu a[href="/api/logout"] i,
.nav-menu a[href="/login"] i {
  margin-right: 6px;
}


/* Admin Tabs Responsive */
@media (max-width: 1200px) {
  .tab-btn {
    padding: 0.7rem 0.85rem;
    font-size: 0.8rem;
    gap: 0.3rem;
  }
  
  .tab-btn i {
    font-size: 0.75rem;
  }
}

@media (max-width: 768px) {
  .tab-btn {
    padding: 0.65rem 0.75rem;
    font-size: 0.75rem;
  }
}

/* ==========================================
   Drag and Drop Styles
   ========================================== */

/* Draggable document cursor */
.document-card[draggable="true"] {
  cursor: grab;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.document-card[draggable="true"]:active {
  cursor: grabbing;
}

/* Drop zone styles */
.folder-card.drop-zone {
  transition: all 0.3s ease;
  position: relative;
}

.folder-card.drop-zone::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 3px dashed transparent;
  border-radius: inherit;
  transition: all 0.3s ease;
  pointer-events: none;
}

.folder-card.drop-zone.drag-over {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
  border-color: var(--primary-color);
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.folder-card.drop-zone.drag-over::before {
  border-color: var(--primary-color);
  animation: pulseBorder 1s ease-in-out infinite;
}

@keyframes pulseBorder {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Drag feedback */
.document-card[draggable="true"]:hover::after {
  content: '드래그하여 이동';
  position: absolute;
  bottom: -25px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 10;
}

.document-card[draggable="true"]:hover::after {
  opacity: 1;
}

/* Mobile touch feedback */
@media (max-width: 768px) {
  .document-card[draggable="true"]::after {
    display: none;
  }
}


/* ==========================================
   Own Products Section (자사개발사이트)
   ========================================== */

.own-products-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

.own-product-card {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
}

.own-product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.own-product-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 2rem;
  text-align: center;
  color: white;
}

.own-product-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 2rem;
  border: 3px solid rgba(255, 255, 255, 0.3);
}

.own-product-icon.vw-audi {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  border-color: rgba(59, 130, 246, 0.5);
}

.own-product-icon.bmw {
  background: linear-gradient(135deg, #1f2937 0%, #4b5563 100%);
  border-color: rgba(75, 85, 99, 0.5);
}

.own-product-header h3 {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.own-product-subtitle {
  font-size: 0.875rem;
  opacity: 0.9;
  margin: 0;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.own-product-body {
  padding: 2rem;
}

.own-product-description {
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.own-product-features {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #374151;
}

.feature-item i {
  color: #10b981;
  font-size: 1.125rem;
}

.feature-item span {
  font-size: 0.9375rem;
}

.own-product-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-decoration: none;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.own-product-link:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.own-product-link i {
  font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
  .own-products-section {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .own-product-header h3 {
    font-size: 1.5rem;
  }
  
  .own-product-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
}


/* ==========================================
   External Links Section (About Page)
   ========================================== */
.external-links {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 2px solid #e5e7eb;
}

.links-title {
  text-align: center;
  font-size: 1.75rem;
  margin-bottom: 2rem;
  color: var(--text-dark);
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 600px;
  margin: 0 auto;
}

.link-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  text-decoration: none;
  color: var(--text-dark);
  border: 2px solid transparent;
}

.link-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.link-card i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  display: block;
}

.link-card h4 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.link-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin: 0;
}

/* ==========================================
   Own Products Page
   ========================================== */
.own-products-page {
  min-height: 70vh;
  padding: 4rem 0;
}

.own-products-page .section-header {
  text-align: center;
  margin-bottom: 3rem;
}

@media (max-width: 768px) {
  .links-grid {
    grid-template-columns: 1fr;
  }
  
  .external-links {
    margin-top: 2rem;
    padding-top: 2rem;
  }
}

/* ==========================================
   CEO Message Section
   ========================================== */
.ceo-message {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #3b82f6 100%);
  border-radius: 20px;
  padding: 3rem;
  margin: 3rem 0;
  color: white;
  box-shadow: 0 20px 40px rgba(30, 58, 138, 0.4);
  position: relative;
  overflow: hidden;
}

.ceo-message::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: 20px;
  font-size: 120px;
  font-family: Georgia, serif;
  opacity: 0.1;
  line-height: 1;
  z-index: 1;
}

.ceo-background-photo {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 50%;
  overflow: hidden;
  z-index: 0;
}

.ceo-background-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.15;
  filter: grayscale(20%);
}

.ceo-message-header {
  position: relative;
  z-index: 2;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.ceo-info {
  flex: 1;
}

.ceo-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: white;
}

.ceo-name {
  font-size: 1.125rem;
  opacity: 0.9;
  margin: 0;
}

.ceo-message-content {
  position: relative;
  z-index: 2;
  font-size: 1.05rem;
  line-height: 1.9;
  max-width: 80%;
}

.ceo-message-content p {
  margin-bottom: 1.5rem;
  opacity: 0.95;
}

.ceo-greeting {
  font-size: 1.25rem !important;
  font-weight: 600 !important;
  margin-bottom: 2rem !important;
  opacity: 1 !important;
}

.ceo-signature {
  text-align: right;
  font-style: italic;
  font-size: 1.125rem !important;
  margin-top: 2.5rem !important;
  padding-top: 1.5rem;
  border-top: 2px solid rgba(255, 255, 255, 0.2);
  font-weight: 500 !important;
}

@media (max-width: 768px) {
  .ceo-message {
    padding: 2rem 1.5rem;
  }
  
  .ceo-background-photo {
    width: 100%;
    opacity: 0.5;
  }
  
  .ceo-background-photo img {
    opacity: 0.1;
  }
  
  .ceo-message-header {
    text-align: center;
  }
  
  .ceo-message-content {
    max-width: 100%;
  }
    font-size: 2.5rem;
  }
  
  .ceo-title {
    font-size: 1.25rem;
  }
  
  .ceo-name {
    font-size: 1rem;
  }
  
  .ceo-greeting {
    font-size: 1.1rem !important;
  }
  
  .ceo-signature {
    font-size: 1rem !important;
    text-align: center;
  }
}

/* ==========================================
   YouTube Video Section
   ========================================== */
.youtube-video-section {
  margin: 4rem 0;
  padding: 3rem;
  background: #f9fafb;
  border-radius: 16px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.video-title {
  text-align: center;
  font-size: 1.75rem;
  margin-bottom: 2rem;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.video-title i {
  color: #ff0000;
  font-size: 2rem;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
}

@media (max-width: 768px) {
  .youtube-video-section {
    padding: 2rem 1.5rem;
    margin: 2rem 0;
  }
  
  .video-title {
    font-size: 1.5rem;
  }
  
  .video-title i {
    font-size: 1.75rem;
  }
}

/* ==========================================
   Blog Posts Section (Admin)
   ========================================== */
.posts-section {
  margin-top: 2rem;
}

.posts-section h4 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.posts-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.post-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.post-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.post-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 0.75rem;
  gap: 1rem;
}

.post-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0;
  flex: 1;
}

.post-date {
  font-size: 0.875rem;
  color: var(--text-light);
  white-space: nowrap;
}

.post-preview {
  color: #6b7280;
  line-height: 1.6;
  margin: 0 0 0.75rem 0;
}

.post-attachment {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  color: #3b82f6;
  background: #eff6ff;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

.post-actions {
  display: flex;
  gap: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid #e5e7eb;
}

@media (max-width: 768px) {
  .post-header {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .post-date {
    align-self: flex-start;
  }
}

/* ==========================================
   Post Detail Page
   ========================================== */
.post-detail {
  min-height: 70vh;
  padding: 4rem 0;
}

.post-detail-header {
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 2rem;
  margin-bottom: 2rem;
}

.post-detail-title {
  font-size: 2.5rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.post-detail-meta {
  display: flex;
  gap: 2rem;
  color: var(--text-light);
  font-size: 0.95rem;
}

.post-detail-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.post-detail-content {
  font-size: 1.1rem;
  line-height: 1.9;
  color: #374151;
  margin-bottom: 3rem;
}

.post-detail-content p {
  margin-bottom: 1.5rem;
}

.post-detail-attachment {
  background: #f9fafb;
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 2rem;
}

.post-detail-attachment h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.post-detail-actions {
  display: flex;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 2px solid #e5e7eb;
}

@media (max-width: 768px) {
  .post-detail-title {
    font-size: 1.75rem;
  }
  
  .post-detail-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .post-detail-content {
    font-size: 1rem;
  }
}

/* ==========================================
   Blog Post Editor Page
   ========================================== */
.editor-page {
  min-height: 100vh;
  background: #f9fafb;
  padding: 2rem 0;
}

.editor-container {
  max-width: 1200px;
  margin: 0 auto;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 2rem;
}

.editor-header {
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}

.editor-header h2 {
  font-size: 1.75rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.editor-breadcrumb {
  color: var(--text-light);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.editor-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.form-control {
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-control[type="text"] {
  font-size: 1.25rem;
  font-weight: 500;
}

.quill-editor {
  height: 400px;
  background: white;
  border-radius: 8px;
}

.ql-container {
  font-size: 1.05rem;
  line-height: 1.8;
}

.ql-editor {
  min-height: 350px;
}

.ql-toolbar {
  border-radius: 8px 8px 0 0 !important;
  background: #f9fafb;
  border: 1px solid #d1d5db !important;
}

.ql-container {
  border-radius: 0 0 8px 8px !important;
  border: 1px solid #d1d5db !important;
  border-top: none !important;
}

.current-file {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #3b82f6;
  background: #eff6ff;
  padding: 0.75rem;
  border-radius: 6px;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.editor-actions {
  display: flex;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 2px solid #e5e7eb;
}

.editor-actions button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .editor-container {
    padding: 1.5rem;
    margin: 0 1rem;
  }
  
  .editor-header h2 {
    font-size: 1.5rem;
  }
  
  .quill-editor {
    height: 300px;
  }
  
  .editor-actions {
    flex-direction: column;
  }
  
  .editor-actions button {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================
   Admin Split Layout (Sidebar + Content)
   ========================================== */
.admin-split-layout {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}

.admin-sidebar {
  width: 300px;
  flex-shrink: 0;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1.5rem;
  max-height: 80vh;
  overflow-y: auto;
  position: sticky;
  top: 2rem;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e5e7eb;
}

.sidebar-header h4 {
  font-size: 1.125rem;
  margin: 0;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sidebar-header .btn-small {
  padding: 0.5rem;
  min-width: auto;
}

.admin-content {
  flex: 1;
  min-width: 0;
}

/* ==========================================
   Folder Tree Navigation
   ========================================== */
.folder-tree {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.tree-folder {
  display: flex;
  flex-direction: column;
}

.tree-folder.nested {
  margin-left: 1.5rem;
}

.tree-folder-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.tree-folder-item:hover {
  background: #f3f4f6;
}

.tree-folder-item.active {
  background: #eff6ff;
}

.tree-folder-item.active .tree-link {
  color: var(--primary-color);
  font-weight: 600;
}

.tree-toggle {
  background: none;
  border: none;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #9ca3af;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.tree-toggle i {
  font-size: 0.75rem;
}

.tree-toggle.expanded i {
  transform: rotate(90deg);
}

.tree-link {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text-dark);
  font-size: 0.95rem;
  min-width: 0;
}

.tree-link span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tree-link i {
  flex-shrink: 0;
  color: #f59e0b;
}

.tree-children {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  margin-left: 1.5rem;
  margin-top: 0.25rem;
}

.tree-children.expanded {
  display: flex;
}

.tree-post {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.5rem;
  border-radius: 6px;
  text-decoration: none;
  color: #6b7280;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  min-width: 0;
}

.tree-post:hover {
  background: #f3f4f6;
  color: var(--text-dark);
}

.tree-post i {
  flex-shrink: 0;
  font-size: 0.85rem;
  color: #3b82f6;
}

.tree-post span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ==========================================
   Responsive
   ========================================== */
@media (max-width: 1024px) {
  .admin-split-layout {
    flex-direction: column;
  }
  
  .admin-sidebar {
    width: 100%;
    max-height: 50vh;
    position: relative;
    top: 0;
  }
}

@media (max-width: 768px) {
  .admin-sidebar {
    max-height: 40vh;
  }
  
  .sidebar-header h4 {
    font-size: 1rem;
  }
}

/* ==========================================
   Content with Sidebar (User Pages)
   ========================================== */
.content-with-sidebar {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}

.content-sidebar {
  width: 280px;
  flex-shrink: 0;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1.5rem;
  max-height: 80vh;
  overflow-y: auto;
  position: sticky;
  top: 2rem;
}

.content-sidebar .sidebar-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e5e7eb;
}

.content-sidebar .sidebar-header h4 {
  font-size: 1.125rem;
  margin: 0;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.content-main {
  flex: 1;
  min-width: 0;
}

@media (max-width: 1024px) {
  .content-with-sidebar {
    flex-direction: column;
  }
  
  .content-sidebar {
    width: 100%;
    max-height: 50vh;
    position: relative;
    top: 0;
  }
}

/* ==========================================
   Smartstore Fetch Styles
   ========================================== */
.smartstore-input-group {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}

.smartstore-input-group input {
  flex: 1;
}

.fetch-status {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  min-height: 1.5rem;
}

.fetch-status .loading {
  color: #3b82f6;
}

.fetch-status .success {
  color: #10b981;
}

.fetch-status .error {
  color: #ef4444;
}

.image-url-input {
  font-size: 0.9rem;
}

.form-section h3 {
  margin-bottom: 1.5rem;
  color: #1f2937;
  font-size: 1.25rem;
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 0.5rem;
}

