/* INDA Auto Parts - Main Stylesheet */

:root {
  --primary-color: #1e3a8a;
  --primary-light: #3b82f6;
  --primary-dark: #1e40af;
  --secondary-color: #f59e0b;
  --secondary-light: #fbbf24;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1f2937;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Top Bar */
.top-bar {
  background: linear-gradient(90deg, #1e3a8a 0%, #1e40af 100%);
  color: white;
  padding: 8px 0;
  font-size: 14px;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-left {
  display: flex;
  gap: 32px;
}

.top-bar-left span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-bar-left i {
  color: #f59e0b;
}

/* Header */
.main-header {
  background: white;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 24px;
  font-weight: 700;
  color: #1e3a8a;
}

.logo i {
  font-size: 32px;
  color: #f59e0b;
}

.main-nav ul {
  display: flex;
  gap: 32px;
  list-style: none;
}

.main-nav a {
  font-weight: 500;
  color: #6b7280;
  padding: 8px 0;
  position: relative;
  transition: color 0.15s;
}

.main-nav a:hover,
.main-nav a.active {
  color: #1e3a8a;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
  color: white;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px rgba(0,0,0,0.1);
}

.btn-white {
  background: white;
  color: #1e3a8a;
}

.btn-outline {
  border: 2px solid #1e3a8a;
  color: #1e3a8a;
  background: transparent;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #3b82f6 100%);
  color: white;
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-text h1 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 24px;
}

.hero-text h1 span {
  color: #f59e0b;
}

.hero-text p {
  font-size: 1.125rem;
  opacity: 0.9;
  margin-bottom: 32px;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 64px;
  padding-top: 64px;
  border-top: 1px solid rgba(255,255,255,0.2);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #f59e0b;
  display: block;
}

.stat-label {
  font-size: 14px;
  opacity: 0.8;
  margin-top: 4px;
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header h2 {
  font-size: 2.25rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 16px;
}

.section-header p {
  color: #6b7280;
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Categories Section */
.categories-section {
  padding: 64px 0;
  background: #f3f4f6;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.category-card {
  background: white;
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: all 0.3s;
  cursor: pointer;
}

.category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px rgba(0,0,0,0.15);
}

.category-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.category-icon i {
  font-size: 36px;
  color: white;
}

.category-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.category-card p {
  color: #6b7280;
  font-size: 14px;
}

/* Features Section */
.features-section {
  padding: 64px 0;
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
  color: white;
}

.features-section .section-header h2,
.features-section .section-header p {
  color: white;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.2);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: #f59e0b;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.feature-icon i {
  font-size: 24px;
  color: white;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-card p {
  opacity: 0.9;
  font-size: 14px;
}

/* Products Section */
.products-section {
  padding: 64px 0;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.product-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: all 0.3s;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px rgba(0,0,0,0.1);
}

.product-image {
  position: relative;
  height: 200px;
  background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-placeholder {
  font-size: 4rem;
  color: #1e3a8a;
  opacity: 0.5;
}

.product-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.product-badge.hot {
  background: #dc2626;
  color: white;
}

.product-badge.new {
  background: #f59e0b;
  color: white;
}

.product-info {
  padding: 24px;
}

.product-category {
  font-size: 12px;
  color: #1e3a8a;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.product-info h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.product-oem {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 8px;
}

.product-desc {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.5;
  margin-bottom: 16px;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid #f3f4f6;
}

.product-price {
  font-weight: 600;
  color: #1e3a8a;
}

/* Process Section */
.process-section {
  padding: 64px 0;
  background: #f3f4f6;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.process-step {
  text-align: center;
}

.step-number {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  color: white;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 24px;
}

.process-step h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.process-step p {
  color: #6b7280;
  font-size: 14px;
}

/* CTA Section */
.cta-section {
  padding: 64px 0;
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
  color: white;
  text-align: center;
}

.cta-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.cta-section p {
  font-size: 1.125rem;
  opacity: 0.9;
  margin-bottom: 32px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
}

/* Footer */
.main-footer {
  background: #0f172a;
  color: white;
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 64px;
  margin-bottom: 64px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
}

.footer-logo i {
  color: #f59e0b;
}

.footer-about p {
  opacity: 0.8;
  line-height: 1.8;
  margin-bottom: 24px;
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.social-links a:hover {
  background: #1e3a8a;
  transform: translateY(-2px);
}

.footer-col h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  opacity: 0.8;
  transition: opacity 0.15s;
}

.footer-col ul li a:hover {
  opacity: 1;
  color: #f59e0b;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 16px;
  opacity: 0.8;
}

.footer-contact i {
  color: #f59e0b;
  margin-top: 2px;
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  opacity: 0.6;
  font-size: 14px;
}

/* Floating Contact */
.floating-contact {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 99;
}

.float-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 24px;
  background: #f59e0b;
  color: white;
  border-radius: 9999px;
  box-shadow: 0 10px 15px rgba(0,0,0,0.1);
  font-weight: 600;
  transition: all 0.3s;
}

.float-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px rgba(0,0,0,0.15);
  background: #fbbf24;
}

/* Form Styles */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #374151;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #1e3a8a;
}

/* Admin Panel Styles */
.admin-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  font-size: 1.2rem;
  color: #6b7280;
}

.admin-layout {
  display: flex;
  min-height: 100vh;
  background: #f3f4f6;
}

/* Sidebar */
.admin-sidebar {
  width: 260px;
  background: #1e3a8a;
  color: white;
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
  left: 0;
  top: 0;
  z-index: 100;
}

.admin-logo {
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.25rem;
  font-weight: 700;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.admin-logo i {
  font-size: 1.5rem;
  color: #f59e0b;
}

.admin-nav {
  flex: 1;
  padding: 16px 0;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: all 0.2s;
}

.admin-nav-item:hover,
.admin-nav-item.active {
  background: rgba(255,255,255,0.1);
  color: white;
}

.admin-nav-item i {
  width: 20px;
  text-align: center;
}

.admin-sidebar-footer {
  padding: 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.admin-logout {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 8px;
  color: white;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
}

.admin-logout:hover {
  background: rgba(255,255,255,0.2);
}

/* Main Content */
.admin-main {
  flex: 1;
  margin-left: 260px;
  display: flex;
  flex-direction: column;
}

.admin-header {
  background: white;
  padding: 20px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.admin-header h1 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1f2937;
}

.admin-user {
  color: #6b7280;
}

.admin-content {
  flex: 1;
  padding: 32px;
  overflow-y: auto;
}

/* Dashboard Stats */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.admin-stat-card {
  background: white;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.admin-stat-card h3 {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 8px;
}

.admin-stat-card .number {
  font-size: 2rem;
  font-weight: 700;
  color: #1e3a8a;
}

/* Tables */
.admin-table {
  width: 100%;
  background: white;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  overflow: hidden;
}

.admin-table table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

.admin-table th {
  background: #f9fafb;
  font-weight: 600;
  color: #374151;
}

.admin-table tr:hover {
  background: #f9fafb;
}

/* Admin Buttons */
.admin-btn {
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.admin-btn-primary {
  background: #1e3a8a;
  color: white;
}

.admin-btn-primary:hover {
  background: #1e40af;
}

.admin-btn-danger {
  background: #dc2626;
  color: white;
}

.admin-btn-danger:hover {
  background: #b91c1c;
}

.admin-btn-success {
  background: #059669;
  color: white;
}

.admin-btn-success:hover {
  background: #047857;
}

/* Login Page */
.admin-login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
}

.admin-login-box {
  background: white;
  padding: 48px;
  border-radius: 16px;
  box-shadow: 0 20px 25px rgba(0,0,0,0.15);
  width: 100%;
  max-width: 400px;
}

.admin-login-box h1 {
  text-align: center;
  margin-bottom: 32px;
  color: #1e3a8a;
}

.admin-login-box h1 i {
  font-size: 3rem;
  margin-bottom: 16px;
  display: block;
  color: #f59e0b;
}

.admin-form-group {
  margin-bottom: 20px;
}

.admin-form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #374151;
}

.admin-form-group input {
  width: 100%;
  padding: 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.admin-form-group input:focus {
  outline: none;
  border-color: #1e3a8a;
}

.admin-login-btn {
  width: 100%;
  padding: 14px;
  background: #1e3a8a;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.admin-login-btn:hover {
  background: #1e40af;
}

.admin-error {
  background: #fee2e2;
  color: #dc2626;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 0.875rem;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: white;
  padding: 32px;
  border-radius: 12px;
  width: 100%;
  max-width: 600px;
  max-height: 80vh;
  overflow: auto;
}

/* Content Section */
.content-section {
  padding: 64px 0;
  background: #f3f4f6;
}

.content-box {
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.content-box h2 {
  font-size: 1.5rem;
  color: #1e3a8a;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e5e7eb;
}

.content-box h3 {
  font-size: 1.15rem;
  color: #374151;
  margin: 20px 0 10px 0;
}

.content-box p {
  margin-bottom: 16px;
  color: #4b5563;
  line-height: 1.8;
}

.content-box ul,
.content-box ol {
  margin-bottom: 16px;
  padding-left: 24px;
  color: #4b5563;
}

.content-box li {
  margin-bottom: 8px;
}

.info-box {
  background: #f0f9ff;
  border-left: 4px solid #2563eb;
  padding: 16px 20px;
  margin-bottom: 40px;
  border-radius: 0 8px 8px 0;
}

.info-box p {
  margin: 0;
  color: #374151;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-text p {
    margin: 0 auto 32px;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .categories-grid,
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .admin-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  
  .hero-text h1 {
    font-size: 2.5rem;
  }
  
  .categories-grid,
  .products-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .process-steps {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .top-bar .container {
    flex-direction: column;
    gap: 8px;
  }
  
  .top-bar-left {
    flex-wrap: wrap;
    justify-content: center;
  }

  .admin-sidebar {
    width: 100%;
    transform: translateX(-100%);
  }
  
  .admin-main {
    margin-left: 0;
  }

  .admin-stats {
    grid-template-columns: 1fr;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
}

/* Cookie Consent Banner */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1e293b;
    color: #fff;
    padding: 20px 24px;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    animation: slideUp 0.4s ease-out;
}

.cookie-consent-banner.show {
    display: flex;
}

@keyframes slideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.cookie-content {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    flex: 1;
}

.cookie-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: rgba(59, 130, 246, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.cookie-text {
    flex: 1;
}

.cookie-text p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #cbd5e1;
}

.cookie-text a {
    color: #60a5fa;
    text-decoration: none;
    font-weight: 500;
}

.cookie-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    align-items: center;
}

.cookie-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-family: inherit;
}

.cookie-btn-accept {
    background: #3b82f6;
    color: #fff;
}

.cookie-btn-accept:hover {
    background: #2563eb;
}

.cookie-btn-settings {
    background: transparent;
    color: #94a3b8;
    border: 1px solid #475569;
}

.cookie-btn-settings:hover {
    background: #334155;
    color: #fff;
}

@media (max-width: 768px) {
    .cookie-consent-banner {
        flex-direction: column;
        padding: 16px;
    }
    .cookie-content {
        flex-direction: column;
        gap: 12px;
    }
    .cookie-actions {
        width: 100%;
        flex-direction: column;
    }
    .cookie-btn {
        width: 100%;
    }
}
