@import url('https://fonts.googleapis.com/css2?family=Pretendard:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Modern Vibrant Color Palette */
  --primary: #4F46E5; /* Indigo */
  --primary-hover: #4338CA;
  --primary-light: #EEF2FF;
  --secondary: #0EA5E9; /* Ocean Blue */
  --accent: #F43F5E; /* Rose */
  
  /* Neutral Palette for premium feel */
  --bg-body: #F1F5F9;
  --bg-surface: #FFFFFF;
  --bg-surface-hover: #F8FAFC;
  
  --text-main: #0F172A;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  
  --border-color: #E2E8F0;
  --border-light: #F1F5F9;
  
  /* Shadows - Soft & Diffused */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.05), 0 4px 6px -4px rgb(0 0 0 / 0.05);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.05), 0 8px 10px -6px rgb(0 0 0 / 0.05);
  --shadow-glow: 0 0 20px rgba(79, 70, 229, 0.2);
  
  /* Geometry */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  outline: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: #fff;
  box-shadow: 0 4px 14px 0 rgba(79, 70, 229, 0.39);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
  color: #fff;
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--bg-surface-hover);
  border-color: #CBD5E1;
}

/* ==========================================================================
   HEADER & NAVIGATION (GLASSMORPHISM)
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.logo img {
  height: 44px;
  transition: transform 0.3s ease;
}
.logo:hover img {
  transform: scale(1.05);
}

/* Search Bar (Pill design) */
.global-search {
  flex: 1;
  max-width: 480px;
  display: flex;
  align-items: center;
  background: var(--bg-surface-hover);
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  padding: 6px 6px 6px 20px;
  transition: var(--transition);
}

.global-search:focus-within {
  background: #fff;
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}

.global-search input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.95rem;
  color: var(--text-main);
  font-family: 'Pretendard', sans-serif;
}

.global-search input::placeholder {
  color: var(--text-light);
}

.global-search button {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-full);
  padding: 10px 24px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.global-search button:hover {
  background: var(--primary-hover);
  transform: scale(1.02);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.95rem;
  position: relative;
  padding: 8px 0;
}

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

/* Category Navbar (Sub Header) */
.category-navbar {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  position: relative;
  z-index: 90;
}

.cat-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
}

.cat-item {
  position: relative;
  padding: 16px 0;
}

.cat-item > a {
  font-weight: 600;
  color: var(--text-main);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cat-item > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--primary);
  border-radius: 3px 3px 0 0;
  transition: var(--transition);
}

.cat-item:hover > a {
  color: var(--primary);
}

.cat-item:hover > a::after {
  width: 100%;
}

/* Premium Mega Dropdown */
.cat-dropdown {
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  position: absolute;
  top: 100%;
  left: -24px;
  width: max-content;
  min-width: 320px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-xl);
  padding: 32px;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.5);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.cat-dropdown a:hover .hover-text {
  color: var(--primary);
  transform: translateX(4px);
  display: inline-block;
  transition: all 0.2s ease;
}

.cat-dropdown a {
  transition: all 0.2s ease;
}

.cat-dropdown a:hover i {
  color: var(--primary) !important;
}

/* Align right-most dropdowns to the left to avoid overflow */
.cat-item:nth-last-child(-n+3) .cat-dropdown {
  left: auto;
  right: -24px;
}

.cat-item:hover .cat-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.subcat-group h4 {
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border-light);
}

.subcat-group h4 a:hover {
  color: var(--primary);
}

.subcat-group ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.subcat-group ul li a {
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 4px 8px;
  border-radius: 6px;
  margin-left: -8px;
  transition: 0.2s ease;
}

.subcat-group ul li a:hover {
  background: var(--primary-light);
  color: var(--primary);
}

/* ==========================================================================
   LAYOUT CONTAINERS
   ========================================================================== */
.main-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  min-height: calc(100vh - 300px);
}

/* ==========================================================================
   HERO SECTION (GLASSMORPHISM & GRADIENTS)
   ========================================================================== */
.premium-hero {
  max-width: 1200px;
  margin: 32px auto 48px;
  padding: 48px 40px;
  background: linear-gradient(135deg, #0F172A 0%, #1E1B4B 100%);
  border-radius: 32px;
  box-shadow: 0 20px 40px -10px rgba(79, 70, 229, 0.25);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  overflow: hidden;
}

/* Background subtle glow & pattern */
.premium-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%234f46e5' fill-opacity='0.15'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-content {
  flex: 1;
  position: relative;
  z-index: 1;
  text-align: left;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  color: #FFFFFF;
  line-height: 1.1;
}

.hero-content p {
  font-size: 1.25rem;
  color: #94A3B8;
  max-width: 480px;
  margin-bottom: 40px;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  position: relative;
  z-index: 1;
}

/* Background blob for glassmorphism contrast */
.hero-image::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.4) 0%, rgba(14, 165, 233, 0.4) 100%);
  filter: blur(60px);
  z-index: -1;
  border-radius: 50%;
  animation: pulseBlob 4s infinite alternate;
}

@keyframes pulseBlob {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
  100% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
}

.animated-chip {
  max-width: 280px;
  width: 100%;
  height: auto;
  
  /* Glassmorphism */
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.1);
  padding: 20px;
}

/* SVG Animations */
.pulse {
  stroke-dasharray: 20, 100;
  stroke-dashoffset: 120;
  animation: dash 2s linear infinite;
}

.pulse.p1 { animation-delay: 0.0s; animation-duration: 2.0s; }
.pulse.p2 { animation-delay: 0.3s; animation-duration: 2.2s; }
.pulse.p3 { animation-delay: 0.6s; animation-duration: 1.8s; }
.pulse.p4 { animation-delay: 0.9s; animation-duration: 2.1s; }
.pulse.p5 { animation-delay: 0.2s; animation-duration: 2.3s; }
.pulse.p6 { animation-delay: 0.7s; animation-duration: 1.9s; }
.pulse.p7 { animation-delay: 0.4s; animation-duration: 2.4s; }
.pulse.p8 { animation-delay: 0.8s; animation-duration: 2.0s; }
.pulse.p9 { animation-delay: 0.1s; animation-duration: 2.2s; }
.pulse.p10 { animation-delay: 0.5s; animation-duration: 1.7s; }
.pulse.p11 { animation-delay: 1.0s; animation-duration: 2.5s; }

@keyframes dash {
  0% { stroke-dashoffset: 120; }
  100% { stroke-dashoffset: 0; }
}

.core-chip {
  animation: coreGlow 2s ease-in-out infinite alternate;
}

@keyframes coreGlow {
  0% { filter: drop-shadow(0 0 10px rgba(14, 165, 233, 0.4)); }
  100% { filter: drop-shadow(0 0 25px rgba(79, 70, 229, 0.8)); }
}

.section-heading {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-heading::before {
  content: '';
  width: 6px;
  height: 24px;
  background: var(--primary);
  border-radius: 4px;
}

/* ==========================================================================
   PRODUCT CARDS (BENTO STYLE)
   ========================================================================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 32px;
}

.premium-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: var(--transition);
  position: relative;
}

.premium-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  opacity: 0;
  transition: var(--transition);
  pointer-events: none;
}

.premium-card:hover {
  transform: translateY(-8px);
  border-color: transparent;
}

.premium-card:hover::before {
  opacity: 1;
}

.premium-card .img-wrapper {
  aspect-ratio: 4/3;
  background: #F8FAFC;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.premium-card:hover .img-wrapper img {
  transform: scale(1.08);
}

.premium-card .img-wrapper img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  mix-blend-mode: multiply;
}

.premium-card .no-image {
  color: var(--text-light);
  font-weight: 500;
  font-size: 0.9rem;
  background: #F8FAFC;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.premium-card .info-wrapper {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  background: var(--bg-surface);
  position: relative;
  z-index: 1;
}

.premium-card h4 {
  font-size: 1.15rem;
  color: var(--text-main);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 600;
}

.premium-card .code {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  background: var(--bg-surface-hover);
  padding: 4px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 16px;
  align-self: flex-start;
}

.premium-card .price {
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--primary);
  margin-top: auto;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.premium-card .price::after {
  content: '원';
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* ==========================================================================
   FEATURES SECTION
   ========================================================================== */
.features-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 20px;
}

.feature-card {
  background: var(--bg-surface);
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

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

.feature-card h3 {
  color: var(--text-main);
  margin-bottom: 16px;
  font-size: 1.25rem;
}

.feature-card p {
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   SWIPER CUSTOMIZATION
   ========================================================================== */
.swiper {
  width: 100%;
  padding: 10px 10px 60px !important;
  margin: -10px -10px 0 !important;
}

.swiper-pagination-bullet {
  background: var(--border-color);
  opacity: 1;
  width: 8px;
  height: 8px;
  transition: all 0.3s;
}

.swiper-pagination-bullet-active {
  background: var(--primary);
  width: 24px;
  border-radius: 4px;
}

.swiper-button-next, .swiper-button-prev {
  background: rgba(255, 255, 255, 0.9);
  width: 48px !important;
  height: 48px !important;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  color: var(--primary) !important;
  border: 1px solid var(--border-color);
  backdrop-filter: blur(4px);
}

.swiper-button-next:after, .swiper-button-prev:after {
  font-size: 18px !important;
  font-weight: 900;
}

/* ==========================================================================
   PAGINATION
   ========================================================================== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 64px;
  list-style: none;
}

.pagination li a, .pagination li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
}

.pagination li a:hover {
  background: var(--bg-surface-hover);
  border-color: #CBD5E1;
  transform: translateY(-2px);
}

.pagination li.active span {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

/* ==========================================================================
   PRODUCT DETAIL PAGE
   ========================================================================== */
.product-detail {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 40px;
  margin-top: 20px;
}

.detail-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}

.detail-image {
  background: #F8FAFC;
  border-radius: var(--radius-md);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
}

.detail-image img {
  max-width: 100%;
  mix-blend-mode: multiply;
}

.detail-info h2 {
  font-size: 2rem;
  margin-bottom: 24px;
  color: var(--text-main);
}

.info-row {
  display: flex;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-light);
}

.info-row .label {
  width: 120px;
  color: var(--text-muted);
  font-weight: 600;
}

.info-row .value {
  color: var(--text-main);
  font-weight: 500;
}

.price-section {
  background: var(--bg-body);
  padding: 24px;
  border-radius: var(--radius-md);
  margin: 32px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.price-section .label {
  font-size: 1.1rem;
  color: var(--text-muted);
  font-weight: 600;
}

.price-section .value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
}

.discount-prices {
  background: var(--primary-light);
  padding: 24px;
  border-radius: var(--radius-md);
  margin-bottom: 32px;
}

.discount-prices h4 {
  color: var(--primary-hover);
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.discount-prices ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.discount-prices li {
  display: flex;
  justify-content: space-between;
  color: var(--text-main);
  font-weight: 500;
}

.action-buttons {
  display: flex;
  gap: 16px;
  margin-top: 32px;
}

.btn-inquire {
  flex: 2;
  background: var(--primary);
  color: white;
  padding: 16px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 14px 0 rgba(79, 70, 229, 0.39);
}

.btn-inquire:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

.btn-secondary {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

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

.detail-description h3 {
  font-size: 1.5rem;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border-color);
}

.desc-content {
  line-height: 1.8;
  color: var(--text-main);
}

/* ==========================================================================
   CATEGORY NAVBAR
   ========================================================================== */
.category-navbar {
  background: white;
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

.cat-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cat-item {
  position: relative;
  padding: 16px 0;
}

.cat-item > a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 700;
  font-size: 1rem;
  padding: 8px 12px;
  transition: color 0.2s;
}

.cat-item:hover > a {
  color: var(--primary);
}

.cat-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 24px;
  min-width: 600px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 200;
}

.cat-item:hover .cat-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* Align right-most dropdowns to the left to avoid overflow */
.cat-item:nth-last-child(-n+3) .cat-dropdown {
  left: auto;
  right: -24px;
}

.subcat-group h4 {
  font-size: 1rem;
  color: var(--text-main);
  border-bottom: 2px solid var(--bg-surface-hover);
  padding-bottom: 8px;
}

.subcat-group ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.subcat-group ul li a {
  display: block;
  padding: 4px 0;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.subcat-group ul li a:hover {
  color: var(--primary);
}

.subcat-group ul li a:hover .hover-text {
  transform: translateX(4px);
  color: var(--primary);
  display: inline-block;
  transition: transform 0.2s;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  margin-top: 80px;
}
/* ==========================================================================
   QUICK MENU (SCROLL SPY)
   ========================================================================== */
.quick-menu {
  position: fixed;
  left: 50%;
  margin-left: 620px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.1);
  width: auto;
  min-width: 160px;
  text-align: center;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.quick-menu:hover {
  transform: translateY(-50%) scale(1.02);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
  border-color: rgba(255, 255, 255, 1);
}

.quick-header {
  padding: 24px 10px 16px;
  color: var(--primary);
  font-weight: 800;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 1rem;
  letter-spacing: -0.3px;
}

.quick-header i {
  color: var(--primary);
  stroke-width: 2.5;
  margin-bottom: 8px;
  filter: drop-shadow(0 2px 4px rgba(79, 70, 229, 0.3));
}

.quick-body {
  padding: 0 10px 20px;
}

.quick-body .phone-number {
  display: block;
  color: #1E293B;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
}

.quick-body .phone-number:hover {
  color: var(--primary);
}

.quick-body .working-hours {
  color: #64748B;
  font-size: 0.75rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.4;
  word-break: keep-all;
}

.quick-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.quick-footer .btn-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 16px;
  background: transparent;
  color: #94A3B8;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  transition: all 0.2s ease;
}

.quick-footer .btn-top i {
  stroke-width: 2.5;
}

.quick-footer .btn-top:hover {
  background: var(--primary);
  color: #fff;
}

@media (max-width: 1600px) {
  .quick-menu {
    left: auto;
    margin-left: 0;
    right: 24px;
  }
}

/* ==========================================================================
   INQUIRY MODAL & FORM STYLES (Restored & Mobile Ready)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-content {
  background: #fff;
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
}
.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-header h2 {
  font-size: 1.25rem;
  margin: 0;
}
.modal-header .btn-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
}
.modal-body {
  padding: 24px;
}
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.form-group {
  margin-bottom: 16px;
}
.form-group.row {
  display: flex;
  gap: 16px;
}
.form-group.row .col {
  flex: 1;
}
.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: var(--text-main);
  font-size: 0.9rem;
}
.form-group label .required {
  color: #ef4444;
}
.form-group input, .form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.95rem;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* ==========================================================================
   HOVER CUTOFF FIX (Product Grid)
   ========================================================================== */
.product-grid {
  padding-top: 12px; /* Prevent card translate from cutting off text */
}

/* ==========================================================================
   MOBILE RESPONSIVENESS
   ========================================================================== */
@media (max-width: 768px) {
  /* Layout Padding */
  .main-content {
    padding: 24px 16px 40px;
  }

  /* Header */
  .header {
    padding: 16px 0;
  }
  .nav-container {
    flex-direction: column;
    gap: 16px;
  }
  .global-search {
    width: 100%;
    max-width: 100%;
  }
  .nav-links {
    width: 100%;
    justify-content: center;
  }
  
  /* Category Nav (Horizontal Scroll) */
  .cat-container {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 20px;
    padding-bottom: 12px; /* For scrollbar space */
  }
  
  .cat-item {
    white-space: nowrap;
  }
  
  /* Hide scrollbar for category links */
  .cat-container::-webkit-scrollbar {
    display: none;
  }
  .cat-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  /* Hero Section */
  .premium-hero {
    padding: 32px 16px;
  }
  .premium-hero h1 {
    font-size: 1.8rem;
  }

  /* Features */
  .features-section {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Product Grid - Force 2 columns on mobile */
  .product-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px;
  }
  
  /* Adjust product card padding and font for mobile */
  .premium-card .info-wrapper {
    padding: 16px 12px;
  }
  .premium-card .product-title {
    font-size: 0.95rem;
  }
  .premium-card .price-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  /* Product Detail */
  .detail-header {
    flex-direction: column;
    gap: 24px;
    padding: 24px;
  }
  .detail-img {
    width: 100%;
    margin-right: 0;
  }
  .action-buttons {
    flex-direction: column;
    width: 100%;
  }
  .action-buttons a {
    width: 100%;
    flex: none;
  }

  /* Form & Modal */
  .form-group.row {
    flex-direction: column;
    gap: 16px;
  }
  .modal-content {
    width: 95%;
  }

  /* Footer */
  .footer-content {
    flex-direction: column;
    gap: 32px;
  }

  /* Quick Menu (Scroll Spy) on Mobile */
  .quick-menu {
    top: auto;
    bottom: 24px;
    right: 16px;
    left: auto;
    transform: none;
    min-width: 0;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  }
  .quick-menu:hover {
    transform: translateY(-4px);
  }
  .quick-header, .quick-body {
    display: none; /* Hide CS info on mobile */
  }
  .quick-footer {
    border: none;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
  }
  .quick-footer .btn-top {
    padding: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    flex-direction: column;
    gap: 2px;
    background: var(--bg-surface);
  }
  .quick-footer .btn-top span {
    font-size: 0.65rem;
  }

  /* Swiper Cards */
  .mySwiper .swiper-slide, .mySwiper2 .swiper-slide {
    width: 100% !important; /* Forces 1 view on mobile if JS struggles */
  }
}
