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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: #fff;
  color: #0f1419;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: #0f1419; text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

/* ===== 3-column layout ===== */
.app {
  display: flex;
  max-width: 1100px;
  margin: 0 auto;
  min-height: 100vh;
}

/* ===== LEFT: products ===== */
.col-left {
  width: 220px;
  border-right: 1px solid #eee;
  padding: 24px 20px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  flex-shrink: 0;
}
.col-left h2 {
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #666;
  margin-bottom: 16px;
}
.prod-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #f5f5f5;
  font-size: .88rem;
  color: #222;
}
.prod-item:last-child { border-bottom: none; }
.prod-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.prod-icon svg { width: 24px; height: 24px; }
.prod-label { font-weight: 500; }
.prod-label small { display: block; font-size: .75rem; color: #999; font-weight: 400; }

.left-footer {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #eee;
  font-size: .78rem;
  color: #999;
  line-height: 1.6;
}
.left-footer strong { color: #333; }

/* ===== CENTER: blog feed ===== */
.col-center {
  flex: 1;
  border-right: 1px solid #eee;
  min-height: 100vh;
}
.center-header {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #eee;
  padding: 16px 20px;
  z-index: 10;
}
.center-header h1 { font-size: 1.15rem; font-weight: 700; }
.center-header p { font-size: .82rem; color: #666; }

/* Blog post */
.post {
  padding: 24px 20px;
  border-bottom: 1px solid #eee;
}
.post-meta {
  font-size: .8rem;
  color: #999;
  margin-bottom: 8px;
}
.post h2 {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 14px;
}
.post-body {
  font-size: .92rem;
  line-height: 1.7;
  color: #333;
}
.post-body p { margin-bottom: 12px; }
.post-body p:last-child { margin-bottom: 0; }
.post-body strong { color: #0f1419; }
.post-tags {
  margin-top: 14px;
  font-size: .82rem;
  color: #666;
}
.post-tags a { color: #1d9bf0; }

/* Post CTA */
.post-cta {
  background: #f8f8f8;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 16px;
  margin-top: 16px;
  font-size: .88rem;
  color: #333;
  line-height: 1.6;
}
.post-cta strong { color: #0f1419; }
.post-cta a { color: #1d9bf0; font-weight: 600; }

/* ===== RIGHT: contact ===== */
.col-right {
  width: 240px;
  padding: 24px 20px;
  position: sticky;
  top: 0;
  height: 100vh;
  flex-shrink: 0;
}
.col-right h2 {
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #666;
  margin-bottom: 16px;
}
.contact-line {
  font-size: .88rem;
  color: #333;
  margin-bottom: 12px;
  line-height: 1.5;
}
.contact-line strong { color: #0f1419; display: block; font-size: .82rem; margin-bottom: 2px; }
.contact-line a { color: #1d9bf0; }

.right-divider {
  border: none;
  border-top: 1px solid #eee;
  margin: 16px 0;
}

.right-nav a {
  display: block;
  padding: 6px 0;
  font-size: .88rem;
  color: #333;
}
.right-nav a:hover { color: #1d9bf0; text-decoration: none; }

/* ===== Contact form (contact page) ===== */
.form-group { margin-bottom: 14px; }
.form-group label {
  display: block;
  font-size: .8rem;
  color: #666;
  margin-bottom: 4px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 10px;
  font-size: .9rem;
  font-family: inherit;
  color: #0f1419;
  background: #fff;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #0f1419;
}
.form-group textarea { resize: vertical; min-height: 80px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.btn-submit {
  width: 100%;
  padding: 10px;
  background: #0f1419;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.btn-submit:hover { background: #333; }

/* Map */
.map-wrap { height: 250px; border-bottom: 1px solid #eee; }
.map-wrap iframe { width: 100%; height: 100%; border: 0; }

/* ===== Product cards (products page) ===== */
.prod-card {
  background: #f8f8f8;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 10px;
}
.prod-card h3 { font-size: .92rem; font-weight: 700; margin-bottom: 4px; }
.prod-card p { font-size: .82rem; color: #666; margin-bottom: 6px; line-height: 1.5; }
.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  background: #eee;
  color: #555;
  font-size: .72rem;
  font-weight: 600;
  margin-right: 4px;
}

/* ===== Floating ===== */
.floating {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 999;
}
.float-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.float-btn:hover { transform: scale(1.05); text-decoration: none; }
.float-phone { background: #0f1419; }
.float-zalo { background: #0068ff; font-size: .6rem; font-weight: 800; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .col-right { display: none; }
}
@media (max-width: 650px) {
  .app { flex-direction: column; }
  .col-left {
    position: static;
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 1px solid #eee;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    padding: 12px 16px;
  }
  .col-left h2 { width: 100%; margin-bottom: 8px; }
  .prod-item { padding: 6px 12px 6px 0; border-bottom: none; font-size: .82rem; }
  .left-footer { display: none; }
  .col-center { border-right: none; }
  .form-row { grid-template-columns: 1fr; }
}
