/* THEME */
:root {
  --blue: #1266b2;
  --green: #37a166;
  --ink: #2f2f2f;
  --muted: #667085;
  --bg: #f6f8fb;
  --card: #ffffff;
  --ring: rgba(18, 102, 178, 0.12);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, Segoe UI, Roboto, Helvetica, Arial,
    "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}
img {
  max-width: 100%;
  display: block;
}
.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}
.section {
  padding: 72px 0;
}
.section-title {
  font-size: clamp(26px, 3.4vw, 36px);
  margin: 0 0 8px;
  color: var(--blue);
}
.section-sub {
  color: var(--muted);
  margin: 0 0 28px;
}

/* NAV */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, var(--blue), var(--green));
  color: #fff;
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo img {
  height: 56px;
  border-radius: 50%;
}
.logo h1 {
  font-size: 18px;
  line-height: 1.1;
  margin: 0;
  letter-spacing: 0.3px;
}
.logo p {
  font-size: 12px;
  opacity: 0.9;
  margin: 2px 0 0;
}
nav ul {
  list-style: none;
  display: flex;
  gap: 22px;
  margin: 0 0 0 auto;
  padding: 0;
}
nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  opacity: 0.95;
}
nav a:hover {
  opacity: 0.8;
}
.btn-login {
  background: #fff;
  color: var(--blue);
  padding: 8px 14px;
  border-radius: 8px;
}
.nav-toggle {
  display: none;
  margin-left: auto;
  background: transparent;
  border: 0;
  width: 40px;
  height: 36px;
}
.nav-toggle span {
  display: block;
  height: 3px;
  background: #fff;
  margin: 6px 0;
  border-radius: 2px;
}

/* ===== Language Switch (theme match) ===== */
.lang-dropdown {
  position: relative;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 10px;
  transition: 0.2s;
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 6px;
}

.lang-btn .chev {
  transition: transform 0.2s ease;
}

.lang-btn[aria-expanded="true"] .chev {
  transform: rotate(180deg);
}

.lang-menu {
  display: none;
  position: absolute;
  top: 110%;
  right: 0;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
  list-style: none;
  padding: 6px 0;
  min-width: 110px;
  z-index: 20;
}

.lang-menu.show {
  display: block;
  animation: fadeIn 0.15s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.lang-menu a {
  display: block;
  padding: 8px 12px;
  color: #333;
  text-decoration: none;
  font-weight: 500;
}

.lang-menu a:hover {
  background: linear-gradient(135deg, #0b6ee8, #1ca56b);
  color: #fff;
}

/* HERO */
.hero {
  position: relative;
  height: 72vh;
  min-height: 480px;
  background: url("https://images.unsplash.com/photo-1556761175-4b46a572b786")
    center/cover no-repeat;
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
}
.hero .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.55));
}
.hero-content {
  position: relative;
  padding: 0 16px;
}
.hero h2 {
  font-size: clamp(30px, 5.5vw, 54px);
  margin: 0 0 8px;
}
.hero p {
  font-size: clamp(16px, 2.6vw, 20px);
  margin: 0 0 18px;
}
.btn-primary,
.btn-secondary {
  display: inline-block;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 700;
  text-decoration: none;
}
.btn-primary {
  color: #fff;
  box-shadow: 0 6px 20px var(--ring);
}
.btn-secondary {
  color: #fff;
}
/* GENERIC GRID & CARD */
.grid {
  display: grid;
  gap: 28px;
}
.card {
  background: var(--card);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 10px 20px var(--ring);
  transition: 0.25s transform;
}
.card:hover {
  transform: translateY(-4px);
}
/* CATEGORIES */
.categories {
  background: #fff;
}
.cat-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.cat-card {
  display: block;
  background: var(--card);
  padding: 22px;
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  border: 1px solid #eef1f6;
  transition: 0.25s transform, 0.25s box-shadow;
  box-shadow: 0 8px 18px var(--ring);
}
.cat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 28px var(--ring);
}
.cat-ico {
  font-size: 28px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    rgba(18, 102, 178, 0.12),
    rgba(55, 161, 102, 0.12)
  );
  margin-bottom: 10px;
}
.cat-card h3 {
  margin: 6px 0 4px;
  font-size: 18px;
  color: var(--blue);
}
.cat-card p {
  margin: 0;
  color: var(--muted);
}
/* FEATURED */
.featured {
  background: linear-gradient(180deg, #f8fbff, #f4fff9);
}
.featured-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chip {
  background: #fff;
  border: 1px solid #e3e8f1;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
}
.chip.active {
  background: linear-gradient(90deg, var(--blue), var(--green));
  color: #fff;
  border-color: transparent;
}
.product-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.product-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 24px var(--ring);
  transition: transform 0.25s;
  border: 1px solid #eef1f6;
}
.product-card:hover {
  transform: translateY(-6px);
}
.product-card img {
  aspect-ratio: 4/3;
  object-fit: cover;
}
.p-body {
  padding: 16px 16px 18px;
}
.p-body h3 {
  margin: 0 0 6px;
  font-size: 18px;
  color: var(--ink);
}
.p-body p {
  margin: 0 0 10px;
  color: var(--muted);
}
.p-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.p-meta span {
  font-size: 12px;
  background: #f1f5f9;
  padding: 6px 10px;
  border-radius: 999px;
  color: #334155;
}

.cta-center {
  text-align: center;
  margin-top: 26px;
}
/* WHY + ABOUT + FOOTER (giữ nguyên tinh thần bản cũ) */
.why-vietnam {
  padding: 72px 0;
  background: #fff;
}
.why-vietnam h2 {
  text-align: center;
  color: var(--blue);
  margin-bottom: 20px;
}
.about {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 26px;
  padding: 72px 0;
}
.about-text,
.about-img {
  flex: 1 1 460px;
}
.about-text h2 {
  color: var(--green);
  margin-top: 0;
}
.why-agent {
  background: #fff;
}

/* ===== New Footer (match blue–green theme) ===== */
.site-footer {
  background: linear-gradient(90deg, var(--blue), var(--green));
  color: #fff;
  position: relative;
  padding-top: 0;
}

.footer-wave {
  display: block;
  width: 100%;
  height: 80px;
  color: #f5f7fb;
  margin-bottom: -1px;
}
.site-footer .container {
  padding: 24px 20px 10px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.2fr;
  gap: 28px;
  align-items: flex-start;
}
.footer-brand .footer-logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
  display: block;
  margin-bottom: 10px;
}
.footer-tagline {
  opacity: 0.9;
  margin: 0 0 12px;
}

.footer-col h4 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 2px 0 10px;
  opacity: 0.95;
}
.footer-links,
.footer-contact {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-links li,
.footer-contact li {
  margin: 8px 0;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
}
.footer-links a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-contact a {
  color: #fff;
  text-decoration: underline;
}
.footer-cta {
  display: inline-block;
  margin-top: 12px;
  background: #fff;
  color: #0b6ee8;
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}
.footer-cta:hover {
  filter: brightness(0.95);
}
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}
.sbtn {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.sbtn:hover {
  background: rgba(255, 255, 255, 0.28);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 22px;
  padding: 12px 0 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}
.footer-mini {
  list-style: none;
  display: flex;
  gap: 16px;
  margin: 0;
  padding: 0;
}
.footer-mini a {
  color: #fff;
  text-decoration: none;
  opacity: 0.95;
}
.footer-mini a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 980px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 620px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* RESPONSIVE NAV */
@media (max-width: 980px) {
  nav ul {
    position: fixed;
    inset: 56px 0 auto 0;
    background: linear-gradient(180deg, var(--blue), var(--green));
    padding: 18px 22px;
    display: none;
    flex-direction: column;
    gap: 16px;
  }
  nav ul.open {
    display: flex;
  }
  .nav-toggle {
    display: block;
  }
}
/* ---- Sourcing Capability ---- */
.cap-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 10px 0 18px;
}
.cap-search {
  flex: 1 1 340px;
  min-width: 240px;
  height: 42px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid #e3e8f1;
  background: #fff;
  outline: none;
  box-shadow: 0 4px 14px var(--ring);
}
.cap-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.cap-card {
  background: #fff;
  border: 1px solid #eef1f6;
  border-radius: 14px;
  padding: 18px 18px 20px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 10px 22px var(--ring);
  transition: transform 0.2s, box-shadow 0.2s;
}
.cap-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px var(--ring);
}
.cap-card h3 {
  margin: 0 0 6px;
  color: var(--blue);
  font-size: 18px;
}
.cap-card p {
  margin: 0;
  color: var(--muted);
}
.cap-note {
  font-size: 15px;
}
/* ---- Clients page ---- */
.client-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 8px 0 18px;
}
.client-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.client-card {
  background: #fff;
  border: 1px solid #eef1f6;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 24px var(--ring);
  transition: transform 0.2s, box-shadow 0.2s;
}
.client-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px var(--ring);
}
.logo-box {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f8fbff, #f4fff9);
  height: 150px;
}
.logo-box img {
  max-width: 70%;
  max-height: 60%;
  object-fit: contain;
  filter: contrast(110%);
}
.client-meta {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.client-name {
  font-weight: 700;
  font-size: 14px;
  color: #111;
  margin: 0;
}
.client-tags {
  font-size: 12px;
  color: #667085;
}
.pager {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  margin-top: 18px;
}
.pager-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #e3e8f1;
  background: #fff;
  cursor: pointer;
}
.pager-info {
  font-weight: 700;
  color: #334155;
}
/* Testimonials */
.testimonials {
  background: #fff;
}
.testi-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.testi-card {
  background: #fff;
  border: 1px solid #eef1f6;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 10px 24px var(--ring);
}
.testi-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.testi-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #f1f5f9;
  overflow: hidden;
}
.testi-logo img {
  max-width: 85%;
  max-height: 85%;
  object-fit: contain;
}
.stars {
  letter-spacing: 2px;
}
.star {
  color: #fbbf24;
} /* amber-400 */

/* ---- Contact page ---- */
.contact-layout {
  display: grid;
  gap: 32px;
  grid-template-columns: 380px 1fr;
  align-items: start;
}
.offices .office-card {
  background: #fff;
  border: 1px solid #eef1f6;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 8px 18px var(--ring);
}
.offices .map-wrap {
  margin-top: 10px;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 18px var(--ring);
}

.contact-card {
  background: #fff;
  border: 1px solid #eef1f6;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 10px 24px var(--ring);
}
.muted {
  color: #667085;
}
.small {
  font-size: 12px;
}

.form-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-field > span {
  font-weight: 600;
  font-size: 14px;
  color: #334155;
}
.form-field input,
.form-field select,
.form-field textarea {
  border: 1px solid #e3e8f1;
  border-radius: 10px;
  padding: 10px 12px;
  outline: none;
  background: #fff;
  box-shadow: 0 4px 12px var(--ring);
}
.form-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
  flex-wrap: wrap;
}
.alert {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #ecfeff;
  color: #075985;
  border: 1px solid #bae6fd;
}
.hp {
  position: absolute;
  left: -9999px;
}
.faq details {
  background: #fff;
  border: 1px solid #eef1f6;
  border-radius: 12px;
  padding: 12px 14px;
  margin: 10px 0;
  box-shadow: 0 8px 18px var(--ring);
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: #0f172a;
}

/* Floating WhatsApp */
.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 22px;
  text-decoration: none;
  background: linear-gradient(135deg, #25d366, #37a166);
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  z-index: 60;
}
/* Responsive */
@media (max-width: 980px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}
/* ---- Category / Industry detail ---- */
.category-layout {
  display: grid;
  gap: 36px;
  grid-template-columns: 420px 1fr;
  align-items: start;
}
.gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 10px 24px var(--ring);
}
.main-img img {
  width: 100%;
  border-radius: 16px;
  object-fit: contain;
  transition: opacity 0.3s;
}
.thumbs {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  overflow-x: auto;
  padding-bottom: 6px;
}
.thumb {
  border: none;
  background: #fff;
  cursor: pointer;
  border-radius: 10px;
  flex: 0 0 70px;
  box-shadow: 0 4px 12px var(--ring);
  transition: transform 0.2s, border 0.2s;
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
}
.thumb.active {
  outline: 2px solid var(--blue);
  transform: scale(1.05);
}

.category-text p {
  margin-bottom: 12px;
}

.related {
  background: #f9fafb;
}
@media (max-width: 980px) {
  .category-layout {
    grid-template-columns: 1fr;
  }
  .main-img img {
    max-height: 360px;
    object-fit: contain;
  }
}
/* ---- Wooden Toys catalog ---- */
.catalog-layout {
  display: grid;
  gap: 28px;
  grid-template-columns: 260px 1fr;
  align-items: start;
}
.catalog-sidebar {
  position: sticky;
  top: 84px;
}
.sub-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sub-list li {
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 8px;
  cursor: pointer;
  border: 1px solid #e3e8f1;
  background: #fff;
  box-shadow: 0 6px 16px var(--ring);
}
.sub-list li:hover,
.sub-list li.active {
  background: linear-gradient(90deg, var(--blue), var(--green));
  color: #fff;
  border-color: transparent;
}
.catalog-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.card.note {
  font-size: 14px;
  margin-top: 12px;
}

.product-tile {
  background: #fff;
  border: 1px solid #eef1f6;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 24px var(--ring);
  transition: transform 0.2s, box-shadow 0.2s;
}
.product-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px var(--ring);
}
.product-thumb {
  background: linear-gradient(135deg, #f8fbff, #f4fff9);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
}
.product-thumb img {
  max-width: 86%;
  max-height: 86%;
  object-fit: contain;
}
.product-info {
  padding: 12px 14px;
}
.product-name {
  margin: 0 0 6px;
  font-weight: 700;
  color: #111;
  font-size: 14px;
}
.product-sku {
  margin: 0;
  color: #667085;
  font-size: 12px;
}
/* Pills wrap helper */
.filters.wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pills .chip {
  text-decoration: none;
}
@media (max-width: 980px) {
  .catalog-layout {
    grid-template-columns: 1fr;
  }
  .catalog-sidebar {
    position: static;
  }
}
/* ---- PDP (product detail) ---- */
.pdp-layout {
  display: grid;
  gap: 28px;
  grid-template-columns: 520px 1fr;
  align-items: start;
}
.card {
  background: #fff;
  border: 1px solid #eef1f6;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 10px 24px var(--ring);
}
.pdp-info .pdp-title {
  margin: 0 0 6px;
  font-size: 28px;
  color: #0f172a;
}
.pdp-info .sku {
  color: #64748b;
  font-weight: 600;
  font-size: 18px;
}
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 16px;
}
.badge {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
}
.spec {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
}
.spec th,
.spec td {
  font-size: 14px;
  text-align: left;
  padding: 12px 14px;
  vertical-align: top;
}
.spec th {
  width: 180px;
  background: #f9fafb;
  color: #334155;
}
.spec tr + tr td,
.spec tr + tr th {
  border-top: 1px solid #e5e7eb;
}
.pdp-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

@media (max-width: 1024px) {
  .pdp-layout {
    grid-template-columns: 1fr;
  }
}
/* ===== Fullscreen Image Modal ===== */
.fs-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  display: none;
  place-items: center;
  z-index: 1000;
}
.fs-modal img {
  max-width: 92vw;
  max-height: 86vh;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.fs-caption {
  color: #fff;
  margin-top: 10px;
  text-align: center;
  opacity: 0.9;
}
.fs-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}
/* ===== RFQ FAB + Panel ===== */
.rfq-fab {
  position: fixed;
  right: 18px;
  bottom: 86px;
  z-index: 999;
  background: linear-gradient(135deg, var(--green), var(--blue));
  color: #fff;
  border: 0;
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}
.rfq-fab #rfqCount {
  background: #fff;
  color: var(--blue);
  border-radius: 999px;
  padding: 2px 8px;
  margin-left: 6px;
}

.rfq-panel {
  position: fixed;
  right: 0;
  top: 0;
  height: 100vh;
  width: min(380px, 92vw);
  background: #fff;
  border-left: 1px solid #e5e7eb;
  box-shadow: -12px 0 24px rgba(0, 0, 0, 0.15);
  z-index: 1001;
  display: flex;
  flex-direction: column;
}
.rfq-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid #eef1f6;
}
.rfq-head button {
  border: 0;
  background: #f1f5f9;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  cursor: pointer;
}
.rfq-items {
  padding: 12px 12px 0;
  overflow: auto;
  flex: 1;
}
.rfq-item {
  display: flex;
  gap: 10px;
  align-items: center;
  border: 1px solid #eef1f6;
  border-radius: 12px;
  padding: 8px;
  margin-bottom: 10px;
}
.rfq-item img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  background: #f8fafc;
}
.rfq-item .meta {
  flex: 1;
}
.rfq-item .meta .name {
  font-weight: 700;
}
.rfq-item .meta .sku {
  font-size: 12px;
  color: #64748b;
}
.rfq-item .rm {
  border: 0;
  background: #fee2e2;
  color: #991b1b;
  border-radius: 8px;
  padding: 6px 8px;
  cursor: pointer;
}
.rfq-actions {
  padding: 12px;
  border-top: 1px solid #eef1f6;
  display: flex;
  gap: 10px;
}
/* mini +RFQ button on tiles (auto-injected) */
.rfq-mini {
  position: absolute;
  right: 10px;
  bottom: 10px;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  cursor: pointer;
}
.product-tile {
  position: relative;
} /* để đặt rfq-mini */

/* RFQ backdrop + class-based open/close */
.rfq-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1000;
  display: none;
}
.rfq-backdrop.is-open {
  display: block;
}

.rfq-panel {
  /* giữ nguyên CSS cũ ... */
  transform: translateX(100%);
  transition: transform 0.22s ease;
}
.rfq-panel.is-open {
  transform: translateX(0);
}

/* khoá scroll khi panel mở */
body.rfq-locked {
  overflow: hidden;
}

/* ---------- About page ---------- */
.about-intro {
  display: grid;
  gap: 26px;
  grid-template-columns: 1.25fr 0.9fr;
  align-items: start;
}
.about-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.stats-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(140px, 1fr));
  background: #fff;
  border: 1px solid #eef1f6;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 10px 24px var(--ring);
}
.stat {
  text-align: center;
  padding: 10px 6px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f8fbff, #f4fff9);
}
.stat .num {
  font-size: 28px;
  font-weight: 800;
  color: #0f172a;
}
.stat .num span {
  font-size: 0.7em;
  color: #16a34a;
  margin-left: 2px;
}
.stat .label {
  font-size: 12px;
  color: #64748b;
}

/* Values */
.section-soft {
  background: #f9fafb;
}
.values-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.value-card {
  background: #fff;
  border: 1px solid #eef1f6;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 10px 24px var(--ring);
}
.value-card h4 {
  margin: 0 0 8px;
}

/* Timeline */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
.timeline:before {
  content: "";
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #e5e7eb;
}
.timeline li {
  position: relative;
  padding-left: 42px;
  margin: 12px 0;
}
.timeline .dot {
  position: absolute;
  left: 6px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--green));
  box-shadow: 0 0 0 4px #eaf3ff;
}
.timeline .time {
  font-weight: 800;
  color: #0f172a;
}
.timeline .desc {
  color: #475569;
}

/* Team */
.team-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.team-card {
  background: #fff;
  border: 1px solid #eef1f6;
  border-radius: 16px;
  padding: 16px;
  text-align: center;
  box-shadow: 0 10px 24px var(--ring);
}
.team-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 10px;
  background: #f1f5f9;
}
.team-card .role {
  color: #64748b;
  margin: 2px 0 8px;
  font-weight: 600;
}

/* Trust */
.trust-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.trust {
  background: #fff;
  border: 1px solid #eef1f6;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 10px 24px var(--ring);
}
.trust h5 {
  margin: 0 0 6px;
  color: #0f172a;
}

/* Responsive */
@media (max-width: 980px) {
  .about-intro {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- Auth (Login/Register) ---------- */
.auth-wrap {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr 1.1fr;
  align-items: start;
}
.card {
  background: #fff;
  border: 1px solid #eef1f6;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 10px 24px var(--ring);
}
.auth-left .checklist {
  margin: 10px 0 0 18px;
}
.auth-left .mini-note {
  margin-top: 12px;
  background: #f1f5f9;
  padding: 10px;
  border-radius: 12px;
  font-size: 14px;
  color: #475569;
}

.auth-card .tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.tab {
  border: 1px solid #e5e7eb;
  background: #f8fafc;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
}
.tab.active {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--green));
  border-color: transparent;
}

.panel {
  display: none;
}
.panel.active {
  display: block;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}
.field input,
.field textarea {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
}
.field.with-toggle {
  position: relative;
}
.pw-toggle {
  position: absolute;
  right: 10px;
  top: 30px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 16px;
}

.row-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ck input {
  margin-right: 6px;
}

.btn-light {
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
}
.sso-row {
  display: flex;
  gap: 10px;
}
.divider {
  position: relative;
  text-align: center;
  color: #94a3b8;
  margin: 12px 0;
}
.divider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: #e5e7eb;
}

.grid.two {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
}
.w-full {
  width: 100%;
}
.small {
  font-size: 12px;
}

.captcha-placeholder {
  height: 54px;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  margin-bottom: 12px;
}

@media (max-width: 980px) {
  .auth-wrap {
    grid-template-columns: 1fr;
  }
  .sso-row {
    flex-direction: column;
  }
  .grid.two {
    grid-template-columns: 1fr;
  }
}

/* ---------- News ---------- */
.news-wrap {
  display: grid;
  gap: 24px;
  grid-template-columns: 300px 1fr;
  align-items: start;
}
.news-aside .news-cats ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.news-aside .news-cats li {
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  color: #334155;
}
.news-aside .news-cats li.active,
.news-aside .news-cats li:hover {
  background: linear-gradient(135deg, #f0f9ff, #effdf5);
}

.news-aside .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.news-aside .chip.active {
  background: linear-gradient(135deg, var(--blue), var(--green));
  color: #fff;
  border-color: transparent;
}
.news-aside .newsletter .row {
  display: flex;
  gap: 8px;
}
.news-aside input[type="email"] {
  flex: 1;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 10px 12px;
}

.post-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.post-card {
  background: #fff;
  border: 1px solid #eef1f6;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 24px var(--ring);
  display: flex;
  flex-direction: column;
}
.post-card .thumb img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: #f1f5f9;
}
.post-card .post-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.post-card .cat {
  font-size: 12px;
  color: #0ea5e9;
}
.post-card h3 {
  font-size: 18px;
  margin: 0;
}
.post-card .excerpt {
  color: #475569;
  font-size: 14px;
}
.post-card .meta {
  color: #94a3b8;
  font-size: 12px;
}

/* pager */
.pager {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
}

/* ---------- SEO Article Pro ---------- */
.article-pro.layout {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) 320px;
}
.article-pro__main {
  background: #fff;
  border: 1px solid #eef1f6;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 10px 24px var(--ring);
}
.article-pro__side {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.article-title {
  margin: 0 0 6px;
}
.byline {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  color: #64748b;
}
.byline .pill {
  background: linear-gradient(135deg, #f0f9ff, #effdf5);
  border: 1px solid #e5e7eb;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  color: #0f172a;
}
.updated {
  color: #94a3b8;
}
.keytake {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 14px;
}
.keytake h3 {
  margin: 0 0 6px;
}

.toc {
  border: 1px solid #eef1f6;
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 14px;
  background: #fff;
}
.toc__title {
  font-weight: 800;
  margin-bottom: 6px;
}
.toc ol {
  margin: 0;
  padding-left: 18px;
}
.toc a {
  color: #0ea5e9;
}
.fig {
  margin: 12px 0;
}
.fig img {
  width: 100%;
  border-radius: 12px;
  background: #f1f5f9;
}
.fig figcaption {
  color: #64748b;
  font-size: 13px;
  margin-top: 6px;
}

.pull {
  border-left: 4px solid var(--green);
  background: #f8fff8;
  padding: 10px 12px;
  border-radius: 10px;
  margin: 12px 0;
  color: #0f172a;
  font-weight: 600;
}

.product-spec .spec {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 10px;
}
.product-spec .spec th,
.product-spec .spec td {
  border: 1px solid #e5e7eb;
  padding: 10px;
  text-align: left;
}
.product-spec .spec th {
  width: 220px;
  background: #f8fafc;
  color: #334155;
}

.faq details {
  border: 1px solid #eef1f6;
  border-radius: 12px;
  padding: 10px 12px;
  margin: 8px 0;
  background: #fff;
}

.share a {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  margin-right: 8px;
}

@media (max-width: 1020px) {
  .article-pro.layout {
    grid-template-columns: 1fr;
  }
}

/* ===== Customer Portal ===== */
.portal-wrap {
  display: grid;
  gap: 24px;
  grid-template-columns: 300px 1fr;
  align-items: start;
}
.portal-aside .status-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.portal-aside .chip.active {
  background: linear-gradient(135deg, var(--blue), var(--green));
  color: #fff;
  border-color: transparent;
}

.portal-list {
  display: grid;
  gap: 14px;
}

.proj-card {
  background: #fff;
  border: 1px solid #eef1f6;
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 10px 24px var(--ring);
}
.proj-card header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.pill {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid #e5e7eb;
  background: #f8fafc;
}
.stage-rfq {
  color: #0ea5e9;
}
.stage-quoted {
  color: #2563eb;
}
.stage-sample {
  color: #10b981;
}
.stage-production {
  color: #f59e0b;
}
.stage-shipment {
  color: #7c3aed;
}
.stage-finished {
  color: #16a34a;
}
.progress {
  height: 8px;
  background: #f1f5f9;
  border-radius: 999px;
  overflow: hidden;
  margin: 8px 0 10px;
}
.progress > div {
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--green));
  width: 0%;
}

.fs-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: grid;
  place-items: center;
  z-index: 1000;
}
.fs-modal[hidden] {
  display: none !important;
}
.fs-modal__box {
  background: #fff;
  width: min(800px, 92vw);
  max-height: 85vh;
  overflow: auto;
  border-radius: 16px;
  padding: 16px;
  position: relative;
}
.fs-close {
  position: absolute;
  right: 8px;
  top: 8px;
  border: 0;
  background: #000;
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  cursor: pointer;
}

.file-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.file-chip {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 13px;
  background: #fff;
}

/* Stepper & project detail */
.project-wrap {
  display: grid;
  gap: 18px;
}
.stepper {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  counter-reset: s;
}
.stepper li {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #64748b;
}
.stepper li::before {
  counter-increment: s;
  content: counter(s);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid #e5e7eb;
  background: #fff;
}
.stepper li.done::before {
  background: #e8fff3;
  border-color: #86efac;
  color: #065f46;
}
.stepper li.active {
  color: #0f172a;
  font-weight: 700;
}
.stepper li.active::before {
  background: linear-gradient(135deg, var(--blue), var(--green));
  color: #fff;
  border-color: transparent;
}

.project-columns {
  align-items: start;
}
.project-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.stage-block {
  background: #fff;
  border: 1px solid #eef1f6;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 10px 24px var(--ring);
}
.rfq-sources {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
}
.sku-row {
  display: grid;
  gap: 6px;
  margin: 8px 0;
}
.qa-board {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.qa-card {
  background: #fff;
  border: 1px solid #eef1f6;
  border-radius: 14px;
  padding: 12px;
}
.gallery {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.gallery.small {
  grid-template-columns: repeat(2, 1fr);
}
.gallery img,
.gallery figure img {
  width: 100%;
  border-radius: 12px;
  background: #f1f5f9;
}
.gallery figure figcaption {
  font-size: 12px;
  color: #64748b;
  margin-top: 4px;
}

.project-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

@media (max-width: 1020px) {
  .portal-wrap {
    grid-template-columns: 1fr;
  }
  .rfq-sources {
    grid-template-columns: 1fr;
  }
}

/* ===== Manager Console ===== */
.mgr-wrap {
  display: grid;
  gap: 24px;
  grid-template-columns: 300px 1fr;
  align-items: start;
}
.mgr-aside select,
.mgr-aside input {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 10px 12px;
  width: 100%;
}
.mgr-main .tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.mgr-main .tab {
  border: 1px solid #e5e7eb;
  background: #f8fafc;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
}
.mgr-main .tab.active {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--green));
  border-color: transparent;
}
.panel {
  display: none;
}
.panel.active {
  display: block;
}

.mgr-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}
.mgr-card {
  background: #fff;
  border: 1px solid #eef1f6;
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 10px 24px var(--ring);
}
.mgr-card header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.mini {
  font-size: 12px;
  color: #64748b;
}

/* Workload */
.workload {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

/* Manager project detail */
.mgr-proj .stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.task-list {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
}
.task-list li {
  padding: 6px 0;
  border-bottom: 1px dashed #eef1f6;
}
.ck input {
  margin-right: 8px;
}

/* Modal reuse */
.fs-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: grid;
  place-items: center;
  z-index: 1000;
}
.fs-modal[hidden] {
  display: none !important;
}
.fs-modal__box {
  background: #fff;
  width: min(720px, 92vw);
  max-height: 85vh;
  overflow: auto;
  border-radius: 16px;
  padding: 16px;
  position: relative;
}
.fs-close {
  position: absolute;
  right: 8px;
  top: 8px;
  border: 0;
  background: #000;
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  cursor: pointer;
}

@media (max-width: 1020px) {
  .mgr-wrap {
    grid-template-columns: 1fr;
  }
}

/* ===== Staff Console ===== */
.staff-wrap {
  display: grid;
  gap: 24px;
  grid-template-columns: 300px 1fr;
  align-items: start;
}
.staff-aside .rel {
  margin-bottom: 8px;
}
.staff-main .tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.staff-main .tab {
  border: 1px solid #e5e7eb;
  background: #f8fafc;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
}
.staff-main .tab.active {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--green));
  border-color: transparent;
}
.panel {
  display: none;
}
.panel.active {
  display: block;
}
.table-compact th,
.table-compact td {
  padding: 8px;
}
.center {
  text-align: center;
}
.calc-out {
  margin-top: 12px;
  border-top: 1px solid #eef1f6;
  padding-top: 10px;
}

/* Reuse modal from portal/manager */
.fs-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: grid;
  place-items: center;
  z-index: 1000;
}
.fs-modal[hidden] {
  display: none !important;
}
.fs-modal__box {
  background: #fff;
  width: min(800px, 92vw);
  max-height: 85vh;
  overflow: auto;
  border-radius: 16px;
  padding: 16px;
  position: relative;
}
.fs-close {
  position: absolute;
  right: 8px;
  top: 8px;
  border: 0;
  background: #000;
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  cursor: pointer;
}

@media (max-width: 1020px) {
  .staff-wrap {
    grid-template-columns: 1fr;
  }
}

/* ===== CUSTOMER PROFILE ===== */
.customer-profile {
  margin: 80px auto;
  max-width: 900px;
  background: #fff;
  border-radius: 20px;
  padding: 40px 50px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
}

.customer-profile h2 {
  font-size: 24px;
  margin-bottom: 6px;
  color: var(--blue);
}

.customer-profile .subtext {
  color: #777;
  font-size: 14px;
  margin-bottom: 30px;
}

.profile-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 15px;
  transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--green);
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 128, 96, 0.15);
}

.profile-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--green), var(--blue));
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px 22px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
  background: #eee;
  color: #333;
  border: none;
  border-radius: 10px;
  padding: 12px 22px;
  font-weight: 600;
  cursor: pointer;
}

.btn-secondary:hover {
  background: #ddd;
}

/* =========================================================
   FIND SUPPLIERS (Manufacturer Identification & Assessment)
   Global styles - safe, theme-matched, namespaced: .fs
   =======================================================*/

/* Small utilities (đã dùng ở Portal / Sidebar) */
.full {
  width: 100%;
}
.mt-8 {
  margin-top: 8px;
}
.mb-16 {
  margin-bottom: 16px;
}
.divider {
  height: 1px;
  background: #e9eef5;
  border: 0;
}

/* Page wrapper (giữ khoảng cách & nhịp điệu) */
.fs-page {
  max-width: 980px;
  margin: 32px auto 80px;
}

/* Header card mang gradient nhận diện thương hiệu */
.fs-head.card {
  color: #fff;
  box-shadow: 0 6px 18px rgba(16, 38, 73, 0.12);
  border: 0;
}
.fs-head h2 {
  margin: 0 0 6px;
  color: #fff;
}
.fs-head .meta {
  color: rgba(255, 255, 255, 0.9);
}

/* Card mặc định trong trang Find suppliers (mềm mại, nổi khối) */
.fs .card {
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(18, 38, 63, 0.06);
  border: 1px solid #e9eef5;
}

/* Lưới form 2 cột (auto về 1 cột ở mobile) */
.fs .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 24px;
}
@media (max-width: 768px) {
  .fs .form-grid {
    grid-template-columns: 1fr;
  }
}

/* Nhãn & input đồng bộ tone chữ, khoảng cách */
.fs .form-group label {
  font-weight: 600;
  color: #0f2940;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.fs .form-group .meta {
  margin-top: 6px;
  color: #667085;
}

/* Pills “required” dùng lại system pill nhưng sáng hơn ở nền trắng */
.fs .form-group .pill {
  background: #eef6ff;
  color: var(--blue);
  border: 1px solid rgba(0, 0, 0, 0.06);
  font-weight: 600;
}

/* Chips (certificates) – dạng viên thuốc bấm chọn */
.fs .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.fs .chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid #e0e7ef;
  background: #fff;
  color: #0f2940;
  cursor: pointer;
  transition: all 0.18s ease;
  box-shadow: 0 1px 2px rgba(16, 38, 73, 0.04);
}

.fs .chip input {
  display: none;
} /* ẩn checkbox – dùng trạng thái .active */
.fs .chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(18, 38, 63, 0.08);
}
.fs .chip.active {
  color: #0b3a5c;
  border-color: var(--blue);
  background: linear-gradient(
    135deg,
    rgba(13, 110, 253, 0.1),
    rgba(25, 135, 84, 0.08)
  );
  box-shadow: 0 6px 18px rgba(16, 38, 73, 0.1);
}

/* Preview ảnh tham chiếu */
.fs .thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}
.fs .thumbs img {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #e6edf5;
  box-shadow: 0 6px 14px rgba(18, 38, 63, 0.08);
  background: #fff;
}

/* Tổ hợp nút Submit/Cancel đồng bộ spacing */
.fs .form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 12px;
}

/* Danh sách yêu cầu đã gửi (Your requests) */
.fs .req-list .req-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid #e9eef5;
  box-shadow: 0 6px 16px rgba(18, 38, 63, 0.06);
}
.fs .req-list .req-card + .req-card {
  margin-top: 12px;
}
.fs .req-list .req-card .pill {
  background: #ecfdf3;
  color: #137c4b;
  font-weight: 700;
  border: 1px solid #d3f3e2;
}

/* Nút “Find suppliers” trong sidebar Portal (nếu cần full width) */
.btn-ghost-soft {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 10px;
  width: 100%;
  background: #f7fafc;
  color: #0f2940;
  border: 1px solid #e6edf5;
  transition: all 0.18s ease;
}
.btn-ghost-soft:hover {
  background: linear-gradient(
    135deg,
    rgba(13, 110, 253, 0.06),
    rgba(25, 135, 84, 0.05)
  );
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(18, 38, 63, 0.08);
}

/* ===== Modal (Global) ===== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
}
.modal.is-hidden {
  display: none;
}
.modal:not(.is-hidden) {
  display: block;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.38);
}
.modal-dialog {
  position: relative;
  z-index: 1;
  width: min(1000px, 92vw);
  margin: 6vh auto;
  padding: 0;
  border-radius: 16px;
  overflow: hidden;
}
.modal-head,
.modal-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--surface, #fff);
}
.modal-head {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.modal-foot {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.modal-toolbar {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  background: linear-gradient(135deg, var(--green), var(--blue));
  color: #fff;
}
.modal-toolbar input[type="search"] {
  background: #ffffff;
  color: #222;
  border: none;
  outline: none;
  padding: 10px 12px;
  border-radius: 10px;
  min-width: 260px;
  flex: 1;
}

/* ===== Catalog grid ===== */
.catalog-grid {
  padding: 14px 16px;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  background: var(--surface, #fff);
}
.catalog-card {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 10px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  padding: 10px;
  background: #fff;
}
.catalog-thumb {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  background: #f2f5f8;
}
.catalog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.catalog-info .catalog-name {
  font-weight: 600;
  margin-bottom: 4px;
}
.catalog-ctrl .chip {
  cursor: pointer;
}
.catalog-ctrl input[type="checkbox"] {
  margin-right: 6px;
}

.badge {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.06);
  color: #555;
  font-size: 12px;
}

/* Button close icon in header */
.icon-btn {
  border: none;
  background: transparent;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 8px;
}
.icon-btn:hover {
  background: rgba(0, 0, 0, 0.06);
}

/* Pills in modal follow global chip style */
.modal-toolbar .chip.pill {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.modal-toolbar .chip.pill.active {
  background: #fff;
  color: var(--blue);
}

/* ---------- Breadcrumb override ---------- */
.breadcrumb {
  font-size: 14px;
  margin-bottom: 12px;
  color: #666;
}

.breadcrumb a {
  color: var(--ink); /* xanh dương nhẹ, đồng bộ với theme bạn */
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span {
  color: var(--blue);
  margin: 0 6px;
  font-weight: bold;
}
