/* ============================================
   AluShed - Global Stylesheet
   Eco Green + Black Theme
   ============================================ */

:root {
  --primary: #2E7D32;
  --primary-dark: #1B5E20;
  --primary-light: #4CAF50;
  --primary-lighter: #E8F5E9;
  --accent: #000000;
  --accent-light: #333333;
  --text: #212121;
  --text-light: #666666;
  --text-muted: #999999;
  --bg: #ffffff;
  --bg-gray: #f5f5f5;
  --bg-dark: #1a1a1a;
  --border: #e0e0e0;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-lg: 0 4px 20px rgba(0,0,0,0.12);
  --radius: 8px;
  --radius-lg: 12px;
  --transition: all 0.3s ease;
  --max-width: 1200px;
  --header-height: 70px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

body.rtl { direction: rtl; text-align: right; }
body.rtl .nav-links { direction: rtl; }

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; display: block; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* ============ Header ============ */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.98);
  box-shadow: var(--shadow);
  height: var(--header-height);
  display: flex; align-items: center;
  backdrop-filter: blur(10px);
}
.header .container { display: flex; align-items: center; justify-content: space-between; width: 100%; }

.logo { display: flex; align-items: center; gap: 10px; font-size: 1.5rem; font-weight: 800; color: var(--accent); text-decoration: none; }
.logo-icon {
  width: 36px; height: 36px; background: var(--primary); border-radius: 8px;
  display: flex; align-items: center; justify-content: center; color: white; font-weight: bold;
}
.logo span { color: var(--primary); }
.logo-img { width: 42px; height: 42px; object-fit: contain; flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-brand { font-size: 1.4rem; font-weight: 800; color: var(--accent); }
.logo-brand span { color: var(--primary); }
.logo-tagline { font-size: 0.72rem; font-weight: 700; color: var(--text); margin-top: 3px; max-width: 400px; line-height: 1.35; letter-spacing: 0.2px; }
.footer .logo-img { width: 36px; height: 36px; }
.footer .logo-brand { font-size: 1.2rem; color: white; }
.footer .logo-brand span { color: var(--primary-light); }
.admin-sidebar .logo-img { width: 34px; height: 34px; }
.admin-sidebar .logo-brand { font-size: 1.2rem; color: white; }
.admin-sidebar .logo-brand span { color: var(--primary-light); }

.nav-links { display: flex; list-style: none; gap: 30px; align-items: center; }
.nav-links a {
  color: var(--text); font-weight: 500; font-size: 0.95rem; position: relative; padding: 5px 0;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-links a.active::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0; height: 2px; background: var(--primary);
}

.header-actions { display: flex; align-items: center; gap: 15px; }

.lang-switcher { position: relative; }
.lang-btn {
  background: var(--bg-gray); border: 1px solid var(--border); border-radius: 6px;
  padding: 6px 12px; cursor: pointer; font-size: 0.85rem; font-weight: 600; color: var(--text);
  display: flex; align-items: center; gap: 5px; transition: var(--transition);
}
.lang-btn:hover { border-color: var(--primary); color: var(--primary); }
.lang-dropdown {
  position: absolute; top: 100%; right: 0; margin-top: 5px;
  background: white; border: 1px solid var(--border); border-radius: 8px;
  box-shadow: var(--shadow-lg); min-width: 140px; display: none; z-index: 100;
}
.lang-dropdown.show { display: block; }
.lang-dropdown a {
  display: block; padding: 10px 15px; color: var(--text); font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
}
.lang-dropdown a:last-child { border-bottom: none; }
.lang-dropdown a:hover { background: var(--primary-lighter); color: var(--primary); }

.btn-whatsapp-header {
  background: #25D366; color: white; padding: 8px 16px; border-radius: 6px;
  font-size: 0.85rem; font-weight: 600; display: flex; align-items: center; gap: 6px;
}
.btn-whatsapp-header:hover { background: #128C7E; color: white; }

.mobile-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text); }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 28px; border-radius: var(--radius); font-weight: 600; font-size: 0.95rem;
  cursor: pointer; border: none; transition: var(--transition); text-align: center;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); color: white; transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-black { background: var(--accent); color: white; }
.btn-black:hover { background: var(--accent-light); color: white; }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; }
.btn-white { background: white; color: var(--primary); }
.btn-white:hover { background: var(--primary-lighter); }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }

/* ============ Hero / Slider ============ */
.hero {
  position: relative; height: 100vh; min-height: 600px; margin-top: 0;
  overflow: hidden;
}
.hero-slides { position: relative; width: 100%; height: 100%; }
.hero-slide {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0; transition: opacity 1s ease; display: flex; align-items: center;
  background-size: cover; background-position: center;
}
.hero-slide.active { opacity: 1; }
.hero-slide::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.45);
}
.hero-content { position: relative; z-index: 2; color: white; max-width: 700px; padding: 0 20px; margin: 0 auto; width: 100%; text-align: center; }
.hero-content h1 { font-size: 3rem; font-weight: 800; margin-bottom: 20px; line-height: 1.2; }
.hero-content p { font-size: 1.2rem; margin-bottom: 30px; opacity: 0.95; }
.hero-buttons { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }

.hero-dots { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 3; }
.hero-dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer; transition: var(--transition); }
.hero-dot.active { background: white; width: 36px; border-radius: 6px; }

.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 50px; height: 50px; border-radius: 50%; background: rgba(255,255,255,0.2);
  border: none; color: white; font-size: 1.5rem; cursor: pointer; transition: var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.hero-arrow:hover { background: rgba(255,255,255,0.4); }
.hero-arrow.prev { left: 20px; }
.hero-arrow.next { right: 20px; }

/* ============ Sections ============ */
.section { padding: 80px 0; }
.section-gray { background: var(--bg-gray); }
.section-dark { background: var(--bg-dark); color: white; }

.section-header { text-align: center; margin-bottom: 50px; }
.section-header .subtitle {
  color: var(--primary); font-weight: 700; font-size: 0.9rem; text-transform: uppercase;
  letter-spacing: 2px; margin-bottom: 10px;
}
.section-header h2 { font-size: 2.2rem; font-weight: 800; color: var(--text); margin-bottom: 15px; }
.section-dark .section-header h2 { color: white; }
.section-header p { color: var(--text-light); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }

/* ============ Advantages ============ */
.advantages-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.advantage-card {
  background: white; padding: 40px 30px; border-radius: var(--radius-lg); text-align: center;
  box-shadow: var(--shadow); transition: var(--transition); border-top: 4px solid var(--primary);
}
.advantage-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.advantage-icon {
  width: 70px; height: 70px; margin: 0 auto 20px; background: var(--primary-lighter);
  border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem;
}
.advantage-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; }
.advantage-card p { color: var(--text-light); font-size: 0.95rem; }

/* ============ Categories ============ */
.categories-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; }
.category-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; cursor: pointer;
  height: 280px; box-shadow: var(--shadow); transition: var(--transition);
}
.category-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.category-card img { width: 100%; height: 100%; object-fit: cover; }
.category-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
}
.category-info {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 25px; color: white;
}
.category-info h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 5px; }
.category-info p { font-size: 0.85rem; opacity: 0.85; margin-bottom: 10px; }
.category-info .arrow { display: inline-flex; align-items: center; gap: 5px; font-size: 0.85rem; font-weight: 600; color: var(--primary-light); }

/* ============ Why Choose Us ============ */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.why-image { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.why-image img { width: 100%; height: 450px; object-fit: cover; }
.why-features { display: flex; flex-direction: column; gap: 25px; }
.why-feature { display: flex; gap: 20px; align-items: flex-start; }
.why-feature-icon {
  flex-shrink: 0; width: 50px; height: 50px; background: var(--primary-lighter);
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: var(--primary);
}
.why-feature h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 5px; }
.why-feature p { color: var(--text-light); font-size: 0.95rem; }

/* ============ Testimonials ============ */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.testimonial-card {
  background: white; padding: 35px 30px; border-radius: var(--radius-lg);
  box-shadow: var(--shadow); position: relative; transition: var(--transition);
}
.testimonial-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.testimonial-stars { color: #FFC107; font-size: 1rem; margin-bottom: 15px; }
.testimonial-text { color: var(--text-light); font-size: 0.95rem; font-style: italic; margin-bottom: 20px; line-height: 1.7; }
.testimonial-author { display: flex; align-items: center; gap: 15px; }
.testimonial-avatar {
  width: 50px; height: 50px; border-radius: 50%; background: var(--primary-lighter);
  display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--primary);
  font-size: 1.1rem;
}
.testimonial-author h4 { font-size: 0.95rem; font-weight: 700; }
.testimonial-author p { font-size: 0.8rem; color: var(--text-muted); }

/* ============ Quick Inquiry ============ */
.inquiry-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: white; padding: 80px 0;
}
.inquiry-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.inquiry-info h2 { font-size: 2.2rem; font-weight: 800; margin-bottom: 20px; }
.inquiry-info p { font-size: 1.05rem; opacity: 0.9; margin-bottom: 30px; }
.inquiry-features { display: flex; flex-direction: column; gap: 15px; }
.inquiry-feature { display: flex; align-items: center; gap: 12px; font-size: 0.95rem; }
.inquiry-feature .check {
  width: 24px; height: 24px; background: rgba(255,255,255,0.2); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 0.8rem;
}

.inquiry-form {
  background: white; padding: 40px; border-radius: var(--radius-lg); color: var(--text);
  box-shadow: var(--shadow-lg);
}
.inquiry-form h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 25px; color: var(--text); }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; font-size: 0.85rem; margin-bottom: 6px; color: var(--text); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 15px; border: 1px solid var(--border); border-radius: 8px;
  font-size: 0.95rem; font-family: inherit; transition: var(--transition); background: white;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(46,125,50,0.1);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-submit { width: 100%; margin-top: 10px; }
.form-note { font-size: 0.8rem; color: var(--text-muted); margin-top: 10px; text-align: center; }

/* ============ Products Page ============ */
.page-header {
  padding: 140px 0 60px; background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: white; text-align: center;
}
.page-header h1 { font-size: 2.5rem; font-weight: 800; margin-bottom: 10px; }
.page-header p { font-size: 1.1rem; opacity: 0.9; }
.breadcrumb { margin-top: 15px; font-size: 0.9rem; opacity: 0.8; }
.breadcrumb a { color: white; }

.products-filter {
  background: white; padding: 25px; border-radius: var(--radius-lg); box-shadow: var(--shadow);
  margin-bottom: 40px; display: flex; gap: 15px; flex-wrap: wrap; align-items: center;
}
.filter-group { display: flex; align-items: center; gap: 10px; }
.filter-group label { font-weight: 600; font-size: 0.9rem; white-space: nowrap; }
.filter-group select, .filter-group input {
  padding: 10px 15px; border: 1px solid var(--border); border-radius: 8px; font-size: 0.9rem;
  font-family: inherit; min-width: 180px;
}
.filter-btn {
  padding: 10px 20px; background: var(--primary); color: white; border: none; border-radius: 8px;
  cursor: pointer; font-weight: 600; font-size: 0.9rem; transition: var(--transition);
}
.filter-btn:hover { background: var(--primary-dark); }

.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.product-card {
  background: white; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow);
  transition: var(--transition); display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.product-image { position: relative; height: 220px; overflow: hidden; }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product-card:hover .product-image img { transform: scale(1.05); }
.product-badge {
  position: absolute; top: 15px; left: 15px; background: var(--primary); color: white;
  padding: 4px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 600;
}
.product-body { padding: 25px; flex: 1; display: flex; flex-direction: column; }
.product-category { font-size: 0.75rem; color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.product-body h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.product-specs { display: flex; flex-direction: column; gap: 5px; margin-bottom: 15px; }
.product-spec { display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--text-light); }
.product-spec span:first-child { font-weight: 600; color: var(--text); }
.product-price { font-size: 1.1rem; font-weight: 700; color: var(--primary); margin-bottom: 15px; }
.product-actions { margin-top: auto; display: flex; gap: 10px; }
.product-actions .btn { flex: 1; }

/* ============ Product Modal ============ */
.modal-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.6);
  z-index: 2000; display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.show { display: flex; }
.modal {
  background: white; border-radius: var(--radius-lg); max-width: 800px; width: 100%;
  max-height: 90vh; overflow-y: auto; position: relative;
}
.modal-close {
  position: absolute; top: 15px; right: 15px; width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg-gray); border: none; cursor: pointer; font-size: 1.2rem; z-index: 10;
  display: flex; align-items: center; justify-content: center; transition: var(--transition);
}
.modal-close:hover { background: var(--border); }
.modal-body { padding: 40px; }
.modal-image { width: 100%; height: 350px; object-fit: cover; border-radius: var(--radius); margin-bottom: 25px; }
.modal h2 { font-size: 1.6rem; font-weight: 700; margin-bottom: 15px; }
.modal-specs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin: 20px 0; }
.modal-spec-item { background: var(--bg-gray); padding: 15px; border-radius: 8px; }
.modal-spec-item label { font-size: 0.75rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; }
.modal-spec-item p { font-size: 0.95rem; font-weight: 600; margin-top: 3px; }
.modal-desc { color: var(--text-light); line-height: 1.8; margin: 20px 0; }

/* ============ About Page ============ */
.about-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; margin-bottom: 60px; }
.about-hero-text h2 { font-size: 2rem; font-weight: 800; margin-bottom: 20px; }
.about-hero-text p { color: var(--text-light); margin-bottom: 15px; line-height: 1.8; }
.about-hero-image { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.about-hero-image img { width: 100%; height: 400px; object-fit: cover; }

.timeline { position: relative; padding: 40px 0; }
.timeline::before {
  content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 3px;
  background: var(--primary-lighter); transform: translateX(-50%);
}
.timeline-item { display: flex; margin-bottom: 40px; position: relative; }
.timeline-item:nth-child(odd) { flex-direction: row; }
.timeline-item:nth-child(even) { flex-direction: row-reverse; }
.timeline-content { width: 45%; padding: 25px; background: white; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.timeline-item:nth-child(odd) .timeline-content { margin-right: auto; text-align: right; }
.timeline-item:nth-child(even) .timeline-content { margin-left: auto; text-align: left; }
.timeline-year {
  position: absolute; left: 50%; transform: translateX(-50%); width: 60px; height: 60px;
  background: var(--primary); color: white; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-weight: 800; font-size: 0.9rem; z-index: 2;
}
.timeline-content h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; color: var(--primary); }
.timeline-content p { color: var(--text-light); font-size: 0.9rem; }

.factory-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 20px; }
.factory-image { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); position: relative; }
.factory-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.factory-image:hover img { transform: scale(1.08); }
.factory-image:first-child { grid-column: span 2; grid-row: span 2; }
.factory-video { border-radius: var(--radius); overflow: hidden; height: 220px; box-shadow: var(--shadow); position: relative; background: #000; }
.factory-video video { width: 100%; height: 100%; object-fit: cover; }
.factory-video-overlay {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
  display: flex; align-items: flex-end; justify-content: center; padding-bottom: 15px;
  pointer-events: none;
}
.factory-video-overlay .play-hint {
  color: white; font-size: 0.8rem; font-weight: 600; background: rgba(0,0,0,0.5);
  padding: 5px 12px; border-radius: 20px; pointer-events: auto; cursor: pointer;
}
.factory-tour-bar {
  background: var(--bg-dark); color: white; padding: 20px 30px; border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  margin-bottom: 25px; box-shadow: var(--shadow-lg);
}
.factory-tour-bar h3 { font-size: 1.1rem; font-weight: 700; }
.factory-tour-bar p { font-size: 0.85rem; opacity: 0.8; }
.music-toggle-btn {
  background: var(--primary); color: white; border: none; padding: 10px 20px; border-radius: 8px;
  cursor: pointer; font-weight: 600; font-size: 0.9rem; display: flex; align-items: center; gap: 8px;
  transition: var(--transition);
}
.music-toggle-btn:hover { background: var(--primary-dark); transform: translateY(-2px); }
.music-toggle-btn.playing { background: #d32f2f; }
.music-toggle-btn.playing:hover { background: #b71c1c; }

.quality-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; }
.quality-step { text-align: center; position: relative; }
.quality-step-num {
  width: 60px; height: 60px; margin: 0 auto 15px; background: var(--primary); color: white;
  border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
  font-weight: 800;
}
.quality-step h4 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.quality-step p { font-size: 0.85rem; color: var(--text-light); }

.certifications-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; }
.cert-card {
  background: white; padding: 30px; border-radius: var(--radius-lg); text-align: center;
  box-shadow: var(--shadow); transition: var(--transition);
}
.cert-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.cert-icon { font-size: 2.5rem; margin-bottom: 15px; }
.cert-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: 5px; }
.cert-card p { font-size: 0.8rem; color: var(--text-muted); }

.oem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.oem-content h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 20px; }
.oem-list { display: flex; flex-direction: column; gap: 15px; }
.oem-item { display: flex; gap: 15px; align-items: flex-start; }
.oem-item .icon {
  flex-shrink: 0; width: 40px; height: 40px; background: var(--primary-lighter); border-radius: 10px;
  display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 1.1rem;
}
.oem-item h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 3px; }
.oem-item p { font-size: 0.85rem; color: var(--text-light); }

/* ============ Contact Page ============ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 40px; }
.contact-info { display: flex; flex-direction: column; gap: 25px; }
.contact-card {
  background: white; padding: 30px; border-radius: var(--radius-lg); box-shadow: var(--shadow);
  display: flex; gap: 20px; align-items: flex-start;
}
.contact-card-icon {
  flex-shrink: 0; width: 50px; height: 50px; background: var(--primary-lighter); border-radius: 12px;
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: var(--primary);
}
.contact-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: 5px; }
.contact-card p { font-size: 0.9rem; color: var(--text-light); }
.contact-card a { color: var(--primary); font-weight: 600; }

.contact-form-wrapper {
  background: white; padding: 40px; border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.contact-form-wrapper h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 25px; }

.map-container { margin-top: 40px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); height: 400px; }
.map-container iframe { width: 100%; height: 100%; border: none; }

.response-promise {
  background: var(--primary-lighter); border-left: 4px solid var(--primary); padding: 20px 25px;
  border-radius: 0 var(--radius) var(--radius) 0; margin-top: 25px; display: flex; align-items: center; gap: 15px;
}
.response-promise .icon { font-size: 2rem; }
.response-promise h4 { font-size: 1rem; font-weight: 700; color: var(--primary-dark); }
.response-promise p { font-size: 0.85rem; color: var(--text-light); }

/* ============ Footer ============ */
.footer { background: var(--bg-dark); color: rgba(255,255,255,0.8); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 40px; }
.footer-col h4 { color: white; font-size: 1.05rem; font-weight: 700; margin-bottom: 20px; }
.footer-col p { font-size: 0.9rem; line-height: 1.8; margin-bottom: 15px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: rgba(255,255,255,0.7); font-size: 0.9rem; transition: var(--transition); }
.footer-col ul li a:hover { color: var(--primary-light); padding-left: 5px; }
.footer-contact-item { display: flex; gap: 10px; margin-bottom: 12px; font-size: 0.9rem; }
.footer-contact-item .icon { color: var(--primary-light); flex-shrink: 0; }
.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center; color: white; transition: var(--transition);
}
.footer-social a:hover { background: var(--primary); transform: translateY(-3px); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding: 25px 0; text-align: center;
  font-size: 0.85rem; color: rgba(255,255,255,0.5);
}
.footer-bottom a { color: rgba(255,255,255,0.7); }

/* ============ Floating WhatsApp ============ */
.floating-whatsapp {
  position: fixed; bottom: 30px; right: 30px; z-index: 999;
  width: 60px; height: 60px; background: #25D366; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: white;
  font-size: 1.8rem; box-shadow: 0 4px 15px rgba(37,211,102,0.4);
  transition: var(--transition); cursor: pointer; animation: pulse 2s infinite;
}
.floating-whatsapp:hover { transform: scale(1.1); background: #128C7E; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); }
  70% { box-shadow: 0 0 0 15px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ============ Cookie Consent ============ */
.cookie-consent {
  position: fixed; bottom: 0; left: 0; right: 0; background: var(--bg-dark); color: white;
  padding: 20px; z-index: 998; display: none; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}
.cookie-consent.show { display: flex; }
.cookie-consent p { font-size: 0.9rem; flex: 1; min-width: 250px; }
.cookie-consent a { color: var(--primary-light); }
.cookie-buttons { display: flex; gap: 10px; }
.cookie-btn {
  padding: 10px 20px; border-radius: 6px; cursor: pointer; font-weight: 600; font-size: 0.85rem;
  border: none; transition: var(--transition);
}
.cookie-btn.accept { background: var(--primary); color: white; }
.cookie-btn.accept:hover { background: var(--primary-dark); }
.cookie-btn.decline { background: transparent; color: rgba(255,255,255,0.7); border: 1px solid rgba(255,255,255,0.3); }

/* ============ Admin Styles ============ */
.admin-login {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 20px;
}
.admin-login-box {
  background: white; padding: 50px 40px; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  width: 100%; max-width: 420px; text-align: center;
}
.admin-login-box .logo { justify-content: center; margin-bottom: 30px; }
.admin-login-box h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 10px; }
.admin-login-box p { color: var(--text-light); font-size: 0.9rem; margin-bottom: 30px; }
.admin-login-box .form-group { text-align: left; }
.admin-login-error { color: #d32f2f; font-size: 0.85rem; margin-top: 10px; display: none; }

.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 250px; background: var(--bg-dark); color: white; position: fixed; top: 0; left: 0; bottom: 0;
  z-index: 100; overflow-y: auto; transition: var(--transition);
}
.admin-sidebar .logo { padding: 25px 20px; border-bottom: 1px solid rgba(255,255,255,0.1); color: white; }
.admin-sidebar .logo span { color: var(--primary-light); }
.admin-nav { padding: 20px 0; }
.admin-nav a {
  display: flex; align-items: center; gap: 12px; padding: 12px 25px; color: rgba(255,255,255,0.7);
  font-size: 0.9rem; font-weight: 500; transition: var(--transition); border-left: 3px solid transparent;
}
.admin-nav a:hover { background: rgba(255,255,255,0.05); color: white; }
.admin-nav a.active { background: rgba(46,125,50,0.2); color: var(--primary-light); border-left-color: var(--primary); }
.admin-nav .nav-icon { font-size: 1.1rem; width: 20px; text-align: center; }
.admin-logout {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 15px 25px;
  border-top: 1px solid rgba(255,255,255,0.1); cursor: pointer; color: rgba(255,255,255,0.7);
  font-size: 0.9rem; display: flex; align-items: center; gap: 10px; transition: var(--transition);
}
.admin-logout:hover { background: rgba(211,47,47,0.2); color: #ef5350; }

.admin-main { margin-left: 250px; flex: 1; background: var(--bg-gray); min-height: 100vh; }
.admin-header {
  background: white; padding: 20px 30px; box-shadow: var(--shadow); display: flex;
  justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 50;
}
.admin-header h1 { font-size: 1.4rem; font-weight: 700; }
.admin-header-right { display: flex; align-items: center; gap: 15px; }
.admin-user { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; font-weight: 600; }
.admin-avatar {
  width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: white;
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.admin-content { padding: 30px; }

.admin-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 30px; }
.admin-stat-card {
  background: white; padding: 25px; border-radius: var(--radius-lg); box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 20px;
}
.admin-stat-icon {
  width: 55px; height: 55px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
}
.admin-stat-icon.green { background: var(--primary-lighter); color: var(--primary); }
.admin-stat-icon.blue { background: #E3F2FD; color: #1976D2; }
.admin-stat-icon.orange { background: #FFF3E0; color: #F57C00; }
.admin-stat-icon.purple { background: #F3E5F5; color: #7B1FA2; }
.admin-stat-info h3 { font-size: 1.8rem; font-weight: 800; }
.admin-stat-info p { font-size: 0.85rem; color: var(--text-muted); }

.admin-panel {
  background: white; border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden;
  margin-bottom: 25px;
}
.admin-panel-header {
  padding: 20px 25px; border-bottom: 1px solid var(--border); display: flex;
  justify-content: space-between; align-items: center;
}
.admin-panel-header h3 { font-size: 1.1rem; font-weight: 700; }
.admin-panel-body { padding: 25px; }

.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th {
  text-align: left; padding: 12px 15px; background: var(--bg-gray); font-weight: 700; font-size: 0.85rem;
  color: var(--text-light); text-transform: uppercase; letter-spacing: 0.5px;
}
.admin-table td { padding: 15px; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.admin-table tr:hover { background: var(--bg-gray); }
.admin-table img { width: 50px; height: 50px; object-fit: cover; border-radius: 6px; }
.admin-badge {
  display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 600;
}
.admin-badge.green { background: var(--primary-lighter); color: var(--primary); }
.admin-badge.red { background: #FFEBEE; color: #d32f2f; }
.admin-badge.orange { background: #FFF3E0; color: #F57C00; }
.admin-actions { display: flex; gap: 8px; }
.admin-action-btn {
  padding: 5px 12px; border-radius: 6px; border: none; cursor: pointer; font-size: 0.8rem;
  font-weight: 600; transition: var(--transition);
}
.admin-action-btn.edit { background: #E3F2FD; color: #1976D2; }
.admin-action-btn.edit:hover { background: #1976D2; color: white; }
.admin-action-btn.delete { background: #FFEBEE; color: #d32f2f; }
.admin-action-btn.delete:hover { background: #d32f2f; color: white; }
.admin-action-btn.view { background: var(--primary-lighter); color: var(--primary); }
.admin-action-btn.view:hover { background: var(--primary); color: white; }

.admin-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.admin-form-group { margin-bottom: 0; }
.admin-form-group.full { grid-column: 1 / -1; }
.admin-form-group label { display: block; font-weight: 600; font-size: 0.85rem; margin-bottom: 6px; }
.admin-form-group input, .admin-form-group select, .admin-form-group textarea {
  width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: 8px;
  font-size: 0.9rem; font-family: inherit;
}
.admin-form-group textarea { min-height: 100px; resize: vertical; }
.admin-form-actions { display: flex; gap: 10px; margin-top: 20px; justify-content: flex-end; }

.admin-empty { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.admin-empty .icon { font-size: 3rem; margin-bottom: 15px; }

/* ============ Toast ============ */
.toast-container { position: fixed; top: 90px; right: 20px; z-index: 3000; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: white; padding: 15px 20px; border-radius: 8px; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 10px; min-width: 280px; animation: slideIn 0.3s ease;
  border-left: 4px solid var(--primary);
}
.toast.success { border-left-color: var(--primary); }
.toast.error { border-left-color: #d32f2f; }
.toast.info { border-left-color: #1976D2; }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .factory-grid { grid-template-columns: repeat(2, 1fr); }
  .factory-image:first-child { grid-column: span 2; grid-row: span 1; }
  .certifications-grid { grid-template-columns: repeat(2, 1fr); }
  .quality-steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .admin-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --header-height: 60px; }
  .nav-links {
    position: fixed; top: var(--header-height); left: 0; right: 0; background: white;
    flex-direction: column; padding: 20px; gap: 15px; box-shadow: var(--shadow-lg);
    transform: translateY(-150%); transition: transform 0.3s ease; z-index: 999;
  }
  .nav-links.open { transform: translateY(0); }
  .mobile-toggle { display: block; }
  .btn-whatsapp-header { display: none; }
  .hero-content h1 { font-size: 2rem; }
  .hero-content p { font-size: 1rem; }
  .section { padding: 50px 0; }
  .section-header h2 { font-size: 1.6rem; }
  .advantages-grid { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; gap: 30px; }
  .why-image img { height: 300px; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .inquiry-grid { grid-template-columns: 1fr; gap: 30px; }
  .inquiry-form { padding: 25px; }
  .form-row { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .products-filter { flex-direction: column; align-items: stretch; }
  .filter-group { flex-direction: column; align-items: stretch; }
  .filter-group select, .filter-group input { min-width: 100%; }
  .about-hero { grid-template-columns: 1fr; gap: 30px; }
  .about-hero-image img { height: 280px; }
  .timeline::before { left: 20px; }
  .timeline-item, .timeline-item:nth-child(even) { flex-direction: row; padding-left: 60px; }
  .timeline-content, .timeline-item:nth-child(odd) .timeline-content, .timeline-item:nth-child(even) .timeline-content {
    width: 100%; text-align: left; margin: 0;
  }
  .timeline-year { left: 20px; transform: translateX(-50%); width: 40px; height: 40px; font-size: 0.75rem; }
  .factory-grid { grid-template-columns: 1fr 1fr; }
  .quality-steps { grid-template-columns: 1fr; }
  .certifications-grid { grid-template-columns: 1fr 1fr; }
  .oem-grid { grid-template-columns: 1fr; gap: 30px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .page-header { padding: 100px 0 40px; }
  .page-header h1 { font-size: 1.8rem; }
  .modal-body { padding: 25px 20px; }
  .modal-specs-grid { grid-template-columns: 1fr; }
  .modal-image { height: 220px; }

  /* Admin responsive */
  .admin-sidebar { transform: translateX(-100%); }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-main { margin-left: 0; }
  .admin-cards { grid-template-columns: 1fr; }
  .admin-form-grid { grid-template-columns: 1fr; }
  .admin-content { padding: 20px 15px; }
  .admin-header { padding: 15px 20px; }
  .admin-table { font-size: 0.8rem; }
  .admin-table th, .admin-table td { padding: 10px 8px; }
  .cookie-consent { flex-direction: column; align-items: stretch; }
  .cookie-buttons { justify-content: flex-end; }
  .floating-whatsapp { width: 50px; height: 50px; font-size: 1.4rem; bottom: 20px; right: 20px; }
}

@media (max-width: 480px) {
  .hero-content h1 { font-size: 1.6rem; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; }
  .factory-grid { grid-template-columns: 1fr; }
  .certifications-grid { grid-template-columns: 1fr; }
}

/* ============ Utilities ============ */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.hidden { display: none !important; }
