/* ===========================================
   LIMGAR Custom CSS - Inspired by Modern Clean Design
   ========================================== */

/* ============ ROOT VARIABLES ============ */
:root {
  /* Primary Colors - Professional Health Theme */
  --primary-green: #059669;
  --primary-light: #10b981;
  --primary-dark: #047857;
  --accent-green: #065f46;
  
  /* Secondary Colors */
  --secondary-blue: #0369a1;
  --secondary-purple: #7c3aed;
  --secondary-yellow: #f59e0b;
  
  /* Neutral Colors */
  --dark-gray: #1f2937;
  --medium-gray: #6b7280;
  --light-gray: #f9fafb;
  --white: #ffffff;
  
  /* Success & Status Colors */
  --success: #22c55e;
  --warning: #f59e0b;
  --error: #ef4444;
  --info: #3b82f6;
  
  /* Gradients */
  --primary-gradient: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-green) 100%);
  --hero-gradient: linear-gradient(135deg, var(--primary-green) 0%, var(--accent-green) 50%, var(--primary-dark) 100%);
  --card-gradient: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-green: 0 10px 25px rgba(16, 185, 129, 0.3);
  
  /* Typography */
  --font-thai: 'IBM Plex Sans Thai', sans-serif;
  --font-khmer: 'IBM Plex Sans Thai', 'Noto Sans Khmer', sans-serif;
  --font-latin: 'IBM Plex Sans Thai', 'Inter', sans-serif;
  
  /* Spacing */
  --section-padding: 5rem 0;
  --container-padding: 0 1rem;
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  
  /* Transitions */
  --transition-fast: all 0.2s ease;
  --transition-normal: all 0.3s ease;
  --transition-slow: all 0.5s ease;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-thai);
  line-height: 1.7;
  color: var(--dark-gray);
  background-color: var(--light-gray);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============ CONTAINER & LAYOUT ============ */
.limgar-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--container-padding);
}

.section-padding {
  padding: var(--section-padding);
}

/* ============ HERO SECTION ============ */
.hero-gradient {
  background: var(--hero-gradient);
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-gradient::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grain)"/></svg>');
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 2.5rem;
  opacity: 0.95;
}

/* ============ BUTTONS ============ */
.btn-primary {
  background: var(--primary-gradient);
  color: var(--white);
  padding: 1rem 2rem;
  border-radius: var(--radius-lg);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-normal);
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-green);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: var(--transition-normal);
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  padding: 1rem 2rem;
  border: 2px solid var(--white);
  border-radius: var(--radius-lg);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-normal);
  cursor: pointer;
}

.btn-secondary:hover {
  background: var(--white);
  color: var(--primary-green);
  transform: translateY(-2px);
}

/* ============ CARDS ============ */
.card-modern {
  background: var(--card-gradient);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
  border: 1px solid rgba(255, 255, 255, 0.8);
  position: relative;
  overflow: hidden;
}

.card-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-gradient);
  transform: scaleX(0);
  transition: var(--transition-normal);
}

.card-modern:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

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

/* ============ PRODUCT CARDS ============ */
.product-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
  position: relative;
}

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

.product-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-xl);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--white);
  z-index: 2;
}

.badge-bestseller {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.badge-new {
  background: linear-gradient(135deg, var(--secondary-blue), #1e40af);
}

.badge-sale {
  background: linear-gradient(135deg, var(--secondary-yellow), #d97706);
}

/* ============ STATISTICS SECTION ============ */
.stats-section {
  background: var(--primary-gradient);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23dots)"/></svg>');
}

.stat-item {
  text-align: center;
  position: relative;
  z-index: 2;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1.1rem;
  font-weight: 500;
  opacity: 0.9;
}

/* ============ SECTION HEADERS ============ */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--dark-gray);
  margin-bottom: 1rem;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 4rem;
  height: 3px;
  background: var(--primary-gradient);
  border-radius: var(--radius-sm);
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--medium-gray);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ============ NAVIGATION ============ */
.top-bar {
  background: var(--dark-gray);
  padding: 0.75rem 0;
  font-size: 0.875rem;
}

.main-nav {
  background: var(--primary-green);
  padding: 1rem 0;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.nav-link {
  color: var(--white);
  text-decoration: none;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
  font-weight: 500;
  position: relative;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.nav-link.active {
  background: rgba(255, 255, 255, 0.2);
}

/* ============ FOOTER ============ */
.footer {
  background: var(--dark-gray);
  color: var(--white);
  padding: 4rem 0 2rem;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--primary-gradient);
}

.footer-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--white);
}

.footer-link {
  color: #d1d5db;
  text-decoration: none;
  transition: var(--transition-fast);
  padding: 0.25rem 0;
  display: block;
}

.footer-link:hover {
  color: var(--primary-light);
  padding-left: 0.5rem;
}

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

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.animate-fade-in-left {
  animation: fadeInLeft 0.6s ease-out;
}

.animate-fade-in-right {
  animation: fadeInRight 0.6s ease-out;
}

.animate-pulse-subtle {
  animation: pulse 2s infinite;
}

/* ============ UTILITIES ============ */
.text-gradient {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-pattern {
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(16, 185, 129, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(5, 150, 105, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(6, 95, 70, 0.1) 0%, transparent 50%);
}

.glass-effect {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ============ RESPONSIVE DESIGN ============ */
@media (max-width: 768px) {
  :root {
    --section-padding: 3rem 0;
  }
  
  .hero-gradient {
    min-height: 80vh;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .card-modern {
    padding: 1.5rem;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
}

@media (max-width: 480px) {
  :root {
    --section-padding: 2rem 0;
  }
  
  .btn-primary,
  .btn-secondary {
    padding: 0.875rem 1.5rem;
    font-size: 0.9rem;
  }
}

/* ============ PRINT STYLES ============ */
@media print {
  .top-bar,
  .main-nav,
  .footer {
    display: none;
  }
  
  .hero-gradient {
    background: var(--white);
    color: var(--dark-gray);
    min-height: auto;
  }
} 