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

body {
  font-family: 'Poppins', sans-serif;
  background: #f4f6fb;
  color: #333;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 1rem; }

/* Header */
.header, .admin-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1rem 0;
}

.header-content, .admin-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo-section { display: flex; align-items: center; gap: 0.75rem; }
.logo { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; }
.logo-section h1, .company-name { font-size: 1.4rem; }

.nav, .admin-nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.nav-link, .admin-link {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.95rem;
}
.nav-link:hover, .admin-link:hover, .admin-link.active { color: white; }

/* Hero */
.hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-align: center;
  padding: 4rem 1rem;
}
.hero-logo { width: 110px; height: 110px; border-radius: 20px; object-fit: cover; margin-bottom: 1rem; }
.hero-content h1 { font-size: 2.4rem; margin-bottom: 0.5rem; }
.hero-content p { margin-bottom: 1.5rem; opacity: 0.9; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
}
.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }
.btn-primary { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; }
.hero-section .btn-primary { background: white; color: #667eea; }
.btn-secondary { background: #e4e7f5; color: #4a4a6a; }
.btn-block { width: 100%; }
.btn-sm { padding: 0.4rem 0.8rem; font-size: 0.85rem; }
.btn-edit { background: #2196F3; color: white; }
.btn-delete { background: #f44336; color: white; }

/* Sections */
.content-section { padding: 3.5rem 0; }
.section-header { text-align: center; margin-bottom: 2rem; }
.section-header h2 { font-size: 1.8rem; }
.section-subtitle { color: #777; }

.video-wrapper { max-width: 800px; margin: 0 auto; }
.homepage-video { width: 100%; border-radius: 12px; background: #000; }

/* Products */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.product-card-modern {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}
.product-image-wrapper img { width: 100%; height: 200px; object-fit: cover; }
.placeholder-image {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: #ccc;
  background: #f0f0f5;
}
.product-content { padding: 1.25rem; }
.product-title { margin-bottom: 0.5rem; }
.product-desc { color: #666; font-size: 0.9rem; margin-bottom: 0.75rem; }
.product-date { color: #999; font-size: 0.8rem; }

.empty-state { text-align: center; padding: 3rem 1rem; color: #999; }
.empty-state i { font-size: 3rem; margin-bottom: 1rem; }

/* Footer */
.footer { background: #2b2d42; color: #ccc; padding: 2.5rem 0 1rem; margin-top: 2rem; }
.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-section h3 { color: white; margin-bottom: 0.75rem; font-size: 1.05rem; }
.footer-section p, .footer-section a { color: #ccc; text-decoration: none; font-size: 0.9rem; }
.footer-section a:hover { color: white; }
.footer-section ul { list-style: none; }
.footer-section li { margin-bottom: 0.4rem; }
.footer-bottom { text-align: center; border-top: 1px solid #444; padding-top: 1rem; font-size: 0.85rem; }

/* Login */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.login-container { width: 100%; max-width: 400px; padding: 0 1rem; }
.login-box { background: white; border-radius: 12px; padding: 2rem; box-shadow: 0 8px 24px rgba(0,0,0,0.2); }
.login-box h2 { text-align: center; margin-bottom: 1.5rem; }
.login-footer { text-align: center; margin-top: 1.25rem; font-size: 0.85rem; }
.login-footer a { color: #667eea; text-decoration: none; }

/* Forms */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: 0.4rem; font-weight: 500; color: #555; }
.form-group input, .form-group textarea {
  width: 100%;
  padding: 0.7rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.9rem;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: #667eea;
}

/* Alerts */
.alert { padding: 0.75rem 1rem; border-radius: 6px; margin-bottom: 1rem; }
.alert-error { background: #f8d7da; color: #721c24; }
.alert-success { background: #d4edda; color: #155724; }

/* Admin */
.admin-container { max-width: 1000px; margin: 2rem auto; padding: 0 1rem; }
.admin-section {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.admin-section .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
}
.product-table table { width: 100%; border-collapse: collapse; }
.product-table th, .product-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid #eee;
  font-size: 0.9rem;
}
.table-image { width: 60px; height: 60px; object-fit: cover; border-radius: 6px; }
.actions { white-space: nowrap; }
.no-products { text-align: center; color: #999; padding: 2rem; }

.form-container {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  max-width: 640px;
  margin: 0 auto;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.form-actions { display: flex; gap: 1rem; margin-top: 1.5rem; }
.current-image img { max-width: 200px; border-radius: 8px; margin: 0.5rem 0; }

@media (max-width: 768px) {
  .hero-content h1 { font-size: 1.8rem; }
  .header-content, .admin-header-content { justify-content: center; text-align: center; }
}
