/* ==========================================================================
   ECO.MI — V3 ENHANCEMENTS STYLING (B2B EXPORT UPGRADE)
   Includes:
   1. Water-Resistance Performance Showcase (USP Thực nghiệm kháng ẩm)
   2. Factory & Production Capacity Metrics (Năng lực quy mô xuất khẩu)
   3. B2B RFQ & Interactive Customization Configurator
   4. Floating B2B Action Dock (Zalo, WhatsApp, Hotline, Quote)
   5. Language Switcher (VI / EN)
   6. B2B Catalog / Lookbook Download Banner
   7. Retail Partners Trust Bar (Aeon Mall, Lotte Mart)
   ========================================================================== */

/* --- ROOT VARIABLES & V3 EXTENSIONS --- */
:root {
  --v3-green-dark: #193822;
  --v3-gold: #c29d59;
  --v3-gold-light: #f4ecdc;
  --v3-badge-bg: rgba(47, 107, 58, 0.08);
  --v3-border-light: #e6dfd1;
}

/* --- LANGUAGE SWITCHER IN HEADER --- */
.lang-switcher-v3 {
  display: inline-flex;
  align-items: center;
  background: rgba(47, 107, 58, 0.07);
  border: 1px solid rgba(47, 107, 58, 0.18);
  border-radius: 999px;
  padding: 3px 6px;
  gap: 4px;
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.5px;
}

.lang-btn-v3 {
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s ease;
  font-weight: 600;
  font-size: 12px;
}

.lang-btn-v3:hover {
  color: var(--forest);
}

.lang-btn-v3.active {
  background: var(--forest);
  color: #fff;
  box-shadow: 0 2px 8px rgba(31, 74, 43, 0.25);
}

/* --- HERO B2B TRUST PILLS --- */
.hero-trust-badges-v3 {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(198, 175, 136, 0.45);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.hero-trust-badge svg {
  width: 16px;
  height: 16px;
  fill: var(--green);
  flex-shrink: 0;
}

/* --- WATER RESISTANCE SHOWCASE SECTION (USP CỰC MẠNH) --- */
.water-test-section {
  background: #fbf8f2;
  border-top: 1px solid var(--v3-border-light);
  border-bottom: 1px solid var(--v3-border-light);
  position: relative;
  overflow: hidden;
}

.water-test-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}

.water-test-copy .eyebrow {
  color: var(--green);
}

.water-test-copy h2 {
  font-size: 40px;
  line-height: 1.25;
  margin-bottom: 20px;
}

.water-highlight-box {
  background: #fff;
  border: 1px solid rgba(47, 107, 58, 0.2);
  border-left: 5px solid var(--green);
  border-radius: 16px;
  padding: 24px;
  margin: 24px 0;
  box-shadow: 0 8px 24px rgba(47, 107, 58, 0.05);
}

.water-highlight-box h4 {
  margin: 0 0 10px;
  font-size: 18px;
  color: var(--forest);
  display: flex;
  align-items: center;
  gap: 10px;
}

.water-highlight-box p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: #3f4c3d;
}

.water-steps-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.water-step-card {
  background: #fff;
  border-radius: 14px;
  padding: 18px 16px;
  border: 1px solid var(--v3-border-light);
  text-align: center;
  transition: transform 0.25s, box-shadow 0.25s;
}

.water-step-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.water-step-num {
  display: inline-block;
  width: 32px;
  height: 32px;
  line-height: 32px;
  background: var(--v3-gold-light);
  color: #7d5e24;
  font-weight: 700;
  border-radius: 50%;
  margin-bottom: 10px;
  font-size: 14px;
}

.water-step-card h5 {
  margin: 0 0 6px;
  font-size: 14px;
  color: var(--ink);
}

.water-step-card p {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

/* Material Comparison Table */
.comparison-card {
  background: #fff;
  border-radius: 20px;
  padding: 30px;
  border: 1px solid var(--v3-border-light);
  box-shadow: 0 14px 40px rgba(35, 61, 42, 0.06);
}

.comparison-card h3 {
  font-size: 22px;
  margin-bottom: 20px;
  color: var(--forest);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.comparison-table th,
.comparison-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid #ede8de;
}

.comparison-table th {
  background: #f7f4ed;
  color: var(--ink);
  font-weight: 600;
  border-radius: 6px;
}

.comparison-table .highlight-col {
  background: rgba(47, 107, 58, 0.05);
  font-weight: 600;
  color: var(--forest);
}

.badge-check {
  color: #2f6b3a;
  font-weight: 700;
}

.badge-x {
  color: #b05252;
}

/* --- PRODUCTION CAPACITY & EXPORT METRICS --- */
.capacity-section {
  background: var(--forest);
  color: var(--cream);
  position: relative;
}

.capacity-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.capacity-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 28px 24px;
  text-align: center;
  transition: all 0.3s ease;
}

.capacity-card:hover {
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-4px);
  border-color: rgba(198, 175, 136, 0.4);
}

.capacity-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(198, 175, 136, 0.2);
  border-radius: 12px;
  color: #dfcca8;
}

.capacity-num {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 600;
  color: #f7f2e8;
  margin-bottom: 6px;
}

.capacity-card h4 {
  font-size: 16px;
  margin: 0 0 10px;
  color: #e5eedc;
}

.capacity-card p {
  font-size: 13px;
  line-height: 1.6;
  color: #b9c7b3;
  margin: 0;
}

/* --- RETAIL & ENTERPRISE TRUST BAR --- */
.retail-trust-bar {
  background: #fff;
  border-bottom: 1px solid var(--v3-border-light);
  padding: 24px 0;
}

.retail-trust-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.retail-trust-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  color: var(--muted);
}

.retail-badges-list {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.retail-badge-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f7f3ec;
  border: 1px solid #e5ded3;
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.retail-badge-item .dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
}

/* --- B2B CATALOG DOWNLOAD BANNER --- */
.catalog-banner {
  background: linear-gradient(135deg, #244f2e 0%, #17371e 100%);
  border-radius: 24px;
  padding: 44px 50px;
  margin: 60px 0 20px;
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  box-shadow: 0 20px 50px rgba(25, 56, 34, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.catalog-banner h3 {
  font-size: 28px;
  margin-bottom: 10px;
  color: #fff;
}

.catalog-banner p {
  font-size: 14.5px;
  color: #cfdccb;
  margin: 0;
  max-width: 620px;
  line-height: 1.6;
}

.catalog-banner .button {
  flex-shrink: 0;
}

/* --- FLOATING B2B CONTACT DOCK --- */
.floating-dock-v3 {
  position: fixed;
  right: 22px;
  bottom: 26px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}

.dock-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: var(--ink);
  border: 1px solid rgba(47, 107, 58, 0.2);
  border-radius: 999px;
  padding: 10px 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s ease;
}

.dock-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

.dock-btn-zalo {
  background: #0068ff;
  color: #fff;
  border-color: #0056d6;
}

.dock-btn-zalo:hover {
  background: #0056d6;
  color: #fff;
}

.dock-btn-whatsapp {
  background: #25d366;
  color: #fff;
  border-color: #1eb956;
}

.dock-btn-whatsapp:hover {
  background: #1eb956;
  color: #fff;
}

.dock-btn-quote {
  background: var(--forest);
  color: var(--cream);
  border-color: var(--forest);
}

.dock-btn-quote:hover {
  background: #15351e;
}

.dock-btn-top {
  width: 44px;
  height: 44px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  color: var(--forest);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
}

.dock-btn-top.show {
  opacity: 1;
  pointer-events: auto;
}

/* --- B2B RFQ MODAL --- */
.v3-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(18, 35, 23, 0.65);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.v3-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.v3-modal-card {
  background: #fff;
  border-radius: 24px;
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px;
  position: relative;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--v3-border-light);
}

.v3-modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #ddd;
  background: #f7f3ec;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink);
  transition: all 0.2s ease;
}

.v3-modal-close:hover {
  background: #e9e2d5;
}

.v3-modal-title {
  font-size: 26px;
  color: var(--forest);
  margin-bottom: 8px;
}

.v3-modal-desc {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 24px;
}

.rfq-step-group {
  margin-bottom: 20px;
}

.rfq-step-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--ink);
  margin-bottom: 10px;
}

.rfq-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
}

.rfq-option-label {
  border: 1px solid #dcded0;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #fcfbfa;
}

.rfq-option-label:hover {
  border-color: var(--green);
  background: #f4f8f4;
}

.rfq-option-label input {
  display: none;
}

.rfq-option-label.checked {
  background: var(--forest);
  color: #fff;
  border-color: var(--forest);
  font-weight: 600;
}

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 992px) {
  .water-test-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .capacity-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .catalog-banner {
    flex-direction: column;
    text-align: center;
    padding: 32px 24px;
  }
}

@media (max-width: 640px) {
  .capacity-grid {
    grid-template-columns: 1fr;
  }
  .water-steps-row {
    grid-template-columns: 1fr;
  }
  .floating-dock-v3 {
    right: 14px;
    bottom: 16px;
  }
  .dock-btn span {
    display: none;
  }
  .dock-btn {
    padding: 12px;
    border-radius: 50%;
    width: 46px;
    height: 46px;
    justify-content: center;
  }
}
