/* ==========================================================================
   MS MODERN PRODUCT PAGE STYLESHEET (MỰC IN SÀI GÒN - BENTO GRID 2026)
   ========================================================================== */

/* Fix screen reader text visibility bug */
.single-product-info .screen-reader-text,
.ms-modern-product-page .screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

html {
  scroll-behavior: smooth;
}

#ms-product-reviews-section,
.ms-bento-card {
  scroll-margin-top: 90px;
}

/* Base Container & Grid */
.ms-modern-product-page {
  background-color: #f8fafc;
  padding: 12px 0 36px;
  color: #1e293b;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.ms-product-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 15px;
}

/* ==========================================================================
   1. HERO TOP SECTION: GALLERY & BUYING PANEL
   ========================================================================== */
.ms-product-hero-section {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  border: 1px solid #f1f5f9;
  padding: 20px 22px;
  margin-bottom: 20px;
}

.ms-hero-row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -12px;
}

.ms-hero-left,
.ms-hero-right {
  padding: 0 12px;
  box-sizing: border-box;
}

/* Gallery & Thumbnails */
.ms-gallery-main-wrapper {
  position: relative;
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 14px;
  overflow: hidden;
  text-align: center;
  padding: 12px;
  margin-bottom: 14px;
}

.ms-hero-round-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 10;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ed1c24 0%, #b91c1c 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
  box-shadow: 0 4px 14px rgba(237, 28, 36, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.85);
  pointer-events: none;
  text-transform: capitalize;
}

.ms-hero-sale-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  background: #ed1c24;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(237, 28, 36, 0.3);
}

.ms-gallery-main-img {
  width: 100% !important;
  max-height: 440px !important;
  object-fit: contain !important;
  display: block;
  margin: 0 auto;
  transition: transform 0.3s ease;
}

@media (max-width: 768px) {
  .ms-gallery-main-img {
    max-height: 330px !important;
  }
}

.ms-gallery-main-img:hover {
  transform: scale(1.02);
}

.ms-thumbnails-slider {
  margin: 0 -5px;
}

.ms-thumb-item {
  padding: 0 5px;
  box-sizing: border-box;
}

.ms-thumb-box {
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: #ffffff;
  padding: 4px;
  transition: all 0.2s ease;
}

.ms-thumb-box:hover,
.slick-current .ms-thumb-box {
  border-color: #ed1c24;
  box-shadow: 0 2px 8px rgba(237, 28, 36, 0.2);
}

.ms-thumb-img {
  width: 100% !important;
  height: 64px !important;
  object-fit: contain !important;
}

/* ==========================================================================
   TÍNH NĂNG NỔI BẬT DƯỚI ẢNH GALLERY (MÁY IN / THIẾT BỊ)
   ========================================================================== */
.ms-gallery-features-card {
  display: block;
  clear: both;
  width: 100%;
  box-sizing: border-box;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 12px 12px;
  margin-top: 14px;
  margin-bottom: 16px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.ms-gf-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.ms-gf-item {
  flex: 1 1 25%;
  max-width: 25%;
  min-width: 0;
  text-align: center;
  padding: 0 4px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  box-sizing: border-box;
}

.ms-gf-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 10%;
  height: 80%;
  width: 1px;
  background: #e2e8f0;
}

.ms-gf-icon {
  font-size: 20px;
  color: #253989;
  line-height: 1;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 5px auto;
  transition: transform 0.2s ease;
}

.ms-gf-icon i {
  color: #253989;
  font-size: 20px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.ms-gf-item:hover .ms-gf-icon i {
  color: #ed1c24;
  transform: translateY(-2px);
}

.ms-gf-label {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.25;
  margin-bottom: 2px;
  text-align: center;
}

.ms-gf-value {
  font-size: 11px;
  color: #64748b;
  line-height: 1.25;
  font-weight: 500;
  text-align: center;
}

.ms-gf-banner {
  display: block;
  width: 100%;
  box-sizing: border-box;
  background: #f0f4ff;
  border: 1px solid #d0dcff;
  border-radius: 8px;
  padding: 8px 12px;
  margin-top: 10px;
  text-align: center;
}

.ms-gf-banner-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #253989;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  line-height: 1.35;
  margin-bottom: 2px;
}

.ms-gf-banner-title i {
  color: #ed1c24;
  font-size: 14px;
}

.ms-gf-banner-desc {
  font-size: 11.5px;
  color: #475569;
  line-height: 1.35;
  margin: 0;
}

/* Hero Right: Product Info */
.ms-hero-info-card {
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   BREADCRUMB ĐẦU TRANG (CHUẨN UX E-COMMERCE HIỆN ĐẠI)
   ========================================================================== */
.ms-product-breadcrumb-wrap {
  margin: 10px 0 16px 0;
  width: 100%;
}

.ms-product-breadcrumb-wrap nav.woocommerce-breadcrumb {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  font-size: 13.5px !important;
  line-height: 1.5 !important;
  color: #64748b !important;
}

.ms-product-breadcrumb-wrap nav.woocommerce-breadcrumb a {
  color: #475569 !important;
  font-style: normal !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
}

.ms-product-breadcrumb-wrap nav.woocommerce-breadcrumb a:hover {
  color: #ed1c24 !important;
}

.ms-product-breadcrumb-wrap .ms-bc-sep {
  color: #94a3b8;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  margin: 0 2px;
}

.ms-product-breadcrumb-wrap .ms-bc-sep i {
  font-size: 9px;
}

.ms-product-breadcrumb-wrap .ms-bc-item {
  color: #1e293b;
  font-weight: 600;
}

/* Breadcrumb trên Mobile: Nằm trên đỉnh đầu, gọn gàng, trượt ngang 1 chạm */
@media (max-width: 768px) {
  .ms-product-breadcrumb-wrap {
    margin: 6px 0 14px 0;
    background: #f8fafc;
    border: 1px solid #edf2f7;
    border-radius: 10px;
    padding: 8px 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  }

  .ms-product-breadcrumb-wrap nav.woocommerce-breadcrumb {
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    font-size: 12.5px !important;
    scrollbar-width: none !important;
  }

  .ms-product-breadcrumb-wrap nav.woocommerce-breadcrumb::-webkit-scrollbar {
    display: none !important;
  }
}

.ms-product-title {
  font-size: 24px;
  font-weight: 800;
  color: #253989;
  line-height: 1.25;
  margin: 0 0 4px 0;
}

.ms-product-sub-headline {
  font-size: 14px;
  font-weight: 600;
  color: #334155;
  margin: 0 0 6px 0;
}

.ms-product-sub-headline i {
  color: #16a34a;
  margin-right: 4px;
}

.ms-product-short-desc {
  font-size: 13.5px;
  line-height: 1.5;
  color: #475569;
  margin-bottom: 8px;
}

.ms-product-short-desc p {
  margin: 0;
}

/* Social Proof Bar */
.ms-social-proof-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: #64748b;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid #f1f5f9;
}

.ms-stars-wrap .ms-star-icon {
  font-size: 13px;
  letter-spacing: -2px;
  margin-right: 4px;
}

.ms-stars-wrap .ms-rating-score {
  font-weight: 800;
  color: #d97706;
}

.ms-proof-sep {
  color: #cbd5e1;
}

.ms-reviews-count i,
.ms-sold-count i {
  color: #ed1c24;
  margin-right: 4px;
}

/* Variations Pill Swatches - Compact & Refined UX */
.ms-variations-box {
  margin-bottom: 10px;
}

.ms-var-title {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
}

.ms-var-title i {
  color: #253989;
  margin-right: 4px;
}

.lenam_variations_swatch {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px 8px !important;
  padding: 0 !important;
  list-style: none !important;
  margin: 0 !important;
}

.lenam_variations_swatch li {
  margin: 0 !important;
  padding: 0 !important;
  max-width: unset !important;
  flex: 0 0 auto !important;
}

.lenam_variations_swatch li a {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 5px 12px !important;
  border-radius: 6px !important;
  border: 1.5px solid #b8d0ff !important;
  background: #ffffff !important;
  color: #1e293b !important;
  text-decoration: none !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  transition: all 0.2s ease !important;
  min-width: unset !important;
  position: relative !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
}

.lenam_variations_swatch li a .variable_name {
  font-size: 11.5px !important;
  font-weight: 700 !important;
  color: #1e293b !important;
  margin-bottom: 1px !important;
  background: transparent !important;
  padding: 0 !important;
  line-height: 1.2 !important;
}

.lenam_variations_swatch li a .price,
.lenam_variations_swatch li a .amount {
  font-size: 12px !important;
  font-weight: 800 !important;
  color: #ed1c24 !important;
  background: transparent !important;
  padding: 0 !important;
  line-height: 1.2 !important;
}

/* Trạng thái khi trỏ chuột (Hover) hoặc khi Click chọn biến thể (Active) */
.woocommerce div.product .lenam_variations_swatch li a:hover,
.lenam_variations_swatch li a:hover,
.woocommerce div.product .lenam_variations_swatch li a.is_active,
.lenam_variations_swatch li a.is_active {
  border: 1.5px solid #3366ff !important;
  border-color: #3366ff !important;
  background: #f0f5ff !important;
  color: #0052cc !important;
  box-shadow: 0 0 0 1px #3366ff, 0 2px 8px rgba(51, 102, 255, 0.15) !important;
  text-decoration: none !important;
}

.woocommerce div.product .lenam_variations_swatch li a:hover .variable_name,
.lenam_variations_swatch li a:hover .variable_name,
.woocommerce div.product .lenam_variations_swatch li a.is_active .variable_name,
.lenam_variations_swatch li a.is_active .variable_name {
  color: #0052cc !important;
  font-weight: 700 !important;
  background: transparent !important;
}

.woocommerce div.product .lenam_variations_swatch li a:hover .price,
.lenam_variations_swatch li a:hover .price,
.woocommerce div.product .lenam_variations_swatch li a:hover .amount,
.lenam_variations_swatch li a:hover .amount,
.woocommerce div.product .lenam_variations_swatch li a:hover bdi,
.lenam_variations_swatch li a:hover bdi,
.woocommerce div.product .lenam_variations_swatch li a.is_active .price,
.lenam_variations_swatch li a.is_active .price,
.woocommerce div.product .lenam_variations_swatch li a.is_active .amount,
.lenam_variations_swatch li a.is_active .amount,
.woocommerce div.product .lenam_variations_swatch li a.is_active bdi,
.lenam_variations_swatch li a.is_active bdi {
  color: #d70018 !important;
  font-weight: 700 !important;
  background: transparent !important;
}

.woocommerce div.product .lenam_variations_swatch a span,
.lenam_variations_swatch a span {
  background: transparent !important;
  padding: 0 !important;
}

/* Khung Note giải thích chi tiết biến thể sản phẩm */
.ms-variation-note-box {
  background: #f8faff !important;
  border: 1.5px solid #3366ff !important;
  border-radius: 6px !important;
  padding: 14px 18px !important;
  margin-top: 14px !important;
  margin-bottom: 14px !important;
  box-sizing: border-box !important;
  box-shadow: 0 2px 8px rgba(51, 102, 255, 0.08) !important;
  animation: msFadeIn 0.2s ease-in-out;
}

.ms-variation-note-box .ms-variation-note-price {
  display: none !important;
}

/* Hide redundant dropdown table & duplicate box in purchase actions */
.woocommerce div.product .summary form.cart .variations,
.devvn-popup-quickbuy table.variations,
.ms-purchase-actions-box .single_variation_wrap .single_variation {
  display: none !important;
}

.single_variation_wrap {
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
}

/* Price & Stock Box */
.ms-price-stock-box {
  background: #f8fafc;
  border: 1px solid #edf2f7;
  border-radius: 10px;
  padding: 8px 14px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.ms-price-main-wrap {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.ms-price-tag {
  font-size: 24px;
  font-weight: 800;
  color: #ed1c24;
  line-height: 1;
}

.ms-price-tag del {
  font-size: 14px;
  font-weight: 500;
  color: #94a3b8;
  margin-left: 6px;
}

.ms-price-tag ins {
  text-decoration: none;
}

.ms-discount-tag {
  background: #fee2e2;
  color: #dc2626;
  font-size: 11.5px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}

.ms-stock-delivery-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.ms-stock-in {
  color: #16a34a;
  font-size: 12.5px;
  font-weight: 700;
}

.ms-stock-out {
  color: #dc2626;
  font-size: 12.5px;
  font-weight: 700;
}

.ms-delivery-badge {
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
}

.ms-delivery-badge i {
  color: #253989;
}

/* Purchase Actions Box (Quantity + Dual Balanced CTA Buttons) */
.ms-purchase-actions-box {
  margin-bottom: 10px;
}

.ms-purchase-actions-box {
  margin-bottom: 12px;
  width: 100% !important;
}

.ms-purchase-actions-box form.cart,
.ms-purchase-actions-box .single_variation_wrap,
.ms-purchase-actions-box .woocommerce-variation-add-to-cart {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

/* Quantity Input Plus/Minus (Nằm cùng 1 hàng, gọn gàng 90px) */
.ms-quantity-wrap {
  display: inline-flex !important;
  align-items: center !important;
  height: 44px !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  overflow: hidden !important;
  padding: 0 !important;
  margin: 0 !important;
  flex: 0 0 90px !important;
  width: 90px !important;
  max-width: 90px !important;
  box-sizing: border-box !important;
}

.ms-qty-btn {
  width: 28px !important;
  height: 100% !important;
  background: #f8fafc !important;
  border: none !important;
  color: #334155 !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.15s ease !important;
  padding: 0 !important;
}

.ms-qty-btn:hover {
  background: #e2e8f0 !important;
  color: #ed1c24 !important;
}

.ms-quantity-wrap input.qty {
  width: 34px !important;
  height: 100% !important;
  border: none !important;
  text-align: center !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  padding: 0 !important;
  margin: 0 !important;
  -moz-appearance: textfield;
}

.ms-quantity-wrap input.qty::-webkit-outer-spin-button,
.ms-quantity-wrap input.qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Add to Cart Button (Chiếm 50% phần còn lại của hàng - Brand Navy Blue) */
.ms-purchase-actions-box .single_add_to_cart_button {
  flex: 1 1 0 !important;
  width: 50% !important;
  min-width: 0 !important;
  height: 44px !important;
  background: #253989 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.1px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 2px 8px rgba(37, 57, 137, 0.22) !important;
  margin: 0 !important;
  padding: 0 10px !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
  overflow: visible !important;
}

.ms-purchase-actions-box .single_add_to_cart_button:hover {
  background: #1a2860 !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(37, 57, 137, 0.35) !important;
}

/* Buy Now Button (Chiếm 50% phần còn lại của hàng - Vivid Red Gradient) */
.ms-purchase-actions-box .ms-btn-buy-now {
  flex: 1 1 0 !important;
  width: 50% !important;
  min-width: 0 !important;
  height: 44px !important;
  background: linear-gradient(135deg, #ed1c24 0%, #d9141b 100%) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.1px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 2px 8px rgba(237, 28, 36, 0.28) !important;
  margin: 0 !important;
  padding: 0 10px !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
  overflow: visible !important;
}

.ms-purchase-actions-box .ms-btn-buy-now:hover {
  background: linear-gradient(135deg, #c61219 0%, #b00f15 100%) !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 14px rgba(237, 28, 36, 0.4) !important;
}

/* ==========================================================================
   Khung Khuyến Mại & Quà Tặng Kèm (Promotion & Gift Box)
   ========================================================================== */
.ms-promotion-gift-box {
  background: #fffdfd;
  border: 1.5px dashed #f87171;
  border-radius: 12px;
  margin-top: 14px;
  margin-bottom: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(237, 28, 36, 0.04);
  transition: all 0.2s ease;
}

.ms-promotion-gift-box:hover {
  border-color: #ed1c24;
  box-shadow: 0 4px 16px rgba(237, 28, 36, 0.09);
}

.ms-promo-header {
  background: linear-gradient(135deg, #ed1c24 0%, #b91c1c 100%);
  color: #ffffff;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ms-promo-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ms-promo-gift-icon {
  font-size: 15px;
  color: #fef08a;
  display: inline-block;
  animation: msGiftWobble 2.5s infinite ease-in-out;
}

@keyframes msGiftWobble {
  0%, 100% { transform: rotate(0deg); }
  10%, 30% { transform: rotate(-10deg); }
  20%, 40% { transform: rotate(10deg); }
  50% { transform: rotate(0deg); }
}

.ms-promo-title {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #ffffff;
}

.ms-promo-badge {
  background: #fef08a;
  color: #991b1b;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 12px;
  line-height: 1.3;
}

.ms-promo-body {
  padding: 12px 14px 10px;
}

.ms-promo-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ms-promo-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.ms-promo-num {
  width: 20px;
  height: 20px;
  min-width: 20px;
  background: #ed1c24;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  margin-top: 1px;
  line-height: 1;
  box-shadow: 0 1px 3px rgba(237, 28, 36, 0.3);
}

.ms-promo-content {
  font-size: 13px;
  color: #1e293b;
  line-height: 1.5;
  font-weight: 500;
}

.ms-promo-footer-note {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed #fecaca;
  font-size: 11.5px;
  color: #dc2626;
  font-style: italic;
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.4;
}

.ms-promo-footer-note i {
  font-size: 12px;
  color: #dc2626;
  flex-shrink: 0;
}

/* ==========================================================================
   2. BENTO GRID SECTIONS: THÔNG TIN CHUYÊN SÂU
   ========================================================================== */
.ms-bento-grid-wrapper {
  margin-bottom: 20px;
}

.ms-bento-row {
  margin-bottom: 20px;
}

.ms-bento-card {
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
  padding: 20px 22px;
  height: 100%;
  box-sizing: border-box;
}

.ms-bento-heading {
  font-size: 16.5px;
  font-weight: 800;
  color: #ed1c24;
  text-transform: uppercase;
  margin: 0 0 5px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

/* ==========================================================================
   KHỐI 2 CỘT: NỘI DUNG SẢN PHẨM (TRÁI) & THÔNG SỐ KỸ THUẬT (PHẢI)
   ========================================================================== */
.ms-content-specs-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
}

.ms-content-col {
  margin-bottom: 20px;
}

.ms-specs-col {
  margin-bottom: 20px;
}

@media (min-width: 992px) {
  .ms-content-col,
  .ms-specs-col {
    margin-bottom: 0 !important;
  }
}

/* Trên Mobile/Tablet: Triệt tiêu padding cột và margin row để các card bên dưới mở rộng bằng khít với các khung bên trên */
@media (max-width: 991px) {
  .ms-content-specs-row.row,
  .ms-bento-row.row {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .ms-content-specs-row > .ms-content-col,
  .ms-content-specs-row > .ms-specs-col,
  .ms-bento-row > .ms-bento-col,
  .ms-bento-row > [class*="col-"] {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

.ms-specs-sidebar-sticky {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

@media (min-width: 992px) {
  .ms-specs-sidebar-sticky {
    position: sticky;
    top: 90px;
  }
}

.ms-card-description {
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
  padding: 20px 22px;
}

.ms-card-description .ms-modern-tabs-container {
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
}

/* Đọc thêm / Thu gọn cho bài viết mô tả (Kéo dài cân đối chuẩn 2 cột Desktop) */
.woocommerce-Tabs-panel--description {
  position: relative;
  transition: max-height 0.4s ease;
}

.woocommerce-Tabs-panel--description.ms-desc-clamped {
  max-height: 750px;
  overflow: hidden;
}

@media (min-width: 992px) {
  .woocommerce-Tabs-panel--description.ms-desc-clamped {
    max-height: 1150px; /* Kéo dài xuống cân bằng hoàn hảo với cột thông số & phụ kiện bên phải */
  }
}

.woocommerce-Tabs-panel--description.ms-desc-expanded {
  max-height: none !important;
  overflow: visible !important;
}

.ms-desc-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.85) 50%, #ffffff 100%);
  pointer-events: none;
  z-index: 5;
}

.ms-desc-expanded .ms-desc-fade {
  display: none !important;
}

.ms-btn-readmore-wrap {
  text-align: center;
  position: relative;
  z-index: 10;
  margin-top: 16px;
}

.ms-desc-clamped + .ms-btn-readmore-wrap {
  margin-top: -26px;
  margin-bottom: 4px;
}

.ms-desc-expanded + .ms-btn-readmore-wrap {
  margin-top: 16px;
  margin-bottom: 6px;
}

.ms-btn-readmore {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  background: transparent !important;
  color: #0066cc !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 4px 10px !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  box-shadow: none !important;
  outline: none !important;
  text-decoration: none !important;
  line-height: 1.4 !important;
  transition: color 0.2s ease !important;
}

.ms-btn-readmore:hover,
.ms-btn-readmore:focus {
  background: transparent !important;
  color: #004499 !important;
  box-shadow: none !important;
  outline: none !important;
  text-decoration: underline !important;
}

.ms-btn-readmore i {
  font-size: 12px !important;
  color: inherit !important;
  margin-top: 1px;
}

.ms-printers-sidebar-grid {
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 8px !important;
}

.ms-printers-sidebar-grid .ms-printer-img-box {
  height: 70px !important;
  padding: 6px !important;
  margin-bottom: 4px !important;
}

.ms-printers-sidebar-grid .ms-printer-label {
  font-size: 11.5px !important;
  line-height: 1.3 !important;
  margin-bottom: 2px !important;
}

.ms-printers-sidebar-grid .ms-printer-price {
  font-size: 11px !important;
}

/* Card: Máy in tương thích */
.ms-printers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.ms-printer-item {
  text-align: center;
}

.ms-printer-item a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.ms-printer-img-box {
  background: #f8fafc;
  border: 1px solid #edf2f7;
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 6px;
  transition: all 0.2s ease;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ms-printer-img-box:hover {
  border-color: #ed1c24;
  transform: translateY(-2px);
}

.ms-printer-img-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.ms-printer-placeholder {
  font-size: 32px;
  color: #cbd5e1;
}

.ms-printer-label {
  font-size: 12px;
  font-weight: 700;
  color: #1e293b;
  display: block;
  line-height: 1.35;
  margin-bottom: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ms-printer-price {
  font-size: 11.5px;
  font-weight: 700;
  color: #ed1c24;
  display: block;
}

.ms-printer-price del {
  font-size: 10.5px;
  color: #94a3b8;
  font-weight: 400;
  margin-right: 3px;
}

.ms-printer-price ins {
  text-decoration: none;
}

/* Card: Bảng thông số kỹ thuật (Zebra + Collapsible chuẩn E-commerce) */
.ms-specs-table-wrapper {
  position: relative;
  overflow-x: auto;
  transition: max-height 0.4s ease;
}

.ms-specs-table-wrapper.ms-specs-clamped {
  max-height: 480px;
  overflow: hidden;
}

.ms-specs-table-wrapper.ms-specs-expanded {
  max-height: none !important;
  overflow: visible !important;
}

.ms-specs-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.85) 50%, #ffffff 100%);
  pointer-events: none;
  z-index: 5;
}

.ms-specs-expanded .ms-specs-fade {
  display: none !important;
}

.ms-btn-specs-wrap {
  text-align: center;
  position: relative;
  z-index: 10;
  margin-top: 16px;
}

.ms-specs-clamped + .ms-btn-specs-wrap {
  margin-top: -26px;
  margin-bottom: 4px;
}

.ms-specs-expanded + .ms-btn-specs-wrap {
  margin-top: 16px;
  margin-bottom: 6px;
}

.ms-btn-specs-toggle {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  background: transparent !important;
  color: #0066cc !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 4px 10px !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  box-shadow: none !important;
  outline: none !important;
  text-decoration: none !important;
  line-height: 1.4 !important;
  transition: color 0.2s ease !important;
}

.ms-btn-specs-toggle:hover,
.ms-btn-specs-toggle:focus {
  background: transparent !important;
  color: #004499 !important;
  box-shadow: none !important;
  outline: none !important;
  text-decoration: underline !important;
}

.ms-btn-specs-toggle i {
  font-size: 12px !important;
  color: inherit !important;
  margin-top: 1px;
}

.ms-specs-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  font-size: 13.5px;
}

.ms-specs-table tr.ms-row-even {
  background: #ffffff;
}

.ms-specs-table tr.ms-row-odd {
  background: #f8fafc;
}

/* Hàng phân nhóm thông số (Group header) */
.ms-spec-group-row {
  background: #edf2f7 !important;
}

.ms-spec-group-title {
  font-weight: 800 !important;
  color: #253989 !important;
  text-transform: uppercase !important;
  font-size: 13px !important;
  padding: 8px 14px !important;
  letter-spacing: 0.5px;
  border-bottom: 1px solid #e2e8f0 !important;
}

.ms-specs-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #f1f5f9;
}

.ms-specs-table tr:last-child td {
  border-bottom: none;
}

.ms-spec-label {
  width: 32%;
  color: #334155;
  font-weight: 700;
  border-right: 1px solid #f1f5f9;
}

.ms-spec-val {
  color: #1e293b;
}

/* ==========================================================================
   SECTION: VÌ SAO NÊN CHỌN & VIDEO THỰC TẾ (2 CỘT 50/50)
   ========================================================================== */
.ms-why-video-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}

.ms-card-why-choose,
.ms-card-video {
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
  padding: 22px 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.ms-why-heading,
.ms-video-heading {
  font-size: 16.5px;
  font-weight: 800;
  color: #ed1c24;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin: 0 0 16px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.35;
  min-height: 28px;
}

.ms-why-heading i {
  color: #ed1c24;
  font-size: 18px;
  flex-shrink: 0;
}

.ms-video-heading i {
  color: #ed1c24;
  font-size: 18px;
  flex-shrink: 0;
}

.ms-why-list {
  list-style: none !important;
  margin: 0 0 18px 0 !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex-grow: 1;
}

.ms-why-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  line-height: 1.45;
}

.ms-why-check-icon {
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 50%;
  background: #253989;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10.5px;
  margin-top: 1px;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(37, 57, 137, 0.25);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.ms-why-item:hover .ms-why-check-icon {
  transform: scale(1.08);
  background: #1d4ed8;
}

.ms-why-item-content {
  font-size: 13.5px;
  color: #334155;
}

.ms-why-item-title {
  color: #0f172a;
  font-weight: 700;
}

.ms-why-item-desc {
  color: #475569;
}

.ms-why-divider {
  display: none;
}

.ms-why-warranty-box {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #f0f7ff;
  border: 1px solid #dbeafe;
  border-left: 4px solid #253989;
  border-radius: 12px;
  padding: 12px 16px;
  margin-top: auto;
  box-shadow: 0 2px 8px rgba(37, 57, 137, 0.05);
}

.ms-warranty-badge {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  background: #253989;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-shrink: 0;
  box-shadow: 0 3px 8px rgba(37, 57, 137, 0.25);
}

.ms-warranty-num {
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  margin: 0;
  padding: 0;
  color: #ffffff !important;
}

.ms-warranty-unit {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.5px;
  line-height: 1;
  margin: -1px 0 0 0;
  padding: 0;
  color: #ffffff !important;
}

.ms-warranty-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ms-warranty-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #253989;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  line-height: 1.25;
}

.ms-warranty-desc {
  font-size: 12px;
  color: #475569;
  line-height: 1.35;
}

.ms-video-embed-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #0f172a;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  flex-grow: 1;
}

.ms-video-embed-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Card: Bản in thực tế */
.ms-quality-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.ms-quality-item {
  text-align: center;
}

.ms-quality-img-wrap {
  background: #f8fafc;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #edf2f7;
  height: 110px;
  margin-bottom: 8px;
}

.ms-quality-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.ms-quality-img-wrap:hover img {
  transform: scale(1.05);
}

.ms-quality-title {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
  display: block;
}

.ms-quality-desc {
  font-size: 12px;
  color: #64748b;
  display: block;
}

/* Card: Hướng dẫn đổ mực */
.ms-guide-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.ms-guide-step-item {
  text-align: center;
  position: relative;
}

.ms-step-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ed1c24;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 6px auto;
}

.ms-step-img-box {
  background: #f8fafc;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #edf2f7;
  height: 100px;
  margin-bottom: 8px;
}

.ms-step-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ms-step-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #1e293b;
  display: block;
  line-height: 1.3;
}

.ms-step-desc {
  font-size: 11.5px;
  color: #64748b;
  margin: 2px 0 0 0;
}

/* Card: Câu hỏi thường gặp (FAQ Accordion) */
.ms-faqs-accordion {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ms-faq-item {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  transition: all 0.25s ease;
}

.ms-faq-item:hover {
  border-color: #cbd5e1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.ms-faq-item.is-active {
  border-color: #dbeafe;
  box-shadow: 0 4px 14px rgba(37, 57, 137, 0.06);
}

.ms-faq-toggle {
  width: 100%;
  padding: 12px 14px;
  background: #ffffff;
  border: none;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.ms-faq-q-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  min-width: 26px;
  border-radius: 8px;
  background: #f1f5f9;
  color: #253989;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: -0.3px;
  transition: all 0.2s ease;
}

.ms-faq-q-text {
  flex: 1;
  font-size: 13.5px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.ms-faq-icon {
  font-size: 11px;
  color: #94a3b8;
  transition: transform 0.25s ease, color 0.25s ease;
}

.ms-faq-toggle:hover .ms-faq-q-badge {
  background: #253989;
  color: #ffffff;
}

.ms-faq-toggle:hover .ms-faq-q-text {
  color: #253989;
}

.ms-faq-item.is-active .ms-faq-toggle {
  background: #f0f7ff;
}

.ms-faq-item.is-active .ms-faq-q-badge {
  background: #253989;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(37, 57, 137, 0.25);
}

.ms-faq-item.is-active .ms-faq-q-text {
  color: #253989;
  font-weight: 800;
}

.ms-faq-item.is-active .ms-faq-icon {
  transform: rotate(180deg);
  color: #253989;
}

.ms-faq-answer {
  padding: 12px 16px 14px 52px;
  font-size: 13.5px;
  color: #475569;
  line-height: 1.6;
  border-top: 1px dashed #e2e8f0;
  background: #ffffff;
}

.ms-faq-answer p {
  margin: 0;
}

/* Card: Cần tư vấn? */
.ms-card-consult {
  background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 50%, #fff7f7 100%);
  border: 1px solid #dbeafe;
  border-radius: 14px;
  padding: 22px 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
}

.ms-consult-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.ms-consult-header {
  margin-bottom: 12px;
}

.ms-consult-head {
  font-size: 16.5px;
  font-weight: 800;
  color: #ed1c24;
  margin: 0 0 6px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ms-consult-lead {
  font-size: 13px;
  color: #475569;
  line-height: 1.5;
  margin: 0;
}

/* 1. Hàng 2 Nút Hành Động Trọng Tâm (50/50 trên 1 hàng) */
.ms-consult-primary-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.ms-c-primary-btn {
  flex: 1 1 calc(50% - 5px);
  min-width: 0;
  padding: 10px 14px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none !important;
  transition: all 0.25s ease;
  box-sizing: border-box;
}

.ms-c-primary-btn i {
  font-size: 18px;
  flex-shrink: 0;
}

.ms-c-btn-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  min-width: 0;
}

.ms-c-btn-lbl {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  opacity: 0.9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ms-c-btn-val {
  font-size: 14.5px;
  font-weight: 900;
  letter-spacing: -0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ms-c-btn-call {
  background: #ed1c24;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(237, 28, 36, 0.25);
}

.ms-c-btn-call:hover {
  background: #c61219;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(237, 28, 36, 0.35);
}

.ms-c-btn-zalo {
  background: #0068ff;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(0, 104, 255, 0.25);
}

.ms-c-btn-zalo:hover {
  background: #0056d6;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 104, 255, 0.35);
}

/* 2. Bảng Danh Bạ Các Bộ Phận Hỗ Trợ (Lưới 2 Cột Đối Xứng) */
.ms-consult-directory {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.ms-directory-header {
  font-size: 11.5px;
  font-weight: 800;
  color: #253989;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 9px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ms-directory-header i {
  color: #253989;
  font-size: 12px;
}

.ms-directory-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.ms-dir-item {
  display: flex;
  align-items: center;
  gap: 9px;
  background: #f8fafc;
  border: 1px solid #edf2f7;
  border-radius: 8px;
  padding: 8px 10px;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.ms-dir-item:hover {
  background: #ffffff;
  border-color: #253989;
  box-shadow: 0 2px 8px rgba(37, 57, 137, 0.1);
  transform: translateY(-1px);
}

.ms-dir-icon {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}

.ms-icon-tech {
  background: #e0e7ff;
  color: #253989;
}

.ms-icon-agency {
  background: #ecfdf5;
  color: #059669;
}

.ms-icon-feedback {
  background: #fef3c7;
  color: #d97706;
}

.ms-icon-warranty {
  background: #fee2e2;
  color: #dc2626;
}

.ms-icon-remote {
  background: #eff6ff;
  color: #2563eb;
}

.ms-icon-default {
  background: #f1f5f9;
  color: #475569;
}

.ms-dir-info {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  min-width: 0;
}

.ms-dir-label {
  font-size: 10.5px;
  color: #64748b;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ms-dir-phone {
  font-size: 12.5px;
  font-weight: 800;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ms-dir-item:hover .ms-dir-phone {
  color: #253989;
}

.ms-dir-feature {
  background: #f0fdf4;
  border-color: #dcfce7;
}

.ms-dir-feature .ms-dir-phone {
  color: #15803d;
}

/* 3. Dòng Chân Trang: Giờ Làm Việc */
.ms-consult-footer-note {
  margin-top: 12px;
  font-size: 11.5px;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  line-height: 1.4;
  padding-top: 10px;
  border-top: 1px dashed #e2e8f0;
  white-space: nowrap;
}

.ms-consult-footer-note i {
  color: #253989;
  font-size: 13px;
  flex-shrink: 0;
}

.ms-consult-footer-note span {
  white-space: nowrap;
}

.ms-consult-thumb {
  width: 90px;
  flex-shrink: 0;
  text-align: center;
}

.ms-consult-thumb img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

/* ==========================================================================
   3. KHỐI TABS & NỘI DUNG MÔ TẢ CHI TIẾT
   ========================================================================== */
.ms-product-tabs-wrapper {
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 16px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
  padding: 24px;
  margin-bottom: 24px;
}

.ms-modern-tabs-container ul.ms-tabs-nav {
  display: flex !important;
  border-bottom: 2px solid #e2e8f0 !important;
  margin: 0 0 20px 0 !important;
  padding: 0 !important;
  list-style: none !important;
  gap: 20px !important;
}

.ms-modern-tabs-container ul.ms-tabs-nav li {
  margin: 0 !important;
  padding: 0 0 10px 0 !important;
  border: none !important;
  background: none !important;
}

.ms-modern-tabs-container ul.ms-tabs-nav li a {
  font-size: 16px !important;
  font-weight: 800 !important;
  color: #64748b !important;
  text-decoration: none !important;
  position: relative !important;
  transition: color 0.2s ease !important;
  padding: 0 !important;
}

.ms-modern-tabs-container ul.ms-tabs-nav li.active a,
.ms-modern-tabs-container ul.ms-tabs-nav li a:hover {
  color: #ed1c24 !important;
}

.ms-modern-tabs-container ul.ms-tabs-nav li.active a::after {
  content: "" !important;
  position: absolute !important;
  bottom: -12px !important;
  left: 0 !important;
  right: 0 !important;
  height: 3px !important;
  background: #ed1c24 !important;
  border-radius: 2px !important;
}

.ms-tab-panel {
  font-size: 14.5px !important;
  line-height: 1.7 !important;
  color: #334155 !important;
}

/* ==========================================================================
   3.1. KHỐI ĐÁNH GIÁ & NHẬN XÉT SẢN PHẨM (CUSTOM BENTO REVIEWS)
   ========================================================================== */
.ms-reviews-row {
  margin-bottom: 24px;
}

.ms-card-reviews {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
  padding: 24px 28px;
}

/* Banner thông báo trạng thái gửi đánh giá (Chờ duyệt / Thành công) */
.ms-review-notice-banner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 10px;
  margin-bottom: 22px;
  animation: msNoticeFade 0.3s ease-in-out;
  position: relative;
}

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

.ms-review-notice-banner.ms-notice-pending {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}

.ms-review-notice-banner.ms-notice-pending .ms-rnb-icon {
  color: #d97706;
  font-size: 24px;
  line-height: 1.2;
}

.ms-review-notice-banner.ms-notice-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.ms-review-notice-banner.ms-notice-success .ms-rnb-icon {
  color: #16a34a;
  font-size: 24px;
  line-height: 1.2;
}

.ms-rnb-body {
  flex: 1;
}

.ms-rnb-title {
  display: block;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.ms-rnb-desc {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: inherit;
}

.ms-rnb-close {
  background: transparent;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: #94a3b8;
  cursor: pointer;
  padding: 0 4px;
  transition: color 0.15s;
}

.ms-rnb-close:hover {
  color: #1e293b;
}

.ms-reviews-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f1f5f9;
}

.ms-reviews-title {
  font-size: 18px;
  font-weight: 800;
  color: #253989;
  margin: 0 0 4px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ms-reviews-title i {
  color: #f59e0b;
}

.ms-reviews-sub {
  font-size: 13px;
  color: #64748b;
  margin: 0;
}

.ms-btn-write-review {
  background: #ed1c24;
  color: #ffffff !important;
  border: none;
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(237, 28, 36, 0.25);
  transition: all 0.25s ease;
}

.ms-btn-write-review:hover {
  background: #c61219;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(237, 28, 36, 0.35);
}

/* Scoreboard 3 Cột Đối Xứng */
.ms-reviews-scoreboard {
  display: grid;
  grid-template-columns: 200px 1fr 280px;
  gap: 24px;
  align-items: center;
  background: #f8fafc;
  border: 1px solid #edf2f7;
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 24px;
}

.ms-score-card {
  text-align: center;
  border-right: 1px dashed #cbd5e1;
  padding-right: 20px;
}

.ms-score-big {
  font-size: 44px;
  font-weight: 900;
  color: #0f172a;
  line-height: 1;
}

.ms-score-big span {
  font-size: 18px;
  color: #94a3b8;
  font-weight: 700;
}

.ms-score-stars {
  color: #f59e0b;
  font-size: 16px;
  margin: 8px 0 6px 0;
  display: flex;
  justify-content: center;
  gap: 3px;
}

.ms-score-meta {
  font-size: 12px;
  color: #64748b;
}

.ms-breakdown-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ms-breakdown-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
}

.ms-bd-label {
  width: 44px;
  color: #475569;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.ms-bd-label i {
  color: #f59e0b;
  font-size: 11px;
}

.ms-bd-bar {
  flex: 1;
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
}

.ms-bd-fill {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #ed1c24);
  border-radius: 4px;
  transition: width 0.4s ease;
}

.ms-bd-count {
  width: 28px;
  text-align: right;
  color: #64748b;
  font-weight: 700;
  flex-shrink: 0;
}

.ms-invite-card {
  border-left: 1px dashed #cbd5e1;
  padding-left: 20px;
  text-align: left;
}

.ms-invite-icon {
  color: #ed1c24;
  font-size: 22px;
  margin-bottom: 4px;
}

.ms-invite-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #1e293b;
  display: block;
  margin-bottom: 4px;
}

.ms-invite-desc {
  font-size: 12px;
  color: #64748b;
  line-height: 1.45;
  margin: 0 0 10px 0;
}

.ms-btn-invite-action {
  background: #f0f7ff;
  color: #253989;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.ms-btn-invite-action:hover {
  background: #253989;
  color: #ffffff;
  border-color: #253989;
}

/* Form Viết Đánh Giá */
.ms-review-form-wrapper {
  margin-bottom: 24px;
}

.ms-rf-card {
  background: #ffffff;
  border: 2px solid #dbeafe;
  border-radius: 14px;
  padding: 22px 24px;
  box-shadow: 0 6px 20px rgba(37, 57, 137, 0.06);
}

.ms-rf-title {
  font-size: 16px;
  font-weight: 800;
  color: #253989;
  margin: 0 0 4px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ms-rf-sub {
  font-size: 12.5px;
  color: #64748b;
  margin: 0 0 16px 0;
}

.ms-rf-rating-group {
  margin-bottom: 16px;
}

.ms-rf-group-label {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  display: block;
  margin-bottom: 6px;
}

.ms-rf-stars-selector {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ms-rf-star {
  font-size: 26px;
  color: #cbd5e1;
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease;
}

.ms-rf-star.active {
  color: #f59e0b;
}

.ms-rf-star:hover {
  transform: scale(1.18);
}

.ms-rf-star-status {
  font-size: 13px;
  font-weight: 700;
  color: #253989;
  margin-left: 10px;
}

.ms-rf-row {
  display: flex;
  gap: 14px;
  margin-bottom: 14px;
}

.ms-rf-col {
  flex: 1;
}

.ms-rf-full {
  flex-direction: column;
}

.ms-rf-label {
  font-size: 12.5px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
  display: block;
}

.ms-req {
  color: #ed1c24;
}

.ms-rf-input,
.ms-rf-textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13.5px;
  color: #1e293b;
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.ms-rf-input:focus,
.ms-rf-textarea:focus {
  border-color: #253989;
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 57, 137, 0.12);
}

/* Upload ảnh đánh giá */
.ms-rf-upload-box {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  padding: 12px 16px;
  text-align: left;
}

.ms-btn-select-photos {
  background: #ffffff;
  border: 1px solid #253989;
  color: #253989;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.2s ease;
}

.ms-btn-select-photos:hover {
  background: #253989;
  color: #ffffff;
}

.ms-upload-note {
  font-size: 11.5px;
  color: #64748b;
  margin-left: 10px;
  display: inline-block;
}

.ms-upload-previews {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.ms-preview-thumb {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.ms-preview-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ms-rf-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
}

.ms-btn-submit-review {
  background: #ed1c24;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-weight: 800;
  font-size: 13.5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(237, 28, 36, 0.25);
  transition: all 0.2s ease;
}

.ms-btn-submit-review:hover {
  background: #c61219;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(237, 28, 36, 0.35);
}

.ms-btn-cancel-review {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ms-btn-cancel-review:hover {
  background: #e2e8f0;
  color: #1e293b;
}

/* Bộ Lọc Sao */
.ms-reviews-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.ms-filter-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #475569;
  margin-right: 4px;
}

.ms-filter-chip {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ms-filter-chip:hover {
  background: #e2e8f0;
  color: #1e293b;
}

.ms-filter-chip.active {
  background: #253989;
  color: #ffffff;
  border-color: #253989;
  box-shadow: 0 2px 6px rgba(37, 57, 137, 0.25);
}

/* Danh Sách Đánh Giá */
.ms-reviews-items-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ms-review-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 20px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ms-review-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.ms-rc-top {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 10px;
}

.ms-rc-avatar {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #253989, #3b82f6);
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(37, 57, 137, 0.2);
}

.ms-rc-meta {
  flex: 1;
  min-width: 0;
}

.ms-rc-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 3px;
}

.ms-rc-author {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
}

.ms-rc-verified {
  font-size: 11px;
  font-weight: 700;
  color: #059669;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 4px;
  padding: 2px 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ms-rc-sub-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ms-rc-stars {
  color: #f59e0b;
  font-size: 12px;
  display: inline-flex;
  gap: 2px;
}

.ms-rc-date {
  font-size: 11.5px;
  color: #94a3b8;
}

.ms-rc-content {
  font-size: 13.5px;
  color: #334155;
  line-height: 1.6;
}

.ms-rc-content p {
  margin: 0;
}

/* Dải ảnh thực tế của khách trong review */
.ms-rc-photos {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.ms-rc-photo-item {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ms-rc-photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.ms-photo-zoom-hint {
  position: absolute;
  bottom: 3px;
  right: 3px;
  background: rgba(15, 23, 42, 0.7);
  color: #ffffff;
  font-size: 10px;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.ms-rc-photo-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: #253989;
}

.ms-rc-photo-item:hover img {
  transform: scale(1.08);
}

.ms-rc-photo-item:hover .ms-photo-zoom-hint {
  opacity: 1;
}

/* Lightbox Modal Xem Ảnh To */
.ms-review-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  cursor: pointer;
}

.ms-lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  cursor: default;
}

.ms-lightbox-content img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  object-fit: contain;
  display: block;
}

.ms-lightbox-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ed1c24;
  color: #ffffff;
  border: 2px solid #ffffff;
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease;
}

.ms-lightbox-close:hover {
  transform: scale(1.15);
}

/* Khối Phản Hồi Từ Shop */
.ms-rc-admin-reply {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 3px solid #253989;
  border-radius: 0 8px 8px 0;
  padding: 10px 14px;
  margin-top: 12px;
}

.ms-reply-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.ms-admin-badge {
  font-size: 12px;
  font-weight: 800;
  color: #253989;
  display: flex;
  align-items: center;
  gap: 5px;
}

.ms-reply-date {
  font-size: 11px;
  color: #94a3b8;
}

.ms-reply-body {
  font-size: 13px;
  color: #475569;
  line-height: 1.5;
}

/* Trường Hợp Chưa Có Đánh Giá */
.ms-no-reviews-box {
  text-align: center;
  padding: 28px 20px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px dashed #cbd5e1;
}

.ms-no-reviews-icon {
  font-size: 34px;
  color: #94a3b8;
  margin-bottom: 8px;
}

.ms-no-reviews-msg {
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

/* ==========================================================================
   4. MOBILE STICKY BOTTOM BAR
   ========================================================================== */
.ms-mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  background: #ffffff;
  box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.12);
  border-top: 1px solid #e2e8f0;
  padding: 8px 12px;
}

.ms-sticky-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  max-width: 500px;
  margin: 0 auto;
}

.ms-sticky-zalo-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none !important;
  color: #0068ff !important;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
}

.ms-sticky-zalo-btn img {
  width: 28px;
  height: 28px;
  margin-bottom: 2px;
}

.ms-sticky-price-wrap {
  flex: 1;
  text-align: left;
}

.ms-sticky-price {
  font-size: 16px;
  font-weight: 800;
  color: #ed1c24;
}

.ms-sticky-price del {
  font-size: 12px;
  color: #94a3b8;
  display: block;
}

.ms-sticky-buy-btn {
  background: #ed1c24;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
  padding: 10px 18px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 3px 10px rgba(237, 28, 36, 0.35);
  flex-shrink: 0;
}

/* ==========================================================================
   5. RESPONSIVE BREAKPOINTS (TABLET & MOBILE)
   ========================================================================== */
@media (max-width: 991px) {
  .ms-hero-left,
  .ms-hero-right {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .ms-hero-left {
    margin-bottom: 20px;
  }

  .ms-highlights-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .ms-printers-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ms-reviews-scoreboard {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 16px;
  }

  .ms-score-card {
    border-right: none;
    border-bottom: 1px dashed #cbd5e1;
    padding-right: 0;
    padding-bottom: 14px;
  }

  .ms-invite-card {
    border-left: none;
    border-top: 1px dashed #cbd5e1;
    padding-left: 0;
    padding-top: 14px;
  }
}

@media (max-width: 768px) {
  .ms-reviews-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .ms-btn-write-review {
    width: 100%;
    justify-content: center;
  }

  .ms-rf-row {
    flex-direction: column;
    gap: 10px;
  }

  .ms-rf-actions {
    flex-direction: column;
    width: 100%;
  }

  .ms-btn-submit-review,
  .ms-btn-cancel-review {
    width: 100%;
    justify-content: center;
  }

  .ms-card-reviews {
    padding: 16px 14px;
  }

  .ms-rf-card {
    padding: 16px 14px;
  }

  .ms-btn-select-photos {
    width: 100%;
    justify-content: center;
  }

  .ms-upload-note {
    display: block;
    margin-left: 0;
    margin-top: 6px;
    text-align: center;
  }

  .ms-rc-photo-item {
    width: 62px;
    height: 62px;
  }
  .ms-mobile-sticky-bar {
    display: block;
  }

  /* Padding bottom for body on mobile so content isn't covered by sticky bar */
  body.single-product {
    padding-bottom: 60px !important;
  }

  .ms-product-hero-section {
    padding: 14px 12px;
    margin-bottom: 12px;
    border-radius: 12px;
  }

  .ms-bento-row {
    margin-bottom: 12px;
  }

  .ms-bento-card {
    padding: 14px 12px;
    border-radius: 12px;
  }

  .ms-card-description {
    padding: 14px 12px;
  }

  .ms-why-heading,
  .ms-video-heading {
    font-size: 15px;
    margin-bottom: 12px;
    min-height: auto;
  }

  .ms-card-why-choose,
  .ms-card-video {
    padding: 15px 14px;
    border-radius: 12px;
  }

  .ms-why-list {
    gap: 11px;
    margin-bottom: 14px !important;
  }

  .ms-why-item-content {
    font-size: 12.5px;
  }

  .ms-why-check-icon {
    width: 20px;
    height: 20px;
    min-width: 20px;
    font-size: 9.5px;
  }

  .ms-why-warranty-box {
    padding: 10px 13px;
    gap: 12px;
    border-radius: 10px;
  }

  .ms-warranty-badge {
    width: 44px;
    height: 44px;
    min-width: 44px;
  }

  .ms-warranty-num {
    font-size: 15px;
    line-height: 1;
    margin: 0;
    color: #ffffff !important;
  }

  .ms-warranty-unit {
    font-size: 8px;
    line-height: 1;
    margin: -1px 0 0 0;
    color: #ffffff !important;
  }

  .ms-warranty-title {
    font-size: 12.5px;
  }

  .ms-warranty-desc {
    font-size: 11.5px;
  }

  .ms-content-col,
  .ms-specs-col,
  .ms-bento-col {
    margin-bottom: 12px;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .ms-product-title {
    font-size: 20px;
  }

  .ms-price-tag {
    font-size: 22px;
  }

  .ms-hero-round-badge {
    width: 68px;
    height: 68px;
    font-size: 9.5px;
  }

  .ms-promotion-gift-box {
    margin-top: 12px;
    margin-bottom: 6px;
  }

  .ms-promo-header {
    padding: 7px 11px;
  }

  .ms-promo-title {
    font-size: 12px;
  }

  .ms-promo-body {
    padding: 10px 11px 8px;
  }

  .ms-promo-content {
    font-size: 12.5px;
  }

  .ms-quality-grid,
  .ms-guide-steps-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .ms-card-consult {
    padding: 16px 14px;
    margin-top: 10px;
  }

  .ms-consult-inner {
    flex-direction: column;
    text-align: left;
  }

  .ms-consult-primary-actions {
    gap: 8px;
    margin-bottom: 12px;
  }

  .ms-c-primary-btn {
    padding: 8px 10px;
    gap: 8px;
  }

  .ms-c-primary-btn i {
    font-size: 16px;
  }

  .ms-c-btn-val {
    font-size: 13.5px;
  }

  .ms-c-btn-lbl {
    font-size: 10px;
  }

  .ms-consult-directory {
    padding: 10px 12px;
  }

  .ms-directory-grid {
    gap: 6px;
  }

  .ms-dir-item {
    padding: 7px 8px;
    gap: 7px;
  }

  .ms-dir-icon {
    width: 26px;
    height: 26px;
    min-width: 26px;
    font-size: 11px;
  }

  .ms-dir-label {
    font-size: 10px;
  }

  .ms-dir-phone {
    font-size: 12px;
  }

  .ms-consult-footer-note {
    font-size: 11px;
    letter-spacing: -0.2px;
    white-space: nowrap;
    justify-content: center;
    padding-top: 8px;
    margin-top: 10px;
  }

  .ms-gallery-features-card {
    padding: 10px 6px 8px;
    margin-top: 10px;
  }

  .ms-gf-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .ms-gf-item {
    padding: 2px 2px;
  }

  .ms-gf-icon {
    font-size: 16px;
    height: 22px;
  }

  .ms-gf-label {
    font-size: 10.5px;
  }

  .ms-gf-value {
    font-size: 9px;
    line-height: 1.2;
  }

  .ms-gf-banner {
    padding: 6px 8px;
    margin-top: 8px;
  }

  .ms-gf-banner-title {
    font-size: 11px;
  }

  .ms-gf-banner-desc {
    font-size: 10px;
  }

  /* Purchase Actions Responsive (Tablet & Mobile) */
  .ms-purchase-actions-box form.cart,
  .ms-purchase-actions-box .woocommerce-variation-add-to-cart {
    flex-wrap: wrap !important;
    gap: 8px !important;
  }

  .ms-purchase-actions-box .quantity.ms-quantity-wrap {
    flex: 0 0 100% !important;
    max-width: 105px !important;
    height: 40px !important;
    margin-bottom: 2px !important;
  }

  .ms-purchase-actions-box .single_add_to_cart_button,
  .ms-purchase-actions-box .ms-btn-buy-now {
    flex: 1 1 calc(50% - 4px) !important;
    min-width: 0 !important;
    height: 42px !important;
    font-size: 12.5px !important;
    padding: 0 6px !important;
  }
}

@media (max-width: 576px) {
  /* Swatches: 2 cột đều đặn trên Mobile */
  .lenam_variations_swatch li {
    flex: 1 1 calc(50% - 4px) !important;
  }
  .lenam_variations_swatch li a {
    width: 100% !important;
    padding: 6px 8px !important;
  }

  .ms-purchase-actions-box .single_add_to_cart_button,
  .ms-purchase-actions-box .ms-btn-buy-now {
    font-size: 12px !important;
    padding: 0 4px !important;
    letter-spacing: 0 !important;
  }

  .ms-consult-footer-note {
    font-size: 10px;
    letter-spacing: -0.25px;
    white-space: nowrap;
    justify-content: center;
  }
}

@media (max-width: 380px) {
  .ms-consult-footer-note {
    font-size: 9px;
    letter-spacing: -0.3px;
    white-space: nowrap;
    justify-content: center;
  }
}



/* ==========================================================================
   MODERN RELATED PRODUCTS (SẢN PHẨM CÙNG LOẠI) - BENTO 2026
   ========================================================================== */
.ms-product-related-wrapper {
  margin-top: 36px;
  margin-bottom: 30px;
  position: relative;
}

.ms-modern-related-section {
  background: #ffffff !important;
  border-radius: 20px !important;
  border: 1px solid #e2e8f0 !important;
  padding: 24px 20px 28px !important;
  box-shadow: 0 4px 20px -2px rgba(0, 40, 85, 0.05) !important;
  position: relative !important;
}

/* Triệt tiêu hoàn toàn viền gạch chân xanh lá cũ và thẻ h2 mặc định */
.ms-product-related-wrapper .related > h2,
.ms-modern-related-section > h2 {
  display: none !important;
}

/* Header Section: Đơn giản, tinh tế, chỉ giữ tiêu đề Sản phẩm cùng loại */
.ms-related-header {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  padding-bottom: 12px !important;
  margin-bottom: 20px !important;
  border-bottom: 1px solid #f1f5f9 !important;
  position: relative !important;
}

.ms-related-header::after {
  content: '' !important;
  position: absolute !important;
  bottom: -1px !important;
  left: 0 !important;
  width: 48px !important;
  height: 3px !important;
  background: #ed1c24 !important;
  border-radius: 3px !important;
}

.ms-related-title {
  margin: 0 !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  color: #002855 !important;
  line-height: 1.3 !important;
  border: none !important;
  padding: 0 !important;
  text-transform: none !important;
}

/* ==========================================================================
   CPS PRODUCTS SLIDER - INTEGRATION CHO SẢN PHẨM CÙNG LOẠI
   ĐỒNG BỘ 100% GIAO DIỆN VỚI TRANG CHỦ (CELLPHONES STYLE)
   ========================================================================== */
.ms-modern-related-section .cps-products-slider {
  margin: 0 -8px !important;
  position: relative !important;
}

.ms-modern-related-section .cps-products-slider:not(.slick-initialized) {
  display: flex !important;
  overflow-x: auto !important;
  gap: 16px !important;
  padding: 6px 4px !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

.ms-modern-related-section .cps-products-slider:not(.slick-initialized)::-webkit-scrollbar {
  display: none !important;
}

.ms-modern-related-section .cps-products-slider:not(.slick-initialized) .cps-card-col {
  flex: 0 0 calc(20% - 13px) !important;
  min-width: 210px !important;
}

.ms-modern-related-section .cps-products-slider .slick-list {
  padding: 8px 2px !important;
  overflow: hidden !important;
}

.ms-modern-related-section .cps-products-slider .slick-track {
  display: flex !important;
  align-items: stretch !important;
}

.ms-modern-related-section .cps-products-slider .slick-slide {
  padding: 0 8px !important;
  height: inherit !important;
  display: flex !important;
}

.ms-modern-related-section .cps-products-slider .slick-slide > div {
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
}

.ms-modern-related-section .cps-card-col {
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
}

.ms-modern-related-section .cps-card-item {
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
}

/* Tối ưu Typography: Giảm độ in đậm của Tên sản phẩm và Giá bán cho thanh thoát, chuẩn 100% như trang chủ */
.ms-modern-related-section .cps-card-title {
  font-family: 'Muli', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: 13.5px !important;
  font-weight: 500 !important; /* Giảm độ đậm từ 600/700 xuống 500 thanh thoát */
  line-height: 1.45 !important;
  color: #111827 !important;
  letter-spacing: -0.1px !important;
}

.ms-modern-related-section .cps-card-title a {
  font-family: inherit !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  color: #111827 !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
}

.ms-modern-related-section .cps-card-item:hover .cps-card-title a {
  color: #0066ff !important;
}

/* Khối Giá sản phẩm: Giảm độ in đậm từ 800 xuống 600 thanh thoát */
.ms-modern-related-section .cps-card-price-box {
  display: flex !important;
  align-items: baseline !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  margin-bottom: 8px !important;
  min-height: 22px !important;
}

.ms-modern-related-section .cps-price-current,
.ms-modern-related-section .cps-price-current .woocommerce-Price-amount,
.ms-modern-related-section .cps-price-current .woocommerce-Price-amount bdi {
  font-family: 'Muli', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: 15px !important;
  font-weight: 600 !important; /* Giảm từ 800 xuống 600 thanh thoát chuẩn CellphoneS trang chủ */
  color: #d70018 !important;
  line-height: 1.2 !important;
}

.ms-modern-related-section .cps-price-current .woocommerce-Price-currencySymbol {
  font-weight: 500 !important;
}

.ms-modern-related-section .cps-price-current.cps-contact {
  font-family: 'Muli', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #d70018 !important;
}

.ms-modern-related-section .cps-price-old,
.ms-modern-related-section .cps-price-old .woocommerce-Price-amount,
.ms-modern-related-section .cps-price-old .woocommerce-Price-amount bdi {
  font-family: 'Muli', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: 11.5px !important;
  font-weight: 400 !important;
  color: #94a3b8 !important;
  text-decoration: line-through !important;
  line-height: 1.2 !important;
}

/* Slick Arrows Desktop */
.ms-modern-related-section .cps-products-slider .cps-arrow {
  position: absolute !important;
  top: 46% !important;
  transform: translateY(-50%) !important;
  width: 38px !important;
  height: 38px !important;
  border-radius: 50% !important;
  background: #ffffff !important;
  border: 1px solid #dbeafe !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15) !important;
  color: #1e293b !important;
  font-size: 18px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  z-index: 15 !important;
  transition: all 0.25s ease !important;
  outline: none !important;
  padding: 0 !important;
}

.ms-modern-related-section .cps-products-slider .cps-arrow:hover {
  background: #0066ff !important;
  border-color: #0066ff !important;
  color: #ffffff !important;
  box-shadow: 0 6px 18px rgba(0, 102, 255, 0.4) !important;
}

.ms-modern-related-section .cps-products-slider .cps-prev {
  left: -14px !important;
}

.ms-modern-related-section .cps-products-slider .cps-next {
  right: -14px !important;
}

/* ==========================================================================
   RESPONSIVE: TABLET & MOBILE
   ========================================================================== */
@media (max-width: 991px) {
  .ms-modern-related-section {
    padding: 18px 14px 20px !important;
  }
  .ms-modern-related-section .cps-products-slider .cps-prev {
    left: -8px !important;
  }
  .ms-modern-related-section .cps-products-slider .cps-next {
    right: -8px !important;
  }
}

@media (max-width: 768px) {
  .ms-product-related-wrapper {
    margin-top: 20px !important;
    margin-bottom: 18px !important;
  }

  .ms-modern-related-section {
    padding: 14px 10px 16px !important;
    border-radius: 14px !important;
  }

  .ms-related-header {
    padding-bottom: 8px !important;
    margin-bottom: 12px !important;
  }

  .ms-related-title {
    font-size: 16.5px !important;
    font-weight: 700 !important;
  }

  .ms-modern-related-section .cps-card-title,
  .ms-modern-related-section .cps-card-title a {
    font-size: 12px !important;
    font-weight: 500 !important;
    min-height: 38px !important;
  }

  .ms-modern-related-section .cps-price-current,
  .ms-modern-related-section .cps-price-current .woocommerce-Price-amount,
  .ms-modern-related-section .cps-price-current .woocommerce-Price-amount bdi {
    font-size: 13.5px !important;
    font-weight: 600 !important;
  }

  .ms-modern-related-section .cps-products-slider:not(.slick-initialized) .cps-card-col {
    flex: 0 0 calc(50% - 6px) !important;
    min-width: 150px !important;
  }

  .ms-modern-related-section .cps-products-slider .cps-arrow {
    width: 28px !important;
    height: 28px !important;
    font-size: 14px !important;
  }

  .ms-modern-related-section .cps-products-slider .cps-prev {
    left: -4px !important;
  }

  .ms-modern-related-section .cps-products-slider .cps-next {
    right: -4px !important;
  }
}


