/* ==========================================================================
   DANSON ENGINEERING - TRANG SẢN PHẨM TINH TẾ, ĐƠN GIẢN & ĐỒNG BỘ
   Hệ thống hiển thị danh mục động theo WordPress WooCommerce
   ========================================================================== */

:root {
  --prod-navy: #091a32;
  --prod-blue: #087dd1;
  --prod-brand: #173f75;
  --prod-red: #c62630;
  --prod-slate: #1e293b;
  --prod-muted: #64748b;
  --prod-line: #e2e8f0;
  --prod-bg: #f8fafc;
  --prod-card-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
  --prod-hover-shadow: 0 14px 34px -8px rgba(15, 23, 42, 0.12);
}

.danson-products-page {
  background: var(--prod-bg);
  color: var(--prod-slate);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.6;
}

/* 1. HERO HEADER: ĐƠN GIẢN, TINH TẾ & GỌN GÀNG */
.prod-simple-hero {
  background: linear-gradient(135deg, #091a32 0%, #112d53 65%, #173f75 100%);
  color: #ffffff;
  padding: 44px 0 48px;
  border-bottom: 1px solid rgba(56, 189, 248, 0.2);
  position: relative;
}

.prod-simple-hero .wrap {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
}

.prod-simple-hero .breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 14px;
}

.prod-simple-hero .breadcrumb a {
  color: #38bdf8;
  text-decoration: none;
}

.prod-simple-hero .breadcrumb a:hover {
  text-decoration: underline;
}

.hero-top-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(8, 125, 209, 0.16);
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #38bdf8;
  margin-bottom: 12px;
}

.hero-top-badge .dot-pulse {
  width: 7px;
  height: 7px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 8px #22c55e;
}

.prod-simple-hero h1 {
  font-size: clamp(26px, 3.8vw, 38px);
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 12px;
  line-height: 1.25;
}

.prod-simple-hero .hero-desc {
  font-size: 15.5px;
  line-height: 1.65;
  color: #cbd5e1;
  max-width: 880px;
  margin: 0 0 22px;
}

/* Trust Bar */
.prod-trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 13px;
  color: #e2e8f0;
}

.trust-icon {
  color: #38bdf8;
  font-weight: 800;
}

/* Instant Search Input */
.prod-search-wrap {
  max-width: 760px;
}

.search-box-inner {
  position: relative;
  display: flex;
  align-items: center;
}

.search-box-inner .search-icon {
  position: absolute;
  left: 16px;
  font-size: 16px;
  pointer-events: none;
}

.search-box-inner input {
  width: 100%;
  height: 48px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  padding: 0 42px 0 46px;
  font-size: 14.5px;
  color: #0f172a;
  outline: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.2s;
}

.search-box-inner input:focus {
  border-color: #087dd1;
  box-shadow: 0 0 0 3px rgba(8, 125, 209, 0.2);
}

.clear-search-btn {
  position: absolute;
  right: 12px;
  background: #e2e8f0;
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #475569;
}

.search-meta {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 8px;
}

/* 2. STICKY TABS BAR */
.prod-sticky-tabs {
  position: sticky;
  top: 77px;
  z-index: 850;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--prod-line);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.sticky-tabs-inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 8px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.tabs-scroll-list {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 4px 0;
}

.tabs-scroll-list::-webkit-scrollbar {
  display: none;
}

.tab-chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  transition: all 0.2s ease;
}

.tab-chip-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.tab-chip-btn.active {
  background: #173f75;
  color: #ffffff;
  border-color: #173f75;
}

.btn-fast-rfq {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--prod-red);
  color: #ffffff !important;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  flex-shrink: 0;
  transition: all 0.2s;
}

.btn-fast-rfq:hover {
  background: #a81c25;
  box-shadow: 0 3px 10px rgba(198, 38, 48, 0.3);
}

/* 3. CATALOG BODY & CATEGORY SECTIONS */
.prod-catalog-body {
  padding: 40px 0 70px;
}

.prod-catalog-body .wrap {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
}

.cat-section-block {
  scroll-margin-top: 135px;
  background: #ffffff;
  border: 1px solid var(--prod-line);
  border-radius: 18px;
  padding: 32px;
  margin-bottom: 40px;
  box-shadow: var(--prod-card-shadow);
  position: relative;
  transition: box-shadow 0.25s ease;
}

.cat-section-block:hover {
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.07);
}

/* Category Header */
.cat-block-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  border-bottom: 2px solid var(--cat-color);
  padding-bottom: 18px;
  margin-bottom: 24px;
}

.cat-kicker-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.cat-num {
  background: var(--cat-color);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.cat-badge-text {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--cat-color);
  text-transform: uppercase;
}

.cat-main-title {
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 4px;
}

.cat-sub-title {
  font-size: 14px;
  color: var(--prod-muted);
  font-weight: 500;
}

.cat-tags-right {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 480px;
  justify-content: flex-end;
}

.cat-pill-tag {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
}

/* Compact Summary Card on Main Products Page */
.cat-compact-summary-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 20px;
  transition: all 0.2s ease;
}

.cat-compact-summary-card:hover {
  border-color: #cbd5e1;
  background: #f1f5f9;
}

.summary-left-img {
  position: relative;
  width: 140px;
  height: 95px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #0f172a;
}

.summary-left-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.summary-media-badge {
  position: absolute;
  bottom: 4px;
  left: 4px;
  right: 4px;
  background: rgba(15, 23, 42, 0.82);
  color: #38bdf8;
  font-size: 9.5px;
  font-weight: 700;
  text-align: center;
  padding: 2px 4px;
  border-radius: 3px;
}

.summary-right-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.summary-lead-text {
  font-size: 13.5px;
  line-height: 1.6;
  color: #334155;
  margin: 0;
}

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

.btn-view-cat-full {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #ffffff;
  border: 1.5px solid var(--cat-color);
  color: var(--cat-color) !important;
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-view-cat-full:hover {
  background: var(--cat-color);
  color: #ffffff !important;
}

.btn-cat-fast-quote {
  background: transparent;
  border: none;
  color: var(--prod-red);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  padding: 6px 8px;
  text-decoration: underline;
}

.btn-cat-fast-quote:hover {
  color: #a81c25;
}

.cat-title-link {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}

.cat-title-link:hover {
  color: var(--cat-color);
}

.arrow-goto {
  font-size: 18px;
  opacity: 0.6;
  transition: transform 0.2s;
}

.cat-title-link:hover .arrow-goto {
  transform: translate(2px, -2px);
  opacity: 1;
}

/* Subcategories Chips Bar */
.cat-children-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 24px;
}

.children-label {
  font-size: 12.5px;
  font-weight: 700;
  color: #475569;
}

.children-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.child-chip-btn {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #1e293b;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
}

.child-chip-btn:hover {
  background: #e2e8f0;
}

.child-chip-btn.active {
  background: var(--cat-color);
  color: #ffffff;
  border-color: var(--cat-color);
}

/* Dynamic Product Grid */
.products-section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.products-section-title-row h3 {
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.count-badge {
  font-size: 12px;
  color: var(--prod-muted);
  background: #f1f5f9;
  padding: 3px 8px;
  border-radius: 6px;
}

.dynamic-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.dynamic-prod-card {
  background: #ffffff;
  border: 1px solid var(--prod-line);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
  transition: all 0.25s ease;
}

.dynamic-prod-card:hover {
  transform: translateY(-3px);
  border-color: var(--cat-color);
  box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.12);
}

.prod-card-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #0f172a;
  overflow: hidden;
}

.prod-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.dynamic-prod-card:hover .prod-card-thumb img {
  transform: scale(1.06);
}

.prod-badge-child {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}

.prod-card-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.prod-sku {
  font-size: 10.5px;
  font-family: monospace;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 4px;
}

.prod-title {
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 10px;
}

.prod-title a {
  color: #0f172a;
  text-decoration: none;
  transition: color 0.2s;
}

.prod-title a:hover {
  color: var(--prod-blue);
}

.prod-specs-box {
  background: #f8fafc;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 11.5px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  gap: 6px;
}

.spec-row .k {
  color: #64748b;
}

.spec-row .v {
  color: #1e293b;
  font-weight: 600;
  text-align: right;
}

.prod-card-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
}

.btn-card-rfq {
  flex-grow: 1;
  background: var(--prod-red);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.2s;
}

.btn-card-rfq:hover {
  background: #a81c25;
}

.btn-card-view {
  background: #f1f5f9;
  color: #334155;
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-card-view:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* In-Page Block Pagination for Categories on /san-pham/ */
.cat-block-pagination {
  margin-top: 20px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.cat-page-meta {
  font-size: 13px;
  color: #64748b;
}

.cat-page-meta strong {
  color: #0f172a;
}

.cat-page-btn-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-cat-nav,
.btn-cat-page-num {
  height: 32px;
  min-width: 32px;
  padding: 0 10px;
  font-size: 12.5px;
  font-weight: 700;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #1e293b;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.btn-cat-page-num:hover,
.btn-cat-nav:not(:disabled):hover {
  background: #f1f5f9;
  border-color: var(--cat-color);
  color: var(--cat-color);
}

.btn-cat-page-num.active {
  background: var(--cat-color);
  border-color: var(--cat-color);
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.15);
}

.btn-cat-nav:disabled,
.btn-cat-nav.disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background: #f1f5f9;
  border-color: #e2e8f0;
}

.cat-full-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--cat-color) !important;
  text-decoration: none;
  transition: all 0.2s;
}

.cat-full-link-btn:hover {
  text-decoration: underline;
  transform: translateX(2px);
}

/* Empty notice */
.empty-cat-notice {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.empty-cat-notice .notice-icon {
  font-size: 28px;
}

.empty-cat-notice strong {
  color: #1e293b;
  font-size: 15px;
}

.empty-cat-notice p {
  color: #64748b;
  font-size: 13.5px;
  margin: 0;
  max-width: 600px;
}

/* 4. RFQ SECTION BOTTOM */
.prod-rfq-simple {
  background: #ffffff;
  border: 1px solid var(--prod-line);
  border-radius: 18px;
  padding: 36px;
  box-shadow: var(--prod-card-shadow);
  margin-top: 50px;
}

.rfq-simple-grid {
  display: grid;
  grid-template-columns: 1fr 460px;
  gap: 36px;
}

.rfq-simple-content h2 {
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 10px;
}

.rfq-simple-content p {
  color: var(--prod-muted);
  font-size: 14.5px;
  margin: 0 0 24px;
  line-height: 1.6;
}

.rfq-contact-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-pill-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 10px 14px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
}

.contact-pill-card b {
  color: #1e293b;
}

.contact-pill-card a {
  color: var(--prod-blue);
  font-weight: 700;
  text-decoration: none;
}

/* Simple Form */
.simple-form-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-field label {
  font-size: 12.5px;
  font-weight: 700;
  color: #1e293b;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  font-size: 13.5px;
  outline: none;
  background: #ffffff;
  box-sizing: border-box;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--prod-blue);
}

.btn-submit-rfq {
  background: var(--prod-red);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.2s;
}

.btn-submit-rfq:hover {
  background: #a81c25;
}

.rfq-result-notice {
  display: none;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
}

/* 5. MODAL BÁO GIÁ NHANH */
.quick-rfq-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.quick-rfq-modal-backdrop.open {
  display: flex;
}

.quick-rfq-modal-box {
  background: #ffffff;
  width: 100%;
  max-width: 480px;
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.modal-box-head {
  background: linear-gradient(135deg, #091a2b 0%, #173f75 100%);
  color: #ffffff !important;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #0284c7;
}

.modal-box-head h3,
#modalProductTitle {
  font-size: 17px !important;
  font-weight: 800 !important;
  color: #ffffff !important; /* Trắng sáng 100% không bị chìm */
  margin: 0 !important;
  letter-spacing: 0.02em !important;
  display: flex !important;
  align-items: center;
  gap: 8px;
}

.modal-close-trigger {
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
  font-size: 14px !important;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
}

.modal-close-trigger:hover {
  background: #dc2626 !important;
  border-color: #dc2626 !important;
  color: #ffffff !important;
  transform: rotate(90deg);
}

.modal-box-body {
  padding: 22px;
}

.selected-product-bar {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13.5px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.selected-product-bar span {
  color: #0369a1;
  font-weight: 600;
}

.selected-product-bar strong {
  color: #0f2942 !important;
  font-weight: 800;
}

.modal-box-body label {
  color: #334155 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  margin-bottom: 5px;
  display: block;
}

.modal-box-body input,
.modal-box-body textarea {
  width: 100% !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  color: #0f172a !important;
  padding: 10px 14px !important;
  font-size: 13.5px !important;
  box-sizing: border-box !important;
}

.modal-box-body input:focus,
.modal-box-body textarea:focus {
  border-color: #0284c7 !important;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15) !important;
  outline: none !important;
}

@media (max-width: 640px) {
  .quick-rfq-modal-backdrop {
    padding: 0;
    align-items: flex-end;
  }
  .quick-rfq-modal-box {
    max-width: 100%;
    border-radius: 20px 20px 0 0;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    animation: slideUpMobile 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  }
  @keyframes slideUpMobile {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
  }
  .modal-box-body {
    overflow-y: auto;
    padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  }
}

/* ==========================================================================
   5. CATALOG RESPONSIVE OVERHAUL (/san-pham/)
   Tối ưu hóa toàn diện trải nghiệm di động & máy tính bảng
   ========================================================================== */

@media (max-width: 1024px) {
  .dynamic-products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
  .cat-compact-summary-card {
    gap: 16px;
  }
  .rfq-simple-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .prod-simple-hero {
    padding: 30px 0 34px;
  }
  .prod-simple-hero .wrap,
  .prod-catalog-body .wrap {
    padding: 0 16px;
  }
  .prod-simple-hero h1 {
    font-size: 24px;
    line-height: 1.3;
    margin-bottom: 10px;
  }
  .prod-simple-hero .hero-desc {
    font-size: 13.5px;
    line-height: 1.6;
    margin-bottom: 18px;
  }
  .prod-trust-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 18px;
  }
  .trust-item {
    padding: 6px 10px;
    font-size: 11.5px;
  }
  .search-box-inner input {
    height: 44px;
    font-size: 13px;
    padding: 0 38px 0 40px;
  }

  /* Sticky Navigation on Mobile */
  .prod-sticky-tabs {
    top: 54px;
  }
  .sticky-tabs-inner {
    padding: 6px 12px;
  }
  .tabs-scroll-list {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 6px;
  }
  .tabs-scroll-list::-webkit-scrollbar {
    display: none;
  }
  .tab-chip-btn {
    padding: 6px 11px;
    font-size: 11.5px;
    border-radius: 16px;
  }
  .btn-fast-rfq {
    display: none;
  }

  /* Category Block on Mobile */
  .prod-catalog-body {
    padding: 20px 0 50px;
  }
  .cat-section-block {
    padding: 16px 14px;
    border-radius: 14px;
    margin-bottom: 24px;
    scroll-margin-top: 105px;
  }
  .cat-block-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    border-bottom-width: 1.5px;
    padding-bottom: 12px;
    margin-bottom: 16px;
  }
  .cat-main-title {
    font-size: 21px;
    line-height: 1.3;
  }
  .cat-sub-title {
    font-size: 12.5px;
  }
  .cat-tags-right {
    width: 100%;
    max-width: 100%;
    justify-content: flex-start;
    gap: 5px;
  }
  .cat-pill-tag {
    font-size: 11px;
    padding: 3px 8px;
  }

  /* Summary Card Mobile: Stack image & text */
  .cat-compact-summary-card {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 16px;
  }
  .summary-left-img {
    width: 100%;
    height: 140px;
    border-radius: 8px;
  }
  .summary-lead-text {
    font-size: 13px;
    line-height: 1.55;
  }
  .summary-action-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .btn-view-cat-full,
  .btn-cat-fast-quote {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 9px 12px;
    font-size: 12px;
    border-radius: 6px;
  }

  /* Subcategories chips */
  .cat-children-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 12px;
    margin-bottom: 16px;
  }
  .children-label {
    font-size: 11.5px;
  }
  .children-chips-wrap {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    width: 100%;
    gap: 6px;
    padding-bottom: 2px;
  }
  .children-chips-wrap::-webkit-scrollbar {
    display: none;
  }
  .child-chip-btn {
    padding: 4px 10px;
    font-size: 11.5px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* Dynamic Products Grid - Beautiful 2 Columns */
  .dynamic-products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px;
  }
  .dynamic-prod-card {
    border-radius: 10px;
  }
  .prod-card-thumb {
    aspect-ratio: 4 / 3;
  }
  .prod-badge-child {
    font-size: 9px;
    padding: 2px 6px;
    top: 6px;
    left: 6px;
  }
  .prod-card-info {
    padding: 10px;
  }
  .prod-sku {
    font-size: 9.5px;
    margin-bottom: 2px;
  }
  .prod-title {
    font-size: 12.5px;
    line-height: 1.35;
    height: 34px;
    margin: 0 0 6px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
  .prod-specs-box {
    font-size: 10.5px;
    padding: 6px 8px;
    gap: 3px;
    margin-bottom: 8px;
  }
  .spec-row .k {
    font-size: 9.5px;
  }
  .spec-row .v {
    font-size: 10px;
  }
  .prod-card-footer {
    padding-top: 6px;
    gap: 4px;
  }
  .btn-card-rfq {
    width: 100%;
    padding: 7px 4px;
    font-size: 11px;
    border-radius: 5px;
  }
  .btn-card-view {
    display: none;
  }

  /* Pagination Bar on Mobile */
  .cat-block-pagination {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    text-align: center;
  }
  .cat-page-meta {
    font-size: 12px;
  }
  .btn-cat-nav,
  .btn-cat-page-num {
    height: 34px;
    min-width: 34px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .prod-simple-hero .wrap,
  .prod-catalog-body .wrap {
    padding: 0 12px;
  }
  .cat-section-block {
    padding: 14px 10px;
  }
  .dynamic-products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px;
  }
  .prod-card-info {
    padding: 8px;
  }
  .prod-title {
    font-size: 11.5px;
    height: 32px;
  }
  .btn-card-rfq {
    font-size: 10.5px;
    padding: 6px 3px;
  }
}

/* ==========================================================================
   6. SINGLE CATEGORY ARCHIVE PAGE (.single-category-page)
   Hiển thị trang chi tiết chuyên sâu cho từng danh mục riêng (/flanges/, /valve/...)
   ========================================================================== */

.single-category-page {
  background: #f8fafc;
  min-height: 100vh;
  padding-bottom: 60px;
}

/* 6.1 Hero Header */
.cat-page-hero {
  background: linear-gradient(135deg, #091a2b 0%, #0f2942 55%, var(--cat-color) 140%);
  color: #ffffff;
  padding: 40px 0 46px;
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid var(--cat-color);
}

.cat-page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    radial-gradient(rgba(56, 189, 248, 0.05) 1px, transparent 1px);
  background-size: 24px 24px, 48px 48px;
  opacity: 0.8;
  pointer-events: none;
}

.cat-page-hero .wrap {
  position: relative;
  z-index: 2;
}

.cat-page-hero .breadcrumb {
  margin-bottom: 18px;
}

.cat-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #38bdf8;
  margin-bottom: 14px;
}

.cat-hero-heading {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 900;
  color: #ffffff;
  margin: 0 0 10px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.cat-hero-sub {
  font-size: clamp(15px, 1.8vw, 18px);
  color: #94a3b8;
  max-width: 820px;
  margin: 0 0 24px;
  line-height: 1.55;
  font-weight: 500;
}

.cat-hero-standards-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-std-pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #e2e8f0;
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
  backdrop-filter: blur(4px);
}

.hero-std-pill.highlight {
  background: rgba(2, 132, 199, 0.35);
  border-color: #38bdf8;
  color: #38bdf8;
  font-weight: 700;
}

/* 6.2 Full Editorial Content Section */
.cat-full-content-section {
  margin-top: -24px;
  position: relative;
  z-index: 5;
  margin-bottom: 40px;
}

.cat-full-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.08);
  padding: 32px;
}

.cat-full-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 36px;
  align-items: flex-start;
}

/* Sidebar Media & Quick Contact */
.cat-full-media-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 90px;
}

.cat-full-img-box {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: #0f172a;
  border: 1px solid #cbd5e1;
}

.cat-full-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cat-full-tag {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.95), transparent);
  padding: 24px 16px 12px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cat-full-tag strong {
  font-size: 13px;
  letter-spacing: 0.05em;
  color: #38bdf8;
}

.cat-full-tag span {
  font-size: 11.5px;
  color: #cbd5e1;
}

.cat-quick-contact-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cat-quick-contact-box h4 {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.cat-quick-contact-box p {
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
}

.btn-cat-hotline {
  background: #0f2942;
  color: #ffffff !important;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 800;
  padding: 10px 14px;
  border-radius: 8px;
  text-align: center;
  transition: all 0.2s;
  display: block;
}

.btn-cat-hotline:hover {
  background: #173f75;
  transform: translateY(-1px);
}

.btn-cat-rfq-scroll {
  background: #ffffff;
  color: #0284c7 !important;
  border: 1.5px solid #0284c7;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 8px;
  text-align: center;
  transition: all 0.2s;
  display: block;
}

.btn-cat-rfq-scroll:hover {
  background: #f0f9ff;
}

/* Editorial Content Body */
.cat-full-text-side {
  padding-left: 10px;
}

.cat-editorial-prose {
  font-size: 15px;
  line-height: 1.8;
  color: #334155;
  white-space: normal;
}

.cat-editorial-prose a {
  color: var(--cat-color);
  font-weight: 700;
  text-decoration: underline;
}

.cat-editorial-prose strong,
.cat-editorial-prose b {
  color: #0f172a;
  font-weight: 700;
}

/* 6.3 Subcategories Navigation Strip */
.cat-subnav-strip {
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.subnav-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.subnav-label {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
  white-space: nowrap;
}

.subnav-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.subnav-chip {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #1e293b;
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
}

.subnav-chip:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.subnav-chip.active {
  background: var(--cat-color);
  color: #ffffff !important;
  border-color: var(--cat-color);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.15);
}

/* 6.4 Products Archive Section */
.cat-products-archive {
  padding: 40px 0 20px;
}

.archive-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 2px solid #e2e8f0;
}

.archive-header-row h2 {
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px;
}

.archive-sub {
  font-size: 14px;
  color: #64748b;
  margin: 0;
}

.archive-count-badge {
  font-size: 13px;
  color: #475569;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 6px 14px;
  border-radius: 8px;
  white-space: nowrap;
}

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

.cat-prod-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.cat-prod-card:hover {
  transform: translateY(-4px);
  border-color: var(--cat-color);
  box-shadow: 0 12px 24px -6px rgba(15, 23, 42, 0.12);
}

.cat-prod-card .prod-thumb-area {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #0f172a;
  overflow: hidden;
}

.cat-prod-card .prod-thumb-area img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.cat-prod-card:hover .prod-thumb-area img {
  transform: scale(1.06);
}

.prod-sub-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}

.cat-prod-card .prod-details-area {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.prod-sku-code {
  font-size: 11px;
  font-family: monospace;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 6px;
}

.cat-prod-card .prod-title {
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 10px;
}

.cat-prod-card .prod-title a {
  color: #0f172a;
  text-decoration: none;
  transition: color 0.2s;
}

.cat-prod-card .prod-title a:hover {
  color: var(--cat-color);
}

.prod-specs-mini {
  background: #f8fafc;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 11.5px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.prod-specs-mini span {
  color: #64748b;
}

.prod-specs-mini b {
  color: #1e293b;
}

.prod-actions-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
}

.btn-quick-view {
  background: #f1f5f9;
  color: #334155;
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-quick-view:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.cat-empty-box {
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  color: #64748b;
  font-size: 14px;
}

/* 6.5 RFQ Footer Box */
.cat-rfq-footer-box {
  margin-top: 40px;
}

.cat-rfq-container {
  background: linear-gradient(135deg, #091a2b 0%, #0f2942 100%);
  border-radius: 16px;
  padding: 36px 40px;
  color: #ffffff;
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 40px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.2);
}

.rfq-kicker {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #38bdf8;
  margin-bottom: 8px;
}

.cat-rfq-left h2 {
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 800;
  color: #ffffff !important;
  margin: 0 0 10px;
}

.cat-rfq-left p {
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 24px;
}

.rfq-hotlines {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rfq-hotlines div {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 8px 14px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
}

.rfq-hotlines span {
  color: #cbd5e1;
}

.rfq-hotlines a {
  color: #38bdf8;
  font-weight: 800;
  text-decoration: none;
  font-size: 14.5px;
}

.cat-rfq-form {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cat-rfq-form input,
.cat-rfq-form textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.95);
  color: #0f172a;
  font-size: 13.5px;
  box-sizing: border-box;
}

.cat-rfq-form input:focus,
.cat-rfq-form textarea:focus {
  outline: none;
  border-color: #38bdf8;
  background: #ffffff;
}

.btn-submit-cat-rfq {
  background: var(--prod-red);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 4px;
}

.btn-submit-cat-rfq:hover {
  background: #a81c25;
}

.rfq-success-inline {
  display: none;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid #10b981;
  color: #a7f3d0;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12.5px;
  margin-top: 6px;
}

/* 6.4.1 Category Products Pagination */
.cat-pagination-nav {
  margin-top: 36px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 24px;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
  clear: both;
}

.cat-pagination-nav .pagination-meta-info {
  font-size: 13.5px;
  color: #64748b;
  margin: 0;
  white-space: nowrap;
}

.cat-pagination-nav .pagination-meta-info strong {
  color: #0f172a;
}

.cat-pagination-nav .pagination-links-container {
  display: flex !important;
  align-items: center !important;
}

.cat-pagination-nav ul.pagination-items-list {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 6px !important;
  list-style: none !important;
  list-style-type: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.cat-pagination-nav ul.pagination-items-list li.pagination-item {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  list-style-type: none !important;
  display: inline-flex !important;
}

.cat-pagination-nav .page-numbers {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: #1e293b !important;
  text-decoration: none !important;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  transition: all 0.2s ease;
  box-sizing: border-box;
  line-height: 1;
}

.cat-pagination-nav a.page-numbers:hover {
  background: #f8fafc;
  color: var(--cat-color) !important;
  border-color: var(--cat-color);
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

.cat-pagination-nav span.page-numbers.current {
  background: var(--cat-color) !important;
  border-color: var(--cat-color) !important;
  color: #ffffff !important;
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.15);
}

.cat-pagination-nav a.prev,
.cat-pagination-nav a.next {
  background: #f8fafc;
  padding: 0 14px;
}

.cat-pagination-nav a.prev:hover,
.cat-pagination-nav a.next:hover {
  background: #e2e8f0;
  color: #0f172a !important;
}

@media (max-width: 640px) {
  .cat-pagination-nav {
    flex-direction: column !important;
    gap: 12px !important;
    align-items: center !important;
    padding: 16px !important;
    text-align: center;
  }
}

/* ==========================================================================
   6.6 CATEGORY ARCHIVE RESPONSIVE OVERHAUL (taxonomy-product_cat.php)
   Tối ưu hóa trang chi tiết danh mục riêng cho di động
   ========================================================================== */

@media (max-width: 1024px) {
  .cat-full-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .cat-full-media-side {
    position: static;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 18px;
  }
  .cat-products-grid-layout {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
  .cat-rfq-container {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .cat-page-hero {
    padding: 26px 0 30px;
  }
  .cat-page-hero .wrap,
  .cat-full-content-section .wrap,
  .cat-products-archive .wrap {
    padding: 0 16px;
  }
  .cat-hero-heading {
    font-size: 24px;
    line-height: 1.3;
    margin-bottom: 8px;
  }
  .cat-hero-sub {
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 14px;
  }
  .cat-hero-standards-bar {
    gap: 6px;
  }
  .hero-std-pill {
    font-size: 10.5px;
    padding: 3px 8px;
  }

  /* Editorial Card on Mobile */
  .cat-full-card {
    padding: 16px 14px;
    border-radius: 14px;
    margin-bottom: 20px;
  }
  .cat-full-media-side {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .cat-full-img-box {
    height: 160px;
    border-radius: 8px;
  }
  .cat-quick-contact-box {
    padding: 14px 12px;
    border-radius: 8px;
  }
  .cat-quick-contact-box h4 {
    font-size: 13.5px;
  }
  .cat-quick-contact-box p {
    font-size: 12px;
    line-height: 1.45;
  }
  .btn-cat-hotline,
  .btn-cat-rfq-scroll {
    width: 100%;
    justify-content: center;
    padding: 9px 12px;
    font-size: 12.5px;
    border-radius: 6px;
  }
  .cat-editorial-prose {
    font-size: 13px;
    line-height: 1.65;
  }

  /* Subnav chips strip */
  .cat-subnav-strip {
    margin-bottom: 20px;
  }
  .cat-subnav-strip .subnav-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 14px;
  }
  .subnav-label {
    font-size: 11.5px;
  }
  .subnav-chips {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    width: 100%;
    gap: 6px;
    padding-bottom: 2px;
  }
  .subnav-chips::-webkit-scrollbar {
    display: none;
  }
  .subnav-chip {
    padding: 5px 12px;
    font-size: 11.5px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* Products Archive Header & 2-Col Grid */
  .archive-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 14px;
  }
  .archive-header-row h2 {
    font-size: 18px;
  }
  .archive-sub {
    font-size: 12px;
  }
  .archive-count-badge {
    font-size: 11.5px;
  }

  .cat-products-grid-layout {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px;
  }
  .cat-prod-card {
    border-radius: 10px;
  }
  .prod-thumb-area {
    aspect-ratio: 4 / 3;
  }
  .prod-sub-tag {
    font-size: 9px;
    padding: 2px 6px;
    top: 6px;
    left: 6px;
  }
  .prod-details-area {
    padding: 10px;
  }
  .prod-sku-code {
    font-size: 9.5px;
  }
  .prod-title {
    font-size: 12.5px;
    line-height: 1.35;
    height: 34px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
  .prod-specs-mini {
    font-size: 10.5px;
    padding: 5px 6px;
    margin-bottom: 8px;
  }
  .prod-actions-row {
    padding-top: 6px;
    gap: 4px;
  }
  .btn-quick-rfq-modal {
    width: 100%;
    padding: 7px 4px;
    font-size: 11px;
    border-radius: 5px;
    justify-content: center;
  }
  .btn-quick-view {
    display: none;
  }
}

@media (max-width: 480px) {
  .cat-page-hero .wrap,
  .cat-full-content-section .wrap,
  .cat-products-archive .wrap {
    padding: 0 12px;
  }
  .cat-full-card {
    padding: 14px 10px;
  }
  .cat-products-grid-layout {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px;
  }
  .prod-details-area {
    padding: 8px;
  }
  .prod-title {
    font-size: 11.5px;
    height: 32px;
  }
  .btn-quick-rfq-modal {
    font-size: 10.5px;
    padding: 6px 3px;
  }
}

/* ==========================================================================
   7. SINGLE PRODUCT PAGE LAYOUT (.single-product-page-layout)
   Thiết kế trang chi tiết sản phẩm B2B công nghiệp chuẩn quốc tế
   ========================================================================== */

.single-product-page-layout {
  background: #f8fafc;
  min-height: 100vh;
  padding-bottom: 60px;
}

/* 7.1 Breadcrumbs Bar */
.single-prod-breadcrumb-bar {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 14px 0;
}

.single-prod-breadcrumb-bar .breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #64748b;
  margin: 0;
}

.single-prod-breadcrumb-bar .breadcrumb a {
  color: #0284c7;
  text-decoration: none;
  transition: color 0.2s;
}

.single-prod-breadcrumb-bar .breadcrumb a:hover {
  text-decoration: underline;
}

.single-prod-breadcrumb-bar .breadcrumb .sep {
  color: #cbd5e1;
}

.single-prod-breadcrumb-bar .breadcrumb .current {
  color: #0f172a;
  font-weight: 700;
}

/* 7.2 Showcase Section */
.single-prod-showcase-section {
  padding: 36px 0 44px;
}

.single-prod-grid {
  display: grid;
  grid-template-columns: 480px 1fr;
  gap: 48px;
  align-items: flex-start;
}

/* Media Column (Left) */
.single-prod-media-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.single-prod-gallery-box {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.single-prod-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.single-prod-gallery-box:hover .single-prod-main-img {
  transform: scale(1.05);
}

.prod-floating-badges {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  pointer-events: none;
}

.prod-floating-badges .badge-pill {
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  width: fit-content;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.prod-floating-badges .badge-pill.highlight {
  background: rgba(2, 132, 199, 0.9);
  color: #ffffff;
  border-color: #38bdf8;
}

/* Trust Guarantees Box */
.prod-trust-guarantees {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.trust-card-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.02);
}

.trust-card-item .t-icon {
  font-size: 22px;
  flex-shrink: 0;
}

.trust-card-item .t-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.trust-card-item .t-text strong {
  font-size: 13.5px;
  color: #0f172a;
  font-weight: 800;
}

.trust-card-item .t-text span {
  font-size: 12px;
  color: #64748b;
  line-height: 1.4;
}

/* Details Column (Right) */
.single-prod-details-col {
  display: flex;
  flex-direction: column;
}

.prod-kicker-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 41, 66, 0.06);
  border: 1px solid rgba(15, 41, 66, 0.12);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--cat-color);
  width: fit-content;
  margin-bottom: 12px;
}

.prod-kicker-tag .sub-sep {
  opacity: 0.5;
}

.prod-kicker-tag .sub-name {
  color: #0284c7;
}

.single-prod-title {
  font-size: clamp(24px, 2.8vw, 34px);
  font-weight: 900;
  line-height: 1.25;
  color: #0f172a;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

.single-prod-meta-strip {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e2e8f0;
  font-size: 13px;
}

.single-prod-meta-strip .sku-item .code {
  font-family: monospace;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 3px 8px;
  border-radius: 4px;
  color: #0f2942;
  font-weight: 800;
  font-size: 12.5px;
}

.single-prod-meta-strip .stock-status.in-stock {
  color: #16a34a;
  font-weight: 700;
}

.single-prod-meta-strip .origin-item {
  color: #64748b;
}

/* Technical Specification Matrix */
.prod-specs-matrix-card {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 16px -4px rgba(15, 23, 42, 0.06);
  margin-bottom: 24px;
}

.matrix-head {
  background: linear-gradient(135deg, #091a2b 0%, #0f2942 100%);
  color: #ffffff;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.matrix-head h3 {
  font-size: 14.5px;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  letter-spacing: 0.02em;
}

.matrix-doc-badge {
  background: rgba(56, 189, 248, 0.18);
  border: 1px solid #38bdf8;
  color: #38bdf8;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}

.matrix-rows {
  display: flex;
  flex-direction: column;
}

.m-row {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 12px;
  padding: 10px 18px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13.5px;
  align-items: center;
}

.m-row:nth-child(even) {
  background: #f8fafc;
}

.m-row:last-child {
  border-bottom: none;
}

.m-key {
  color: #64748b;
  font-weight: 600;
}

.m-val {
  color: #1e293b;
}

.m-val strong {
  color: #0f172a;
}

.m-val .highlight-text {
  color: #0284c7;
  font-weight: 700;
}

/* Call to Action Buttons */
.single-prod-cta-box {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.btn-main-rfq {
  background: var(--prod-red);
  color: #ffffff !important;
  border: none;
  border-radius: 8px;
  padding: 13px 22px;
  font-size: 14.5px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.25);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-main-rfq:hover {
  background: #b91c1c;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.35);
}

.btn-hotline-call {
  background: #ffffff;
  border: 1.5px solid #0f2942;
  color: #0f2942 !important;
  border-radius: 8px;
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
}

.btn-hotline-call strong {
  margin-left: 4px;
  color: #0284c7;
}

.btn-hotline-call:hover {
  background: #0f2942;
  color: #ffffff !important;
}

.btn-hotline-call:hover strong {
  color: #38bdf8;
}

.btn-scroll-rfq {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #475569 !important;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-scroll-rfq:hover {
  background: #e2e8f0;
  color: #0f172a !important;
}

.prod-consult-note {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12.5px;
  line-height: 1.5;
}

/* 7.3 Detailed Technical Tabs */
.single-prod-tabs-section {
  margin-top: 10px;
  margin-bottom: 40px;
}

.prod-tabs-wrapper {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.prod-tabs-nav {
  display: flex;
  border-bottom: 2px solid #e2e8f0;
  background: #f8fafc;
  overflow-x: auto;
}

.prod-tabs-nav .tab-btn {
  padding: 14px 24px;
  border: none;
  background: transparent;
  font-size: 14px;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
}

.prod-tabs-nav .tab-btn:hover {
  color: #0f172a;
  background: #f1f5f9;
}

.prod-tabs-nav .tab-btn.active {
  color: var(--cat-color);
  background: #ffffff;
  border-bottom-color: var(--cat-color);
}

.prod-tab-panes {
  padding: 32px;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
  animation: fadeIn 0.25s ease;
}

.tab-editorial-content {
  font-size: 15px;
  line-height: 1.8;
  color: #334155;
}

.tab-editorial-content h4 {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  margin: 18px 0 10px;
}

.tab-editorial-content p {
  margin-bottom: 14px;
}

.tab-editorial-content ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

.tab-editorial-content li {
  margin-bottom: 8px;
  line-height: 1.65;
}

/* 7.4 Related Products Section */
.single-prod-related-section {
  padding: 20px 0 40px;
}

.related-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 2px solid #e2e8f0;
}

.rel-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #0284c7;
  display: block;
  margin-bottom: 4px;
}

.related-section-header h2 {
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px;
}

.related-section-header p {
  color: #64748b;
  font-size: 14px;
  margin: 0;
}

.btn-view-all-cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--cat-color) !important;
  text-decoration: none;
  padding: 8px 16px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-view-all-cat:hover {
  background: #f1f5f9;
  border-color: var(--cat-color);
}

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

/* 7.5 Single Product RFQ Box */
.single-prod-rfq-box {
  margin-top: 20px;
}

/* ==========================================================================
   7.6 SINGLE PRODUCT RESPONSIVE OVERHAUL (single-product.php)
   Tối ưu hóa trang chi tiết sản phẩm cho di động, bao gồm Floating Action Bar
   ========================================================================== */

/* Mobile Sticky Action Bar Defaults */
.single-prod-mobile-bar {
  display: none;
}

@media (max-width: 1024px) {
  .single-prod-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .related-products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
}

@media (max-width: 768px) {
  .single-product-page-layout {
    padding-bottom: 80px; /* Chừa khoảng trống cho thanh floating bar ở đáy */
  }

  .single-prod-breadcrumb-bar {
    padding: 10px 0;
  }
  .single-prod-breadcrumb-bar .wrap,
  .single-prod-showcase-section .wrap,
  .single-prod-tabs-section .wrap,
  .single-prod-related-section .wrap,
  .single-prod-rfq-box .wrap {
    padding: 0 16px;
  }

  .single-prod-breadcrumb-bar .breadcrumb {
    font-size: 11.5px;
    gap: 5px;
    line-height: 1.4;
  }

  .single-prod-showcase-section {
    padding: 16px 0 24px;
  }
  .single-prod-grid {
    gap: 18px;
  }

  /* Gallery Image Box */
  .single-prod-gallery-box {
    border-radius: 12px;
    aspect-ratio: 4 / 3;
  }
  .prod-floating-badges {
    bottom: 8px;
    left: 8px;
    right: 8px;
    gap: 4px;
  }
  .prod-floating-badges .badge-pill {
    font-size: 9.5px;
    padding: 2.5px 7px;
  }

  /* Trust Guarantees */
  .prod-trust-guarantees {
    gap: 8px;
  }
  .trust-card-item {
    padding: 8px 12px;
    gap: 10px;
    border-radius: 8px;
  }
  .trust-card-item .t-icon {
    font-size: 18px;
  }
  .trust-card-item .t-text strong {
    font-size: 12px;
  }
  .trust-card-item .t-text span {
    font-size: 11px;
    line-height: 1.35;
  }

  /* Title & Meta */
  .prod-kicker-tag {
    font-size: 10.5px;
    padding: 3px 10px;
    margin-bottom: 8px;
  }
  .single-prod-title {
    font-size: clamp(20px, 5.2vw, 24px);
    line-height: 1.3;
    margin-bottom: 10px;
  }
  .single-prod-meta-strip {
    gap: 8px;
    font-size: 12px;
    margin-bottom: 14px;
    padding-bottom: 12px;
  }

  /* Technical Specs Matrix on Mobile */
  .prod-specs-matrix-card {
    border-radius: 10px;
    margin-bottom: 16px;
  }
  .matrix-head {
    padding: 9px 14px;
  }
  .matrix-head h3 {
    font-size: 13.5px;
  }
  .matrix-doc-badge {
    font-size: 10px;
    padding: 2px 6px;
  }
  .m-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 9px 14px;
  }
  .m-key {
    font-size: 11px;
    color: #64748b;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
  }
  .m-val {
    font-size: 13px;
    color: #0f172a;
    line-height: 1.45;
  }

  /* In-page CTA buttons */
  .single-prod-cta-box {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-bottom: 12px;
  }
  .btn-main-rfq,
  .btn-hotline-call,
  .btn-scroll-rfq {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 12px 14px;
    font-size: 13.5px;
    border-radius: 8px;
  }
  .prod-consult-note {
    font-size: 11.5px;
    padding: 8px 12px;
  }

  /* Technical Tabs on Mobile */
  .single-prod-tabs-section {
    margin-top: 10px;
    margin-bottom: 24px;
  }
  .prod-tabs-wrapper {
    border-radius: 12px;
  }
  .prod-tabs-nav {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px;
    gap: 4px;
  }
  .prod-tabs-nav::-webkit-scrollbar {
    display: none;
  }
  .prod-tabs-nav .tab-btn {
    padding: 9px 14px;
    font-size: 12px;
    white-space: nowrap;
    flex-shrink: 0;
    border-radius: 6px;
    border-bottom: none;
  }
  .prod-tabs-nav .tab-btn.active {
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  }
  .prod-tab-panes {
    padding: 16px 14px;
  }
  .tab-editorial-content {
    font-size: 13px;
    line-height: 1.65;
  }
  .tab-editorial-content h4 {
    font-size: 14px;
    margin: 12px 0 6px;
  }

  /* Related Products on Mobile */
  .single-prod-related-section {
    padding: 14px 0 28px;
  }
  .related-section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 10px;
  }
  .related-section-header h2 {
    font-size: 18px;
  }
  .related-section-header p {
    font-size: 12px;
  }
  .btn-view-all-cat {
    width: 100%;
    justify-content: center;
    padding: 8px 12px;
    font-size: 12px;
  }
  .related-products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px;
  }

  /* Floating Bottom Action Bar for Single Product */
  .single-prod-mobile-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 998;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border-top: 1px solid #cbd5e1;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
    gap: 8px;
    box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.12);
  }
  .m-bar-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 44px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.15s ease;
  }
  .m-bar-btn:active {
    transform: scale(0.97);
  }
  .m-bar-call {
    background: #0f2942;
    color: #ffffff !important;
  }
  .m-bar-call .m-icon {
    font-size: 15px;
    color: #38bdf8;
  }
  .m-bar-rfq {
    background: #dc2626;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.35);
  }
  .m-bar-rfq .m-icon {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .single-prod-breadcrumb-bar .wrap,
  .single-prod-showcase-section .wrap,
  .single-prod-tabs-section .wrap,
  .single-prod-related-section .wrap,
  .single-prod-rfq-box .wrap {
    padding: 0 12px;
  }
  .single-prod-gallery-box {
    aspect-ratio: 1 / 1;
  }
  .single-prod-title {
    font-size: 20px;
  }
  .related-products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px;
  }
  .cat-rfq-container {
    padding: 16px 12px;
    border-radius: 12px;
  }
  .rfq-hotlines {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .form-row-2 {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .cat-rfq-form input,
  .cat-rfq-form textarea {
    font-size: 13px;
  }
  .btn-submit-cat-rfq {
    font-size: 13.5px;
    padding: 12px 14px;
  }
}


