/* ========================================
   UNIFIED CSS FRAMEWORK - CHINTAMANI DISTRIBUTORS
   ======================================== */

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Color Palette */
  --primary-color: #d4af37;
  --primary-dark: #b8860b;
  --secondary-color: #fffdf8;
  --background-color: #ffffff;
  --text-primary: #333333;
  --text-secondary: #666666;
  --text-light: #999999;
  --border-color: #e0e0e0;
  --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.15);
  --shadow-heavy: 0 8px 30px rgba(0, 0, 0, 0.2);
  
  /* Typography */
  --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 2rem;
  --font-size-4xl: 2.5rem;
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* Base Typography */
body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--text-primary);
  background: linear-gradient(135deg, var(--secondary-color) 0%, #f8f5f0 100%);
  min-height: 100vh;
}

/* Typography Scale */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: var(--spacing-md);
}

h1 { font-size: var(--font-size-4xl); }
h2 { font-size: var(--font-size-3xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }
h5 { font-size: var(--font-size-lg); }
h6 { font-size: var(--font-size-base); }

p {
  margin-bottom: var(--spacing-md);
  color: var(--text-secondary);
}

/* Container System */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */

header {
  background: var(--background-color);
  border-bottom: 3px solid var(--primary-color);
  box-shadow: var(--shadow-light);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-lg) 0;
}

.logo {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--primary-dark);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.logo:hover {
  color: var(--primary-color);
}

/* Navigation */
nav ul {
  list-style: none;
  display: flex;
  gap: var(--spacing-lg);
  align-items: center;
}

nav ul li a {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  position: relative;
}

nav ul li a:hover,
nav ul li a.active {
  color: var(--primary-color);
  background: rgba(212, 175, 55, 0.1);
}

nav ul li a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--primary-color);
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    gap: var(--spacing-md);
  }
  
  nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-sm);
  }
  
  nav ul li a {
    font-size: var(--font-size-sm);
    padding: var(--spacing-xs) var(--spacing-sm);
  }
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
  height: 400px;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7)),
              url('https://images.unsplash.com/photo-1504114133367-631ecd3db3d2?auto=format&q=80&w=1600&fit=crop');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  position: relative;
}

.hero-text {
  max-width: 800px;
  padding: 0 var(--spacing-md);
}

.hero-text h1 {
  font-size: var(--font-size-4xl);
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  color: var(--primary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-text p {
  font-size: var(--font-size-lg);
  margin-bottom: var(--spacing-md);
  line-height: 1.8;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Responsive Hero */
@media (max-width: 768px) {
  .hero {
    height: 350px;
    background-attachment: scroll;
  }
  
  .hero-text h1 {
    font-size: var(--font-size-3xl);
  }
  
  .hero-text p {
    font-size: var(--font-size-base);
  }
}

@media (max-width: 480px) {
  .hero {
    height: 300px;
  }
  
  .hero-text h1 {
    font-size: var(--font-size-2xl);
  }
}

/* ========================================
   CATEGORY GRID
   ======================================== */

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-xl);
  margin: var(--spacing-3xl) 0;
}

.category-card {
  background: var(--background-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-light);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transform: translateY(30px);
  opacity: 0;
  transition: all var(--transition-medium) cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
}

.category-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-medium);
}

.category-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform var(--transition-medium);
}

.category-card:hover img {
  transform: scale(1.1);
}

.category-card h3 {
  padding: var(--spacing-xl);
  color: var(--primary-dark);
  text-align: center;
  font-size: var(--font-size-xl);
  font-weight: 600;
  background: linear-gradient(135deg, var(--secondary-color), #f8f5f0);
}

.category-card.show {
  transform: translateY(0);
  opacity: 1;
}

/* ========================================
   PRODUCT SECTIONS
   ======================================== */

.product-section {
  display: flex;
  flex-direction: column;
  background: var(--background-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-light);
  margin-bottom: var(--spacing-xl);
  overflow: hidden;
  transition: box-shadow var(--transition-medium);
}

.product-section:hover {
  box-shadow: var(--shadow-medium);
}

.product-image {
  text-align: center;
  padding: var(--spacing-xl);
  background: var(--secondary-color);
}

.product-image img {
  width: 200px;
  height: 200px;
  object-fit: contain;
  transition: opacity var(--transition-fast);
}

.product-info {
  padding: var(--spacing-xl);
}

.product-info h3 {
  color: var(--primary-dark);
  margin-bottom: var(--spacing-md);
  font-size: var(--font-size-2xl);
  font-weight: 700;
}

.product-info p {
  margin-bottom: var(--spacing-lg);
  color: var(--text-secondary);
  line-height: 1.7;
}

.product-info ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

.product-info ul li a {
  text-decoration: none;
  color: var(--text-primary);
  font-size: var(--font-size-sm);
  padding: var(--spacing-xs) var(--spacing-sm);
  background: var(--secondary-color);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  transition: all var(--transition-fast);
  display: inline-block;
}

.product-info ul li a:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-light);
}

/* Responsive Product Sections */
@media (min-width: 768px) {
  .product-section {
    flex-direction: row;
    align-items: flex-start;
  }
  
  .product-image {
    flex: 0 0 250px;
    margin-right: var(--spacing-xl);
  }
  
  .product-info {
    flex: 1;
    text-align: left;
  }
  
  .product-info ul {
    justify-content: flex-start;
  }
}

/* ========================================
   FOOTER
   ======================================== */

footer {
  background: linear-gradient(135deg, #fff8e1, #f5f0e8);
  border-top: 3px solid var(--primary-color);
  text-align: center;
  padding: var(--spacing-2xl) 0;
  margin-top: var(--spacing-3xl);
}

footer p {
  color: var(--text-secondary);
  font-size: var(--font-size-base);
}

/* ========================================
   CONTACT ICONS
   ======================================== */

.contact-icons {
  position: fixed;
  bottom: var(--spacing-xl);
  right: var(--spacing-xl);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  z-index: 1000;
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  font-size: 20px;
  box-shadow: var(--shadow-light);
  transition: all var(--transition-fast);
}

.contact-icon:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
}

.whatsapp-icon:hover {
  background: #25D366;
}

.call-icon:hover {
  background: #007bff;
}

/* Responsive Contact Icons */
@media (max-width: 768px) {
  .contact-icons {
    bottom: var(--spacing-md);
    right: var(--spacing-md);
  }
  
  .contact-icon {
    width: 45px;
    height: 45px;
    font-size: 18px;
  }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }
.mt-4 { margin-top: var(--spacing-xl); }

.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }
.mb-4 { margin-bottom: var(--spacing-xl); }

.hidden { display: none; }
.visible { display: block; }

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
  .contact-icons,
  .hero {
    display: none;
  }
  
  body {
    background: white;
    color: black;
  }
}
