/* 
 * MEHTA BOOKS & STATIONERS - Premium Theme
 * Typography: Poppins & Inter
 */

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

:root {
  /* Colors */
  --primary-color: #800020; /* Burgundy */
  --primary-hover: #5a0016;
  --secondary-color: #2b2b2b; /* Deep Charcoal */
  --accent-color: #D4AF37; /* Premium Gold */
  --accent-hover: #b5952f;
  
  /* Bootstrap Overrides */
  --bs-primary: #800020;
  --bs-primary-rgb: 128, 0, 32;
  --bs-secondary: #2b2b2b;
  --bs-secondary-rgb: 43, 43, 43;
  --bs-warning: #D4AF37;
  --bs-warning-rgb: 212, 175, 55;
  
  --bg-white: #FFFFFF;
  --bg-light: #F3F4F6;
  --text-dark: #0F172A;
  --text-muted: #64748B;
  
  /* Typography */
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Shadows & Transitions */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  --transition-fast: 0.2s ease-in-out;
  --transition-normal: 0.3s ease-in-out;
  
  /* Border Radius */
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
}

/* Bootstrap Overrides for Elements */
.text-primary { color: var(--primary-color) !important; }
.bg-primary { background-color: var(--primary-color) !important; }
.btn-primary { 
  background-color: var(--primary-color) !important; 
  border-color: var(--primary-color) !important; 
}
.btn-primary:hover { 
  background-color: var(--primary-hover) !important; 
  border-color: var(--primary-hover) !important; 
}
.btn-outline-primary {
  color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
}
.btn-outline-primary:hover {
  background-color: var(--primary-color) !important;
  color: #fff !important;
}

/* Global Styles */
body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--bg-light);
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.text-white h1, .text-white h2, .text-white h3, .text-white h4, .text-white h5, .text-white h6 {
  color: inherit;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all var(--transition-normal);
}

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

/* Premium Buttons */
.btn-primary-custom {
  background-color: var(--primary-color);
  color: var(--bg-white);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 600;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary-custom::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background-color: var(--accent-color);
  transition: all var(--transition-normal);
  z-index: -1;
}

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

.btn-primary-custom:hover {
  color: var(--secondary-color);
  box-shadow: var(--shadow-md);
}

/* Header & Navbar */
.main-header {
  background: var(--bg-white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-brand {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--primary-color) !important;
  font-size: 1.5rem;
}

.nav-link {
  font-weight: 500;
  color: var(--secondary-color) !important;
  margin: 0 0.5rem;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: width var(--transition-normal);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* Product Cards */
.product-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 1rem;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  height: 100%;
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
}

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

.product-img-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
}

.product-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.product-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--accent-color);
  color: var(--secondary-color);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 2;
}

.product-title {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.product-author, .product-category {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 80vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  background: linear-gradient(rgba(30, 41, 59, 0.8), rgba(30, 41, 59, 0.8)), url('../images/hero-bg.jpg') center/cover;
  color: var(--bg-white);
  overflow: hidden;
}

.hero-title {
  font-size: 3.5rem;
  color: var(--bg-white);
  margin-bottom: 1rem;
}

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

/* Smart Search */
.search-container {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.search-input {
  width: 100%;
  padding: 1rem 1.5rem;
  border-radius: 50px;
  border: none;
  box-shadow: var(--shadow-md);
  font-size: 1rem;
}

.search-input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
}

.search-btn {
  position: absolute;
  right: 5px;
  top: 5px;
  bottom: 5px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 0 1.5rem;
  transition: all 0.2s;
}

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

/* Category Showcase */
.category-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  background-size: cover;
  background-position: center;
}

.category-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30, 41, 59, 0.9), rgba(30, 41, 59, 0.3));
  transition: all var(--transition-normal);
}

.category-card:hover::before {
  background: linear-gradient(to top, rgba(37, 99, 235, 0.9), rgba(37, 99, 235, 0.4));
}

.category-content {
  position: relative;
  z-index: 1;
  padding: 1rem;
}

.category-card h3 {
  color: white;
  margin: 0;
  font-size: 1.5rem;
}

/* Icon Cards (Why Choose Us) */
.icon-card {
  background: var(--bg-white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  height: 100%;
}

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

.icon-card i {
  font-size: 3rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

/* Floating Buttons */
.floating-btn {
  position: fixed;
  bottom: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  box-shadow: var(--shadow-lg);
  z-index: 999;
  transition: all var(--transition-normal);
}

.floating-btn:hover {
  transform: scale(1.1);
  color: white;
}

.btn-whatsapp {
  right: 20px;
  background-color: #25D366;
}

.btn-whatsapp:hover {
  background-color: #128C7E;
}

.btn-call {
  right: 80px;
  background-color: var(--primary-color);
}

.btn-scroll-top {
  right: 20px;
  bottom: 80px;
  background-color: var(--secondary-color);
  opacity: 0;
  visibility: hidden;
}

.btn-scroll-top.show {
  opacity: 1;
  visibility: visible;
}

/* Footer */
.main-footer {
  background-color: var(--secondary-color);
  color: var(--bg-light);
  padding: 4rem 0 2rem;
}

.main-footer h4 {
  color: var(--accent-color);
  margin-bottom: 1.5rem;
}

.footer-link {
  color: var(--bg-light);
  display: block;
  margin-bottom: 0.5rem;
  transition: all 0.2s;
}

.footer-link:hover {
  color: var(--accent-color);
  padding-left: 5px;
}

/* Form Styles */
.form-control, .form-select {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid #CBD5E1;
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}

/* Success Popup */
#success-popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hover);
  z-index: 10000;
  text-align: center;
  max-width: 400px;
  width: 90%;
}
.popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9999;
}
