/* ==========================================================================
   MÀU XANH - STYLESHEET CHUẨN TRANG CHỦ
   ========================================================================== */

:root {
  --green: #6ec56a;
  --blue: #30a9e1;
  --forest: #183e28;
  --primary: #286b31;
  --background: #ffffff;
  --foreground: #203025;
  --muted: #59665c;
  --line: #e2e8df;
  --pale: #f4f7f1;
  --border: #e2e8df;
  --surface: #f4f7f1;
  --surface-alt: #f8fafc;
  --text-main: #203025;
  --text-muted: #59665c;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
}

.btn.outline {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
}

.btn.outline:hover {
  background: var(--primary);
  color: #ffffff;
}

.badge-success {
  background: #e3f2e2;
  color: #1b5e20;
}

.badge-neutral {
  background: #f1f5f9;
  color: #475569;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  color: var(--foreground);
  font-size: 16px;
  line-height: 1.6;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}

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

button, input, select, textarea {
  font: inherit;
}

button, a, input, select {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

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

h1, h2, h3, p {
  margin: 0;
}

h1, h2, h3 {
  line-height: 1.15;
  letter-spacing: -0.045em;
}

h2 {
  font-size: clamp(30px, 3vw, 43px);
  font-weight: 600;
}

h3 {
  font-size: 21px;
  font-weight: 600;
}

p {
  color: var(--muted);
}

.wrap {
  max-width: 1240px;
  width: calc(100% - 96px);
  margin: auto;
}

/* ==========================================================================
   UTILITY BAR & HEADER
   ========================================================================== */

.utility {
  background: var(--forest);
  color: #ffffff;
  font-size: 12px;
  letter-spacing: 0.06em;
}

.utility .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 32px;
}

.utility a {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: #ffffff;
  transition: opacity 0.2s;
}

.utility a:hover {
  opacity: 0.85;
}

.header {
  background: rgba(255, 255, 255, 0.93);
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  width: 169px;
  height: 55px;
  object-fit: contain;
}

.nav nav {
  display: flex;
  gap: 28px;
  font-size: 14px;
  font-weight: 600;
}

.nav nav a {
  transition: color 0.2s;
}

.nav nav a:hover {
  color: var(--primary);
}

.mobile-menu {
  display: none;
  background: #ffffff;
  border: 1.5px solid var(--line);
  padding: 0;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--forest);
  border-radius: 8px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
}

.mobile-menu:hover,
.mobile-menu.is-active {
  background: #f0fdf4;
  color: var(--primary);
  border-color: #86efac;
}

.mobile-menu .icon-menu,
.mobile-menu .icon-close {
  width: 22px;
  height: 22px;
  display: block;
}

.mobile-menu .icon-close {
  display: none;
}

.mobile-menu.is-active .icon-menu {
  display: none;
}

.mobile-menu.is-active .icon-close {
  display: block;
}

.mobile-nav-footer {
  display: none;
}

/* ==========================================================================
   BUTTONS & LINKS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: var(--primary);
  color: #ffffff;
  padding: 15px 23px;
  border: 1px solid transparent;
  border-radius: 5px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.4;
  transition: background 0.2s, transform 0.2s;
  cursor: pointer;
  white-space: normal;
  height: auto;
}

.btn:hover {
  background: var(--forest);
  transform: translateY(-1px);
}

.btn.small {
  padding: 12px 17px;
  font-size: 14px;
  gap: 10px;
}

.btn.light {
  background: #ffffff;
  color: var(--forest);
}

.btn.light:hover {
  background: #e5f1de;
}

.text-link {
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--forest);
  transition: color 0.2s;
}

.text-link:hover {
  color: var(--primary);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: stretch;
  padding-top: 46px;
  padding-bottom: 38px;
}

.hero-copy {
  padding: 27px 0 0;
}

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.13em;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 21px;
}

.eyebrow > span {
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  display: inline-block;
}

.eyebrow.blue {
  color: #1376a0;
}

.blue-dot {
  color: var(--blue);
}

.hero h1 {
  font-size: clamp(40px, 4.5vw, 64px);
  font-weight: 600;
  line-height: 1.1;
}

.hero h1 em {
  font-style: normal;
  color: var(--primary);
}

.hero-copy > p {
  font-size: 16px;
  margin-top: 25px;
  line-height: 1.8;
  max-width: 510px;
}

.actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 30px;
}

.hero-bottom {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 49px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: #667367;
}

.hero-bottom i {
  width: 3px;
  height: 3px;
  background: var(--green);
  border-radius: 50%;
  display: inline-block;
}

.hero-photo {
  position: relative;
  min-height: 480px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--forest);
}

.hero-photo > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 48% center;
}

.hero-photo::after {
  content: '';
  position: absolute;
  inset: 35% 0 0;
  background: linear-gradient(transparent, rgba(7, 36, 17, 0.87));
}

.photo-caption {
  position: absolute;
  z-index: 1;
  left: 30px;
  right: 30px;
  bottom: 30px;
  color: #ffffff;
}

.photo-caption > span {
  font-size: 12px;
  letter-spacing: 0.12em;
  display: block;
  margin-bottom: 13px;
}

.photo-caption strong {
  font-size: 30px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.photo-caption a {
  position: absolute;
  right: 0;
  bottom: 0;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: #ffffff;
  transition: background 0.2s, border-color 0.2s;
}

.photo-caption a:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
}

/* ==========================================================================
   TRUST SECTION
   ========================================================================== */

.trust {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1.5fr 1fr;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 27px 0;
  align-items: center;
}

.trust > div {
  padding-left: 30px;
  border-left: 1px solid var(--line);
}

.trust > div:first-child {
  padding-left: 0;
  border: 0;
}

.trust strong {
  font-size: 34px;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.trust strong span {
  color: var(--primary);
  font-size: 26px;
}

.trust p {
  font-size: 13px;
  margin-top: 1px;
}

.trust > div > svg {
  display: inline-block;
  width: 26px;
  height: 26px;
  color: var(--primary);
  margin-right: 8px;
  vertical-align: middle;
}

.trust .trust-text {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.trust > a {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  transition: transform 0.2s;
}

.trust > a:hover {
  transform: translateX(2px);
}

/* ==========================================================================
   SECTION COMMON
   ========================================================================== */

.section {
  padding-top: 80px;
  padding-bottom: 80px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 32px;
}

.section-head .eyebrow {
  margin-bottom: 15px;
}

.section-head > p {
  font-size: 15px;
  line-height: 1.7;
}

/* ==========================================================================
   SOLUTIONS SECTION
   ========================================================================== */

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

.solution {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 6px;
  transition: background 0.2s, border-color 0.2s;
  display: block;
  background: #ffffff;
}

.solution:hover {
  background: var(--pale);
  border-color: #9ab78e;
}

.solution > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--primary);
  margin-bottom: 31px;
}

.solution > div > span {
  font-size: 12px;
  color: #7c897d;
}

.solution h3 {
  font-size: 21px;
  letter-spacing: -0.025em;
}

.solution p {
  font-size: 16px;
  margin-top: 12px;
  margin-bottom: 24px;
}

/* ==========================================================================
   PRODUCTS CATALOG SECTION
   ========================================================================== */

.products-bg {
  background: var(--pale);
}

.catalog-tools {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.filter-pills {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.filter-pill {
  height: auto;
  padding: 9px 15px;
  font-size: 14px;
  border: 1px solid transparent;
  border-radius: 5px;
  font-weight: 500;
  color: #566457;
  white-space: normal;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.filter-pill:hover {
  background: #e7eddf;
}

.filter-pill.active {
  background: var(--forest);
  color: #ffffff;
}

.search-box {
  display: flex;
  gap: 10px;
  align-items: center;
  background: #ffffff;
  border: 1px solid #d6dfd2;
  border-radius: 5px;
  padding: 0 12px;
  min-width: 260px;
  max-width: 330px;
  flex: 1;
  color: #687967;
}

.search-box input {
  border: 0;
  box-shadow: none;
  outline: 0;
  height: 44px;
  padding: 0;
  font-size: 14px;
  width: 100%;
  color: var(--foreground);
}

.search-box:focus-within {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.search-clear {
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #889988;
  border-radius: 4px;
}

.search-clear:hover {
  color: var(--foreground);
  background: var(--pale);
}

.result-count {
  font-size: 13px;
  margin-bottom: 16px;
}

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

.product-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  text-align: left;
  transition: box-shadow 0.2s;
  cursor: pointer;
  width: 100%;
  padding: 0;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  box-shadow: 0 8px 25px rgba(25, 60, 37, 0.07);
}

.product-image {
  height: 235px;
  padding: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
}

.product-image img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.25s;
}

.product-card:hover img {
  transform: scale(1.04);
}

.product-info {
  padding: 19px 20px 22px;
  border-top: 1px solid #f0f3ed;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-info > span {
  font-size: 13px;
  color: var(--primary);
  font-weight: 500;
}

.product-info h3 {
  font-size: 18px;
  letter-spacing: -0.025em;
  margin-top: 9px;
}

.product-info p {
  font-size: 14px;
  margin-top: auto;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--forest);
  font-weight: 600;
}

.empty-state {
  background: #ffffff;
  border: 1px dashed #bdcdb7;
  text-align: center;
  padding: 45px 20px;
  min-height: 230px;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.empty-state > svg {
  margin: 0 auto 16px;
  color: #809175;
}

.empty-state h3 {
  font-size: 22px;
}

.empty-state p {
  margin: 10px 0 20px;
}

.catalog-note {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 13px;
  margin-top: 24px;
  color: #61705d;
  align-items: center;
}

.catalog-note a {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  color: var(--primary);
  font-weight: 600;
}

/* ==========================================================================
   FACTORY & CAPABILITY SECTION
   ========================================================================== */

.factory-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 65px;
  align-items: center;
}

.factory-section > img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: 6px;
}

.factory-section p {
  margin: 22px 0 28px;
}

/* ==========================================================================
   NEWS SECTION
   ========================================================================== */

.news-section {
  background: #f5f7fa;
  border-top: 1px solid #e4e9ef;
}

.news-section > div > p {
  margin-top: 15px;
}

.news-edition {
  border-left: 2px solid var(--blue);
  padding-left: 15px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.news-edition span {
  font-size: 12px;
  color: #647581;
  letter-spacing: 0.1em;
}

.news-edition strong {
  font-weight: 500;
  font-size: 18px;
}

.news-section .section-head {
  margin-bottom: 14px;
}

.news-lead {
  font-size: 16px;
}

.news-filters {
  margin: 24px 0 27px;
}

.news-filters .filter-pill.active {
  background: #155c7b;
}

.news-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 35px;
}

.news-feature {
  border: 0;
  padding: 0;
  background: #ffffff;
  text-align: left;
  cursor: pointer;
  border-radius: 6px;
  overflow: hidden;
  align-self: start;
  color: inherit;
  width: 100%;
  display: block;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}

.news-feature:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.news-feature > img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.news-feature-copy {
  padding: 24px;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: #657885;
}

.article-meta > span:first-child {
  color: #1376a0;
  font-weight: 600;
}

.news-feature h3 {
  font-size: 27px;
  line-height: 1.25;
  margin-top: 15px;
  letter-spacing: -0.03em;
  transition: color 0.2s;
}

.news-feature p {
  margin: 13px 0 19px;
  font-size: 16px;
}

.news-list {
  display: flex;
  flex-direction: column;
}

.news-row {
  display: flex;
  align-items: flex-start;
  gap: 17px;
  padding: 25px 0;
  border: 0;
  border-bottom: 1px solid #dbe3e8;
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: inherit;
  flex: 1;
  width: 100%;
  transition: background 0.2s;
}

.news-row:first-child {
  padding-top: 4px;
}

.news-row > div {
  flex: 1;
}

.news-row > svg {
  margin-top: 30px;
  color: #1376a0;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.news-row:hover > svg {
  transform: translate(2px, -2px);
}

.news-number {
  font-size: 13px;
  line-height: 1.9;
  color: #637d8c;
  font-weight: 600;
}

.news-row h3 {
  font-size: 23px;
  line-height: 1.3;
  letter-spacing: -0.03em;
  margin-top: 12px;
  transition: color 0.2s;
}

.reading-time {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #617586;
  margin-top: 13px;
}

.news-row:hover h3,
.news-feature:hover h3 {
  color: #1376a0;
}

.news-disclosure {
  margin-top: 25px;
  display: flex;
  gap: 13px;
  align-items: flex-start;
}

.news-disclosure p {
  font-size: 13px;
  color: #617280;
}

.sample-label {
  font-size: 11px;
  color: #155c7b;
  border: 1px solid #bed2df;
  padding: 2px 6px;
  border-radius: 3px;
  flex-shrink: 0;
  font-weight: 600;
}

.editorial-cover {
  height: 260px;
  background: #155c7b;
  color: #ffffff;
  padding: 35px;
  font-size: 38px;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.editorial-cover span {
  display: block;
  font-size: 12px;
  letter-spacing: 0.12em;
  margin-top: 27px;
}

.editorial-note {
  padding: 35px;
  background: #eaf0f4;
  border-top: 2px solid var(--blue);
  border-radius: 6px;
}

.editorial-note > span {
  font-size: 12px;
  letter-spacing: 0.09em;
  color: #1376a0;
  font-weight: 600;
}

.editorial-note h3 {
  font-size: 28px;
  margin: 25px 0 18px;
  line-height: 1.25;
}

.editorial-note p {
  font-size: 16px;
}

/* ==========================================================================
   SOLUTION CTA SECTION (KHỐI KÊU GỌI HỢP TÁC & GIẢI PHÁP ĐỒNG HÀNH)
   Thay thế contact-section tràn viền cũ để tránh trùng lặp màu sắc & thông tin với footer
   ========================================================================== */

.solution-cta-section {
  padding: 40px 0 70px;
}

.solution-cta-card {
  background: linear-gradient(135deg, #f7faf5 0%, #edf5eb 100%);
  border: 1px solid #d4e3d1;
  border-radius: 12px;
  padding: 48px 50px;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 45px;
  align-items: center;
  box-shadow: 0 10px 35px rgba(24, 62, 40, 0.05);
  position: relative;
  overflow: hidden;
}

.solution-cta-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--green), var(--blue));
}

.solution-cta-left .eyebrow {
  margin-bottom: 12px;
}

.solution-cta-left h2 {
  font-size: clamp(25px, 2.5vw, 34px);
  color: var(--forest);
  line-height: 1.25;
  margin-bottom: 14px;
}

.solution-cta-desc {
  font-size: 15px;
  line-height: 1.75;
  color: #4a5c4e;
  margin-bottom: 20px;
}

.solution-checklist {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--forest);
  font-weight: 500;
}

.checklist-item svg {
  color: var(--primary);
  flex-shrink: 0;
}

.solution-cta-right {
  background: #ffffff;
  padding: 30px 26px;
  border-radius: 10px;
  border: 1px solid #e1ebe0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.solution-cta-right h3 {
  font-size: 17px;
  color: var(--forest);
  margin-bottom: 6px;
}

.solution-cta-right p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 18px;
}

.solution-cta-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.solution-cta-actions .btn-main {
  width: 100%;
  padding: 13px 18px;
  background: var(--primary);
  color: #ffffff;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14.5px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s, transform 0.2s;
  border: 0;
  cursor: pointer;
}

.solution-cta-actions .btn-main:hover {
  background: var(--forest);
  transform: translateY(-1px);
}

.solution-sub-actions {
  display: flex;
  gap: 10px;
}

.btn-sub-action {
  flex: 1;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-sub-action.zalo {
  background: #0068ff;
  color: #ffffff;
}

.btn-sub-action.zalo:hover {
  background: #0056d6;
}

.btn-sub-action.phone {
  background: var(--pale);
  color: var(--forest);
  border: 1px solid #d4dfd1;
}

.btn-sub-action.phone:hover {
  background: #e3ede1;
  border-color: var(--primary);
}

.solution-cta-note {
  font-size: 12px;
  color: #7b8e80;
  text-align: center;
  margin-top: 12px;
  display: block;
}

@media (max-width: 960px) {
  .solution-cta-card {
    grid-template-columns: 1fr;
    padding: 35px 24px;
    gap: 25px;
  }
}

/* Fallback class cho các trang cũ nếu còn dùng */
.contact-section {
  padding: 50px 0;
  background: var(--pale);
  color: var(--foreground);
}

.contact-section .eyebrow {
  color: var(--primary);
}

.contact-section h2 {
  font-size: clamp(26px, 3vw, 40px);
  margin-bottom: 24px;
  color: var(--forest);
}

.contact-mail {
  display: inline-flex;
  gap: 10px;
  margin-left: 20px;
  font-size: 15px;
  align-items: center;
  color: var(--primary);
  font-weight: 600;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding-top: 32px;
  padding-bottom: 32px;
}

.footer p {
  font-size: 14px;
}

.footer p span,
.footer > span {
  font-size: 12px;
  color: #6e7b71;
}

.footer a {
  text-decoration: underline;
  text-underline-offset: 4px;
  line-height: 2.4;
  color: inherit;
}

.footer a:hover {
  color: var(--primary);
}

.desktop {
  display: block;
}

/* ==========================================================================
   MODAL / DIALOG POPUP STYLES
   ========================================================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background-color: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  position: relative;
  transform: scale(0.95);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.modal-overlay.active .modal-container {
  transform: scale(1);
}

body.modal-open {
  overflow: hidden;
}

.dialog-close {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  background: #f4f7f1;
  border-radius: 5px;
  border: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--foreground);
  transition: background 0.2s;
}

.dialog-close:hover {
  background: #dfe6dc;
}

/* Product Detail Modal */
.detail-dialog {
  width: 900px;
  max-width: calc(100vw - 32px);
  max-height: 88vh;
  padding: 35px;
  display: block;
  font-size: 16px;
}

.detail-intro {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 35px;
  align-items: center;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.detail-photo {
  height: 260px;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--pale);
  border-radius: 8px;
}

.detail-photo img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.detail-title {
  font-size: 32px;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-top: 6px;
}

.detail-description {
  font-size: 16px;
  line-height: 1.6;
  margin: 15px 0 23px;
  color: var(--muted);
}

.source-link {
  font-size: 14px;
  display: flex;
  gap: 7px;
  align-items: center;
  color: var(--primary);
  margin-top: 17px;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}

.technical-heading {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  padding: 25px 0 15px;
}

.technical-heading > span {
  font-size: 12px;
  color: #697466;
}

.technical-content p {
  margin-bottom: 10px;
  line-height: 1.8;
  font-size: 16px;
  overflow-wrap: anywhere;
}

.technical-content .technical-label {
  font-weight: 700;
  color: var(--forest);
  margin-top: 22px;
}

.detail-contact {
  background: var(--pale);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  padding: 18px;
  margin-top: 22px;
  border-radius: 5px;
  font-size: 14px;
}

.detail-contact > svg {
  color: var(--primary);
}

.detail-contact > a {
  font-weight: 700;
  color: var(--primary);
}

/* Article Detail Modal */
.article-dialog {
  width: 760px;
  max-width: calc(100vw - 32px);
  max-height: 88vh;
  padding: 40px;
  display: block;
}

.article-title {
  font-size: 34px;
  line-height: 1.18;
  margin-top: 10px;
  margin-bottom: 12px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.article-meta-desc {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 20px;
}

.article-body {
  margin-top: 26px;
}

.article-body > p {
  font-size: 16px;
  line-height: 1.85;
  margin-bottom: 18px;
}

.article-body aside {
  border-left: 3px solid var(--green);
  background: var(--pale);
  padding: 23px;
  margin: 25px 0;
  border-radius: 0 6px 6px 0;
}

.article-body aside h3 {
  font-size: 21px;
  margin-bottom: 13px;
}

.article-body aside p {
  font-size: 16px;
  line-height: 1.8;
}

.article-body h3 {
  font-size: 21px;
  margin-bottom: 13px;
  margin-top: 25px;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */

@media (min-width: 1500px) {
  .hero {
    padding-top: 60px;
  }
  .hero-photo {
    min-height: 500px;
  }
}

@media (max-width: 1100px) {
  .wrap {
    width: calc(100% - 48px);
  }
  .nav nav {
    gap: 16px;
  }
  .nav > .btn,
  .header-actions > .btn {
    display: none;
  }
  .hero {
    gap: 25px;
  }
  .hero h1 {
    font-size: 46px;
  }
  .hero-photo {
    min-height: 450px;
  }
  .hero-bottom {
    flex-wrap: wrap;
  }
  .trust .trust-text {
    font-size: 16px;
  }
  .trust > div {
    padding-left: 20px;
  }
  .solutions {
    gap: 14px;
  }
  .solution {
    padding: 23px;
  }
  .product-grid {
    gap: 14px;
  }
  .product-image {
    height: 205px;
  }
  .product-info {
    padding: 16px;
  }
  .factory-section {
    gap: 35px;
  }
  .catalog-tools {
    flex-direction: column;
    align-items: stretch;
  }
  .search-box {
    max-width: none;
  }
  .news-grid {
    gap: 25px;
  }
  .news-row h3 {
    font-size: 21px;
  }
}
@media (max-width: 992px) {
  .nav nav {
    display: none;
  }
  .mobile-menu {
    display: inline-flex;
  }
  .nav > .btn,
  .header-actions > .btn {
    display: none;
  }
  .header-actions {
    gap: 10px;
    align-items: center;
  }
  .nav nav.mobile-open {
    display: flex !important;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 16px 20px 24px;
    background: #ffffff;
    border-bottom: 3px solid var(--primary);
    gap: 8px;
    box-shadow: 0 14px 30px rgba(0, 40, 15, 0.12);
    z-index: 999;
    max-height: calc(100vh - 75px);
    overflow-y: auto;
    animation: mobileMenuSlideDown 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .nav nav.mobile-open a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 18px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--foreground);
    text-decoration: none;
    background: #f8faf8;
    border: 1px solid #edf2ee;
    transition: all 0.2s ease;
  }
  .nav nav.mobile-open a:hover,
  .nav nav.mobile-open a.active {
    background: var(--pale);
    color: var(--primary);
    border-color: #86efac;
    font-weight: 700;
  }
  .mobile-nav-footer {
    display: block;
    margin-top: 8px;
    padding-top: 14px;
    border-top: 1px dashed var(--line);
  }
  .mobile-nav-hotline {
    display: flex !important;
    align-items: center;
    justify-content: center !important;
    gap: 10px;
    padding: 13px 20px !important;
    background: var(--primary) !important;
    color: #ffffff !important;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700 !important;
    text-decoration: none;
    border: none !important;
    box-shadow: 0 4px 12px rgba(0, 134, 67, 0.22);
  }
  .mobile-nav-hotline:hover {
    background: #007038 !important;
    color: #ffffff !important;
  }
}

@keyframes mobileMenuSlideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 760px) {
  .wrap {
    width: calc(100% - 32px);
  }
  .utility .wrap > span {
    font-size: 12px;
    letter-spacing: 0;
  }
  .utility a {
    display: none;
  }
  .nav {
    min-height: 68px;
    gap: 10px;
  }
  .logo {
    width: 130px;
    height: 42px;
  }
  .header-actions {
    gap: 8px;
  }
  .header-cart-btn {
    width: 38px;
    height: 38px;
  }
  .mobile-menu {
    width: 38px;
    height: 38px;
  }
  .mobile-menu .icon-menu,
  .mobile-menu .icon-close {
    width: 20px;
    height: 20px;
  }
  .hero {
    grid-template-columns: 1fr;
    padding-top: 25px;
    gap: 25px;
  }
  .hero-copy {
    padding: 10px 0 0;
  }
  .hero h1 {
    font-size: 43px;
    line-height: 1.12;
  }
  .eyebrow {
    font-size: 12px;
    margin-bottom: 18px;
    letter-spacing: 0.07em;
  }
  .hero-copy > p {
    font-size: 16px;
  }
  .actions {
    gap: 17px;
    flex-wrap: wrap;
    margin-top: 23px;
  }
  .btn {
    padding: 13px 18px;
    font-size: 14px;
  }
  .hero-bottom {
    margin-top: 25px;
    font-size: 12px;
    gap: 10px;
  }
  .hero-photo {
    min-height: 330px;
    height: 330px;
  }
  .photo-caption {
    left: 23px;
    right: 23px;
    bottom: 23px;
  }
  .photo-caption strong {
    font-size: 27px;
  }
  .trust {
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    padding: 22px 0;
  }
  .trust > div {
    padding: 0;
    border: 0;
  }
  .trust strong {
    font-size: 29px;
  }
  .trust .trust-text {
    font-size: 15px;
  }
  .trust p {
    font-size: 12px;
  }
  .trust > a {
    justify-content: flex-start;
    font-size: 14px;
  }
  .trust > div > svg {
    width: 18px;
    height: 18px;
  }
  .section {
    padding: 50px 0;
  }
  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }
  .section-head > p br {
    display: none;
  }
  .solutions {
    grid-template-columns: 1fr;
  }
  .solution > div {
    margin-bottom: 18px;
  }
  .solution p {
    margin-bottom: 16px;
  }
  .product-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .product-image {
    height: 190px;
    padding: 15px;
  }
  .product-info {
    padding: 13px;
  }
  .product-info h3 {
    font-size: 16px;
    line-height: 1.25;
  }
  .product-info > span {
    font-size: 12px;
  }
  .product-info p {
    font-size: 14px;
    margin-top: 16px;
  }
  .catalog-tools {
    gap: 15px;
  }
  .filter-pill {
    font-size: 14px;
    padding: 8px 12px;
  }
  .catalog-note {
    flex-direction: column;
    align-items: flex-start;
    font-size: 12px;
  }
  .factory-section {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .factory-section > img {
    height: 260px;
  }
  .news-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .news-feature > img {
    height: 220px;
  }
  .news-feature-copy {
    padding: 20px;
  }
  .news-feature h3 {
    font-size: 24px;
  }
  .news-row {
    padding: 21px 0;
  }
  .news-row h3 {
    font-size: 21px;
  }
  .news-row .article-meta {
    flex-wrap: wrap;
    gap: 3px 10px;
  }
  .news-edition {
    flex-direction: row;
    align-items: center;
    gap: 13px;
  }
  .news-edition strong {
    font-size: 16px;
  }
  .news-disclosure p {
    font-size: 12px;
  }
  .contact-section {
    padding: 45px 0;
  }
  .contact-mail {
    margin: 20px 0 0;
    display: flex;
    font-size: 14px;
  }
  .footer {
    flex-wrap: wrap;
    gap: 17px;
  }
  .footer > img {
    width: 140px;
  }
  .footer > span {
    width: 100%;
  }
  .desktop {
    display: none;
  }
  .detail-dialog {
    padding: 25px 20px;
  }
  .detail-intro {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .detail-photo {
    height: 220px;
  }
  .detail-title {
    font-size: 28px;
  }
  .technical-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .article-dialog {
    padding: 35px 22px;
  }
  .article-title {
    font-size: 27px;
  }
  .article-body aside {
    padding: 18px;
  }
}

@media (max-width: 360px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 36px;
  }
  .trust {
    grid-template-columns: 1fr;
  }
  .utility .wrap > span {
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* ==========================================================================
   SUBPAGE EXTENSIONS: BREADCRUMBS, HERO, CATALOG, DETAILS, FACTORY, NEWS, ABOUT, CONTACT
   ========================================================================== */

/* Active nav item */
.nav nav a.active {
  color: var(--primary);
  position: relative;
}
.nav nav a.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: var(--green);
}

/* Breadcrumbs */
.breadcrumbs {
  padding: 16px 0;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.breadcrumbs a {
  color: var(--foreground);
  transition: color 0.2s;
}

.breadcrumbs a:hover {
  color: var(--primary);
}

.breadcrumbs span.sep {
  color: #a2b0a5;
}

.breadcrumbs span.current {
  color: var(--muted);
}

/* Page Hero Banner */
.page-hero {
  background: var(--pale);
  padding: 45px 0 40px;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-size: clamp(30px, 3.2vw, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--forest);
}

.page-hero p {
  font-size: 16px;
  margin-top: 12px;
  max-width: 650px;
  line-height: 1.7;
}

/* ==========================================================================
   CATALOG PAGE (san-pham.html)
   ========================================================================== */

.catalog-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 35px;
  align-items: start;
  margin-top: 35px;
}

.filter-sidebar {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  position: sticky;
  top: 105px;
}

.filter-group {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.filter-group:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.filter-group-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--forest);
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.filter-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filter-item {
  font-size: 14px;
  color: var(--foreground);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 5px;
  transition: all 0.15s;
  background: transparent;
  border: 0;
  width: 100%;
  text-align: left;
}

.filter-item:hover {
  background: var(--pale);
}

.filter-item.active {
  background: var(--forest);
  color: #ffffff;
  font-weight: 600;
}

.filter-item.active span {
  color: rgba(255, 255, 255, 0.7);
}

.filter-item span {
  font-size: 12px;
  color: var(--muted);
}

.catalog-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.sort-select {
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 14px;
  background: #ffffff;
  color: var(--foreground);
  cursor: pointer;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 45px;
}

.page-btn {
  min-width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: #ffffff;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.2s;
  color: var(--foreground);
}

.page-btn:hover {
  background: var(--pale);
  border-color: #a0b898;
}

.page-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

/* ==========================================================================
   PRODUCT DETAIL PAGE (san-pham-chi-tiet.html)
   ========================================================================== */

.product-detail-hero {
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 45px;
  align-items: start;
  padding: 40px 0 50px;
}

.product-gallery-box {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 35px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.product-gallery-box img {
  max-height: 360px;
  max-width: 100%;
  object-fit: contain;
}

.product-badge-group {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.badge.primary {
  background: #e3f2e2;
  color: var(--primary);
}

.badge.blue {
  background: #e0f2fe;
  color: #0369a1;
}

.product-title-lg {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 14px;
  letter-spacing: -0.03em;
}

.product-short-desc {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 22px;
}

.product-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 20px;
  background: var(--pale);
  border-radius: 6px;
  margin-bottom: 28px;
  font-size: 14px;
}

.product-spec-item strong {
  display: block;
  color: var(--forest);
  font-size: 12px;
  margin-bottom: 3px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-action-row {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.detail-tabs-nav {
  display: flex;
  border-bottom: 2px solid var(--line);
  margin-top: 30px;
  gap: 32px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.detail-tabs-nav::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.tab-btn {
  padding: 14px 4px;
  font-size: 16px;
  font-weight: 600;
  color: var(--muted);
  border: 0;
  background: transparent;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: all 0.2s;
  outline: none;
}

.tab-btn:focus,
.tab-btn:focus-visible {
  outline: none;
  box-shadow: none;
}

.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tab-pane {
  padding: 30px 0 50px;
  display: none;
}

.tab-pane.active {
  display: block;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

.spec-table th,
.spec-table td {
  padding: 14px 18px;
  border: 1px solid var(--line);
  font-size: 15px;
  text-align: left;
}

.spec-table th {
  background: var(--pale);
  color: var(--forest);
  width: 240px;
  font-weight: 600;
}

/* ==========================================================================
   FACTORY & PREMIX CAPABILITY PAGE (nha-may-san-xuat-premix.html)
   ========================================================================== */

.factory-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
  margin-bottom: 60px;
}

.metric-card {
  padding: 32px 24px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.metric-card strong {
  font-size: 42px;
  color: var(--primary);
  font-weight: 700;
  display: block;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.metric-card p {
  font-size: 14px;
  margin-top: 8px;
  font-weight: 500;
}

.process-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px;
  margin-top: 35px;
}

.process-card {
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}

.process-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(25, 60, 37, 0.08);
}

.step-badge {
  font-size: 26px;
  font-weight: 700;
  color: var(--green);
  display: block;
  margin-bottom: 12px;
}

.process-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--forest);
}

.process-card p {
  font-size: 14px;
  line-height: 1.6;
}

.split-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  padding: 60px 0;
}

.split-feature img {
  border-radius: 8px;
  width: 100%;
  height: 380px;
  object-fit: cover;
}

.split-feature-reverse {
  grid-template-columns: 1fr 1fr;
}

/* ==========================================================================
   NEWS & JOURNAL PAGE (tin-tuc.html, tin-tuc-chi-tiet.html)
   ========================================================================== */

.news-feed-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 45px;
  align-items: start;
  margin-top: 40px;
}

.news-archive-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  margin-top: 25px;
}

.news-card-box {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

.news-card-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.news-card-img {
  height: 200px;
  width: 100%;
  object-fit: cover;
}

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

.news-card-body h3 {
  font-size: 20px;
  line-height: 1.35;
  margin-top: 10px;
  margin-bottom: 12px;
  letter-spacing: -0.025em;
  transition: color 0.2s;
}

.news-card-box:hover h3 {
  color: var(--blue);
}

.news-card-body p {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 18px;
}

.news-card-body .text-link {
  margin-top: auto;
}

/* Sidebar Widgets */
.sidebar-widget {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 25px;
}

.widget-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--forest);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--pale);
}

.opinion-widget-box {
  background: var(--pale);
  border-left: 3px solid var(--green);
  padding: 16px;
  border-radius: 0 6px 6px 0;
  margin-bottom: 14px;
}

.opinion-widget-box strong {
  font-size: 14px;
  color: var(--forest);
  display: block;
  margin-bottom: 6px;
}

.opinion-widget-box p {
  font-size: 13px;
  line-height: 1.6;
}

/* Article Detail */
.article-full-container {
  background: #ffffff;
}

.article-full-header {
  margin-bottom: 25px;
}

.article-full-title {
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.2;
  font-weight: 700;
  margin-top: 12px;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.article-full-img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: 8px;
  margin: 25px 0 35px;
}

.article-lead {
  font-size: 19px;
  line-height: 1.7;
  color: var(--foreground);
  font-weight: 500;
  margin-bottom: 25px;
}

.article-content p {
  font-size: 16px;
  line-height: 1.85;
  margin-bottom: 20px;
}

.article-content h3 {
  font-size: 24px;
  margin: 35px 0 16px;
  color: var(--forest);
}

.opinion-quote-box {
  background: #f0f7ef;
  border-left: 4px solid var(--primary);
  padding: 30px;
  border-radius: 0 8px 8px 0;
  margin: 35px 0;
}

.opinion-quote-box h4 {
  font-size: 20px;
  color: var(--forest);
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.opinion-quote-box p {
  font-size: 16px;
  line-height: 1.8;
  margin: 0;
  color: #243b2b;
}

.source-citation {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 22px;
  margin-top: 40px;
  font-size: 13px;
  color: #64748b;
}

.source-citation strong {
  color: #1e293b;
}

/* ==========================================================================
   ABOUT PAGE (gioi-thieu.html)
   ========================================================================== */

.about-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  padding: 40px 0;
}

.about-intro-img {
  border-radius: 8px;
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.values-grid-box {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 35px;
}

.value-item-card {
  padding: 32px 24px;
  background: var(--pale);
  border-radius: 8px;
  text-align: center;
  border-bottom: 3px solid var(--green);
}

.value-item-card strong {
  font-size: 20px;
  margin-top: 14px;
  margin-bottom: 10px;
  color: var(--forest);
  display: block;
}

.value-item-card p {
  font-size: 14px;
  line-height: 1.6;
}

.timeline-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
  margin-top: 35px;
}

.timeline-box {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 25px;
}

.timeline-year-tag {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  display: block;
}

/* ==========================================================================
   CONTACT PAGE (lien-he.html)
   ========================================================================== */

.contact-layout-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 45px;
  padding: 50px 0;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-info-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--pale);
  color: var(--primary);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.contact-info-card h4 {
  margin: 0 0 6px;
  font-size: 16px;
  color: var(--forest);
}

.contact-info-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

.contact-form-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 35px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.form-grid-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-field {
  margin-bottom: 16px;
}

.form-field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--forest);
  margin-bottom: 8px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 15px;
  font-family: inherit;
  color: var(--foreground);
  background: #ffffff;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: 2px solid var(--blue);
  border-color: var(--blue);
}

.map-frame-box {
  width: 100%;
  height: 400px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  margin-top: 40px;
}

.map-frame-box iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ==========================================================================
   RESPONSIVE OVERRIDES FOR SUBPAGES
   ========================================================================== */

@media (max-width: 1100px) {
  .catalog-layout {
    grid-template-columns: 1fr;
  }
  .filter-sidebar {
    position: static;
  }
  .product-detail-hero {
    grid-template-columns: 380px 1fr;
    gap: 30px;
  }
  .news-feed-layout {
    grid-template-columns: 1fr;
  }
  .values-grid-box {
    grid-template-columns: 1fr 1fr;
  }
  .factory-metrics-grid {
    grid-template-columns: 1fr 1fr;
  }
  .contact-layout-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .page-hero {
    padding: 30px 0;
  }
  .product-detail-hero {
    grid-template-columns: 1fr;
  }
  .product-gallery-box {
    min-height: 280px;
    padding: 20px;
  }
  .product-specs-grid {
    grid-template-columns: 1fr;
  }
  .split-feature {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 35px 0;
  }
  .split-feature img {
    height: 250px;
  }
  .about-intro-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .about-intro-img {
    height: 260px;
  }
  .news-archive-grid {
    grid-template-columns: 1fr;
  }
  .form-grid-row {
    grid-template-columns: 1fr;
  }
  .contact-form-card {
    padding: 24px 20px;
  }
  .factory-metrics-grid {
    grid-template-columns: 1fr;
  }
  .values-grid-box {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   ENHANCED 4-COLUMN FOOTER STYLES
   ========================================================================== */

.site-footer {
  background: var(--forest);
  color: #ffffff;
  padding: 70px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.1fr;
  gap: 40px;
  align-items: start;
}

.footer-logo-badge {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  padding: 8px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  transition: opacity 0.2s, transform 0.2s;
}

.footer-logo-badge:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

.footer-logo {
  width: 150px;
  height: auto;
  display: block;
  /* Giữ nguyên vẹn 100% màu sắc nhận diện gốc (xanh lá, xanh dương, chữ đen), không dùng filter */
}

.footer-desc {
  font-size: 14px;
  line-height: 1.7;
  color: #cbd8cf;
  margin-bottom: 20px;
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 13px;
}

.contact-line {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #e2eee5;
  line-height: 1.5;
}

.contact-line svg {
  color: var(--green);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-line a {
  color: #e2eee5;
  transition: color 0.2s;
}

.contact-line a:hover {
  color: var(--green);
}

.footer-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 20px;
  position: relative;
  padding-bottom: 10px;
  letter-spacing: 0.02em;
}

.footer-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 32px;
  height: 2px;
  background: var(--green);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-size: 14px;
}

.footer-links a {
  color: #cbd8cf;
  transition: all 0.2s;
  display: inline-block;
}

.footer-links a:hover {
  color: #ffffff;
  transform: translateX(4px);
}

.footer-hotline-card {
  background: rgba(255, 255, 255, 0.06);
  padding: 14px 18px;
  border-radius: 6px;
  border-left: 3px solid var(--green);
  margin-bottom: 20px;
}

.footer-hotline-card span {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #a9dc8d;
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
}

.footer-hotline-card a {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  transition: color 0.2s;
}

.footer-hotline-card a:hover {
  color: var(--green);
}

.footer-newsletter {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.footer-newsletter input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 13px;
  outline: none;
}

.footer-newsletter input:focus {
  border-color: var(--green);
  background: rgba(255, 255, 255, 0.12);
}

.footer-newsletter input::placeholder {
  color: #a2b4a5;
}

.footer-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 25px;
  margin-top: 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #8fa093;
  flex-wrap: wrap;
  gap: 15px;
}

.footer-bottom-bar p {
  color: #8fa093;
  margin: 0;
}

.footer-bottom-links {
  display: flex;
  gap: 12px;
  align-items: center;
}

.footer-bottom-links a {
  color: #8fa093;
  transition: color 0.2s;
}

.footer-bottom-links a:hover {
  color: #ffffff;
}

@media (max-width: 1100px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 35px;
  }
}

@media (max-width: 760px) {
  .site-footer {
    padding: 50px 0 25px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .footer-bottom-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* ==========================================================================
   FLOATING CHATBOX POPUP WIDGET
   ========================================================================== */

.chatbox-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
}

.chatbox-toggle-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  border: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 25px rgba(24, 62, 40, 0.35);
  transition: transform 0.2s, background 0.2s;
  position: relative;
  animation: chatPulse 2.5s infinite;
}

.chatbox-toggle-btn:hover {
  background: var(--forest);
  transform: scale(1.05);
}

@keyframes chatPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(40, 107, 49, 0.6);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(40, 107, 49, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(40, 107, 49, 0);
  }
}

.chatbox-badge-dot {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green);
  border: 2px solid #ffffff;
}

.chatbox-window {
  width: 360px;
  max-width: calc(100vw - 32px);
  height: 480px;
  max-height: calc(100vh - 110px);
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: absolute;
  bottom: 70px;
  right: 0;
  transform: scale(0.9) translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid var(--line);
}

.chatbox-widget.open .chatbox-window {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.chatbox-widget.open .chat-icon-open {
  display: none !important;
}

.chatbox-widget.open .chat-icon-close {
  display: block !important;
}

.chatbox-header {
  background: var(--forest);
  color: #ffffff;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chatbox-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chatbox-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  display: grid;
  place-items: center;
  padding: 4px;
  flex-shrink: 0;
}

.chatbox-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.chatbox-header-info strong {
  font-size: 14px;
  display: block;
  line-height: 1.3;
}

.chatbox-status {
  font-size: 11px;
  color: #a9dc8d;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  display: inline-block;
  animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
  0% { opacity: 0.4; }
  50% { opacity: 1; }
  100% { opacity: 0.4; }
}

.chatbox-close-header-btn {
  background: transparent;
  border: 0;
  color: #ffffff;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
  border-radius: 4px;
}

.chatbox-close-header-btn:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.15);
}

.chatbox-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #f8faf8;
}

.chat-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  line-height: 1.5;
  word-break: break-word;
}

.chat-msg p {
  margin: 0;
  color: inherit;
}

.chat-msg.bot {
  background: #ffffff;
  color: var(--foreground);
  border: 1px solid var(--line);
  border-top-left-radius: 2px;
  align-self: flex-start;
}

.chat-msg.user {
  background: var(--primary);
  color: #ffffff;
  align-self: flex-end;
  border-top-right-radius: 2px;
}

.msg-time {
  font-size: 10px;
  color: #8fa093;
  margin-top: 4px;
  display: block;
}

.chat-quick-chips {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}

.chat-chip {
  font-size: 12.5px;
  padding: 8px 12px;
  background: #ffffff;
  border: 1px solid #d4dfd1;
  border-radius: 20px;
  text-align: left;
  color: var(--forest);
  cursor: pointer;
  transition: all 0.15s;
  font-weight: 500;
}

.chat-chip:hover {
  background: var(--pale);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateX(2px);
}

.chatbox-quick-actions {
  display: flex;
  border-top: 1px solid var(--line);
  padding: 8px 12px;
  gap: 8px;
  background: #ffffff;
}

.quick-action-link {
  flex: 1;
  text-align: center;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 4px;
  background: var(--pale);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.2s;
}

.quick-action-link:hover {
  background: #e3ede1;
}

.quick-action-link.zalo {
  background: #0068ff;
  color: #ffffff;
}

.quick-action-link.zalo:hover {
  background: #0056d6;
}

.chatbox-input-row {
  display: flex;
  border-top: 1px solid var(--line);
  background: #ffffff;
  padding: 8px 12px;
  gap: 8px;
}

.chatbox-input-row input {
  flex: 1;
  border: 0;
  outline: none;
  font-size: 13.5px;
  padding: 6px 4px;
  color: var(--foreground);
}

.chatbox-input-row button {
  background: var(--primary);
  color: #ffffff;
  border: 0;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s;
}

.chatbox-input-row button:hover {
  background: var(--forest);
}

@media (max-width: 760px) {
  .chatbox-widget {
    bottom: 16px;
    right: 16px;
  }
  .chatbox-toggle-btn {
    width: 52px;
    height: 52px;
  }
  .chatbox-window {
    width: calc(100vw - 32px);
    right: 0;
    bottom: 64px;
    height: 420px;
  }
}

/* ==========================================================================
   SHOPPING CART & B2B ORDER DRAWER (PREMIUM DESIGN)
   ========================================================================== */

/* Header Actions Cluster - Groups Cart & Contact button seamlessly */
.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Header Cart Pill Button */
.header-cart-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px 0 12px;
  border-radius: 999px;
  background: #f0fdf4;
  color: var(--primary);
  border: 1.5px solid #86efac;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  font-family: inherit;
  box-shadow: 0 1px 3px rgba(0, 134, 67, 0.08);
  outline: none;
  user-select: none;
  box-sizing: border-box;
}
.header-cart-btn:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(0, 134, 67, 0.25);
  transform: translateY(-1px);
}
.header-cart-btn:active {
  transform: translateY(0);
}
.cart-btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
  transition: color 0.2s;
}
.cart-btn-icon svg {
  display: block;
}
.header-cart-btn:hover .cart-btn-icon {
  color: #ffffff;
}
.cart-btn-text {
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  color: #008643;
  letter-spacing: 0.15px;
  white-space: nowrap;
  margin: 0;
  padding: 0;
  transition: color 0.2s;
}
.header-cart-btn:hover .cart-btn-text {
  color: #ffffff;
}
.header-cart-btn .cart-badge {
  background: #dc2626;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  min-width: 19px;
  height: 19px;
  line-height: 19px;
  text-align: center;
  border-radius: 999px;
  padding: 0 4px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(220, 38, 38, 0.35);
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.2s, color 0.2s;
}
.header-cart-btn:hover .cart-badge {
  background: #ffffff;
  color: #dc2626;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

@media (max-width: 992px) {
  .cart-btn-text {
    display: none;
  }
  .header-cart-btn {
    padding: 0;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    justify-content: center;
    position: relative;
  }
  .header-cart-btn .cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 17px;
    height: 17px;
    line-height: 17px;
    font-size: 10px;
    padding: 0 3px;
    border: 1.5px solid #ffffff;
  }
  .header-actions {
    gap: 8px;
  }
}

/* Cart Drawer Backdrop */
.cart-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.cart-drawer-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

/* Cart Drawer Sidebar */
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 480px;
  max-width: 100vw;
  background: #ffffff;
  z-index: 10001;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.28);
  display: flex;
  flex-direction: column;
}
.cart-drawer.active {
  transform: translateX(0);
}

.cart-drawer-header {
  padding: 18px 24px;
  background: linear-gradient(135deg, #0a2417 0%, #133c26 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #008643;
}
.cart-drawer-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cart-header-icon-badge {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.cart-drawer-title {
  font-size: 16.5px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 2px 0;
  letter-spacing: 0.3px;
}
.cart-drawer-subtitle {
  font-size: 11.5px;
  color: #86efac;
  margin: 0;
}
.cart-drawer-close {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 20px;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: background 0.2s;
}
.cart-drawer-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* B2B Assurance strip under header */
.cart-b2b-assurances {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 18px;
  background: #f0fdf4;
  border-bottom: 1px solid #dcfce7;
  font-size: 11.5px;
  color: #166534;
}
.cart-assurance-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 20px;
  background: #f8fafc;
}

.cart-empty-box {
  text-align: center;
  padding: 50px 20px;
  color: #64748b;
}
.cart-empty-icon {
  font-size: 52px;
  margin-bottom: 14px;
}

/* Item Card */
.cart-item-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  transition: all 0.2s;
}
.cart-item-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}
.cart-item-top {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 12px;
}
.cart-item-img {
  width: 68px;
  height: 68px;
  object-fit: contain;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 4px;
  flex-shrink: 0;
}
.cart-item-content {
  flex: 1;
  min-width: 0;
}
.cart-item-category {
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}
.cart-item-title {
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 6px 0;
  line-height: 1.35;
}
.cart-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.cart-meta-pill {
  font-size: 11.5px;
  padding: 2px 8px;
  border-radius: 4px;
  background: #f1f5f9;
  color: #475569;
  font-weight: 500;
}
.cart-meta-pill.green {
  background: #dcfce7;
  color: #166534;
  font-weight: 600;
}
.cart-item-remove-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}
.cart-item-remove-btn:hover {
  color: #ef4444;
  background: #fee2e2;
}

/* Item Bottom: PERFECTLY CENTERED STEPPER */
.cart-item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
}
.cart-stepper-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.cart-stepper {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 999px;
  overflow: hidden;
  height: 34px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.cart-stepper-btn {
  width: 34px;
  height: 34px;
  background: #f8fafc;
  border: none;
  cursor: pointer;
  font-size: 17px;
  font-weight: 700;
  color: #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  user-select: none;
  line-height: 1;
}
.cart-stepper-btn:hover {
  background: var(--primary);
  color: #ffffff;
}
.cart-stepper-btn:active {
  background: #005f2f;
}
.cart-stepper-input {
  width: 48px;
  height: 34px;
  line-height: 34px;
  border: none;
  background: transparent;
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  text-align: center !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block;
  outline: none;
  border-left: 1px solid #f1f5f9;
  border-right: 1px solid #f1f5f9;
  -moz-appearance: textfield;
  -webkit-appearance: none;
}
.cart-stepper-input::-webkit-outer-spin-button,
.cart-stepper-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.cart-stepper-unit {
  font-size: 12.5px;
  font-weight: 600;
  color: #64748b;
}

/* Order Checkout Area in Drawer */
.cart-drawer-footer {
  padding: 18px 22px 22px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.05);
}
.cart-summary-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 14px;
}
.cart-summary-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
  margin-bottom: 4px;
}
.cart-summary-line:last-child {
  margin-bottom: 0;
}

.cart-checkout-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cart-form-heading {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}

/* Customer Type Pills */
.cart-type-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 4px;
}
.cart-type-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 4px;
  font-size: 11.5px;
  font-weight: 600;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
  user-select: none;
}
.cart-type-pill input {
  display: none;
}
.cart-type-pill.active,
.cart-type-pill:has(input:checked) {
  background: #dcfce7;
  color: #166534;
  border-color: #86efac;
  font-weight: 700;
}

/* Icon Inputs */
.cart-input-group {
  position: relative;
}
.cart-input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: #94a3b8;
  pointer-events: none;
}
.cart-input {
  width: 100%;
  padding: 9px 12px 9px 36px;
  font-size: 13px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  outline: none;
  transition: all 0.2s;
  background: #ffffff;
  color: #1e293b;
  box-sizing: border-box;
}
.cart-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 134, 67, 0.15);
}

.btn-submit-cart-order {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, #008643 0%, #005f2f 100%);
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 134, 67, 0.3);
}
.btn-submit-cart-order:hover {
  background: linear-gradient(135deg, #00994d 0%, #007339 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 134, 67, 0.4);
}
.btn-submit-cart-order:active {
  transform: translateY(0);
}
.cart-security-note {
  font-size: 11px;
  color: #64748b;
  text-align: center;
  margin-top: 4px;
}

/* Product Detail Quantity Stepper */
.detail-qty-control {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid #cbd5e1;
  border-radius: 999px;
  overflow: hidden;
  background: #ffffff;
  margin-right: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.detail-qty-btn {
  width: 40px;
  height: 44px;
  border: none;
  background: #f8fafc;
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  color: var(--foreground);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.detail-qty-btn:hover {
  background: var(--primary);
  color: #ffffff;
}
.detail-qty-input {
  width: 52px;
  height: 44px;
  line-height: 44px;
  border: none;
  text-align: center !important;
  font-size: 16px;
  font-weight: 800;
  color: var(--foreground);
  background: transparent;
  padding: 0 !important;
  margin: 0 !important;
  display: block;
  border-left: 1px solid #f1f5f9;
  border-right: 1px solid #f1f5f9;
  -moz-appearance: textfield;
  -webkit-appearance: none;
}
.detail-qty-input::-webkit-outer-spin-button,
.detail-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}





/* ANIMAL BADGES & TECHNICAL SPECS TABS */
.animal-badges-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.animal-chip { display: inline-flex; align-items: center; gap: 6px; background: #f0f7f2; color: #1a4d2e; border: 1px solid #cce3d2; padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 500; line-height: 1.2; }
.animal-chip svg { color: #008643; flex-shrink: 0; }
.specs-block h4 { font-size: 15px; font-weight: 600; }
.spec-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.spec-table th, .spec-table td { border: 1px solid #e2e8f0; padding: 10px 14px; font-size: 13px; line-height: 1.6; }
.spec-table th { background: #f8fafc; color: #1e293b; font-weight: 600; }
