/* Shree Ram Computer - Premium Styling & CSS Variables */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  /* Colors */
  --color-primary: #0F172A; /* Deep Slate Blue */
  --color-primary-light: #1E293B;
  --color-primary-dark: #020617;
  
  --color-secondary: #FFFFFF;
  --color-accent: #EA580C; /* Premium Orange for CTA */
  --color-accent-hover: #C2410C;
  
  --color-bg-main: #FFFFFF;
  --color-bg-section: #F8FAFC; /* Light Grey/Slate */
  --color-bg-glass: rgba(255, 255, 255, 0.8);
  
  --color-text-main: #334155; /* Charcoal */
  --color-text-heading: #0F172A; /* Deep slate */
  --color-text-muted: #64748B;
  
  --color-border: #E2E8F0;
  --color-border-active: #CBD5E1;
  --color-success: #16A34A;
  --color-error: #DC2626;

  /* Spacing Grid (8-point system) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* Borders & Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --shadow-premium: 0 20px 25px -5px rgba(15, 23, 42, 0.04), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-glow: 0 0 20px rgba(234, 88, 12, 0.15);

  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Layout Gaps */
  --container-width: 1280px;
}

/* --- RESET & BASIC STYLES --- */
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  min-height: 100%;
  color: var(--color-text-main);
  background: var(--color-bg-main);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--color-text-heading);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.5em;
}

p {
  margin-bottom: 1em;
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* --- LAYOUT UTILITIES --- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.section {
  padding: var(--space-16) 0;
}

.section-bg {
  background-color: var(--color-bg-section);
}

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

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

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

@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
  .section {
    padding: var(--space-10) 0;
  }
}

/* --- BUTTON COMPONENTS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-normal);
  border: 1px solid transparent;
  min-height: 48px;
}

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

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

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

.btn-secondary:hover {
  background-color: var(--color-primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--color-border);
  color: var(--color-text-main);
}

.btn-outline:hover {
  background-color: var(--color-bg-section);
  border-color: var(--color-border-active);
  transform: translateY(-2px);
}

/* --- PREMIUM CARD DESIGN --- */
.card {
  background: var(--color-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  overflow: hidden;
}

.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-premium);
  border-color: var(--color-border-active);
}

/* --- BADGES --- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-refurbished {
  background-color: #DBEAFE;
  color: #1E40AF;
}

.badge-secondhand {
  background-color: #FEF3C7;
  color: #92400E;
}

.badge-new {
  background-color: #D1FAE5;
  color: #065F46;
}

/* --- GLASSMORPHISM --- */
.glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.animate-fade-up {
  animation: fadeInUp 0.5s ease-out forwards;
}

/* --- FORM STYLING --- */
.form-group {
  margin-bottom: var(--space-4);
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: var(--color-text-heading);
}

.form-input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  outline: none;
  background-color: var(--color-bg-main);
  transition: var(--transition-fast);
}

.form-input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.1);
}

/* --- RESPONSIVE BOTTOM STICKY BAR --- */
.sticky-mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: var(--color-secondary);
  border-top: 1px solid var(--color-border);
  padding: var(--space-3) var(--space-4);
  box-shadow: 0 -10px 15px -3px rgba(0, 0, 0, 0.05);
}

@media (max-width: 640px) {
  .sticky-mobile-cta {
    display: flex;
    gap: var(--space-3);
  }
  body {
    padding-bottom: 72px; /* space for sticky mobile bar */
  }
}

/* Header media helper classes */
.desktop-nav {
  display: none;
}
.desktop-actions {
  display: none;
}
.mobile-menu-btn {
  display: block;
}

@media (min-width: 768px) {
  .desktop-nav {
    display: flex !important;
    gap: var(--space-6);
  }
  .desktop-actions {
    display: flex !important;
    align-items: center;
    gap: var(--space-4);
  }
  .mobile-menu-btn {
    display: none !important;
  }
}

/* Footer social buttons official colors on hover */
.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background-color: rgba(255, 255, 255, 0.05);
  color: #fff;
  transition: var(--transition-fast);
}
.social-btn:hover {
  transform: translateY(-3px);
  color: #fff !important;
}
.social-btn.facebook:hover { background-color: #1877F2 !important; }
.social-btn.instagram:hover { background-color: #E4405F !important; }
.social-btn.youtube:hover { background-color: #CD201F !important; }

/* Catalog filters responsiveness helpers */
.mobile-filters-trigger {
  display: none !important;
}

@media (max-width: 768px) {
  .catalog-grid {
    grid-template-columns: 1fr !important;
  }
  .catalog-sidebar {
    display: none !important;
  }
  .mobile-filters-trigger {
    display: flex !important;
  }
  
  .catalog-sidebar.mobile-show {
    display: flex !important;
    position: fixed !important;
    top: 70px !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 999 !important;
    overflow-y: auto !important;
    border-radius: 0 !important;
    border: none !important;
  }
}

/* Product Details responsive helpers */
@media (max-width: 768px) {
  .detail-layout {
    grid-template-columns: 1fr !important;
  }
  .trust-grid {
    grid-template-columns: 1fr !important;
  }
}

/* About page responsive helpers */
@media (max-width: 640px) {
  .about-values {
    grid-template-columns: 1fr !important;
    gap: var(--space-6) !important;
  }
}

/* Contact page responsive helpers */
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr !important;
  }
}
