/* ============================================================
   TERAKORN INDUSTRY — Corporate Style (Microsoft-inspired)
   Colors: Orange #E87722 | Red #C0392B | Dark #1A1A1A
   ============================================================ */

:root {
  --orange: #E87722;
  --orange-dark: #C96010;
  --red: #C0392B;
  --red-dark: #992D22;
  --dark: #1A1A1A;
  --nav-bg: #111111;
  --light: #F4F4F4;
  --white: #FFFFFF;
  --border: #DDDDDD;
  --text: #222222;
  --text-muted: #666666;
  --card-shadow: 0 2px 8px rgba(0,0,0,0.10);
  --transition: 0.18s ease;
}

/* ── Reset & Base ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}

a { color: var(--orange); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--orange-dark); }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark);
}

/* ── Utility ─────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 24px; }

.btn {
  display: inline-block;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  border-radius: 0;
  text-decoration: none;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}
.btn-primary:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--orange);
  border-color: var(--orange);
}
.btn-outline:hover {
  background: var(--orange);
  color: var(--white);
}

.btn-dark {
  background: var(--dark);
  color: var(--white);
  border-color: var(--dark);
}
.btn-dark:hover { background: #333; border-color: #333; color: var(--white); }

.btn-sm { padding: 6px 16px; font-size: 13px; }

.badge {
  display: inline-block;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 0;
}
.badge-orange { background: var(--orange); color: #fff; }
.badge-red    { background: var(--red);    color: #fff; }
.badge-dark   { background: var(--dark);   color: #fff; }
.badge-light  { background: var(--light);  color: var(--text); }

.text-muted { color: var(--text-muted); }
.text-orange { color: var(--orange); }
.mt-auto { margin-top: auto; }

/* ── Section Titles ──────────────────────────────────────── */
.section-header {
  margin-bottom: 40px;
}
.section-header h2 {
  font-size: 2rem;
  position: relative;
  padding-left: 20px;
}
.section-header h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 5px;
  background: var(--orange);
}
.section-header p {
  color: var(--text-muted);
  margin-top: 8px;
  font-size: 1rem;
  padding-left: 20px;
}
.section-header .section-link {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--orange);
}

/* ── Navigation ──────────────────────────────────────────── */
.navbar {
  background: var(--nav-bg);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 3px solid var(--orange);
}

.navbar-inner {
  display: flex;
  align-items: center;
  height: 64px;
  gap: 0;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: 40px;
}

.brand-logo-block {
  width: 40px;
  height: 40px;
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -1px;
}

.brand-text-main {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.1;
}
.brand-text-sub {
  font-size: 10px;
  color: #aaa;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.navbar-nav {
  display: flex;
  list-style: none;
  gap: 0;
  flex: 1;
}

.navbar-nav a {
  display: block;
  padding: 0 18px;
  height: 64px;
  line-height: 64px;
  color: #ccc;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.navbar-nav a:hover,
.navbar-nav a.active {
  color: #fff;
  background: rgba(232,119,34,0.15);
}
.navbar-nav a.active { border-bottom: 3px solid var(--orange); }

.navbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 12px;
  margin-right: 4px;
}
.lang-btn {
  color: #888;
  text-decoration: none;
  padding: 2px 5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: color var(--transition);
}
.lang-btn:hover, .lang-btn.active { color: var(--orange); }
.lang-sep { color: #444; font-size: 10px; }

.navbar-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.navbar-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #ccc;
  transition: var(--transition);
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  background: var(--dark);
  position: relative;
  overflow: hidden;
  min-height: 540px;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.hero-eyebrow {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 12px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 3rem;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero h1 span { color: var(--orange); }

.hero p {
  color: #bbb;
  font-size: 1.1rem;
  margin-bottom: 32px;
  line-height: 1.7;
}

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

/* ── Stats Bar ───────────────────────────────────────────── */
.stats-bar {
  background: var(--orange);
  padding: 0;
}
.stats-bar .container {
  display: flex;
}
.stat-item {
  flex: 1;
  padding: 24px 20px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.2);
  color: #fff;
}
.stat-item:last-child { border-right: none; }
.stat-number {
  font-size: 2rem;
  font-weight: 800;
  display: block;
  line-height: 1;
}
.stat-label {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-top: 4px;
}

/* ── Section Blocks ──────────────────────────────────────── */
.section { padding: 72px 0; }
.section-light { background: var(--light); }
.section-dark { background: var(--dark); }

/* ── Cards ───────────────────────────────────────────────── */
.card-grid {
  display: grid;
  gap: 24px;
}
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white);
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition);
  overflow: hidden;
}
.card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.15);
  transform: translateY(-2px);
}

.card-img {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--light);
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.card:hover .card-img img { transform: scale(1.04); }

.card-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e0e0e0 0%, #c8c8c8 100%);
  color: #999;
  font-size: 2.5rem;
}

.card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--dark);
  line-height: 1.3;
}

.card-text {
  font-size: 14px;
  color: var(--text-muted);
  flex: 1;
  line-height: 1.6;
}

.card-footer-link {
  margin-top: 16px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--orange);
  display: flex;
  align-items: center;
  gap: 6px;
}
.card-footer-link::after { content: '→'; }

/* Product card variant */
.product-card .card-img { aspect-ratio: 4/3; }
.product-card .card-category {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--orange);
  margin-bottom: 6px;
}

/* ── Page Header ─────────────────────────────────────────── */
.page-header {
  background: var(--dark);
  padding: 52px 0;
  border-bottom: 4px solid var(--orange);
}
.page-header h1 {
  color: #fff;
  font-size: 2.4rem;
}
.page-header .breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 13px;
  color: #888;
}
.page-header .breadcrumb a { color: #aaa; }
.page-header .breadcrumb a:hover { color: var(--orange); }
.page-header .breadcrumb .sep { color: #555; }
.page-header .breadcrumb .current { color: var(--orange); }

/* ── Products Filter Bar ─────────────────────────────────── */
.filter-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0;
  position: sticky;
  top: 67px;
  z-index: 100;
}
.filter-bar-inner {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
}
.filter-btn {
  padding: 16px 22px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  border: none;
  background: none;
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: color var(--transition), border-color var(--transition);
  text-decoration: none;
  display: block;
}
.filter-btn:hover { color: var(--orange); }
.filter-btn.active { color: var(--orange); border-bottom-color: var(--orange); }

.search-bar {
  display: flex;
  gap: 8px;
  margin-left: auto;
  padding: 10px 0;
  flex-shrink: 0;
}
.search-bar input {
  border: 1px solid var(--border);
  padding: 8px 14px;
  font-size: 14px;
  outline: none;
  font-family: inherit;
  border-radius: 0;
  width: 200px;
}
.search-bar input:focus { border-color: var(--orange); }
.search-bar button {
  background: var(--orange);
  color: #fff;
  border: none;
  padding: 8px 16px;
  cursor: pointer;
  font-size: 14px;
  border-radius: 0;
}

/* ── Detail Article ──────────────────────────────────────── */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}

.article-image {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  margin-bottom: 32px;
}

.article-content {
  line-height: 1.8;
  font-size: 1rem;
  color: var(--text);
}
.article-content h2,
.article-content h3,
.article-content h4 {
  margin: 28px 0 12px;
}
.article-content p { margin-bottom: 16px; }
.article-content ul, .article-content ol {
  padding-left: 24px;
  margin-bottom: 16px;
}
.article-content li { margin-bottom: 6px; }
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}
.article-content th, .article-content td {
  border: 1px solid var(--border);
  padding: 10px 14px;
  text-align: left;
  font-size: 14px;
}
.article-content th {
  background: var(--light);
  font-weight: 700;
}

.sidebar-widget {
  background: var(--light);
  padding: 24px;
  margin-bottom: 24px;
}
.sidebar-widget h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--orange);
  color: var(--dark);
}

.sidebar-list { list-style: none; }
.sidebar-list li {
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}
.sidebar-list li:last-child { border-bottom: none; }
.sidebar-list a { color: var(--text); font-size: 14px; line-height: 1.4; }
.sidebar-list a:hover { color: var(--orange); }
.sidebar-list .meta { font-size: 11px; color: var(--text-muted); margin-top: 3px; }

/* ── About Page ──────────────────────────────────────────── */
.timeline {
  position: relative;
  padding-left: 40px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--border);
}
.timeline-item {
  position: relative;
  margin-bottom: 36px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -36px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--orange);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--orange);
}
.timeline-year {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--orange);
  margin-bottom: 4px;
}
.timeline-title { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.timeline-text { font-size: 14px; color: var(--text-muted); }

.factory-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
}
.factory-card {
  background: var(--white);
  padding: 36px 28px;
  text-align: center;
}
.factory-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}
.factory-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--orange);
  line-height: 1;
}
.factory-label { font-size: 13px; color: var(--text-muted); margin-top: 6px; }

/* ── Contact ─────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.contact-info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}
.contact-info-icon {
  width: 44px;
  height: 44px;
  background: var(--orange);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.contact-info-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.contact-info-value { font-size: 15px; font-weight: 500; }

.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--dark);
}
.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  border-radius: 0;
  transition: border-color var(--transition);
  background: var(--white);
}
.form-control:focus { border-color: var(--orange); }
textarea.form-control { resize: vertical; min-height: 120px; }

/* ── Pagination ──────────────────────────────────────────── */
.pagination {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 48px;
}
.page-link {
  display: inline-block;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  border: 1px solid var(--border);
  background: var(--white);
  transition: background var(--transition), color var(--transition);
  text-decoration: none;
}
.page-link:hover, .page-link.active {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
}

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  background: #0d0d0d;
  color: #aaa;
  padding: 56px 0 0;
  border-top: 4px solid var(--orange);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer-brand .brand-logo-block { margin-bottom: 16px; }
.footer-about { font-size: 14px; line-height: 1.7; color: #888; margin-top: 12px; }

.footer-col h5 {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--orange);
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: #888; font-size: 14px; transition: color var(--transition); }
.footer-col a:hover { color: var(--orange); }

.footer-bottom {
  border-top: 1px solid #222;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #555;
}

/* ── Flash Messages ──────────────────────────────────────── */
.flash-messages { padding: 0; }
.alert {
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 500;
  border-left: 4px solid;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.alert-success { background: #f0faf0; border-color: #27ae60; color: #1a6e3a; }
.alert-danger   { background: #fff5f5; border-color: var(--red); color: #922b21; }
.alert-warning  { background: #fffbf0; border-color: #f39c12; color: #7d5a00; }
.alert-info     { background: #f0f7ff; border-color: #2980b9; color: #1a5276; }
.alert-close {
  background: none; border: none; cursor: pointer;
  font-size: 18px; color: inherit; opacity: 0.6;
  line-height: 1; padding: 0; margin-left: 16px;
}

/* ── Admin Panel ─────────────────────────────────────────── */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 240px;
  background: #1a1a2e;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}

.admin-sidebar-brand {
  padding: 20px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.admin-sidebar-brand .brand-logo-block { margin-bottom: 8px; }
.admin-sidebar-brand-title { color: #fff; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.admin-sidebar-brand-sub { color: #666; font-size: 11px; }

.admin-nav { padding: 16px 0; flex: 1; overflow-y: auto; }
.admin-nav-section {
  padding: 12px 20px 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #444;
}
.admin-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  color: #888;
  font-size: 14px;
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
  border-left: 3px solid transparent;
}
.admin-nav a:hover { background: rgba(255,255,255,0.05); color: #ccc; }
.admin-nav a.active { background: rgba(232,119,34,0.12); color: var(--orange); border-left-color: var(--orange); }
.admin-nav-icon { width: 18px; text-align: center; font-size: 15px; }

.admin-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.admin-topbar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 0 28px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.admin-topbar-title { font-size: 17px; font-weight: 700; color: var(--dark); }
.admin-topbar-user { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--text-muted); }

.admin-content { padding: 28px; overflow-y: auto; flex: 1; background: #f8f8f8; }

.admin-card {
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  padding: 24px;
  margin-bottom: 24px;
}

.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.admin-stat-card {
  background: #fff;
  padding: 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  border-left: 4px solid var(--orange);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.admin-stat-card.red { border-left-color: var(--red); }
.admin-stat-card.dark { border-left-color: var(--dark); }
.admin-stat-card.green { border-left-color: #27ae60; }
.admin-stat-number { font-size: 2rem; font-weight: 800; line-height: 1; }
.admin-stat-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.admin-table th {
  text-align: left;
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border);
  background: #fafafa;
}
.admin-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: #fafafa; }

.admin-table-img {
  width: 48px;
  height: 36px;
  object-fit: cover;
  background: var(--light);
}

.admin-actions { display: flex; gap: 6px; }

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
}
.status-dot.published { background: #27ae60; }
.status-dot.draft     { background: #bdc3c7; }

/* Admin Forms */
.admin-form-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
}
.admin-form-group { margin-bottom: 20px; }
.admin-form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--dark);
}
.admin-form-control {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  border-radius: 0;
  transition: border-color var(--transition);
  background: var(--white);
}
.admin-form-control:focus { border-color: var(--orange); }
textarea.admin-form-control { resize: vertical; min-height: 100px; }
select.admin-form-control { cursor: pointer; }
.admin-form-hint { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

.admin-checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
}
.admin-checkbox-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--orange);
}
.admin-checkbox-row label { font-size: 14px; font-weight: 500; cursor: pointer; }

.admin-image-preview {
  margin-top: 10px;
}
.admin-image-preview img {
  max-height: 160px;
  object-fit: cover;
  border: 1px solid var(--border);
}

/* Quill editor */
.ql-toolbar.ql-snow { border-radius: 0; border-color: var(--border); }
.ql-container.ql-snow { border-color: var(--border); border-radius: 0; min-height: 200px; font-family: inherit; font-size: 15px; }
.ql-editor { min-height: 200px; }

/* ── Mobile ───────────────────────────────────────────────── */
@media (max-width: 900px) {
  .card-grid-3, .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .factory-grid { grid-template-columns: 1fr; }
  .admin-stat-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero h1 { font-size: 2rem; }
  .card-grid-3, .card-grid-4, .card-grid-2 { grid-template-columns: 1fr; }
  .stats-bar .container { flex-direction: column; }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.2); }
  .footer-grid { grid-template-columns: 1fr; }
  .navbar-nav { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--nav-bg); padding: 8px 0; border-top: 1px solid #222; }
  .navbar-nav.open { display: flex; }
  .navbar-nav a { height: auto; line-height: 1.4; padding: 12px 20px; }
  .navbar-toggle { display: flex; }
  .section-header h2 { font-size: 1.5rem; }
  .page-header h1 { font-size: 1.75rem; }
  .admin-sidebar { display: none; }
  .admin-stat-grid { grid-template-columns: 1fr 1fr; }
}
