/* ==========================================================================
   PRODUCT HERO SUMMARY STYLE (EXACT FIGMA MATCH & WP-AUTOP DEFENSIVE)
   ========================================================================== */

.product-gallery-row {
  width: 100% !important;
}

.product-gallery-row .col-inner {
  height: 100% !important;
}

.product-gallery-img img {
  width: 100% !important;
  height: 460px !important;
  object-fit: cover !important;
  border-radius: 12px !important;
  box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.02) !important;
  transition:
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s ease !important;
}

.product-gallery-img:hover img {
  transform: scale(1.015) !important;
  box-shadow: 0px 12px 35px rgba(0, 0, 0, 0.08) !important;
}

.hero-info-wrapper {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 27px !important;
  width: 100% !important;
}

.hero-info-wrapper p:empty {
  display: none !important;
}

.hero-info-wrapper .badge-tag-green {
  display: inline-block !important;
  background-color: #e8f5e9 !important;
  color: #2e7d32 !important;
  font-family: 'Roboto Condensed', sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  padding: 6px 16px !important;
  border-radius: 999px !important;
  letter-spacing: 0.5px !important;
  text-transform: uppercase !important;
}

.hero-info-wrapper .dynamic-product-title {
  color: #111827 !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 46px !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
  margin: 0 !important;
  letter-spacing: -0.5px !important;
}

.hero-info-wrapper .product-short-desc {
  color: #4b5563 !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 15px !important;
  line-height: 1.6 !important;
  margin: 0 !important;
}

.hero-info-wrapper .product-meta-grid {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  width: 100% !important;
  margin: 8px 0 !important;
}

.hero-info-wrapper .meta-item {
  display: flex !important;
  align-items: center !important;
  font-size: 14.5px !important;
  line-height: 1 !important;
}

.hero-info-wrapper .meta-label {
  width: 110px !important;
  color: #9ca3af !important;
  font-family: 'Roboto Condensed', sans-serif !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  border-right: 1px solid #e5e7eb !important;
  padding-right: 20px !important;
  margin-right: 20px !important;
  flex-shrink: 0 !important;
}

.hero-info-wrapper .meta-val {
  color: #1f2937 !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 500 !important;
}

.hero-info-wrapper .product-shipping-badges {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  width: 100% !important;
}

.hero-info-wrapper .product-shipping-badges br {
  display: none !important;
}

.hero-info-wrapper .badge-ship {
  display: inline-block !important;
  background-color: #e8f5e9 !important;
  color: #2e7d32 !important;
  font-family: 'Roboto Condensed', sans-serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  padding: 8px 20px !important;
  border-radius: 8px !important;
  transition: background-color 0.2s ease !important;
}

.hero-info-wrapper .badge-ship:hover {
  background-color: #c8e6c9 !important;
}

/* ==========================================================================
   COMPONENT: MATRAN 3 CARD THONG SO CHUYEN SAU (CLEANED & OPTIMIZED)
   ========================================================================== */

.section-product-spec-matrix {
  background: #f5f6f8;
}

/* 1. Ép Row kéo giãn, đè bẹp hoàn toàn align-center của UX Builder */
.row.product-spec-matrix {
  display: flex !important;
  align-items: stretch !important;
  flex-wrap: wrap !important;
}

/* 2. Dây chuyền Flex: Ép tất cả các thẻ bọc giãn nở 100% */
.product-spec-matrix > .col,
.product-spec-matrix .col-inner,
.product-spec-matrix .spec-card-text,
.product-spec-matrix .text-inner,
.product-spec-matrix .spec-card {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* 3. Phần ruột của Card: Ép phình to ra để đẩy Header lên đỉnh và Footer xuống đáy */
.product-spec-matrix .spec-table-rows,
.product-spec-matrix .spec-list-content,
.product-spec-matrix .spec-vertical-list-wrapper {
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
}

/* Tùy chỉnh hiển thị chi tiết Card (Cosmetic) */
.spec-card {
  background: #ffffff !important;
  border-radius: 12px !important;
  outline: 1px #e9ebee solid !important;
  outline-offset: -1px !important;
  overflow: hidden !important;
}

.text-padding-wide {
  padding-left: 28px !important;
  padding-right: 28px !important;
}

.text-padding-normal {
  padding-left: 24px !important;
  padding-right: 24px !important;
}

.spec-card-header {
  padding-top: 20px !important;
  padding-bottom: 20px !important;
  border-bottom: 1px #f0f2f5 solid !important;
  flex-shrink: 0 !important;
}

.spec-card-sub {
  color: #9ca3af !important;
  font-size: 11.2px !important;
  font-family: 'Roboto Condensed', sans-serif !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  line-height: 16.8px !important;
  letter-spacing: 1.57px !important;
  display: block !important;
}

.spec-card-title {
  color: #111827 !important;
  font-size: 17.6px !important;
  font-family: 'Roboto Condensed', sans-serif !important;
  font-weight: 700 !important;
  line-height: 26.4px !important;
  margin: 4px 0 0 0 !important;
}

.table-row {
  padding-left: 28px !important;
  padding-right: 28px !important;
  padding-top: 13px !important;
  padding-bottom: 13px !important;
  border-bottom: 1px #f5f5f5 solid !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
}

.spec-table-rows .table-row:last-child {
  border-bottom: none !important;
}

.table-row .row-lbl {
  color: #6b7280 !important;
  font-size: 13.6px !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 400 !important;
  line-height: 20.4px !important;
  flex: 1 !important;
  text-align: left !important;
}

.table-row .row-val {
  color: #111827 !important;
  font-size: 14.4px !important;
  font-family: 'Roboto Condensed', sans-serif !important;
  font-weight: 700 !important;
  line-height: 21.6px !important;
  text-align: right !important;
  white-space: nowrap !important;
}

.table-row.active-row {
  background: #e8f5e9 !important;
}

.table-row.active-row .row-lbl,
.table-row.active-row .row-val {
  color: #2e7d32 !important;
}

.spec-card-footer {
  padding-top: 14px !important;
  padding-bottom: 14px !important;
  border-top: 1px #f0f2f5 solid !important;
  flex-shrink: 0 !important;
  margin-top: auto !important;
}

.spec-card-note {
  color: #c0c4cc !important;
  font-size: 11.2px !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 400 !important;
  line-height: 16.8px !important;
  margin: 0 !important;
}

.list-item-group {
  padding-top: 16px !important;
  padding-bottom: 16px !important;
  border-bottom: 1px #f5f5f5 solid !important;
}

.list-item-group:last-child {
  border-bottom: none !important;
}

.list-item-group h4 {
  color: #111827 !important;
  font-size: 14.4px !important;
  font-family: 'Roboto Condensed', sans-serif !important;
  font-weight: 700 !important;
  line-height: 21.6px !important;
  margin: 0 !important;
}

.list-item-group p {
  color: #9ca3af !important;
  font-size: 12.8px !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 400 !important;
  line-height: 19.2px !important;
  margin: 3px 0 0 0 !important;
}

.split-footer {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.blue-dot {
  width: 6px !important;
  height: 6px !important;
  background: #2757a0 !important;
  border-radius: 3px !important;
  flex-shrink: 0 !important;
}

.spec-footer-desc {
  color: #6b7280 !important;
  font-size: 12px !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 400 !important;
  line-height: 18px !important;
  margin: 0 !important;
}

.spec-card .table-row br,
.spec-card .split-footer br {
  display: none !important;
}

.spec-card p:empty,
.spec-card-header p:empty,
.spec-table-rows p:empty {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.spec-vertical-list-wrapper {
  padding-top: 16px !important;
  padding-bottom: 16px !important;
}

.spec-vertical-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
}

.spec-vertical-list li {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.list-bar {
  width: 3px !important;
  height: 16px !important;
  background: #2e7d32 !important;
  border-radius: 2px !important;
  flex-shrink: 0 !important;
}

.list-txt {
  color: #374151 !important;
  font-size: 14.4px !important;
  font-family: 'Roboto Condensed', sans-serif !important;
  font-weight: 500 !important;
  line-height: 21.6px !important;
}

.product-desc {
  color: #4b5563 !important;
  font-size: 14.4px !important;
  font-family: 'Roboto Condensed', sans-serif !important;
  font-weight: 400 !important;
  line-height: 27.36px !important;
  word-wrap: break-word !important;
}

.section-img-refer img,
.col-product-gallery img {
  border-radius: 12px !important;
}

.woocommerce-product-gallery {
  height: 500px;
  overflow: hidden;
}
